/* Razi Tax Calculator — styles */
:root {
  --paper: #f3f6f4;
  --surface: #ffffff;
  --ink: #10201b;
  --ink-2: #465852;
  --muted: #55665f;
  --rule: #d3dcd8;
  --rule-strong: #b5c2bc;
  --pine: #0b5d4b;
  --pine-deep: #072f27;
  --pine-tint: #e3f0ea;
  --gold: #e3b341;
  --gold-deep: #8a6412;
  --danger: #a3271d;
  --danger-tint: #fcedeb;
  --warn-ink: #5c4300;
  --warn-tint: #fff6dc;
  --warn-rule: #e5cf8a;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Iowan Old Style", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--sans); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pine-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 2px; border-radius: 3px; }
.site-footer :focus-visible, .hero-dark :focus-visible { outline-color: var(--gold); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--pine-deep); color: #fff; padding: 10px 14px; border-radius: var(--radius); z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.125rem; }
.brand:hover { color: var(--ink); }
.brand svg { width: 32px; height: 32px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: var(--radius); font-size: .9375rem; font-weight: 500; }
.site-nav a:hover { background: var(--pine-tint); color: var(--pine-deep); }
.site-nav a[aria-current="page"] { color: var(--pine-deep); box-shadow: inset 0 -2px 0 var(--pine); border-radius: 0; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--rule-strong); background: var(--surface); border-radius: var(--radius); color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 820px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--rule); padding: 8px clamp(16px, 4vw, 32px) 16px; box-shadow: 0 12px 24px -12px rgba(7, 47, 39, .25); }
  .js .site-header[data-open="true"] .site-nav { display: flex; }
  .js .site-nav a { padding: 14px 8px; border-bottom: 1px solid var(--rule); border-radius: 0; font-size: 1rem; }
  .js .site-nav a[aria-current="page"] { box-shadow: none; font-weight: 700; }
  .site-nav { flex-wrap: wrap; padding-bottom: 8px; }
  .bar { flex-wrap: wrap; }
  .site-nav a { padding: 6px 10px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius); font: 600 .9375rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-deep); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--pine-deep); border-color: var(--rule-strong); }
