/**
 * Digital Auto FI — premium sidebar (aligned + clear icons)
 */
:root {
    --da-aside-width: 175px;
    --da-aside-min-width: 72px;
    --da-aside-bg: #f4f7fb;
    --da-aside-border: #e2e8f0;
    --da-aside-ink: #0f172a;
    --da-aside-text: #334155;
    --da-aside-muted: #64748b;
    --da-aside-accent: #1d4ed8;
    --da-aside-accent-2: #2563eb;
    --da-aside-chip: #e8effc;
    --da-aside-chip-icon: #1d4ed8;
}

@media (min-width: 992px) {
    .aside,
    .aside .aside-menu {
        width: var(--da-aside-width) !important;
    }

    .aside-enabled.aside-fixed .wrapper {
        padding-left: var(--da-aside-width) !important;
    }

    .aside-enabled.aside-fixed[data-kt-aside-minimize="on"] .wrapper {
        padding-left: var(--da-aside-min-width) !important;
    }

    [data-kt-aside-minimize="on"] .aside {
        width: var(--da-aside-min-width) !important;
    }

    [data-kt-aside-minimize="on"] .aside.aside-hoverable:hover:not(.animating) {
        width: var(--da-aside-width) !important;
    }

    .aside.aside-fixed .aside-logo {
        padding: 0 1rem !important;
        height: 64px !important;
    }

    .aside.aside-fixed .aside-menu {
        padding-left: .55rem !important;
        padding-right: .55rem !important;
    }

    body:not([data-kt-aside-minimize="on"]) .aside-fixed .aside-menu .menu .menu-sub:not([data-popper-placement]) {
        margin-left: .15rem !important;
    }

    .header-fixed .header {
        left: var(--da-aside-width) !important;
    }

    .aside-enabled.aside-fixed[data-kt-aside-minimize="on"] .header-fixed .header {
        left: var(--da-aside-min-width) !important;
    }
}

#kt_aside.aside {
    background: var(--da-aside-bg) !important;
    border-right: 1px solid var(--da-aside-border) !important;
    box-shadow: none !important;
}

#kt_aside .aside-logo {
    background: #fff !important;
    border-bottom: 1px solid var(--da-aside-border) !important;
    justify-content: space-between !important;
}

#kt_aside .aside-logo .logo {
    max-height: 32px !important;
    border-radius: 6px;
}

#kt_aside #kt_aside_toggle {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    border: 1px solid var(--da-aside-border) !important;
    color: var(--da-aside-muted) !important;
}

#kt_aside #kt_aside_toggle:hover {
    color: var(--da-aside-accent) !important;
    border-color: #93c5fd !important;
    background: #eff6ff !important;
}

#kt_aside #kt_aside_toggle .svg-icon svg [fill] {
    fill: currentColor !important;
}

#kt_aside .aside-menu {
    background: transparent !important;
}

#kt_aside_menu_wrapper {
    margin-top: .5rem !important;
    margin-bottom: .5rem !important;
}

#kt_aside .menu {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

#kt_aside .menu-item > .menu-content {
    padding: .35rem .45rem .08rem !important;
}

#kt_aside .menu-section,
#kt_aside .menu-content .menu-section {
    display: block !important;
    color: #94a3b8 !important;
    font-size: .6rem !important;
    font-weight: 700 !important;
    letter-spacing: .11em !important;
    text-transform: uppercase !important;
    padding: 0 !important;
    margin: 0 !important;
}

#kt_aside .separator {
    border-bottom-color: var(--da-aside-border) !important;
    margin: .55rem .25rem !important;
}

/* Row — compact + clean */
#kt_aside .menu-item > .menu-link {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 .4rem !important;
    border-radius: 9px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    gap: 0 !important;
    transition: background .12s ease, border-color .12s ease, box-shadow .12s ease !important;
}

#kt_aside .menu-item > .menu-link .menu-title {
    flex: 1 1 auto !important;
    color: var(--da-aside-text) !important;
    font-size: .75rem !important;
    font-weight: 600 !important;
    letter-spacing: -.01em;
    line-height: 1.2 !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Icon — no chip background */
#kt_aside .menu-item > .menu-link .menu-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    margin: 0 .45rem 0 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--da-aside-chip-icon) !important;
    flex: 0 0 22px !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

#kt_aside .menu-item > .menu-link .menu-icon .bi,
#kt_aside .menu-item > .menu-link .menu-icon i.bi {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1em !important;
    height: 1em !important;
    font-size: .875rem !important;
    line-height: 1 !important;
    color: inherit !important;
    vertical-align: middle !important;
}

#kt_aside .menu-item > .menu-link .menu-icon .bi::before,
#kt_aside .menu-item > .menu-link .menu-icon i.bi::before {
    display: block !important;
    line-height: 1 !important;
}

#kt_aside .menu-item > .menu-link .menu-icon .svg-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: .95rem !important;
    height: .95rem !important;
    margin: 0 !important;
}

#kt_aside .menu-item > .menu-link .menu-icon .svg-icon svg {
    width: .95rem !important;
    height: .95rem !important;
}

#kt_aside .menu-item > .menu-link .menu-icon .svg-icon svg [fill]:not(.permanent):not(g) {
    fill: currentColor !important;
}

#kt_aside .menu-item > .menu-link .menu-arrow {
    color: #94a3b8 !important;
    width: .85rem !important;
    min-width: .85rem !important;
    margin-left: .35rem !important;
    flex: 0 0 auto !important;
}

/* Hover */
#kt_aside .menu-item > .menu-link:hover {
    background: #fff !important;
    border-color: #dbe5f5 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
}

