/**
 * FINO theme — only when body.theme-fino (settings.color = theme-fino).
 * Satoshi font is loaded from layouts when this theme is active.
 */

/* --- Design tokens (scoped) --- */
body.theme-fino {
    /* Align first-level submenu with parent label (after icon + gaps) */
    --fino-submenu-inset: 44px;
    --fino-surface-primary: #ffffff;
    --fino-surface-brand: #4f3a9b;
    --fino-surface-secondary: #f0f1fe;
    --fino-text-brand: #43357d;
    --fino-text-secondary: #52505e;
    --fino-text-disabled: #a19fad;
    --fino-text-inverted: #ffffff;
    --fino-stroke-primary: #e4e3ea;
    --fino-stroke-brand-soft: #ced0fc;
    --fino-radius-button: 12px;
    --fino-radius-card: 12px;
    --fino-radius-input: 12px;
    --fino-brand-rgb: 79, 58, 155;
    --fino-brand-hover: #43357d;
    --fino-brand-active: #35285c;
    --fino-tint-bg: #e8e4f2;
}

html[data-theme="dark"] body.theme-fino {
    --fino-surface-primary: #111827;
    --fino-surface-secondary: rgba(99, 102, 241, 0.12);
    --fino-text-secondary: #cbd5e1;
    --fino-text-brand: #c4b5fd;
    --fino-stroke-primary: #334155;
    --fino-stroke-brand-soft: rgba(129, 140, 248, 0.45);
    --fino-tint-bg: rgba(99, 102, 241, 0.2);
}

body.theme-fino {
    font-family: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--fino-text-secondary);
    -webkit-font-smoothing: antialiased;
    background: linear-gradient(141.55deg, rgba(240, 244, 243, 0) 3.46%, #f5f4fb 99.86%);
}

/* --- Mirror body.theme-10 pattern for FINO brand --- */
body.theme-fino .bg-primary {
    background: linear-gradient(141.55deg, #4f3a9b 3.46%, #4f3a9b 99.86%), #4f3a9b !important;
}

body.theme-fino .dash-header .drp-language .drp-text,
body.theme-fino .dash-header .dash-head-link > i:not(.nocolor) {
    color: #4f3a9b;
}

body.theme-fino .dash-header .drp-company .theme-avtar {
    background: var(--fino-tint-bg);
    color: #4f3a9b;
}

/* --- FINO top bar (Figma app header: flat card, 12px radius, token borders) --- */
body.theme-fino .dash-header.fino-header {
    color: var(--fino-text-secondary);
}

@media (min-width: 1024px) {
    body.theme-fino:not(.minimenu) .dash-header.fino-header:not(.transprent-bg) {
        top: 16px;
        left: calc(255px + 24px);
        right: 24px;
        min-height: 64px;
        border-radius: var(--fino-radius-card);
        box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
        border: 1px solid var(--fino-stroke-primary);
        background: var(--fino-surface-primary);
    }

    body.theme-fino.minimenu .dash-header.fino-header:not(.transprent-bg) {
        left: calc(70px + 24px);
        right: 24px;
        top: 16px;
        min-height: 64px;
        border-radius: var(--fino-radius-card);
        box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
        border: 1px solid var(--fino-stroke-primary);
        background: var(--fino-surface-primary);
    }

    body.theme-fino .dash-header.fino-header:not(.transprent-bg) .header-wrapper {
        padding: 0 16px 0 20px;
        min-height: 64px;
        align-items: center;
    }

    body.theme-fino .dash-header.fino-header:not(.transprent-bg):not(.dash-mob-header) ~ .dash-container .dash-content {
        padding-top: 48px;
    }

    [dir="rtl"] body.theme-fino:not(.minimenu) .dash-header.fino-header:not(.transprent-bg) {
        left: 24px;
        right: calc(255px + 24px);
    }

    [dir="rtl"] body.theme-fino.minimenu .dash-header.fino-header:not(.transprent-bg) {
        left: 24px;
        right: calc(70px + 24px);
    }
}

@media (max-width: 1024px) {
    body.theme-fino .dash-header.fino-header {
        background: var(--fino-surface-primary);
        border-bottom: 1px solid var(--fino-stroke-primary);
        box-shadow: none;
    }
}

body.theme-fino .dash-header.fino-header .dash-h-item {
    min-height: 64px;
}

body.theme-fino .dash-header.fino-header .dash-head-link {
    border-radius: var(--fino-radius-button);
    font-weight: 500;
    font-size: 14px;
    margin: 0 4px;
    padding: 0.5rem 0.75rem;
    color: var(--fino-text-secondary);
    border: 1px solid transparent;
    background: transparent;
}

@media (min-width: 1024px) {
    body.theme-fino .dash-header.fino-header .dash-head-link {
        background: var(--fino-surface-primary);
        border-color: var(--fino-stroke-primary);
    }
}

body.theme-fino .dash-header.fino-header .dash-head-link:hover,
body.theme-fino .dash-header.fino-header .dash-head-link:focus,
body.theme-fino .dash-header.fino-header .dash-head-link:active {
    color: var(--fino-text-brand) !important;
    background: var(--fino-surface-secondary) !important;
    border-color: var(--fino-stroke-brand-soft) !important;
}

body.theme-fino .dash-header.fino-header .dash-head-link > i:not(.nocolor) {
    color: var(--fino-surface-brand);
}

body.theme-fino .dash-header.fino-header .drp-language .drp-text {
    color: var(--fino-text-secondary);
    font-weight: 500;
}

body.theme-fino .dash-header.fino-header .drp-company .dash-head-link {
    padding: 6px 12px 6px 8px;
    gap: 10px;
}

body.theme-fino .dash-header.fino-header .dash-head-link .theme-avtar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--fino-tint-bg);
    border: 1px solid var(--fino-stroke-brand-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.theme-fino .dash-header.fino-header .dash-head-link .theme-avtar img {
    border: none !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

body.theme-fino .dash-header.fino-header .notification-icon .dash-head-link {
    background: var(--fino-surface-secondary);
    border-color: var(--fino-stroke-brand-soft);
    color: var(--fino-surface-brand);
}

body.theme-fino .dash-header.fino-header .notification-icon .dash-head-link i {
    font-weight: 700;
}

body.theme-fino .dash-header.fino-header .dash-head-link.active .hamburger .hamburger-inner,
body.theme-fino .dash-header.fino-header .dash-head-link:active .hamburger .hamburger-inner,
body.theme-fino .dash-header.fino-header .dash-head-link:focus .hamburger .hamburger-inner,
body.theme-fino .dash-header.fino-header .dash-head-link:hover .hamburger .hamburger-inner {
    background-color: var(--fino-surface-brand);
}

body.theme-fino .dash-header.fino-header .dash-head-link.active .hamburger .hamburger-inner::after,
body.theme-fino .dash-header.fino-header .dash-head-link.active .hamburger .hamburger-inner::before,
body.theme-fino .dash-header.fino-header .dash-head-link:active .hamburger .hamburger-inner::after,
body.theme-fino .dash-header.fino-header .dash-head-link:active .hamburger .hamburger-inner::before,
body.theme-fino .dash-header.fino-header .dash-head-link:focus .hamburger .hamburger-inner::after,
body.theme-fino .dash-header.fino-header .dash-head-link:focus .hamburger .hamburger-inner::before,
body.theme-fino .dash-header.fino-header .dash-head-link:hover .hamburger .hamburger-inner::after,
body.theme-fino .dash-header.fino-header .dash-head-link:hover .hamburger .hamburger-inner::before {
    background-color: var(--fino-surface-brand);
}

body.theme-fino .dash-header.fino-header .dash-h-dropdown.dropdown-menu,
body.theme-fino .dash-header.fino-header .dropdown-menu {
    border-radius: var(--fino-radius-card);
    border: 1px solid var(--fino-stroke-primary);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

html[data-theme="dark"] body.theme-fino .dash-header.fino-header:not(.transprent-bg) {
    background: var(--fino-surface-primary);
    border-color: var(--fino-stroke-primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] body.theme-fino .dash-header.fino-header .dash-head-link {
    background: var(--fino-surface-primary);
    border-color: var(--fino-stroke-primary);
    color: var(--fino-text-secondary);
}

html[data-theme="dark"] body.theme-fino .dash-header.fino-header .notification-icon .dash-head-link {
    background: var(--fino-surface-secondary);
    border-color: var(--fino-stroke-brand-soft);
}

/* FINO header layout: search left, icon cluster + user right (RTL: mirrored) */
body.theme-fino .dash-header.fino-header .fino-header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    flex-wrap: nowrap;
}

body.theme-fino .dash-header.fino-header .fino-header-search {
    flex: 1 1 auto;
    min-width: 0;
    max-width: min(560px, 100%);
}

body.theme-fino .dash-header.fino-header .fino-header-search-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--fino-stroke-primary);
    background: var(--fino-surface-secondary);
    box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.04);
    box-sizing: border-box;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

body.theme-fino .dash-header.fino-header .fino-header-search-inner:focus-within {
    border-color: var(--fino-stroke-brand-soft);
    box-shadow:
        inset 0 1px 2px rgba(16, 24, 40, 0.04),
        0 0 0 3px rgba(var(--fino-brand-rgb), 0.15);
    background: var(--fino-surface-primary);
}

body.theme-fino .dash-header.fino-header .fino-header-search-inner > i.ti {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
    color: var(--fino-text-disabled);
    pointer-events: none;
}

body.theme-fino .dash-header.fino-header .fino-header-search input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.35;
    color: var(--fino-text-secondary);
    background: transparent;
    box-shadow: none;
}

