/*
 * B24 admin theme (design: "New folder/admin" screenshots).
 * Navy sidebar with the white B24 logo, white top bar, light grey canvas, soft white cards,
 * B24 blue for actions, red for alerts. Plain CSS over Filament's fi-* classes: no build step,
 * so it deploys as-is to shared hosting.
 */
:root {
    --b24-navy: #073349;
    --b24-navy-2: #0a3a52;
    --b24-blue: #29a9e0;
    --b24-blue-dark: #1b86b8;
    --b24-blue-soft: #e6f5fc;
    --b24-red: #e8252a;
    --b24-canvas: #f4f5f7;
    --b24-card: #ffffff;
    --b24-border: #e9ecf1;
    --b24-text: #111827;
    --b24-muted: #6b7280;
    --b24-radius: 16px;
}

/* ---------- Canvas ---------- */
.fi-body,
.fi-main-ctn {
    background: var(--b24-canvas);
}

/* ---------- Sidebar ---------- */
.fi-sidebar {
    background: linear-gradient(180deg, var(--b24-navy-2) 0%, var(--b24-navy) 100%) !important;
    border-right: none !important;
}
.fi-sidebar-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    min-height: 88px;
}
.fi-sidebar-group-label,
.fi-sidebar-group-btn .fi-sidebar-group-label {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem !important;
}
.fi-sidebar-group-collapse-btn {
    color: rgba(255, 255, 255, 0.55) !important;
}
.fi-sidebar-item-btn {
    border-radius: 10px !important;
}
.fi-sidebar-item-label {
    color: rgba(255, 255, 255, 0.72) !important;
    font-weight: 500 !important;
}
.fi-sidebar-item-btn > svg,
.fi-sidebar-item-btn .fi-icon {
    color: rgba(255, 255, 255, 0.6) !important;
}
.fi-sidebar-item-btn:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background: rgba(255, 255, 255, 0.09) !important;
}
.fi-sidebar-item.fi-active .fi-sidebar-item-label {
    color: #ffffff !important;
    font-weight: 600 !important;
}
.fi-sidebar-item.fi-active .fi-sidebar-item-btn > svg,
.fi-sidebar-item.fi-active .fi-sidebar-item-btn .fi-icon {
    color: var(--b24-blue) !important;
}
/* Count badges (e.g. orders) in the brand red, as in the design */
.fi-sidebar-item-badge-ctn .fi-badge {
    background: rgba(232, 37, 42, 0.18) !important;
    color: #ff6b6f !important;
    --tw-ring-color: transparent !important;
}
.fi-sidebar-footer {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}
.fi-sidebar .fi-sidebar-close-collapse-sidebar-btn,
.fi-sidebar .fi-sidebar-open-collapse-sidebar-btn,
.fi-sidebar .fi-icon-btn {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ---------- Top bar ---------- */
.fi-topbar {
    background: #ffffff !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--b24-border) !important;
    min-height: 88px;
}
.b24-topbar-greeting {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    margin-right: 2rem;
}
.b24-topbar-greeting strong {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--b24-text);
}
.b24-topbar-greeting span {
    font-size: 0.85rem;
    color: var(--b24-muted);
}
.fi-global-search .fi-input-wrp {
    background: var(--b24-canvas) !important;
    border-radius: 12px !important;
    --tw-ring-color: transparent !important;
    min-width: 22rem;
}
.b24-topbar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--b24-text);
}
.b24-topbar-icon:hover {
    background: var(--b24-canvas);
}
@media (max-width: 1023px) {
    .b24-topbar-greeting {
        display: none;
    }
    .fi-global-search .fi-input-wrp {
        min-width: 0;
    }
}

/* ---------- Page headers ---------- */
.fi-header-heading {
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}
.fi-header-subheading {
    color: var(--b24-muted) !important;
}

/* ---------- Cards, sections, tables ---------- */
.fi-section,
.fi-ta-ctn,
.fi-wi-chart,
.fi-wi-widget {
    border-radius: var(--b24-radius) !important;
    box-shadow: none !important;
    --tw-ring-color: var(--b24-border) !important;
}
.fi-ta-header-cell {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.75rem !important;
    color: var(--b24-muted) !important;
}
.fi-tabs {
    box-shadow: none !important;
    --tw-ring-color: var(--b24-border) !important;
}
.fi-btn {
    border-radius: 10px !important;
}