#kt_aside .menu-item > .menu-link:hover .menu-title {
    color: var(--da-aside-ink) !important;
}

#kt_aside .menu-item > .menu-link:hover .menu-icon {
    background: transparent !important;
    color: var(--da-aside-accent) !important;
}

/* Active */
#kt_aside .menu-item > .menu-link.active,
#kt_aside .menu-item.here > .menu-link {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, .22) !important;
}

#kt_aside .menu-item > .menu-link.active .menu-title,
#kt_aside .menu-item.here > .menu-link .menu-title {
    color: #fff !important;
    font-weight: 700 !important;
}

#kt_aside .menu-item > .menu-link.active .menu-icon,
#kt_aside .menu-item.here > .menu-link .menu-icon {
    background: transparent !important;
    color: #fff !important;
}

#kt_aside .menu-item > .menu-link.active .menu-arrow,
#kt_aside .menu-item.here > .menu-link .menu-arrow {
    color: rgba(255, 255, 255, .9) !important;
}

/* Open accordion (not active page) */
#kt_aside .menu-item.show:not(.here) > .menu-link:not(.active) {
    background: #fff !important;
    border-color: #93c5fd !important;
}

#kt_aside .menu-item.show:not(.here) > .menu-link:not(.active) .menu-title {
    color: var(--da-aside-accent) !important;
}

/* Submenu */
#kt_aside .menu-sub {
    padding: .12rem 0 .2rem .15rem !important;
}

#kt_aside .menu-sub .menu-item > .menu-link {
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 .5rem 0 .65rem !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

#kt_aside .menu-sub .menu-item > .menu-link .menu-title {
    font-size: .775rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
}

#kt_aside .menu-sub .menu-item > .menu-link .menu-bullet {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    margin-right: .55rem;
    flex: 0 0 12px;
}

#kt_aside .menu-sub .menu-item > .menu-link .menu-bullet .bullet {
    width: 5px !important;
    height: 5px !important;
    background: #94a3b8 !important;
}

#kt_aside .menu-sub .menu-item > .menu-link:hover {
    background: #fff !important;
}

#kt_aside .menu-sub .menu-item > .menu-link.active {
    background: #e8effc !important;
    box-shadow: none !important;
}

#kt_aside .menu-sub .menu-item > .menu-link.active .menu-title {
    color: var(--da-aside-accent) !important;
    font-weight: 650 !important;
}

#kt_aside .menu-sub .menu-item > .menu-link.active .menu-bullet .bullet {
    background: var(--da-aside-accent) !important;
}

#kt_aside_menu_wrapper::-webkit-scrollbar {
    width: 4px;
}

#kt_aside_menu_wrapper::-webkit-scrollbar-thumb {
    background: #c5d0d8;
    border-radius: 99px;
}

[data-kt-aside-minimize="on"] #kt_aside .menu-item > .menu-link {
    justify-content: center !important;
    padding: 0 !important;
}

[data-kt-aside-minimize="on"] #kt_aside .menu-item > .menu-link .menu-icon {
    margin: 0 !important;
}

[data-kt-aside-minimize="on"] #kt_aside.aside-hoverable:hover .menu-item > .menu-link {
    justify-content: flex-start !important;
    padding: 0 .4rem !important;
}

[data-kt-aside-minimize="on"] #kt_aside.aside-hoverable:hover .menu-item > .menu-link .menu-icon {
    margin: 0 .6rem 0 0 !important;
}

/* ---- Page shell: kill white flash between sidebar navigations ---- */
html,
body {
    background: #f0f2f5 !important;
}

#kt_wrapper,
#kt_content,
#kt_post {
    background: #f0f2f5;
}

/* Desk pages (toolbar off) — apply at first paint via body.fi-desk */
body.fi-desk {
    --kt-toolbar-height: 0px !important;
    --kt-toolbar-height-tablet-and-mobile: 0px !important;
}

body.fi-desk.header-fixed #kt_wrapper,
body.fi-desk.header-fixed.toolbar-fixed #kt_wrapper {
    padding-top: 65px !important;
    background: #f0f2f5 !important;
}

@media (max-width: 991.98px) {
    body.fi-desk.header-tablet-and-mobile-fixed #kt_wrapper,
    body.fi-desk.header-tablet-and-mobile-fixed.toolbar-tablet-and-mobile-fixed #kt_wrapper {
        padding-top: 55px !important;
    }
}

body.fi-desk #kt_toolbar,
body.fi-desk .toolbar,
body.fi-desk #kt_page_title {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
}

body.fi-desk #kt_content,
body.fi-desk #kt_content.content,
body.fi-desk #kt_post,
body.fi-desk #kt_content > .post {
    flex-grow: 0 !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #f0f2f5 !important;
}

body.fi-desk #kt_content_container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* ---- Action buttons: show name on hover (Masters + Staff / Bank User / Surveyor) ---- */
.fi-bm-table-wrap,
.fi-ib-table-wrap,
.fi-ct-table-wrap,
.fi-co-table-wrap,
.fi-md-table-wrap,
.fi-vr-table-wrap,
.fi-st-table-wrap,
.fi-bu-table-wrap,
.fi-sv-table-wrap {
    overflow-x: auto !important;
    overflow-y: visible !important;
}

.fi-bm-table tbody td:last-child,
.fi-ib-table tbody td:last-child,
.fi-ct-table tbody td:last-child,
.fi-co-table tbody td:last-child,
.fi-md-table tbody td:last-child,
.fi-vr-table tbody td:last-child,
.fi-st-table tbody td:last-child,
.fi-bu-table tbody td:last-child,
.fi-sv-table tbody td:last-child {
    overflow: visible !important;
}