body.theme-fino .dash-header.fino-header .fino-header-search input::placeholder {
    color: var(--fino-text-disabled);
}

body.theme-fino .dash-header.fino-header .fino-header-search input:focus {
    outline: none;
}

body.theme-fino .dash-header.fino-header .fino-header-actions {
    flex: 0 0 auto;
}

body.theme-fino .dash-header.fino-header .fino-header-actions .list-unstyled {
    gap: 4px;
}

body.theme-fino .dash-header.fino-header .fino-nav-icon-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0.5rem !important;
    margin: 0 2px !important;
}

body.theme-fino .dash-header.fino-header button.fino-nav-icon-btn {
    appearance: none;
    cursor: pointer;
    font: inherit;
    line-height: 1;
}

body.theme-fino .dash-header.fino-header .fino-nav-icon-btn > i.ti {
    font-size: 20px;
    color: var(--fino-surface-brand);
}

body.theme-fino .dash-header.fino-header .fino-lang-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--fino-stroke-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--fino-text-brand);
    background: var(--fino-surface-primary);
}

body.theme-fino .dash-header.fino-header .fino-header-divider {
    width: 1px;
    height: 28px;
    min-height: 28px;
    margin: 0 8px;
    background: var(--fino-stroke-primary);
    list-style: none;
    align-self: center;
}

body.theme-fino .dash-header.fino-header .fino-user-trigger {
    display: inline-flex !important;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.5rem 0.35rem 0.35rem !important;
    margin-inline-start: 4px !important;
    border: 1px solid var(--fino-stroke-primary) !important;
    background: var(--fino-surface-primary) !important;
}

body.theme-fino .dash-header.fino-header .fino-user-trigger .theme-avtar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    flex-shrink: 0;
}

body.theme-fino .dash-header.fino-header .fino-user-trigger .theme-avtar img {
    border-radius: 50% !important;
}

body.theme-fino .dash-header.fino-header .fino-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    text-align: start;
}

body.theme-fino .dash-header.fino-header .fino-user-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--fino-text-secondary);
}

body.theme-fino .dash-header.fino-header .fino-user-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--fino-text-disabled);
}

body.theme-fino .dash-header.fino-header .fino-user-trigger .drp-arrow {
    margin-inline-start: 2px;
    color: var(--fino-text-disabled);
    font-size: 16px;
}

[dir="rtl"] body.theme-fino .dash-header.fino-header .fino-user-trigger .theme-avtar {
    order: 3;
}

[dir="rtl"] body.theme-fino .dash-header.fino-header .fino-user-trigger .fino-user-meta {
    order: 2;
    align-items: flex-end;
    text-align: end;
}

[dir="rtl"] body.theme-fino .dash-header.fino-header .fino-user-trigger .drp-arrow {
    order: 1;
    margin-inline-start: 0;
    margin-inline-end: 2px;
}

@media (max-width: 767px) {
    body.theme-fino .dash-header.fino-header .fino-user-meta,
    body.theme-fino .dash-header.fino-header .fino-user-trigger .drp-arrow.hide-mob {
        display: none !important;
    }
}

html[data-theme="dark"] body.theme-fino .dash-header.fino-header .fino-header-search-inner {
    background: #0f172a;
    border-color: var(--fino-stroke-primary);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] body.theme-fino .dash-header.fino-header .fino-header-search-inner:focus-within {
    background: #111827;
}

html[data-theme="dark"] body.theme-fino .dash-header.fino-header .fino-header-search input {
    color: var(--fino-text-secondary);
}

html[data-theme="dark"] body.theme-fino .dash-header.fino-header .fino-lang-icon {
    background: #111827;
    border-color: var(--fino-stroke-primary);
    color: var(--fino-text-brand);
}

html[data-theme="dark"] body.theme-fino .dash-header.fino-header .fino-user-trigger {
    background: #111827 !important;
    border-color: var(--fino-stroke-primary) !important;
}