.btn-secondary:hover { border-color: var(--pine); color: var(--pine-deep); }
.btn-quiet { background: transparent; color: var(--pine); }
.btn-quiet:hover { background: var(--pine-tint); color: var(--pine-deep); }
.btn-danger-text { color: var(--danger); }
.btn-danger-text:hover { background: var(--danger-tint); color: var(--danger); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .875rem; }
.btn-on-dark { background: var(--gold); color: var(--pine-deep); }
.btn-on-dark:hover { background: #f0c765; color: var(--pine-deep); }
.btn-ghost-dark { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.btn-ghost-dark:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* Home hero */
.hero { padding: clamp(40px, 8vw, 88px) 0 clamp(32px, 6vw, 64px); border-bottom: 1px solid var(--rule); background: var(--surface); }
.hero-grid { display: grid; gap: clamp(28px, 5vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.hero h1 { max-width: 16ch; }
.lede { font-size: clamp(1.0625rem, 2vw, 1.25rem); color: var(--ink-2); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-note { margin-top: 20px; font-size: .875rem; color: var(--muted); max-width: 52ch; }

/* Sections */
.section { padding: clamp(40px, 7vw, 72px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { max-width: 62ch; margin-bottom: 28px; }
.section-head p { color: var(--ink-2); margin-bottom: 0; }
.section.alt { background: var(--surface); }

/* Country directory */
.directory { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.directory li { border-bottom: 1px solid var(--rule-strong); }
.dir-link { display: grid; gap: 4px 20px; grid-template-columns: auto 1fr auto; align-items: center; padding: 18px 8px; text-decoration: none; color: var(--ink); }
.dir-link:hover { background: var(--pine-tint); color: var(--ink); }
.dir-cur { grid-row: span 2; font: 700 .8125rem/1 var(--sans); border: 1.5px solid var(--pine); color: var(--pine-deep); border-radius: 4px; padding: 8px 10px; min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; }
.dir-name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }
.dir-tools { grid-column: 2; color: var(--ink-2); font-size: .9375rem; }
.dir-go { grid-column: 3; grid-row: 1 / span 2; color: var(--pine); font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { .dir-link { grid-template-columns: auto 1fr; } .dir-go { display: none; } }

/* Definition columns */
.cols { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 2px solid var(--ink); }
@media (min-width: 760px) { .cols { grid-template-columns: repeat(3, 1fr); } .cols > div + div { border-left: 1px solid var(--rule-strong); } .cols > div { padding-right: 24px; } .cols > div + div { padding-left: 24px; } }
.cols > div { padding-top: 20px; padding-bottom: 20px; }
@media (max-width: 759px) { .cols > div + div { border-top: 1px solid var(--rule-strong); } }
.cols h3 { margin-bottom: .4em; }
.cols p { margin: 0; color: var(--ink-2); }

.checklist { list-style: none; margin: 0; padding: 0; max-width: 70ch; }
.checklist li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--rule); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 7px; border-left: 2.5px solid var(--pine); border-bottom: 2.5px solid var(--pine); transform: rotate(-45deg); }

.table-wrap { overflow-x: auto; }
table.plain { width: 100%; border-collapse: collapse; font-size: .9375rem; }
table.plain th, table.plain td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.plain thead th { border-bottom: 2px solid var(--ink); font-weight: 700; }

.notice { border: 1px solid var(--warn-rule); background: var(--warn-tint); color: var(--warn-ink); border-radius: var(--radius); padding: 16px 18px; }
.notice p:last-child { margin-bottom: 0; }
.notice a { color: var(--warn-ink); }

/* Country page header */
.country-head { background: var(--pine-deep); color: #fff; padding: clamp(28px, 5vw, 48px) 0 0; }
.country-head a { color: #fff; }
.crumbs { font-size: .875rem; margin-bottom: 14px; color: #b8d4cb; }
.crumbs a { color: #d5e8e1; }
.country-head h1 { margin-bottom: .3em; }
.country-head .lede { color: #cfe3dc; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 18px 0 26px; padding: 0; list-style: none; font-size: .9375rem; }
.facts li span { display: block; color: #9fc3b7; font-size: .8125rem; }
.switcher { display: flex; gap: 2px; overflow-x: auto; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.18); -webkit-overflow-scrolling: touch; }
.switcher a { display: block; padding: 14px 14px; color: #cfe3dc; text-decoration: none; font-size: .9375rem; white-space: nowrap; font-weight: 500; }
.switcher a:hover { color: #fff; background: rgba(255,255,255,.07); }
.switcher a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--gold); font-weight: 700; }

/* Calculator layout */
.calc { padding-block: 28px 8px; }
.calc-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.calc-grid > *, .hero-grid > *, .two > *, .foot-grid > * { min-width: 0; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 230px minmax(0, 1fr); gap: 32px; } }
.mt-16 { margin-top: 16px; } .mt-32 { margin-top: 32px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.tab { flex: none; scroll-snap-align: start; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink-2); border-radius: 999px; font: 600 .9375rem/1 var(--sans); cursor: pointer; white-space: nowrap; }
.tab:hover { border-color: var(--pine); color: var(--pine-deep); }
.tab.is-active { background: var(--pine); border-color: var(--pine); color: #fff; }
@media (min-width: 900px) {
  .tabs { flex-direction: column; overflow: visible; position: sticky; top: 84px; gap: 0; padding: 0; border-top: 2px solid var(--ink); }
  .tab { border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; text-align: left; padding: 14px 12px 14px 14px; min-height: 48px; box-shadow: inset 3px 0 0 transparent; }
  .tab:hover { background: var(--pine-tint); }
  .tab.is-active { background: var(--pine-tint); color: var(--pine-deep); box-shadow: inset 3px 0 0 var(--pine); }
}
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); min-width: 0; }
.panel:focus { outline: none; }
.panel-head h3 { font-size: 1.5rem; margin-bottom: .25em; }
.panel-head p { color: var(--ink-2); margin-bottom: .5em; }
.panel-year { font-size: .875rem; color: var(--muted) !important; }
.assump { margin: 12px 0 20px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.assump summary { cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: .9375rem; }
.assump ul { margin: 0; padding: 0 18px 14px 34px; color: var(--ink-2); font-size: .9375rem; }
.assump li { margin-bottom: 6px; }
.edit-banner { background: var(--pine-tint); border-left: 4px solid var(--pine); padding: 12px 14px; margin: 0 0 18px; border-radius: 0 var(--radius) var(--radius) 0; font-size: .9375rem; }

/* Form */
.group { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.group legend { padding: 0 0 8px; font: 700 .9375rem/1.3 var(--sans); color: var(--pine-deep); width: 100%; border-bottom: 1px solid var(--rule); margin-bottom: 14px; }
.fields-grid { display: grid; gap: 16px 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fields-grid { grid-template-columns: 1fr 1fr; } }
.field { min-width: 0; }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; }
.field input, .field select { width: 100%; min-height: 46px; padding: 0 12px; font: 400 1rem/1.2 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--rule-strong); border-radius: var(--radius); font-variant-numeric: tabular-nums; }
.field select { padding-right: 8px; }
.field input:hover, .field select:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--pine); outline-offset: 1px; border-color: var(--pine); }
.field [aria-invalid="true"] { border-color: var(--danger); background: var(--danger-tint); }
.affix { position: relative; }
.affix-t { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .8125rem; font-weight: 600; pointer-events: none; }
.affix-pre .affix-t { left: 12px; }
.affix-pre input { padding-left: 52px; }
.affix-post .affix-t { right: 12px; }
.affix-post input { padding-right: 32px; }
.hint { margin: 6px 0 0; font-size: .8125rem; color: var(--muted); }
.err { margin: 6px 0 0; font-size: .875rem; color: var(--danger); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.status { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--radius); background: var(--pine-tint); color: var(--pine-deep); font-size: .9375rem; font-weight: 500; }

.result { margin-top: 28px; }
.result:empty { display: none; }
.save-bar { margin-top: 16px; display: grid; gap: 12px; padding: 16px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.save-bar .field { max-width: 420px; }
.save-bar .actions { padding-top: 0; }

/* Statement */
.statement { background: #fff; border: 1px solid var(--rule-strong); border-top: 4px solid var(--pine); border-radius: var(--radius); }
.st-head { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; align-items: baseline; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.st-title { margin: 0; font-size: 1.125rem; }
.st-meta { margin: 0; display: flex; gap: 0; font-size: .8125rem; color: var(--muted); }
.st-meta span + span { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--rule-strong); }
.st-summary { padding: 20px 20px 8px; }
.st-label { margin: 0 0 2px; font-size: .9375rem; color: var(--ink-2); font-weight: 600; }
.st-value { margin: 0; font: 700 clamp(1.875rem, 6vw, 2.75rem)/1.1 var(--serif); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.st-eff { margin: 6px 0 0; font-size: .875rem; color: var(--muted); }
.split { padding: 12px 20px 4px; }
.split-bar { display: flex; height: 14px; border-radius: 3px; overflow: hidden; background: var(--rule); }
.split-seg { flex: 0 0 auto; width: calc(var(--w) * 1%); min-width: 2px; }
.k-a { background: #0b5d4b; } .k-b { background: #d9a72e; } .k-c { background: #5f7480; } .k-p { background: #9aa9a3; } .k-n { background: #bfdccf; }
.split-legend { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px 20px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); font-size: .875rem; }
.split-legend li { display: flex; align-items: baseline; gap: 8px; }
.sw { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.lg-v { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ledger-wrap { padding: 8px 0 0; overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger th, .ledger td { padding: 9px 20px; font-size: .9375rem; vertical-align: baseline; }
.ledger th { text-align: left; font-weight: 400; }
.ledger td { text-align: right; white-space: nowrap; }
.ledger tr.l th, .ledger tr.l td, .ledger tr.p th, .ledger tr.p td, .ledger tr.x th, .ledger tr.x td { border-bottom: 1px dotted var(--rule-strong); }
.ledger tr.h th { background: var(--pine-tint); font: 700 .8125rem/1.3 var(--sans); color: var(--pine-deep); padding-top: 8px; padding-bottom: 8px; }
.ledger tr.s th, .ledger tr.s td { font-weight: 700; border-top: 1px solid var(--ink-2); }
.ledger tr.z th, .ledger tr.z td { font-weight: 700; font-size: 1.0625rem; }
.ledger tr.z td { border-bottom: 4px double var(--ink); }
.st-warn { list-style: none; margin: 14px 20px 0; padding: 0; }
.st-warn li { background: var(--warn-tint); border: 1px solid var(--warn-rule); color: var(--warn-ink); padding: 10px 14px; border-radius: var(--radius); font-size: .9rem; margin-bottom: 8px; }
.st-inputs { margin: 14px 20px 0; border-top: 1px solid var(--rule); }
.st-inputs summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: .9375rem; }
.inputs-list { margin: 0 0 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; font-size: .875rem; }
.inputs-list dt { color: var(--ink-2); } .inputs-list dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.st-foot { margin: 0; padding: 14px 20px 18px; font-size: .8125rem; color: var(--muted); border-top: 1px solid var(--rule); margin-top: 12px; }

/* Saved scenarios */
.saved { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--ink); }
.saved-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.saved-head h2 { font-size: 1.375rem; margin: 0; }
.saved-items { list-style: none; margin: 0; padding: 0; }
.saved-item { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.saved-main { min-width: 0; flex: 1 1 240px; }
.saved-name { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.saved-meta, .saved-sum { margin: 0; font-size: .875rem; color: var(--ink-2); }
.saved-actions { display: flex; gap: 4px; }

.below { padding-block: 32px 56px; }
.two { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .two { grid-template-columns: 1fr 1fr; } }
.linklist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.linklist li { border-bottom: 1px solid var(--rule); padding: 10px 0; }

/* Document pages */
.doc { padding: clamp(32px, 6vw, 64px) 0 72px; }
.doc-inner { max-width: 74ch; }
.doc h1 { font-size: clamp(1.875rem, 4.4vw, 2.75rem); }
.doc h2 { font-size: 1.375rem; margin-top: 2em; padding-top: .8em; border-top: 1px solid var(--rule); }
.doc h3 { margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.doc .meta { color: var(--muted); font-size: .9375rem; }
.summary-box { background: var(--pine-tint); border-left: 4px solid var(--pine); padding: 16px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0; }
.summary-box p:last-child, .summary-box ul:last-child { margin-bottom: 0; }
.toc { border: 1px solid var(--rule); background: var(--surface); padding: 14px 18px; border-radius: var(--radius); margin: 20px 0; }
.toc ol { margin: 0; columns: 2 220px; }
.form-grid { display: grid; gap: 16px; max-width: 560px; margin-top: 20px; }
.form-grid textarea { width: 100%; min-height: 150px; padding: 12px; font: inherit; border: 1px solid var(--rule-strong); border-radius: var(--radius); }
.form-grid textarea:focus-visible { outline: 3px solid var(--pine); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--pine-deep); color: #cfe3dc; padding: 48px 0 28px; margin-top: 0; }
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.4); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font: 700 .9375rem/1.3 var(--sans); color: #fff; margin-bottom: 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.foot-brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: #fff; margin: 0 0 8px; }
.foot-note { font-size: .875rem; max-width: 44ch; }
.foot-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); font-size: .8125rem; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }

.err-page { padding: 72px 0; }

/* Print */
@media print {
  :root { --paper: #fff; }
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .skip, .country-head, .tabs, .assump, .actions, .save-bar, .saved, .below, .hint, .edit-banner, .status, .panel-head p, .fields-grid, .group legend, .noprint, .switcher { display: none !important; }
  .calc { padding: 0; } .calc-grid { display: block; }
  .panel { border: 0; padding: 0; }
  .panel-head h3 { font-size: 16pt; }
  .result { margin-top: 0; }
  .statement { border: 1px solid #999; border-top: 3px solid #000; break-inside: avoid-page; }
  .ledger tr.h th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .split-seg, .sw { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: #000; }
}
@media (forced-colors: active) { .split-seg, .sw { forced-color-adjust: none; } }

@media (max-width: 480px) {
  .ledger th, .ledger td { padding: 9px 14px; }
  .st-head, .st-summary, .split { padding-left: 14px; padding-right: 14px; }
  .st-warn, .st-inputs { margin-left: 14px; margin-right: 14px; }
  .st-foot { padding-left: 14px; padding-right: 14px; }
}
