@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
}

body {
    background-color: #ffffff;
    color: #111;

}

.hidden {
    display: none !important;
}
.deactivated {
    display: none !important;
}
button {
    cursor: pointer;
}
@media print {
    .deactivated {
        display: none !important;
    }
}
.inmate-search-item {
    display: flex;
    justify-content: space-between;

    color: #fff;
    border-radius: 2px;
}


.inmate-search-item .link-label {
    flex-grow: 1;
    font-size: 0.9rem;
    
    color: #fff;
}


.icon-link,
.icon-popup {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 4px;
    color: #fff;
}

.icon-link:hover,
.icon-popup:hover {
    
    border-radius: 2px;
    color: #fff;
}


.icon-link svg,
.icon-popup svg {
    width: 18px;
    height: 18px;
    
    color: #fff;
}

.icon-popup {
    font: inherit;
    color: inherit;
}






@media print {
    .hidden-date-field {
        display: none !important;
        /* hide the field in print */
    }
}




.preview-image {
    max-width: 150px;
    margin: 5px;
    border: 1px solid #ccc;
}



.overlay {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
    overflow-y: auto;
    color: #040f2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-content {
    background: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 2px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}




.switch {
    position: relative;
    display: inline-block;
    width: 65px;
    height: 28px;
    vertical-align: middle;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}


.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #2d9bf0;
   
}

input:checked+.slider:before {
    transform: translateX(20px);
}




.page-container {
    margin: 0 auto;
    background: #fff;
    width: 100%;
    font-family: "Roboto", sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}




@media print {
    .floating-esign {
        display: none !important;
    }
    .floating-status {
        display: none !important;
    }
}



.overlay {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: none;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Center text and cursor for inputs within overlays */
.overlay input {
    text-align: center;
    cursor: pointer;
}

.overlay.active {
    display: flex;
}

.overlayContent {
    background: #fff;
    color: #333;
    padding: 1.5rem 2rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
}

/* Match bail form button styles for modal controls */
.overlay button,
.modal-overlay button,
#cancelModal button,
.popup-overlay .popup-content button:not(.popup-close),
.state-list button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #007BFF, #093c72);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin: 5px;
    transition: background 0.3s, transform 0.2s;
}

.overlay button:hover,
.modal-overlay button:hover,
#cancelModal button:hover,
.popup-overlay .popup-content button:not(.popup-close):hover,
.state-list button:hover,
.overlay button.active,
.modal-overlay button.active,
#cancelModal button.active,
.popup-overlay .popup-content button:not(.popup-close).active,
.state-list button.active {
    background: linear-gradient(135deg, #395573ff, #1d2636);
    transform: translateY(-2px);
}

/* Email option buttons in the checkout invoice overlay */
#invoiceForm input[type=checkbox] {
    display: none;
}

#invoiceForm label.email-option {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #007BFF, #093c72);
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin: 5px 0;
    transition: background 0.3s, transform 0.2s;
}

#invoiceForm label.email-option:hover,
#invoiceForm input[type=checkbox]:checked + label.email-option {
    background: linear-gradient(135deg, #395573ff, #1d2636);
    transform: translateY(-2px);
}

/* Improved spacing for the signature overlay */
#signatureOverlay .overlayContent {
    padding: 2rem;
    background: #f9f9f9;
}

#signatureOverlay p {
    margin: 0 0 .75rem 0;
}

#signatureOverlay button {
    margin: .25rem;
}

#signatureOverlay input {
    margin: .5rem 0;
}

/* Position overlays as sticky footers at the bottom */
#signatureOverlay,
#guidedOverlay,
#legalOverlay {
    top: auto;
    bottom: 0;
    align-items: flex-end;
}

.overlayInstructions {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.active {
    display: block;
}

.highlighted {
    border: 2px solid #66e6b1;
   
}


.active-btn {
    outline: 2px solid rgba(0, 128, 0, 0.56);
    outline-offset: 2px;
}

.canvas-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    margin-top: 10px;
}

.canvas-container>div {
    margin-top: 10px;
}


table.signature-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    text-align: center;
    /* center contents by default */
}

table.signature-table td {
    vertical-align: bottom;
    padding: 5px;
    position: relative;
    width: 100%;
}

.signature-field {
    border-bottom: 1px solid #000;
    cursor: pointer;
    vertical-align: bottom;
    background: #ffffff00;
    border-bottom-width: thin;
    height: 30px;
    align-self: center;
    position: relative;
    opacity: 1;
}

.signature-field:hover {
    background: #66e6b1;
}

.signature-field img {
    vertical-align: text-bottom;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    display: none;
}

/* Timestamp overlay below each signature image */
.signature-field + .signature-time {
    display: block;
    position: relative;
    margin-top: 2px;
    font-size: 8px;
    top: -11px;
    color: #666;
    text-align-last: center;
}


h1 {
    text-align: center;
    margin: .50px 0;
}