/* Classic sidebar active (non-fino-sidebar); FINO shell overrides below */
body.theme-fino .dash-sidebar.light-sidebar .dash-navbar > .dash-item.active > .dash-link,
body.theme-fino .dash-sidebar.light-sidebar .dash-navbar > .dash-item:active > .dash-link,
body.theme-fino .dash-sidebar.light-sidebar .dash-navbar > .dash-item:focus > .dash-link,
body.theme-fino .dash-sidebar.light-sidebar .dash-navbar > .dash-item:hover > .dash-link,
body.theme-fino .dash-sidebar .dash-navbar > .dash-item.active > .dash-link,
body.theme-fino .dash-sidebar .dash-navbar > .dash-item:active > .dash-link,
body.theme-fino .dash-sidebar .dash-navbar > .dash-item:focus > .dash-link,
body.theme-fino .dash-sidebar .dash-navbar > .dash-item:hover > .dash-link {
    background: linear-gradient(141.55deg, #4f3a9b 3.46%, #4f3a9b 99.86%), #4f3a9b;
    color: #fff;
    box-shadow: 0 5px 7px -1px rgba(79, 58, 155, 0.3);
}

body.theme-fino .dash-sidebar.fino-sidebar.light-sidebar .dash-navbar > .dash-item.active > .dash-link,
body.theme-fino .dash-sidebar.fino-sidebar.light-sidebar .dash-navbar > .dash-item:active > .dash-link,
body.theme-fino .dash-sidebar.fino-sidebar.light-sidebar .dash-navbar > .dash-item:focus > .dash-link,
body.theme-fino .dash-sidebar.fino-sidebar.light-sidebar .dash-navbar > .dash-item:hover > .dash-link,
body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item.active > .dash-link,
body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item:active > .dash-link,
body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item:focus > .dash-link,
body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item:hover > .dash-link {
    background: #f0f1fe;
    border: 1px solid #ced0fc;
    color: #43357d;
    box-shadow: none;
}

body.theme-fino .dash-sidebar.light-sidebar .dash-navbar > .dash-item.active > .dash-link i,
body.theme-fino .dash-sidebar.light-sidebar .dash-navbar > .dash-item:active > .dash-link i,
body.theme-fino .dash-sidebar.light-sidebar .dash-navbar > .dash-item:focus > .dash-link i,
body.theme-fino .dash-sidebar.light-sidebar .dash-navbar > .dash-item:hover > .dash-link i,
body.theme-fino .dash-sidebar .dash-navbar > .dash-item.active > .dash-link i,
body.theme-fino .dash-sidebar .dash-navbar > .dash-item:active > .dash-link i,
body.theme-fino .dash-sidebar .dash-navbar > .dash-item:focus > .dash-link i,
body.theme-fino .dash-sidebar .dash-navbar > .dash-item:hover > .dash-link i {
    color: #4f3a9b;
}

body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item.active > .dash-link i,
body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item:active > .dash-link i,
body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item:focus > .dash-link i,
body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item:hover > .dash-link i {
    color: #43357d;
}

/* Tree connector tint — not used when .fino-sidebar (connector hidden); keep for FINO without shell */
body.theme-fino .dash-sidebar.light-sidebar:not(.fino-sidebar) .dash-item .dash-submenu .dash-item::before,
body.theme-fino .dash-sidebar:not(.fino-sidebar) .dash-item .dash-submenu .dash-item::before {
    border-right-color: #4f3a9b;
}

body.theme-fino .dash-sidebar.light-sidebar:not(.fino-sidebar) .dash-item .dash-submenu .dash-item.active > .dash-link,
body.theme-fino .dash-sidebar.light-sidebar:not(.fino-sidebar) .dash-item .dash-submenu .dash-item:active > .dash-link,
body.theme-fino .dash-sidebar.light-sidebar:not(.fino-sidebar) .dash-item .dash-submenu .dash-item:focus > .dash-link,
body.theme-fino .dash-sidebar.light-sidebar:not(.fino-sidebar) .dash-item .dash-submenu .dash-item:hover > .dash-link,
body.theme-fino .dash-sidebar:not(.fino-sidebar) .dash-item .dash-submenu .dash-item.active > .dash-link,
body.theme-fino .dash-sidebar:not(.fino-sidebar) .dash-item .dash-submenu .dash-item:active > .dash-link,
body.theme-fino .dash-sidebar:not(.fino-sidebar) .dash-item .dash-submenu .dash-item:focus > .dash-link,
body.theme-fino .dash-sidebar:not(.fino-sidebar) .dash-item .dash-submenu .dash-item:hover > .dash-link {
    color: #4f3a9b;
}

body.theme-fino a:not([class]) {
    color: #4f3a9b;
}

body.theme-fino a:not([class]):hover {
    color: #43357d;
}

body.theme-fino .text-primary {
    color: #4f3a9b !important;
}

body.theme-fino .list-group-item.active {
    background: linear-gradient(141.55deg, #4f3a9b 3.46%, #4f3a9b 99.86%), #4f3a9b !important;
}

body.theme-fino .progress-bar:not([class*="bg-"]),
body.theme-fino .btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #4f3a9b;
    --bs-btn-border-color: #4f3a9b;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #43357d;
    --bs-btn-hover-border-color: #3d2f6e;
    --bs-btn-focus-shadow-rgb: 79, 58, 155;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #35285c;
    --bs-btn-active-border-color: #322756;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: #4f3a9b;
    --bs-btn-disabled-border-color: #4f3a9b;
}

body.theme-fino .btn-outline-primary {
    --bs-btn-color: #4f3a9b;
    --bs-btn-border-color: #4f3a9b;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #4f3a9b;
    --bs-btn-hover-border-color: #4f3a9b;
    --bs-btn-focus-shadow-rgb: 79, 58, 155;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #4f3a9b;
    --bs-btn-active-border-color: #4f3a9b;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #4f3a9b;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #4f3a9b;
    --bs-gradient: none;
}

body.theme-fino .btn-light-primary {
    background: var(--fino-tint-bg);
    color: #4f3a9b;
    border-color: var(--fino-tint-bg);
}

body.theme-fino .btn-light-primary:hover {
    background: #4f3a9b;
    color: #fff;
    border-color: #4f3a9b;
}

body.theme-fino .btn-light-primary.focus,
body.theme-fino .btn-light-primary:focus {
    background: #4f3a9b;
    color: #fff;
    border-color: #4f3a9b;
}

body.theme-fino .btn-light-primary:not(:disabled):not(.disabled).active,
body.theme-fino .btn-light-primary:not(:disabled):not(.disabled):active,
.show > body.theme-fino .btn-light-primary.dropdown-toggle {
    background: #4f3a9b;
    color: #fff;
    border-color: #4f3a9b;
}

body.theme-fino .btn-check:active + .btn-light-primary,
body.theme-fino .btn-check:checked + .btn-light-primary {
    background: #4f3a9b;
    color: #fff;
    border-color: #4f3a9b;
}

body.theme-fino .alert-primary {
    --bs-alert-color: #35285c;
    --bs-alert-bg: #ede9f7;
    --bs-alert-border-color: #d4ccec;
}

body.theme-fino .alert-primary .alert-link {
    color: #2a1f49;
}

body.theme-fino .badge.bg-light-primary {
    background: var(--fino-tint-bg);
    color: #4f3a9b;
    border-color: var(--fino-tint-bg);
}

body.theme-fino .page-item.active .page-link {
    background: #4f3a9b;
    border-color: #4f3a9b;
}

body.theme-fino .nav-link {
    color: #4f3a9b;
}

body.theme-fino .nav-link:hover,
body.theme-fino .nav-link:focus {
    color: #43357d;
}

body.theme-fino .nav-tabs .nav-link {
    background: none;
}

body.theme-fino .nav-pills .nav-link {
    background: none;
}

body.theme-fino .nav-pills .nav-link:focus,
body.theme-fino .nav-pills .nav-link.active,
body.theme-fino .nav-pills .show > .nav-link {
    color: #ffffff;
    background: linear-gradient(141.55deg, #4f3a9b 3.46%, #4f3a9b 99.86%), #4f3a9b;
}

body.theme-fino .form-check-input:focus,
body.theme-fino .form-select:focus,
body.theme-fino .form-control:focus,
body.theme-fino .custom-select:focus,
body.theme-fino .dataTable-selector:focus,
body.theme-fino .dataTable-input:focus {
    border-color: #4f3a9b;
    box-shadow: 0 0 0 0.2rem rgba(79, 58, 155, 0.25);
}

body.theme-fino .form-check-input:checked {
    background-color: #4f3a9b;
    border-color: #4f3a9b;
}

body.theme-fino .form-range::-webkit-slider-thumb {
    background: #4f3a9b;
}

body.theme-fino .form-range::-moz-range-thumb {
    background: #4f3a9b;
}

body.theme-fino .form-check-input[type="checkbox"]:indeterminate {
    background-color: #4f3a9b;
    border-color: #4f3a9b;
}

body.theme-fino .form-check .form-check-input.input-primary:checked {
    background-color: #4f3a9b;
    border-color: #4f3a9b;
}

body.theme-fino pre[class*="language-"] > code {
    border-left-color: #4f3a9b;
    background-image: linear-gradient(transparent 50%, rgba(79, 58, 155, 0.04) 50%);
}

body.theme-fino .card .card-header h5:after,
body.theme-fino .card .card-header .h5:after {
    background: #4f3a9b;
}

/* --- FINO UI layer (cards, forms, tables) --- */
body.theme-fino .btn-primary,
body.theme-fino .badge.bg-primary {
    background-color: var(--fino-surface-brand) !important;
    border-color: var(--fino-surface-brand) !important;
    color: var(--fino-text-inverted) !important;
}

body.theme-fino .btn-primary:hover,
body.theme-fino .btn-primary:focus {
    background-color: var(--fino-brand-hover) !important;
    border-color: var(--fino-brand-hover) !important;
}

body.theme-fino .border-primary {
    border-color: var(--fino-stroke-brand-soft) !important;
}

body.theme-fino .card {
    border-color: var(--fino-stroke-primary);
    border-radius: var(--fino-radius-card);
}

body.theme-fino .card-header {
    border-bottom-color: var(--fino-stroke-primary);
    color: var(--fino-text-secondary);
}

body.theme-fino .form-control,
body.theme-fino .form-select {
    border-color: var(--fino-stroke-primary);
    border-radius: var(--fino-radius-input);
    color: var(--fino-text-secondary);
}

body.theme-fino .form-label,
body.theme-fino label {
    color: var(--fino-text-secondary);
}

/* AJAX modals - light FINO treatment from the product mockup. */
html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-content {
    overflow: hidden;
    border: 1px solid rgba(79, 58, 155, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(43, 34, 87, 0.16), 0 8px 24px rgba(43, 34, 87, 0.08);
}

html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid #eeecf5;
    background: transparent;
}

html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-title {
    flex: 1 1 auto;
    margin: 0;
    color: #252233;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .btn-close {
    width: 32px;
    height: 32px;
    margin: 0;
    border-radius: 10px;
    opacity: 0.65;
    transition: background 0.2s ease, opacity 0.2s ease;
}

html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .btn-close:hover {
    background-color: #f3f1f8;
    opacity: 1;
}

html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-body {
    padding: 26px 28px 22px;
}

html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-body .row {
    row-gap: 20px;
}

html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .form-group {
    margin-bottom: 0;
}

html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .form-label,
html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) label {
    margin-bottom: 10px;
    color: #4d485d;
    font-size: 13px;
    font-weight: 700;
}

html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .form-control,
html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .form-select {
    min-height: 46px;
    padding: 10px 14px;
    border-color: #e5e2ed;
    border-radius: 12px;
    background-color: #ffffff;
    color: #252233;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.02);
}

html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .form-control::placeholder {
    color: #8d8999;
}

html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .form-control:focus,
html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .form-select:focus {
    border-color: rgba(79, 58, 155, 0.45);
    box-shadow: 0 0 0 4px rgba(79, 58, 155, 0.08);
}

html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .text-xs {
    color: #777383;
    font-size: 12px;
    font-weight: 500;
}

html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .text-xs a {
    color: var(--fino-surface-brand);
}

html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .form-switch .form-check-input {
    width: 48px;
    height: 26px;
    margin: 0;
    border: 0;
    background-color: #d7d2e5;
    box-shadow: inset 0 1px 3px rgba(43, 34, 87, 0.16);
    cursor: pointer;
}

html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .form-switch .form-check-input:checked {
    background-color: var(--fino-surface-brand);
    box-shadow: 0 6px 14px rgba(79, 58, 155, 0.24);
}

html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-footer {
    gap: 14px;
    padding: 24px 28px;
    border-top: 1px solid #eeecf5;
    background: #ffffff;
}

html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-footer .btn {
    min-width: 118px;
    min-height: 46px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-footer .btn-secondary {
    border-color: #e7e4ee;
    background: #ffffff;
    color: #4d485d;
}

html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-footer .btn-primary {
    border-color: transparent !important;
    background: linear-gradient(135deg, #4f3a9b 0%, #7b32ff 100%) !important;
    box-shadow: 0 12px 22px rgba(79, 58, 155, 0.24);
}

@media (max-width: 575.98px) {
    html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-header,
    html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-body,
    html[data-theme="light"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-footer {
        padding-right: 20px;
        padding-left: 20px;
    }
}

/* AJAX modals - dark FINO treatment from the product mockup. */
html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-content {
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.34);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        rgba(5, 12, 26, 0.96);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 24px 70px rgba(0, 0, 0, 0.42),
        0 0 38px rgba(139, 92, 246, 0.16);
    backdrop-filter: blur(18px);
}

html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: transparent;
}

html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-title {
    flex: 1 1 auto;
    margin: 0;
    color: #f8fafc;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .btn-close {
    width: 32px;
    height: 32px;
    margin: 0;
    border-radius: 10px;
    filter: invert(1) grayscale(100%) brightness(180%);
    opacity: 0.72;
    transition: background 0.2s ease, opacity 0.2s ease;
}

html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .btn-close:hover {
    background-color: rgba(148, 163, 184, 0.14);
    opacity: 1;
}

html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-body {
    padding: 26px 28px 22px;
}

html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-body .row {
    row-gap: 20px;
}

html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .form-group {
    margin-bottom: 0;
}

html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .form-label,
html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) label {
    margin-bottom: 10px;
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 800;
}

html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .form-control,
html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .form-select {
    min-height: 46px;
    padding: 10px 14px;
    border-color: rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background-color: rgba(10, 21, 41, 0.82);
    color: #f8fafc;
    font-size: 14px;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .form-control::placeholder {
    color: #94a3b8;
}

html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .form-control:focus,
html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .form-select:focus {
    border-color: rgba(139, 92, 246, 0.68);
    background-color: rgba(8, 19, 38, 0.96);
    box-shadow:
        0 0 0 4px rgba(139, 92, 246, 0.14),
        0 0 20px rgba(139, 92, 246, 0.12);
}

html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .text-muted,
html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .text-xs {
    color: #94a3b8 !important;
    font-size: 12px;
    font-weight: 600;
}

html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) a,
html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .text-xs a {
    color: #a855f7;
}

html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .form-switch .form-check-input {
    width: 48px;
    height: 26px;
    margin: 0;
    border: 0;
    background-color: rgba(51, 65, 85, 0.96);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .form-switch .form-check-input:checked {
    background-color: #6d28d9;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
}

html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-footer {
    gap: 14px;
    padding: 24px 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(5, 12, 26, 0.72);
}

html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-footer .btn {
    min-width: 118px;
    min-height: 46px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
}

html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-footer .btn-secondary {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(2, 11, 24, 0.78);
    color: #f8fafc;
}

html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-footer .btn-secondary:hover,
html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-footer .btn-secondary:focus {
    border-color: rgba(139, 92, 246, 0.48);
    background: rgba(30, 41, 59, 0.88);
    color: #ffffff;
}

html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-footer .btn-primary {
    border-color: transparent !important;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 52%, #d946ef 100%) !important;
    box-shadow: 0 14px 26px rgba(124, 58, 237, 0.3), 0 0 22px rgba(217, 70, 239, 0.16);
}

@media (max-width: 575.98px) {
    html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-header,
    html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-body,
    html[data-theme="dark"] body.theme-fino :is(#commonModal, #commonModalOver) .modal-footer {
        padding-right: 20px;
        padding-left: 20px;
    }
}

body.theme-fino .page-header .page-header-title h4,
body.theme-fino .dash-header .header-wrapper {
    color: var(--fino-text-secondary);
}

body.theme-fino .table {
    --bs-table-border-color: var(--fino-stroke-primary);
}

body.theme-fino .custom-login .bg-primary {
    background-color: var(--fino-surface-brand) !important;
}

body.theme-fino .custom-login .card {
    border-radius: var(--fino-radius-card);
}

body.theme-fino .badge {
    border-radius: 8px;
}

/* --- FINO sidebar shell --- */
body.theme-fino .dash-sidebar.fino-sidebar {
    background: #ffffff;
    border-right: 1px solid #e4e3ea;
}

body.theme-fino .dash-sidebar.fino-sidebar .navbar-wrapper {
    padding: 0;
    /* Column flex + scrollable `.navbar-content` lives in `style.css`; keep wrapper
       flex so the FINO logo/search stack and menu share the sidebar height cleanly. */
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* Sidebar logo: override global .m-header { height: 70px } and .main-logo { max-height: 80px } so stacked/wordmark assets are not clipped */
body.theme-fino .dash-sidebar.fino-sidebar .m-header.main-logo {
    height: auto !important;
    min-height: 76px;
    max-height: none !important;
    padding: 12px 18px;
    border-bottom: 1px solid #e4e3ea;
    box-sizing: border-box;
    overflow: visible !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

body.theme-fino .dash-sidebar.fino-sidebar .m-header.main-logo a.b-brand {
    height: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
}

body.theme-fino .dash-sidebar.fino-sidebar .m-header.main-logo a img.logo {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 84px !important;
    object-fit: contain;
    object-position: center center;
    display: block !important;
    margin-inline: auto;
}

body.theme-fino .dash-sidebar.fino-sidebar .m-header.main-logo a img.fino-sidebar-logo {
    max-height: 52px !important;
}

body.theme-fino .dash-sidebar.fino-sidebar .navbar-content {
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    min-height: 0;
    max-height: none !important;
    /* Scroll lives on `.navbar-menu-scroll`; keep this clipping so flex height is correct */
    overflow: hidden;
    overflow-y: hidden;
}

body.theme-fino .dash-sidebar.fino-sidebar .fino-menu-search {
    margin-bottom: 12px;
}

body.theme-fino .dash-sidebar.fino-sidebar .fino-menu-search-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #e4e3ea;
    border-radius: 12px;
    background: #ffffff;
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.04);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

body.theme-fino .dash-sidebar.fino-sidebar .fino-menu-search-inner:focus-within {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow:
        inset 0 1px 2px rgba(16, 24, 40, 0.04),
        0 0 0 3px rgba(99, 102, 241, 0.12);
}

body.theme-fino .dash-sidebar.fino-sidebar .fino-menu-search-inner i.ti {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
    color: #a19fad;
    pointer-events: none;
}

body.theme-fino .dash-sidebar.fino-sidebar .fino-menu-search input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-size: 14px;
    line-height: 1.35;
    font-family: inherit;
    color: #52505e;
    background: transparent;
    box-shadow: none;
}

body.theme-fino .dash-sidebar.fino-sidebar .fino-menu-search input::placeholder {
    color: #a19fad;
}

body.theme-fino .dash-sidebar.fino-sidebar .fino-menu-search input:focus {
    outline: none;
}

/* Top-level items only — .dash-item > .dash-link also matches submenu rows and broke padding vs. tree ::before */
body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item > .dash-link {
    min-height: 44px;
    border-radius: 8px;
    padding: 12px 8px 12px 12px;
    margin: 2px 0;
}

body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item > .dash-link .dash-micon {
    margin-right: 12px;
    font-size: 20px;
    color: #52505e;
}

body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item > .dash-link .dash-mtext {
    font-size: 14px;
    font-weight: 600;
    color: #52505e;
}

body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item.active > .dash-link .dash-micon,
body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item.active > .dash-link .dash-mtext {
    color: #43357d;
}

body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item:hover > .dash-link {
    background: #f7f7fb;
}

body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item > .dash-link .dash-micon i.ti {
    font-size: 20px;
    line-height: 1;
    font-weight: normal;
}

/* FINO shell: hide legacy circular tree dots (replaced by vertical guide + pill bar) */
body:not(.minimenu).theme-fino .dash-sidebar.fino-sidebar .dash-submenu .dash-item::before,
body:not(.minimenu).theme-fino .dash-sidebar.fino-sidebar .dash-submenu .dash-submenu > .dash-item::before,
body:not(.minimenu).theme-fino .dash-sidebar.fino-sidebar .dash-submenu .dash-submenu .dash-submenu > .dash-item::before {
    content: none;
    display: none;
}

/* Expanded parent row — outlined card (Figma) */
body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item.dash-hasmenu.dash-trigger > .dash-link {
    border: 1px solid var(--fino-stroke-brand-soft);
    background: var(--fino-surface-secondary);
    color: var(--fino-text-brand);
}

body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item.dash-hasmenu.dash-trigger > .dash-link .dash-micon i,
body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item.dash-hasmenu.dash-trigger > .dash-link .dash-mtext {
    color: var(--fino-text-brand);
}

body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item.dash-hasmenu.dash-trigger > .dash-link .dash-arrow,
body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item.dash-hasmenu.dash-trigger > .dash-link .dash-arrow i {
    color: var(--fino-text-brand);
    opacity: 0.85;
}

body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item.dash-hasmenu.dash-trigger > .dash-link .dash-arrow svg {
    stroke: var(--fino-text-brand);
    opacity: 0.85;
}

/* Submenu: inset under parent label (icon column + link padding), narrower than full sidebar */
body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item > .dash-submenu {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 6px 0 8px;
    margin-inline-start: 0;
    margin-inline-end: 0;
    padding: 4px 0 4px 12px;
}

body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item > .dash-submenu::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    border-radius: 2px;
    background: #d8d2ef;
}

/* Nested submenus: step-in inside parent submenu */
body.theme-fino .dash-sidebar.fino-sidebar .dash-submenu .dash-submenu {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 4px 0 0;
    margin-inline-start: 0;
    padding: 4px 0 4px 12px;
    box-sizing: border-box;
}

body.theme-fino .dash-sidebar.fino-sidebar .dash-submenu .dash-submenu::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    border-radius: 2px;
    background: #e4e0f5;
}

