/* Rathod Law, Command Centre
   Shared styling for the staff hub and the client intake form.
   Brand: gold #FFD550 on near-black, carried over from rathodlaw.com.

   Gold is an accent, never a surface. It marks the one thing that matters in a
   view: the active tab, a primary action, progress. Spreading it around is what
   makes a brand colour read as decoration instead of signal. */

:root {
  /* Brand */
  --gold: #ffd550;
  --gold-dim: #e8bf3f;
  --gold-deep: #8a6a00;
  --gold-wash: #fff8e2;

  /* Ink, the dark end */
  --ink: #101216;
  --ink-2: #191c22;
  --ink-3: #23272f;
  --ink-4: #2e333c;

  /* Neutrals, very slightly cool so the gold reads warm against them */
  --paper: #ffffff;
  --bg: #f4f5f8;
  --surface-2: #fafbfc;
  --line: #e5e7ec;
  --line-2: #eef0f4;
  --line-dark: #2e333c;

  --text: #101216;
  --text-2: #454b56;
  --muted: #697080;
  --muted-2: #98a0ae;

  /* Semantic */
  --ok: #12734a;
  --ok-bg: #e9f7ef;
  --ok-line: #b9e2cb;
  --warn: #96601a;
  --warn-bg: #fdf4e3;
  --warn-line: #eedcb4;
  --bad: #b3261e;
  --bad-bg: #fdeceb;
  --bad-line: #f2c9c6;
  --info: #1d4ed8;
  --info-bg: #eaf0fe;
  --info-line: #c9d8fb;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  /* Layered rather than one big blur. Close shadows read as crisp, far ones
     as floating, and using both keeps a card from looking like a sticker. */
  --shadow-1: 0 1px 2px rgba(16, 18, 22, 0.05), 0 1px 3px rgba(16, 18, 22, 0.04);
  --shadow-2: 0 1px 2px rgba(16, 18, 22, 0.06), 0 6px 16px -4px rgba(16, 18, 22, 0.08);
  --shadow-3: 0 2px 4px rgba(16, 18, 22, 0.06), 0 16px 40px -8px rgba(16, 18, 22, 0.16);
  --shadow-pop: 0 24px 70px -12px rgba(0, 0, 0, 0.45);
  /* The old single name. The client intake form still asks for it and there is
     no reason to restyle a form that is already in front of clients. */
  --shadow: var(--shadow-1);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }

/* The hidden attribute has to beat every display rule in this file.
   Browsers implement it as `[hidden] { display: none }` in the user-agent
   stylesheet, which any class selector outranks. `.gate` sets display:grid, so
   without this the passcode screen stayed on the page after signing in and the
   tracker rendered underneath it, reachable only by scrolling past. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--info); text-underline-offset: 2px; }

/* Every figure in this app is meant to be compared down a column, so digits
   must not change width between rows. */
.num, .days, .stat .n, .kpi .v, table.data td.num, .tnum { font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 2px solid var(--info);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--gold); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Top bar ──────────────────────────────────────────────────────────────── */

.topbar {
  background: var(--ink);
  color: #fff;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 62px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.07), 0 1px 3px rgba(16, 18, 22, 0.2);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
}

/* The firm's lockup, not a placeholder monogram. The white artwork is
   transparent, so it only works on the dark bar. The wordmark is set small
   inside the artwork, so it needs more height than a plain logo would to stay
   readable. */
.topbar .brand img { height: 36px; width: auto; display: block; }

.topbar .brand .sep {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.16);
}

.topbar .brand .label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #b9c0cd;
}

/* Segmented control. Reads as one object with a selected part, which is what a
   two-tab app wants, rather than two links that happen to sit near each other. */
.topbar nav {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: 10px;
}

