.inv-background-text {
    text-align: center;
    color: #F5F5F5;
    font-size: xx-large;
}

.table-inv {
    /*font-size: 14px;*/
    border-image: none;
    border-radius: 0;
    border-style: solid solid solid solid;
    border-width: 1px 1px 1px 1px;
    margin-bottom: 0;
}

.table-inv thead th {
    border-style: solid solid solid solid;
    border-width: 1px 1px 1px 0;
    border-color: #6C757D;
}

.table-inv thead th.last {
    border-style: solid solid solid solid;
    border-width: 1px 1px 1px 0;
}

.table-inv tbody td {
    border-top: 0 solid #DDDDDD;
    padding: 6px;
}

.table-inv tbody td.desc {
    text-align: left;
}

.table-inv tbody td.cash {
    text-align: right;
}

.table-inv tbody td.qty {
    text-align: center;
}

.table-inv-footer {
    border-image: none;
    border-radius: 0;
    border-style: solid solid solid solid;
    border-width: 1px 1px 1px 1px;
}

.table-inv-footer tbody td {
    border-style: solid solid solid solid;
    border-width: 0 1px 0 0;
    padding: 5px;
    border-color: #6C757D;
}

.table-inv-footer tbody td.total-footer {
    border-width: 0;
    font-weight: bold;
}

.table-inv-footer tbody td.total-footer-total {
    border-color: #6C757D;
    border-style: solid solid solid solid;
    border-width: 1px 0 0 0;
    text-align: right;
    font-weight: bold;
    background-color: #f5f5f5;
}

.table-inv-header {
    border: 1px solid #6C757D;
}

.table-inv-header tbody td {
    border-color: #6C757D;
    border-style: solid solid solid solid;
    border-width: 0 0 1px 0;
    padding: 6px;
}

.table-inv-header tbody td.title {
    border-color: #6C757D;
    border-style: solid solid solid solid;
    border-width: 0 1px 1px 0;
    background-color: #f5f5f5;
}

.btn-group {
    display: inline-block;
    font-size: 0;
    position: relative;
    vertical-align: middle;
    white-space: nowrap;
}

.payOnlineContainer {
    margin-top: 20px;
}

.paymentStubColumn {
    float: none;
}

.topPayOnlineText {
    padding-top: 20px;
    display: none;
}

.bottomPayOnlineText {
    display: block;
}

.invoiceTopLogo {
    display: none !important;
}

.invoiceBottomLogo {
    display: block !important;
}


/* Style for the file input area */
.file-upload-area {
    border: 2px dotted #ccc;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    display: inline-block;
    width: 100%;
    height: 150px;
    background-color: #f9f9f9;
    font-size: 16px;
    color: #666;
    line-height: 110px;
    /* Center the text vertically */
}

.file-upload-area span {
    font-weight: bold;
    font-size: 18px;
}

/* Hide the default file input */
.file-upload-area .file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Style for the attachment list */
#attachment-list {
    margin-top: 10px;
    padding: 0;
}

.list-group-item {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 15px;
    border: 1px solid #ddd;
    margin-bottom: 5px;
}

.list-group-item button {
    margin-left: auto;
}

/* Left-middle alignment of file names */
.list-group-item span {
    flex-grow: 1;
    padding-left: 10px;
}

/* Thumbnail styling */
.file-thumbnail {
    display: inline-block;
    vertical-align: middle;
    border-radius: 5px;
}

@media (max-width: 767px) {
    .payOnlineContainer {
        margin-top: 0;
    }

    .paymentStubColumn {
        float: left;
    }

    .topPayOnlineText {
        padding-top: 20px;
        display: block;
    }

    .bottomPayOnlineText {
        display: none;
    }

    .invoiceTopLogo {
        display: block !important;
    }

    .invoiceBottomLogo {
        display: none !important;
    }
}

td > p, td > small > p {
    margin-bottom: 0;
}