h2 {
    font-size: 14pt;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

h3 {
    font-size: 12px;
}

p {

    font-size: 14px;
    margin-right: 20px;

}


.date-input {
    border-bottom: 1px solid black;
    text-align: center;

}


.sig-label {
    font-size: 12px;
    margin-top: 0;
}





@media print {
    .hidden-receipt {
        display: block;
        /* show during print */
    }

    .hidden-receipt.page-section {
        page-break-before: always;
    }

    .role-buttons {
        display: none;
    }


    .floating-id-upload {
        display: none
    }

}

@media print {

    /* Hide placeholders in print if desired */
    .signature-placeholder {
        display: block;
    }

    .dark-mode-toggle-btn {
        display: none !important;
    }

    .page-section {
        page-break-after: always;
    }

    .page-wrapper {
        /* Remove left margin so it’s not squeezed in print */
        margin-left: 0 !important;
        padding: 0;
        background: none;
    }

    .page-container {
        max-width: 100% !important;
    }
}



@media screen and (max-width: 768px) {


    .page-wrapper {
        margin-left: 0;
    }
page-container {
        max-width: 100%;
        padding: 0;
        overflow-x: scroll;
    }   

    /* 2) Let your grids become stacked or scrollable */
    /* 
 For example, any table-based layout can become 'display: block' with overflow-x 
 if it helps mobile. You can also let each "row" become stacked. 
*/
    table {
        display: block;
        width: 100%;
        overflow-x: hidden;
        /* or overflow-x: scroll if you want a scrollbar */
    }


}


input[type="text"] {
    width: 100%;
    border: none;
    overflow-x: hidden;
    border-bottom: 1px solid #000;
}

/* Use this utility class when text inside inputs should be centered */
.text-center-input {
    text-align: center;
}

input[type="text"]:focus {
    background: transparent;
    border: white;
}

input[type="date"] {


    border: none;
    text-align: center;
    margin-top: 0px;
}

input[type="date"]:focus {
    background: transparent;
    border: white;
}

input[type="datalist"]:focus,
input[type="option"]:focus {
    border: white;
}


.payInterval {
    margin: 0;
    padding: 0;
    border: none;
    border-bottom: 1px solid #000;
    width: 120px;
    background-color: #135de722;
}

.payInterval option {
    background-color: #135de722;
    color: #000;


}


.dark-mode {
    background-color: #333c4d; /* base dark shade */
    color: #ffffff;            /* ensure white text */
}

.dark-mode .page-wrapper {
    background-color: #1d1f24; /* slightly lighter */
    color: #ffffff;
}

.dark-mode .page-container {
    background-color: #1b222c; /* complementing shade */
    color: #ffffff;
}


.dark-mode input[type="text"],
.dark-mode input[type="date"],
.dark-mode input[type="dataList"],
.dark-mode select,
.dark-mode textarea {
    background-color: #333333;
    color: #ffffff;
    border: 1px solid #555555;
}


.dark-mode .signature-field {
    background-color: #333333;
    color: #ffffff;
    border-bottom: 1px solid #888888;
    opacity: 1;
}


.dark-mode button {
    background-color: #444444;
    color: #ffffff;
    border: 1px solid #666666;
}

.dark-mode button:hover {
    background-color: #555555;
}


.dark-mode nav {
    background-color: #2a2a2a;
    color: #ffffff;
}


.dark-mode table td {
    background-color: #2a2a2a;
    color: #ffffff;
}

.dark-mode-toggle {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.dark-mode-toggle:hover {
    background-color: #1d1f24;
}

.dark-mode .floating-menu,
.dark-mode .floating-menu button {
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: #000;
}

.dark-mode .floating-menu button:hover {
    background: linear-gradient(135deg, #395573ff, #1d2636);
}

.dark-mode #darkModeBtn,
.dark-mode #sidebarToggleBtn {
    background-color: #262e38;
}

.dark-mode a,
.dark-mode label,
.dark-mode p,
.dark-mode td,
.dark-mode th {
    color: #ffffff;
    background-color: #262e38;
}


input#payInterval {
    background: #135de722;
    text-align: center;

}

.receipt-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #000;
    padding: 1rem;
    position: relative;
    /* so we can position items as needed */
}

.receipt-table-container {
    max-width: 50%;
    margin-left: auto;
    border: 1px solid red;
    /* Temporary for debugging */
}

.receipt-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.receipt-header-left {
    font-size: 14px;
    font-weight: bold;
}

.receipt-header-center {
    text-align: center;
    flex: 1;
}

.receipt-header-center h1 {
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.receipt-header-center p {
    font-size: 12px;
    line-height: 1.2;
}

.receipt-body {
    display: flex;
    align-items: flex-start;
    font-size: 16px;
    white-space: nowrap;
}

.left-col {
    width: 70%;
    text-align: center;
}

.left-col img {
    width: 130px;
    height: 130px;
    margin-bottom: 0.5rem;
}

.left-col p {
    font-size: 12px;
    text-align: center;
}

.right-col {
    width: 65%;
}

.right-col table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.right-col th,
.right-col td {
    border: 1px solid #000;
    padding: 6px 8px;
    vertical-align: text-top;
}

.right-col th {
    font-weight: bold;
    width: 50%;
    white-space: nowrap;
}

.receipt-signatures {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    vertical-align: text-top;
}

.sig-block {
    width: 45%;
}

.sig-block strong {
    display: inline-block;
    margin-bottom: 0.25rem;
}

.sig-line {
    display: inline-block;
    border-bottom: 1px solid #000;
    width: 100%;

    vertical-align: text-bottom;
}



.person-section {
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    padding: 0.5rem;
}

.person-section label {
    display: inline-block;
    width: 4rem;
}

.cosigner-section {
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    padding: 0.5rem;
}



.date-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin-bottom: 1rem;
    z-index: -1;
}

.date-label {
    margin-right: 5px;
}

.hidden-date-field {
    width: 14.8px;
    color: transparent;
    text-shadow: 0 0 0 #0000;
    border: none;
    background: none;
    cursor: pointer;
    position: absolute;
    top: 1px;
    z-index: 1;
    pointer-events: auto;
}

.date-text-field {
    z-index: 2;
    padding: 0;
    border: none;
    border-bottom: 1px solid #000;
    width: 14.8px;
}

input[type="date"]::-webkit-datetime-edit-text {
    color: transparent;
    opacity: 0;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 1;
    display: block;
}

input[type="date"]::-webkit-clear-button,
input[type="date"]::-webkit-inner-spin-button {
    display: none;
}

@media print {
    input[type="date"]::-webkit-calendar-picker-indicator {
        display: none !important;
    }
}




.save-load-buttons {

    display: flex;
    flex-direction: column;

}

.save-load-buttons h3 {
    margin-bottom: 0.5em;
    text-align: center;
    font-size: 1rem;
    color: #000;
}

.inmate-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 2px;
}

.link-label {
    flex-grow: 1;
    font-size: 0.9rem;
}

.icon-link,
.icon-popup {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 4px;
    display: inline-flex;

}

.icon-link svg,
.icon-popup svg {
    width: 18px;
    height: 18px;
    fill: #007bff;

    border-radius: 2px;
}