.fi-bm-table tbody tr:hover,
.fi-ib-table tbody tr:hover,
.fi-ct-table tbody tr:hover,
.fi-co-table tbody tr:hover,
.fi-md-table tbody tr:hover,
.fi-vr-table tbody tr:hover,
.fi-st-table tbody tr:hover,
.fi-bu-table tbody tr:hover,
.fi-sv-table tbody tr:hover {
    position: relative;
    z-index: 30;
}

.fi-bm-actions,
.fi-ib-actions,
.fi-ct-actions,
.fi-co-actions,
.fi-md-actions,
.fi-vr-actions,
.fi-st-actions,
.fi-bu-actions,
.fi-sv-actions {
    overflow: visible !important;
    position: relative;
    z-index: 2;
}

.fi-bm-act-edit,
.fi-bm-act-del,
.fi-ib-act-edit,
.fi-ib-act-del,
.fi-ct-act-edit,
.fi-ct-act-del,
.fi-co-act-edit,
.fi-co-act-del,
.fi-md-act-edit,
.fi-md-act-del,
.fi-vr-act-edit,
.fi-vr-act-del,
.fi-st-act-edit,
.fi-st-act-verify,
.fi-st-act-pass,
.fi-bu-act-edit,
.fi-bu-act-verify,
.fi-sv-act-edit,
.fi-sv-act-verify {
    overflow: visible !important;
}

.fi-bm-act-edit[data-tip]::after,
.fi-bm-act-del[data-tip]::after,
.fi-ib-act-edit[data-tip]::after,
.fi-ib-act-del[data-tip]::after,
.fi-ct-act-edit[data-tip]::after,
.fi-ct-act-del[data-tip]::after,
.fi-co-act-edit[data-tip]::after,
.fi-co-act-del[data-tip]::after,
.fi-md-act-edit[data-tip]::after,
.fi-md-act-del[data-tip]::after,
.fi-vr-act-edit[data-tip]::after,
.fi-vr-act-del[data-tip]::after,
.fi-st-act-edit[data-tip]::after,
.fi-st-act-verify[data-tip]::after,
.fi-st-act-pass[data-tip]::after,
.fi-bu-act-edit[data-tip]::after,
.fi-bu-act-verify[data-tip]::after,
.fi-sv-act-edit[data-tip]::after,
.fi-sv-act-verify[data-tip]::after {
    content: attr(data-tip) !important;
    position: absolute !important;
    left: 50% !important;
    bottom: auto !important;
    top: calc(100% + 9px) !important;
    transform: translateX(-50%) translateY(-3px) !important;
    padding: .32rem .55rem !important;
    font-size: .6875rem !important;
    font-weight: 650 !important;
    letter-spacing: .01em !important;
    color: #fff !important;
    background: #0f172a !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 4000 !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .22) !important;
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease !important;
}

.fi-bm-act-edit[data-tip]::before,
.fi-bm-act-del[data-tip]::before,
.fi-ib-act-edit[data-tip]::before,
.fi-ib-act-del[data-tip]::before,
.fi-ct-act-edit[data-tip]::before,
.fi-ct-act-del[data-tip]::before,
.fi-co-act-edit[data-tip]::before,
.fi-co-act-del[data-tip]::before,
.fi-md-act-edit[data-tip]::before,
.fi-md-act-del[data-tip]::before,
.fi-vr-act-edit[data-tip]::before,
.fi-vr-act-del[data-tip]::before,
.fi-st-act-edit[data-tip]::before,
.fi-st-act-verify[data-tip]::before,
.fi-st-act-pass[data-tip]::before,
.fi-bu-act-edit[data-tip]::before,
.fi-bu-act-verify[data-tip]::before,
.fi-sv-act-edit[data-tip]::before,
.fi-sv-act-verify[data-tip]::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    bottom: auto !important;
    top: calc(100% + 3px) !important;
    transform: translateX(-50%) translateY(-3px) !important;
    border: 5px solid transparent !important;
    border-bottom-color: #0f172a !important;
    border-top-color: transparent !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 4000 !important;
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease !important;
}

.fi-bm-act-edit[data-tip]:hover::after,
.fi-bm-act-edit[data-tip]:hover::before,
.fi-bm-act-del[data-tip]:hover::after,
.fi-bm-act-del[data-tip]:hover::before,
.fi-ib-act-edit[data-tip]:hover::after,
.fi-ib-act-edit[data-tip]:hover::before,
.fi-ib-act-del[data-tip]:hover::after,
.fi-ib-act-del[data-tip]:hover::before,
.fi-ct-act-edit[data-tip]:hover::after,
.fi-ct-act-edit[data-tip]:hover::before,
.fi-ct-act-del[data-tip]:hover::after,
.fi-ct-act-del[data-tip]:hover::before,
.fi-co-act-edit[data-tip]:hover::after,
.fi-co-act-edit[data-tip]:hover::before,
.fi-co-act-del[data-tip]:hover::after,
.fi-co-act-del[data-tip]:hover::before,
.fi-md-act-edit[data-tip]:hover::after,
.fi-md-act-edit[data-tip]:hover::before,
.fi-md-act-del[data-tip]:hover::after,
.fi-md-act-del[data-tip]:hover::before,
.fi-vr-act-edit[data-tip]:hover::after,
.fi-vr-act-edit[data-tip]:hover::before,
.fi-vr-act-del[data-tip]:hover::after,
.fi-vr-act-del[data-tip]:hover::before,
.fi-st-act-edit[data-tip]:hover::after,
.fi-st-act-edit[data-tip]:hover::before,
.fi-st-act-verify[data-tip]:hover::after,
.fi-st-act-verify[data-tip]:hover::before,
.fi-st-act-pass[data-tip]:hover::after,
.fi-st-act-pass[data-tip]:hover::before,
.fi-bu-act-edit[data-tip]:hover::after,
.fi-bu-act-edit[data-tip]:hover::before,
.fi-bu-act-verify[data-tip]:hover::after,
.fi-bu-act-verify[data-tip]:hover::before,
.fi-sv-act-edit[data-tip]:hover::after,
.fi-sv-act-edit[data-tip]:hover::before,
.fi-sv-act-verify[data-tip]:hover::after,
.fi-sv-act-verify[data-tip]:hover::before {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}

