html {
    font-size: 16px;
    background-color: whitesmoke;
    height: 100%;
    height: 100dvh;
    overflow-x: hidden;
}

body {
    width: 100%;
    margin: 0;
    background-color: #f8f9fa;
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* App shell: footer stays in flow; page scrolls only when content needs it */
#wrapper,
#content-wrapper {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

#content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

footer,
footer.sticky-footer {
    flex-shrink: 0;
    margin-top: auto;
    background-color: #FFF;
}

@media (max-width: 991px) {
    .modal-expand-width {
        min-width: 90%;
    }
}

.login-tag {
    font-size: small;
}

.login-body {
    height: 100%;
}

.wave-background {
    background-size: cover;
    margin-bottom: 0px;
    background-position: bottom;
    background-image: url(../images/bg_wave_web.png);
    background-repeat: no-repeat;
    background-position-x: calc(100% + 100px);
}

.barcode-img {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.login-img {
    max-width: 325px;
    height: auto;
    width: 100%;
}

.env-img-picker {
    max-width: 50px;
    height: auto;
    width: 100%;
}

.login-container {
    width: 100%;
    max-width: 850px;
}

@media (max-width: 767px) {
    .login-container {
        width: 100%;
        max-width: 600px;
    }

    .login-img {
        max-width: 250px;
        height: auto;
        width: 100%;
    }
}

.content-height {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
}

.content-container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding: 15px;
    background: var(--cp-surface, #ffffff);
    color: var(--cp-text, #1A1A1A);
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 1px 1px 1px 0px #E4E7EB;
    border: 1px solid #f5f5f5;
}

html[data-theme="dark"] .content-container {
    box-shadow: var(--shadow-1);
    border-color: var(--cp-border);
}

html[data-theme="dark"] .content-container .input-group-text {
    background: var(--bg-muted);
    color: var(--cp-text);
    border-color: var(--cp-border);
}

html[data-theme="dark"] .content-container a {
    color: var(--cp-secondary-hover);
}

html[data-theme="dark"] .susa-navy-btn {
    background: var(--cp-secondary);
    border-color: var(--cp-secondary);
}

html[data-theme="dark"] .susa-navy-btn:hover {
    background: var(--cp-secondary-hover);
}

html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-muted) inset;
    -webkit-text-fill-color: var(--cp-text);
}

html[data-theme="dark"] .copyright .text-muted {
    color: var(--cp-text-muted) !important;
}

.content-container-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
}

.content-container-title {
    font-size: 24px;
    margin: 0px 8px 0px 0px;
    color: #ff9e1b;
    background: #fff;
    text-align: left;
}

.content-container-sub-title {
    font-size: 15px;
    font-weight: lighter;
    padding: 0px;
    color: #C4C4C4;
    background: #fff;
    text-align: left;
}

.transaction-info-square {
    padding: 5px;
    min-width: 80px;
    max-width: fit-content;
    border-radius: 10px;
}

.transaction-info-square-text {
    font-size: xx-large;
    color: white;
}

.no-underline {
    text-decoration: none;
}

input[type=number]::-webkit-inner-spin-button {
    opacity: 1;
}

---------------------------------------------------
Forms
-----------------------------------------------------

.primary-label {
    color: #A9AAAF;
}

---------------------------------------------------
Colors
-----------------------------------------------------
(Colors unchanged � keeping your palette intact)

.susa-navy-f {
    color: #27348B;
}

.susa-blue-f {
    color: #009EE3;
}

.susa-purple-f {
    color: #683E82;
}

.susa-red-f {
    color: #CD3A45;
}

.susa-orange-f {
    color: #EE7203;
}

.susa-yellow-f {
    color: #F3C200;
}

.susa-green-f {
    color: #047D5C;
}

.susa-grey-light-f {
    color: #D4D4D7;
}

.susa-grey-medium-f {
    color: #A9AAAF;
}

.susa-grey-dark-f {
    color: #7D7F87;
}

.nav-grey-f {
    color: #303b46;
}

.susa-chart-orange-f {
    color: #ea6a47;
}

.susa-chart-green-f {
    color: #b3c100;
}

.susa-chart-blue-f {
    color: #1c4e80;
}

.susa-chart-teal-f {
    color: #a5d8dd;
}

.susa-chart-grey-f {
    color: #7e909a;
}

Background colors
.susa-navy-b {
    background: #27348B;
}

.susa-blue-b {
    background: #009EE3;
}

.susa-purple-b {
    background: #683E82;
}

.susa-red-b {
    background: #CD3A45;
}

.susa-orange-b {
    background: #EE7203;
}

.susa-yellow-b {
    background: #F3C200;
}

.susa-green-b {
    background: #047D5C;
}

.susa-grey-light-b {
    background: #D4D4D7;
}

.susa-grey-medium-b {
    background: #A9AAAF;
}

.susa-grey-dark-b {
    background: #7D7F87;
}

.susa-grey-xtra-dark-b {
    background: #52555F;
}

.susa-chart-orange-b {
    background: #ea6a47;
}

.susa-chart-green-b {
    background: #b3c100;
}

.susa-chart-blue-b {
    background: #1c4e80;
}

.susa-chart-teal-b {
    background: #a5d8dd;
}

.susa-chart-grey-b {
    background: #7e909a;
}

.nav-grey-b {
    background: #303b46;
}

.susa-red-inner-border {
    box-shadow: inset -2px 0 0 #CD3A45, inset 0 -2px 0 #CD3A45, inset 2px 0 0 #CD3A45, inset 0 2px 0 #CD3A45;
}

.child-row-bg {
    background: #dee2e6 !important;
}

.susa-navy-btn {
    color: #fff;
    background: #27348B;
}

    .susa-navy-btn:hover {
        color: #fff;
        background: #009EE3;
    }

---------------------------------------------------
SPINNER
-----------------------------------------------------

#loading-spinner {
    height: 100%;
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999999;
}

#loading-spinner .backdrop {
    background-color: lightgray;
    opacity: .7;
    height: 100%;
    width: 100%;
}

#loading-spinner .loading-spinner-content {
    position: fixed;
    top: 50%;
    left: 50%;
    background-color: #e6e6e6;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #bbb;
    font-size: 2rem;
}

.icn-spinner {
    animation: spin-animation 1.0s infinite;
    display: inline-block;
}

@keyframes spin-animation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(359deg);
    }
}

---------------------------------------------------
CLICKABLE GRID
-----------------------------------------------------

.clickableGrid {
    width: 100%;
}

.clickableGrid tr:hover {
    cursor: pointer;
}

.clickable {
    cursor: pointer;
}

---------------------------------------------------
LOADING OVERLAY
-----------------------------------------------------

.loading-state {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 10px solid #ddd;
    border-top-color: #009EE3;
    animation: loading 1s linear infinite;
}

@keyframes loading {
    to {
        transform: rotate(360deg);
    }
}

Purple outline button
.btn-outline-purple {
    --bs-btn-color: #6f42c1;
    --bs-btn-border-color: #6f42c1;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #6f42c1;
    --bs-btn-hover-border-color: #6f42c1;
    --bs-btn-focus-shadow-rgb: 111,66,193;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #5a32a3;
    --bs-btn-active-border-color: #5a32a3;
    --bs-btn-border-radius: 50rem;
}

---------------------------------------------------
GLOBAL ACTION BUTTON SPACING (B)
-----------------------------------------------------

.actions-gap {
    display: inline-flex !important;
    align-items: center !important;
    gap: .5rem !important;
}

---------------------------------------------------
DATATABLES CONTAINER POLISH (C)
-----------------------------------------------------

.dataTables_wrapper {
    background: #ffffff;
    border-radius: 10px;
    padding: 15px 15px 5px 15px;
    margin-bottom: 15px;
    box-shadow: 1px 1px 1px 0px #E4E7EB;
    border: 1px solid #f5f5f5;
}

---------------------------------------------------
DATATABLES TOOLBAR ALIGNMENT (A)
-----------------------------------------------------

.dt-container .dt-buttons {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 0;
}

.dataTables_wrapper .dataTables_filter input[type="search"] {
    max-width: 260px;
}

---------------------------------------------------
STICKY DATATABLE HEADERS (D)
-----------------------------------------------------

table.dataTable thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 11;
}

---------------------------------------------------
DATATABLE FOOTERS + GROUP FOOTERS (E)
-----------------------------------------------------

table.dataTable tr.dt-group-footer {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0,0,0,.08);
}

table.dataTable tr.dt-group-footer td {
    padding: .5rem .75rem;
}

table.dataTable tfoot th,
table.dataTable tfoot td {
    background-color: #f8f9fa;
    border-top: 2px solid rgba(0,0,0,.15);
    font-weight: 600;
}

table.dataTable tfoot .text-end,
table.dataTable tr.dt-group-footer .text-end {
    text-align: right !important;
}

table.dataTable tfoot.dt-footer-empty th,
table.dataTable tfoot.dt-footer-empty td {
    opacity: .85;
}

PRINT FALLBACK
@media print {
    table.dataTable thead th {
        border-bottom: 2px solid #000 !important;
    }

    table.dataTable tfoot th, table.dataTable tfoot td {
        border-top: 2px solid #000 !important;
        font-weight: 700 !important;
    }

    table.dataTable tbody tr.dt-group-row {
        background: #f0f0f0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

        table.dataTable tbody tr.dt-group-row td {
            border-top: 1px solid #999 !important;
            border-bottom: 1px solid #999 !important;
        }

    table.dataTable tbody tr.dt-group-summary td {
        border-top: 1px dashed #777 !important;
    }

    table.dataTable tbody tr.dt-group-row,
    table.dataTable tbody tr.dt-group-summary,
    table.dataTable tbody tr[data-group-path] {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

Keep the top toolbar (length/buttons/search) above the sticky header
.dataTables_wrapper > .row:first-child {
    position: relative;
    z-index: 30;
    higher than thead th
}

Lower (or at least not overly high) sticky header stacking level
table.dataTable thead th {
    z-index: 10;
    was 11;
    keep it below toolbar
}

Extra safety: explicitly raise the Search wrapper and the input itself
.dataTables_wrapper .dataTables_filter {
    position: relative;
    z-index: 31;
}

.dataTables_wrapper .dataTables_filter input[type="search"] {
    position: relative;
    z-index: 32;
}

/* Auto-added row highlight — fades out after animation completes */
.branch-row-new {
    border-left: 3px solid var(--cp-primary) !important;
    background-color: color-mix(in srgb, var(--cp-primary) 12%, #fff) !important;
    transition: background-color 2.5s ease, border-left-color 2.5s ease;
}

    .branch-row-new.branch-row-fade {
        border-left-color: transparent !important;
        background-color: transparent !important;
    }