/* ---------- B24 stat cards (widget: StatCards) ---------- */
.b24-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.b24-stat {
    position: relative;
    background: var(--b24-card);
    border: 1px solid var(--b24-border);
    border-radius: var(--b24-radius);
    padding: 1.1rem 1.2rem;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.b24-stat-highlight {
    background: var(--b24-blue);
    border-color: var(--b24-blue);
    color: #ffffff;
}
.b24-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--b24-muted);
}
.b24-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--b24-text);
    margin-top: 0.35rem;
}
.b24-stat-hint {
    font-size: 0.75rem;
    margin-top: 0.4rem;
    color: var(--b24-muted);
}
.b24-stat-hint.good { color: #16a34a; }
.b24-stat-hint.warn { color: #d97706; }
.b24-stat-hint.bad { color: var(--b24-red); }
.b24-stat-highlight .b24-stat-label,
.b24-stat-highlight .b24-stat-value,
.b24-stat-highlight .b24-stat-hint {
    color: #ffffff;
}
.b24-stat-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.b24-stat-icon svg { width: 16px; height: 16px; }
.b24-tone-blue { background: var(--b24-blue-soft); color: var(--b24-blue-dark); }
.b24-tone-green { background: #dcfce7; color: #16a34a; }
.b24-tone-orange { background: #ffedd5; color: #ea580c; }
.b24-tone-red { background: #fee2e2; color: var(--b24-red); }
.b24-tone-purple { background: #f3e8ff; color: #9333ea; }
.b24-stat-highlight .b24-stat-icon { background: rgba(255, 255, 255, 0.22); color: #ffffff; }

/* ---------- Panels (map, top riders, channels, accounts) ---------- */
.b24-panel {
    background: var(--b24-card);
    border: 1px solid var(--b24-border);
    border-radius: var(--b24-radius);
    overflow: hidden;
}
.b24-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
}
.b24-panel-title { font-size: 1.05rem; font-weight: 700; color: var(--b24-text); }
.b24-panel-sub { font-size: 0.78rem; color: var(--b24-muted); margin-top: 2px; }
.b24-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 4px 12px;
    white-space: nowrap;
}
.b24-pill-green { background: #dcfce7; color: #16a34a; }
.b24-pill-red { background: #fee2e2; color: var(--b24-red); }
.b24-pill-blue { background: var(--b24-blue-soft); color: var(--b24-blue-dark); }
.b24-pill-orange { background: #ffedd5; color: #ea580c; }
.b24-pill-grey { background: #f1f5f9; color: var(--b24-muted); }
.b24-pill-active { background: var(--b24-blue); color: #ffffff; }
.b24-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.b24-map { height: 300px; background: #e5e7eb; }
.b24-map-tall { height: 380px; }
.b24-legend {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.78rem;
    color: var(--b24-text);
    border-top: 1px solid var(--b24-border);
}
.b24-list-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.25rem;
    border-top: 1px solid var(--b24-border);
}
.b24-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--b24-blue);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    overflow: hidden;
}
.b24-avatar img { width: 100%; height: 100%; object-fit: cover; }
.b24-muted { color: var(--b24-muted); font-size: 0.78rem; }
.b24-strong { font-weight: 600; color: var(--b24-text); }
.b24-empty { padding: 2rem 1.25rem; text-align: center; color: var(--b24-muted); font-size: 0.85rem; }

/* ---------- Card grids (riders, shops) ---------- */
.b24-card {
    padding: 1rem;
}
.b24-card-top { display: flex; align-items: center; gap: 0.75rem; }
.b24-card-name { font-weight: 700; color: var(--b24-text); font-size: 0.95rem; }
.b24-card-sub { color: var(--b24-muted); font-size: 0.75rem; }
.b24-card-online { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; }
.b24-minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 0.9rem; }
.b24-mini { background: #f6f7f9; border-radius: 10px; padding: 0.55rem 0.3rem; text-align: center; }
.b24-mini strong { display: block; font-size: 1rem; color: var(--b24-text); }
.b24-mini span { font-size: 0.68rem; color: var(--b24-muted); }
.b24-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.9rem; }
.b24-link-red { color: var(--b24-red); font-size: 0.75rem; font-weight: 600; }
.b24-btn-outline {
    display: block;
    text-align: center;
    margin-top: 0.9rem;
    padding: 0.55rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--b24-text);
}

/* ---------- Revenue by channel ---------- */
.b24-channel { padding: 0.55rem 1.25rem; }
.b24-channel-row { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--b24-text); }
.b24-channel-bar { height: 5px; border-radius: 999px; background: #eef0f3; margin-top: 6px; overflow: hidden; }
.b24-channel-bar span { display: block; height: 100%; border-radius: 999px; }

/* ---------- Login (split screen) ---------- */
.fi-simple-layout:has(.b24-login-aside) {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    min-height: 100vh;
    background: var(--b24-canvas);
}
.b24-login-aside {
    background: radial-gradient(circle at 70% 18%, #0d4f73 0%, transparent 45%), linear-gradient(160deg, #0a3f5b 0%, #062a3d 100%);
    color: #ffffff;
    padding: 4rem 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.b24-login-aside img { width: 150px; margin-bottom: 3.5rem; }
.b24-login-aside h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 2rem;
}
.b24-login-aside p { color: rgba(255, 255, 255, 0.62); font-size: 1.1rem; line-height: 1.8; max-width: 32rem; }
.b24-login-aside ul { list-style: none; padding: 0; margin: 2.5rem 0 0; }
.b24-login-aside li { position: relative; padding-left: 1.4rem; margin-bottom: 0.95rem; color: rgba(255, 255, 255, 0.6); }
.b24-login-aside li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--b24-blue); }
.b24-login-aside li strong { color: #ffffff; font-weight: 600; }
.fi-simple-layout:has(.b24-login-aside) .fi-simple-main-ctn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.fi-simple-layout:has(.b24-login-aside) .fi-simple-main {
    border-radius: 24px !important;
    box-shadow: 0 10px 40px rgba(7, 51, 73, 0.08) !important;
    --tw-ring-color: transparent !important;
    padding: 2.5rem !important;
    width: 100%;
    max-width: 34rem;
}
.fi-simple-layout:has(.b24-login-aside) .fi-simple-header-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem !important;
    text-align: left;
}
.fi-simple-layout:has(.b24-login-aside) .fi-simple-header-subheading { text-align: left; }
.fi-simple-layout:has(.b24-login-aside) .fi-simple-header { align-items: flex-start; }
.fi-simple-layout:has(.b24-login-aside) .fi-logo { display: none !important; }
.b24-login-pill {
    display: table !important;
    background: var(--b24-blue-soft);
    color: var(--b24-blue-dark);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    border-radius: 999px;
    padding: 6px 16px;
    margin-bottom: 0.5rem;
}
.b24-login-back { display: block; text-align: center; margin-top: 1.5rem; color: var(--b24-navy); font-weight: 500; }
@media (max-width: 1023px) {
    .fi-simple-layout:has(.b24-login-aside) { grid-template-columns: 1fr; }
    .b24-login-aside { display: none; }
}

/* ---------- Simple design tables (dashboard widgets, deliveries) ---------- */
.b24-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.b24-table th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--b24-muted);
    background: #f8f9fb;
    padding: 0.7rem 1.25rem;
    white-space: nowrap;
}
.b24-table td { padding: 0.8rem 1.25rem; border-top: 1px solid var(--b24-border); color: var(--b24-text); white-space: nowrap; }
.b24-table tbody tr { cursor: pointer; }
.b24-table tbody tr:hover td { background: #fafbfc; }
.b24-order-no { color: var(--b24-blue); font-weight: 600; }

/* ---------- Weekly deliveries bars ---------- */
.b24-bars { height: 180px; display: flex; align-items: flex-end; gap: 8px; padding: 0.5rem 1.25rem 0; }
.b24-bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; text-align: center; }
.b24-bar { background: #fde2e3; border-radius: 6px 6px 0 0; }
.b24-bar-top { background: var(--b24-red); }
.b24-bar-col span { font-size: 0.7rem; color: var(--b24-muted); margin-top: 6px; }
.b24-bar-totals { display: flex; justify-content: space-between; gap: 0.5rem; padding: 1rem 1.25rem 1.1rem; }
.b24-bar-totals strong { display: block; font-size: 1.15rem; color: var(--b24-text); }
.b24-bar-totals span { font-size: 0.7rem; color: var(--b24-muted); }

/* ---------- Desktop: the top bar's left end continues the navy sidebar, logo on navy ---------- */
@media (min-width: 1024px) {
    .fi-topbar {
        background: linear-gradient(90deg, var(--b24-navy-2) 0, var(--b24-navy-2) 17rem, #ffffff 17rem) !important;
    }
    .fi-topbar-start { width: calc(17rem - 1rem); }
    .b24-topbar-greeting {
        position: absolute;
        left: calc(17rem + 2rem);
        top: 50%;
        transform: translateY(-50%);
    }
    .fi-sidebar { background: var(--b24-navy-2) !important; }
}

/* Stat cards: six in a row on wide screens */
@media (min-width: 1280px) {
    .b24-stats-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .b24-stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.b24-stats-6 .b24-stat-value { font-size: 1.75rem; }
.b24-login-aside { min-height: 100vh; }
.b24-stat-label { padding-right: 2.2rem; }
/* Leaflet panes use z-index 400+; keep them under the sticky top bar */
.b24-map { position: relative; z-index: 0; }
.b24-table th, .b24-table td { padding-left: 0.8rem; padding-right: 0.8rem; }
.b24-table th:first-child, .b24-table td:first-child { padding-left: 1.25rem; }
.b24-table td.b24-wrap { white-space: normal; min-width: 8rem; }

/* ---------- List-page tabs as a left-aligned underline bar (design) ---------- */
.fi-resource-list-records-page .fi-tabs {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #d9dde3;
    margin-inline: 0 !important;
    max-width: none !important;
    width: 100%;
    justify-content: flex-start;
    padding: 0 !important;
    gap: 1.5rem;
}
.fi-resource-list-records-page .fi-tabs-item {
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0.75rem 0.25rem !important;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.fi-resource-list-records-page .fi-tabs-item.fi-active {
    border-bottom-color: var(--b24-blue);
}
.fi-resource-list-records-page .fi-tabs-item.fi-active .fi-tabs-item-label { color: var(--b24-blue) !important; }

/* ---------- Card grids (riders, shops): Filament's grid cards as design cards ---------- */
.fi-ta-content-grid { background: transparent !important; gap: 1rem !important; padding: 0 !important; }
.fi-ta-ctn:has(.fi-ta-content-grid) { background: transparent !important; box-shadow: none !important; --tw-ring-color: transparent !important; }
.fi-ta-content-grid .fi-ta-record {
    background: #ffffff !important;
    border: 1px solid var(--b24-border);
    border-radius: var(--b24-radius) !important;
    box-shadow: none !important;
    --tw-ring-color: transparent !important;
    padding: 0 !important;
}
.fi-ta-content-grid .fi-ta-record:hover { border-color: var(--b24-blue); }
.fi-ta-content-grid .fi-ta-record-content-ctn,
.fi-ta-content-grid .fi-ta-record-content { padding: 0 !important; width: 100%; }
.fi-ta-content-grid .fi-ta-record .fi-ta-actions:empty { display: none; }

/* ---------- Payments ---------- */
.b24-two-col { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .b24-two-col { grid-template-columns: 1.6fr 1fr; } }
.b24-account-box { background: #f6f7f9; border-radius: 12px; margin: 0 1.25rem 0.75rem; padding: 0.9rem 1rem; }
.b24-account-title { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--b24-muted); margin-bottom: 0.4rem; }
.b24-account-line { font-size: 0.82rem; color: var(--b24-text); padding: 2px 0; }

/* Solid brand-red buttons with white text (Filament picks a pale shade for this red) */
.fi-btn.fi-color-danger[class*="fi-bg-color-"]:not(.fi-outlined) { background: var(--b24-red) !important; color: #ffffff !important; }
.fi-btn.fi-color-danger[class*="fi-bg-color-"]:not(.fi-outlined):hover { background: #c81e23 !important; }
.fi-btn.fi-color-danger[class*="fi-bg-color-"]:not(.fi-outlined) .fi-icon { color: #ffffff !important; }

/* Sold-out stock cell on the products table */
.b24-sold-out input { color: var(--b24-red) !important; font-weight: 700; }
.b24-sold-out .fi-input-wrp { --tw-ring-color: var(--b24-red) !important; background: #fef2f2 !important; }

/* ---------- Collapsible sidebar (desktop) ---------- */
/* Collapse / expand arrows sit on the navy part of the top bar */
.fi-topbar-collapse-sidebar-btn-ctn .fi-icon-btn,
.fi-topbar-collapse-sidebar-btn-ctn .fi-icon-btn .fi-icon { color: rgba(255, 255, 255, 0.85) !important; }
.fi-topbar-collapse-sidebar-btn-ctn .fi-icon-btn:hover { background: rgba(255, 255, 255, 0.1) !important; }
@media (min-width: 1024px) {
    /* Collapsed: icons-only navy rail (5rem), no logo, greeting moves left */
    .fi-body:has(.fi-main-ctn:not(.fi-main-ctn-sidebar-open)) .fi-topbar {
        background: linear-gradient(90deg, var(--b24-navy-2) 0, var(--b24-navy-2) 5rem, #ffffff 5rem) !important;
    }
    .fi-body:has(.fi-main-ctn:not(.fi-main-ctn-sidebar-open)) .fi-topbar-start { width: 4rem; }
    .fi-body:has(.fi-main-ctn:not(.fi-main-ctn-sidebar-open)) .fi-topbar-start .fi-logo { display: none !important; }
    .fi-body:has(.fi-main-ctn:not(.fi-main-ctn-sidebar-open)) .b24-topbar-greeting { left: 7rem; }
    .fi-sidebar,
    .fi-topbar,
    .b24-topbar-greeting { transition: width 0.2s, left 0.2s, background 0.2s; }
}

/* ---------- Map picker (shop location) ---------- */
.b24-picker { position: relative; }
.b24-picker-search { position: relative; margin-bottom: 0.6rem; z-index: 5; }
.b24-picker-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    font-size: 0.875rem;
    background: #ffffff;
}
.b24-picker-input:focus { outline: 2px solid var(--b24-blue); outline-offset: 0; border-color: var(--b24-blue); }
.b24-picker-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: #ffffff;
    border: 1px solid var(--b24-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(7, 51, 73, 0.12);
    max-height: 260px;
    overflow-y: auto;
    margin: 0;
    padding: 4px;
    list-style: none;
}
.b24-picker-results button { display: block; width: 100%; text-align: left; padding: 0.55rem 0.7rem; border-radius: 8px; }
.b24-picker-results button:hover { background: var(--b24-blue-soft); }
.b24-picker-results strong { display: block; font-size: 0.85rem; color: var(--b24-text); }
.b24-picker-results span { display: block; font-size: 0.75rem; color: var(--b24-muted); }
.b24-picker-map { height: 340px; border-radius: 12px; border: 1px solid var(--b24-border); position: relative; z-index: 0; }
.b24-picker-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.8rem; color: var(--b24-text); }
.b24-picker-hint { font-size: 0.75rem; color: var(--b24-muted); margin-top: 0.3rem; }

/* ---------- Scrollbars: thin and rounded, light on the canvas, translucent white on the navy sidebar ---------- */
/* Chrome, Edge, Safari */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background-color: #c9ced6;
    border-radius: 999px;
    border: 3px solid transparent; /* inset look: the thumb floats inside the track */
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background-color: #9aa3af; }
::-webkit-scrollbar-corner { background: transparent; }

/* Sidebar: barely there until the pointer is over the menu */
.fi-sidebar ::-webkit-scrollbar { width: 8px; }
.fi-sidebar ::-webkit-scrollbar-thumb { background-color: transparent; }
.fi-sidebar:hover ::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, 0.22); }
.fi-sidebar ::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, 0.4); }

/* Wide tables: a slimmer horizontal bar */
.fi-ta-content ::-webkit-scrollbar,
.fi-ta-content::-webkit-scrollbar { height: 8px; }

/* Firefox (it ignores the rules above) */
@supports (-moz-appearance: none) {
    * { scrollbar-width: thin; scrollbar-color: #c9ced6 transparent; }
    .fi-sidebar, .fi-sidebar * { scrollbar-color: transparent transparent; }
    .fi-sidebar:hover, .fi-sidebar:hover * { scrollbar-color: rgba(255, 255, 255, 0.25) transparent; }
}

/* "‹ Back to …" link on inner pages */
.b24-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--b24-blue-dark);
    padding: 6px 12px 6px 8px;
    margin-bottom: 0.5rem;
    border-radius: 999px;
    background: var(--b24-blue-soft);
    width: fit-content;
}
.b24-back:hover { background: #d3edf9; color: var(--b24-navy); }
.b24-back-icon { width: 18px; height: 18px; }

/* Person cell: photo or initials next to the name */
.b24-person { display: flex; align-items: center; gap: 0.75rem; }
.b24-avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; }
.b24-avatar a { display: block; width: 100%; height: 100%; }

/* ---------- Reports & Analytics ---------- */
.b24-table-static tbody tr { cursor: default; }
.b24-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--b24-muted);
    font-weight: 700;
    font-size: 0.8rem;
}
.b24-rank-top { background: var(--b24-blue); color: #ffffff; }
@media (min-width: 1024px) {
    .b24-stats-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
