/* ============================================================
   FuelLedger — Control Room theme
   Injected via panel renderHook; no Node build required.
   ============================================================ */

/* Tabular figures everywhere numbers live — data aligns like a ledger */
.fi-wi-stats-overview-stat-value,
.fi-ta-text,
table.fi-ta-table td,
.fl-num {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

/* Stat cards: tighter, more deliberate, subtle lift */
.fi-wi-stats-overview-stat {
    border-radius: 0.85rem;
    transition: transform .15s ease, box-shadow .15s ease;
    border: 1px solid rgb(226 232 240 / 0.8);
}
.dark .fi-wi-stats-overview-stat {
    border-color: rgb(51 65 85 / 0.6);
}
.fi-wi-stats-overview-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgb(15 23 42 / 0.12);
}

/* Big confident metric numbers */
.fi-wi-stats-overview-stat-value {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* ---- Tank gauge (signature element) ---- */
.fl-tank-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.fl-tank {
    background: #fff;
    border: 1px solid rgb(226 232 240);
    border-radius: 0.85rem;
    padding: 1.1rem 1.25rem;
}
.dark .fl-tank {
    background: rgb(30 41 59);
    border-color: rgb(51 65 85);
}
.fl-tank-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.6rem;
}
.fl-tank-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgb(15 23 42);
}
.dark .fl-tank-name { color: rgb(226 232 240); }
.fl-tank-reg {
    font-size: 0.72rem;
    color: rgb(100 116 139);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.fl-tank-figs {
    text-align: right;
}
.fl-tank-now {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.fl-tank-cap {
    font-size: 0.72rem;
    color: rgb(100 116 139);
    font-variant-numeric: tabular-nums;
}
.fl-bar {
    position: relative;
    height: 0.7rem;
    background: rgb(241 245 249);
    border-radius: 999px;
    overflow: hidden;
}
.dark .fl-bar { background: rgb(51 65 85); }
.fl-bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 999px;
    transition: width .6s cubic-bezier(.4,0,.2,1);
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
}
.fl-bar-fill[data-state="warning"] { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.fl-bar-fill[data-state="danger"]  { background: linear-gradient(90deg, #fb7185, #e11d48); }
.fl-bar-pct {
    display:flex; justify-content:space-between;
    margin-top:0.4rem;
    font-size:0.7rem; font-weight:500; color: rgb(100 116 139);
    font-variant-numeric: tabular-nums;
}

/* Section eyebrow above widget groups */
.fl-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgb(100 116 139);
    margin: 0.25rem 0 0.85rem;
    display:flex; align-items:center; gap:0.5rem;
}
.fl-eyebrow::before {
    content:""; width: 1.5rem; height: 2px; background: #f59e0b; border-radius: 2px;
}

/* Sidebar: a touch more contrast on the brand */
.fi-sidebar-header { border-bottom: 1px solid rgb(226 232 240 / .6); }
.dark .fi-sidebar-header { border-color: rgb(51 65 85 / .6); }

/* Top accent band on the topbar */
.fi-topbar { border-top: 3px solid #f59e0b; }

/* Login page polish */
.fi-simple-layout { background:
    radial-gradient(1200px 500px at 50% -10%, rgb(29 78 216 / 0.08), transparent),
    rgb(248 250 252); }
.dark .fi-simple-layout { background:
    radial-gradient(1200px 500px at 50% -10%, rgb(29 78 216 / 0.18), transparent),
    rgb(15 23 42); }
.fi-simple-main {
    border-radius: 1rem;
    box-shadow: 0 20px 50px -12px rgb(15 23 42 / 0.18);
    border: 1px solid rgb(226 232 240 / .8);
}
.dark .fi-simple-main { border-color: rgb(51 65 85 / .6); }

/* ============================================================
   Sidebar identity — deep navy strip with amber active accent
   ============================================================ */
.fi-sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
    border-right: 1px solid rgb(15 23 42 / 0.8) !important;
}
.fi-sidebar .fi-sidebar-header {
    background: transparent !important;
    border-bottom: 1px solid rgb(255 255 255 / 0.08) !important;
}
/* Brand text light on the dark strip */
.fi-sidebar .fi-logo,
.fi-sidebar .fi-sidebar-header span {
    color: #ffffff !important;
}
/* Group labels (Master Data, Operations…) */
.fi-sidebar .fi-sidebar-group-label {
    color: rgb(148 163 184) !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.68rem;
}
/* Nav items: muted light by default */
.fi-sidebar .fi-sidebar-item-button {
    color: rgb(203 213 225) !important;
    border-radius: 0.55rem;
}
.fi-sidebar .fi-sidebar-item-button .fi-sidebar-item-icon {
    color: rgb(148 163 184) !important;
}
/* Hover */
.fi-sidebar .fi-sidebar-item-button:hover {
    background: rgb(255 255 255 / 0.06) !important;
    color: #ffffff !important;
}
.fi-sidebar .fi-sidebar-item-button:hover .fi-sidebar-item-icon {
    color: #ffffff !important;
}
/* Active item: amber accent bar + tinted background */
.fi-sidebar .fi-sidebar-item.fi-active .fi-sidebar-item-button,
.fi-sidebar .fi-sidebar-item-active .fi-sidebar-item-button {
    background: rgb(245 158 11 / 0.14) !important;
    color: #ffffff !important;
    box-shadow: inset 3px 0 0 #f59e0b;
}
.fi-sidebar .fi-sidebar-item.fi-active .fi-sidebar-item-icon,
.fi-sidebar .fi-sidebar-item-active .fi-sidebar-item-icon {
    color: #f59e0b !important;
}

/* ============================================================
   Responsiveness — operators are on phones
   ============================================================ */
/* Tank gauges already auto-fit; tighten on small screens */
@media (max-width: 640px) {
    .fl-tank-wrap {
        grid-template-columns: 1fr !important;
    }
    .fl-tank { padding: 0.9rem 1rem; }
    .fl-tank-now { font-size: 1.15rem; }
    .fi-wi-stats-overview-stat-value { font-size: 1.5rem; }
    /* KPI cards stack to single column */
    .fi-wi-stats-overview .grid {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 1024px) {
    /* Two-up KPIs on tablets */
    .fi-wi-stats-overview .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* Charts and tables never overflow horizontally */
.fi-wi canvas { max-width: 100% !important; height: auto !important; }
.fi-ta-table-wrp { overflow-x: auto; }

/* ============================================================

/* Content padding scales down on phones so cards aren't edge-to-edge cramped */
@media (max-width: 640px) {
    .fi-main {
        padding: 1rem !important;
    }
    .fi-page {
        gap: 1rem !important;
    }
}

