.page-title {
    padding-top: 15px;
    padding-bottom: 15px
}

.dataTables_wrapper .dataTables_length {
    margin-bottom: 0px;
}


.top-form-card {
    padding: 8px 18px;
}

.top-btn-group button {
    margin: 0px !important;
}


.data-body {
    padding: 15px 18px;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #D8DEE8 !important;
    border-radius: 6px !important;
    padding: 4px 26px 4px 10px !important;
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3e%3cpath fill='none' stroke='%236C7A92' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px 6px;
    color: #2F3A52;
    font-size: 13px;
    height: 32px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.dataTables_wrapper .dataTables_length select:focus {
    outline: none;
    border-color: #2B5FA4 !important;
    box-shadow: 0 0 0 0.15rem rgba(43, 95, 164, 0.15);
}
.dataTables_wrapper .dataTables_length label {
    color: #6C7A92;
    font-size: 13px;
    font-weight: 500;
}


.custom-input {
    margin-top: 0px;
}

.custom-input.theme-form input[type=text],
.custom-input.theme-form select {
    background: #fff;
    border-color: #c1c1c1;
    border: #c1c1c1 solid 1px;
    padding: 5px;
    color: #000;
    font-size: 13px;
}

.custom-input .col-md-12 {
    margin-top: 0px;
}

.custom-input .form-label {
    margin: 0px;
}


.custom-input .select2-container .select2-selection--single {
    height: 33px !important;
}

.custom-input .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 17px;
}

.custom-input .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 4px;
}



.city-frm-btn {
    text-align: right;
}

.top-btn-group {
    text-align: right;
}


#relation_listing_wrapper.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody {
    max-height: 50vh !important;
}


#addCityForm .invalid-feedback {
    color: var(--bs-form-invalid-color) !important;
}

#addCityForm .form-label sup.error {
    color: var(--bs-form-invalid-color) !important;
}


.custom-input.theme-form input::placeholder {
    color: #a5a5a5;
}

.custom-input .col-6 .btn.m-2,
.custom-input .col-4 .btn.m-2,
.custom-input .col-3 .btn.m-2 {
    margin-top: 28px !important;
}

/* Add extra breathing room between the +/- button and the S.No / row content.
   Vendor sets padding-left:30px which only leaves ~2px gap with our 22px badge. */
table.dataTable.dtr-inline.collapsed > tbody > tr[role=row] > td:first-child,
table.dataTable.dtr-inline.collapsed > tbody > tr[role=row] > th:first-child {
    padding-left: 40px !important;
}

/* DataTable expand toggle — soft rounded square badge with FontAwesome plus / minus
   inside. Modern Material-3 style: 22px chip, 6px radius, gradient surface,
   subtle inset highlight, smooth scale on hover.  */