.topbar nav a {
  color: #b9c0cd;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 550;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.topbar nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.topbar nav a.active {
  background: var(--gold);
  color: var(--ink);
  font-weight: 650;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.topbar .spacer { flex: 1; }
.topbar .who { color: #98a0ae; font-size: 12.5px; }

/* Buttons sitting on the dark bar need their own treatment, the light .btn
   disappears against it. */
.topbar .btn {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
  color: #eef0f4;
}
.topbar .btn:hover { background: rgba(255, 255, 255, 0.16); }
.topbar .btn:disabled { opacity: 0.4; }

/* ── Layout ───────────────────────────────────────────────────────────────── */

.wrap { max-width: 1280px; margin: 0 auto; padding: 26px 22px 90px; }
.wrap.narrow { max-width: 860px; }

h1 { font-size: 26px; margin: 0 0 5px; letter-spacing: -0.022em; font-weight: 680; }
h2 { font-size: 17.5px; margin: 0 0 12px; letter-spacing: -0.014em; font-weight: 650; }
h3 { font-size: 14px; margin: 0 0 8px; font-weight: 620; }
.sub { color: var(--muted); margin: 0 0 20px; font-size: 14px; line-height: 1.6; }
.sub strong { color: var(--text-2); font-weight: 620; }

/* Section label, for the small uppercase headers above a group. */
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted-2);
  margin: 0 0 10px;
}

.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .grow { flex: 1; min-width: 240px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 22px;
  margin-bottom: 18px;
}
.card.tight { padding: 16px 18px; }
.card > h2:first-child { margin-top: 0; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.card-head h2 { margin: 0; }

.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ── Stat tiles ───────────────────────────────────────────────────────────── */

.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-1);
}
.stat .n { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.stat .k { color: var(--muted); font-size: 12.5px; margin-top: 3px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.stat .foot { color: var(--muted); font-size: 12.5px; margin-top: 7px; }
.stat.alert { border-color: var(--bad-line); background: var(--bad-bg); }
.stat.alert .n { color: var(--bad); }
.stat.good { border-color: var(--ok-line); background: var(--ok-bg); }
.stat.good .n { color: var(--ok); }
.stat.watch { border-color: var(--warn-line); background: var(--warn-bg); }
.stat.watch .n { color: var(--warn); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 560;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease),
              box-shadow 0.14s var(--ease), transform 0.08s var(--ease);
}
.btn:hover { background: var(--surface-2); border-color: #d7dae1; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: var(--shadow-1); }
.btn.primary:hover { background: var(--ink-3); border-color: var(--ink-3); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 660; box-shadow: var(--shadow-1); }
.btn.gold:hover { background: var(--gold-dim); border-color: var(--gold-dim); }
.btn.danger { color: var(--bad); border-color: var(--bad-line); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--line-2); color: var(--text); }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 7px; }
.btn.lg { padding: 13px 24px; font-size: 15.5px; border-radius: 10px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-row { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }

/* ── Forms ────────────────────────────────────────────────────────────────── */

label.fld { display: block; margin-bottom: 15px; }
label.fld > .lb { display: block; font-weight: 580; font-size: 14px; margin-bottom: 5px; }
label.fld > .lb .req { color: var(--bad); margin-left: 2px; }
label.fld > .hint { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; line-height: 1.45; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="month"], input[type="number"], input[type="password"], input[type="search"],
select, textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  background: var(--paper);
  transition: border-color 0.14s var(--ease), box-shadow 0.14s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(16, 18, 22, 0.08);
}
textarea { min-height: 78px; resize: vertical; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
  cursor: pointer;
}