/* ═══════════════════════════════════════════
   Portal main header — professional top bar
   ═══════════════════════════════════════════ */
:root {
    --fi-hdr-h: 64px;
    --fi-hdr-ink: #0f172a;
    --fi-hdr-muted: #64748b;
    --fi-hdr-line: #e8eef6;
    --fi-hdr-bg: #ffffff;
    --fi-hdr-accent: #1d4ed8;
    --fi-hdr-accent-soft: #eff4ff;
}

#kt_header.fi-portal-header.header,
#kt_header.fi-portal-header {
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%) !important;
    border-bottom: 1px solid var(--fi-hdr-line) !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .03), 0 8px 24px -18px rgba(15, 23, 42, .18) !important;
    min-height: var(--fi-hdr-h) !important;
    height: var(--fi-hdr-h) !important;
    overflow: visible !important;
}

.fi-portal-header__inner,
.fi-portal-topbar,
#kt_header_user_menu_toggle {
    overflow: visible !important;
}

.fi-portal-header__inner {
    min-height: var(--fi-hdr-h) !important;
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
    gap: .75rem;
}

.fi-portal-header__icon-btn {
    appearance: none;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.fi-portal-header__icon-btn:hover {
    background: var(--fi-hdr-accent-soft);
    border-color: #c7d7f5;
    color: var(--fi-hdr-accent);
    box-shadow: 0 4px 12px rgba(29, 78, 216, .12);
}

.fi-portal-header__icon-btn i {
    font-size: 1.25rem;
    line-height: 1;
}

/* Page title */
.fi-portal-page-title__h {
    font-family: 'Manrope', system-ui, sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.125rem !important;
    letter-spacing: -.02em;
    color: var(--fi-hdr-ink) !important;
    gap: .55rem;
    margin: 0 !important;
}

.fi-portal-page-title__mark {
    width: 4px;
    height: 1.05em;
    border-radius: 4px;
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 2px 8px rgba(29, 78, 216, .35);
    flex-shrink: 0;
}

.fi-portal-page-title__text {
    line-height: 1.2;
}

.fi-portal-page-title__sep {
    display: inline-block;
    width: 1px;
    height: 16px;
    background: #e2e8f0;
    margin: 0 .15rem;
}

.fi-portal-page-title__desc {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: .75rem !important;
    font-weight: 600 !important;
    color: var(--fi-hdr-muted) !important;
}

/* Topbar cluster */
.fi-portal-topbar {
    gap: .75rem;
    align-items: center !important;
}

/* Search pill + live suggestions */
.fi-portal-search {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 95;
}

.fi-portal-search__form {
    display: flex;
    align-items: center;
    gap: .15rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 3px 3px 3px 12px;
    min-width: 280px;
    max-width: 380px;
    width: min(380px, 42vw);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .15s ease;
}

.fi-portal-search__form:focus-within {
    background: #fff;
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12), 0 8px 20px -12px rgba(29, 78, 216, .35);
}

.fi-portal-search__label {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.fi-portal-search__ico {
    color: #94a3b8;
    display: inline-flex;
    flex-shrink: 0;
}

.fi-portal-search__form:focus-within .fi-portal-search__ico {
    color: var(--fi-hdr-accent);
}

.fi-portal-search__input,
.fi-portal-search__input:focus,
.fi-portal-search__input:focus-visible,
.fi-portal-search__input:active {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    outline-offset: 0 !important;
    width: 100%;
    min-width: 0;
    padding: .45rem 0 !important;
    margin: 0 !important;
    font-family: 'Manrope', system-ui, sans-serif !important;
    font-size: .8125rem !important;
    font-weight: 600 !important;
    color: var(--fi-hdr-ink) !important;
    line-height: 1.3;
}

.fi-portal-search__input::placeholder {
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

.fi-portal-search__input::-webkit-search-decoration,
.fi-portal-search__input::-webkit-search-cancel-button,
.fi-portal-search__input::-webkit-search-results-button,
.fi-portal-search__input::-webkit-search-results-decoration {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: none !important;
}

.fi-portal-search__clear {
    appearance: none;
    border: 0;
    background: transparent;
    color: #94a3b8;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.fi-portal-search__clear:hover {
    background: #e2e8f0;
    color: #334155;
}

.fi-portal-search__btn {
    appearance: none;
    border: 0;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(29, 78, 216, .28);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.fi-portal-search__btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 14px rgba(29, 78, 216, .34);
    transform: translateY(-1px);
}

.fi-portal-search__btn:active {
    transform: translateY(0);
    filter: brightness(.98);
}

.fi-portal-search__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    min-width: 320px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
    overflow: hidden;
    z-index: 120;
}

.fi-portal-search__panel-head {
    padding: .55rem .85rem .35rem;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.fi-portal-search__panel-body {
    max-height: 340px;
    overflow: auto;
}

.fi-portal-search__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem .85rem;
    text-decoration: none !important;
    border-top: 1px solid #f1f5f9;
    transition: background .12s ease;
}

.fi-portal-search__item:hover {
    background: #f8fbff;
}

.fi-portal-search__item-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: .1rem;
}