/* Submenu links — text only, no full-row fill */
body.theme-fino .dash-sidebar.fino-sidebar .dash-submenu .dash-item > .dash-link {
    position: relative;
    min-height: 38px;
    border-radius: 6px;
    padding: 8px 10px 8px 14px;
    margin: 2px 0;
    font-size: 14px;
    font-weight: 500;
    color: #6b6a75;
    background: transparent !important;
    border: none !important;
}

body.theme-fino .dash-sidebar.fino-sidebar .dash-submenu .dash-submenu .dash-item > .dash-link {
    padding-left: 14px;
}

body.theme-fino .dash-sidebar.fino-sidebar .dash-submenu .dash-submenu .dash-submenu .dash-item > .dash-link {
    padding-left: 14px;
}

body.theme-fino .dash-sidebar.fino-sidebar .dash-submenu .dash-item:hover > .dash-link {
    background: rgba(79, 58, 155, 0.06) !important;
    color: var(--fino-text-brand);
}

/* Active: purple text + pill bar on the guide (Figma) */
body.theme-fino .dash-sidebar.fino-sidebar .dash-submenu .dash-item.active > .dash-link {
    background: transparent !important;
    color: var(--fino-text-brand) !important;
    font-weight: 600;
}

body.theme-fino .dash-sidebar.fino-sidebar .dash-submenu .dash-item.active > .dash-link::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    border-radius: 999px;
    background: var(--fino-surface-brand);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
}