table.dataTable.dtr-inline.collapsed > tbody > tr[role=row] > td:first-child:before,
table.dataTable.dtr-inline.collapsed > tbody > tr[role=row] > th:first-child:before {
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    line-height: 22px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(180deg, #36C156 0%, #2BA84A 100%);
    box-shadow:
        0 2px 4px rgba(43, 168, 74, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
    /* FontAwesome 6 Free Solid */
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
    font-size: 11px;
    color: #ffffff;
    text-align: center;
    text-indent: 0 !important;
    cursor: pointer;
    transition: background .15s ease, box-shadow .18s ease, transform .15s ease;
    content: "\f067" !important;   /* fa-plus */
}
table.dataTable.dtr-inline.collapsed > tbody > tr[role=row] > td:first-child:hover:before,
table.dataTable.dtr-inline.collapsed > tbody > tr[role=row] > th:first-child:hover:before {
    background: linear-gradient(180deg, #2EAE4F 0%, #248F3F 100%);
    box-shadow:
        0 4px 8px rgba(43, 168, 74, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
    transform: translateY(-50%) translateY(-1px);
}
table.dataTable.dtr-inline.collapsed > tbody > tr[role=row] > td:first-child:active:before,
table.dataTable.dtr-inline.collapsed > tbody > tr[role=row] > th:first-child:active:before {
    transform: translateY(-50%);
    box-shadow: 0 1px 2px rgba(43, 168, 74, 0.35);
}

/* Expanded (parent) state — same shape, red gradient, minus icon */
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td:first-child:before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th:first-child:before {
    background: linear-gradient(180deg, #EC5D5D 0%, #E04848 100%);
    box-shadow:
        0 2px 4px rgba(224, 72, 72, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
    content: "\f068" !important;   /* fa-minus */
}
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td:first-child:hover:before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th:first-child:hover:before {
    background: linear-gradient(180deg, #DB4040 0%, #B53636 100%);
    box-shadow:
        0 4px 8px rgba(224, 72, 72, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
}


.img-box {
    position: relative;
}

.img-box {
    background: #fff;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 100%;
}

.photo-edit {
    position: absolute;
    background: #fff;
    padding: 5px;
    border-radius: 100%;
    width: 24px;
    height: 24px;
    font-size: 11px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
    text-align: center;
    right: -5px;
    top: 48px;
    cursor: pointer;
}



.invalid-feedback,
.error {
    color: #ff0000 !important;
}

.dataTables_wrapper table.dataTable thead th {
    white-space: nowrap;
}

.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>td {
    word-break: break-all;
}

table.dataTable>tbody>tr.child span.dtr-title {
    display: inline-block;
    min-width: 250px;
}


.hidden-important {
    display: none !important;
}





.select-box {
    width: 100% !important;
}

.selected-box {
    max-width: 100% !important;
    padding: 8px 12px;
    border: 1px solid #878787;
    border-radius: 5px;
    background: #fff;
}

.selected-box::after {
    width: 24px;
    right: 0px;
    top: 8px;
}

.search-box input {
    width: 100%;
    border: 1px solid #878787;
    border-radius: 5px;
    background: #fff;
    max-width: 100%;
    padding: 8px 16px;
}

.select-box .options-container.active {
    max-width: 100%;
}

.loader-wrapper-new {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-wrapper-new img {
    width: 50px;
    height: 50px;
}

.login-card .logo {
    margin-bottom: 0px;
}

.login-card .logo img {
    max-width: 100%;
    height: auto !important;
}



div .action .view a {
    color: #17A600;
}

i.fa-regular.fa-eye.fa-fw {
    color: skyblue;
}

i.fa-solid.fa-key.fa-fw {
    color: orange;
}

.custom-align label.form-label {
    width: 150px;
    flex: 0 0 150px;
}


.login-card .login-main {
    border-radius: 0px !important
}

.profile-dropdown img {
    height: 40px;
    border-radius: 100% !important;
}



.select2-container .dropdown-wrapper {
    display: none;
}

.select2-container .select2-selection--single {
    height: 38px !important;
    border-radius: 6px !important;
}

.select2-container--default .select2-selection--single {
    background: #fff !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 17px;
}

.select2-container.select2-container--focus .select2-selection--single {
    border-color: var(--bs-form-valid-border-color) !important;
}




.edit-profile .row .card {
    height: 100%;
}



#branchFilterForm .row .col-md-4 {
    margin-bottom: 20px;
}

#statusChangeForm label {
    margin: 0 10px 0 0;
}


.form-control.custom-disabled {
    background-color: var(--bs-secondary-bg);
    opacity: 0.5;
    pointer-events: none;
    /* Prevent interaction */
    cursor: not-allowed;
    /* Show a not-allowed cursor */
}

.radiobutton-primary.custom-disabled {
    background-color: var(--bs-secondary-bg);
    opacity: 0.5;
    pointer-events: none;
    /* Prevent interaction */
    cursor: not-allowed;
    /* Show a not-allowed cursor */
}

.select-disabled,
.select2-container--default .select2-selection--single.select-disabled {
    pointer-events: none;
    background-color: var(--bs-secondary-bg) !important;
    cursor: not-allowed;
    opacity: 0.5;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    display: block;
    padding-left: 0px !important;
}

#changePasswordForm .btn-outline-secondary {
    background-color: var(--white);
    color: #212529;
    border-radius: 0px;
    border: 1px solid var(--solid-border) !important;
    border-radius: 0px 6px 6px 0px;
}



/* .square-timeline li {text-align: center; font-size: 16px; } */


.edit-profile .card .card-footer {
    border-top: none;
}


#accordionPanelsStayOpenExample .accordion-body {
    padding-right: 0px;
}

/* .accordion-body .accordion-item .accordion-header .accordion-button {background: none !important; } */

div.dataTables_wrapper div.dataTables_length select {
    height: auto;
    min-height: auto;
}

.card.filter-card {
    margin-bottom: 18px;
}



.square-timeline .timeline-event .timeline-event-wrapper .timeline-thumbnail {
    padding: 2px 10px;
}

.square-timeline .timeline-event .timeline-event-wrapper {
    padding: 0px 0 10px 14px;
}

.text-muted .action-text {
    color: var(--theme-default);
}

.text-muted .action-text:hover {
    color: var(--bs-secondary-color) !important
}


#masterLogFilterForm .col-md-4 {
    margin-bottom: 20px;
}

.page-sidebar .sidebar-menu .sidebar-list .sidebar-submenu>li.active .submenu-title.active {
    color: var(--theme-default);
}


.ecommerce-dashboard .col-md-3 {
    margin-bottom: 24px;
}

/* =============================================================
   Dashboard summary cards (Branches / Leads / Applications etc.)
   Premium look with subtle gradient surface, soft shadow, hover lift,
   and a colored left-edge accent bar that distinguishes each card.
   ============================================================= */
/* Make the col + anchor fill the row height so the card's height:100% has
   something to stretch against (otherwise the first card without an empty
   .card-body shrinks to its content). */
.ecommerce-dashboard .col-md-3 { display: flex; }
.ecommerce-dashboard .col-md-3 > a,
.ecommerce-dashboard .col-md-3 > a > .card.progress-items {
    width: 100%;
    height: 100%;
}

.ecommerce-dashboard .card.progress-items {
    height: 100%;
    min-height: 116px;        /* baseline height — every card matches the tallest */
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid #E7ECF3 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #FFFFFF 0%, #F7FAFD 100%);
    box-shadow: 0 2px 8px rgba(31, 46, 74, 0.05);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.ecommerce-dashboard .card.progress-items::before {
    /* coloured left accent — defaults to brand blue, overridden per-card below */
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 4px;
    background: #2B5FA4;
    border-radius: 12px 0 0 12px;
    transition: width .22s ease;
}
.ecommerce-dashboard a:hover .card.progress-items,
.ecommerce-dashboard .card.progress-items:hover {
    transform: translateY(-3px);
    border-color: #C4D5EC !important;
    box-shadow: 0 10px 24px rgba(43, 95, 164, 0.10);
}
.ecommerce-dashboard a:hover .card.progress-items::before,
.ecommerce-dashboard .card.progress-items:hover::before {
    width: 6px;
}

/* Card header — better breathing room */
.ecommerce-dashboard .card.progress-items .card-header {
    background: transparent;
    border: 0 !important;
    padding: 18px 18px 16px !important;
}

/* Title */
.ecommerce-dashboard .card.progress-items h5 {
    color: #6C7A92;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin: 0;
}

/* Big value */
.ecommerce-dashboard .card.progress-items h3 {
    color: #1F2E4A;
    font-size: 26px !important;
    font-weight: 700 !important;
    margin-top: 12px !important;
    line-height: 1.1;
}

/* Icon badge — bigger pill, soft tinted background, brand blue icon */
.ecommerce-dashboard .card.progress-items .flex-shrink-0 {
    width: 50px;
    height: 50px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #EDF2FA 0%, #DCE8F8 100%) !important;
    color: #2B5FA4;
    transition: transform .22s ease, background .22s ease;
}
.ecommerce-dashboard .card.progress-items:hover .flex-shrink-0 {
    transform: scale(1.06) rotate(-3deg);
}
.ecommerce-dashboard .card.progress-items .flex-shrink-0 i {
    font-size: 22px !important;
    color: #2B5FA4;
}

/* Per-card accent palette — distinguish each card with its own subtle color */
.ecommerce-dashboard .row > .col-md-3:nth-child(1) .card.progress-items::before { background: #2B5FA4; }   /* blue */
.ecommerce-dashboard .row > .col-md-3:nth-child(2) .card.progress-items::before { background: #2FA463; }   /* green */
.ecommerce-dashboard .row > .col-md-3:nth-child(3) .card.progress-items::before { background: #E88B2A; }   /* amber */
.ecommerce-dashboard .row > .col-md-3:nth-child(4) .card.progress-items::before { background: #8E5BC6; }   /* purple */
.ecommerce-dashboard .row > .col-md-3:nth-child(5) .card.progress-items::before { background: #DC586A; }   /* coral */
.ecommerce-dashboard .row > .col-md-3:nth-child(6) .card.progress-items::before { background: #1AA9A9; }   /* teal */

.ecommerce-dashboard .row > .col-md-3:nth-child(2) .card.progress-items .flex-shrink-0,
.ecommerce-dashboard .row > .col-md-3:nth-child(2) .card.progress-items .flex-shrink-0 i { color: #2FA463; }
.ecommerce-dashboard .row > .col-md-3:nth-child(2) .card.progress-items .flex-shrink-0 { background: linear-gradient(135deg, #E5F5EC 0%, #CFEBD9 100%) !important; }

.ecommerce-dashboard .row > .col-md-3:nth-child(3) .card.progress-items .flex-shrink-0,
.ecommerce-dashboard .row > .col-md-3:nth-child(3) .card.progress-items .flex-shrink-0 i { color: #C06E13; }
.ecommerce-dashboard .row > .col-md-3:nth-child(3) .card.progress-items .flex-shrink-0 { background: linear-gradient(135deg, #FDF1E3 0%, #FBE3C5 100%) !important; }

.ecommerce-dashboard .row > .col-md-3:nth-child(4) .card.progress-items .flex-shrink-0,
.ecommerce-dashboard .row > .col-md-3:nth-child(4) .card.progress-items .flex-shrink-0 i { color: #6B40A1; }
.ecommerce-dashboard .row > .col-md-3:nth-child(4) .card.progress-items .flex-shrink-0 { background: linear-gradient(135deg, #F1E9FA 0%, #E1D2F4 100%) !important; }

.ecommerce-dashboard .row > .col-md-3:nth-child(5) .card.progress-items .flex-shrink-0,
.ecommerce-dashboard .row > .col-md-3:nth-child(5) .card.progress-items .flex-shrink-0 i { color: #B43E4F; }
.ecommerce-dashboard .row > .col-md-3:nth-child(5) .card.progress-items .flex-shrink-0 { background: linear-gradient(135deg, #FCE6E9 0%, #F8CDD3 100%) !important; }

.ecommerce-dashboard .row > .col-md-3:nth-child(6) .card.progress-items .flex-shrink-0,
.ecommerce-dashboard .row > .col-md-3:nth-child(6) .card.progress-items .flex-shrink-0 i { color: #117C7C; }
.ecommerce-dashboard .row > .col-md-3:nth-child(6) .card.progress-items .flex-shrink-0 { background: linear-gradient(135deg, #DAF1F1 0%, #B8E4E4 100%) !important; }

/* Anchor wrapper — remove default link blue underline so card looks like a clean panel */
.ecommerce-dashboard a {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

#loadMoreButton {
    margin: 20px auto;
    display: block;
}













.toggle-icon {
    cursor: pointer;
    padding: 4px 10px;
}

.accordion-pane-btn {
    text-align: right;
}

#accordionPanelsStayOpenExample .accordion-item {
    border: none;
    background-color: #f8f9fa;
    margin-bottom: 10px;
}

#accordionPanelsStayOpenExample .accordion-header {
    padding: 15px;
    background-color: #ddf7f5;
}

#accordionPanelsStayOpenExample.accordion .accordion-item {
    border: none;
}

body,
.page-body {
    background-color: #EEF2F8 !important
}


.no-available {
    text-align: center;
}

.no-available span {
    background: url(./images/out-of-stock.png) 0 0 no-repeat;
    display: inline-block;
    padding: 3px 0 5px 32px;
}

table#cron.dataTable input {
    border: 1px solid #6a71854d !important
}

.form-switch .form-check-input:focus {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:checked {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.btn:disabled,
.btn.disabled,
fieldset:disabled .btn {
    pointer-events: none;
    background-color: #43B9B2;
    border-color: #43B9B2;
    color: #ffffff;
}

.datepicker-container.datepicker-dropdown.datepicker-top-left {
    z-index: 1600 !important;
}



table.dataTable#associate_carder input,
table.dataTable#associate_carder select,
table.dataTable#branch_limit input,
table.dataTable#branch_limit select {
    border: 1px solid #ababab;
}

.col-form-label {
    padding-top: calc(0.375rem + var(--bs-border-width)) !important;
}



.rupee-span,
.format-span {
    font-size: 10px;
}




/* ========================================================================
 * Sidebar collapse — ICON-ONLY mode + PURE-CSS HOVER FLY-OUT
 *
 * Approach: when sidebar is collapsed, force overflow: visible on EVERY
 * ancestor that could clip the popout (page-sidebar, simplebar wrappers,
 * sidebar-menu). Then on `.sidebar-list:hover`, show the child
 * `.sidebar-submenu` as an absolute-positioned card pinned to the right
 * of the 80px icon column. No JS — purely CSS.
 * ======================================================================== */

/* Sidebar shell: 80px wide, docked, with overflow visible so popouts escape */
.page-wrapper.sidebar-close .page-sidebar {
    left: 0 !important;
    width: 80px !important;
    overflow: visible !important;
    z-index: 10;
    transition: 0.5s all;
}

/* Hide menu text labels, keep only icons */
.page-wrapper.sidebar-close .page-sidebar .sidebar-menu .sidebar-list span {
    display: none;
}

/* Force overflow visible on simplebar internals so the popout isn't clipped.
   IMPORTANT: BOTH directions must be `visible` — if either is auto/hidden/scroll,
   the browser silently coerces the other to also be non-visible. */
.page-wrapper.sidebar-close .simplebar-wrapper,
.page-wrapper.sidebar-close .simplebar-mask,
.page-wrapper.sidebar-close .simplebar-offset,
.page-wrapper.sidebar-close .simplebar-content-wrapper,
.page-wrapper.sidebar-close .simplebar-content,
.page-wrapper.sidebar-close .page-sidebar .sidebar-menu {
    overflow: visible !important;
    max-height: none !important;
}

/* Position context for the absolute fly-out */
.page-wrapper.sidebar-close .page-sidebar .sidebar-menu .sidebar-list {
    position: relative;
}

/* Page content takes the icon-column's space */
@media (min-width: 1200px) {
    .page-wrapper.sidebar-close .page-body-wrapper {
        margin-left: 80px !important;
        transition: 0.5s all;
    }
}

/* Hide all submenus by default in collapsed mode — overrides theme's
   `:not(.active)` rule and any inline display:block from the .show class */
.page-wrapper.sidebar-close .page-sidebar .sidebar-submenu {
    display: none !important;
}

/* SHOW on hover — submenu pops out as a card to the right of its icon row.
   Using position: absolute relative to .sidebar-list (which is position: relative),
   so the popout's top naturally aligns with the hovered icon. */
.page-wrapper.sidebar-close .page-sidebar .sidebar-menu .sidebar-list:hover > .sidebar-submenu {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 80px !important;
    z-index: 99999 !important;
    min-width: 240px;
    max-width: 280px;
    background: #fff !important;
    border: 1px solid #E7ECF3;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(31, 46, 74, 0.12);
    padding: 6px 0;
    margin: 0;
    list-style: none;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.page-wrapper.sidebar-close .page-sidebar .sidebar-menu .sidebar-list:hover > .sidebar-submenu li {
    list-style: none;
}
.page-wrapper.sidebar-close .page-sidebar .sidebar-menu .sidebar-list:hover > .sidebar-submenu a,
.page-wrapper.sidebar-close .page-sidebar .sidebar-menu .sidebar-list:hover > .sidebar-submenu .submenu-title {
    display: block !important;
    padding: 8px 14px !important;
    color: #2F3A52 !important;
    text-decoration: none;
    font-size: 13px !important;
    white-space: normal !important;
    word-break: break-word;
    line-height: 1.3 !important;
}
.page-wrapper.sidebar-close .page-sidebar .sidebar-menu .sidebar-list:hover > .sidebar-submenu a:hover,
.page-wrapper.sidebar-close .page-sidebar .sidebar-menu .sidebar-list:hover > .sidebar-submenu .submenu-title:hover {
    background: #EDF2FA !important;
    color: #2B5FA4 !important;
}




#accordionPanelsStayOpenExample .accordion-header .toggle-icon {
    transform: rotate(90deg);
}

#accordionPanelsStayOpenExample .accordion-header .toggle-icon.collapsed {
    transform: rotate(0deg);
}


.custom-select-date {
    position: relative;
}

.custom-select-date .form-control.is-invalid {
    background-image: none;
}

.custom-select-date .custom-select-date-box {
    position: absolute;
    top: 40px;
    right: 25px;
}




.checkbox-primary:disabled:before {
    content: "";
    position: absolute;
    left: 0px;
    width: 29px;
    height: 16px;
    transform: rotate(45deg);
    pointer-events: none;
    border-bottom: #43B9B2 solid 1px;
    top: -4px;
    z-index: 99;
    border-top: none;
    border-right: none;
    border-left: none;
}




.square-timeline .timeline-event .timeline-event-wrapper {
    top: -17px;
}

.square-timeline .timeline-event .timeline-event-wrapper .timeline-thumbnail {
    padding: 12px 10px;
    display: flex;
}

.action-text {
    color: #359dff;
    cursor: pointer;
}


.square-timeline .timeline-event:hover .timeline-event-wrapper .timeline-thumbnail {
    box-shadow: inset 115em 0 0 0 rgba(67, 185, 178, 0.25);
}


table.dataTable#associate_carder thead th:nth-child(3) {
    width: 374px !important;
}


body {
    font-size: 13px;
}

.form-control,
.form-select {
    font-size: 13px;
}

#tenureForm table tbody tr:last-child td {
    padding: 8px !important;
}

.select2-container .select2-selection--single {
    padding: 6px 12px !important;
    max-height: 33.5px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 4px;
}



.dataTables_wrapper .dataTables_length {
    float: right;
}

.loadMoreButton {
    margin: 0px auto 20px auto !important;
    background: #fff;
    color: #43B9B2;
}

.loadMoreButton i {
    font-size: 13px;
    margin: 0 0 0 6px;
}

.loadMoreButton:hover {
    background: #43B9B2;
    color: #fff;
}

/* table.dataTable#associate_carder input { width:150px; margin: 0 auto; text-align: center; }


table.dataTable#associate_carder thead th:nth-child(4),
table.dataTable#associate_carder thead th:nth-child(5),
table.dataTable#associate_carder thead th:nth-child(6) { text-align: center;} */


/* .checkbox-primary:disabled:before {
    content: "";
    position: absolute; 
    top: 7%; 
    left: -4px; 
    width: 211%;

    height: 1px;
    transform: translateY(368%) rotate(45deg);
    pointer-events: none; 
}*/









/* #removeImage{
    display:none; position: absolute; top: 8px; right: -18px; color: red; font-size: 20px; cursor: pointer;
} */

/* Optional: Add some space between the label and the radio button */
#multi-step-form .form-check-label {
    margin-top: 5px;
    margin-right: 10px;
    display: flex;
    align-items: center;
}

#multi-step-form .form-check {
    padding-left: 0 !important;
}

/* Optional: Add some space between the label and the radio button */
.multi-step-form div#previewForm .col-sm-6,
#multi-step-form div#previewForm .col-sm-6 {
    display: flex;
}

.multi-step-form div#previewForm .col-sm-6 .form-label,
#multi-step-form div#previewForm .col-sm-6 .form-label {
    width: 50%;
    min-width: 50%;
}

/* Apply Flexbox to center-align the content horizontally and vertically */
#multi-step-form .form-check {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 2px;
}

.multi-step-form .custom-select-date .custom-select-date-box,
#multi-step-form .custom-select-date .custom-select-date-box {
    top: 30px !important;
}



/* =============================================================
   Icon badges inside tables (Status / Passkey toggle)
   Convert blocky Bootstrap badges into clean circular pill icons
   with brand-aligned soft shadow and hover lift.
   ============================================================= */
table .badge.badge-success,
table .badge.badge-danger,
table .badge.badge-warning,
table .badge.badge-info,
table .badge.badge-primary,
table .badge.salary-structure-status-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0 !important;
    /* Keep the original (Bootstrap) slight rounding instead of full circle */
    border-radius: 4px !important;
    font-size: 13px;
    line-height: 1;
    border: 0 !important;
    transition: transform .15s ease, box-shadow .18s ease, filter .18s ease;
}
/* Text-only badges (no <i>) — pill rectangle with uppercase label */
table .badge.badge-success:not(:has(i)),
table .badge.badge-danger:not(:has(i)),
table .badge.badge-warning:not(:has(i)),
table .badge.badge-info:not(:has(i)),
table .badge.badge-primary:not(:has(i)) {
    width: auto;
    border-radius: 4px !important;
    padding: 4px 12px !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
table .badge.badge-success {
    background: linear-gradient(180deg, #36C156 0%, #2BA84A 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(43, 168, 74, 0.30);
}
table .badge.badge-danger {
    background: linear-gradient(180deg, #EC5D5D 0%, #E04848 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(224, 72, 72, 0.30);
}
table .badge.badge-warning {
    background: linear-gradient(180deg, #F5A841 0%, #E88B2A 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(232, 139, 42, 0.30);
}
table .badge.badge-info {
    background: linear-gradient(180deg, #3BA1D6 0%, #2E8DD3 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(46, 141, 211, 0.30);
}
table .badge.badge-primary {
    background: linear-gradient(180deg, #3B72BF 0%, #2B5FA4 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(43, 95, 164, 0.30);
}

/* Hover state — lift + brighter shadow */
table .badge.badge-success[style*="cursor: pointer"]:hover,
table .badge.badge-danger[style*="cursor: pointer"]:hover,
table .badge.badge-warning[style*="cursor: pointer"]:hover,
table .badge.badge-info[style*="cursor: pointer"]:hover,
table .badge.badge-primary[style*="cursor: pointer"]:hover,
table .badge.change-status:hover,
table .badge.change-passkey:hover,
table .badge.salary-structure-status-toggle:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
}
table .badge[style*="cursor: pointer"]:active,
table .badge.change-status:active,
table .badge.change-passkey:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

/* Icon inside the circular badge — center it perfectly */
table .badge.badge-success > i,
table .badge.badge-danger > i,
table .badge.badge-warning > i,
table .badge.badge-info > i,
table .badge.badge-primary > i {
    font-size: 13px;
    line-height: 1;
}

/* =============================================================
   Filter card — minimal collapsible header
   (Auto-injected by filter-card-toggle.js on listing pages)

   Design: clean, integrated, no harsh banner. Just a slim text label
   on the left + a subtle pill toggle on the right, separated from the
   form below by a thin hairline. The whole row is clickable.
   ============================================================= */
.card.filter-card {
    position: relative;
}
.filter-card-toggle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #ffffff;
    border-bottom: 1px solid #EEF1F6;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    color: #1F2E4A;
    cursor: pointer;
    user-select: none;
    transition: background-color .15s ease;
}
.filter-card-toggle-header:hover {
    background: #F7F9FC;
}
.filter-card-toggle-header:focus-visible {
    outline: 2px solid #2B5FA4;
    outline-offset: -2px;
}
.filter-card-toggle-title {
    font-size: 13px;
    font-weight: 600;
    color: #1F2E4A;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.2px;
}
.filter-card-toggle-title .fa-filter {
    color: #2B5FA4;
    font-size: 12px;
}
/* Toggle chip — text + chevron pill, always-visible soft brand-blue pill.
   The text label flips between "Hide" and "Show" via aria-expanded. */
.filter-card-toggle-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #EDF2FA;
    border: 1px solid #C9DAF1;
    border-radius: 999px;
    color: #2B5FA4;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease,
                color .18s ease, box-shadow .18s ease;
}
/* Render the text label */
.filter-card-toggle-icon::before {
    content: "Hide";
    font-family: "Outfit", "Segoe UI", Arial, sans-serif;
}
.filter-card-toggle-header[aria-expanded="false"] .filter-card-toggle-icon::before {
    content: "Show";
}
/* Chevron */
.filter-card-toggle-icon i {
    font-size: 9px;
    transition: transform .25s ease;
}
.filter-card-toggle-header[aria-expanded="false"] .filter-card-toggle-icon i {
    transform: rotate(180deg);
}
/* Hover — slightly deeper blue */
.filter-card-toggle-header:hover .filter-card-toggle-icon {
    background: #DCE7F7;
    border-color: #A9C2E5;
    color: #204A82;
    box-shadow: 0 1px 3px rgba(43, 95, 164, 0.15);
}
.filter-card-toggle-header:active .filter-card-toggle-icon {
    background: #C9DAF1;
}
/* Hide the bottom hairline when the card is collapsed (header alone looks cleaner) */
.filter-card-toggle-header[aria-expanded="false"] {
    border-bottom-color: transparent;
}

/* Smoothly collapse the body */
.card.filter-card .card-body {
    transition: max-height .32s ease, padding .22s ease, opacity .22s ease;
    max-height: 1500px;
    overflow: hidden;
}
.card.filter-card .card-body.filter-card-body-collapsed {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0;
}

/* Sidebar-toggle button — themed surface ONLY (don't touch inner layout, so
   the original arrow / hamburger transform animations stay intact). */
.page-header .logo-wrapper .close-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 10px;
    background: #EDF2FA;            /* soft brand-blue tint */
    border: 1px solid #C9DAF1;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.page-header .logo-wrapper .close-btn:hover {
    background: #DCE7F7;
    border-color: #A9C2E5;
    box-shadow: 0 2px 6px rgba(43, 95, 164, 0.18);
}
.page-header .logo-wrapper .close-btn:active {
    transform: scale(0.96);
}

/* Hamburger / arrow lines in brand blue (shape stays original) */
.page-header .logo-wrapper .close-btn .toggle-sidebar .line {
    background: #2B5FA4 !important;
}
.page-header .logo-wrapper .close-btn:hover .toggle-sidebar .line {
    background: #204A82 !important;
}

/* =============================================================
   Branded scrollbar — uses the project's theme blue.
   Firefox uses `scrollbar-width` + `scrollbar-color`.
   WebKit (Chrome / Edge / Safari) uses `::-webkit-scrollbar-*`.
   ============================================================= */
* {
    scrollbar-width: thin;
    scrollbar-color: #2B5FA4 #EDF2FA;
}

/* WebKit — track + thumb shape */
*::-webkit-scrollbar {
    width: 10px !important;
    height: 10px !important;
}
*::-webkit-scrollbar-track {
    background: #EDF2FA;            /* very light brand-blue tint */
    border-radius: 10px;
}
*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3B72BF 0%, #2B5FA4 100%);
    border-radius: 10px;
    border: 2px solid #EDF2FA;       /* creates a soft padded look around thumb */
    box-shadow: 0 1px 2px rgba(43, 95, 164, 0.20);
}
*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2F66B0 0%, #204A82 100%);
    box-shadow: 0 1px 3px rgba(43, 95, 164, 0.35);
}
*::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #25548F 0%, #173A6A 100%);
}
*::-webkit-scrollbar-corner {
    background: #EDF2FA;
}


.logs-user-field #select2-user_id-container {
    padding: 0px;
}

.logs-user-field .select2-container .select2-selection--single {
    padding: 6px 5px !important;
    height: 30px !important;
}





/* step css*/

.horizontal-wizard-wrapper #multi-step-form .main-horizontal-header,
.horizontal-wizard-wrapper .multi-step-form .main-horizontal-header {
    padding: 0 15px 20px 15px;
}

.horizontal-wizard-wrapper #multi-step-form .main-horizontal-header .horizontal-options,
.horizontal-wizard-wrapper .multi-step-form .main-horizontal-header .horizontal-options {
    background: #EEF3FB;
}

.horizontal-wizard-wrapper #multi-step-form .main-horizontal-header .horizontal-options a,
.horizontal-wizard-wrapper .multi-step-form .main-horizontal-header .horizontal-options a {
    width: 100%;
    border-radius: 0px;
    cursor: default;
    justify-content: left;
}

.horizontal-wizard-wrapper #multi-step-form .main-horizontal-header .horizontal-options a.active h6,
.horizontal-wizard-wrapper .multi-step-form .main-horizontal-header .horizontal-options a.active h6 {
    color: #ffffff;
}

.horizontal-wizard-wrapper #multi-step-form .main-horizontal-header .horizontal-options a h6,
.horizontal-wizard-wrapper .multi-step-form .main-horizontal-header .horizontal-options a h6 {
    color: #595c5f;
}

/* .horizontal-wizard-wrapper #multi-step-form .main-horizontal-header .horizontal-options .horizontal-wizard-content h6 {
    color: #3D3D47;
} */

#previewForm .card-header {
    background: #EEF3FB;
    padding: 10px;
}

/* Read-only style for radio buttons */
.radio-disabled {
    pointer-events: none;
    /* Prevent interaction */
    opacity: 0.5;
    /* Change the appearance */
    cursor: not-allowed;
    /* Make cursor look like it's disabled */

}

/* Read-only style for labels */
.readonly-label {
    pointer-events: none;
    /* Prevent interaction */
    cursor: not-allowed;
    /* Make cursor look like it's disabled */

}

/* By Mohammad Zaid Bin Mahmood Alam */

/* #associate-multi-step-form .tab-content>.tab-pane {
    display: block !important;
}
#associate-multi-step-form .fade:not(.show) {
    opacity: 1 !important;
} */

.radiobutton-primary {
    width: 18px;
    height: 18px;
}

.radiobutton-primary:checked {
    background-color: var(--theme-default);
    border-color: var(--theme-default);
}

.text-custom-primary {
    color: var(--theme-default);
}

.custom-label-color {
    color: #3D3D47 !important;
}

.checkbox-checked .form-check-input {
    width: 18px;
    height: 18px;
}

.form-check-input {
    cursor: pointer !important;
}

div#sidebar-menu li.sidebar-list.active i,
a.sidebar-link.active i {
    color: var(--theme-default);
}

div#sidebar-menu li.sidebar-list i,
a.sidebar-link i {
    color: var(--light-font);
}

.tap-top {
    z-index: 999999 !important;
}


.footer {
    position: fixed;
    left: 273px;
    right: 19px;
    z-index: 9;
    padding: 15px;
}

#login-page .footer {
    width: 100%;
    left: 0 !important;
    right: 0 !important;
    z-index: 9;
    padding: 15px;
}

.page-wrapper .page-body-wrapper .page-body {
    padding-bottom: 80px;
}


table.display.dataTable.no-footer.dtr-inline.fixedHeader-floating {
    width: 76% !important;
    table-layout: fixed !important;
    top: 85px !important;
    left: 309.1px !important;
}

.dtr-data ul li {
    position: relative;
}

.dtr-data ul li i {
    font-size: 20px;
}

.dtr-data ul li ul {
    /* background: #fff; */
    background: #EEF3FB;
    border: #ccc solid 1px;
    position: absolute;
    top: 0px;
    left: 23px;
    width: 200px;
    display: none;
}

.dtr-data ul li ul li {
    border-bottom: #d5d5d5 solid 1px;
}

.dtr-data ul li ul li a {
    padding: 10px;
    font-size: 14px;
    color: #333;
    display: block;
}

.dtr-data ul li:hover ul {
    display: block;
}

.dtr-data ul li ul li:hover a {
    /* background: #f3f3f3; */
    /* background-color: rgba(67, 185, 178, 0.1); */
    background-color: var(--theme-default);
    color: var(--white);
}

#cover {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.80;
    background: #aaa;
    z-index: 10;
    display: none;
}


.loaders {
    margin: auto;
    position: fixed;
    padding: 10px;
    font-size: 40px;
    display: flex;
    height: 100vh;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.spiners {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: url('/assets/images/spiners.gif') 50% 50% no-repeat rgb(249, 249, 249, 0);
    background-size: 150px;
}

/* 

.dtr-data ul li ul:before {
  width: 0;
  height: 0;
  margin: 0px auto;
  display: block;
  content: "";
  left: -10px;
  top: 4px;
  position: absolute;
}

.dtr-data ul li ul:before {
  border-top:8px solid transparent;
  border-bottom:8px solid transparent;
}

.dtr-data ul li ul:before {
  border-right:10px solid #fff;
} */



.user-profile .hovercard .cardheader:before {
    background: rgba(0, 0, 0, 0.3);
    content: "";
    display: block;
    height: 100%;
    width: 100%;
}

.user-profile .hovercard .user-image .avatar {
    margin-top: -45px;
}

.user-profile .hovercard .info {
    padding: 50px 26px 30px 26px;
}

.profile-img-style .loadMoreButton {
    margin: 0px auto 10px auto !important;
}




.text-danger.employee_code-error {
    color: #ff0000 !important;
    font-size: 0.875em;
}



.card-heading .timeline-thumbnail {
    padding: 0 80px 10px 80px;
}

.card-heading .timeline-thumbnail span {
    font-weight: bold;
    font-size: 14px;
}

#logsSection .card-body.card-heading {
    padding: 0 0 0 78px;
}

#logsSection .card-body.card-heading .timeline-thumbnail {
    padding: 0 0px 10px 0px;
}

#logsSection .card-body.card-heading .timeline-thumbnail {
    display: flex;
    width: 96%;
}

.calendar-fund {
    top: 30px !important;
}




.progress-block {
    padding: 10px 0px 30px 0px;
}

.progress {
    height: 25px;
}

.login-logo {
    background-color: #ffffff;
    padding-top: 25px;
}


.aadhar-eye-link,
.pan-eye-link,
.address-proof-eye-link,
.disb_passbook_upload-eye-link,
.guarantors_pan_upload-eye-link,
.guarantors_aadhaar_upload-eye-link,
.guarantors_signature-eye-link,
.guarantors_photo-eye-link,
.guarantors_income_proof-eye-link,
.guarantors_cheque1_upload-eye-link,
.guarantors_cheque2_upload-eye-link,
.coappliacnt_aadhar-eye-link,
.coappliacnt_pan-eye-link,
.coapplicant_photo-eye-link,
.coapplicant_income-eye-link,
.coapplicant_cheque1-eye-link,
.coapplicant_cheque2-eye-link,
.coapplicant_signature-eye-link,
.coappliacnt_pan-eye-link,
.coappliacnt_aadhar-eye-link,
.coapplicant_signature-eye-link,
.cheque1-eye-link,
.cheque2-eye-link,
.cheque3-eye-link,
.income-proof-eye-link,
.profile-eye-link,
.coapplicant_address-eye-link,
.guarantors_address_proof_file-eye-link,
.signature-eye-link,
.other_document_file0-eye-link,
.other_document_file1-eye-link,
.other_document_file2-eye-link,
.other_document_file3-eye-link,
.other_document_file4-eye-link,
.other_document_file5-eye-link,
.other_document_file6-eye-link,
.other_document_file7-eye-link,
.other_document_file8-eye-link,
.guarantors_cheque1_upload_1-eye-link,
.guarantors_cheque2_upload_1-eye-link,
.guarantors_income_proof_1-eye-link,
.guarantors_signature_1-eye-link,
.guarantors_photo_1-eye-link,
.guarantors_address_proof_file_1-eye-link,
.guarantors_pan_upload_1-eye-link,
.guarantors_aadhaar_upload_1-eye-link,
.other_document_file9-eye-link {
    position: absolute;
}

#vertical-wizard-tabContent .form-group,
#vertical-wizard-tabContent .col-sm-6,
#vertical-wizard-tabContent .col-sm-4 {
    position: relative;
}

.address_preview {
    word-break: break-all;
}


.image_text {
    font-size: 10px;
}


.mt-35 {
    margin-top: 35px;
}



.page-sidebar.scroolbar .sidebar-menu {
    height: calc(100vh - 224px);
}


.datepicker-dropdown {
    z-index: 9999999 !important;
}



.login-card .login-main {
    padding-top: 0px;
}

.page-header .logo-wrapper {
    padding: 0px 16px;
}

/* 
#guarantorsVerifyBtn {
    margin-top: 13px !important;
}

#guarantorsVerifyBtn_1 {
    margin-top: 13px !important;
} */

.sidebar-close .page-sidebar .accordion {
    display: none;
}


.profile-img-top img,
.profile-img-bottom img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}


input.pan-field {
    text-transform: uppercase;
}


.vendor-table th,
.vendor-table td {
    white-space: nowrap;
    padding: 5px;
    vertical-align: middle;
    text-align: center;
}

.vendor-table input,
.vendor-table select {
    width: 100%;
    min-width: 80px;
    /* Show a proper, visible border on table-cell inputs (e.g. Payment Amt.) so they
       match the rest of the form fields. The existing form-wide rule only targeted
       input[type=text] which left number/date inputs looking border-less. */
    background: #fff;
    border: 1px solid #c1c1c1 !important;
    border-radius: 4px;
    padding: 6px 10px;
    color: #000;
    font-size: 13px;
    height: 36px;
    box-sizing: border-box;
}

.vendor-table input:focus,
.vendor-table select:focus {
    border-color: #1260aa !important;
    box-shadow: 0 0 0 0.15rem rgba(18, 96, 170, 0.15);
    outline: none;
}

.vendor-table input::placeholder {
    color: #a5a5a5;
}

.w-80 {
    width: 80px !important;
}

.w-100 {
    width: 100px !important;
}

.w-120 {
    width: 120px !important;
}

.custom-action-dropdown.dtr-data ul li ul { left:auto; right: 20px; z-index: 9;}

.acc_cibil_btn{
    margin-top: -15px;
}

.paid_schedule
 {
    background-color: green !important;
    color: #fff;
}

.custom-row-disabled {
    background-color: var(--bs-secondary-bg);
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* table.dataTable.ledger-table input, table.dataTable.ledger-table select { width: 75px; }  */

/* table.dataTable.ledger-table td { min-width: 150px;} */


#entryTable tr th { white-space: nowrap;}

#entryTable .input-group .view-slip-link { border-radius: 0px 8px 8px 0px; padding: 8px 8px 7px 8px; }



.lead-option { margin-top: 33px;}

.downloard-btn-link { text-align:right; padding:0px 35px;}
.downloard-btn-link a.btn-secondary { position:relative; top:24px; }

.dataTables_wrapper .dataTables_length {
    float: left;
}

//#exportUsers, .exportUsers-btn { z-index: 8 !important;}

/* Dashboard top cards — remove the horizontal border line under card header */
.ecommerce-dashboard .progress-items .card-header,
.ecommerce-dashboard .card.progress-items > .card-header {
    border-bottom: 0 !important;
}

/* Customer Correction form — Mobile / Email / OTP rows.
   Goal: input and Send-OTP button share the same baseline in BOTH states (with and
   without error message). Trick: position the invalid-feedback absolutely under the
   input so it never affects the column's height — the button keeps aligning with
   the input's bottom, not with the error text. */
.new-correction-section .row.align-items-end {
    align-items: flex-end !important;
}
.new-correction-section .row > .col-sm-4 > .mb-3 {
    position: relative;          /* anchor for the absolutely-positioned error */
    margin-bottom: 1rem;          /* keep Bootstrap's mb-3 gap intact */
}
.new-correction-section .invalid-feedback {
    display: none;
    position: absolute;          /* takes itself out of layout flow */
    top: 100%;                   /* sit just under the input */
    left: 0;
    right: 0;
    margin-top: 4px;
    font-size: 80%;
    line-height: 1;
}
.new-correction-section .form-control.is-invalid ~ .invalid-feedback,
.new-correction-section .form-select.is-invalid ~ .invalid-feedback,
.new-correction-section .invalid-feedback.d-block {
    display: block !important;
}
/* Reset any stray margin on the OTP buttons themselves */
.new-correction-section #sendMobileOtpBtn,
.new-correction-section #sendEmailOtpBtn,
.new-correction-section #verifyMobileOtpBtn,
.new-correction-section #verifyEmailOtpBtn {
    margin-top: 0;
}

/* =================================================================
   SSB Withdrawal — minor tweaks only.
   The form already uses .custom-input.theme-form — let those project-wide
   styles handle look-and-feel so this page matches every other listing
   filter / form. We keep only a few small fixes (input-group flush,
   account-details card framing, hidden-empty validation message).
   ================================================================= */
#ssbWithdrawalForm .invalid-feedback:empty {
    display: none;
    margin-top: 0;
}

/* Account No + Apply: keep edges flush so the button visually attaches to input */
#ssbWithdrawalForm .input-group { flex-wrap: nowrap; }

/* Account details section (revealed after Apply) — light card for visual separation */
#ssbWithdrawalForm #accountDetailsSection {
    background: #F7F9FC;
    border: 1px solid #E7ECF3;
    border-radius: 6px;
    padding: 14px 12px 4px;
}
#ssbWithdrawalForm #accountDetailsSection h5 {
    width: 100%;
    color: #1F2E4A;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid #E7ECF3;
    padding-bottom: 8px;
    margin: 0 0 12px 0;
}
#ssbWithdrawalForm #accountDetailsSection img.img-fluid {
    border: 1px solid #E7ECF3;
    border-radius: 4px;
    padding: 3px;
    background: #fff;
}