.fi-portal-search__item-ref {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: .8125rem;
    font-weight: 800;
    color: #1d4ed8;
}

.fi-portal-search__item-name {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: .78rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fi-portal-search__item-sub {
    font-size: .68rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fi-portal-search__item-status {
    flex-shrink: 0;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: .22rem .5rem;
    background: #f1f5f9;
    color: #475569;
}

.fi-portal-search__item-status--fresh { background: #e0f2fe; color: #0369a1; }
.fi-portal-search__item-status--assigned { background: #fef3c7; color: #b45309; }
.fi-portal-search__item-status--qc-pending { background: #ede9fe; color: #6d28d9; }
.fi-portal-search__item-status--hold { background: #fee2e2; color: #b91c1c; }
.fi-portal-search__item-status--completed { background: #dcfce7; color: #15803d; }
.fi-portal-search__item-status--cancelled { background: #e2e8f0; color: #334155; }

.fi-portal-search__empty {
    padding: .9rem .85rem 1rem;
    color: #64748b;
    font-size: .78rem;
    font-weight: 600;
}

.fi-portal-search__panel-foot {
    display: block;
    text-align: center;
    padding: .7rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #1d4ed8;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none !important;
}

.fi-portal-search__panel-foot:hover {
    background: #eff4ff;
}

/* User chip */
.fi-portal-user {
    appearance: none;
    border: 1px solid #e2e8f0;
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: 3px 10px 3px 3px;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .15s ease;
    font-family: 'Manrope', system-ui, sans-serif;
}

.fi-portal-user:hover,
.fi-portal-user[data-kt-menu-trigger].show {
    border-color: #bfdbfe;
    background: #f8fbff;
    box-shadow: 0 6px 18px rgba(29, 78, 216, .12);
}

.fi-portal-user__avatar {
    position: relative;
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(145deg, #dbeafe, #eff6ff);
    box-shadow: inset 0 0 0 1px rgba(29, 78, 216, .12);
}

.fi-portal-user__avatar img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fi-portal-user__initials {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: #1d4ed8;
    z-index: 0;
}

.fi-portal-user__meta {
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    min-width: 0;
    padding-right: .1rem;
}

.fi-portal-user__name {
    font-size: .8125rem;
    font-weight: 700;
    color: var(--fi-hdr-ink);
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fi-portal-user__hint {
    font-size: .625rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fi-portal-user__chev {
    color: #94a3b8;
    display: inline-flex;
    margin-left: -.1rem;
    transition: transform .15s ease, color .15s ease;
}

.fi-portal-user:hover .fi-portal-user__chev,
.fi-portal-user[data-kt-menu-trigger].show .fi-portal-user__chev {
    color: #1d4ed8;
}

.fi-portal-user[data-kt-menu-trigger].show .fi-portal-user__chev {
    transform: rotate(180deg);
}

/* Account dropdown — simple / professional */
#kt_header_user_menu_toggle {
    position: relative;
}

#kt_header_user_menu_toggle .menu-sub-dropdown.fi-portal-account,
.fi-portal-account.menu-sub-dropdown {
    width: 275px !important;
    max-width: min(275px, calc(100vw - 24px)) !important;
    min-width: 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .04) !important;
    overflow: hidden !important;
    padding: .45rem 0 !important;
    background: #fff !important;
    font-family: 'Manrope', system-ui, sans-serif !important;
    z-index: 1100 !important;
}

.fi-portal-account .menu-item .menu-content.fi-portal-account__head {
    display: flex !important;
    align-items: center !important;
    gap: .75rem !important;
    padding: .65rem .55rem .7rem !important;
}

.fi-portal-account__avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(145deg, #e8eef8, #f8fafc);
    border: 1px solid #e2e8f0;
}

.fi-portal-account__avatar img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fi-portal-account__initials {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: #334155;
    z-index: 0;
}

.fi-portal-account__who {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .12rem;
}

.fi-portal-account__name {
    display: block;
    font-size: .875rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.015em;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 185px;
}

.fi-portal-account__email {
    display: block;
    font-size: .72rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 185px;
}

.fi-portal-account__role {
    margin-top: .2rem;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: .625rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: .16rem .45rem;
    line-height: 1.2;
}

.fi-portal-account .menu-link.fi-portal-account__link {
    display: flex !important;
    align-items: center !important;
    gap: .65rem !important;
    min-height: 40px;
    color: #334155 !important;
    font-size: .8125rem !important;
    font-weight: 600 !important;
    border-radius: 9px !important;
    transition: background .12s ease, color .12s ease;
}

.fi-portal-account .menu-link.fi-portal-account__link:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
}

.fi-portal-account .menu-link.fi-portal-account__link:hover .fi-portal-account__ico {
    background: #eef2f7;
    color: #0f172a;
}

.fi-portal-account .menu-link.fi-portal-account__link--out {
    color: #b91c1c !important;
}

.fi-portal-account .menu-link.fi-portal-account__link--out .fi-portal-account__ico {
    background: #fef2f2;
    color: #b91c1c;
}

.fi-portal-account .menu-link.fi-portal-account__link--out:hover {
    background: #fef2f2 !important;
    color: #991b1b !important;
}

.fi-portal-account__ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f1f5f9;
    color: #64748b;
}

.fi-portal-account__txt {
    flex: 1;
    min-width: 0;
    line-height: 1.2;
}

.fi-portal-account__theme {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    margin: 0;
    min-height: 36px;
    color: #334155;
    font-size: .8125rem;
    font-weight: 600;
    cursor: pointer;
}

.fi-portal-account__theme-left {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.fi-portal-account__switch {
    position: relative;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}

.fi-portal-account__switch-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.fi-portal-account__switch-ui {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background .15s ease;
}

.fi-portal-account__switch-ui::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .18);
    transition: transform .15s ease;
}

.fi-portal-account__switch-input:checked + .fi-portal-account__switch-ui {
    background: #1d4ed8;
}

.fi-portal-account__switch-input:checked + .fi-portal-account__switch-ui::after {
    transform: translateX(16px);
}

.fi-portal-account__switch-input:focus-visible + .fi-portal-account__switch-ui {
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .2);
}

@media (max-width: 991.98px) {
    .fi-portal-search__form {
        min-width: 200px;
        width: min(260px, 48vw);
        max-width: 260px;
    }
}

@media (max-width: 575.98px) {
    .fi-portal-search__form {
        min-width: 0;
        width: 156px;
        padding-left: 10px;
    }

    .fi-portal-search__ico {
        display: none;
    }

    .fi-portal-search__panel {
        min-width: 260px;
        right: -40px;
        left: auto;
    }

    .fi-portal-page-title__h {
        font-size: 1rem !important;
    }
}


/* ==========================================================================
   DARK MODE ONLY — light theme rules above are unchanged.
   Activates when body has .dark-mode (cookie fi_theme_mode=dark).
   ========================================================================== */
body.dark-mode {
    --da-aside-bg: #1e1e2d;
    --da-aside-border: #2b2b40;
    --da-aside-ink: #f5f8fa;
    --da-aside-text: #c5c5d5;
    --da-aside-muted: #9899ac;
    --da-aside-accent: #3699ff;
    --da-aside-accent-2: #3699ff;
    --da-aside-chip: #212e48;
    --da-aside-chip-icon: #3699ff;
    --fi-hdr-bg: #1e1e2d;
    color-scheme: dark;
}

body.dark-mode #kt_aside.aside {
    background: var(--da-aside-bg) !important;
    border-right-color: var(--da-aside-border) !important;
}

body.dark-mode #kt_aside .aside-logo {
    background: #1a1a27 !important;
    border-bottom-color: var(--da-aside-border) !important;
}

body.dark-mode #kt_aside #kt_aside_toggle {
    background: #2b2b40 !important;
    border-color: #323248 !important;
    color: #9899ac !important;
}

body.dark-mode #kt_aside #kt_aside_toggle:hover {
    color: #3699ff !important;
    border-color: #3699ff !important;
    background: #212e48 !important;
}

body.dark-mode #kt_aside .menu-section,
body.dark-mode #kt_aside .menu-content .menu-section {
    color: #6d6d80 !important;
}