[dir="rtl"] body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item > .dash-submenu {
    padding: 4px 0 4px 12px;
    margin-inline-start: 0;
    margin-inline-end: 0;
}

[dir="rtl"] body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item > .dash-submenu::before {
    left: auto;
    right: 0;
}

[dir="rtl"] body.theme-fino .dash-sidebar.fino-sidebar .dash-submenu .dash-item.active > .dash-link::before {
    left: auto;
    right: -11px;
}

/* --- Optional dark toggle (html data-theme) — FINO only --- */
html[data-theme="dark"] body.theme-fino {
    color-scheme: dark;
}

html[data-theme="dark"] body.theme-fino {
    background: #0f172a;
    color: #e2e8f0;
}

html[data-theme="dark"] body.theme-fino .dash-container,
html[data-theme="dark"] body.theme-fino .dash-content,
html[data-theme="dark"] body.theme-fino .page-header {
    background: #0f172a;
    color: #e2e8f0;
}

html[data-theme="dark"] body.theme-fino .card,
html[data-theme="dark"] body.theme-fino .modal-content,
html[data-theme="dark"] body.theme-fino .table,
html[data-theme="dark"] body.theme-fino .dropdown-menu {
    background: #111827;
    color: #e2e8f0;
    border-color: #334155;
}

html[data-theme="dark"] body.theme-fino .card-header,
html[data-theme="dark"] body.theme-fino .card-body,
html[data-theme="dark"] body.theme-fino .table td,
html[data-theme="dark"] body.theme-fino .table th {
    border-color: #334155 !important;
    color: #e2e8f0;
}

