/* sales.ventustan.com: landing page and dashboard.
   Magicboo red (#b11e29, from the logo) on blush white, tabular figures. */

:root {
  --bg: #fbf4f3;
  --card: #ffffff;
  --ink: #2b1d1e;
  --muted: #6e5c5d;
  --line: #efdfdd;
  --grid: #f5eae9;
  --money: #b11e29;
  --money-soft: rgba(177, 30, 41, 0.06);
  --brand: #b11e29;
  --on-brand: #ffffff;
  --warn-bg: #fff4e0;
  --warn-ink: #7a3e00;
  --warn-line: #f0c27a;
  --focus: #2b62d9;
  --good: #0ca30c;
  --bad: #d03b3b;
  --radius-lg: 14px;
  --radius-sm: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1213;
    --card: #241a1b;
    --ink: #f3e9e8;
    --muted: #b3a1a2;
    --line: #3a2a2b;
    --grid: #2e2223;
    --money: #e5606a;
    --money-soft: rgba(229, 96, 106, 0.1);
    --brand: #e5606a;
    --on-brand: #1a1213;
    --warn-bg: #2e2210;
    --warn-ink: #ffd59a;
    --warn-line: #6b4a17;
    --focus: #8fb1ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1213;
  --card: #241a1b;
  --ink: #f3e9e8;
  --muted: #b3a1a2;
  --line: #3a2a2b;
  --grid: #2e2223;
  --money: #e5606a;
  --money-soft: rgba(229, 96, 106, 0.1);
  --brand: #e5606a;
  --on-brand: #1a1213;
  --warn-bg: #2e2210;
  --warn-ink: #ffd59a;
  --warn-line: #6b4a17;
  --focus: #8fb1ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* Elements below set display, which would otherwise override the hidden attribute. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  /* Fraunces: the serif the Magicboo farm uses beside the logo. */
  font: 400 16px/1.5 "Fraunces", Georgia, "Times New Roman", serif;
  font-variant-numeric: tabular-nums lining-nums;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

button, .button {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
button:hover, .button:hover { border-color: var(--muted); }
button:disabled { opacity: 0.6; cursor: progress; }

/* ---------- landing ---------- */

.landing {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.landing-card { width: 100%; max-width: 380px; text-align: center; }
.landing .logo { display: block; margin: 0 0 0.9rem; }
.landing-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 0 1.75rem; }
.landing-brand .logo { margin: 0 0 0.4rem; }
.landing-brand .est-line { text-transform: none; letter-spacing: 0.08em; font-size: 0.7rem; }
.landing-brand .wordmark { height: 28px; }
.landing-brand .tagline { font-size: 0.7rem; }
.landing h1 {
  color: var(--brand);
  font-size: clamp(2.2rem, 8vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.landing p { color: var(--muted); margin: 0 0 1.75rem; }
.google {
  width: 100%;
  justify-content: center;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: var(--on-brand);
  border-color: var(--brand);
}
.google:hover { border-color: var(--brand); opacity: 0.92; }
.google svg { width: 18px; height: 18px; background: #fff; border-radius: 50%; padding: 2px; }
.notice {
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  font-size: 0.92rem;
  margin: 0 0 1.25rem;
}

/* ---------- dashboard ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 8px;
}
/* Brand lockup from the Magicboo logo: mark, wordmark, tagline; page title beside it. */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; flex-wrap: wrap; }
.brand img { flex: none; display: block; }
/* align-items: flex-start keeps the wordmark at its own width (stretching distorted it). */
/* Wordmark and tagline centred on each other, about the same width, as in the logo. */
.brand-lockup { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; }
.wordmark { height: 25px; width: auto; max-width: none; object-fit: contain; }
.tagline { font: 500 0.55rem/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0.13em; text-transform: uppercase; color: var(--brand); white-space: nowrap; text-align: center; }
.tagline .est { margin-left: 0.6em; letter-spacing: 0.08em; text-transform: none; opacity: 0.85; }
.brand-title { padding-left: 12px; margin-left: 2px; border-left: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 1rem; }
.who { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.92rem; white-space: nowrap; }
.who a { color: var(--muted); }

.banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  margin: 12px 0 0;
}
.banner svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.banner p { margin: 0; }
.banner p + p { margin-top: 0.15rem; }

/* Today is the headline; the other three sit beside it as a ledger column. */
.figures {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
  margin: 20px 0 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.today { padding: 28px 28px 24px; border-right: 1px solid var(--line); }
.today h2 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--muted); }
.today .amount {
  display: block;
  margin: 6px 0 10px;
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.today .amount .cur { font-size: 0.42em; font-weight: 600; letter-spacing: 0; margin-right: 0.2em; color: var(--money); vertical-align: 0.9em; }
.today .amount.empty { color: var(--muted); font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.01em; }
.today .meta { margin: 0; color: var(--muted); font-size: 0.95rem; }

.ledger { margin: 0; display: grid; }
.ledger div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.ledger div:last-child { border-bottom: 0; }
.ledger dt { color: var(--muted); font-size: 0.95rem; }
.ledger dt small { display: block; font-size: 0.8rem; }
.ledger dd { margin: 0; font-size: 1.35rem; font-weight: 600; letter-spacing: 0; text-align: right; white-space: nowrap; }

section.panel { margin: 0 0 28px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  flex-wrap: wrap;
}
.panel-head h2 { margin: 0; font-size: 1.15rem; letter-spacing: -0.01em; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--card); }
.seg button { border: 0; padding: 0.3rem 0.85rem; background: transparent; color: var(--muted); font-size: 0.88rem; }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }

.chart-box {
  position: relative;
  height: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 12px 8px 4px;
}
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); padding: 16px; text-align: center; }