body.dark-mode #kt_aside .menu-item > .menu-link {
    background: transparent !important;
}

body.dark-mode #kt_aside .menu-item > .menu-link .menu-title {
    color: var(--da-aside-text) !important;
}

body.dark-mode #kt_aside .menu-item > .menu-link .menu-icon {
    color: var(--da-aside-chip-icon) !important;
}

body.dark-mode #kt_aside .menu-item > .menu-link:hover,
body.dark-mode #kt_aside .menu-item.hover > .menu-link:not(.disabled):not(.active) {
    background: #2b2b40 !important;
    border-color: #323248 !important;
}

body.dark-mode #kt_aside .menu-item .menu-link.active,
body.dark-mode #kt_aside .menu-item.here > .menu-link,
body.dark-mode #kt_aside .menu-item.show > .menu-link {
    background: #212e48 !important;
    border-color: #2b2b40 !important;
}

body.dark-mode #kt_aside .menu-item .menu-link.active .menu-title,
body.dark-mode #kt_aside .menu-item.here > .menu-link .menu-title,
body.dark-mode #kt_aside .menu-item.show > .menu-link .menu-title {
    color: #3699ff !important;
}

body.dark-mode #kt_aside .menu-bullet .bullet {
    background: #6d6d80 !important;
}

body.dark-mode #kt_aside .menu-item .menu-link.active .menu-bullet .bullet,
body.dark-mode #kt_aside .menu-item.here > .menu-link .menu-bullet .bullet {
    background: #3699ff !important;
}

body.dark-mode #kt_header.fi-portal-header.header,
body.dark-mode #kt_header.fi-portal-header,
body.dark-mode #kt_header.header {
    background: linear-gradient(180deg, #1e1e2d 0%, #1a1a27 100%) !important;
    border-bottom: 1px solid #2b2b40 !important;
    box-shadow: none !important;
}

body.dark-mode .fi-portal-header__icon-btn {
    background: #2b2b40 !important;
    border-color: #323248 !important;
    color: #c5c5d5 !important;
}

body.dark-mode .fi-portal-header__icon-btn:hover {
    background: #212e48 !important;
    color: #3699ff !important;
}

body.dark-mode .fi-portal-page-title__h,
body.dark-mode .fi-portal-page-title__text {
    color: #f5f8fa !important;
}

body.dark-mode .fi-portal-page-title__desc,
body.dark-mode .fi-portal-page-title__sep {
    color: #9899ac !important;
    background-color: #323248;
}

body.dark-mode .fi-portal-page-title__sep {
    background: #323248 !important;
}