html[data-theme="dark"] body.theme-fino .text-muted {
    color: #94a3b8 !important;
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar {
    background: #111827;
    border-right-color: #334155;
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .m-header.main-logo {
    border-bottom-color: #334155;
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .fino-menu-search-inner {
    background: #0f172a;
    border-color: #334155;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .fino-menu-search-inner:focus-within {
    border-color: rgba(129, 140, 248, 0.55);
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .fino-menu-search input {
    color: #e2e8f0;
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .fino-menu-search-inner i.ti {
    color: #94a3b8;
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item > .dash-link .dash-micon,
html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item > .dash-link .dash-mtext {
    color: #cbd5e1;
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item.active > .dash-link {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(129, 140, 248, 0.5);
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item > .dash-submenu::before {
    background: rgba(196, 181, 253, 0.35);
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item.dash-hasmenu.dash-trigger > .dash-link {
    border-color: rgba(129, 140, 248, 0.45);
    background: rgba(99, 102, 241, 0.12);
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-submenu .dash-item > .dash-link {
    color: #94a3b8;
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-submenu .dash-item:hover > .dash-link {
    background: rgba(99, 102, 241, 0.12) !important;
    color: var(--fino-text-brand);
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-submenu .dash-item.active > .dash-link {
    background: transparent !important;
    color: var(--fino-text-brand) !important;
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-submenu .dash-item.active > .dash-link::before {
    background: #a78bfa;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}

body.theme-fino .theme-mode-toggle {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1;
}

html[data-theme="dark"] body.theme-fino .theme-mode-toggle {
    border-color: #334155;
    background: #111827;
    color: #e2e8f0;
}

/* --- FINO visual page system: reusable surfaces/cards for module index pages --- */
body.theme-fino {
    --fino-page-bg: #fbfaff;
    --fino-page-surface: rgba(255, 255, 255, 0.92);
    --fino-page-surface-strong: #ffffff;
    --fino-page-border: rgba(79, 58, 155, 0.12);
    --fino-page-border-strong: rgba(79, 58, 155, 0.26);
    --fino-page-title: #19162b;
    --fino-page-text: #27233d;
    --fino-page-muted: #767386;
    --fino-page-icon-bg: #edf0f4;
    --fino-page-icon-color: #a7b0ba;
    --fino-page-card-shadow: 0 14px 34px rgba(73, 63, 132, 0.08);
    --fino-page-card-shadow-hover: 0 18px 42px rgba(79, 58, 155, 0.14);
    --fino-page-accent: #6b35f5;
    --fino-page-accent-2: #2dd4bf;
    --fino-page-danger: #f43f7d;
    --fino-admin-bg-image: url("../assets/images/admin-background-light.webp");
}

html[data-theme="dark"] body.theme-fino {
    --fino-page-bg: #020816;
    --fino-page-surface: rgba(7, 17, 34, 0.86);
    --fino-page-surface-strong: rgba(9, 20, 39, 0.96);
    --fino-page-border: rgba(141, 118, 255, 0.18);
    --fino-page-border-strong: rgba(132, 87, 255, 0.52);
    --fino-page-title: #f8fafc;
    --fino-page-text: #e5e7eb;
    --fino-page-muted: #9ba4b5;
    --fino-page-icon-bg: rgba(148, 163, 184, 0.14);
    --fino-page-icon-color: #9ca3af;
    --fino-page-card-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
    --fino-page-card-shadow-hover: 0 0 0 1px rgba(132, 87, 255, 0.24), 0 22px 58px rgba(0, 0, 0, 0.42);
    --fino-page-accent: #7c3cff;
    --fino-page-accent-2: #24d4ff;
    --fino-page-danger: #ff3f8f;
    --fino-admin-bg-image: url("../assets/images/admin-background-dark.webp");
}

body.theme-fino {
    min-height: 100vh;
    background-color: var(--fino-page-bg) !important;
    background-image: var(--fino-admin-bg-image) !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    color: var(--fino-page-text);
}

body.theme-fino.super-admin-dashboard-page::before,
body.theme-fino.fino-visual-page::after,
body.theme-fino:has(.fino-entity-card)::after,
body.theme-fino:has(.user-card)::after {
    content: none;
    display: none;
}

body.theme-fino.fino-visual-page::before,
body.theme-fino:has(.fino-entity-card)::before,
body.theme-fino:has(.user-card)::before {
    content: none;
    display: none;
}

body.theme-fino .dash-container,
body.theme-fino .dash-content,
html[data-theme="dark"] body.theme-fino .dash-container,
html[data-theme="dark"] body.theme-fino .dash-content {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

body.theme-fino .page-header,
html[data-theme="dark"] body.theme-fino .page-header {
    background: transparent !important;
    box-shadow: none !important;
}

body.theme-fino .page-header-title h4 {
    color: var(--fino-page-title) !important;
    font-weight: 800;
    letter-spacing: -0.03em;
}

body.theme-fino .breadcrumb {
    --bs-breadcrumb-divider-color: var(--fino-page-muted);
    display: flex !important;
    color: var(--fino-page-muted);
}

body.theme-fino .breadcrumb a {
    color: var(--fino-surface-brand);
    font-weight: 700;
}

html[data-theme="dark"] body.theme-fino .breadcrumb a {
    color: #9b6dff;
}

body.theme-fino .fino-entity-card,
body.theme-fino .user-card,
body.theme-fino .client-card,
body.theme-fino .support-user-card {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    padding: 18px;
    border: 1px solid var(--fino-page-border) !important;
    border-radius: 14px;
    background: var(--fino-page-surface) !important;
    box-shadow: var(--fino-page-card-shadow);
    color: var(--fino-page-text);
    backdrop-filter: blur(12px);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

body.theme-fino .fino-entity-card:hover,
body.theme-fino .user-card:hover,
body.theme-fino .client-card:hover,
body.theme-fino .support-user-card:hover {
    border-color: var(--fino-page-border-strong) !important;
    box-shadow: var(--fino-page-card-shadow-hover);
    transform: translateY(-2px);
}

html[data-theme="dark"] body.theme-fino .fino-entity-card,
html[data-theme="dark"] body.theme-fino .user-card,
html[data-theme="dark"] body.theme-fino .client-card,
html[data-theme="dark"] body.theme-fino .support-user-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        var(--fino-page-surface) !important;
}

body.theme-fino .fino-entity-card::before,
body.theme-fino .user-card::before,
body.theme-fino .client-card::before,
body.theme-fino .support-user-card::before,
body.theme-fino .btn-addnew-project::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        radial-gradient(circle at 16% 8%, rgba(124, 60, 255, 0.08), transparent 30%),
        radial-gradient(circle at 94% 92%, rgba(45, 212, 191, 0.1), transparent 32%);
    opacity: 0;
    transition: opacity 0.18s ease;
}

html[data-theme="dark"] body.theme-fino .fino-entity-card::before,
html[data-theme="dark"] body.theme-fino .user-card::before,
html[data-theme="dark"] body.theme-fino .client-card::before,
html[data-theme="dark"] body.theme-fino .support-user-card::before,
html[data-theme="dark"] body.theme-fino .btn-addnew-project::before {
    opacity: 1;
}

body.theme-fino .fino-entity-card > *,
body.theme-fino .user-card > *,
body.theme-fino .client-card > *,
body.theme-fino .support-user-card > *,
body.theme-fino .btn-addnew-project > * {
    position: relative;
    z-index: 1;
}

body.theme-fino .user-card .badge,
body.theme-fino .fino-status-badge {
    min-height: 24px;
    padding: 5px 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 5px;
    background: linear-gradient(135deg, #6c3cff, #4f3a9b) !important;
    box-shadow: 0 8px 18px rgba(79, 58, 155, 0.2);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
}

html[data-theme="dark"] body.theme-fino .user-card .badge,
html[data-theme="dark"] body.theme-fino .fino-status-badge {
    border-color: rgba(163, 135, 255, 0.38) !important;
    box-shadow: 0 0 22px rgba(124, 60, 255, 0.28);
}

body.theme-fino .fino-card-menu,
body.theme-fino .user-card .card-option > .btn {
    width: 30px;
    height: 30px;
    padding: 0 !important;
    border-radius: 10px;
    color: var(--fino-page-muted) !important;
    background: transparent !important;
}

body.theme-fino .fino-card-menu:hover,
body.theme-fino .fino-card-menu:focus,
body.theme-fino .user-card .card-option > .btn:hover,
body.theme-fino .user-card .card-option > .btn:focus {
    color: var(--fino-page-title) !important;
    background: rgba(79, 58, 155, 0.08) !important;
}

html[data-theme="dark"] body.theme-fino .fino-card-menu:hover,
html[data-theme="dark"] body.theme-fino .fino-card-menu:focus,
html[data-theme="dark"] body.theme-fino .user-card .card-option > .btn:hover,
html[data-theme="dark"] body.theme-fino .user-card .card-option > .btn:focus {
    color: #ffffff !important;
    background: rgba(124, 60, 255, 0.16) !important;
}

body.theme-fino .user-card .icon-dropdown,
body.theme-fino .user-card .card-option .dropdown-menu {
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--fino-page-border) !important;
    border-radius: 12px;
    background: var(--fino-page-surface-strong) !important;
    box-shadow: 0 18px 44px rgba(39, 35, 61, 0.16);
}

html[data-theme="dark"] body.theme-fino .user-card .icon-dropdown,
html[data-theme="dark"] body.theme-fino .user-card .card-option .dropdown-menu {
    border-color: rgba(132, 87, 255, 0.3) !important;
    background: rgba(5, 13, 29, 0.98) !important;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.48), 0 0 34px rgba(124, 60, 255, 0.12);
}

body.theme-fino .user-card .icon-dropdown .dropdown-item,
body.theme-fino .user-card .card-option .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 9px;
    color: var(--fino-page-text) !important;
    font-weight: 700;
}

body.theme-fino .user-card .icon-dropdown .dropdown-item:hover,
body.theme-fino .user-card .icon-dropdown .dropdown-item:focus,
body.theme-fino .user-card .card-option .dropdown-item:hover,
body.theme-fino .user-card .card-option .dropdown-item:focus {
    color: var(--fino-surface-brand) !important;
    background: rgba(79, 58, 155, 0.08) !important;
}

html[data-theme="dark"] body.theme-fino .user-card .icon-dropdown .dropdown-item,
html[data-theme="dark"] body.theme-fino .user-card .card-option .dropdown-item {
    color: #dbeafe !important;
}

html[data-theme="dark"] body.theme-fino .user-card .icon-dropdown .dropdown-item:hover,
html[data-theme="dark"] body.theme-fino .user-card .icon-dropdown .dropdown-item:focus,
html[data-theme="dark"] body.theme-fino .user-card .card-option .dropdown-item:hover,
html[data-theme="dark"] body.theme-fino .user-card .card-option .dropdown-item:focus {
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(124, 60, 255, 0.22), rgba(36, 212, 255, 0.12)) !important;
}

body.theme-fino .fino-entity-media,
body.theme-fino .user-card .user-image,
body.theme-fino .client-card .client-image,
body.theme-fino .support-user-card .user-image,
body.theme-fino .super-company-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    min-width: 58px;
    height: 58px;
    overflow: hidden;
    border: 0 !important;
    border-radius: 8px !important;
    background: var(--fino-page-icon-bg);
    color: var(--fino-page-icon-color);
}

body.theme-fino .user-card .user-image img,
body.theme-fino .client-card .client-image img,
body.theme-fino .support-user-card .user-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    filter: saturate(0.72);
}

body.theme-fino .super-company-icon i {
    color: var(--fino-page-icon-color);
    font-size: 28px;
}

body.theme-fino .user-card .user-info-wrp {
    padding-top: 8px;
    padding-bottom: 28px !important;
    margin-bottom: 20px !important;
    border-bottom-color: rgba(118, 115, 134, 0.16) !important;
}

html[data-theme="dark"] body.theme-fino .user-card .user-info-wrp {
    border-bottom-color: rgba(148, 163, 184, 0.16) !important;
}

body.theme-fino .fino-entity-title,
body.theme-fino .user-card .user-info h5 {
    color: var(--fino-page-title) !important;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

body.theme-fino .fino-entity-subtitle,
body.theme-fino .user-card .user-info span,
body.theme-fino .user-card .text-muted,
body.theme-fino .btn-addnew-project .text-muted {
    color: var(--fino-page-muted) !important;
}

body.theme-fino .user-card .date-wrp {
    margin-top: auto;
    color: var(--fino-page-muted);
}

body.theme-fino .fino-meta-icon,
body.theme-fino .user-card .date-wrp .date-icon,
body.theme-fino .user-card .date-wrp .time-icon,
body.theme-fino .client-card .date-wrp .date-icon,
body.theme-fino .client-card .date-wrp .time-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1px solid transparent;
    background: rgba(244, 63, 125, 0.12) !important;
    color: var(--fino-page-danger);
}

body.theme-fino .user-card .date-wrp .time-icon,
body.theme-fino .client-card .date-wrp .time-icon {
    background: rgba(45, 212, 191, 0.14) !important;
    color: var(--fino-page-accent-2);
}

body.theme-fino .fino-meta-icon i,
body.theme-fino .user-card .date-wrp .date-icon i,
body.theme-fino .user-card .date-wrp .time-icon i,
body.theme-fino .client-card .date-wrp .date-icon i,
body.theme-fino .client-card .date-wrp .time-icon i {
    color: currentColor !important;
    font-size: 14px !important;
}

html[data-theme="dark"] body.theme-fino .fino-meta-icon,
html[data-theme="dark"] body.theme-fino .user-card .date-wrp .date-icon,
html[data-theme="dark"] body.theme-fino .user-card .date-wrp .time-icon,
html[data-theme="dark"] body.theme-fino .client-card .date-wrp .date-icon,
html[data-theme="dark"] body.theme-fino .client-card .date-wrp .time-icon {
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-fino .fino-create-card,
body.theme-fino .btn-addnew-project {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    padding: 22px;
    border: 1px solid var(--fino-page-border) !important;
    border-radius: 14px;
    background: var(--fino-page-surface) !important;
    box-shadow: var(--fino-page-card-shadow);
    color: var(--fino-page-title) !important;
    text-decoration: none !important;
    backdrop-filter: blur(12px);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

body.theme-fino .fino-create-card:hover,
body.theme-fino .fino-create-card:focus,
body.theme-fino .btn-addnew-project:hover,
body.theme-fino .btn-addnew-project:focus {
    border-color: var(--fino-page-border-strong) !important;
    box-shadow: var(--fino-page-card-shadow-hover);
    color: var(--fino-page-title) !important;
    transform: translateY(-2px);
}

html[data-theme="dark"] body.theme-fino .fino-create-card,
html[data-theme="dark"] body.theme-fino .btn-addnew-project {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        var(--fino-page-surface) !important;
}

body.theme-fino .fino-create-icon,
body.theme-fino .btn-addnew-project .proj-add-icon {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: linear-gradient(135deg, #7c3cff, #4f3a9b) !important;
    box-shadow: 0 14px 26px rgba(79, 58, 155, 0.24);
}

html[data-theme="dark"] body.theme-fino .fino-create-icon,
html[data-theme="dark"] body.theme-fino .btn-addnew-project .proj-add-icon {
    border-color: rgba(163, 135, 255, 0.34);
    box-shadow: 0 0 28px rgba(124, 60, 255, 0.36);
}

body.theme-fino .fino-create-icon i,
body.theme-fino .btn-addnew-project .proj-add-icon i {
    color: #ffffff !important;
    font-size: 22px;
}

/* FINO dark mode refinement: match the admin mockup, overriding the older neon layer. */
html[data-theme="dark"] body.theme-fino {
    --fino-surface-primary: rgba(7, 14, 29, 0.92);
    --fino-surface-secondary: rgba(18, 26, 48, 0.76);
    --fino-text-secondary: #d9deea;
    --fino-text-brand: #a884ff;
    --fino-stroke-primary: rgba(129, 140, 248, 0.18);
    --fino-stroke-brand-soft: rgba(124, 60, 255, 0.46);
    --fino-page-surface: rgba(9, 16, 31, 0.82);
    --fino-page-surface-strong: rgba(10, 17, 34, 0.96);
    --fino-page-border: rgba(146, 159, 190, 0.18);
    --fino-page-border-strong: rgba(124, 60, 255, 0.74);
    --fino-page-card-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    --fino-page-card-shadow-hover: 0 0 0 1px rgba(124, 60, 255, 0.34), 0 22px 54px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] body.theme-fino .dash-header.fino-header,
html[data-theme="dark"] body.theme-fino.super-admin-dashboard-page .dash-header.fino-header {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none;
}

html[data-theme="dark"] body.theme-fino .dash-header.fino-header .fino-header-search-inner,
html[data-theme="dark"] body.theme-fino.super-admin-dashboard-page .dash-header.fino-header .fino-header-search-inner {
    min-height: 46px;
    border-color: rgba(146, 159, 190, 0.16) !important;
    background: rgba(11, 18, 35, 0.78) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 10px 28px rgba(0, 0, 0, 0.14) !important;
}

html[data-theme="dark"] body.theme-fino .dash-header.fino-header .fino-header-search-inner:focus-within {
    border-color: rgba(124, 60, 255, 0.48) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 3px rgba(124, 60, 255, 0.12),
        0 12px 32px rgba(0, 0, 0, 0.18) !important;
}

html[data-theme="dark"] body.theme-fino .dash-header.fino-header .fino-header-search input,
html[data-theme="dark"] body.theme-fino.super-admin-dashboard-page .dash-header.fino-header .fino-header-search input {
    color: #dce3f3 !important;
}

html[data-theme="dark"] body.theme-fino .dash-header.fino-header .fino-header-search input::placeholder {
    color: rgba(220, 227, 243, 0.62);
}

html[data-theme="dark"] body.theme-fino .dash-header.fino-header .dash-head-link,
html[data-theme="dark"] body.theme-fino .dash-header.fino-header .fino-nav-icon-btn,
html[data-theme="dark"] body.theme-fino .dash-header.fino-header .fino-user-trigger,
html[data-theme="dark"] body.theme-fino.super-admin-dashboard-page .dash-header.fino-header .dash-head-link,
html[data-theme="dark"] body.theme-fino.super-admin-dashboard-page .dash-header.fino-header .fino-nav-icon-btn,
html[data-theme="dark"] body.theme-fino.super-admin-dashboard-page .dash-header.fino-header .fino-user-trigger {
    border-color: rgba(146, 159, 190, 0.16) !important;
    background: rgba(10, 17, 34, 0.74) !important;
    color: #e7ecf8 !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12) !important;
}

html[data-theme="dark"] body.theme-fino .dash-header.fino-header .dash-head-link:hover,
html[data-theme="dark"] body.theme-fino .dash-header.fino-header .dash-head-link:focus,
html[data-theme="dark"] body.theme-fino .dash-header.fino-header .fino-user-trigger:hover,
html[data-theme="dark"] body.theme-fino .dash-header.fino-header .fino-user-trigger:focus {
    border-color: rgba(124, 60, 255, 0.42) !important;
    background: rgba(31, 22, 69, 0.72) !important;
}

html[data-theme="dark"] body.theme-fino .dash-header.fino-header .dash-head-link > i:not(.nocolor),
html[data-theme="dark"] body.theme-fino .dash-header.fino-header .fino-nav-icon-btn > i.ti {
    color: #b994ff !important;
    text-shadow: none !important;
}

html[data-theme="dark"] body.theme-fino .dash-header.fino-header .fino-lang-icon {
    border-color: rgba(124, 60, 255, 0.32) !important;
    background: rgba(124, 60, 255, 0.13) !important;
    color: #d8c7ff !important;
}

html[data-theme="dark"] body.theme-fino .dash-header.fino-header .fino-user-name {
    color: #ffffff !important;
}

html[data-theme="dark"] body.theme-fino .dash-header.fino-header .fino-user-sub,
html[data-theme="dark"] body.theme-fino .dash-header.fino-header .drp-arrow {
    color: #9ba4b5 !important;
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar,
html[data-theme="dark"] body.theme-fino.super-admin-dashboard-page .dash-sidebar.fino-sidebar {
    background: rgba(5, 12, 26, 0.92) !important;
    border-right-color: rgba(146, 159, 190, 0.16) !important;
    box-shadow: 16px 0 52px rgba(0, 0, 0, 0.22) !important;
    backdrop-filter: blur(18px);
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .m-header.main-logo {
    border-bottom-color: rgba(146, 159, 190, 0.12) !important;
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .m-header.main-logo .logo {
    filter: drop-shadow(0 0 16px rgba(124, 60, 255, 0.28));
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .fino-menu-search-inner,
html[data-theme="dark"] body.theme-fino.super-admin-dashboard-page .dash-sidebar.fino-sidebar .fino-menu-search-inner {
    border-color: rgba(146, 159, 190, 0.14) !important;
    background: rgba(12, 20, 39, 0.78) !important;
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item > .dash-link,
html[data-theme="dark"] body.theme-fino.super-admin-dashboard-page .dash-sidebar.fino-sidebar .dash-navbar > .dash-item > .dash-link {
    color: #d9deea !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item > .dash-link .dash-micon,
html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item > .dash-link .dash-mtext,
html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item > .dash-link i {
    color: #d9deea !important;
    text-shadow: none !important;
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item.active > .dash-link,
html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item > .dash-link.active,
html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item:hover > .dash-link,
html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item.dash-trigger > .dash-link,
html[data-theme="dark"] body.theme-fino.super-admin-dashboard-page .dash-sidebar.fino-sidebar .dash-navbar > .dash-item.active > .dash-link,
html[data-theme="dark"] body.theme-fino.super-admin-dashboard-page .dash-sidebar.fino-sidebar .dash-navbar > .dash-item > .dash-link.active,
html[data-theme="dark"] body.theme-fino.super-admin-dashboard-page .dash-sidebar.fino-sidebar .dash-navbar > .dash-item:hover > .dash-link,
html[data-theme="dark"] body.theme-fino.super-admin-dashboard-page .dash-sidebar.fino-sidebar .dash-navbar > .dash-item.dash-trigger > .dash-link {
    border-color: rgba(124, 60, 255, 0.34) !important;
    background: linear-gradient(90deg, rgba(124, 60, 255, 0.3), rgba(124, 60, 255, 0.14)) !important;
    color: #ffffff !important;
    box-shadow: 0 0 24px rgba(124, 60, 255, 0.14) !important;
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item.active > .dash-link .dash-micon,
html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item.active > .dash-link .dash-mtext,
html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item.dash-trigger > .dash-link .dash-micon,
html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item.dash-trigger > .dash-link .dash-mtext,
html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item.active > .dash-link i,
html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item.dash-trigger > .dash-link i {
    color: #ffffff !important;
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-navbar > .dash-item > .dash-submenu::before,
html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-submenu .dash-submenu::before {
    background: rgba(139, 92, 246, 0.24);
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-submenu .dash-item > .dash-link {
    color: #9ba4b5 !important;
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-submenu .dash-item:hover > .dash-link,
html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-submenu .dash-item.active > .dash-link {
    color: #b994ff !important;
    background: transparent !important;
}

html[data-theme="dark"] body.theme-fino .dash-sidebar.fino-sidebar .dash-submenu .dash-item.active > .dash-link::before {
    background: #7c3cff;
    box-shadow: 0 0 12px rgba(124, 60, 255, 0.5);
}

html[data-theme="dark"] body.theme-fino .fino-entity-card,
html[data-theme="dark"] body.theme-fino .user-card,
html[data-theme="dark"] body.theme-fino .client-card,
html[data-theme="dark"] body.theme-fino .support-user-card,
html[data-theme="dark"] body.theme-fino .fino-create-card,
html[data-theme="dark"] body.theme-fino .btn-addnew-project,
html[data-theme="dark"] body.theme-fino.super-admin-dashboard-page .user-card,
html[data-theme="dark"] body.theme-fino.super-admin-dashboard-page .btn-addnew-project {
    border-color: rgba(146, 159, 190, 0.18) !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008)),
        rgba(9, 16, 31, 0.82) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 18px 48px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] body.theme-fino .fino-entity-card:hover,
html[data-theme="dark"] body.theme-fino .user-card:hover,
html[data-theme="dark"] body.theme-fino .client-card:hover,
html[data-theme="dark"] body.theme-fino .support-user-card:hover,
html[data-theme="dark"] body.theme-fino .fino-create-card:hover,
html[data-theme="dark"] body.theme-fino .btn-addnew-project:hover {
    border-color: rgba(124, 60, 255, 0.72) !important;
    box-shadow:
        0 0 0 1px rgba(124, 60, 255, 0.28),
        0 0 28px rgba(124, 60, 255, 0.14),
        0 22px 54px rgba(0, 0, 0, 0.38) !important;
}

html[data-theme="dark"] body.theme-fino .row > [class*="col-"]:first-child .user-card {
    border-color: rgba(124, 60, 255, 0.78) !important;
    box-shadow:
        0 0 0 1px rgba(124, 60, 255, 0.34),
        0 0 30px rgba(124, 60, 255, 0.18),
        0 22px 54px rgba(0, 0, 0, 0.38) !important;
}

html[data-theme="dark"] body.theme-fino .user-card .badge,
html[data-theme="dark"] body.theme-fino .fino-status-badge {
    border-color: rgba(163, 135, 255, 0.3) !important;
    background: linear-gradient(135deg, #7c3cff, #5631d8) !important;
    color: #ffffff !important;
    box-shadow: 0 0 18px rgba(124, 60, 255, 0.24) !important;
}

html[data-theme="dark"] body.theme-fino .user-card .date-wrp .date-icon,
html[data-theme="dark"] body.theme-fino .client-card .date-wrp .date-icon {
    border-color: rgba(255, 63, 143, 0.22) !important;
    background: rgba(255, 63, 143, 0.16) !important;
    color: #ff3f8f !important;
}

html[data-theme="dark"] body.theme-fino .user-card .date-wrp .time-icon,
html[data-theme="dark"] body.theme-fino .client-card .date-wrp .time-icon {
    border-color: rgba(36, 212, 255, 0.22) !important;
    background: rgba(36, 212, 255, 0.12) !important;
    color: #24d4ff !important;
}

html[data-theme="dark"] body.theme-fino .fino-create-icon,
html[data-theme="dark"] body.theme-fino .btn-addnew-project .proj-add-icon {
    background: linear-gradient(135deg, #7c3cff, #4f2bd4) !important;
    box-shadow: 0 0 26px rgba(124, 60, 255, 0.34) !important;
}
