:root {
  --ink: #172f2d;
  --muted: #647775;
  --green: #1e6655;
  --green-dark: #153b34;
  --green-soft: #e6efe8;
  --gold: #d5ae64;
  --gold-soft: #f7efdd;
  --paper: #f3f5f0;
  --surface: #ffffff;
  --line: #dce4df;
  --line-strong: #c4d2ca;
  --danger: #a33a2c;
  --danger-soft: #fae9e5;
  --warn: #8a6420;
  --warn-soft: #f7efd9;
  --radius: 12px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(21, 59, 52, .05), 0 12px 28px rgba(21, 59, 52, .06);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .35em; letter-spacing: -.012em; }
h1 { font: 34px/1.1 var(--serif); }
h2 { font-size: 17px; font-weight: 750; }
h3 { font-size: 14px; font-weight: 750; }
p { margin: 0 0 1em; line-height: 1.6; }
small { font-size: 11px; }
svg { width: 1.1em; height: 1.1em; flex: none; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--green-dark); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 228px; z-index: 30;
  background: var(--green-dark); color: #fff;
  display: flex; flex-direction: column; padding: 26px 18px 18px;
  overflow-y: auto;
}
.brand { display: block; text-decoration: none; color: #fff; padding: 0 8px; }
.brand-name {
  display: block; font: 700 30px/1 var(--serif); letter-spacing: .11em; color: #ead7a8;
}
.brand-sub {
  display: block; color: #b9cdc4; font-size: 9.5px; letter-spacing: .19em;
  text-transform: uppercase; margin-top: 9px;
}
.nav { margin-top: 28px; display: grid; gap: 3px; }
.nav a {
  display: flex; align-items: center; gap: 10px; color: #c6d7cf; text-decoration: none;
  padding: 10px 11px; border-radius: 8px; font-weight: 600; font-size: 13px;
}
.nav a:hover { background: #214d43; color: #fff; }
.nav a.is-active { background: #2c5548; color: #fff; }
.nav a .nav-icon { width: 17px; height: 17px; opacity: .9; }
.nav .nav-sep {
  border-top: 1px solid #2a5248; margin: 10px 8px 8px; padding-top: 2px;
}
.nav .nav-label {
  font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #8eaaa0; padding: 12px 11px 4px;
}
.sidebar-foot { margin-top: auto; padding: 14px 8px 0; color: #9db8ad; font-size: 10.5px; line-height: 1.8; }
.sidebar-foot strong { color: #d7e4dd; font-weight: 650; }

.main { margin-left: 228px; width: calc(100% - 228px); min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
  padding: 12px 34px; background: rgba(243, 245, 240, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .crumb { color: var(--muted); font-size: 12px; }
.topbar .topbar-spacer { flex: 1; }
.viewas {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 11.5px; color: var(--muted);
}
.viewas strong { color: var(--ink); font-weight: 700; }
.account { position: relative; }
.account summary {
  display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none;
  padding: 5px 8px 5px 5px; border-radius: 10px;
}
.account summary::-webkit-details-marker { display: none; }
.account summary:hover { background: #e8ece5; }
.avatar {
  display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%;
  background: #dce9df; color: var(--green-dark); font-weight: 800; font-size: 12px;
}
.account-text { display: flex; flex-direction: column; line-height: 1.15; }
.account-name { font-weight: 700; font-size: 12.5px; }
.account-role { font-size: 10.5px; color: var(--muted); }
.account-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 6px; z-index: 50;
}
.account-panel a, .account-panel .link-button {
  display: block; width: 100%; text-align: left; padding: 9px 11px; border-radius: 7px;
  color: var(--ink); text-decoration: none; font-size: 12.5px;
}
.account-panel a:hover, .account-panel .link-button:hover { background: var(--green-soft); }
.account-panel form { margin: 0; }

.content { padding: 30px 34px 70px; max-width: 1680px; }
.page-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: 22px;
}
.page-head h1 { margin-bottom: 5px; }
.eyebrow {
  margin: 0 0 7px; text-transform: uppercase; letter-spacing: .15em;
  font-size: 10.5px; font-weight: 800; color: var(--green);
}
.lede { color: var(--muted); margin: 0; max-width: 75ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Buttons and chips ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: 12.5px; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
}
.button:hover { border-color: var(--green); background: #fff; }
.button:active { transform: translateY(1px); }
.button svg { width: 15px; height: 15px; }
.button-primary { background: var(--green); border-color: var(--green); color: #fff; }
.button-primary:hover { background: #175344; border-color: #175344; }
.button-gold { background: var(--gold); border-color: var(--gold); color: #2b2416; }
.button-gold:hover { background: #c9a052; border-color: #c9a052; }
.button-quiet { background: transparent; border-color: transparent; color: var(--muted); }
.button-quiet:hover { background: var(--green-soft); color: var(--ink); }
.button-small { min-height: 30px; padding: 4px 9px; font-size: 11.5px; border-radius: 6px; }
.button[disabled] { opacity: .45; cursor: not-allowed; }
.link-button {
  background: none; border: 0; padding: 0; color: var(--green); font-weight: 650;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit;
}
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px;
  border-radius: 999px; background: var(--green-soft); color: var(--green);
  font-size: 10.5px; font-weight: 750; white-space: nowrap;
}
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-danger { background: var(--danger-soft); color: var(--danger); }
.chip-neutral { background: #ebeeea; color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px;
  border-radius: 5px; font-size: 10.5px; font-weight: 750; background: #edf3ec; color: #346047;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-neutral { background: #ebeeea; color: var(--muted); }

/* ---------- Messages ---------- */
.messages { padding: 14px 34px 0; max-width: 1680px; }
.message {
  margin: 0 0 8px; padding: 10px 13px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 550; font-size: 12.5px;
}
.message-success { background: #e6f2e9; border-color: #c3dfca; color: #1d5631; }
.message-error { background: var(--danger-soft); border-color: #ecc8c0; color: #7d2c21; }
.message-info { background: #e6eef3; border-color: #c7dae5; color: #25576e; }
.message-warning { background: var(--warn-soft); border-color: #e6d5ad; color: var(--warn); }

/* ---------- Filters ---------- */
.filters {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px;
  padding: 13px 14px; margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.filters label.field { display: grid; gap: 5px; flex: 1 1 145px; min-width: 130px; }
.filters label.field > span, .field > span, .form-row > label > span {
  font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
input, select, textarea {
  padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 6px;
  background: #fff; color: var(--ink); min-height: 38px; max-width: 100%;
}
input[type="checkbox"] { min-height: 0; accent-color: var(--green); width: 16px; height: 16px; }
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 2px solid #cfe3d8; }
.filters .button { align-self: flex-end; }
.filter-note { color: var(--muted); font-size: 11.5px; flex-basis: 100%; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px 18px; min-width: 0;
}
.card .label {
  font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.card strong { display: block; font-size: 25px; line-height: 1.15; margin: 10px 0 4px; letter-spacing: -.02em; }
.card small { color: var(--muted); font-size: 11px; line-height: 1.45; display: block; }
.card.primary { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.card.primary .label, .card.primary small { color: #b9cdc4; }
.card.primary.gold { background: #6d5625; border-color: #6d5625; }
.card.alert { border-color: #e6c9c2; background: #fff8f6; }
.card.alert strong { color: var(--danger); }

/* ---------- Panels and grids ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 18px; min-width: 0;
}
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
.panel-head .muted { font-size: 11.5px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; }
.grid-2-even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mono { font-family: var(--mono); font-size: 11px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.note {
  background: var(--gold-soft); border-left: 3px solid var(--gold); padding: 11px 13px;
  font-size: 12px; line-height: 1.55; margin: 12px 0; color: #54461f;
}
.note.info { background: #eaf1f4; border-left-color: #7fa6b6; color: #274d5c; }
.note.danger { background: var(--danger-soft); border-left-color: #c3776a; color: #7d2c21; }
.empty { padding: 38px 20px; text-align: center; color: var(--muted); }
.empty h2 { color: var(--ink); }

/* ---------- Tables ---------- */
.scroll { overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.scroll.tall { max-height: 620px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 9px 10px; border-bottom: 1px solid #edf1ec; text-align: left; vertical-align: top; }
th {
  position: sticky; top: 0; z-index: 1; background: #f6f8f4; color: var(--muted);
  font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
tbody tr:hover td { background: #fbfcfa; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.total td, tr.totals td { background: #e9f0e9; font-weight: 750; border-top: 2px solid #b9cdbf; }
tr.subtotal td { background: #f4f7f2; font-weight: 700; }
.cellcode { display: block; font-size: 9.5px; color: #83938a; margin-top: 3px; font-family: var(--mono); }
.table-actions { display: flex; gap: 6px; justify-content: flex-end; }
.pagination { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: 12px; }
.pagination .current { color: var(--muted); }

/* ---------- Bars and chart ---------- */
.bar-row {
  display: grid; grid-template-columns: minmax(110px, 1.2fr) minmax(80px, 2fr) 96px;
  gap: 10px; align-items: center; margin: 10px 0; font-size: 11.5px;
}
.bar-track { height: 9px; background: #eef2ec; border-radius: 9px; overflow: hidden; }
.bar-fill { height: 100%; background: #377861; border-radius: 9px; min-width: 2px; }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; font-size: 11.5px; }
.chart {
  display: flex; align-items: flex-end; gap: 3px; height: 190px; padding-top: 12px;
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.chart .col { flex: 1 1 0; min-width: 3px; display: flex; align-items: flex-end; height: 100%; }
.chart .bar {
  width: 100%; background: #4a8b73; border-radius: 3px 3px 0 0; min-height: 1px;
  position: relative;
}
.chart .bar:hover { background: var(--green-dark); }
.chart-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin-top: 6px; }
.spark-legend { display: flex; gap: 16px; color: var(--muted); font-size: 11px; margin-top: 8px; }

/* ---------- Forms ---------- */
.form-panel { max-width: 820px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-row { display: grid; gap: 5px; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { display: grid; gap: 5px; }
.help { color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.errorlist { margin: 0; padding: 0; list-style: none; color: var(--danger); font-size: 11px; }
.form-actions { display: flex; gap: 9px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.check-row { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; }
.check-row input { margin-top: 2px; }
.check-row label { font-weight: 600; font-size: 12px; }
.inline-form { display: inline; margin: 0; }
.entry-table input, .entry-table select { min-height: 32px; padding: 5px 7px; font-size: 12px; width: 100%; }
.entry-table td { padding: 6px 5px; }
.entry-table th { font-size: 9px; }
.entry-table .row-errors { color: var(--danger); font-size: 10.5px; }
.entry-table .money-input { max-width: 100px; }
.entry-table .qty-input { max-width: 80px; }
.formset-note { color: var(--muted); font-size: 11px; margin: 8px 0; }
.del-cell { width: 32px; text-align: center; }
.del-cell input { width: 15px; height: 15px; }

/* ---------- Status tiles ---------- */
.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.status-tile {
  border: 1px solid var(--line); border-radius: 9px; padding: 12px 13px; background: #fbfcfa;
}
.status-tile .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.status-tile .value { font-size: 17px; font-weight: 750; margin-top: 6px; }
.status-tile .meta { color: var(--muted); font-size: 10.5px; margin-top: 3px; }
.status-tile.ok { border-color: #c3ddc9; background: #f5faf6; }
.status-tile.warn { border-color: #e7d5ac; background: #fdf9ef; }
.status-tile.bad { border-color: #e8c8c1; background: #fdf6f4; }

/* ---------- Login ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, #214d43, #0f2a24 65%); }
.auth-card { width: min(420px, 100%); background: #fff; border-radius: 16px; padding: 30px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.auth-brand { font: 700 32px/1 var(--serif); letter-spacing: .12em; color: var(--green-dark); }
.auth-brand small { display: block; font: 700 9.5px/1.4 var(--font); letter-spacing: .2em; color: var(--muted); margin-top: 8px; }
.auth-card h1 { font-size: 25px; margin: 22px 0 4px; }
.auth-card p { color: var(--muted); font-size: 12.5px; }
.auth-card form { display: grid; gap: 12px; margin-top: 18px; }
.auth-card label { display: grid; gap: 5px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.auth-foot { margin-top: 18px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }

/* ---------- Print ---------- */
@media print {
  .sidebar, .topbar, .filters, .actions, .messages, .no-print { display: none !important; }
  .main { margin: 0; width: 100%; }
  .content { padding: 0; }
  body { background: #fff; font-size: 11px; }
  .panel, .card { break-inside: avoid; box-shadow: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2, .grid-2-even, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { position: static; width: auto; padding: 16px; }
  .sidebar .nav { display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; margin-top: 14px; padding-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .sidebar .nav .nav-label, .sidebar .nav .nav-sep, .sidebar-foot { display: none; }
  .nav a { white-space: nowrap; }
  .shell { display: block; }
  .main { margin: 0; width: 100%; }
  .topbar { padding: 10px 18px; }
  .content { padding: 22px 18px 60px; }
  .messages { padding: 12px 18px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .cards, .cards.cols-5 { grid-template-columns: 1fr 1fr; }
  .card strong { font-size: 21px; }
  .page-head { display: block; }
  .actions { margin-top: 12px; }
  h1 { font-size: 28px; }
  .topbar .crumb, .viewas { display: none; }
  .filters label.field { flex-basis: 100%; }
}

/* Wide data-entry grid */
.entry-table { min-width: 1080px; }
.entry-table select { min-width: 110px; }
.entry-table input[data-item-input] { min-width: 210px; }
.entry-table input[data-cost-input] { min-width: 90px; }
.entry-table .money-input { min-width: 90px; }
.entry-table td:nth-child(3) input { min-width: 70px; }
.entry-table td:nth-child(5) input { min-width: 90px; }

/* Company + multi-outlet comparison filter */
.outletfield { position: relative; flex: 1 1 240px; min-width: 210px; display: grid; gap: 5px; }
.outletfield > span {
  font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.outletpicker { position: relative; }
.outletpicker summary {
  list-style: none; cursor: pointer; min-height: 38px; padding: 9px 32px 9px 10px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: #fff;
  font-size: 13px; position: relative;
}
.outletpicker summary::-webkit-details-marker { display: none; }
.outletpicker summary::after {
  content: "▾"; position: absolute; right: 11px; top: 8px; color: var(--muted); font-size: 12px;
}
.outletmenu {
  position: absolute; top: calc(100% + 5px); left: 0; z-index: 25; width: max(100%, 320px);
  max-width: min(420px, 88vw); max-height: 380px; overflow: auto;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 8px;
  box-shadow: var(--shadow); padding: 10px;
}
.outletmenu .tools { margin: 0 0 6px; }
.outletmenu .button { min-height: 28px; }
.outletoption {
  display: flex; align-items: flex-start; gap: 9px; padding: 7px 4px;
  font-size: 12px; line-height: 1.35; cursor: pointer; border-radius: 5px;
}
.outletoption:hover { background: #f3f7f2; }
.outletoption input { margin-top: 1px; }
.outletoption small { display: block; color: var(--muted); font-size: 10px; margin-top: 1px; }
.outletchoices { display: grid; gap: 1px; }

/* Monthly selected month and review decisions */
.selected-col { background: #edf3ec !important; font-weight: 700; }
.decision-form { display: flex; gap: 6px; align-items: center; }
.decision-form select { min-height: 32px; padding: 4px 8px; font-size: 11.5px; max-width: 190px; }
.decision-form .button { flex: none; }
@media (max-width: 700px) {
  .decision-form { flex-wrap: wrap; }
  .decision-form select { max-width: 100%; }
}

/* Dashboard charts */
.line-chart { width: 100%; height: auto; display: block; margin-top: 10px; }
.donut-wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.donut { position: relative; width: 176px; height: 176px; flex: none; }
.donut svg { width: 100%; height: 100%; display: block; }
.donut-center {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  pointer-events: none; padding: 38px;
}
.donut-center strong { font-size: 14px; letter-spacing: -.01em; }
.donut-center span { display: block; color: var(--muted); font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; margin-top: 3px; }
.donut-legend { flex: 1 1 220px; min-width: 190px; display: grid; gap: 7px; }
.legend-row {
  display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 7px;
  align-items: center; font-size: 11.5px;
}
.legend-row b { font-size: 11.5px; text-align: right; }
.legend-row small { grid-column: 2 / 4; color: var(--muted); font-size: 10px; margin-top: -4px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.card-split { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-split strong { margin-bottom: 4px; }
.gauge-mini {
  width: 62px; height: 62px; border-radius: 50%; flex: none; position: relative;
  display: grid; place-items: center;
}
.gauge-mini::after {
  content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface);
}
.gauge-mini span { position: relative; z-index: 1; font-size: 11px; font-weight: 800; }
.card.primary .gauge-mini::after { background: var(--green-dark); }
.card.alert .gauge-mini::after { background: #fff8f6; }
.mini-track { height: 6px; background: #eef2ec; border-radius: 6px; overflow: hidden; min-width: 70px; }
.mini-fill { height: 100%; background: #4a8b73; border-radius: 6px; }
@media (max-width: 620px) {
  .donut { width: 150px; height: 150px; }
  .donut-center { padding: 32px; }
  .donut-center strong { font-size: 12px; }
}

/* Spending-by-outlet report */
.spending-table { min-width: 1200px; }
.spending-table th.outlet-group {
  background: #e6efe8; color: var(--green-dark); text-align: center;
  border-left: 2px solid #c4d2ca;
}
.spending-table td:nth-child(3n + 2) { border-left: 1px solid #dce4df; }

/* Movement entry tabs */
.entry-tabs { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; }
.entry-tabs a {
  padding: 8px 14px; border-radius: 7px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 12px;
}
.entry-tabs a:hover { border-color: var(--green); color: var(--ink); }
.entry-tabs a.active { background: var(--green); border-color: var(--green); color: #fff; }
.entry-tabs-note { color: var(--muted); font-size: 10.5px; margin-left: 6px; }