body.dark-mode .fi-portal-search__form {
    background: #2b2b40 !important;
    border-color: #323248 !important;
}

body.dark-mode .fi-portal-search__form:focus-within {
    background: #1e1e2d !important;
    border-color: #3699ff !important;
}

body.dark-mode .fi-portal-search__form input {
    color: #f5f8fa !important;
}

body.dark-mode .fi-portal-search__form input::placeholder {
    color: #6d6d80 !important;
}

body.dark-mode .fi-portal-search__panel,
body.dark-mode .menu-sub-dropdown,
body.dark-mode .fi-portal-account {
    background: #1e1e2d !important;
    border-color: #2b2b40 !important;
    color: #c5c5d5 !important;
}

/* Account dropdown — beat light #fff !important rules */
html body.dark-mode #kt_header_user_menu_toggle .menu-sub-dropdown.fi-portal-account,
html body.dark-mode .fi-portal-account.menu-sub-dropdown,
html body.dark-mode .fi-portal-account {
    background: #1e1e2d !important;
    background-color: #1e1e2d !important;
    border-color: #2b2b40 !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .2) !important;
    color: #e2e8f0 !important;
}

html body.dark-mode .fi-portal-account__avatar {
    background: linear-gradient(145deg, #2b2b40, #1a1a27) !important;
    border-color: #323248 !important;
}

html body.dark-mode .fi-portal-account__initials {
    color: #e2e8f0 !important;
}

html body.dark-mode .fi-portal-account__name {
    color: #f5f8fa !important;
}

html body.dark-mode .fi-portal-account__email {
    color: #9899ac !important;
}

html body.dark-mode .fi-portal-account__role {
    color: #93c5fd !important;
    background: #1e3a5f !important;
    border-color: #1e40af !important;
}

html body.dark-mode .fi-portal-account .menu-link.fi-portal-account__link {
    color: #e2e8f0 !important;
}

html body.dark-mode .fi-portal-account .menu-link.fi-portal-account__link:hover {
    background: #2b2b40 !important;
    color: #f5f8fa !important;
}

html body.dark-mode .fi-portal-account .menu-link.fi-portal-account__link:hover .fi-portal-account__ico {
    background: #323248 !important;
    color: #f5f8fa !important;
}

html body.dark-mode .fi-portal-account .menu-link.fi-portal-account__link--out {
    color: #fca5a5 !important;
}

html body.dark-mode .fi-portal-account .menu-link.fi-portal-account__link--out .fi-portal-account__ico {
    background: #3f1d1d !important;
    color: #fca5a5 !important;
}

html body.dark-mode .fi-portal-account .menu-link.fi-portal-account__link--out:hover {
    background: #3f1d1d !important;
    color: #fecaca !important;
}

html body.dark-mode .fi-portal-account__ico {
    background: #2b2b40 !important;
    color: #9899ac !important;
}

html body.dark-mode .fi-portal-account__txt,
html body.dark-mode .fi-portal-account__theme,
html body.dark-mode .fi-portal-account__theme-left,
html body.dark-mode .menu-title {
    color: #e2e8f0 !important;
}

html body.dark-mode .fi-portal-account .separator {
    border-color: #2b2b40 !important;
    opacity: 1 !important;
}

html body.dark-mode .fi-portal-account__switch-ui {
    background: #475569 !important;
}

html body.dark-mode .fi-portal-account__switch-input:checked + .fi-portal-account__switch-ui {
    background: #3699ff !important;
}

body.dark-mode .fi-portal-account__txt,
body.dark-mode .fi-portal-account__theme,
body.dark-mode .menu-title {
    color: #c5c5d5 !important;
}

body.dark-mode #kt_wrapper,
body.dark-mode #kt_content,
body.dark-mode .wrapper,
body.dark-mode .content,
body.dark-mode .post,
body.dark-mode .container-xxl,
body.dark-mode #kt_content_container {
    background-color: #151521 !important;
}

body.dark-mode:has(.fi-app) #kt_wrapper {
    background: #151521 !important;
}

body.dark-mode .card,
body.dark-mode .card-body,
body.dark-mode .card-header,
body.dark-mode .modal-content,
body.dark-mode .dropdown-menu,
body.dark-mode .popover,
body.dark-mode .swal-modal,
body.dark-mode .fi-card,
body.dark-mode .fi-sp-shell,
body.dark-mode .fi-sp-panel,
body.dark-mode .fi-sp-group,
body.dark-mode .fi-sp-row,
body.dark-mode .fi-sp-toolbar,
body.dark-mode .fi-sp-footer,
body.dark-mode .fi-assign-shell,
body.dark-mode .fi-export-panel,
body.dark-mode .fi-app__filters,
body.dark-mode .fi-app__panel,
body.dark-mode .fi-app__card,
body.dark-mode .fi-app__hero,
body.dark-mode .fi-app__stat,
body.dark-mode .fi-app__chart-card,
body.dark-mode .fi-app__side-card {
    background-color: #1e1e2d !important;
    background: #1e1e2d !important;
    border-color: #2b2b40 !important;
    color: #c5c5d5 !important;
    box-shadow: none !important;
}

body.dark-mode .card-header,
body.dark-mode .card-footer,
body.dark-mode .fi-sp-group__head,
body.dark-mode .fi-sp-list__bar,
body.dark-mode .fi-assign-shell__head,
body.dark-mode .fi-export-panel__section-head,
body.dark-mode .table > :not(caption) > * > * {
    background-color: #1a1a27 !important;
    border-color: #2b2b40 !important;
    color: #c5c5d5 !important;
}

