:root {
  --green: #01411c;
  --green-2: #0b6b35;
  --green-soft: #e6f0ea;
  --ink: #1d2521;
  --muted: #66706b;
  --line: #dde3df;
  --bg: #f5f7f6;
  --card: #ffffff;
  --red: #b42318;
  --red-soft: #fdecea;
  --amber-soft: #fff7e0;
  --blue-soft: #e8f1fb;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { font-size: 14px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.45;
}
a { color: var(--green-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: 0 0 .75rem; }
h2 { font-size: 1.1rem; margin: 1.25rem 0 .5rem; color: var(--green); }
small, .small { font-size: .85em; }
.muted { color: var(--muted); }
.mono { font-family: Consolas, monospace; word-break: break-all; }
.nowrap { white-space: nowrap; }
.c { text-align: center; }
.neg { color: var(--red); }

/* Top bar */
.topbar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--green); color: #fff; padding: .4rem 1rem; position: sticky; top: 0; z-index: 10;
}
.brand { color: #fff; font-weight: 700; font-size: 1.05rem; margin-right: .5rem; }
.menu { display: flex; gap: .15rem; flex-wrap: wrap; flex: 1; }
.menu > a, .dd-label {
  color: #e8f3ec; padding: .45rem .7rem; border-radius: 6px; cursor: pointer; display: inline-block; user-select: none;
}
.menu > a:hover, .dd:hover .dd-label, .dd:focus-within .dd-label, .menu .on { background: rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.dd { position: relative; outline: none; }
.dd-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: .35rem; z-index: 20;
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-menu a { display: block; padding: .4rem .6rem; color: var(--ink); border-radius: 5px; }
.dd-menu a:hover { background: var(--green-soft); text-decoration: none; }
.dd-menu b { display: inline-block; width: 2.6rem; color: var(--green-2); }
.dd-menu hr { border: 0; border-top: 1px solid var(--line); margin: .3rem 0; }
.who { display: flex; gap: .75rem; align-items: center; font-size: .9rem; }
.who a, .who .linkbtn { color: #cfe5d7; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.inline { display: inline; }

.container { max-width: 1280px; margin: 0 auto; padding: 1rem .75rem 3rem; }
/* Use the extra width on large monitors instead of leaving wide side margins. */
@media (min-width: 1440px) { .container { max-width: 96vw; padding-left: .5rem; padding-right: .5rem; } }
@media (min-width: 1920px) { .container { max-width: 1840px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.card.narrow { max-width: 640px; margin: 0 auto 1rem; }
.card.wide-ish { max-width: 860px; }
.auth { margin-top: 8vh !important; max-width: 400px !important; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.page-head h1 { margin: 0; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }

/* Forms */
label { display: block; margin-bottom: .7rem; font-weight: 600; font-size: .92rem; }
label small { display: block; font-weight: 400; color: var(--muted); }
label.check { font-weight: 400; display: flex; gap: .5rem; align-items: flex-start; }
label.check input { margin-top: .2rem; }
input, select, textarea {
  display: block; width: 100%; margin-top: .25rem; padding: .45rem .55rem; border: 1px solid #c7d0cb; border-radius: 6px;
  font: inherit; background: #fff; color: var(--ink);
}
input[type=checkbox] { width: auto; display: inline-block; margin: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green-2); outline-offset: -1px; border-color: var(--green-2); }
input:disabled, select:disabled { background: #f0f2f1; color: var(--muted); }
input.num { text-align: right; font-variant-numeric: tabular-nums; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; margin: 0 0 1rem; }
legend { font-weight: 700; color: var(--green); padding: 0 .3rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0 1rem; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 0 1rem; }
.hint { color: var(--muted); font-size: .88rem; margin: .25rem 0 .9rem; }
.form-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.danger-zone { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.filters label { margin: 0; font-weight: 400; font-size: .85rem; color: var(--muted); }
.filters input, .filters select { width: auto; min-width: 140px; }
.filters label.check { align-self: center; }
input.filter { max-width: 320px; margin-bottom: .75rem; }

.btn {
  display: inline-block; padding: .45rem .9rem; border: 1px solid #c7d0cb; border-radius: 6px; background: #fff; color: var(--ink);
  cursor: pointer; font: inherit; font-weight: 600; line-height: 1.3; text-decoration: none !important;
}
.btn:hover { background: #f0f4f2; }
.btn.primary { background: var(--green-2); border-color: var(--green-2); color: #fff; }
.btn.primary:hover { background: var(--green); }
.btn.danger { color: var(--red); border-color: #f0b8b2; }
.btn.danger:hover { background: var(--red-soft); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon { background: none; border: 0; color: var(--muted); font-size: 1.25rem; cursor: pointer; padding: 0 .3rem; }
.icon:hover { color: var(--red); }

.alert { padding: .65rem .9rem; border-radius: 6px; margin-bottom: 1rem; border: 1px solid; }
.alert ul { margin: 0; padding-left: 1.2rem; }
.alert.success { background: var(--green-soft); border-color: #b9d6c3; }
.alert.error { background: var(--red-soft); border-color: #f0b8b2; color: #7a1a12; }
.alert.info { background: var(--blue-soft); border-color: #bcd3ef; }
.alert.warning { background: var(--amber-soft); border-color: #ecd28f; color: #6b4a00; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table.grid th, table.grid td { padding: .45rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.grid thead th { background: #eef3f0; font-size: .85rem; color: #33413a; white-space: nowrap; }
table.grid tfoot th, table.grid tfoot td { background: #f6f8f7; border-top: 2px solid #b8c4bd; }
table.grid tbody tr:hover { background: #fafcfb; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.section-row th { background: var(--green-soft); color: var(--green); font-size: .9rem; }
tr.inactive td { color: #9aa49f; }
tr.opening td { background: #fbfcfb; }
tr.narration td { color: var(--muted); border-bottom: 2px solid var(--line); }
.tag { display: inline-block; font-size: .72rem; padding: .05rem .4rem; border-radius: 10px; background: #eef1ef; color: #44524a; margin-right: .2rem; }
.tag.tax { background: var(--amber-soft); }
.pager { display: flex; gap: .5rem; margin-top: 1rem; }

/* Voucher entry */
table.lines { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; min-width: 760px; }
table.lines th { text-align: left; font-size: .85rem; color: var(--muted); padding: .3rem; border-bottom: 1px solid var(--line); }
table.lines td { padding: .25rem; vertical-align: middle; }
table.lines input, table.lines select { margin: 0; }
table.lines tfoot td { border-top: 1px solid var(--line); padding-top: .5rem; }
#diff.bad { color: var(--red); }
#diff.ok { color: var(--green-2); }
.wht-helper .filters { margin-bottom: .25rem; }

/* Voucher print */
.voucher-head { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--green); padding-bottom: .75rem; margin-bottom: 1rem; }
.company { font-size: 1.2rem; font-weight: 700; color: var(--green); }
.voucher-title { text-align: right; }
.voucher-title h1 { margin: 0 0 .3rem; font-size: 1.25rem; }
table.meta { margin-left: auto; }
table.meta th { text-align: right; padding-right: .5rem; color: var(--muted); font-weight: 600; }
.signatures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 3rem 0 1rem; }
.signatures div { border-top: 1px solid #888; padding-top: .35rem; text-align: center; font-size: .9rem; }

/* Reports */
.report-head { text-align: center; margin-bottom: 1rem; }
.report-head h1 { margin: .3rem 0 .1rem; font-size: 1.3rem; }
table.statement-fs { width: 100%; max-width: 760px; margin: 0 auto; border-collapse: collapse; background: #fff; }
table.statement-fs td, table.statement-fs th { padding: .4rem .6rem; }
table.statement-fs .num { width: 170px; }
table.statement-fs .heading td { font-weight: 800; color: var(--green); padding-top: 1rem; }
table.statement-fs .sub td { font-weight: 700; padding-top: .6rem; }
table.statement-fs .fs-line td:first-child { padding-left: 1.4rem; }
table.statement-fs .subtotal td { font-weight: 700; }
table.statement-fs .subtotal td.num { border-top: 1px solid #333; }
table.statement-fs .total td { font-weight: 800; }
table.statement-fs .total td.num { border-top: 1px solid #333; border-bottom: 3px double #333; }
details summary { cursor: pointer; }
table.detail { width: 100%; margin: .3rem 0 .4rem; font-size: .9rem; color: var(--muted); }
table.detail td { padding: .15rem .4rem; }

/* Dashboard */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1rem; margin-bottom: 1rem; }
.tile { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green-2); border-radius: var(--radius); padding: .9rem 1rem; }
.tile-label { color: var(--muted); font-size: .85rem; }
.tile-value { font-size: 1.45rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile-sub { color: var(--muted); font-size: .8rem; }
.bars { display: flex; align-items: flex-end; gap: .35rem; height: 180px; padding-top: .5rem; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.bar-pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.bar { width: 42%; border-radius: 3px 3px 0 0; min-height: 1px; }
.bar.inc, .sw.inc { background: var(--green-2); }
.bar.exp, .sw.exp { background: #d08b2c; }
.bar-label { font-size: .72rem; color: var(--muted); margin-top: .25rem; }
.legend { font-size: .8rem; color: var(--muted); margin-top: .5rem; display: flex; gap: .4rem; align-items: center; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: .5rem; }

@media (max-width: 1024px) {
  .container { padding: .75rem .5rem 2rem; }
  .card { padding: .9rem .75rem; }
  .topbar { padding: .4rem .5rem; gap: .5rem; }
}

@media (max-width: 700px) {
  .container { padding: .5rem .35rem 2rem; }
  .card { padding: .75rem .5rem; border-radius: 6px; }
  table.grid th, table.grid td { padding: .35rem .4rem; }
  .tiles { gap: .5rem; }
  .who { width: 100%; justify-content: flex-end; }
  .signatures { grid-template-columns: repeat(2, 1fr); }
  .dd-menu { position: fixed; left: .5rem; right: .5rem; top: auto; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  html { font-size: 11px; }
  body { background: #fff; }
  .no-print, .topbar, .filters, .actions, .pager, .alert, .hint { display: none !important; }
  .container { padding: 0; max-width: none; }
  .card { border: 0; padding: 0; }
  a { color: inherit; }
  details > summary { list-style: none; }
  details > summary::-webkit-details-marker { display: none; }
  table.grid thead th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ===================== KPI dashboard ===================== */
.kdash { --navy: #0f2742; --navy-2: #163a5f; --k-line: #e3e8ee; display: grid; grid-template-columns: 196px 1fr; gap: .75rem; align-items: start; }
.k-side { background: linear-gradient(180deg, var(--navy) 0%, #0b1d33 100%); border-radius: 10px; padding: .75rem .5rem 1rem; color: #cfe0f2; position: sticky; top: 3.4rem; }
.k-side nav a { display: flex; align-items: center; gap: .6rem; padding: .55rem .65rem; border-radius: 7px; color: #cfe0f2; font-size: .9rem; margin-bottom: .15rem; }
.k-side nav a svg { width: 18px; height: 18px; flex: none; }
.k-side nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.k-side nav a.on { background: #1faa5b; color: #fff; font-weight: 600; }
.k-tag { margin: 1.4rem .4rem .8rem; font-weight: 700; font-style: italic; color: #fff; font-size: 1.05rem; line-height: 1.25; transform: rotate(-4deg); }
.k-steps { list-style: none; margin: 0; padding: 0 .4rem; }
.k-steps li { display: flex; align-items: center; gap: .45rem; padding: .25rem 0; font-size: .9rem; }
.k-steps svg { width: 16px; height: 16px; color: #3ddc84; }

.k-main { min-width: 0; }
.k-banner { display: flex; align-items: center; gap: 1rem; background: linear-gradient(110deg, var(--navy) 0%, var(--navy-2) 70%, #1d5a7a 100%); color: #fff; border-radius: 10px; padding: .9rem 1.2rem; margin-bottom: .75rem; }
.k-logo { width: 52px; height: 52px; border-radius: 10px; background: #1faa5b; display: grid; place-items: center; flex: none; }
.k-logo svg { width: 30px; height: 30px; color: #fff; }
.k-title h1 { margin: 0; font-size: 1.85rem; letter-spacing: .5px; color: #fff; font-weight: 800; }
.k-title h1 span { color: #3ddc84; }
.k-tabs { color: #cfe0f2; font-size: .95rem; margin-top: .1rem; }
.k-slogan { margin-left: auto; text-align: right; font-style: italic; font-weight: 700; color: #fff; font-size: .95rem; line-height: 1.2; }

.k-filters { display: flex; gap: .6rem; align-items: stretch; flex-wrap: wrap; margin-bottom: .75rem; }
.kf-box { background: #fff; border: 1px solid var(--k-line); border-radius: 9px; padding: .45rem .7rem; }
.kf-lbl { display: flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: #33465a; }
.kf-lbl svg { width: 14px; height: 14px; }
.kf-inputs { display: flex; align-items: center; gap: .35rem; }
.kf-inputs input { width: auto; padding: .25rem .4rem; margin-top: .2rem; }
.kf-inputs span { color: var(--muted); font-size: .85rem; }
.kf-chips { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .3rem; }
.chip { padding: .2rem .6rem; border-radius: 99px; border: 1px solid var(--k-line); color: #33465a; font-size: .82rem; }
.chip:hover { background: #eef4fa; text-decoration: none; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.kf-go { align-self: center; }
.kf-badge { margin-left: auto; display: flex; align-items: center; gap: .6rem; background: var(--navy); color: #fff; border-radius: 9px; padding: .45rem .9rem; }
.kf-badge-ic svg { width: 26px; height: 26px; color: #3ddc84; }
.kf-badge-l { font-size: .78rem; color: #cfe0f2; }
.kf-badge-v { font-size: 1.4rem; font-weight: 800; }

.k-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; margin-bottom: .75rem; }
.kc { border-radius: 10px; padding: .75rem .85rem; border: 1.5px solid; background: #fff; display: flex; flex-direction: column; gap: .3rem; }
.kc-head { display: flex; align-items: center; gap: .55rem; }
.kc-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.kc-ic svg { width: 20px; height: 20px; }
.kc-t { font-weight: 700; font-size: .95rem; color: #0b0b0b; }
.kc-sub { font-size: .75rem; color: var(--muted); }
.kc-v { font-size: 1.85rem; font-weight: 800; color: #0b0b0b; line-height: 1.1; margin-top: .15rem; }
.kc-foot { font-size: .8rem; }
.kc-d { font-weight: 700; }
.kc-d.good { color: #006300; }
.kc-d.bad { color: #b42318; }
.kc-d.flat { color: var(--muted); font-weight: 400; }
.kc-vs { color: var(--muted); }
.kc-green { border-color: #8fd3a8; background: #f2fbf5; } .kc-green .kc-ic { background: #1faa5b; }
.kc-blue { border-color: #9cc3ef; background: #f2f7fd; } .kc-blue .kc-ic { background: #2a78d6; }
.kc-purple { border-color: #c0b6ef; background: #f6f4fd; } .kc-purple .kc-ic { background: #6250d6; }
.kc-orange { border-color: #f4c08f; background: #fff7ef; } .kc-orange .kc-ic { background: #e8742a; }
.kc-teal { border-color: #8fd6cc; background: #f0faf8; } .kc-teal .kc-ic { background: #0f9488; }

.k-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .75rem; }
.s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s7 { grid-column: span 7; }
.k-col { display: flex; flex-direction: column; gap: .75rem; }
.k-card { background: #fff; border: 1px solid var(--k-line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.k-ch { display: flex; align-items: center; gap: .5rem; background: var(--navy); color: #fff; font-weight: 700; padding: .55rem .85rem; font-size: .95rem; }
.k-ch svg { width: 18px; height: 18px; color: #7fd1ff; flex: none; }
.k-ch small { font-weight: 400; color: #b9cde2; margin-left: auto; font-size: .78rem; }
.k-ch-green { background: #0b6b35; } .k-ch-green svg { color: #b6f0cb; }
.k-ch-purple { background: #4b3aa8; } .k-ch-purple svg { color: #ffe08a; }
.k-cb { padding: .7rem .85rem .8rem; flex: 1; }
.k-cb.c, .c { text-align: center; }

svg.chart { width: 100%; height: auto; display: block; overflow: visible; }
svg.chart .ax { font-size: 11px; fill: #898781; }
svg.chart .val { font-size: 12px; font-weight: 700; fill: #0b0b0b; }
svg .seg { font-size: 12px; font-weight: 700; }
svg .ctr { font-size: 24px; font-weight: 800; fill: #0b0b0b; }
svg .ctr-sub { font-size: 11px; fill: #52514e; }
svg .fn-l { font-size: 13px; font-weight: 600; fill: #0b0b0b; }
svg .fn-v { font-size: 12px; fill: #52514e; }
svg .fn-v.neg { fill: #b42318; }
svg .mark:hover path, svg .mark:hover circle { filter: brightness(1.08); }

.k-donut { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
svg.donut { width: 190px; max-width: 46%; height: auto; flex: none; }
svg.donut .ctr { font-size: 20px; }
.legend-list { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 170px; font-size: .86rem; }
.legend-list li { display: grid; grid-template-columns: 12px 1fr auto 2.6rem; gap: .45rem; align-items: center; padding: .22rem 0; border-bottom: 1px dashed #eef0f2; }
.legend-list .sw, .legend-inline .sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; margin: 0; }
.lg-v { font-weight: 700; font-variant-numeric: tabular-nums; }
.lg-p { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.legend-inline { display: flex; gap: .4rem; align-items: center; font-size: .82rem; color: #52514e; margin-bottom: .5rem; }
.legend-inline .sw:not(:first-child) { margin-left: .6rem; }

.k-ringbox { display: flex; align-items: center; gap: 1rem; }
svg.ring { width: 170px; max-width: 55%; height: auto; flex: none; }
.k-ringside .muted { font-size: .8rem; }
.k-ringside .big { font-size: 1.15rem; font-weight: 800; margin-bottom: .4rem; }
svg.gauge { width: 100%; max-width: 300px; height: auto; }
.k-ratio-note { font-weight: 700; margin: .2rem 0; }
.k-ratio-note.good { color: #006300; } .k-ratio-note.bad { color: #b42318; }

.hbars { display: flex; flex-direction: column; gap: .45rem; }
.hb-row { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: .55rem; align-items: center; font-size: .86rem; }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-t { background: #f0f2f4; border-radius: 0 4px 4px 0; height: 16px; position: relative; }
.hb-b { height: 100%; border-radius: 0 4px 4px 0; }
.hb-v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.paired .hb-row { grid-template-columns: minmax(90px, 36%) 1fr; }
.hb-pair { display: flex; flex-direction: column; gap: 3px; }
.paired .hb-t { height: 14px; background: transparent; display: flex; align-items: center; gap: .35rem; }
.paired .hb-b { flex: none; max-width: 78%; }
.hb-in { font-size: .75rem; color: #52514e; white-space: nowrap; font-variant-numeric: tabular-nums; }

.k-formulas code, .k-ratios code { font-family: Consolas, monospace; font-size: .8rem; color: #33465a; background: #f3f6f9; padding: .05rem .3rem; border-radius: 4px; }
.k-formulas td:first-child { font-weight: 700; white-space: nowrap; }
.k-ratios { list-style: none; margin: 0; padding: 0; }
.k-ratios li { display: grid; grid-template-columns: 9rem 1fr auto; gap: .5rem; align-items: center; padding: .38rem 0; border-bottom: 1px dashed #e7ebef; font-size: .88rem; }
.k-ratios li span { font-weight: 600; }
.k-ratios li b { font-variant-numeric: tabular-nums; }
.k-ratios li.k-tax span { color: #6b4a00; }
.k-insights { background: #faf8ff; }
.k-insights ul { list-style: none; margin: 0; padding: 0; }
.k-insights li { display: flex; gap: .55rem; align-items: baseline; padding: .3rem 0; font-size: .9rem; }
.k-insights .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; transform: translateY(-1px); }
.k-insights .good .dot { background: #0ca30c; } .k-insights .bad .dot { background: #d03b3b; } .k-insights .info .dot { background: #6250d6; }

.data-view { margin-top: .4rem; font-size: .82rem; }
.data-view summary { color: var(--muted); cursor: pointer; }
.data-view table { margin-top: .35rem; font-size: .82rem; }

@media (max-width: 1500px) { .k-cards { grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr)); } .kc-v { font-size: 1.55rem; } }
@media (max-width: 1280px) { .s4 { grid-column: span 6; } .s5, .s7 { grid-column: span 12; } }
@media (max-width: 1000px) {
  .kdash { grid-template-columns: 1fr; }
  .k-side { position: static; padding: .4rem; }
  .k-side nav { display: flex; overflow-x: auto; gap: .25rem; }
  .k-side nav a { white-space: nowrap; margin: 0; }
  .k-tag, .k-steps { display: none; }
}
@media (max-width: 760px) {
  .s4 { grid-column: span 12; }
  .k-banner { flex-wrap: wrap; padding: .75rem; }
  .k-title h1 { font-size: 1.35rem; }
  .k-slogan { display: none; }
  .kf-badge { margin-left: 0; }
  .kc-v { font-size: 1.5rem; }
}
@media print { .k-side, .k-filters, .data-view { display: none !important; } .kdash { grid-template-columns: 1fr; } .k-card { break-inside: avoid; } }
