/* ═══════════════════════════════════════════════════════════════════
   SOLIT INTERNATIONAL — Sales & Collection Console
   Theme: "Ink & Brass" — banking-grade, calm, premium
   assets/css/style.css
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand — ink navy + brass */
  --ink-900: #0B1730;
  --ink-800: #102043;
  --ink-700: #16294F;
  --primary: #1E3A6E;          /* deep navy — primary action */
  --primary-dark: #162C55;
  --primary-mid: #2C4E8A;
  --primary-light: #EDF1F8;    /* navy tint */
  --brass: #B98A2F;            /* signature accent — use sparingly */
  --brass-light: #D4A843;
  --brass-tint: #F6EFDD;

  /* Status — slightly desaturated, premium */
  --success: #0E9F6E;
  --warning: #C77E12;
  --danger:  #C0392B;
  --info:    #2563EB;

  /* Surfaces & text */
  --bg: #F4F5F8;
  --card: #FFFFFF;
  --sidebar-bg: linear-gradient(180deg, #0B1730 0%, #102043 100%);
  --sidebar-text: #9FB0CC;
  --sidebar-active-bg: rgba(212,168,67,0.10);
  --sidebar-active-text: #F0D9A2;
  --sidebar-border: #1B2C52;
  --text: #16213A;
  --text-light: #5B6478;
  --text-hint: #8A93A8;
  --border: #E3E7EF;
  --border-inner: #EEF1F6;

  --shadow: 0 1px 2px rgba(13,23,51,0.05), 0 1px 3px rgba(13,23,51,0.06);
  --shadow-lg: 0 8px 24px rgba(13,23,51,0.10), 0 2px 6px rgba(13,23,51,0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 236px;

  --font-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 14.5px;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.015em; color: var(--text); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 4px; }

/* Premium scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #C7CEDB; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #A8B2C4; }

/* ─── APP LAYOUT ─────────────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }

/* SIGNATURE: ink-dark sidebar with brass active rail */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh;
  overflow-y: auto; z-index: 100; transition: transform 0.28s ease;
  box-shadow: 4px 0 24px rgba(11,23,48,0.18);
}
.sidebar::-webkit-scrollbar-thumb { background: #2A3D66; border-color: transparent; }

.sidebar-header {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sidebar-logo {
  display: flex; align-items: center; gap: 11px;
  font-size: 1.05rem; font-weight: 700; color: #fff;
}
.sidebar-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(140deg, var(--brass-light), var(--brass) 70%);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-900); font-size: 1rem; flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(185,138,47,0.45), inset 0 1px 0 rgba(255,255,255,0.35);
}
.sidebar-logo-text { line-height: 1.2; }
.sidebar-logo-title {
  display: block; font-family: var(--font-display);
  font-weight: 800; color: #FFFFFF; font-size: .92rem; letter-spacing: .01em;
}
.sidebar-logo-sub {
  display: block; font-size: .62rem; color: var(--brass-light);
  margin-top: 2px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600;
}

.sidebar-nav { flex: 1; padding: 12px 12px; display: flex; flex-direction: column; gap: 2px; }

.nav-section-label {
  font-size: .58rem; font-weight: 700; color: #5E6F92;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 12px 10px 5px; margin-top: 4px;
}

.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px;
  border-radius: var(--radius-sm); color: var(--sidebar-text);
  text-decoration: none; font-size: .82rem; font-weight: 500;
  transition: background .15s, color .15s; position: relative;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: #E7EDF7; }
.nav-item.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
  font-weight: 600;
}
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 18%; bottom: 18%;
  width: 3px; background: linear-gradient(180deg, var(--brass-light), var(--brass));
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px rgba(212,168,67,0.6);
}
.nav-icon { font-size: .95rem; width: 20px; text-align: center; flex-shrink: 0; }
.nav-divider { border-color: rgba(255,255,255,0.07); margin: 6px 0; }