.table-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 0.85rem; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
td.num, td.nowrap { white-space: nowrap; }
td.total { font-weight: 650; }
td details summary { cursor: pointer; color: var(--muted); font-size: 0.88rem; list-style: none; }
td details summary::-webkit-details-marker { display: none; }
td details summary::before { content: "+ "; }
td details[open] summary::before { content: "\2212  "; }
td details pre {
  margin: 0.5rem 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  font-size: 0.88rem;
  background: var(--money-soft);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  max-width: 46ch;
}
.empty-row td { color: var(--muted); text-align: center; padding: 2rem 1rem; }

/* ---------- branches ---------- */

.pick { display: inline-flex; align-items: center; gap: 6px; }
.pick input[type="date"] {
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  min-height: 2.25rem;
}
.pick button { padding: 0; width: 2.25rem; height: 2.25rem; justify-content: center; }
.pick button:disabled { opacity: 0.35; cursor: default; }
.branch-grid { display: grid; gap: 16px; }
.branch-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.swatch { flex: none; width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.swatch.swatch-none { background: none; }
/* State flag beside a store name (2:3 crop, thin outline so white flags show on white). */
.flag { flex: none; display: inline-block; width: 21px; height: 14px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); vertical-align: middle; }
.flag.flag-none { box-shadow: none; }
.flag.flag-logo { width: 14px; height: 14px; object-fit: contain; box-shadow: none; }
.event-mark { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.chip .flag { width: 18px; height: 12px; }
.tag { display: inline-flex; align-items: center; border-radius: 4px; padding: 0 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--brand); background: var(--money-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.sub { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 400; margin-top: 2px; }
table.branches td { vertical-align: middle; }
table.branches td.num { white-space: nowrap; }
table.branches td.month { width: 38%; min-width: 220px; }
.month-line { display: flex; justify-content: space-between; gap: 8px; font-size: 0.88rem; }
.month-line .pct { font-weight: 650; }
.pct-wrap { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
/* Month countdown: soft red pill, solid red in the last 3 days when the target is at risk. */
.days-left { display: inline-flex; align-items: center; border-radius: 999px; padding: 1px 9px; font-size: 0.76rem; font-weight: 650; white-space: nowrap; background: var(--money-soft); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.days-left.urgent { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.days-left.big { font-size: 0.9rem; padding: 4px 12px; }
.head-pill { margin-left: 8px; vertical-align: 3px; }
.head-pill .days-left { font-size: 0.78rem; }
.bar { height: 8px; border-radius: 4px; background: var(--grid); overflow: hidden; margin: 6px 0 4px; }
.bar span { display: block; height: 100%; border-radius: 4px; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; font-weight: 600; color: var(--ink); white-space: nowrap; margin-top: 2px; }
/* Month pace: a soft pill with words, distinct from the day target's tick or cross. */
.pace { display: inline-flex; align-items: center; border-radius: 999px; padding: 1px 9px; font-size: 0.76rem; font-weight: 650; white-space: nowrap; color: var(--ink); }
.pace.good { background: color-mix(in srgb, var(--good) 16%, transparent); border: 1px solid color-mix(in srgb, var(--good) 45%, transparent); }
.pace.bad { background: color-mix(in srgb, var(--bad) 12%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); }
.pace-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 4px; }
.pace-line small { color: var(--muted); font-size: 0.82rem; }
tr.region-sg td, tr.row-sg td { border-top: 2px solid var(--line); }
.status-icon { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: #fff; font-size: 0.68rem; line-height: 1; }
.status.good .status-icon { background: var(--good); }
.status.bad .status-icon { background: var(--bad); }
.pie-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px 12px; }
.pie-card h3 { margin: 0; font-size: 0.98rem; }
.pie-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 8px; }
.pie-box { position: relative; height: 220px; }
.legend { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; max-width: 420px; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto 3.2em; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.legend li:last-child { border-bottom: 0; }
.legend .lg-val { font-weight: 600; }
.legend .lg-pct { color: var(--muted); text-align: right; }
.pie-note { grid-column: 1 / -1; margin: 6px 0 0; }
.hint { color: var(--muted); font-size: 0.82rem; margin: 10px 2px 0; max-width: 70ch; }

/* ---------- insights ---------- */

.today .meta.compare { margin-top: 4px; }
.today .meta.compare:empty { display: none; }
.trend { white-space: nowrap; }
.ledger dt small.trend, .ledger dt small:empty { display: block; }
td.num .trend.sub { font-size: 0.78rem; }

.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 18px; }
.reporting-line { margin: 0 0 6px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; }
.chips-label { color: var(--muted); font-size: 0.88rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--grid); border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.88rem; color: var(--ink); }
.inactive { margin-top: 10px; }
.inactive summary { cursor: pointer; color: var(--muted); font-size: 0.88rem; }
.inactive ul { margin: 6px 0 0; padding-left: 1.2rem; color: var(--muted); font-size: 0.88rem; columns: 2; column-gap: 24px; }

.sub-head { margin-top: 20px; }
.sub-head h3 { margin: 0; font-size: 1rem; }
table.stack td { vertical-align: middle; }
table.stack td.rank, table.stack th.rank { width: 2.5rem; color: var(--muted); }
table.stack td.pctcell { min-width: 150px; }
table.stack .pct { font-weight: 650; font-size: 0.88rem; }
table.stack .bar { margin: 4px 0 0; }
.rank-chip { display: none; }
.branch-name.plain { font-weight: 400; }
td.region-name { font-weight: 600; }

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0 0 40px;
}
.foot p { margin: 0; }
.update { display: flex; align-items: center; gap: 12px; max-width: 560px; }
.update button { flex: none; }
.update p { font-size: 0.82rem; }
.foot .credit { flex-basis: 100%; font-size: 0.75rem; }

@media screen and (max-width: 720px) {
  .figures { grid-template-columns: 1fr; }
  .today { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 20px 20px; }
  .ledger div { padding: 14px 20px; }
  .chart-box { height: 240px; }
  .col-sender, .col-time, .col-orders { display: none; }
  .pie-body { grid-template-columns: 1fr; }
  .pie-box { height: 200px; }
  /* Each branch becomes a card: name, then sales and day target side by side, then the month. */
  table.branches thead { display: none; }
  table.branches, table.branches tbody { display: block; }
  table.branches tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.branches tr:last-child { border-bottom: 0; }
  table.branches td { display: block; padding: 0; border: 0; min-width: 0; }
  table.branches td:first-child, table.branches td.month { grid-column: 1 / -1; width: auto; }
  table.branches td.num { text-align: left; }
  table.branches td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 0.78rem; font-weight: 600; margin-bottom: 2px; }
  table.branches .empty-row td { padding: 1rem 0; }
  table.branches .status { white-space: normal; align-items: flex-start; }
  table.branches .status-icon { flex: none; margin-top: 1px; }
  /* Ranking, regions and advisors become cards too. */
  table.stack thead { display: none; }
  table.stack, table.stack tbody { display: block; }
  table.stack tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { display: block; padding: 0; border: 0; min-width: 0; }
  table.stack td.rank { display: none; }
  table.stack td:nth-child(2), table.stack td.pctcell, table.stack tr.empty-row td { grid-column: 1 / -1; }
  table.regions td:nth-child(2) { grid-column: auto; }
  table.regions td:first-child, table.regions td:last-child { grid-column: 1 / -1; }
  table.stack td.num { text-align: left; }
  table.stack td.pctcell { min-width: 0; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 0.78rem; font-weight: 600; margin-bottom: 2px; }
  table.stack td.pctcell .pct { display: inline; }
  table.stack .rank-chip { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; border-radius: 999px; background: var(--grid); color: var(--muted); font-size: 0.8rem; font-weight: 600; }
  table.stack .status { white-space: normal; }
  table.stack .empty-row td { padding: 1rem 0; }
  .inactive ul { columns: 1; }
  .top { align-items: flex-start; }
  .update { flex-direction: column; align-items: flex-start; gap: 6px; }
  th, td { padding: 0.65rem 0.75rem; }
}