.opts { display: flex; flex-direction: column; gap: 7px; }
.opts.row { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.opt {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14.5px;
  background: var(--paper);
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease);
}
.opt:hover { background: var(--surface-2); border-color: #d7dae1; }
.opt input { margin: 3px 0 0; flex: none; accent-color: var(--ink); }
.opt.on { border-color: var(--ink); background: var(--surface-2); box-shadow: 0 0 0 1px var(--ink); }

.missing-field input, .missing-field select, .missing-field textarea { border-color: #e59b95; background: #fffbfb; }

/* ── Tables ───────────────────────────────────────────────────────────────── */

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 680;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 1;
}
table.data td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr.click { cursor: pointer; transition: background 0.1s var(--ease); }
table.data tbody tr.click:hover { background: var(--surface-2); }
table.data tbody tr.click:hover td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.table-scroll { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }

table.entry { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.entry th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); font-weight: 680; padding: 6px; white-space: nowrap;
}
table.entry td { padding: 3px 4px; }
table.entry input, table.entry select { padding: 7px 9px; font-size: 14px; }
table.entry td.rowlab { font-weight: 580; white-space: nowrap; padding-right: 10px; color: var(--text); }
.x-btn {
  border: 1px solid var(--line); background: var(--paper); color: var(--muted);
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 15px; line-height: 1;
  transition: color 0.14s var(--ease), background 0.14s var(--ease), border-color 0.14s var(--ease);
}
.x-btn:hover { color: var(--bad); border-color: var(--bad-line); background: var(--bad-bg); }

/* ── Badges ───────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge.grey { background: var(--line-2); color: var(--text-2); border-color: var(--line); }
.badge.gold { background: var(--gold-wash); color: var(--gold-deep); border-color: #f0dfae; }
.badge.blue { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.badge.green { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.badge.red { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.badge.amber { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }

/* ── Progress ─────────────────────────────────────────────────────────────── */

.bar { height: 8px; background: var(--line-2); border-radius: 20px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--gold); border-radius: 20px; transition: width 0.35s var(--ease); }
.bar.done > i { background: var(--ok); }
.bar.sm { height: 5px; }

/* ── Notices ──────────────────────────────────────────────────────────────── */