/* ── "Other Operations" collapsible dropdown ── */
.nav-dropdown { margin-top: 10px; }
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 12px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  color: var(--sidebar-text); font-size: .82rem; font-weight: 600;
  cursor: pointer; text-align: left; transition: background .15s, color .15s;
}
.nav-dropdown-toggle:hover { background: rgba(255,255,255,0.07); color: #E7EDF7; }
.nav-dropdown-toggle.open { background: var(--sidebar-active-bg); color: var(--sidebar-active-text); }
.nav-dropdown-toggle .nav-label { flex: 1; }
.nav-dropdown-arrow {
  font-size: .7rem; transition: transform .2s; flex-shrink: 0; opacity: .8;
}
.nav-dropdown-toggle.open .nav-dropdown-arrow { transform: rotate(180deg); }
.nav-dropdown-panel {
  display: none; flex-direction: column; gap: 2px;
  margin-top: 4px; padding-left: 6px;
  border-left: 1.5px solid rgba(255,255,255,0.08);
  margin-left: 14px;
}
.nav-dropdown-panel.open { display: flex; }

.sidebar-footer {
  padding: 14px; border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,0,0,0.18);
}
.user-info { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(140deg, var(--brass-light), var(--brass));
  color: var(--ink-900); font-weight: 800; font-size: .72rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
.user-name { display: block; font-size: .78rem; font-weight: 600; color: #EAEFF8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: .6rem; color: var(--brass-light); letter-spacing: .1em; font-weight: 600; }
.logout-btn { color: #7484A4; text-decoration: none; font-size: 1.05rem; padding: 5px 7px; border-radius: 7px; transition: all .15s; }
.logout-btn:hover { color: #FF8A80; background: rgba(192,57,43,0.18); }

.main-content { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

.top-bar {
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  padding: 0 26px; height: 60px;
  display: flex; align-items: center; gap: 16px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.menu-toggle { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-light); }
.page-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text); }
.top-bar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top-bar-badge {
  background: var(--brass-tint); color: #8F6A1F; border: 1px solid #E8D9AE;
  font-size: .66rem; font-weight: 700; padding: 3px 11px;
  border-radius: 20px; letter-spacing: .04em;
}

.content-area { padding: 26px 28px; flex: 1; }

/* ─── CARDS ────────────────────────────────────────────── */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden;
}
.card-header {
  padding: 15px 22px; border-bottom: 1px solid var(--border-inner);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, #FDFDFE, #FFFFFF);
}
.card-title { font-family: var(--font-display); font-size: .88rem; font-weight: 700; color: var(--text); }
.card-body { padding: 22px; }

/* ─── STATS GRID ────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 26px; }

.stat-card {
  background: white; border-radius: var(--radius); padding: 18px 20px;
  display: flex; align-items: flex-start; justify-content: space-between;
  box-shadow: var(--shadow); border: 1px solid var(--border); gap: 12px;
  position: relative; overflow: hidden;
  transition: box-shadow .18s, transform .18s;
}
.stat-card::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--brass-light), transparent 65%);
  opacity: .55;
}
.stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }

.stat-icon-box {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.stat-blue   { background: #EDF1F8; color: var(--primary-mid); }
.stat-green  { background: #E8F7F0; color: var(--success); }
.stat-yellow { background: #FBF2E2; color: var(--warning); }
.stat-red    { background: #FAEAE8; color: var(--danger); }
.stat-purple { background: var(--brass-tint); color: var(--brass); }

.stat-info { flex: 1; }
.stat-value {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 800;
  line-height: 1.1; color: var(--text);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.stat-title { font-size: .7rem; color: var(--text-hint); margin-top: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat-trend {
  font-size: .65rem; font-weight: 700; padding: 2px 8px;
  border-radius: 12px; align-self: flex-start; white-space: nowrap;
}
.trend-up { background: #E8F7F0; color: #0B7A55; }
.trend-down { background: #FAEAE8; color: #A02E22; }

/* ─── TABLES — ledger discipline ────────────────────────── */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
th {
  padding: 11px 16px; text-align: left; font-weight: 700; font-size: .67rem;
  color: var(--text-light); background: #F8F9FB; border-bottom: 1px solid var(--border);
  white-space: nowrap; text-transform: uppercase; letter-spacing: .08em;
}
td {
  padding: 12px 16px; border-bottom: 1px solid var(--border-inner);
  vertical-align: middle; color: var(--text);
  font-variant-numeric: tabular-nums;
}
tr:hover td { background: #F8F9FC; }
tr:last-child td { border-bottom: none; }

/* ─── BADGES ────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.badge-admin     { background: var(--brass-tint); color: #8F6A1F; border: 1px solid #E8D9AE; }
.badge-sales     { background: #EDF1F8; color: #1E3A6E; }
.badge-accounts  { background: #E8F7F0; color: #0B7A55; }
.badge-collection{ background: #FBF2E2; color: #9A6310; }
.badge-dispatch  { background: #102043; color: #F0D9A2; }
.badge-success   { background: #E8F7F0; color: #0B7A55; }
.badge-warning   { background: #FBF2E2; color: #9A6310; }
.badge-danger    { background: #FAEAE8; color: #A02E22; }
.badge-info      { background: #EDF1F8; color: #1D4ED8; }
.badge-secondary { background: #F1F3F7; color: #5B6478; }
.badge-primary   { background: var(--primary-light); color: var(--primary); }

.priority-critical { background: #FAEAE8; color: #A02E22; }
.priority-high     { background: #FBEFE3; color: #B05A12; }
.priority-normal   { background: #FBF2E2; color: #9A6310; }
.priority-low      { background: #E8F7F0; color: #0B7A55; }

/* ─── FORMS ─────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full-width { grid-column: 1 / -1; }
label { font-size: .74rem; font-weight: 600; color: var(--text-light); letter-spacing: .02em; }
label.required::after { content: ' *'; color: var(--danger); }

input, select, textarea {
  padding: 9px 13px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .875rem; color: var(--text); background: white;
  font-family: var(--font-body);
  transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary-mid);
  box-shadow: 0 0 0 3px rgba(44,78,138,0.13);
}
input:hover:not(:focus), select:hover:not(:focus) { border-color: #C4CCDB; }
textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: .72rem; color: var(--text-hint); }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 17px;
  border-radius: var(--radius-sm); font-size: .84rem; font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer; border: none; text-decoration: none;
  transition: all 0.16s; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--primary-mid), var(--primary));
  color: white;
  box-shadow: 0 2px 8px rgba(30,58,110,.32), inset 0 1px 0 rgba(255,255,255,.14);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 14px rgba(30,58,110,.4);
  transform: translateY(-1px);
}
.btn-success   { background: var(--success); color: white; box-shadow: 0 2px 8px rgba(14,159,110,.28); }
.btn-success:hover { background: #0C8A60; }
.btn-warning   { background: var(--warning); color: white; }
.btn-warning:hover { background: #AC6C0D; }
.btn-danger    { background: var(--danger); color: white; }
.btn-danger:hover { background: #A82F23; }
.btn-secondary {
  background: white; color: var(--text); border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}
.btn-secondary:hover { background: #F7F8FA; border-color: #C4CCDB; }
.btn-ghost { background: var(--brass-tint); color: #8F6A1F; }
.btn-ghost:hover { background: #F0E4C4; }
.btn-sm { padding: 5px 12px; font-size: .75rem; }
.btn-icon { padding: 6px 9px; }

/* ─── ALERTS ─────────────────────────────────────────────── */
.alert {
  padding: 13px 16px; border-radius: var(--radius-sm);
  font-size: .845rem; margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid; border-left-width: 4px;
}
.alert-success { background: #F2FBF7; color: #0B6E4D; border-color: #BAE5D3; border-left-color: var(--success); }
.alert-error   { background: #FCF1EF; color: #93271C; border-color: #F1C6C0; border-left-color: var(--danger); }
.alert-warning { background: #FDF7EB; color: #8A5A0E; border-color: #F0DCB1; border-left-color: var(--warning); }
.alert-info    { background: #F1F5FC; color: #1C3D8F; border-color: #C5D5F2; border-left-color: var(--info); }

/* ─── PAGE HEADER — brass underline signature ────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 26px; flex-wrap: wrap; gap: 12px;
}
.page-header h2 {
  font-family: var(--font-display);
  font-size: 1.34rem; font-weight: 800; color: var(--text);
  position: relative; padding-bottom: 8px;
}
.page-header h2::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 34px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brass-light), var(--brass));
}
.page-header p  { font-size: .8rem; color: var(--text-hint); margin-top: 2px; }

/* ─── FILTERS ────────────────────────────────────────────── */
.filters {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px;
  padding: 14px 16px; background: white; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.filters select, .filters input { width: auto; min-width: 140px; }

/* ─── MODAL ──────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(11,23,48,0.55); z-index: 200;
  align-items: center; justify-content: center;
  backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: white; border-radius: 16px; box-shadow: 0 24px 64px rgba(11,23,48,.32);
  width: 90%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  border-top: 3px solid var(--brass);
}
.modal-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border-inner);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text); }
.modal-close {
  background: #F1F3F7; border: none; width: 30px; height: 30px;
  border-radius: 8px; font-size: 1rem; cursor: pointer; color: var(--text-light);
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.modal-close:hover { background: #FAEAE8; color: var(--danger); }
.modal-body { padding: 20px 24px; }
.modal-footer {
  padding: 14px 24px; border-top: 1px solid var(--border-inner);
  display: flex; justify-content: flex-end; gap: 10px; background: #F8F9FB;
}

/* ─── ORDER ITEMS ────────────────────────────────────────── */
.items-table th, .items-table td { padding: 8px 10px; }
.items-table input { padding: 6px 8px; }
.add-item-btn { margin-top: 8px; }

/* ─── TOGGLE SWITCH ──────────────────────────────────────── */
.toggle-wrap { display: flex; align-items: center; justify-content: center; }
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: #D6DBE5;
  border-radius: 24px; cursor: pointer; transition: 0.22s;
}
.toggle-slider::before {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; background: white; border-radius: 50%;
  transition: 0.22s; box-shadow: 0 1px 3px rgba(0,0,0,.22);
}
.toggle input:checked + .toggle-slider { background: var(--success); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle input:disabled + .toggle-slider { opacity: 0.5; cursor: not-allowed; }

/* ─── LOGIN PAGE — ink night + brass glow ────────────────── */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 90% 60% at 75% -10%, rgba(212,168,67,0.16), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 110%, rgba(44,78,138,0.35), transparent 60%),
    linear-gradient(160deg, #0B1730 0%, #102043 55%, #0B1730 100%);
  padding: 20px;
}
.login-card {
  background: #FFFFFF; border-radius: 20px; padding: 46px 42px;
  width: 100%; max-width: 410px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
  border-top: 4px solid var(--brass);
}
.login-logo {
  width: fit-content; min-width: 72px;
  background: linear-gradient(140deg, #FDFBF6, #F4ECDA);
  border: 1px solid #E8DDC2;
  border-radius: 18px; display: flex; align-items: center; justify-content: center;
  padding: 16px 26px; margin: 0 auto 18px;
  box-shadow: 0 8px 24px rgba(185,138,47,.22);
}
.login-title {
  text-align: center; font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.login-subtitle {
  text-align: center; color: var(--brass); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .22em; font-weight: 700;
  margin-bottom: 34px;
}
.login-form .form-group { margin-bottom: 16px; }
.login-btn { width: 100%; padding: 12px; font-size: .95rem; margin-top: 8px; justify-content: center; }
.demo-creds {
  margin-top: 20px; padding: 14px; background: #F8F9FB;
  border-radius: var(--radius-sm); font-size: .78rem;
  border: 1px solid var(--border);
}
.demo-creds h4 { margin-bottom: 6px; color: var(--text-light); font-size: .75rem; }
.demo-creds p { color: var(--text-hint); line-height: 1.9; }

/* ─── LEDGER ─────────────────────────────────────────────── */
.ledger-debit   { color: var(--danger); font-weight: 600; font-variant-numeric: tabular-nums; }
.ledger-credit  { color: var(--success); font-weight: 600; font-variant-numeric: tabular-nums; }
.ledger-balance { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* ─── PERMISSIONS TABLE ──────────────────────────────────── */
.perm-table th:not(:first-child), .perm-table td:not(:first-child) { text-align: center; }
.perm-header-group { text-align: center; background: #F8F9FB; font-weight: 700; padding: 8px; color: var(--text); }
.locked-perm { color: var(--text-hint); font-size: 1.1rem; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .content-area { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ─── MISC UTILITIES ──────────────────────────────────────── */
.text-right   { text-align: right; }
.text-center  { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.empty-state { text-align: center; padding: 56px 24px; color: var(--text-hint); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: .55; }
.empty-state h3 { font-size: .95rem; font-weight: 600; color: var(--text-light); margin-bottom: 6px; }
.divider { border: none; border-top: 1px solid var(--border-inner); margin: 20px 0; }
.company-name { font-size: .7rem; color: var(--text-hint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-switcher { display: flex; align-items: center; gap: 8px; }
.company-select {
  padding: 5px 11px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .8rem; cursor: pointer; background: white; color: var(--text); font-weight: 500;
}

/* ─── MINI SUMMARY STRIP ──────────────────────────────────── */
.summary-strip {
  display: flex; gap: 0; background: white; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden; margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.strip-item {
  flex: 1; padding: 15px 18px; border-right: 1px solid var(--border-inner);
  text-align: center;
}
.strip-item:last-child { border-right: none; }
.strip-val {
  font-family: var(--font-display); font-size: 1.22rem; font-weight: 800;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.strip-lbl { font-size: .64rem; color: var(--text-hint); margin-top: 3px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }