/* Golden Tee records. Phone first (360px), big and clear, strong contrast, every tap target at least 48px. */
:root {
  --bg: #f6f3ea;
  --card: #ffffff;
  --ink: #17201b;
  --muted: #4f5a53;
  --line: #cfc8b6;
  --green: #1f5a3a;
  --green-dark: #163f29;
  --green-soft: #e3f1e7;
  --gold: #b8860b;
  --gold-soft: #fff4d6;
  --red: #a4231b;
  --red-soft: #fde8e6;
  --amber: #8a5a00;
  --focus: #1d4ed8;
  --radius: 14px;
  --tap: 52px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 19px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  overflow-x: hidden;
}
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0.4em 0 0.5em; }
h2 { font-size: 1.3rem; margin: 1.2em 0 0.5em; }
h3 { font-size: 1.1rem; margin: 0 0 0.4em; }
p { margin: 0.4em 0; }
a { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
s { color: var(--muted); }

/* Top bar: Home (or Back), the title, Help. The same everywhere. */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 8px;
  background: var(--green-dark); color: #fff;
  padding: 6px 12px; padding-top: max(6px, env(safe-area-inset-top));
  min-height: 60px;
}
.top-home {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff; text-decoration: none; font-weight: 700;
  min-height: 48px; padding: 0 12px; border-radius: 10px; background: rgba(255,255,255,0.12);
  white-space: nowrap;
}
.top-home.brand { background: none; color: #f3d27a; }
.top-title { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.help { position: static; }
.help > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 48px; padding: 0 14px; border-radius: 10px;
  background: #f3d27a; color: #1a1a1a; font-weight: 700;
}
.help > summary::-webkit-details-marker { display: none; }
.help-body {
  position: absolute; left: 8px; right: 8px; top: 100%;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--gold); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  max-width: 560px; margin-left: auto;
}
.help-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 8px 16px 40px; }
.wrap.wide { max-width: 1200px; }
.foot { text-align: center; padding: 8px 16px 24px; }
.foot a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 8px 18px;
  border: 2px solid var(--green); border-radius: 12px;
  background: var(--card); color: var(--green-dark);
  font: inherit; font-weight: 700; text-decoration: none; text-align: center;
  cursor: pointer; touch-action: manipulation;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--green); color: #fff; }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.big { min-height: 60px; font-size: 1.1rem; width: 100%; }
.btn.small { min-height: 48px; padding: 4px 14px; font-size: 0.95rem; }
.actions { display: flex; gap: 10px; margin: 18px 0; }
.actions > * { flex: 1; }
.actions.col { flex-direction: column; }
.actions.sticky {
  position: sticky; bottom: 0; z-index: 5;
  margin: 18px -16px 0; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(246,243,234,0.85), var(--bg) 30%);
}

