﻿/* ============================================================
   AfriERP – SMELayout.razor.css
   Theme: Corporate Blue / Grey · Side menu with collapse
   ============================================================ */


/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ============================================================
   RADZEN-STYLE RIPPLE EFFECT
   ============================================================ */
.rz-ripple {
    position: relative;
    overflow: hidden;
}

    .rz-ripple::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle, currentColor 10%, transparent 10.01%);
        background-repeat: no-repeat;
        background-position: 50%;
        transform: scale(10, 10);
        opacity: 0;
        transition: transform .5s, opacity 1s;
        pointer-events: none;
    }

    .rz-ripple:active::after {
        transform: scale(0, 0);
        opacity: .2;
        transition: 0s;
    }

/* ============================================================
   SHELL
   ============================================================ */
.afri-shell {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--body-bg);
}

.afri-main {
    flex: 1;
    display: flex;
    min-height: 0;
    overflow: hidden;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.afri-topbar {
    display: flex;
    align-items: center;
    height: var(--topbar-h);
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--topbar-border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
    flex-shrink: 0;
    z-index: 200;
    padding: 0 16px;
    gap: 14px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.topbar-hamburger {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: var(--topbar-icon);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast), color var(--t-fast);
}

    .topbar-hamburger:hover {
        background: var(--topbar-icon-hover-bg);
        color: var(--topbar-text-hi);
    }

.afri-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand-tile) 0%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(29, 78, 216, .25);
    flex-shrink: 0;
}

    .brand-logo .brand-icon,
    .brand-logo .rz-icon {
        color: #fff;
        font-size: 18px;
    }

.brand-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--brand-name-color);
    text-transform: uppercase;
}

.topbar-center {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.topbar-divider {
    width: 1px;
    height: 22px;
    background: var(--topbar-border);
    margin: 0 6px;
}

.topbar-icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: var(--topbar-icon);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

    .topbar-icon-btn:hover {
        background: var(--topbar-icon-hover-bg);
        color: var(--topbar-text-hi);
    }

    .topbar-icon-btn:active {
        transform: scale(.94);
    }

    .topbar-icon-btn.logout-btn:hover {
        background: #fef2f2;
        color: #dc2626;
    }

.topbar-language {
    height: 36px;
    min-width: 68px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    border-radius: 8px;
    color: var(--topbar-icon);
    transition: background var(--t-fast), color var(--t-fast);
}

    .topbar-language:hover {
        background: var(--topbar-icon-hover-bg);
        color: var(--topbar-text-hi);
    }

    .topbar-language select {
        border: none;
        outline: none;
        background: transparent;
        color: inherit;
        font: inherit;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        min-width: 34px;
        padding: 0;
    }

.topbar-badge-dot {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--topbar-bg);
    pointer-events: none;
}

.topbar-badge-count {
    position: absolute;
    top: 3px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    border: 2px solid var(--topbar-bg);
    font-size: 9px;
    line-height: 12px;
    font-weight: 700;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 24px;
    background: var(--topbar-icon-hover-bg);
    margin-left: 4px;
}

.topbar-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.topbar-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.topbar-user-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--topbar-text-hi);
}

.topbar-user-role {
    font-size: 10px;
    color: var(--topbar-text);
}

@media (max-width: 900px) {
    .topbar-user-info {
        display: none;
    }
}

/* ============================================================
   GLOBAL CHAT
   ============================================================ */
.afri-chat-panel {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: min(820px, calc(100vw - 32px));
    height: min(620px, calc(100vh - 96px));
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.afri-chat-header {
    height: 58px;
    padding: 10px 12px 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 100%);
}

.afri-chat-title {
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    font-size: 15px;
}