/* Holiday page tweaks remain unchanged */
#holidayCreate .col-form-label,
#holidayCreate .form-label {
    font-weight: 500;
    margin-bottom: 4px;
}
#holidayCreate .checkbox-checked .form-check-input {
    margin-top: 6px;
}
#holidayCreate .col-sm-3,
#holidayCreate .col-md-3 {
    margin-bottom: 12px;
}

.dt-ext {
    position: relative;
}
/* Give the table breathing room when an absolute-positioned export button sits on top of it */
.dt-ext:has(> .exportUsers-btn),
.dt-ext:has(> #exportButton) {
    padding-top: 12px;
}
.exportUsers-btn {
    position: absolute;
    right: 0;
    top: 0;
	z-index: 8 !important;
}



/* =========================================================
   BEHARIJI — Premium Brand Theme (v2)
   Palette derived from company logo:
     Deep Blue  #15448F  (primary / sidebar)
     Navy Dark  #0B2A5B  (sidebar gradient end, headings)
     Saffron    #F58220  (accent / CTA highlights)
     Green      #1FA14A  (success)
   Design language: dark brand sidebar, airy cards,
   soft shadows, saffron accent pops, subtle gradients.
   ========================================================= */
  :root {
    --theme-default: #15448F !important;
    --theme-secondary: #F58220 !important;

    --brand-primary: #15448F;
    --brand-primary-400: #3A72C8;
    --brand-primary-500: #2560B0;
    --brand-primary-600: #103875;
    --brand-primary-700: #0B2A5B;
    --brand-primary-050: #EEF3FB;
    --brand-primary-100: #DCE6F5;
    --brand-primary-soft: rgba(21, 68, 143, 0.10);
    --brand-primary-soft-2: rgba(21, 68, 143, 0.18);

    --brand-accent: #F58220;
    --brand-accent-600: #DA6D0F;
    --brand-accent-050: #FFF3E6;
    --brand-accent-soft: rgba(245, 130, 32, 0.14);

    --brand-success: #1FA14A;
    --brand-success-600: #198140;
    --brand-success-soft: rgba(31, 161, 74, 0.12);

    --brand-danger: #DC3545;
    --brand-warning: #F0AD4E;

    --brand-body-bg: #EEF2F8;
    --brand-card-bg: #FFFFFF;
    --brand-heading: #0B2A5B;
    --brand-text: #2C3E57;
    --brand-muted: #7E8AA3;
    --brand-border: #E3E8F0;

    --brand-shadow-sm: 0 1px 2px rgba(15, 42, 91, 0.05);
    --brand-shadow: 0 4px 14px rgba(15, 42, 91, 0.08);
    --brand-shadow-lg: 0 12px 32px rgba(15, 42, 91, 0.12);

    --brand-gradient-primary: linear-gradient(135deg, #1A55AD 0%, #0B2A5B 100%);
    --brand-gradient-accent:  linear-gradient(135deg, #FFA04D 0%, #F58220 100%);
  }

  body, .page-body {
    background-color: var(--brand-body-bg) !important;
    color: var(--brand-text);
  }

  /* ===== Typography / headings ===== */
  h1, h2, h3, h4, h5, h6,
  .page-title h3, .page-header h3,
  .card-header h5, .card-header h4 { color: var(--brand-heading); letter-spacing: 0.1px; }
  .page-title { color: var(--brand-heading); }
  .text-muted { color: var(--brand-muted) !important; }

  /* ===== Buttons ===== */
  .btn { border-radius: 8px; font-weight: 500; letter-spacing: 0.2px; transition: all .2s ease; }

  .btn-primary {
    background: var(--brand-gradient-primary) !important;
    border: 1px solid var(--brand-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(21, 68, 143, 0.22);
  }
  .btn-primary:hover, .btn-primary:focus, .btn-primary:active:focus, .btn-primary.show {
    background: var(--brand-primary-600) !important;
    border-color: var(--brand-primary-600) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(21, 68, 143, 0.30);
    transform: translateY(-1px);
  }
  .btn-outline-primary { color: var(--brand-primary) !important; border: 1px solid var(--brand-primary) !important; background: transparent !important; }
  .btn-outline-primary:hover, .btn-outline-primary.active {
    background: var(--brand-primary) !important; color: #fff !important;
  }

  .btn-secondary {
    background: var(--brand-gradient-accent) !important;
    border: 1px solid var(--brand-accent) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(245, 130, 32, 0.28);
  }
  .btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active:focus, .btn-secondary.show {
    background: var(--brand-accent-600) !important;
    border-color: var(--brand-accent-600) !important;
    color: #fff !important;
    transform: translateY(-1px);
  }
  .btn-outline-secondary { color: var(--brand-accent) !important; border: 1px solid var(--brand-accent) !important; background: transparent !important; }
  .btn-outline-secondary:hover { background: var(--brand-accent) !important; color: #fff !important; }

  /* Reset + Export buttons — subtle gray outline (neutral secondary action).
     Covers every export/reset pattern in the project:
       type="reset"  |  .btn-warning (Reset)
       .exportUsers-btn  |  any id or class that starts with "export" */
  .btn[type="reset"],
  button[type="reset"],
  input[type="reset"],
  #resetButton,
  #resetFilterForm,
  #btnFilterReset,
  .btn.btn-warning,
  .exportUsers-btn,
  .btn.exportUsers-btn,
  .btn[id^="export"],
  .btn[id*="Export"],
  a[id^="export"].btn,
  a[id*="Export"].btn,
  button[id^="export"],
  button[id*="Export"],
  .btn.btn-export,
  .btn.export-btn {
    background: #FFFFFF !important;
    border: 1px solid #C9D1DF !important;
    color: #4A5874 !important;
    box-shadow: none !important;
    background-image: none !important;
  }
  .btn[type="reset"]:hover,
  button[type="reset"]:hover,
  input[type="reset"]:hover,
  #resetButton:hover,
  #resetFilterForm:hover,
  #btnFilterReset:hover,
  .btn.btn-warning:hover,
  .exportUsers-btn:hover,
  .btn.exportUsers-btn:hover,
  .btn[id^="export"]:hover,
  .btn[id*="Export"]:hover,
  a[id^="export"].btn:hover,
  a[id*="Export"].btn:hover,
  button[id^="export"]:hover,
  button[id*="Export"]:hover,
  .btn.btn-export:hover,
  .btn.export-btn:hover,
  .btn[type="reset"]:focus,
  button[type="reset"]:focus,
  .btn.btn-warning:focus,
  .exportUsers-btn:focus,
  .btn[id^="export"]:focus,
  button[id^="export"]:focus {
    background: #F1F4F9 !important;
    border-color: #9AA5BE !important;
    color: #2F3A52 !important;
    box-shadow: none !important;
    background-image: none !important;
  }

  /* Icons inside export/reset buttons — neutral grey (no orange inherit) */
  .exportUsers-btn i, .exportUsers-btn svg,
  .btn[id^="export"] i, .btn[id^="export"] svg,
  a[id^="export"].btn i, button[id^="export"] i,
  .btn[type="reset"] i, .btn[type="reset"] svg,
  button[type="reset"] i, button[type="reset"] svg,
  .btn.btn-warning i, .btn.btn-warning svg,
  #resetButton i, #resetFilterForm i, #btnFilterReset i { color: #4A5874 !important; stroke: #4A5874 !important; }

  .btn-success { background-color: var(--brand-success) !important; border-color: var(--brand-success) !important; color: #fff !important; }
  .btn-success:hover, .btn-success:focus, .btn-success:active:focus {
    background-color: var(--brand-success-600) !important; border-color: var(--brand-success-600) !important;
  }

  .btn-danger  { background-color: var(--brand-danger) !important;  border-color: var(--brand-danger)  !important; }
  .btn-warning { background-color: var(--brand-warning) !important; border-color: var(--brand-warning) !important; color: #fff !important; }

  /* ===== Badges ===== */
  .badge { border-radius: 6px; font-weight: 500; letter-spacing: 0.3px; }
  .badge-primary, .bg-primary       { background-color: var(--brand-primary) !important; color: #fff !important; }
  .badge-secondary, .bg-secondary   { background-color: var(--brand-accent)  !important; color: #fff !important; }
  .badge-success, .bg-success       { background-color: var(--brand-success) !important; color: #fff !important; }

  .bg-light-primary, .badge-light-primary     { background-color: var(--brand-primary-050) !important; color: var(--brand-primary) !important; }
  .bg-light-secondary, .badge-light-secondary { background-color: var(--brand-accent-050)  !important; color: var(--brand-accent-600) !important; }
  .bg-light-success, .badge-light-success     { background-color: var(--brand-success-soft)!important; color: var(--brand-success-600) !important; }

  /* ===== Links / text colors ===== */
  .text-primary, a.text-primary   { color: var(--brand-primary) !important; }
  .text-secondary, a.text-secondary { color: var(--brand-accent)  !important; }
  .text-success, a.text-success   { color: var(--brand-success) !important; }
  a  { color: var(--brand-primary); text-decoration: none; }
  a:hover { color: var(--brand-primary-400) !important; }
  /* Catch-all: any anchor that was going orange on hover → use lighter blue */
  a[href]:hover, .text-primary:hover { color: var(--brand-primary-400) !important; }

  /* Icons inside anchor text only — hover lighter blue (never orange).
     Button icons are excluded so their hover matches the button itself. */
  a:not(.btn):hover > i,
  a:not(.btn):hover > svg,
  a:not(.btn):hover i.fa, a:not(.btn):hover i.fas, a:not(.btn):hover i.far,
  a:not(.btn):hover i.fab, a:not(.btn):hover i.bi { color: var(--brand-primary-400) !important; stroke: var(--brand-primary-400) !important; }

  /* =====================================================
     SIDEBAR — Modern & Attractive (v3)
     Premium SaaS look: soft gradient bg, icon-badge style,
     saffron glowing active indicator, smooth motion.
     ===================================================== */
  .page-sidebar,
  .page-sidebar.scroolbar {
    background: linear-gradient(180deg, #FBFCFE 0%, #F1F5FB 100%) !important;
    border-right: 1px solid #E3EAF4 !important;
    box-shadow: 2px 0 24px rgba(15, 42, 91, 0.06) !important;
  }

  /* (Top brand stripe removed — keeping the original template gap at sidebar top) */

  /* Section title */
  .page-sidebar .sidebar-title {
    color: #8A96B2 !important;
    font-size: 10.5px !important;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    font-weight: 700 !important;
    padding: 14px 6px 8px !important;
  }

  /* ----- Menu links (default) ----- */
  .page-sidebar .sidebar-menu .sidebar-list { padding: 2px 10px !important; }
  .page-sidebar .sidebar-menu .sidebar-list .sidebar-link {
    color: #3F4E6B !important;
    font-weight: 500 !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    position: relative;
    transition: all .25s cubic-bezier(.4,0,.2,1) !important;
    overflow: hidden;
  }
  .page-sidebar .sidebar-menu .sidebar-list .sidebar-link span {
    color: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.1px;
  }

  /* Icon badge — soft brand-tint background around every icon */
  .page-sidebar .sidebar-menu .sidebar-list .sidebar-link svg,
  .page-sidebar .sidebar-menu .sidebar-list .sidebar-link > i {
    width: 32px !important;
    height: 32px !important;
    padding: 7px !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
    background-color: rgba(21, 68, 143, 0.08) !important;
    color: var(--brand-primary) !important;
    stroke: var(--brand-primary) !important;
    fill: none !important;
    transition: all .25s cubic-bezier(.4,0,.2,1) !important;
    font-size: 16px !important;
    text-align: center;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  /* ----- Hover ----- */
  .page-sidebar .sidebar-menu .sidebar-list .sidebar-link:hover {
    background-color: #EAF1FA !important;
    color: var(--brand-primary) !important;
    transform: translateX(2px);
  }
  .page-sidebar .sidebar-menu .sidebar-list .sidebar-link:hover svg,
  .page-sidebar .sidebar-menu .sidebar-list .sidebar-link:hover > i {
    background-color: rgba(21, 68, 143, 0.16) !important;
    stroke: var(--brand-primary) !important;
    color: var(--brand-primary) !important;
  }

  /* ----- Active state (premium look) ----- */
  .page-sidebar .sidebar-menu .sidebar-list.active > .sidebar-link,
  .page-sidebar .sidebar-menu .sidebar-list > .sidebar-link.active {
    background: linear-gradient(135deg, #1A55AD 0%, #0E3373 100%) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 22px rgba(21, 68, 143, 0.28), 0 2px 4px rgba(21, 68, 143, 0.12) !important;
    transform: none !important;
  }
  .page-sidebar .sidebar-menu .sidebar-list.active > .sidebar-link span,
  .page-sidebar .sidebar-menu .sidebar-list > .sidebar-link.active span {
    color: #FFFFFF !important;
    font-weight: 600 !important;
  }
  .page-sidebar .sidebar-menu .sidebar-list.active > .sidebar-link svg,
  .page-sidebar .sidebar-menu .sidebar-list.active > .sidebar-link > i,
  .page-sidebar .sidebar-menu .sidebar-list > .sidebar-link.active svg,
  .page-sidebar .sidebar-menu .sidebar-list > .sidebar-link.active > i {
    background-color: rgba(255, 255, 255, 0.18) !important;
    stroke: #FFFFFF !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }
  /* Saffron glowing indicator on the right of active item */
  .page-sidebar .sidebar-menu .sidebar-list.active > .sidebar-link::after,
  .page-sidebar .sidebar-menu .sidebar-list > .sidebar-link.active::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.30), 0 0 10px rgba(245, 130, 32, 0.7);
    animation: brandPulse 2s ease-in-out infinite;
  }
  @keyframes brandPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.30), 0 0 10px rgba(245, 130, 32, 0.7); }
    50%      { box-shadow: 0 0 0 5px rgba(245, 130, 32, 0.15), 0 0 14px rgba(245, 130, 32, 0.9); }
  }

  /* Shimmer overlay on active item for subtle premium feel */
  .page-sidebar .sidebar-menu .sidebar-list.active > .sidebar-link::before,
  .page-sidebar .sidebar-menu .sidebar-list > .sidebar-link.active::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
    border-radius: 10px;
  }

  /* ----- Submenu ----- */
  .page-sidebar .sidebar-submenu { padding: 4px 0 4px 24px !important; }
  .page-sidebar .sidebar-submenu > li > a,
  .page-sidebar .sidebar-submenu > li > .submenu-title {
    color: #5A6684 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 7px 10px !important;
    border-radius: 7px !important;
    margin: 1px 0 !important;
    transition: all .2s ease !important;
    position: relative;
  }
  .page-sidebar .sidebar-submenu > li > a:hover,
  .page-sidebar .sidebar-submenu > li > .submenu-title:hover {
    background-color: rgba(21, 68, 143, 0.06) !important;
    color: var(--brand-primary) !important;
  }
  .page-sidebar .sidebar-submenu > li.active > a,
  .page-sidebar .sidebar-submenu > li.active > .submenu-title,
  .page-sidebar .sidebar-submenu > li.active > .submenu-title.active {
    background-color: rgba(21, 68, 143, 0.08) !important;
    color: var(--brand-primary) !important;
    font-weight: 600 !important;
  }
  .page-sidebar .sidebar-submenu > li.active > a::before,
  .page-sidebar .sidebar-submenu > li.active > .submenu-title::before {
    background-color: var(--brand-primary) !important;
  }

  /* Chevron / arrow */
  .page-sidebar .according-menu i,
  .page-sidebar .sidebar-link .arrow { color: #9AA5BE !important; transition: transform .3s ease; }
  .page-sidebar .sidebar-list.active .according-menu i { color: #FFFFFF !important; transform: rotate(90deg); }

  /* Sidebar scrollbar — brand blue (light, subtle) */
  .page-sidebar .simplebar-scrollbar:before,
  .simplebar-scrollbar:before {
    background: var(--brand-primary) !important;
    opacity: 0.22 !important;
    border-radius: 10px !important;
  }
  .page-sidebar .simplebar-scrollbar.simplebar-hover:before,
  .simplebar-scrollbar.simplebar-hover:before,
  .page-sidebar .simplebar-scrollbar.simplebar-visible:before {
    background: var(--brand-primary) !important;
    opacity: 0.45 !important;
  }
  .page-sidebar .simplebar-track,
  .page-sidebar .simplebar-track.simplebar-vertical { background: transparent !important; width: 8px !important; }

  /* Native webkit scrollbar inside sidebar (fallback) */
  .page-sidebar::-webkit-scrollbar,
  .page-sidebar *::-webkit-scrollbar { width: 8px; height: 8px; }
  .page-sidebar::-webkit-scrollbar-track,
  .page-sidebar *::-webkit-scrollbar-track { background: transparent; }
  .page-sidebar::-webkit-scrollbar-thumb,
  .page-sidebar *::-webkit-scrollbar-thumb {
    background-color: rgba(21, 68, 143, 0.18);
    border-radius: 10px;
  }
  .page-sidebar::-webkit-scrollbar-thumb:hover,
  .page-sidebar *::-webkit-scrollbar-thumb:hover { background-color: rgba(21, 68, 143, 0.40); }

  /* Top branch-limit accordion (override old teal inline styles) */
  .page-sidebar .accordion { margin: 8px 10px !important; }
  .page-sidebar .accordion-item { border: 1px solid var(--brand-border) !important; border-radius: 10px !important; overflow: hidden; }
  .page-sidebar .accordion-button {
    background: linear-gradient(135deg, var(--brand-primary-050), #E4ECF8) !important;
    color: var(--brand-primary) !important;
    font-weight: 600 !important;
    padding: 10px 14px !important;
  }
  .page-sidebar .accordion-button:not(.collapsed) {
    background: var(--brand-gradient-primary) !important;
    color: #FFFFFF !important;
  }
  .page-sidebar .submenu-link { color: var(--brand-text) !important; }
  .page-sidebar .submenu-link strong { color: var(--brand-accent-600) !important; font-weight: 700; }

  /* =====================================================
     TOP NAVBAR / HEADER
     ===================================================== */
  .page-main-header, .main-header-right {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--brand-border);
    box-shadow: 0 2px 10px rgba(15, 42, 91, 0.04);
  }
  .page-main-header .nav-right > ul > li svg,
  .page-main-header .nav-right > ul > li i { color: var(--brand-primary); stroke: var(--brand-primary); }
  .page-main-header .nav-right > ul > li:hover svg { stroke: var(--brand-primary-400); }
  .page-main-header .nav-right .notification-badge { background-color: var(--brand-accent) !important; color: #fff !important; }

  /* =====================================================
     CARDS
     ===================================================== */
  .card {
    background-color: var(--brand-card-bg);
    border: 1px solid var(--brand-border);
    border-radius: 14px;
    box-shadow: var(--brand-shadow);
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
  }
  .card:hover { box-shadow: var(--brand-shadow-lg); }
  .card-header {
    background-color: #fff;
    border-bottom: 1px solid var(--brand-border);
    padding: 1rem 1.25rem;
  }
  .card-header h5 { font-weight: 600; }

  /* ===== Nav tabs / pills ===== */
  .nav-pills .nav-link { border-radius: 8px; color: var(--brand-text); font-weight: 500; }
  .nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    background: var(--brand-gradient-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(21, 68, 143, 0.25);
  }
  .nav-tabs .nav-link { color: var(--brand-text); }
  .nav-tabs .nav-link.active {
    color: var(--brand-primary) !important;
    border: none !important;
    border-bottom: 3px solid var(--brand-accent) !important;
    background: transparent !important;
    font-weight: 600;
  }

  /* ===== Forms ===== */
  .form-control, .form-select {
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    color: var(--brand-text);
    transition: border-color .2s, box-shadow .2s;
  }
  .form-control:focus, .form-select:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 0.18rem rgba(21, 68, 143, 0.15) !important;
  }
  .form-check-input:checked { background-color: var(--brand-primary) !important; border-color: var(--brand-primary) !important; }

  /* Fix for custom .checkbox-primary showing Bootstrap's default check
     underneath the custom :before/:after overlay on click */
  input.checkbox-primary,
  input.checkbox-primary.form-check-input,
  input.checkbox-primary[type="checkbox"] {
    background-image: none !important;
    background-color: transparent !important;
    border-color: transparent !important;
  }
  input.checkbox-primary:checked,
  input.checkbox-primary.form-check-input:checked,
  input.checkbox-primary[type="checkbox"]:checked {
    background-image: none !important;
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
  input.checkbox-primary:focus,
  input.checkbox-primary.form-check-input:focus { box-shadow: none !important; outline: none !important; }
  .form-check-input:focus { box-shadow: 0 0 0 0.18rem rgba(21, 68, 143, 0.18) !important; }
  /* form-label kept at template default (no brand override) */

  /* ===== Tables ===== */
  table.dataTable, .table { color: var(--brand-text); }

  /* Header row kept transparent — color goes on individual TH so radius renders */
  table.dataTable thead tr,
  .table > thead > tr {
    background: transparent !important;
    background-color: transparent !important;
  }
  table.dataTable thead > tr > th,
  .table > thead > tr > th {
    background-color: #F4F7FC !important;
    background-clip: padding-box !important;
    color: var(--brand-heading) !important;
    border-top: none !important;
    border-bottom: 2px solid var(--brand-primary) !important;
    font-weight: 600 !important;
    letter-spacing: 0.1px;
    text-transform: none;
    font-size: 13.5px;
    padding: 11px 14px 10px !important;
    vertical-align: middle;
  }

  /* Small gap between the top row (show entries / export btn / search) and the table header */
  .dataTables_wrapper .dataTables_scroll,
  .dataTables_wrapper > table.dataTable,
  .dataTables_wrapper .dataTable { margin-top: 10px !important; }

  /* Table edge-to-edge tweak reverted — keeping original template padding. */

  /* Table header corners kept flat (no radius) */
  table.dataTable > thead > tr > th,
  .table > thead > tr > th { border-radius: 0 !important; }

  /* Sort icons in DataTables */
  table.dataTable thead .sorting:before,
  table.dataTable thead .sorting:after,
  table.dataTable thead .sorting_asc:before,
  table.dataTable thead .sorting_asc:after,
  table.dataTable thead .sorting_desc:before,
  table.dataTable thead .sorting_desc:after { color: var(--brand-muted) !important; opacity: 0.6; }
  table.dataTable thead .sorting_asc:after,
  table.dataTable thead .sorting_desc:before { color: var(--brand-primary) !important; opacity: 1; }

  .table-primary { background-color: var(--brand-primary-050) !important; }
  .table-hover tbody tr:hover { background-color: #F8FAFD !important; }
  .table > :not(caption) > * > * { border-bottom-color: var(--brand-border); }
  .table tbody tr { border-bottom: 1px solid #EEF2F8; }

  /* ===== Pagination (colors only — spacing untouched) ===== */
  .page-item .page-link { color: var(--brand-primary); }
  .page-item .page-link:hover {
    background-color: #EEF3FB !important;
    color: var(--brand-primary) !important;
    border-color: var(--brand-primary-100) !important;
  }
  .page-item.active .page-link {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #fff !important;
  }

  /* DataTables pagination — colors only */
  .dataTables_wrapper .dataTables_paginate .paginate_button { color: var(--brand-primary) !important; }
  .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #EEF3FB !important;
    color: var(--brand-primary) !important;
    border-color: var(--brand-primary-100) !important;
  }
  .dataTables_wrapper .dataTables_paginate .paginate_button.current,
  .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
  .dataTables_wrapper .dataTables_paginate .paginate_button:active {
    background: var(--brand-primary) !important;
    color: #fff !important;
    border-color: var(--brand-primary) !important;
  }

  /* ===== Alerts ===== */
  .alert { border-radius: 10px; border: 1px solid transparent; }
  .alert-primary   { background-color: var(--brand-primary-050) !important; color: var(--brand-primary-700) !important; border-color: var(--brand-primary-100) !important; }
  .alert-secondary { background-color: var(--brand-accent-050)  !important; color: var(--brand-accent-600)  !important; border-color: var(--brand-accent-soft) !important; }
  .alert-success   { background-color: var(--brand-success-soft)!important; color: var(--brand-success-600)!important; border-color: var(--brand-success-soft) !important; }

  /* ===== Progress ===== */
  .progress { background-color: var(--brand-primary-050); border-radius: 10px; height: 10px; }
  .progress-bar { background: var(--brand-gradient-primary); }
  .progress-bar.bg-secondary { background: var(--brand-gradient-accent) !important; }
  .progress-bar.bg-success   { background-color: var(--brand-success) !important; }

  /* ===== Accordion ===== */
  .accordion-item { border: 1px solid var(--brand-border); border-radius: 10px !important; overflow: hidden; }
  #accordionPanelsStayOpenExample .accordion-header,
  .accordion-button:not(.collapsed) {
    background-color: var(--brand-primary-050) !important;
    color: var(--brand-primary) !important;
    box-shadow: inset 0 -1px 0 var(--brand-primary-100) !important;
    font-weight: 600;
  }
  .accordion-button:focus { border-color: var(--brand-primary) !important; box-shadow: 0 0 0 0.18rem rgba(21, 68, 143, 0.15) !important; }

  /* ===== Full calendar ===== */
  .fc .fc-button-primary {
    background: var(--brand-gradient-primary) !important;
    border: 1px solid var(--brand-primary) !important;
    color: #fff !important;
    border-radius: 8px !important;
  }
  .fc .fc-button-primary:hover { background: var(--brand-primary-600) !important; border-color: var(--brand-primary-600) !important; }
  .fc .fc-button-primary:not(:disabled).fc-button-active {
    background: var(--brand-gradient-accent) !important;
    border-color: var(--brand-accent) !important;
  }

  /* ===== Timeline ===== */
  .square-timeline .timeline-event .timeline-event-wrapper .timeline-thumbnail {
    background-color: var(--brand-primary-050) !important;
    color: var(--brand-primary) !important;
  }
  .square-timeline .timeline-event:hover .timeline-event-wrapper .timeline-thumbnail {
    box-shadow: inset 115em 0 0 0 var(--brand-primary); color: #fff !important;
  }

  /* ===== Login / Auth ===== */
  /* .login-card background left untouched — inline style uses assets/images/login_bg.jpg */
  .login-card .login-main {
    background-color: #fff;
    box-shadow: 0 20px 60px rgba(11, 42, 91, 0.25);
    border-radius: 16px;
    border-top: 4px solid var(--brand-accent);
    padding: 40px;
  }
  .login-card .login-main h4 { color: var(--brand-primary); font-weight: 700; }
  .login-card .login-main .btn-primary { width: 100%; padding: 10px; }

  /* ===== Dropdown ===== */
  .dropdown-menu {
    border: 1px solid var(--brand-border);
    border-radius: 10px;
    box-shadow: var(--brand-shadow-lg);
    padding: 6px;
  }
  .dropdown-item { border-radius: 6px; padding: 8px 12px; color: var(--brand-text); }
  .dropdown-item.active, .dropdown-item:active { background: var(--brand-gradient-primary) !important; color: #fff !important; }
  .dropdown-item:hover { background-color: var(--brand-primary-050); color: var(--brand-primary); }

  /* ===== Select2 ===== */
  .select2-container--default .select2-selection--single,
  .select2-container--default .select2-selection--multiple { border: 1px solid var(--brand-border) !important; border-radius: 8px !important; }
  .select2-container--default .select2-selection--single:focus,
  .select2-container--default.select2-container--focus .select2-selection--single { border-color: var(--brand-primary) !important; box-shadow: 0 0 0 0.18rem rgba(21, 68, 143, 0.15); }
  .select2-container--default .select2-results__option--highlighted[aria-selected] { background-color: var(--brand-primary) !important; }

  /* ===== Breadcrumb ===== */
  .breadcrumb-item.active { color: var(--brand-primary); font-weight: 500; }
  .breadcrumb-item + .breadcrumb-item::before { color: var(--brand-muted); }

  /* ===== Tooltips / popovers ===== */
  .tooltip-inner { background-color: var(--brand-primary-700); border-radius: 6px; font-weight: 500; }
  .bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
  .bs-tooltip-top .tooltip-arrow::before { border-top-color: var(--brand-primary-700); }

  /* ===== Scrollbar ===== */
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background-color: rgba(21, 68, 143, 0.30); border-radius: 10px; }
  ::-webkit-scrollbar-thumb:hover { background-color: var(--brand-primary); }

  /* ===== Profile dropdown — SIDEBAR-STYLE icon badges ===== */
  header .profile-dropdown .custom-menu,
  .profile-dropdown .custom-menu {
    padding: 8px !important;
    border-radius: 12px !important;
    border: 1px solid var(--brand-border) !important;
    box-shadow: 0 12px 32px rgba(15, 42, 91, 0.12) !important;
    min-width: 210px !important;
  }
  header .profile-dropdown .custom-menu ul,
  .profile-dropdown .custom-menu ul { padding: 0 !important; }

  header .profile-dropdown .custom-menu ul li,
  .profile-dropdown .custom-menu ul li {
    padding: 0 !important;
    border: none !important;
    margin: 2px 0 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 10px !important;
    transition: all .22s cubic-bezier(.4,0,.2,1) !important;
    cursor: pointer;
  }
  header .profile-dropdown .custom-menu ul li + li,
  .profile-dropdown .custom-menu ul li + li { border-top: none !important; }

  /* Icon badge — same as sidebar style */
  header .profile-dropdown .custom-menu ul li svg,
  .profile-dropdown .custom-menu ul li svg {
    width: 32px !important;
    height: 32px !important;
    padding: 7px !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
    background-color: rgba(21, 68, 143, 0.08) !important;
    stroke: var(--brand-primary) !important;
    color: var(--brand-primary) !important;
    fill: none !important;
    transition: all .22s cubic-bezier(.4,0,.2,1) !important;
    flex-shrink: 0;
  }
  header .profile-dropdown .custom-menu ul li svg path,
  header .profile-dropdown .custom-menu ul li svg g,
  .profile-dropdown .custom-menu ul li svg path,
  .profile-dropdown .custom-menu ul li svg g {
    stroke: var(--brand-primary) !important;
    fill: none !important;
  }

  /* Text */
  header .profile-dropdown .custom-menu ul li a,
  .profile-dropdown .custom-menu ul li a {
    color: #3F4E6B !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1;
  }

  /* Hover — sidebar-like slide + tint */
  header .profile-dropdown .custom-menu ul li:hover,
  .profile-dropdown .custom-menu ul li:hover {
    background-color: #EAF1FA !important;
    transform: translateX(2px);
  }
  header .profile-dropdown .custom-menu ul li:hover svg,
  .profile-dropdown .custom-menu ul li:hover svg,
  header .profile-dropdown .custom-menu ul li:hover svg path,
  header .profile-dropdown .custom-menu ul li:hover svg g {
    background-color: rgba(21, 68, 143, 0.16) !important;
    stroke: var(--brand-primary) !important;
  }
  header .profile-dropdown .custom-menu ul li:hover a,
  .profile-dropdown .custom-menu ul li:hover a { color: var(--brand-primary) !important; }

  /* ===== Bootstrap dropdown-menu (DataTable action, etc.) — same sidebar-style items ===== */
  .dropdown-menu {
    padding: 8px !important;
    border-radius: 12px !important;
    border: 1px solid var(--brand-border) !important;
    box-shadow: 0 12px 32px rgba(15, 42, 91, 0.12) !important;
    min-width: 180px;
  }
  .dropdown-menu .dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 10px !important;
    margin: 2px 0 !important;
    border-radius: 10px !important;
    color: #3F4E6B !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all .22s cubic-bezier(.4,0,.2,1) !important;
  }

  /* Icon badges for any icon (i / svg) inside a dropdown item */
  .dropdown-menu .dropdown-item > i,
  .dropdown-menu .dropdown-item > svg,
  .dropdown-menu .dropdown-item > .icon,
  .dropdown-menu .dropdown-item > span > i,
  .dropdown-menu .dropdown-item > span > svg {
    width: 30px !important;
    height: 30px !important;
    padding: 7px !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
    background-color: rgba(21, 68, 143, 0.08) !important;
    color: var(--brand-primary) !important;
    stroke: var(--brand-primary) !important;
    fill: none !important;
    font-size: 14px !important;
    line-height: 1 !important;
    text-align: center;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .22s cubic-bezier(.4,0,.2,1) !important;
  }

  /* Hover / focus — sidebar-like slide + tint */
  .dropdown-menu .dropdown-item:hover,
  .dropdown-menu .dropdown-item:focus {
    background-color: #EAF1FA !important;
    color: var(--brand-primary) !important;
    transform: translateX(2px);
  }
  .dropdown-menu .dropdown-item:hover > i,
  .dropdown-menu .dropdown-item:hover > svg,
  .dropdown-menu .dropdown-item:focus > i,
  .dropdown-menu .dropdown-item:focus > svg {
    background-color: rgba(21, 68, 143, 0.16) !important;
    color: var(--brand-primary) !important;
    stroke: var(--brand-primary) !important;
  }

  /* Active item — solid blue gradient pill like sidebar active */
  .dropdown-menu .dropdown-item.active,
  .dropdown-menu .dropdown-item:active {
    background: var(--brand-gradient-primary) !important;
    color: #fff !important;
    transform: none !important;
  }
  .dropdown-menu .dropdown-item.active > i,
  .dropdown-menu .dropdown-item.active > svg,
  .dropdown-menu .dropdown-item:active > i,
  .dropdown-menu .dropdown-item:active > svg {
    background-color: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    stroke: #fff !important;
  }

  /* Destructive actions (Delete / Remove) tinted red */
  .dropdown-menu .dropdown-item.text-danger,
  .dropdown-menu .dropdown-item[class*="delete"],
  .dropdown-menu .dropdown-item[class*="remove"] { color: var(--brand-danger) !important; }
  .dropdown-menu .dropdown-item.text-danger > i,
  .dropdown-menu .dropdown-item.text-danger > svg,
  .dropdown-menu .dropdown-item[class*="delete"] > i,
  .dropdown-menu .dropdown-item[class*="remove"] > i {
    background-color: rgba(220, 53, 69, 0.10) !important;
    color: var(--brand-danger) !important;
    stroke: var(--brand-danger) !important;
  }
  .dropdown-menu .dropdown-item.text-danger:hover,
  .dropdown-menu .dropdown-item[class*="delete"]:hover,
  .dropdown-menu .dropdown-item[class*="remove"]:hover {
    background-color: rgba(220, 53, 69, 0.08) !important;
    color: var(--brand-danger) !important;
  }
  .dropdown-menu .dropdown-item.text-danger:hover > i,
  .dropdown-menu .dropdown-item[class*="delete"]:hover > i {
    background-color: rgba(220, 53, 69, 0.18) !important;
  }

  /* Divider */
  .dropdown-menu .dropdown-divider { border-top: 1px solid var(--brand-border) !important; margin: 4px -8px !important; }

  /* ===== DataTable Action column dropdown (.tooltip-btn) — clean pill style ===== */
  /* Trigger hamburger icon — plain (no bg) */
  table .action-dropdown > ul.main-menu > li > i.fa-bars,
  table .dtr-data > ul > li > i.fa-bars,
  td .action-dropdown > ul > li > i.fa-bars,
  td > ul > li > i.fa-bars,
  .dtr-data > ul > li > i.fa-bars {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: var(--brand-primary);
    cursor: pointer;
    transition: color .18s ease;
  }
  table .action-dropdown > ul.main-menu > li:hover > i.fa-bars,
  table .dtr-data > ul > li:hover > i.fa-bars,
  td .action-dropdown > ul > li:hover > i.fa-bars,
  td > ul > li:hover > i.fa-bars,
  .dtr-data > ul > li:hover > i.fa-bars {
    background: transparent !important;
    color: var(--brand-primary-600);
  }

  /* Dropdown panel */
  .tooltip-btn,
  ul.tooltip-btn {
    background: #FFFFFF !important;
    border: 1px solid var(--brand-border) !important;
    border-radius: 10px !important;
    padding: 6px !important;
    box-shadow: 0 10px 28px rgba(15, 42, 91, 0.12) !important;
    min-width: 160px !important;
    list-style: none !important;
    margin: 6px 0 0 0 !important;
    z-index: 100;
  }

  .tooltip-btn > li {
    list-style: none !important;
    padding: 0 !important;
    margin: 1px 0 !important;
    border: none !important;
    border-radius: 8px !important;
  }

  .tooltip-btn > li > a {
    display: block !important;
    padding: 8px 12px !important;
    color: #3F4E6B !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: background-color .18s ease, color .18s ease;
  }

  .tooltip-btn > li > a:hover,
  .tooltip-btn > li > a:focus {
    background-color: #EEF3FB !important;
    color: var(--brand-primary) !important;
  }

  /* Destructive (delete / reject) — red text, soft red hover */
  .tooltip-btn > li > a.delete,
  .tooltip-btn > li > a#deleted,
  .tooltip-btn > li > a[id*="delete"],
  .tooltip-btn > li > a.reject,
  .tooltip-btn > li > a#rejected { color: var(--brand-danger) !important; }
  .tooltip-btn > li > a.delete:hover,
  .tooltip-btn > li > a#deleted:hover,
  .tooltip-btn > li > a[id*="delete"]:hover,
  .tooltip-btn > li > a.reject:hover,
  .tooltip-btn > li > a#rejected:hover {
    background-color: rgba(220, 53, 69, 0.08) !important;
    color: var(--brand-danger) !important;
  }

  /* =====================================================
     GLOBAL ICON COLOR — sidebar-matching brand blue
     Any FontAwesome / Bootstrap Icon / IcoFont / generic <i>
     defaults to brand blue. Contextual overrides below keep
     colored buttons/badges/alerts intact.
     ===================================================== */
  i.fa, i.fas, i.far, i.fab, i.fa-solid, i.fa-regular, i.fa-brands,
  i.bi, i.icofont, i.ti, i.feather, i.material-icons,
  .fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands,
  .bi, .icofont,
  svg.stroke-icon, svg.date-icon, svg.svg-color {
    color: var(--brand-primary) !important;
    stroke: var(--brand-primary) !important;
    fill: var(--brand-primary);
  }
  /* SVG whose artwork relies on fill="none" must stay transparent */
  svg.stroke-icon, svg.svg-color { fill: none !important; }

  /* Icons inside colored buttons / badges / alerts keep their context color */
  .btn-primary > i, .btn-primary > svg, .btn-primary i.fa, .btn-primary i.fas, .btn-primary i.bi,
  .btn-secondary > i, .btn-secondary > svg, .btn-secondary i.fa, .btn-secondary i.fas, .btn-secondary i.bi,
  .btn-success > i, .btn-success > svg, .btn-success i.fa, .btn-success i.fas, .btn-success i.bi,
  .btn-danger > i,  .btn-danger > svg, .btn-danger i.fa, .btn-danger i.fas, .btn-danger i.bi,
  .btn-warning > i, .btn-warning > svg, .btn-warning i.fa, .btn-warning i.fas, .btn-warning i.bi,
  .btn-info > i, .btn-info > svg, .btn-info i.fa, .btn-info i.fas, .btn-info i.bi,
  .btn-dark > i, .btn-dark > svg, .btn-dark i.fa, .btn-dark i.fas, .btn-dark i.bi,
  .btn[type="reset"] > i, .btn[type="reset"] i.fa, .btn[type="reset"] i.fas, .btn[type="reset"] i.bi,
  button[type="reset"] > i, button[type="reset"] i.fa, button[type="reset"] i.fas, button[type="reset"] i.bi,
  #resetButton i, #resetFilterForm i, #btnFilterReset i,
  .badge > i, .badge > svg, .badge i.fa, .badge i.fas, .badge i.bi,
  .alert > i, .alert > svg, .alert i.fa, .alert i.fas, .alert i.bi,
  .tap-top i, .tap-top svg,
  .page-sidebar .sidebar-menu .sidebar-list.active > .sidebar-link i,
  .page-sidebar .sidebar-menu .sidebar-list .sidebar-link.active i,
  a.text-white i, a.text-white svg,
  .text-white i, .text-white svg { color: inherit !important; stroke: currentColor !important; fill: currentColor !important; }

  /* Preserve explicit text-color utilities on icons */
  i.text-danger, .text-danger > i, .text-danger > .fa, .text-danger > .bi { color: var(--brand-danger)  !important; stroke: var(--brand-danger)  !important; fill: var(--brand-danger)  !important; }
  i.text-success, .text-success > i, .text-success > .fa, .text-success > .bi { color: var(--brand-success) !important; stroke: var(--brand-success) !important; fill: var(--brand-success) !important; }
  i.text-warning, .text-warning > i, .text-warning > .fa, .text-warning > .bi { color: var(--brand-warning) !important; stroke: var(--brand-warning) !important; fill: var(--brand-warning) !important; }
  i.text-muted,   .text-muted > i,   .text-muted > .fa,   .text-muted > .bi { color: var(--brand-muted)   !important; stroke: var(--brand-muted)   !important; fill: var(--brand-muted)   !important; }

  /* Navbar calendar icon — override its inline fill: #007bff */
  .page-main-header svg.date-icon,
  header svg.date-icon,
  svg.date-icon { fill: var(--brand-primary) !important; }

  /* =====================================================
     Sidebar-style BADGE for content icons (accordion / list)
     ===================================================== */
  .card-body .accordion-button > i.fa,
  .card-body .accordion-button > i.fas,
  .card-body .accordion-button > i.fa-solid,
  .card-body .accordion-button > i.fa-regular,
  .card-body .accordion-button > i.bi,
  .accordion .employee-row > .col-8 > i.fa,
  .accordion .employee-row > .col-8 > i.fas,
  .accordion .employee-row > .col-8 > i.fa-solid,
  .accordion .employee-row > .col-8 > i.fa-regular,
  .accordion .employee-row > .col-8 > i.bi,
  .card-body > .row > .col > i.fa,
  .card-body > .row > .col > i.bi {
    width: 30px !important;
    height: 30px !important;
    padding: 7px !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
    background-color: rgba(21, 68, 143, 0.08) !important;
    color: var(--brand-primary) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    line-height: 1 !important;
    margin-right: 8px;
    transition: all .22s cubic-bezier(.4,0,.2,1);
  }
  /* Hover (on parent row/button) — darker tint, same blue icon */
  .card-body .accordion-button:hover > i.fa,
  .card-body .accordion-button:hover > i.fas,
  .card-body .accordion-button:hover > i.fa-solid,
  .card-body .accordion-button:hover > i.bi,
  .accordion .employee-row:hover > .col-8 > i.fa,
  .accordion .employee-row:hover > .col-8 > i.fa-solid,
  .accordion .employee-row:hover > .col-8 > i.bi {
    background-color: rgba(21, 68, 143, 0.16) !important;
    color: var(--brand-primary) !important;
  }

  /* =====================================================
     Datepicker — today + hover + picked in brand blue
     (targets fengyuanchen/datepicker markup)
     ===================================================== */
  .datepicker-panel > ul > li:hover {
    background-color: var(--brand-primary-050) !important;
    color: var(--brand-primary) !important;
  }
  .datepicker-panel > ul > li.highlighted {
    background-color: var(--brand-primary-100) !important;
    color: var(--brand-primary) !important;
    font-weight: 600;
    border-radius: 6px;
  }
  .datepicker-panel > ul > li.highlighted:hover {
    background-color: var(--brand-primary) !important;
    color: #fff !important;
  }
  .datepicker-panel > ul > li.picked,
  .datepicker-panel > ul > li.picked:hover {
    background-color: var(--brand-primary) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 6px;
  }

  /* Bootstrap-datepicker / common .datepicker fallback targets */
  .datepicker table tr td.day:hover,
  .datepicker table tr td.focused {
    background: var(--brand-primary-050) !important;
    color: var(--brand-primary) !important;
  }
  .datepicker table tr td.today,
  .datepicker table tr td.today:hover,
  .datepicker table tr td.today.disabled,
  .datepicker table tr td.today.disabled:hover {
    background: var(--brand-primary-100) !important;
    color: var(--brand-primary) !important;
    font-weight: 600;
  }
  .datepicker table tr td.active,
  .datepicker table tr td.active:hover,
  .datepicker table tr td.active.active,
  .datepicker table tr td.active.disabled,
  .datepicker table tr td.active.disabled:hover {
    background: var(--brand-primary) !important;
    color: #fff !important;
    font-weight: 600;
  }
  .datepicker .datepicker-switch:hover,
  .datepicker .prev:hover,
  .datepicker .next:hover,
  .datepicker tfoot tr th:hover { background: var(--brand-primary-050) !important; color: var(--brand-primary) !important; }

  /* ===== INFO classes → brand primary (blue) ===== */
  :root { --bs-info: var(--brand-primary) !important; --bs-info-rgb: 21, 68, 143 !important; }

  .btn-info {
    background: var(--brand-gradient-primary) !important;
    border: 1px solid var(--brand-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(21, 68, 143, 0.22);
  }
  .btn-info:hover, .btn-info:focus, .btn-info:active:focus, .btn-info.show {
    background: var(--brand-primary-600) !important;
    border-color: var(--brand-primary-600) !important;
    color: #fff !important;
  }
  .btn-outline-info { color: var(--brand-primary) !important; border: 1px solid var(--brand-primary) !important; background: transparent !important; }
  .btn-outline-info:hover { background: var(--brand-primary) !important; color: #fff !important; }

  .bg-info, .badge-info { background-color: var(--brand-primary) !important; color: #fff !important; }
  .bg-light-info, .badge-light-info {
    background-color: var(--brand-primary-050) !important;
    color: var(--brand-primary) !important;
  }
  .bg-light-info h1, .bg-light-info .h1,
  .bg-light-info h2, .bg-light-info .h2,
  .bg-light-info h3, .bg-light-info .h3,
  .bg-light-info h4, .bg-light-info .h4,
  .bg-light-info h5, .bg-light-info .h5,
  .bg-light-info h6, .bg-light-info .h6 { color: var(--brand-primary) !important; }

  .text-info, a.text-info { color: var(--brand-primary) !important; }
  .alert-info {
    background-color: var(--brand-primary-050) !important;
    color: var(--brand-primary-700) !important;
    border-color: var(--brand-primary-100) !important;
  }
  .table-info { background-color: var(--brand-primary-050) !important; }
  .progress-bar.bg-info { background-color: var(--brand-primary) !important; }

  /* ===== Pink/salmon leftovers → saffron ===== */
  :root { --pitch-color: #F58220 !important; --bs-pink: #F58220 !important; }
  .text-pink, a.text-pink { color: var(--brand-accent) !important; }
  .bg-pink { background-color: var(--brand-accent) !important; color: #fff !important; }
  .btn-pink {
    background: var(--brand-gradient-accent) !important;
    border-color: var(--brand-accent) !important;
    color: #fff !important;
  }
  .btn-pink:hover, .btn-pink:focus {
    background: var(--brand-accent-600) !important;
    border-color: var(--brand-accent-600) !important;
    color: #fff !important;
  }
  .badge-pink, .bg-light-pink, .badge-light-pink {
    background-color: var(--brand-accent-050) !important;
    color: var(--brand-accent-600) !important;
  }

  /* When the global #ajax_loader is active, suppress any
     page-level .loader-wrapper / .loader-wrapper-new / .spiners so
     only one loader is visible at a time. */
  body.has-global-loader .loader-wrapper,
  body.has-global-loader .loader-wrapper-new,
  body.has-global-loader .spiners,
  body.has-global-loader #cover { display: none !important; }

  /* `.spiners` uses a hardcoded GIF — suppress it always so the brand
     globe loader is the only loader the user ever sees on export. */
  .spiners { display: none !important; }

  /* =====================================================
     BRAND LOADER — actual logo images (hands + globe).
     Hands image rotates, globe image flips in 3D.
     Used EVERYWHERE (global #ajax_loader + any .loader-wrapper
     — app.blade.php injects this markup automatically).
     ===================================================== */
  .brand-loader {
    position: relative;
    width: 90px;
    height: 90px;
    margin: auto;
    display: inline-block;
  }
  .brand-loader .bl-hands,
  .brand-loader .bl-globe {
    position: absolute;
    top: 50%; left: 50%;
    display: block;
    user-select: none;
    pointer-events: none;
    transform-origin: 50% 50%;
    backface-visibility: visible;
  }
  /* Hands — full size, continuous rotation */
  .brand-loader .bl-hands {
    width: 90px;
    height: 90px;
    margin: -45px 0 0 -45px;
    animation: brandHandsSpin 3.2s linear infinite;
    filter: drop-shadow(0 3px 8px rgba(15, 42, 91, 0.15));
  }
  /* Globe — centered, smaller, 3D flip */
  .brand-loader .bl-globe {
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    transform-style: preserve-3d;
    animation: brandGlobeFlip 2.4s ease-in-out infinite;
    filter: drop-shadow(0 2px 6px rgba(15, 42, 91, 0.30));
  }

  @keyframes brandHandsSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }
  @keyframes brandGlobeFlip {
    0%   { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
  }

  /* =====================================================
     Modal popup — simple & clean
     - Remove stock profile-bg.png image
     - Soft loader-color glows (saffron top-left, blue center, green bottom-right)
     - Distinguished header with brand accent
     ===================================================== */
  .modal .modal-content,
  .modal-content,
  .modal .modal-content .social-profile,
  .modal-content .social-profile {
    background-image:
      radial-gradient(circle at 8% 10%,  rgba(245, 130, 32, 0.14) 0%, transparent 40%),
      radial-gradient(circle at 92% 90%, rgba(31, 161,  74, 0.14) 0%, transparent 42%),
      radial-gradient(circle at 50% 50%, rgba(21,  68, 143, 0.07) 0%, transparent 65%) !important;
    background-color: #FFFFFF !important;
    background-repeat: no-repeat !important;
  }

  /* Header — brand look: blue title, subtle blue-tinted underline */
  .modal-content .modal-header {
    background-color: rgba(21, 68, 143, 0.05);
    border-bottom: 2px solid var(--brand-primary) !important;
    padding: 14px 20px;
  }
  .modal-content .modal-header.border-0 { border-bottom: 2px solid var(--brand-primary) !important; }
  .modal-content .modal-header .modal-title,
  .modal-content h3.modal-header,
  .modal-content h4.modal-header,
  .modal-content h5.modal-header {
    color: var(--brand-heading) !important;
    font-weight: 600 !important;
    margin: 0;
  }

  /* Close button — brand tint, clean */
  .modal-content .btn-close {
    background-color: rgba(21, 68, 143, 0.08);
    border-radius: 6px;
    padding: 8px;
    opacity: 0.8;
    transition: all .18s ease;
  }
  .modal-content .btn-close:hover {
    background-color: rgba(21, 68, 143, 0.16);
    opacity: 1;
  }

  /* ========= Page-level .loader-wrapper / .loader-wrapper-new =========
     NOTE: never force `display` here — inline style="display:none" /
     jQuery fadeOut/hide/remove must stay in charge of visibility.
     We only restyle the WRAPPER look + kill the old box-morph animation. */
  .loader-wrapper, .loader-wrapper-new {
    background-color: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  /* Hide old GIF (keeps working even before brand upgrade) */
  .loader-wrapper-new img { display: none !important; }

  /* Old template animation inside .loader — disable so only brand-loader shows */
  .loader-wrapper .loader,
  .loader-wrapper-new .loader {
    transform: none !important;
    background: transparent !important;
  }
  .loader-wrapper .loader::before,
  .loader-wrapper .loader::after,
  .loader-wrapper-new .loader::before,
  .loader-wrapper-new .loader::after {
    display: none !important;
    animation: none !important;
    content: none !important;
  }

  /* ===== Small utility polish ===== */
  hr { border-color: var(--brand-border); opacity: 1; }
  .tap-top { background: var(--brand-gradient-primary) !important; opacity: 1; box-shadow: 0 4px 14px rgba(21, 68, 143, 0.35); }



.page-sidebar.scroolbar .sidebar-menu {
    height: calc(100vh - 70px); overflow-x:hidden !important;
}

.page-sidebar .sidebar-menu {
    height: calc(100vh - 70px); overflow-x:hidden !important;
}

/* =========================================================================
 * GLOBAL PRINT STYLES
 * Force every printable element to black ink only — no theme blue, no
 * accent colors, no colored backgrounds. Applies to every page that uses
 * the browser's Print dialog (Ctrl+P) or window.print().
 * ========================================================================= */
@media print {
    /* Universally force text + background to black/white. The selector list
       intentionally covers headings, links, badges, buttons, table cells,
       form labels, plain text, and Bootstrap utility classes that ship with
       theme-blue colors. */
    html, body,
    h1, h2, h3, h4, h5, h6,
    p, span, div, label, a,
    th, td, li, dt, dd, small, strong, b, em, i,
    .text-primary, .text-info, .text-success, .text-danger,
    .text-warning, .text-secondary, .text-blue, .text-white,
    .card-title, .nav-link, .badge,
    .btn, .btn-primary, .btn-info, .btn-warning, .btn-danger, .btn-success,
    .form-control, .form-control-plaintext, .form-label,
    .col-form-label, .fw-bold {
        color: #000 !important;
        text-shadow: none !important;
    }

    /* Strip background colors so cards/badges don't print as solid blue boxes */
    .card, .card-body, .card-header, .card-footer,
    .btn, .badge,
    .table, .table th, .table td,
    .filter-card,
    .page-body, .page-wrapper, .container-fluid {
        background: #fff !important;
        background-color: #fff !important;
        box-shadow: none !important;
    }

    /* Borders kept thin black so receipts/invoices still look structured */
    .card, .card-body, .card-header, .card-footer,
    .table, .table th, .table td {
        border-color: #000 !important;
    }

    /* Links shouldn't show blue underline color in print */
    a, a:visited, a:hover, a:focus, a:active {
        color: #000 !important;
        text-decoration: none !important;
    }

    /* Help printing render exactly as styled (Chrome respects this for backgrounds) */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

