/* Lexus Trading Limited – Storeroom. Official colours: blue and white (SRS §2.0). */
:root {
    --lx-blue: #0B4EA2;
    --lx-blue-dark: #083A7A;
    --lx-blue-soft: #E8F0FB;
}

/* Brand block */
.lx-brand { display: flex; align-items: center; gap: .625rem; color: var(--lx-blue-dark); }
.lx-mark { width: 2.25rem; height: 2.25rem; flex: none; }
.lx-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.lx-brand-name { font-weight: 700; font-size: .95rem; letter-spacing: -.01em; }
.lx-brand-sub { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; opacity: .75; }

/* White workspace */
.fi-body { background: #F5F8FC; }
.fi-topbar > nav { background: #fff; box-shadow: inset 0 -1px 0 #DCE6F3; }

/* Blue sidebar */
.fi-sidebar { background: var(--lx-blue); }
.fi-sidebar-header { background: var(--lx-blue-dark); box-shadow: none !important; --tw-ring-shadow: 0 0 #0000 !important; }
.fi-sidebar .lx-brand { color: #fff; }
.fi-sidebar .lx-mark rect:first-child { fill: #fff; }
.fi-sidebar .lx-mark text { fill: var(--lx-blue); }
.fi-sidebar .lx-mark rect:nth-child(2) { stroke: var(--lx-blue); stroke-opacity: .25; }
.fi-sidebar-header button,
.fi-sidebar-header .fi-icon-btn { color: rgba(255,255,255,.8) !important; }
.fi-sidebar-group-label { color: rgba(255,255,255,.6) !important; letter-spacing: .06em; text-transform: uppercase; font-size: .7rem; }
.fi-sidebar-group-button .fi-icon-btn, .fi-sidebar-group-collapse-button { color: rgba(255,255,255,.55) !important; }
.fi-sidebar-item-button .fi-sidebar-item-label { color: rgba(255,255,255,.88) !important; }
.fi-sidebar-item-button .fi-sidebar-item-icon { color: rgba(255,255,255,.65) !important; }
.fi-sidebar-item-button:hover, .fi-sidebar-item-button:focus-visible { background: rgba(255,255,255,.1) !important; }
.fi-sidebar-item-active .fi-sidebar-item-button { background: #fff !important; }
.fi-sidebar-item-active .fi-sidebar-item-label,
.fi-sidebar-item-active .fi-sidebar-item-icon { color: var(--lx-blue) !important; }

/* Page headings and section headers in brand blue */
.fi-header-heading { color: var(--lx-blue-dark); }
.fi-section-header-heading { color: var(--lx-blue-dark); }
.fi-ta-header-cell { background: var(--lx-blue-soft); }
.fi-ta-header-cell-label { color: var(--lx-blue-dark); }

/* Login: blue backdrop, white card */
.fi-simple-layout { background: linear-gradient(160deg, var(--lx-blue) 0%, var(--lx-blue-dark) 100%); }
.fi-simple-main { box-shadow: 0 20px 50px -12px rgba(3, 25, 60, .45) !important; }
.fi-simple-header .fi-logo { height: auto !important; margin-bottom: .75rem; }
.fi-simple-header .lx-brand { flex-direction: column; text-align: center; gap: .5rem; }
.fi-simple-header .lx-mark { width: 3rem; height: 3rem; }
.fi-simple-header .lx-brand-name { font-size: 1.15rem; }

/* ---------- Reports ---------- */
.lx-rep-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .lx-rep-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lx-rep-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem 1.5rem; background: #fff; border: 1px solid rgb(229 231 235); border-radius: .75rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: border-color .15s, box-shadow .15s; }
.lx-rep-card:hover, .lx-rep-card:focus-visible { border-color: var(--lx-blue); box-shadow: 0 4px 14px -6px rgba(11,78,162,.35); }
.lx-rep-card-title { font-weight: 700; font-size: 1.05rem; color: rgb(17 24 39); }
.lx-rep-card-desc { font-size: .875rem; color: rgb(107 114 128); }
.lx-rep-card-link { margin-top: .5rem; font-size: .875rem; font-weight: 600; color: var(--lx-blue); }

.lx-rep-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.lx-rep-period { margin-top: .25rem; color: rgb(107 114 128); font-size: .95rem; }
.lx-rep-header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.lx-rep-back { font-size: .875rem; font-weight: 600; color: var(--lx-blue); margin-right: .25rem; }
.lx-rep-back:hover { text-decoration: underline; }

.lx-rep-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; padding: 1rem 1.25rem; background: #fff; border: 1px solid rgb(229 231 235); border-radius: .75rem; }
.lx-rep-field { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 600; color: rgb(75 85 99); min-width: 9.5rem; }
.lx-rep-toggle { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: rgb(55 65 81); padding-bottom: .55rem; }
.lx-rep-quick { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .875rem; color: rgb(107 114 128); padding-bottom: .55rem; }
.lx-rep-quick-link { color: var(--lx-blue); font-weight: 500; }
.lx-rep-quick-link:hover { text-decoration: underline; }
.lx-rep-quick-link.is-active { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.lx-rep-stats { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .lx-rep-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lx-rep-stat { padding: 1rem 1.25rem; background: #fff; border: 1px solid rgb(229 231 235); border-radius: .75rem; }
.lx-rep-stat-label { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgb(107 114 128); }
.lx-rep-stat-value { margin-top: .35rem; font-size: 1.6rem; font-weight: 700; color: rgb(17 24 39); font-variant-numeric: tabular-nums; }

.lx-rep-table-wrap { overflow-x: auto; background: #fff; border: 1px solid rgb(229 231 235); border-radius: .75rem; transition: opacity .15s; }
.lx-rep-loading { opacity: .55; }
.lx-rep-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.lx-rep-table th { padding: .7rem .9rem; text-align: left; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgb(107 114 128); background: rgb(249 250 251); border-bottom: 1px solid rgb(229 231 235); white-space: nowrap; }
.lx-rep-table td { padding: .6rem .9rem; border-bottom: 1px solid rgb(243 244 246); vertical-align: top; color: rgb(17 24 39); }
.lx-rep-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lx-rep-table tfoot td { font-weight: 700; border-top: 2px solid rgb(209 213 219); border-bottom: 0; background: rgb(249 250 251); }
.lx-rep-sub { display: block; font-size: .75rem; color: rgb(107 114 128); font-weight: 400; }
.lx-rep-empty { text-align: center; color: rgb(107 114 128); padding: 2rem !important; }
.lx-tone-success { color: rgb(21 128 61); font-weight: 600; }
.lx-tone-warning { color: rgb(180 83 9); font-weight: 600; }
.lx-tone-danger { color: rgb(185 28 28); font-weight: 600; }
.lx-tone-muted { color: rgb(107 114 128); }
.lx-rep-notes { list-style: disc; padding-left: 1.25rem; font-size: .8rem; color: rgb(107 114 128); display: grid; gap: .2rem; }

.dark .lx-rep-card, .dark .lx-rep-filters, .dark .lx-rep-stat, .dark .lx-rep-table-wrap { background: rgb(24 24 27); border-color: rgba(255,255,255,.1); }
.dark .lx-rep-card-title, .dark .lx-rep-stat-value, .dark .lx-rep-table td { color: #fff; }
.dark .lx-rep-table th, .dark .lx-rep-table tfoot td { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.dark .lx-rep-table td { border-color: rgba(255,255,255,.06); }
.dark .lx-rep-field, .dark .lx-rep-toggle { color: rgb(209 213 219); }