.icon-link:hover,
.icon-popup:hover {

    border-radius: 2px;
}

.copyButton {
    margin: 0;
    padding: 0;
    border: none;
    border-bottom: 1px solid #000;
    /* same as the input underline */
    background-color: #135de722;
    /* semi-transparent blue or choose any color */
    cursor: pointer;
    font-size: 16px;
    height: 1.3rem;

}

.copyButton:hover {
    background-color: #135de744;
    /* darken on hover */
}


@media print {
    .copyButton {
        display: none;
    }
}



.mySpanStyle {
    margin: 0;
    padding: 0;
    align-content: space-evenly;
    border-bottom: 1px solid #000;
    background-color: #135de722;
    height: 1.3rem;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
}




.page-container {
    border-radius: 3px;
    background: #ffffff;
    width: 100%;
    font-family: "Roboto", Arial, Helvetica, sans-serif;

}




.role-buttons.closed~#sidebarToggleBtn {
    display: block;
}


.close-toolbar-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: transparent;
    color: #333;
    border: none;
    font-size: 24px;
    cursor: pointer;
    /* optional styling, e.g., hover effect */
}

.close-toolbar-btn:hover {
    color: red;
}

.role-buttons {
    position: fixed;
    border-radius: 5px;
    top: 0;
    left: 0;
    width: 110px;
    background-color: #f5f5f5;
    border-right: 1px solid #ddd;
    padding: 14.8px;
    box-shadow: 1px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 1000;
    /* For the slide-in effect: start in normal position, with a transition. */
    transform: translateX(-110px);
    transition: transform 0.3s ease;
    cursor: pointer;
}


.role-buttons.closed {
    transform: translateX(-110px);
    /* same as width of the sidebar */
}



.role-buttons button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
}



.overlay {
    position: fixed;
    display: none;
    /* hidden by default */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000066;
    z-index: 2000;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}



.overlayContent {
    top: 50%;
    left: 50%;
    background: #fff;
    padding: 1rem;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .overlayContent {
        width: 95%;
        left: 50%;
        max-width: none;
    }
}

.active {
    display: block;
}

.highlighted {
    border: 2px solid #66e6b1;
    /* for role button highlight */
}


.active-btn {
    outline: 2px solid rgba(0, 128, 0, 0.56);
    outline-offset: 2px;
}

.canvas-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    margin-top: 10px;
    cursor: pointer;
}

.canvas-container>div {
    margin-top: 10px;
}





select.hide-arrow {
    -webkit-appearance: none;
    /* Safari, Chrome, etc. */
    -moz-appearance: none;
    /* Firefox */
    appearance: none;
    /* Standard */
    background: transparent;
    /* So no arrow background is displayed */
    border: none;
    TEXT-ALIGN-LAST: CENTER;
    background-color: #135de722;

}


select.hide-arrow::-ms-expand {
    display: none;
}

table.signature-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    text-align: center;
    /* center contents by default */
}

table.signature-table td {
    vertical-align: bottom;
    /* ensures the "line" is at the bottom of cell */

    position: relative;
    width: 100%;
}


.signature-field {
    border-bottom: 1px solid #000000;
    cursor: pointer;
    vertical-align: bottom;
    background: #ffffff00;
    /* space before date input */
    border-bottom-width: thin;

    height: 30px;
    place-self: center;
    position: relative;
    opacity: 1;

}




.signature-field:hover {
    background: #66e6b1;

}

.signature-field img {
    height: 100%;
    vertical-align: text-bottom;
    width: 100%;
    object-fit: contain;
    opacity: 1;
    display: none;
}


h1 {
    text-align: center;

}

h2 {
    font-size: 13pt;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

h3 {
    font-size: 12px;
    text-align-last: center;
}



table {
    width: 100%;
}


.date-input {
    border-bottom: 1px solid black;
    text-align: center;

    /* adjust as needed */
}


.sig-label {
    font-size: 12px;
    margin-top: 0;
}







@media print {
    .hidden-receipt {
        display: block;
        /* show during print */
    }

    .hidden-receipt.page-section {
        page-break-before: always;
    }

    .role-buttons {
        display: none;
    }
}


@media print {


    /* Hide  placeholders in print if desired */
    .signature-placeholder {
        display: block;
    }

    .dark-mode-toggle-btn {
        display: none !important;
    }


    .page-section {
        page-break-after: always;
    }


    .page-wrapper {
        margin-left: 0 !important;
        padding: 0;
        background: none;
    }

    .page-container {
        max-width: 100% !important;
        
    }
}




@media screen and (max-width: 600px) {
    .role-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
        cursor: pointer;
    }

    .role-buttons button {
        margin: 5px 0;
        font-size: 1rem;
        cursor: pointer;
    }


    table {
        display: block;
    }
}


input[type="text"] {
    width: 100%;
    border: none;
    background: #135de722;
    border-bottom: 1px solid #000;
  



}


input[type="datalist"] {
    width: 100%;
height: 1.3rem;
    border: none;
    text-align: center;
    background: #135de722;
    border-bottom: 1px solid #000;




}


select {
    width: 100%;
    padding: 3px;
    border: 1px solid #000;
    text-align: center;
    background: #135de722;
    border-bottom: 1px solid #000;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 30px;

}



input[type="date"] {
    border: none;
    text-align: center;
    margin-top: 0px;


}

input[type="date"]:focus {
    background: transparent;
    border: white;
    /* Optional: remove or customize outline if desired */
    /* outline: none; */

}


input[type="text"]:focus {
    background: transparent;
    border: white;
    /* Optional: remove or customize outline if desired */
    /* outline: none; */

}


input#coSigner2NamePromNote {
    height: 35px;
}

input#coSigner1NamePromNote {
    height: 35px;
}
#coSigner1PromNoteSigField,
#coSigner1Section2SigField,
#coSigner1Section3SigField,
#receiptCos1SigField {
    position: relative;
    top: -5px;
}

input#defendantNamePromNote {
    height: 35px;
}