.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted-2);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  margin-bottom: 12px;
  background: var(--paper);
  font-size: 14px;
  line-height: 1.55;
}
.notice .t { font-weight: 660; margin-bottom: 3px; }
.notice.warn { border-left-color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.notice.info { border-left-color: var(--info); background: var(--info-bg); border-color: var(--info-line); }
.notice.bad { border-left-color: var(--bad); background: var(--bad-bg); border-color: var(--bad-line); }
.notice.good { border-left-color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .big { font-size: 15.5px; color: var(--text); font-weight: 620; margin-bottom: 5px; }

/* Loading placeholder. Showing the shape of what is coming beats a spinner,
   because the layout does not jump when the data lands. */
.skeleton {
  background: linear-gradient(90deg, var(--line-2) 25%, #e7e9ee 37%, var(--line-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ── Gate (passcode screen) ───────────────────────────────────────────────── */

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 500px at 50% -15%, rgba(255, 213, 80, 0.14), transparent 65%),
    var(--ink);
}
.gate .box {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-pop);
}
.gate .logo { height: 42px; width: auto; display: block; margin-bottom: 22px; }
.gate .mark {
  width: 42px; height: 42px; border-radius: 10px; background: var(--gold); color: var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: 17px; margin-bottom: 16px;
}
.gate h1 { font-size: 20px; margin-bottom: 4px; }
.gate .err { color: var(--bad); font-size: 13.5px; margin-top: 10px; min-height: 18px; }

/* ── Utility ──────────────────────────────────────────────────────────────── */

.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 13px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.mt16 { margin-top: 16px; } .mb16 { margin-bottom: 16px; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex.between { justify-content: space-between; }
.flex.wrap { flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 10px;
  font-size: 14px; box-shadow: var(--shadow-3); z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  max-width: min(90vw, 480px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast.bad { background: var(--bad); }
.toast.good { background: var(--ok); }

/* ── Responsive ───────────────────────────────────────────────────────────────
   Four sizes, and the only one that needs real work is the phone:
     > 1180px   desktop, everything as designed
     901-1180   iPad landscape and small laptops, tighter gutters
     561-900    iPad portrait and big phones, two-up grids
     <= 560px   phones, where the data tables stop being tables
*/

/* Nothing may push the page sideways. A single wide table or an unbroken URL
   otherwise makes the whole document scroll horizontally, which on a phone
   feels like the page is broken. */
html, body { overflow-x: hidden; max-width: 100%; }

/* Touch, not screen width. An iPad in landscape is a wide screen with fat
   fingers, and a 28px button is a miss either way. 44px is the accepted
   minimum tap target. */
@media (pointer: coarse) {
  .btn { min-height: 44px; padding: 11px 16px; }
  .btn.sm { min-height: 38px; padding: 9px 13px; }
  .x-btn { width: 38px; height: 38px; }
  .topbar nav a { padding: 10px 14px; }
  table.data tbody tr.click td { padding-top: 14px; padding-bottom: 14px; }
  .opt { padding: 12px 14px; }
  input, select, textarea { font-size: 16px; } /* under 16px iOS zooms on focus */
}

@media (max-width: 1180px) {
  .wrap { padding: 22px 18px 80px; }
}

@media (max-width: 900px) {
  .topbar { gap: 12px; padding: 0 16px; }
  .topbar .brand .label { display: none; }
  .topbar .brand .sep { display: none; }
  .wrap { padding: 20px 16px 76px; }
  h1 { font-size: 23px; }
}

@media (max-width: 680px) {
  .topbar {
    height: auto; padding: 10px 14px; flex-wrap: wrap; gap: 10px;
    position: sticky; top: 0;
  }
  .topbar .brand { order: 1; }
  .topbar .spacer { display: none; }
  /* Actions stay beside the logo; the nav takes the full second row. */
  .topbar .btn { order: 2; margin-left: auto; }
  .topbar .btn + .btn { margin-left: 0; }
  .topbar nav { order: 3; width: 100%; margin-left: 0; }
  .topbar nav a { flex: 1; text-align: center; }
  .topbar .brand img { height: 28px; }
  .wrap { padding: 18px 14px 70px; }
  h1 { font-size: 21px; }
  .card { padding: 17px; margin-bottom: 14px; }
  .card-head { gap: 8px; }
  /* A sticky header inside a short scroll container fights the page scroll on
     a phone, so drop it there. */
  table.data th { position: static; }
}

/* ── Phone: tables become cards ───────────────────────────────────────────────
   A six-column table on a 375px screen means either a horizontal scroll or
   4pt text. Instead each row becomes its own card: the first cell is the
   heading across the top, and the rest sit in two columns with their column
   name in front of them, taken from data-label.

   Any table wanting this needs data-label on every cell after the first. */
@media (max-width: 560px) {
  table.data.stack { display: block; }
  table.data.stack thead { display: none; }
  table.data.stack tbody { display: block; }

  table.data.stack tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow-1);
  }
  table.data.stack tbody tr:last-child { margin-bottom: 0; }
  table.data.stack tbody tr.click:hover { background: var(--paper); }
  table.data.stack tbody tr.click:hover td:first-child { box-shadow: none; }

  table.data.stack td {
    display: block;
    padding: 0;
    border: none;
    text-align: left;
    font-size: 13.5px;
  }
  /* The name, spanning the card and separated from its details. */
  table.data.stack td:first-child {
    grid-column: 1 / -1;
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line-2);
    font-size: 15px;
  }
  /* Column name in front of the value, since the header row is gone. */
  table.data.stack td[data-label]:before {
    content: attr(data-label);
    display: block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--muted-2);
    margin-bottom: 1px;
  }
  /* Cells carrying a bar or chart read better full width. */
  table.data.stack td[data-wide] { grid-column: 1 / -1; }
  table.data.stack td .cell-sub { display: inline; margin-left: 4px; }

  .table-scroll { overflow-x: visible; margin: 0; padding: 0; }
}