body.dark-mode .text-dark,
body.dark-mode .text-gray-800,
body.dark-mode .text-gray-900,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6,
body.dark-mode .fi-app__title,
body.dark-mode .fi-app__hello,
body.dark-mode .fi-sp-head__title,
body.dark-mode .fi-sp-row__name,
body.dark-mode .fi-assign-shell__title,
body.dark-mode .fi-export-panel__title {
    color: #f5f8fa !important;
}

body.dark-mode .text-muted,
body.dark-mode .text-gray-500,
body.dark-mode .text-gray-600,
body.dark-mode .text-gray-700,
body.dark-mode .fi-app__sub,
body.dark-mode .fi-sp-head__meta,
body.dark-mode .fi-sp-row__desc,
body.dark-mode .fi-assign-shell__sub,
body.dark-mode .fi-export-panel__hint {
    color: #9899ac !important;
}

body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode select,
body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="password"],
body.dark-mode input[type="number"],
body.dark-mode input[type="date"],
body.dark-mode input[type="search"],
body.dark-mode textarea,
body.dark-mode .fi-app__field select,
body.dark-mode .fi-app__field input,
body.dark-mode .fi-sp-field select,
body.dark-mode .dataTables_wrapper .dataTables_filter input,
body.dark-mode .dataTables_wrapper .dataTables_length select {
    background-color: #1b1b29 !important;
    border-color: #323248 !important;
    color: #f5f8fa !important;
}

body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus,
body.dark-mode select:focus,
body.dark-mode input:focus,
body.dark-mode textarea:focus {
    background-color: #1b1b29 !important;
    border-color: #3699ff !important;
    color: #f5f8fa !important;
}

body.dark-mode .table,
body.dark-mode .table th,
body.dark-mode .table td,
body.dark-mode table.dataTable,
body.dark-mode table.dataTable thead th,
body.dark-mode table.dataTable tbody td {
 color: #c5c5d5 !important;
 border-color: #2b2b40 !important;
}

body.dark-mode .table thead th,
body.dark-mode table.dataTable thead th {
 background: #1a1a27 !important;
 color: #9899ac !important;
}

body.dark-mode .table-striped > tbody > tr:nth-of-type(odd) > * ,
body.dark-mode table.dataTable.stripe tbody tr.odd,
body.dark-mode table.dataTable.display tbody tr.odd {
 background-color: #1a1a27 !important;
}

body.dark-mode .table-hover > tbody > tr:hover > *,
body.dark-mode table.dataTable.hover tbody tr:hover,
body.dark-mode table.dataTable.display tbody tr:hover {
 background-color: #2b2b40 !important;
 color: #f5f8fa !important;
}

body.dark-mode .bg-white,
body.dark-mode .bg-body,
body.dark-mode .bg-light {
 background-color: #1e1e2d !important;
}

body.dark-mode .border,
body.dark-mode .border-bottom,
body.dark-mode .separator {
 border-color: #2b2b40 !important;
}

body.dark-mode .page-item .page-link,
body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button {
 background: #1e1e2d !important;
 border-color: #2b2b40 !important;
 color: #c5c5d5 !important;
}

body.dark-mode .page-item.active .page-link,
body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.current {
 background: #3699ff !important;
 border-color: #3699ff !important;
 color: #fff !important;
}

body.dark-mode .fi-sp-row.is-on {
 background: #212e48 !important;
}

body.dark-mode .fi-sp-row:hover {
 background: #2b2b40 !important;
}

body.dark-mode .fi-sp-empty,
body.dark-mode .fi-sp-note {
 background: #1a1a27 !important;
 color: #9899ac !important;
 border-color: #2b2b40 !important;
}

body.dark-mode .fi-sp-success__card {
 background: #1e1e2d !important;
 color: #f5f8fa !important;
 border-color: #2b2b40 !important;
}

body.dark-mode .modal-backdrop {
 background: #0b0b14 !important;
}

body.dark-mode .swal-overlay {
 background: rgba(11, 11, 20, .72) !important;
}

body.dark-mode .loaderAjax {
 background: rgba(21, 21, 33, .75) !important;
 color: #f5f8fa !important;
}

body.dark-mode .apexcharts-tooltip,
body.dark-mode .apexcharts-menu {
 background: #1e1e2d !important;
 border-color: #2b2b40 !important;
 color: #f5f8fa !important;
}

body.dark-mode .apexcharts-xaxis text,
body.dark-mode .apexcharts-yaxis text,
body.dark-mode .apexcharts-legend-text {
 fill: #9899ac !important;
 color: #9899ac !important;
}

/* Portal user chip + footer (header/footer leftovers) */
body.dark-mode .fi-portal-user,
body.dark-mode .fi-portal-user:hover,
body.dark-mode .fi-portal-user[data-kt-menu-trigger].show {
 background: #1e1e2d !important;
 border-color: #323248 !important;
 box-shadow: none !important;
}

body.dark-mode .fi-portal-user__name {
 color: #f5f8fa !important;
}

body.dark-mode .fi-portal-user__hint,
body.dark-mode .fi-portal-user__chev {
 color: #9899ac !important;
}

body.dark-mode .fi-portal-user__avatar {
 background: #2b2b40 !important;
}

body.dark-mode #kt_footer,
body.dark-mode #kt_footer.footer,
body.dark-mode #kt_footer.fi-site-footer,
body.dark-mode .footer,
body.dark-mode .fi-site-footer {
 background: #1a1a27 !important;
 border-top-color: #2b2b40 !important;
 color: #9899ac !important;
}