input[type="date"]:focus {
    background: transparent;
    border: white;
    /* Optional: remove or customize outline if desired */
    /* outline: none; */
}

input[type="datalist"]:focus {
    background: transparent;
    border: white;
    /* Optional: remove or customize outline if desired */
    /* outline: none; */
}

input[type="option"]:focus {
    background: transparent;
    border: white;
    /* Optional: remove or customize outline if desired */
    /* outline: none; */
}







.payInterval {
    margin: 0;
    padding: 0;
    border: none;
    border-bottom: 1px solid #000;
    width: 120px;

    /* Same as input background */

}

.payInterval option {
    background-color: #010411cf;

    color: #000;
}

.dark-mode {
    background-color: #333c4d;
    /* Dark background for the page */
    color: #ffffff;
    /* White text color by default */
}


.dark-mode .page-wrapper {
    background-color: #1d1f24;
    color: #ffffff;
}

.dark-mode .page-container {
    background-color: #1b222c;
    color: #ffffff;
}


.dark-mode input[type="text"],
.dark-mode input[type="date"],
.dark-mode input[type="dataList"],
.dark-mode select,
.dark-mode textarea {
    background-color: #333333;
    color: #ffffff;
    border-bottom: solid 1px #ffffff;
    border: 1px solid #555555;
}


.dark-mode .signature-field {
    background-color: #333333;
    color: #ffffff;
    border-bottom: 1px solid #888888;
    opacity: 1;
}


.dark-mode button {
    background-color: #444444;
    color: #ffffff;
    border: 1px solid #666666;
    cursor: pointer;
}

.dark-mode button:hover {
    background-color: #555555;
cursor: pointer;
}


.dark-mode nav {
    background-color: #2a2a2a;
    color: #ffffff;
cursor: pointer;
}


.dark-mode table td {
    background-color: #2a2a2a;
    color: #ffffff;
}

.dark-mode-toggle {



    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 2px;
}

.dark-mode-toggle:hover {
    background-color: #1d1f24;
}

.dark-mode .floating-menu,
.dark-mode .floating-menu button {
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: #000;
}

.dark-mode .floating-menu button:hover {
    background: linear-gradient(135deg, #395573ff, #1d2636);
}

.dark-mode #darkModeBtn,
.dark-mode #sidebarToggleBtn {
    background-color: #262e38;
}

.dark-mode a,
.dark-mode label,
.dark-mode p,
.dark-mode td,
.dark-mode th {
    color: #ffffff;
}

.dark-mode #contractsTable th {
    color: #000;
}


input#payInterval {
    background: rgba(19, 93, 231, 0);
    text-align: center;

}



.receipt-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #000;
    padding: 1rem;
    position: relative;
    /* so we can position items as needed */
}

.receipt-table-container {
    max-width: 50%;
    margin-left: auto;
    border: 1px solid red;
    /* Temporary for debugging */
}


.receipt-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.receipt-header-left {
    /* "RECEIPT" label or left text */
    font-size: 14px;
    font-weight: bold;
}

.receipt-header-center {
    text-align: center;
    flex: 1;
    /* push center heading to center, pushing 'RECEIPT' to left */
}

.receipt-header-center h1 {
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.receipt-header-center p {
    font-size: 11px;
    line-height: 1.2;
}

.receipt-body {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    align-self: center;
}

.left-col {
    width: 70%;
    text-align: center;
}

.left-col img {
    width: 130px;
    height: 130px;
    margin-bottom: 0.5rem;
}

.left-col p {
    font-size: 10px;
    text-align: text-top;
}

.right-col {
    width: 65%;
    /* If you want a thin border around this section:
border: 1px solid #000; */
}

.right-col table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    /* Optional: border: 1px solid #000; */
}

.right-col th,
.right-col td {
    border: 1px solid #000;
    padding: 6px 8px;
    vertical-align: text-top;
}

.right-col th {
    font-weight: bold;
    width: 50%;
    white-space: nowrap;
}



.receipt-signatures {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    vertical-align: text-top;
}

.sig-block {
    width: 45%;
}

.sig-block strong {
    display: inline-block;
    margin-bottom: 0.25rem;
}

.sig-line {
    display: inline-block;
    border-bottom: 1px solid #000;
    width: 100%;

    vertical-align: text-top;
}





.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
}

.modal-content {
    background: #fff;
    width: 300px;
    max-width: 90%;
    margin: 10% auto;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

#esignStatusTable {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #333;
}
#esignStatusTable th,
#esignStatusTable td {
    border: 1px solid #333;
    padding: 0.25em 0.5em;
    text-align: left;
}



.signature-wrapper {
    margin: 1em 0;
    border: 1px dashed #ccc;
    padding: 0.5em;
}





.duplicate-field {
    background-color: #ffdddd;
}

.duplicate-tooltip {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: rgba(255, 0, 0, 0.85);
    color: #fff;
    padding: 2px 4px;
    font-size: 0.75rem;
    border-radius: 3px;
    margin-top: 2px;
    pointer-events: none;
}

.guided-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 4px 6px;
    font-size: 0.75rem;
    border-radius: 3px;
    margin-bottom: 4px;
    pointer-events: none;
    white-space: nowrap;
}

/* Place tips under buttons in the signature overlay */
#saveSigTip,
#saveInitTip {
    bottom: auto;
    top: 100%;
    margin-top: 4px;
    margin-bottom: 0;
}



@media print {

    header,
    .header {
        display: none !important;
    }

    footer,
    .footer {
        display: none !important;
    }
}


.blurred-content {
    filter: blur(5px);
    /* Optional: prevent cursor from revealing the text on hover */
    pointer-events: none;
}




@media print {
    .floating-tools,
    .floating-tools button,
    .floating-id-upload,
    .floating-id-upload button,
    .floating-esign,
    .floating-esign button,
    .floating-select,
    .floating-select button,
    .floating-insign,
    .floating-insign button,
    .floating-signatures,
    .floating-signatures button,
    .floating-forms,
    .floating-forms button,
    .floating-jails,
    .floating-jails button,
    .floating-courts,
    .floating-courts button,
    .floating-helpers,
    .floating-helpers button {
        display: none !important;
    }
}


