/* Invoice Modal Enhancements */

#modalDocsInvoice .modal-dialog {
    min-width: 800px;
}

#downloadInvoiceSection,
#deleteInvoiceSection {
    margin-bottom: 10px;
}

#downloadInvoiceSection .btn,
#deleteInvoiceSection .btn {
    width: 100%;
    margin-bottom: 5px;
}

.modal-body label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

#popinvoicestatus {
    font-weight: bold;
    font-size: 14px;
}

/* Selectbox styles for payments table - exact BO match */
#tablePayments tbody .sbHolder {
    background-color: transparent !important;
    border: none !important;
    height: 25px !important;
    box-shadow: none !important;
    width: 100% !important;
    min-width: 80px !important;
    position: relative !important;
}

#tablePayments tbody .sbSelector {
    font-family: "Neutra Text", sans-serif !important;
    font-size: 13.3333px !important;
    font-weight: 400 !important;
    line-height: 19.05px !important;
    color: rgb(151, 151, 151) !important;
    margin-top: 4px !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    text-decoration: none !important;
    text-indent: 0px !important;
    position: relative !important;
    height: auto !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    display: block !important;
}

#tablePayments tbody .sbToggle {
    background: url(/backOffice/img/select.png) no-repeat !important;
    display: block !important;
    height: 13px !important;
    outline: none !important;
    position: absolute !important;
    right: 5px !important;
    top: 9px !important;
    width: 17px !important;
    margin-top: 0px !important;
}

#tablePayments tbody .sbOptions {
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    z-index: 9999 !important;
    background-color: white !important;
}

#tablePayments tbody .sbOptions li a {
    padding: 5px 8px !important;
    font-size: 13px !important;
    color: #333 !important;
    text-decoration: none !important;
}

#tablePayments tbody .sbOptions li a:hover {
    background-color: #f8f9fa !important;
}

/* Prevent "Select One" options from being clickable */
#tablePayments tbody .sbOptions li a[rel="100"] {
    pointer-events: none !important;
    color: #ccc !important;
    cursor: default !important;
}

/* Align select rows with non-select rows */
#tablePayments tbody td.other-lines {
    vertical-align: middle !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* Currency change animation effect */
@keyframes currencyChange {
    0% { background-color: #fff3cd; }
    50% { background-color: #ffeaa7; }
    100% { background-color: transparent; }
}

.currency-changed {
    animation: currencyChange 2s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #modalDocsInvoice .modal-dialog {
        min-width: 95%;
        margin: 10px auto;
    }
    
    #downloadInvoiceSection,
    #deleteInvoiceSection,
    #autogenerateSection {
        margin-bottom: 15px;
    }
}