/* Home */
.hello { margin-bottom: 0; }
.lead { color: var(--muted); font-size: 1.05rem; }
.status { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.status-item {
  display: flex; align-items: center; min-height: 56px; padding: 8px 12px;
  background: var(--card); border: 2px solid var(--line); border-radius: 12px;
  text-decoration: none; color: var(--ink); font-size: 0.95rem;
}
.status-item strong { font-size: 1.4rem; margin-right: 6px; }
.status-item.ok { border-color: var(--green); background: var(--green-soft); }
.status-item.todo { border-color: var(--gold); background: var(--gold-soft); }
.tasks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.task {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 140px; padding: 14px 10px;
  background: var(--card); border: 2px solid var(--line); border-radius: 18px;
  text-decoration: none; color: var(--ink); box-shadow: 0 2px 0 var(--line);
}
.task:active { background: var(--green-soft); }
.task-icon { font-size: 2.8rem; line-height: 1; margin-bottom: 8px; }
.task-label { font-weight: 800; font-size: 1.1rem; line-height: 1.2; }
.task-sub { color: var(--muted); font-size: 0.85rem; }

/* Forms */
.form, .review, .signin { margin-top: 4px; }
.signin { max-width: 440px; margin: 24px auto; }
.field { margin: 16px 0; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.field input[type=text], .field input[type=tel], .field input[type=password], .field input[type=date], .field input[type=time],
.field input[type=search], .field input:not([type]), .field select, .item-row input, .filters input, .filters select, .yearpick select, .card input[type=date] {
  width: 100%; min-height: var(--tap);
  padding: 10px 14px; font: inherit; font-size: 1.1rem;
  color: var(--ink); background: #fff;
  border: 2px solid #8e877a; border-radius: 12px;
}
.field input:focus, .field select:focus { border-color: var(--green); outline: 3px solid rgba(31,90,58,0.25); }
.has-error input, .has-error .tile-face { border-color: var(--red) !important; }
.hint { color: var(--muted); font-size: 0.92rem; }
.center { text-align: center; }

.amount { display: flex; align-items: stretch; }
.amount-sign {
  display: flex; align-items: center; padding: 0 12px; font-weight: 800; font-size: 1.2rem;
  background: var(--gold-soft); border: 2px solid #8e877a; border-right: 0; border-radius: 12px 0 0 12px;
}
.amount input { border-radius: 0 12px 12px 0 !important; font-size: 1.3rem !important; font-weight: 700; letter-spacing: 0.02em; }
.amount.small input { font-size: 1.05rem !important; min-height: 48px; padding: 6px 10px; width: 100%; }
.words { color: var(--green-dark); font-weight: 600; min-height: 1.4em; font-size: 0.95rem; }

/* Big tap-to-pick tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiles.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { position: relative; display: block; }
.tile input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tile-face {
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  min-height: 64px; padding: 8px 6px; height: 100%;
  background: #fff; border: 2px solid #8e877a; border-radius: 12px;
  font-weight: 700; line-height: 1.2;
}
.tile-sub { font-weight: 500; font-size: 0.8rem; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.tile input:checked + .tile-face { background: var(--green); border-color: var(--green-dark); color: #fff; box-shadow: inset 0 0 0 3px #f3d27a; }
.tile input:checked + .tile-face .tile-sub { color: #e6f3ea; }
.tile input:focus-visible + .tile-face { outline: 3px solid var(--focus); outline-offset: 2px; }
.tile.is-disabled .tile-face { background: #e8e5dd; color: #6b6b6b; border-style: dashed; }
.tile.is-disabled input { cursor: not-allowed; }

.stepper { display: flex; gap: 10px; align-items: stretch; max-width: 280px; }
.stepper input { text-align: center; font-size: 1.4rem !important; font-weight: 800; }
.btn.step { min-width: 64px; font-size: 1.6rem; padding: 0; }

.more { margin: 16px 0; background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 0 14px; }
.more > summary { min-height: 52px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.more[open] { padding-bottom: 6px; }
.total-line { font-size: 1.15rem; font-weight: 800; color: var(--green-dark); min-height: 1.4em; }
.computed {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 14px; margin: 10px 0; border-radius: 12px; background: var(--green-soft); border: 2px solid #b8d8c2;
}
.computed.total { background: var(--green); color: #fff; border-color: var(--green-dark); font-size: 1.2rem; }

/* Messages */
.notice { padding: 14px 16px; border-radius: 12px; font-weight: 700; margin: 12px 0; border: 2px solid; }
.notice.error { background: var(--red-soft); color: var(--red); border-color: var(--red); }
.notice.ok { background: var(--green-soft); color: var(--green-dark); border-color: var(--green); }
.notice.warn { background: var(--gold-soft); color: #6b4400; border-color: var(--gold); }

/* Check before saving */
.summary { font-size: 1.25rem; font-weight: 700; background: var(--card); border-left: 6px solid var(--gold); padding: 12px 14px; border-radius: 8px; }
.facts { margin: 12px 0; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.facts .total { background: var(--green-soft); font-size: 1.2rem; }
.flag { display: inline-block; font-size: 0.8rem; font-weight: 600; background: var(--gold-soft); color: #6b4400; border-radius: 6px; padding: 1px 6px; }

.saved { text-align: center; }
.saved-tick { font-size: 4rem; color: #fff; background: var(--green); width: 110px; height: 110px; line-height: 110px; border-radius: 50%; margin: 18px auto 0; }
.saved h1 { color: var(--green); font-size: 2.2rem; }

/* Rooms now */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.room { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; border: 3px solid; text-decoration: none; color: var(--ink); min-width: 0; }
.room.free { background: var(--green-soft); border-color: var(--green); }
.room.busy { background: #fff7e6; border-color: var(--gold); }
.room-name { font-weight: 800; font-size: 1.25rem; margin: 0; }
.room-guest { font-weight: 700; font-size: 1.1rem; margin: 0; overflow-wrap: anywhere; }
.room-meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 6px; }
.room-phone, .room-more { display: inline-flex; align-items: center; min-height: 48px; }
.room .btn { margin-top: auto; }

/* Lists of records */
.recs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.rec {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; min-height: 56px;
  background: var(--card); border: 2px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink);
}
.rec.muted { opacity: 0.75; }
.rec-top { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.rec-top > span:first-child { overflow-wrap: anywhere; }
.rec-sub { color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }
.empty { color: var(--muted); padding: 12px; background: var(--card); border-radius: 12px; border: 2px dashed var(--line); }
.pill { font-size: 0.8rem; font-weight: 700; background: #ece7da; border-radius: 999px; padding: 2px 10px; white-space: nowrap; align-self: center; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.tab { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--green); text-decoration: none; font-weight: 700; color: var(--green-dark); background: var(--card); }
.tab.on { background: var(--green); color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 8px 0 12px; }
.field.inline { margin: 0; flex: 1 1 140px; }
.field.inline.grow { flex: 2 1 220px; }
.table-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 10px 0; }
.title-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.yearpick { display: flex; align-items: center; gap: 8px; }
.yearpick select { width: auto; min-width: 110px; }
.yearpick label { font-weight: 700; }

.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 4px 16px 16px; margin: 16px 0; }
.card > h2:first-child { margin-top: 12px; }
form.card { padding-top: 4px; }

/* Settings */
.price-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.price-room { border: 2px solid var(--line); border-radius: 12px; padding: 6px 12px 10px; margin: 0; min-width: 0; }
.price-room legend { font-weight: 800; padding: 0 6px; }
.price-row { display: grid; grid-template-columns: 1fr 150px; align-items: center; gap: 8px; margin: 6px 0; }
.items { list-style: none; padding: 0; margin: 0; }
.items li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.items li.muted { opacity: 0.7; }
.item-row { display: flex; gap: 8px; flex: 1 1 240px; min-width: 0; }
.item-row input { flex: 1; min-width: 0; }
.item-row.add { margin-top: 10px; }
.item-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* History and activity */
.history ol, .log { list-style: none; padding: 0; margin: 0; }
.history li { background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.changes { list-style: none; padding: 0; margin: 6px 0 0; font-size: 0.95rem; }
.changes li { border: 0; padding: 2px 0; margin: 0; }
.changes .k { color: var(--muted); }
.log li { margin: 8px 0; }
.log a, .log li > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; min-height: 56px; background: var(--card); border: 2px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.log-what { font-weight: 600; overflow-wrap: anywhere; }
.log-meta { color: var(--muted); font-size: 0.88rem; }

/* Analytics */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin: 12px 0; }
.kpi { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi-main { font-size: 1.8rem; font-weight: 800; margin: 0; }
.kpi-sub { color: var(--muted); font-size: 0.92rem; }
.up { color: var(--green); }
.down { color: var(--red); }
.charts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); }
.chart { margin: 0; padding: 12px; }
.chart figcaption { font-weight: 800; margin-bottom: 6px; }
.chart-box { position: relative; height: 280px; }
.tablebox { margin: 18px 0; }
.rtable { width: 100%; border-collapse: collapse; background: var(--card); border: 2px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 0.95rem; }
.rtable th, .rtable td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: left; }
.rtable th { background: #ece7da; font-size: 0.85rem; }
.rtable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rtable tfoot td { font-weight: 800; background: var(--green-soft); }

/* Phone: tables become cards. */
@media (max-width: 1000px) {
  .rtable, .rtable tbody, .rtable tfoot, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable { border: 0; background: none; }
  .rtable thead { display: none; }
  .rtable tr { background: var(--card); border: 2px solid var(--line); border-radius: 12px; margin: 8px 0; overflow: hidden; }
  .rtable tfoot tr { background: var(--green-soft); border-color: var(--green); }
  .rtable td { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #eee7d8; padding: 8px 12px; text-align: right; }
  .rtable td::before { content: attr(data-label); color: var(--muted); font-weight: 600; text-align: left; }
  .rtable td.first { font-weight: 800; background: #f4f0e6; }
  .rtable td.first::before { content: none; }
  .rtable td.first { justify-content: flex-start; text-align: left; }
}

/* Tablet and up: more columns. */
@media (min-width: 700px) {
  body { font-size: 20px; }
  .tasks { grid-template-columns: repeat(3, 1fr); }
  .status { max-width: 640px; }
  .form .tiles.cols-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form .tiles.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .actions.col { flex-direction: row; flex-wrap: wrap; }
  .actions.col > * { flex: 1 1 220px; }
}
@media (min-width: 1000px) {
  .tasks { grid-template-columns: repeat(4, 1fr); }
  .wrap:not(.wide) { max-width: 820px; }
}

[hidden] { display: none !important; }

/* Staff: permissions and a new password */
.perms { border: 0; padding: 0; margin: 12px 0; min-width: 0; }
.perms legend { font-weight: 800; margin-bottom: 4px; padding: 0; }
.check { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 4px; border-top: 1px solid var(--line); cursor: pointer; }
.check input { width: 28px; height: 28px; flex: none; accent-color: var(--green); }
.check.is-role { color: var(--muted); }
.newpass { background: var(--gold-soft); border: 3px solid var(--gold); border-radius: var(--radius); padding: 12px 16px; margin: 12px 0; }
.newpass-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 1.1rem; }
.newpass-row strong { font-size: 1.5rem; letter-spacing: 0.04em; font-family: ui-monospace, Menlo, Consolas, monospace; }
.refcode { font: 800 2.4rem/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.15em; text-align: center; background: var(--card); border: 3px dashed var(--red); border-radius: var(--radius); padding: 12px; }
.syslog details > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; min-height: 56px; background: var(--card); border: 2px solid var(--line); border-radius: 12px; }
.syslog details > summary::-webkit-details-marker { display: none; }
.syslog .lvl-error summary { border-color: var(--red); }
.syslog .lvl-warn summary { border-color: var(--gold); }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 800; border-radius: 6px; padding: 1px 8px; margin-right: 4px; background: var(--green-soft); color: var(--green-dark); }
.badge.warn { background: var(--gold-soft); color: #6b4400; }
.badge.error { background: var(--red-soft); color: var(--red); }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.08em; }
.detail { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.8rem; background: #1e2420; color: #e8efe9; padding: 12px; border-radius: 10px; margin: 6px 0; max-height: 420px; overflow-y: auto; }
.log-top { overflow-wrap: anywhere; }
.card.leaving { border-color: var(--red); background: var(--red-soft); }
.block-link { display: block; text-decoration: none; min-height: 48px; }

/* Sign out: a big tile on Home, and a clear button at the bottom of every page. */
.task-form { display: contents; }
.task-signout { width: 100%; font: inherit; cursor: pointer; background: #fbeeea; border-color: #d9a69f; }
.foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; }
.foot form { margin: 0; }
.btn.signout { border-color: var(--red); color: var(--red); min-height: 52px; }

/* Past days */
.days { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.day { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; min-height: 64px; background: var(--card); border: 2px solid var(--line); border-left-width: 8px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.day.done { border-left-color: var(--green); }
.day.missing { border-left-color: var(--red); background: #fff8f6; }
.day-name { font-weight: 800; font-size: 1.15rem; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.day-name small { font-weight: 500; font-size: 0.85rem; color: var(--muted); }
.day-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 0.85rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: #ece7da; }
.chip.ok { background: var(--green-soft); color: var(--green-dark); }
.chip.no { background: var(--red-soft); color: var(--red); }
.pastday { background: var(--gold-soft); border: 3px solid var(--gold); border-radius: var(--radius); padding: 12px 14px; font-weight: 800; font-size: 1.1rem; margin: 10px 0; }
.pastday a { margin-left: 6px; }
.daynav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.step h2 { display: flex; align-items: center; gap: 10px; }
.stepno { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; font-size: 1.1rem; flex: none; }
.step.todo { border-color: var(--gold); }
.step > .btn { margin-top: 12px; }
.goday { padding-top: 12px; }
.goday label { font-weight: 700; display: block; margin-bottom: 6px; }

/* Home: takings at a glance (founder, managers, admin) */
.glance { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); margin: 12px 0; }
.glance-card { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; min-height: 64px; background: var(--card); border: 2px solid var(--green); border-radius: 14px; text-decoration: none; color: var(--ink); }
.glance-title { font-weight: 700; color: var(--muted); }
.glance-main { font-size: 1.6rem; font-weight: 800; color: var(--green-dark); }
.glance-sub { font-size: 0.88rem; color: var(--muted); }
.glance-sub.warn { color: #8a5a00; font-weight: 700; }

/* Takings */
.periodnav { display: grid; grid-template-columns: 64px 1fr 64px; gap: 10px; align-items: center; margin: 8px 0; }
.periodnav .btn { width: 64px; padding: 0; font-size: 1.5rem; }
.periodnav-label { text-align: center; display: flex; flex-direction: column; gap: 2px; }
.periodnav-label strong { font-size: 1.2rem; }
.periodnav-label a { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; }
.btn.is-off { opacity: 0.3; pointer-events: none; }
.takings-kpis { grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); }
.kpi.small { padding: 10px 12px; }
.kpi.small .kpi-main { font-size: 1.3rem; }
.kpi.small.big { border-color: var(--green); background: var(--green-soft); }
.kpi.small.up .kpi-main { color: var(--green); }
.kpi.small.down .kpi-main { color: var(--red); }
.rtable td a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