.save-load-buttons {

    border: 1px solid #ccc;
    padding: 2px;
    border-radius: 2px;
    cursor: pointer;
}

.save-load-buttons button {

    width: 100%;
    margin-bottom: 6px;
    border: none;
    border-radius: 2px;
    background: #eee;
    cursor: pointer;

}

.save-load-buttons button:hover {
    background: #d9d9d9;
    cursor: pointer;
}

.inmate-search-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    border-radius: 2px;
    padding: 2px 0;
    cursor: pointer;
}

.link-label {
    flex-grow: 1;
    font-size: 0.9rem;
    color: #000;
    cursor: pointer;
}

.icon-popup {
    background: none;
    border: none;
    cursor: pointer;
    padding: 3px;
    margin-left: 4px;
    display: inline-flex;


}

.icon-popup svg {
    width: 16px;
    height: 16px;
    fill: #007bff;
}

.icon-popup:hover {
    background-color: #e6e6e6;
}

#saveStatus {
    margin-top: 1rem;
    color: green;
    font-weight: bold;
}

#errorMsg {
    margin-top: 1rem;
    color: red;
    font-weight: bold;
}



/* Base styling shared by all floating button containers */
.floating-menu {
  position: fixed;
  top: 53px;
  width: 90px;
  min-height: 20px;
  cursor: pointer;

  border-radius: 30px;
 
  color: #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  overflow: visible; /* allow dropdowns to escape */
  transition: box-shadow 0.2s ease;
}

.floating-menu:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Evenly distribute floating buttons across the top */
.floating-file           { z-index: 10090; }
.floating-status         { left: 20%; z-index: 10092; top: 10px; }
.floating-role-square    { left: 17%; z-index: 10091; }
.floating-esign          { left: 29%; z-index: 10092; top: 10px; }
.floating-esign-updated  { left: 41%; z-index: 10093; }
.floating-select         { left: 53%; z-index: 10094; }
.floating-insign         { left: 65%; z-index: 10095; }
.floating-signatures     { left: 72%; z-index: 10096; }
.floating-forms          { left: 77%; z-index: 10097; }
.floating-helpers        { left: 80%; z-index: 10098; }
.floating-jails          { right: 0%; z-index: 10099; }
.floating-courts         { left: 90%; z-index: 10100; }