.afri-chat-subtitle {
    font-size: 12px;
    color: #64748b;
    max-width: 420px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.afri-chat-header-actions {
    display: flex;
    gap: 4px;
}

.afri-chat-icon {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.afri-chat-icon:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.afri-chat-new {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.afri-chat-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 270px 1fr;
}

.afri-chat-list {
    border-right: 1px solid #e5e7eb;
    overflow: auto;
    background: #f8fafc;
}

.afri-chat-list-item {
    position: relative;
    width: 100%;
    min-height: 70px;
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 34px 10px 12px;
    background: transparent;
    text-align: left;
}

.afri-chat-list-item:hover,
.afri-chat-list-item.active {
    background: #eff6ff;
}

.afri-chat-list-item.active {
    box-shadow: inset 3px 0 0 #2563eb;
}

.afri-chat-list-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.afri-chat-list-preview {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #64748b;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.afri-chat-unread {
    position: absolute;
    top: 12px;
    right: 10px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.afri-chat-thread {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.afri-chat-participants {
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
    color: #64748b;
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.afri-chat-messages {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 14px;
    background: #ffffff;
}

.afri-chat-message {
    max-width: 76%;
    margin-bottom: 12px;
}

.afri-chat-message.mine {
    margin-left: auto;
}

.afri-chat-message-meta {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 3px;
}

.afri-chat-message.mine .afri-chat-message-meta {
    text-align: right;
}

.afri-chat-bubble {
    padding: 9px 11px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 13px;
    white-space: pre-wrap;
}

.afri-chat-message.mine .afri-chat-bubble {
    background: #2563eb;
    color: #fff;
}

.afri-chat-compose {
    display: grid;
    grid-template-columns: 1fr 42px;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.afri-chat-compose textarea {
    min-height: 42px;
    max-height: 96px;
    resize: vertical;
}

.afri-chat-empty {
    padding: 18px;
    color: #64748b;
    font-size: 13px;
}

.afri-chat-launcher-wrap {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1190;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.afri-chat-launcher {
    position: relative;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 16px 36px rgba(37, 99, 235, .36), 0 4px 12px rgba(15, 23, 42, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.afri-chat-launcher:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(37, 99, 235, .42), 0 6px 16px rgba(15, 23, 42, .2);
}

.afri-chat-launcher:active {
    transform: translateY(0) scale(.96);
}

.afri-chat-launcher-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    border: 2px solid #fff;
    font-size: 11px;
    line-height: 18px;
    font-weight: 800;
}

.afri-chat-toast {
    min-height: 48px;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    padding: 10px 13px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .18);
    font-size: 12px;
    text-align: left;
}

.afri-chat-toast strong {
    color: #1d4ed8;
    font-size: 13px;
}

.afri-chat-toast span {
    color: #64748b;
}

@media (max-width: 760px) {
    .afri-chat-panel {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
        height: calc(100vh - 72px);
    }

    .afri-chat-body {
        grid-template-columns: 1fr;
    }

    .afri-chat-list {
        max-height: 180px;
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .afri-chat-launcher-wrap {
        right: 14px;
        bottom: 14px;
    }

    .afri-chat-toast {
        display: none;
    }
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.afri-sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: width var(--t-mid);
    overflow: hidden; /* clip horizontal; flyout lives outside sidebar */
    position: relative;
    z-index: 50;
}

.afri-shell.is-sidebar-collapsed .afri-sidebar {
    width: var(--sidebar-w-collapsed);
}

/* Search */
.sidebar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 14px 8px;
    padding: 0 12px;
    height: 38px;
    background: #f8fafc;
    border: 1px solid var(--sidebar-border);
    border-radius: 8px;
    transition: border-color var(--t-fast), background var(--t-fast);
}

    .sidebar-search:focus-within {
        border-color: var(--accent-mid);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(29, 78, 216, .08);
    }

.sidebar-search-icon {
    color: var(--sidebar-text-muted);
    font-size: 13px;
    flex-shrink: 0;
}

.sidebar-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: var(--sidebar-text);
    font-family: inherit;
    min-width: 0;
}

    .sidebar-search-input::placeholder {
        color: var(--sidebar-text-muted);
    }

.sidebar-search-kbd {
    font-size: 10px;
    font-weight: 600;
    color: var(--sidebar-text-muted);
    background: #fff;
    border: 1px solid var(--sidebar-border);
    border-radius: 4px;
    padding: 1px 6px;
    flex-shrink: 0;
}

.afri-shell.is-sidebar-collapsed .sidebar-search {
    margin: 14px 12px 8px;
    padding: 0;
    justify-content: center;
    background: transparent;
    border-color: transparent;
}

.afri-shell.is-sidebar-collapsed .sidebar-search-input,
.afri-shell.is-sidebar-collapsed .sidebar-search-kbd {
    display: none;
}

.afri-shell.is-sidebar-collapsed .sidebar-search-icon {
    width: 40px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid var(--sidebar-border);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

/* Nav list */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 10px 12px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

    .sidebar-nav::-webkit-scrollbar {
        width: 5px;
    }

    .sidebar-nav::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 3px;
    }

/* Tab wrapper */
.sidebar-tab {
    position: relative;
    margin-bottom: 2px;
}

/* Tab header */
.sidebar-tab-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: var(--sidebar-text);
    font-size: 13.5px;
    font-weight: 500;
    font-family: inherit;
    text-align: left;
    transition: background var(--t-fast), color var(--t-fast);
}

    .sidebar-tab-header:hover {
        background: var(--sidebar-hover-bg);
        color: var(--topbar-text-hi);
    }

.sidebar-tab.is-active.is-open > .sidebar-tab-header {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
    font-weight: 600;
}

.sidebar-tab-icon {
    width: 22px;
    text-align: center;
    font-size: 15px;
    color: var(--sidebar-text-muted);
    flex-shrink: 0;
    transition: color var(--t-fast);
}

.sidebar-tab-header:hover .sidebar-tab-icon,
.sidebar-tab.is-active > .sidebar-tab-header .sidebar-tab-icon {
    color: var(--sidebar-active-text);
}

.sidebar-tab-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-tab-chevron {
    font-size: 10px;
    color: var(--sidebar-text-muted);
    flex-shrink: 0;
    transition: transform var(--t-fast);
}

.afri-shell.is-sidebar-collapsed .sidebar-tab-label,
.afri-shell.is-sidebar-collapsed .sidebar-tab-chevron {
    display: none;
}

.afri-shell.is-sidebar-collapsed .sidebar-tab-header {
    justify-content: center;
    padding: 11px 0;
}

.afri-shell.is-sidebar-collapsed .sidebar-tab-icon {
    width: auto;
    font-size: 17px;
}

/* Tab content (expanded groups) */
.sidebar-tab-content {
    padding: 2px 0 6px 8px;
    margin-left: 12px;
    border-left: 1px solid var(--sidebar-border);
    animation: slideDown var(--t-mid);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-group {
    padding: 6px 0 4px;
}

    .sidebar-group:not(:first-child) {
        border-top: 1px dashed var(--sidebar-border);
        margin-top: 6px;
    }

.sidebar-group-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    color: var(--sidebar-group-label);
    text-transform: uppercase;
    padding: 6px 10px 4px;
}

/* Action item (leaf) */
.sidebar-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: var(--sidebar-text);
    font-size: 12.5px;
    font-weight: 500;
    font-family: inherit;
    text-align: left;
    transition: background var(--t-fast), color var(--t-fast), padding-left var(--t-fast);
    position: relative;
}

    .sidebar-item:hover {
        background: var(--sidebar-hover-bg);
        color: var(--topbar-text-hi);
        padding-left: 13px;
    }

    .sidebar-item.is-active {
        background: var(--sidebar-active-bg);
        color: var(--sidebar-active-text);
        font-weight: 600;
    }

        .sidebar-item.is-active::before {
            content: "";
            position: absolute;
            left: -8px;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 60%;
            background: var(--accent);
            border-radius: 0 3px 3px 0;
        }

.sidebar-item-icon {
    font-size: 12px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    opacity: .85;
}

.sidebar-item-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.afri-shell.is-sidebar-collapsed .sidebar-tab-content {
    display: none;
}

/* ============================================================
   FLOATING FLYOUT (collapsed-mode only)
   Rendered OUTSIDE the sidebar, position:fixed so it
   escapes all overflow:hidden + scroll boundaries.
   ============================================================ */
.sidebar-flyout-floating {
    position: fixed;
    min-width: 260px;
    max-width: 320px;
    max-height: 80vh;
    background: var(--sidebar-bg);
    border: 1px solid var(--sidebar-border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 500;
    overflow: hidden;
    animation: flyoutIn var(--t-fast);
    display: flex;
    flex-direction: column;
}

@keyframes flyoutIn {
    from {
        opacity: 0;
        transform: translateX(-6px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-flyout-header {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--topbar-text-hi);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.sidebar-flyout-body {
    padding: 6px;
    overflow-y: auto;
    flex: 1;
}

.flyout-group {
    padding: 4px 0;
}

    .flyout-group:not(:last-child) {
        border-bottom: 1px dashed var(--sidebar-border);
        margin-bottom: 4px;
    }

.flyout-group-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    color: var(--sidebar-group-label);
    text-transform: uppercase;
    padding: 6px 10px 4px;
}

.flyout-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    color: var(--sidebar-text);
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), padding-left var(--t-fast);
    user-select: none;
}

    .flyout-item:hover {
        background: var(--sidebar-hover-bg);
        color: var(--topbar-text-hi);
        padding-left: 13px;
    }

    .flyout-item.is-active {
        background: var(--sidebar-active-bg);
        color: var(--sidebar-active-text);
        font-weight: 600;
    }

.flyout-item-icon {
    font-size: 12px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    opacity: .85;
}

/* Sidebar footer */
.sidebar-footer {
    flex-shrink: 0;
    padding: 10px 16px;
    border-top: 1px solid var(--sidebar-border);
    background: #f8fafc;
}

.sidebar-footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--sidebar-text-muted);
    font-weight: 500;
}

.status-dot-online {
    font-size: 8px !important;
    color: #22c55e !important;
}

.sidebar-footer-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-footer-copy {
    margin-top: 4px;
    font-size: 10px;
    color: var(--sidebar-text-muted);
    opacity: .7;
}

.afri-shell.is-sidebar-collapsed .sidebar-footer-text,
.afri-shell.is-sidebar-collapsed .sidebar-footer-copy {
    display: none;
}

.afri-shell.is-sidebar-collapsed .sidebar-footer {
    padding: 10px 0;
    text-align: center;
}

.afri-shell.is-sidebar-collapsed .sidebar-footer-item {
    justify-content: center;
}

/* ============================================================
   BODY
   ============================================================ */
.afri-body {
    flex: 1;
    overflow: auto;
    background: var(--body-bg);
    padding: 18px;
    min-width: 0;
}

.afri-body-inner {
    height: 100%;
    max-width: 100%;
}

.afri-body .rz-card {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: var(--shadow-sm) !important;
}

.afri-body .rz-data-grid {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden;
}

/* ============================================================
   RADZEN GLOBAL TOKEN OVERRIDES
   ============================================================ */
:root {
    --rz-primary: var(--accent);
    --rz-primary-darker: #1e40af;
    --rz-primary-lighter: var(--accent-light);
    --rz-base-background-color: #ffffff;
    --rz-text-color: #0f172a;
    --rz-border-radius: 8px;
}

/* ============================================================
   SCROLLBAR POLISH
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .afri-sidebar {
        position: fixed;
        top: var(--topbar-h);
        left: 0;
        bottom: 0;
        z-index: 150;
        box-shadow: var(--shadow-md);
    }

    .afri-shell.is-sidebar-collapsed .afri-sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-w);
    }

    .afri-body {
        width: 100%;
    }
}