.print-only, img.print-chart { display: none; }

/* Tabs: Day / Month / Reports, so the page stays short. */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 20px; position: sticky; top: 0; z-index: 5; background: var(--bg); padding-top: 6px; }
.tabs button { border: 0; border-radius: 0; background: none; color: var(--muted); padding: 0.6rem 1rem; font-size: 1rem; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.tabs button:hover { color: var(--ink); }
.show-all { display: block; width: 100%; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: none; color: var(--brand); font-size: 0.9rem; padding: 0.7rem; justify-content: center; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; }
.pager button:disabled { opacity: 0.4; cursor: default; }
.pick select { font: inherit; font-size: 0.92rem; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.9rem; min-height: 2.25rem; }
.pdf-btn { padding: 0.35rem 0.8rem; font-size: 0.85rem; gap: 6px; }
.pdf-menu { position: relative; }
.pdf-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: grid; gap: 4px; min-width: 230px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.pdf-pop button { justify-content: flex-start; border-radius: 6px; border: 0; padding: 0.5rem 0.7rem; font-size: 0.9rem; white-space: nowrap; }
.pdf-pop button:hover { background: var(--money-soft); }
.pdf-pop small { color: var(--muted); padding: 2px 0.7rem 0; font-size: 0.78rem; }

/* PDF / print: light theme, desktop tables, no controls, sections kept whole. */
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  :root:root:root {
    --bg: #ffffff; --card: #ffffff; --ink: #2b1d1e; --muted: #6e5c5d; --line: #e6d6d4; --grid: #f2e6e5;
    --money: #b11e29; --money-soft: rgba(177, 30, 41, 0.06); --brand: #b11e29; --on-brand: #ffffff;
    color-scheme: light;
  }
  html, body { background: #fff; font-size: 11.5px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .wrap { max-width: none; padding: 0; }
  .print-only { display: block; }
  .print-meta { color: var(--muted); margin: 0 0 8px; }
  button, .seg, .pick button, .who, .banner, .foot, .hint, .col-msg, details.inactive, #pie-seg, #range-seg { display: none !important; }
  .pick input[type="date"] { border: 0; padding: 0; background: none; }
  /* Keep rows, cards and charts whole, but let long sections flow onto the next page. */
  .figures, .pie-card, .chart-box, tr, .reporting-card { break-inside: avoid; page-break-inside: avoid; }
  .panel-head, h2 { break-after: avoid; page-break-after: avoid; }
  .figures { margin: 8px 0 14px; }
  section.panel { margin-bottom: 14px; }
  .chart-box, .pie-box { height: auto; }
  .chart-box canvas, .pie-box canvas { display: none !important; }
  img.print-chart { display: block; width: 100%; height: auto; }
  /* A day report: only that day's reports, and no "today" reporting check for a past day. */
  /* Every tab prints, whichever is open. */
  section[data-tab][hidden] { display: block !important; }
  body.print-day-only section[data-tab="month"] { display: none !important; }
  body.print-past-day #reporting-panel[hidden] { display: none !important; }
  .tabs, .pager, .show-all, #report-store { display: none !important; }
  body.print-past-day #reporting-panel { display: none !important; }
  .pie-box img.print-chart { width: auto; max-width: 100%; max-height: 200px; margin: 0 auto; }
  .table-box { overflow: visible; }
  th, td { padding: 0.45rem 0.6rem; }
  .today .amount { font-size: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media screen and (max-width: 720px) {
  .who { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }
  .brand-title { flex-basis: 100%; border-left: 0; padding-left: 0; margin-left: 0; font-size: 0.95rem; }
  .tagline { font-size: 0.56rem; letter-spacing: 0.12em; }
}