/* Handle area used to open each floating menu */
.floating-menu > .float-handle,
.floating-menu > .esign-handle,
.floating-menu > .jails-handle,
.floating-menu > .courts-handle,
.floating-menu > .helpers-handle {
  background: linear-gradient(135deg, #007BFF, #0056b3);
  color: #fff;
  border: none;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  text-align: center;
  padding: 10px 10px;
  width: 90px;
}

/* ==========================================
   2) The dropdown sub-content that opens left
   ========================================== */
   .role-buttons-content,
   .esign-buttons-content,
   .jails-buttons-content,
   .courts-buttons-content,
   .helpers-buttons-content {
     position: absolute;
     left: 0;
     top: 100%;
     width: 100%;
     display: none;
    
     color: #000;
     padding: 4px;

     border-radius: 0 0 4px 4px;
     box-shadow: 0 4px 8px rgba(0,0,0,0.2);
     z-index: 99999;
   }

/* Dropdowns open via JS toggle rather than hover */

/* Button styling inside dropdowns */
.floating-menu .role-buttons-content button,
.floating-menu .esign-buttons-content button,
.floating-menu .jails-buttons-content button,
.floating-menu .courts-buttons-content button,
.floating-menu .helpers-buttons-content button {
  display: block;
  width: 100%;
  border: none;
  color: #000;
  text-align: center;
  cursor: pointer;
}

.floating-menu .role-buttons-content button:hover,
.floating-menu .esign-buttons-content button:hover,
.floating-menu .jails-buttons-content button:hover,
.floating-menu .courts-buttons-content button:hover,
.floating-menu .helpers-buttons-content button:hover {
  background: linear-gradient(135deg, #395573ff, #1d2636);
  color: #fff;
}

/* Ensure inmate search labels turn white on hover */
.floating-menu .jails-buttons-content button:hover .link-label {
  color: #fff !important;
}

/* Keep Payment button text white on hover */
.floating-menu .role-buttons-content button.payment-btn:hover,
.floating-menu .role-buttons-content button.payment-btn:hover .link-label {
  color: #ffffff !important;
}

.floating-menu .role-buttons-content.show,
.floating-menu .esign-buttons-content.show,
.floating-menu .jails-buttons-content.show,
.floating-menu .courts-buttons-content.show,
.floating-menu .helpers-buttons-content.show {
  display: block;
}

/* Nested email dropdown within tools menu */
.email-menu {
  position: absolute;
  left: 100%;
  top: 0;
  width: 130px;
  display: none;
  background: #fff;
  padding: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 4px;
  z-index: 100000;
}
.email-menu.show { display: block; }
.email-menu label {
  display: block;
  margin: 4px 0;
}

/* ========================
   Print hide
   ======================== */
@media print {
  .floating-tools,
  .floating-file,
  .floating-esign,
  .floating-select,
  .floating-insign,
  .floating-signatures,
  .floating-forms,
  .floating-jails,
  .floating-courts,
  .floating-helpers,
  .floating-tools button,
  .floating-file button,
  .floating-esign button,
  .floating-select button,
  .floating-insign button,
  .floating-signatures button,
  .floating-forms button,
  .floating-jails button,
  .floating-courts button,
  .floating-helpers button {
    display: none !important;
  }
}

/* ========================
   For narrow <600px
   (optional adjustments)
   ======================== */
@media (max-width: 600px) {
  .floating-menu {
    width: 90px;
  }
  .floating-menu .role-buttons-content,
  .floating-menu .esign-buttons-content,
  .floating-menu .jails-buttons-content,
  .floating-menu .courts-buttons-content,
  .floating-menu .helpers-buttons-content {
    left: 0;
    width: 65px;
  }
  .floating-menu .role-buttons-content.show,
  .floating-menu .esign-buttons-content.show,
  .floating-menu .jails-buttons-content.show,
  .floating-menu .courts-buttons-content.show,
  .floating-menu .helpers-buttons-content.show {
    display: block !important;
    top: 0;
    width: 100px;
  }
  .email-menu {
    left: 0;
    width: 100px;
  }
}

/* ========================
   For screens <900px
   => show only File and eSign in header
   ======================== */
@media (max-width: 900px) {
  /* Hide all floating menus except File and eSign */
  .floating-role-square,
  .floating-esign-updated,
  .floating-forms,
  .floating-jails,
  .floating-courts,
  .floating-helpers {
    display: none;
  }

  /* Position File and eSign buttons side by side centered */
  .floating-file,
  .floating-esign {
    display: block;
    left: 17%;
  }

  .floating-file {
    top: 50px;
    left: calc(100% - 110px);
  }


  .floating-esign {
    left: calc(50% + 90px);
  }
}

table.bail-conditions-table

{
    font-size: 15px;

}

.terms-table-style 
{ 
    label {
        font-size: 11pt;
        color: #000;
        align-self: flex-end;
    }
}

 /* 
  Ensures labels are above input by default in these breakpoints
  and each .form-group is 33.33% wide (3 across).
  Adjust class names as needed to match your HTML.
*/

/* =========== Base styles for label/input ========== */
.form-group {
    display: inline-block;      /* so we can line them up */
    vertical-align: top;        /* keep them aligned at top */
              /* default: full width on very large screens */
  }
  
  .form-group label {
    display: inline-block;      
       
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    display: inline-block;
    appearance: none;
    -webkit-appearance: none; 

  }
  
  /* =========== RESPONSIVE BREAKPOINTS ========== */
  
  /* 
     At or below 1024px, show 3 groups per row 
     and place label above input 
  */
  @media (max-width: 1024px) {
    .responsive-form {
      display: flex;       /* so we can do multi-column layout */
      flex-wrap: wrap;     /* wrap to next line when out of space */
    }
  
    .responsive-form .form-group {
      width: calc(33.333% - 10px); /* 3 in a row, with small gap */
      margin-right: 10px;          /* spacing horizontally */

    }
  
    /* force label on its own line above the input */
    .responsive-form .form-group label {
      display: block;
    }
  }
  
  /* 
     At or below 900px 
     (Same idea if you want to keep exactly 3 per row. 
      If you want fewer columns, adjust to 50% or 100%.)
  */
  @media (max-width: 900px) {
    .responsive-form .form-group {
      width: calc(33.333% - 10px);
    }
    .responsive-form .form-group label {
      display: block;
    }
  }
  
  /* 
     At or below 764px
     (Again, if you truly want 3 across, keep it the same. 
      Otherwise, you might reduce to 2 across, e.g. 50%.)
  */
  @media (max-width: 764px) {
    .responsive-form .form-group {
      width: calc(33.333% - 10px);
    }
    .responsive-form .form-group label {
      display: block;
    }
  }
  
  /* 
     At or below 600px
     (Keeping it 3 across might be tight on phone screens, 
      but if that’s what you want, keep the same calculation.)
  */
  @media (max-width: 600px) {
    .responsive-form .form-group {
      width: calc(33.333% - 10px);
    }
    .responsive-form .form-group label {
      display: block;
    }
  }  

  /* Hide certain elements when printing */
.no-print {
    /* Normal display on screen; tweak as needed: inline-block, etc. */
    display: inline-block;
  }
  
  @media print {
    .no-print {
      display: none !important;
    }
  }
  
  /* Basic style for the popup buttons */
  .popup-button {
    background: #ccc;
    border: 1px solid #888;
    cursor: pointer;
    padding: 0 5px;
    /* Minimal style that fits your current layout;
       adjust as you wish. */
  }
  
  /* The overlay that darkens the screen */
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none; /* hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .popup-overlay.active {
    display: flex;
  }
  
  /* The white box that appears in the center */
  .popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 2px;
    max-width: 80%;
    position: relative;
  }
  
  /* "X" button in the top-right corner of the popup */
  .popup-close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    background: none;
    border: none;
    font-weight: bold;
  }
  /* 1) Hide default text in #defStatePicker (similar to date approach) */
.hidden-state-field {
    background-color: transparent;
  }
  
  /* 2) The overlay that darkens screen */
  .popup-overlay {
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: none; /* hidden by default */
    justify-content: center; 
    align-items: center;
    z-index: 9999;
  }
  
  /* When we add .active class in JS, show it */
  .popup-overlay.active {
    display: flex;
  }
  
  /* 3) The white box in the center of the overlay */
  .popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 2px;
    width: 400px; /* or whatever max width you want */
    max-height: 80vh;
    overflow-y: auto; /* scroll if many states */
    position: relative;
  }
  
  /* 4) The close button (X) in top-right corner */
  .popup-close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
  }
  
  /* 5) State list: stack or grid your buttons */
  .state-list button {
    display: block;
    width: 100%;
    text-align: left;
    margin: 3px 0;
    cursor: pointer;
  }
  
  /* A simple hover effect */
  .state-list button:hover {
    background-color: #eee;
  }
  /* Hide elements with .no-print when printing */
@media print {
    .no-print {
      display: none !important;
    }
  }
  @media print {
    /* Hide only the hidden clickable overlays */
    #idMarkHiddenTrigger,
    #holdsHiddenTrigger,
    #defStatePicker,
    #defDobDate {
      display: none;
    }
  
    /* Make sure the visible input fields still have bottom borders */
    input[type="text"], 
    input[type="date"] {
      border: none !important;
      border-bottom: 1px solid #000 !important;
    }

label {
  font-size: 13px;
  color: #000;
  ALIGN-SELF: FLEX-END;
}
  }
.promissory-note-text p,
.release-info p {
  font-size: 15px;
}





        footer {
            background-color: #0000006e;
            padding: 20px;
            text-align: center;
            position: relative;
            bottom: 0;
            width: 100%;
        }
        .footer-content {
            max-width: 1200px;
            margin: auto;
        }
        .footer-links {
            list-style-type: none;
            padding: 0;
        }
        .footer-links li {
            display: inline;
            margin-right: 15px;
        }
/* Footer Styling */
footer {
   background-color: #0000006e;
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 1rem;
    margin-top: 10px;
}

footer p {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #f5f5f5;
    place-self: center;
}

/* Footer links styled as a list */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap;
    margin-bottom: 1rem;
    list-style: none; /* Remove bullets */
    padding: 0;
    margin: 0;
}

.footer-links li {
    list-style: none; /* Just in case */
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 5px;
}

.footer-links a:hover {
    background-color: var(--secondary-color);
    color: #02152a;
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    footer {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
    }
}

button.statusBtn,
a.statusBtn,
select.statusBtn {
  background: linear-gradient(135deg, #8ec5ff, #5aa3f7);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  text-decoration: none;
}

button.statusBtn:hover,
a.statusBtn:hover,
select.statusBtn:hover {
  background: linear-gradient(135deg, #5aa3f7, #438ad6);
  transform: translateY(-2px);
}

/* General button styles used across list pages and dashboard */
button.btn,
a.btn,
button.button,
a.button {
  background: linear-gradient(135deg, #007BFF, #0056b3);
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  margin: 5px;
}

button.btn:hover,
a.btn:hover,
button.button:hover,
a.button:hover {
  background: linear-gradient(135deg, #395573ff, #1d2636);
  transform: translateY(-2px);
}

button.receipt-btn {
  background: linear-gradient(135deg, #28a745, #218838);
}
button.receipt-btn:hover {
  background: linear-gradient(135deg, #218838, #19692c);
}



  /* 1) Define a highlight style for the active field */
  .active-field {
    background-color: #ffffcc; /* pale yellow */
    border: 2px solid #15198266; /* orange border */
    outline: none; /* remove default focus outline */
  }

  /* 2) When printing, remove/hide the highlight entirely */
  @media print {
    .active-field {
      display: none !important;
    }
  }

/* Buttons used in the e-sign recipient overlay */
.esign-select {
  display: block;
  margin-bottom: 0.5rem;
  width: 100%;
  cursor: pointer;
  background: linear-gradient(135deg, #007bff, #1d2636);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background 0.3s, transform 0.2s;
}
.esign-select:hover {
  background: linear-gradient(135deg, #007bff, #1d2636);
  transform: translateY(-2px);
}
.esign-select.selected,
.esign-select.active {
  background: linear-gradient(135deg, #007bff, #1d2636);
  color: #fff;
}

/* Utility buttons used on prospect page */
.action-row {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.action-button {
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

.action-button:hover {
  background: linear-gradient(135deg, #395573ff, #1d2636);
}

/* Checkout page styles */
.checkout-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.checkout-summary p {
    margin-bottom: .5rem;
    font-size: 1rem;
}
.pay-options {
    margin: 1rem 0;
}
.pay-options label {
    margin-left: .25rem;
}
#amount-display {
    font-size: 1.25rem;
    margin: 1rem 0;
    font-weight: bold;
}

/* Enhanced receipt layout */
.receipt-container {
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    max-width: 850px;
    margin: 1rem auto;
}

.payment-plan-info {
    margin: 1rem 0;
}

.payment-plan-info button {
    margin-top: .5rem;
}

/* Hide layout style controls */
.layout-controls{display:none;}


.reference-form .overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start; /* prevent content from being clipped at the top */
    justify-content: center;
    overflow-y: auto;
    padding: 1rem;
    box-sizing: border-box;
}

.reference-form .overlay-inner {
    background: rgba(255,255,255,0.95);
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

.reference-form form { display: none; }
.reference-form #formWrap { display: none; }
.reference-form .show { display: block; }
.reference-form label { display: block; margin-top: .5rem; }
.reference-form input { width: 100%; padding: .5rem; border: solid 1px #000; border-radius: 20px; }
.reference-form .instructions { font-size: 0.9rem; margin-bottom: 1rem; }
.reference-form button { margin-top: 1rem; padding: .5rem 1rem; }
.reference-form .duplicateMessages { color: red; background: #fff; font-size: 0.9rem; margin-top: .5rem; display: none; }
.reference-form .duplicate-field { border: 2px solid red !important; }

/* Ensure Google Places Autocomplete dropdown is visible above overlays */
.pac-container {
    z-index: 110000 !important;
}
.table-action-row th {
    height: 2.4em;
    text-align: left;
    vertical-align: middle;
}
.action-icon {
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 0.5em;
    font-size: 1rem;
}

/* Remove traditional delete controls; trash icon handles deletion */
.dashboard-page .delete-button,
.dashboard-page button[id^="bulkDelete"],
.dashboard-page tr:not(.table-action-row) .delete-btn {
    display: none !important;
}
#payment-message {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-weight: 500;
}
#payment-message.success { background-color: #d4edda; color: #155724; display: block; }
#payment-message.error { background-color: #f8d7da; color: #721c24; display: block; }
#payment-message.pending { background-color: #fff3cd; color: #856404; display: block; }

.delivery-select { margin-right: 0.25rem; }
.deliver-status { margin-left: 0.5rem; font-size: 0.8rem; }
.deliver-status.success { color: #155724; }
.deliver-status.error { color: #721c24; }

.nav-icon {
    width: 24px;
    height: 24px;
}

.icon-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    padding: 0.5em;
}

.icon-bar img.page-icon {
    width: 24px;
    height: 24px;
}

.action-icon img {
    width: 1em;
    height: 1em;
}

/* Delete case buttons */
.delete-case-btn {
    background-color: red;
    color: #fff;
    border: none;
    padding: 0.25em 0.5em;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.overlay-delete-case-btn {
    background: none;
    border: none;
    cursor: pointer;
    align-self: flex-end;
}

.svg-spinner {
    display: none;
    width: 1em;
    height: 1em;
    margin-left: 0.5em;
    vertical-align: middle;
}

/* Time stamp within floating save button */
.timestamp {
    position: absolute;
    right: 2em; /* leave space for checkmark */
    top: 50%;
    transform: translateY(-50%);
    display: none;
    font-size: 0.7em;
    background-color: inherit;
    padding: 0 4px;
    border-radius: 3px;
}

#beginGuidedBtn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

#agreeBtn.agreed {
    background: #28a745;
    color: #fff;
}

#approveDocumentBtn.approved {
    background: #28a745;
    color: #fff;
    cursor: default;
}

#denyDocumentBtn.denied {
    background: #dc3545;
    color: #fff;
    cursor: default;
}

.sig-applied-tip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 4px 6px;
    font-size: 0.75rem;
    border-radius: 3px;
    margin-top: 4px;
    white-space: nowrap;
    display: none;
}
.sig-applied-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0,0,0,0.75);
}
#floatingSaveBtn .checkmark {
    position: absolute;
    right: 0.5em;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    color: inherit;
}
.button-spinner {
    width: 1em;
    height: 1em;
    border: 2px solid #ccc;
    border-top-color: #ff4d00;
    border-radius: 50%;
    animation: spin 0.6s linear infinite, spinnerColor 2s forwards;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

button.loading {
    position: relative;


@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes spinnerColor {
    from { border-top-color: #ff4d00; }
    to { border-top-color: #04FF48; }
}
.sortable { cursor: pointer; }
.sort-asc::after { content: ' \25B2'; }
.sort-desc::after { content: ' \25BC'; }

/* Ensure overlays remain readable on small screens */

@media screen and (max-width: 900px) {
    .overlay-content,
    .overlayContent,
    .modal-content,
    .reference-form .overlay-inner,
    .popup-content {
        width: 90% !important;
        max-width: 90% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
    }
}

.contract-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
    justify-items: center;
}
.contract-card {
    width: 100%;
    height: 150px;
    border: 1px solid #ccc;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.contract-card img {
    width: 100%;
    height: 75px;
    object-fit: cover;
}
.contract-card .card-body {
    padding: 2px;
    line-height: 1.1;
}


.pagination-controls{
    margin:1rem 0;
    display:flex;
    justify-content:center;
    gap:0.25rem;
    width:100%;
}
.pagination-controls button{
    margin:0 2px;
    padding:2px 6px;
}
.pagination-controls button:disabled{
    background: linear-gradient(135deg, #0056b3, #004999);
    color:#fff;
    cursor: default;
}

input#esignPrepName {
   border: solid .2px black;
  border-radius: 3px;
}

input#esignPrepAgentName {
    border: solid .2px black;
    border-radius: 3px;

}

.case-group {
    margin: 1em 0;
    padding: 0.5em;
    border: 1px solid #ccc;
}

.case-group legend {
    font-weight: bold;
}
}

/* === Sidebar Styles from bail_form.php === */
        /* =============== SIDEBAR STYLES =============== */
        #sidebar {
            position: fixed;
            top: 0;
            left: 0;
            width: 110px;
            height: 100%;
            padding: 50px 15px 15px;
            background: #333;
            color: #fff;
            box-shadow: 1px 0 5px rgba(0,0,0,0.1);
            transform: translateX(-110px);
            transition: transform 0.3s ease;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        #sidebar.locked {
            pointer-events: none;
            opacity: 0.6;
        }

        #sidebar.open {
            transform: translateX(0);
        }

        #sidebar button {
            display: block;
            width: 100%;
            margin: 0;
            padding: 3px;
            font-size: 14px;
            cursor: pointer;
            border-radius: 30px;
        }


        #sidebar .floating-esign,
        #sidebar .floating-select,
        #sidebar .floating-cosigners,
        #sidebar .floating-insign,
        #sidebar .floating-signatures,
        #sidebar .floating-forms,
        #sidebar .floating-jails,
        #sidebar .floating-courts,

        #sidebar .floating-helpers {
            position: relative;
            left: auto;
            margin: 0;
        }

        #sidebar .floating-esign {
            margin-top: 0;
        }

        /* ========================== ROLE BUTTONS (SIDEBAR) ========================== */
        .role-buttons {
            position: fixed;
            top: 0;
            left: 0;
            width: 110px;
            height: 100%;
            border-radius: 5px;

            border-right: 1px solid #ddd;
            padding: 14.9px;
            box-shadow: 1px 0 5px rgba(0, 0, 0, 0.1);
 
            z-index: 1000;
            transform: translateX(0);
            transition: transform 0.3s ease;
            color: #fff;
        }

        .role-buttons.closed {
            transform: translateX(-110px);
            /* same as width of the sidebar */
        }

        .role-buttons button {
            display: block;
            width: 100%;
            margin-bottom: 10px;
            padding: 8px;
            font-size: 14px;
            cursor: pointer;
        }


        /* Hide the entire floating container when printing */
        @media print {
            .floating-esign {
                display: none !important;
            }
        }



        /* The small square toggle button (when toolbar is hidden) */
        .toggle-sidebar-btn {
            position: fixed;
            top: 10px;
            left: 10px;
            width: 36px;
            /* small square */
            height: 36px;
            background: #333;
            color: #fff;
            font-size: 20px;
            border: none;
            border-radius: 3px;
            cursor: pointer;
            z-index: 1100;
            /* above the sidebar */
            display: none;
            /* hidden by default; show it on smaller screens or when closed */
        }

        /* Show the toggle button when the sidebar is closed */
        .role-buttons.closed~#sidebarToggleBtn {
            display: block;
        }

        /* The close button inside the toolbar itself */
        .close-toolbar-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            left: auto;
            background: #fff;
            color: #333;
            border: 1px solid #333;
            font-size: 24px;
            font-weight: bold;
            cursor: pointer;
        }

        .close-toolbar-btn:hover {
            color: red;
        }


#savedInitImage,
#savedInitials {
    position: relative;
    top: 100px;
}
