/* Jeff Slip — the spx-agency-bot look (WMS theme: floor colour, white boxes with cut corners and a thick
   bottom ledge, square 4px controls, black table heads, black side menu edge) in green instead of orange.
   Owner 2026-11-17: "ดีไซน์ให้เหมือน spx agent", โทนเขียว. */
:root {
  --accent: #22A35A;      /* fills: buttons, bars — black text on it */
  --accent-h: #17703D;    /* hover fill — white text on it */
  --accent-ink: #157A40;  /* green text on white */
  --accent-soft: #E2F3E8;
  --floor: #F1F3EF; --surface: #FFFFFF; --surface2: #F5F7F4; --tint: #E8EDE7;
  --text: #111111; --muted: #5F6660; --line: #DCE1DB; --line2: #E6EAE5;
  --ledge: #CBD3C9; --divider: #A7B0A6; --field-bd: #87918A; --thead: #111111; --thead-tx: #FFFFFF;
  --sb-bg: #FFFFFF; --sb-edge: #111111; --sb-hover: #E8EDE7; --sb-on: #111111; --sb-on-tx: #FFFFFF;
  --ok-bg: #DFF3E4; --ok-ink: #1A6E37;
  --warn-bg: #FBEFD3; --warn-bd: #E9C98A; --warn-ink: #7D4F00;
  --bad-bg: #FBE3E0; --bad-ink: #B42318; --red: #C8281E;
  --wait-bg: #ECEFEB; --wait-ink: #4B524C;
  --cut: 14px;
  --cutp: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  --r-ctl: 4px;
  --focus: 0 0 0 3px rgba(34, 163, 90, .40);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --accent: #34C472; --accent-h: #5FD892; --accent-ink: #5FD892; --accent-soft: #15301F;
  --floor: #0F1210; --surface: #1A1E1B; --surface2: #222723; --tint: #262C27;
  --text: #EAEEEA; --muted: #A2ABA3; --line: #323A33; --line2: #2B312C;
  --ledge: #000000; --divider: #46504A; --field-bd: #6B766D; --thead: #000000; --thead-tx: #EAEEEA;
  --sb-bg: #141714; --sb-edge: #37403A; --sb-hover: #222723; --sb-on: #34C472; --sb-on-tx: #0B0F0C;
  --ok-bg: #16301F; --ok-ink: #7FDCA2;
  --warn-bg: #3A2E12; --warn-bd: #6B5420; --warn-ink: #F2C96B;
  --bad-bg: #3A1A18; --bad-ink: #FF9A90; --red: #FF8A80;
  --wait-bg: #262C27; --wait-ink: #C2CAC3;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--floor); color: var(--text); font: 400 15px/1.55 'IBM Plex Sans Thai', Tahoma, sans-serif; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); }
h1, h2 { margin: 0; line-height: 1.25; }
h2 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.loading { padding: 48px 16px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: none; box-shadow: var(--focus); }

/* ---- controls: square 4px, solid 2px edges ------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 6px; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-ctl);
  border: 2px solid transparent; font: 600 14px/1 'IBM Plex Sans Thai', Tahoma, sans-serif; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #111111; }
.btn-primary:hover:not(:disabled) { background: var(--accent-h); border-color: var(--accent-h); color: #FFFFFF; }
:root[data-theme="dark"] .btn-primary:hover:not(:disabled) { color: #0B0F0C; }
.btn-secondary, .btn-ghost { background: var(--surface); border-color: var(--text); color: var(--text); }
.btn-secondary:hover:not(:disabled), .btn-ghost:hover:not(:disabled) { background: var(--text); color: var(--surface); }
.btn-danger { background: transparent; border-color: transparent; color: var(--red); }
.btn-danger:hover:not(:disabled) { background: var(--bad-bg); }
.btn-danger.armed { background: var(--red); border-color: var(--red); color: #FFFFFF; }
.btn.sm { min-height: 32px; padding: 0 10px; font-size: 13px; }
.btn.lg { min-height: 50px; font-size: 16px; width: 100%; }
.btn .ic { font-size: 18px; margin-top: -2px; }
.link { color: var(--accent-ink); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; min-height: 36px; }
.field { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: var(--r-ctl); border: 2px solid var(--field-bd); background: var(--surface);
  color: var(--text); font: 400 15px 'IBM Plex Sans Thai', Tahoma, sans-serif; }
.field:focus { outline: none; border-color: var(--text); box-shadow: var(--focus); }
.field.date { width: auto; min-height: 40px; padding: 4px 10px; }

/* ---- shell: top bar + menu (tabs on phones, side menu on wide screens) ----------------------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 2px solid var(--sb-edge); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.top-row { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.brand-mark { border-radius: 8px; }
.top-title { font-size: 22px; font-weight: 700; }
.top-end { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reader-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-right: 4px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-ok { background: var(--accent); box-shadow: 0 0 0 4px rgba(34,163,90,.18); }
.dot-wait { background: #E8A317; animation: pulse 1.2s infinite; } .dot-bad { background: var(--red); }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dot-wait { animation: none; } }
.tabs { display: flex; gap: 4px; padding: 0 0 8px; overflow-x: auto; }
.tab { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-ctl); text-decoration: none; font-weight: 600; color: var(--text); white-space: nowrap; }
.tab:hover { background: var(--sb-hover); }
.tab[aria-current="page"] { background: var(--sb-on); color: var(--sb-on-tx); }
.sb-brand { display: none; }
.page { max-width: 1240px; margin: 0 auto; padding: 20px 16px 64px; }

@media (min-width: 1100px) {
  body:has(.tabs) { padding-left: 220px; } /* login has no side bar: keep it centred */
  .tabs { position: fixed; top: 0; left: 0; bottom: 0; width: 220px; z-index: 30; flex-direction: column; gap: 2px;
    padding: 0 8px 12px; background: var(--sb-bg); border-right: 2px solid var(--sb-edge); overflow-y: auto; }
  .sb-brand { display: flex; align-items: center; gap: 10px; margin: 0 -8px 8px; padding: 16px; background: #111111; color: #FFFFFF; font-weight: 700; font-size: 15px; min-height: 62px; }
  .sb-brand img { border-radius: 6px; }
  .tab { min-height: 42px; padding: 0 12px; font-size: 15px; }
  .top .brand-mark { display: none; }
}

/* ---- page head ---------------------------------------------------------------------------- */
.stack { display: flex; flex-direction: column; gap: 18px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.eyebrow { margin: 0 0 2px; color: var(--accent-ink); font-weight: 700; font-size: 13px; }
.page-title { font-size: 26px; font-weight: 700; margin: 0; }
.row { display: flex; align-items: center; } .gap { gap: 8px; } .wrap { flex-wrap: wrap; } .between { justify-content: space-between; }
.row.between h2 { margin-bottom: 12px; }
.spacer { flex: 1; }
.datebar, .range { display: flex; gap: 6px; align-items: center; }
.periodbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.seg button { min-height: 38px; padding: 0 14px; border-radius: var(--r-ctl); border: 2px solid var(--line); background: var(--surface); color: var(--text);
  font: 600 14px 'IBM Plex Sans Thai', Tahoma, sans-serif; cursor: pointer; }
.seg button:hover { border-color: var(--text); }
.seg button.on { background: #111111; border-color: #111111; color: #FFFFFF; }
:root[data-theme="dark"] .seg button.on { background: var(--accent); border-color: var(--accent); color: #0B0F0C; }

/* ---- boxes: cut corners + bottom ledge (drawn by ::before / ::after so the clip keeps the ledge) */
.card, .kpi, .status-tile { position: relative; isolation: isolate; display: block; padding: 18px 20px; text-decoration: none; color: inherit; min-width: 0; }
.card::before, .kpi::before, .status-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--surface); clip-path: var(--cutp); }
.card::after, .kpi::after, .status-tile::after { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--ledge); clip-path: var(--cutp); transform: translateY(3px); }
.card.flush { padding: 0; }
.card.flush::before { clip-path: none; } .card.flush::after { clip-path: none; }
.empty { color: var(--muted); margin: 0; }
.empty.pad { padding: 24px 20px; }

/* KPIs */
.kpis { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 14px; }
.kpi { display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.kpi.hero::before, .card.hero::before { box-shadow: inset 5px 0 0 var(--accent); }
.hero { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 18px 22px; }
.stat-label { font-size: 13px; color: var(--muted); }
.stat-value { font-size: 28px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.stat-value small, .hero-value small { font-size: .5em; font-weight: 600; margin-left: 6px; color: var(--muted); }
.hero-value { font-size: clamp(32px, 4.4vw, 44px); font-weight: 700; color: var(--accent-ink); white-space: nowrap; line-height: 1.15; }
.stat-sub { font-size: 13px; color: var(--muted); }

/* status tiles */
.status-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.status-tile { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 12px 16px; }
.status-tile b { grid-row: span 2; font-size: 26px; min-width: 1.3em; text-align: center; }
.status-tile span { font-weight: 700; font-size: 15px; }
.status-tile small { color: var(--muted); font-size: 12px; }
.status-tile:hover { transform: translateY(-2px); }
.status-tile.warn::before { box-shadow: inset 4px 0 0 #E8A317; } .status-tile.warn b { color: var(--warn-ink); }
.status-tile.bad::before { box-shadow: inset 4px 0 0 var(--red); } .status-tile.bad b { color: var(--red); }
.status-tile.wait::before { box-shadow: inset 4px 0 0 var(--accent); }

/* when */
.grid-when, .grid-who { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; }
.grid-when > .card:first-child { display: flex; flex-direction: column; }
.cols-wrap { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 200px; }
.cols-max { align-self: flex-end; margin: -6px 0 8px; font-size: 12px; color: var(--muted); }
.cols { flex: 1; min-height: 200px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; align-items: end;
  border-bottom: 2px solid var(--text); background: repeating-linear-gradient(to top, transparent 0 49px, var(--line2) 49px 50px); }
.col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 0; position: relative; }
.col-bar { width: 100%; max-width: 40px; background: var(--accent); min-height: 0; }
.col:hover .col-bar { background: var(--accent-h); }
.col-lbl { position: absolute; bottom: -22px; font-size: 12px; color: var(--muted); }
.cols-wrap { padding-bottom: 22px; }
.parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.part { background: var(--surface2); border-radius: var(--r-ctl); padding: 12px; display: flex; flex-direction: column; gap: 4px; border: 2px solid transparent; min-width: 0; }
.part.best { border-color: var(--accent); background: var(--accent-soft); }
.part-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.part-head b { font-size: 16px; }
.part-head .pill { font-size: 11px; padding: 1px 6px; }
.part-val { font-size: 20px; font-weight: 700; white-space: nowrap; }
.part-val small { font-size: 12px; font-weight: 400; color: var(--muted); }

/* bars */
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.bar-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { display: block; height: 12px; background: var(--tint); overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); }
.bar-val { font-weight: 700; white-space: nowrap; }
.bar-val small { color: var(--muted); font-weight: 400; }

/* tables: one white sheet, black head, warm dividers */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 700; font-size: 13px; background: var(--thead); color: var(--thead-tx); padding: 10px 12px; white-space: nowrap; }
.table td { padding: 11px 12px; border-top: 1px solid var(--divider); white-space: nowrap; }
.table tbody tr:first-child td { border-top: 0; }
.table .num { text-align: right; }
.table .strong { font-weight: 700; }
.table .name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.table .mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--muted); }
.table .act { text-align: right; width: 1%; }
.table.click tbody tr { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .table tbody tr:hover td { background: var(--tint); } }

/* who */
.rank span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-ctl); background: var(--tint); font-size: 13px; font-weight: 700; }
.table.who tbody tr:first-child .rank span { background: var(--accent); color: #111111; }
.who-name { font-weight: 700; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.who-sub { font-size: 12px; color: var(--muted); }
.share { display: block; height: 4px; background: var(--tint); margin-top: 6px; max-width: 220px; overflow: hidden; }
.share span { display: block; height: 100%; background: var(--accent); }

/* feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--divider); }
.feed li:first-child { border-top: 0; }
.feed-main { flex: 1; min-width: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 100px; gap: 12px; align-items: center; padding: 10px 4px; text-decoration: none; color: inherit; }
.feed-main:hover { background: var(--tint); }
.feed-time { display: flex; flex-direction: column; }
.feed-time b { font-size: 16px; }
.feed-time small { font-size: 12px; color: var(--muted); }
.feed-who { min-width: 0; display: flex; flex-direction: column; }
.feed-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-who small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-amt { font-weight: 700; font-size: 16px; text-align: right; white-space: nowrap; }
.feed-st { text-align: right; }

/* pills + chips */
.pill { display: inline-block; padding: 2px 8px; border-radius: var(--r-ctl); font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.pill-ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill-warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-bd); }
.pill-bad { background: var(--bad-bg); color: var(--bad-ink); }
.pill-wait { background: var(--wait-bg); color: var(--wait-ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { min-height: 36px; padding: 0 12px; border-radius: var(--r-ctl); border: 2px solid var(--line); background: var(--surface); color: var(--text);
  font: 600 14px 'IBM Plex Sans Thai', Tahoma, sans-serif; cursor: pointer; }
.chip:hover { border-color: var(--text); }
.chip.on { background: #111111; border-color: #111111; color: #FFFFFF; }
:root[data-theme="dark"] .chip.on { background: var(--accent); border-color: var(--accent); color: #0B0F0C; }

/* detail */
.back { text-decoration: none; color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; min-height: 36px; }
.back:hover { color: var(--text); }
.detail { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.slip-img { margin: 0; padding: 12px; position: sticky; top: 80px; }
.slip-img img { width: 100%; height: auto; display: block; background: var(--surface2); max-height: 78vh; object-fit: contain; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form h2 { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.f { display: flex; flex-direction: column; gap: 4px; }
.lbl { font-size: 13px; font-weight: 700; }
.problems { margin: 0; padding: 10px 14px; background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-bd); border-radius: var(--r-ctl); font-size: 14px; }
.problems b { font-weight: 700; display: block; margin-bottom: 4px; }
.problems ul { margin: 0; padding-left: 18px; }
.note { margin: 0; padding: 10px 14px; border-radius: var(--r-ctl); font-size: 14px; }
.note.bad { background: var(--bad-bg); color: var(--bad-ink); }
.note.bad a { color: inherit; font-weight: 700; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.meta { margin: 0; font-size: 13px; color: var(--muted); }
.raw summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.raw pre { white-space: pre-wrap; font: 12px/1.6 ui-monospace, Consolas, monospace; background: var(--surface2); padding: 12px; color: var(--muted); max-height: 320px; overflow: auto; }
.form-err { color: var(--red); margin: 0; min-height: 1em; font-size: 14px; }

/* login (same card as spx) */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--floor); }
.login-card { width: 100%; max-width: 380px; padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.login-logo { margin: 0 auto 4px; border-radius: 18px; }
.login-card h1 { font-size: 24px; font-weight: 700; }
.login-card .muted { margin: 0 0 4px; font-size: 14px; }
.login-card .btn.lg { margin-top: 12px; }
.field.pin { font-size: 17px; }

/* toasts */
#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; width: min(92vw, 420px); }
.toast { background: #111111; color: #FFFFFF; padding: 12px 16px; border-radius: var(--r-ctl); box-shadow: 0 3px 0 var(--ledge), 0 12px 24px rgba(0,0,0,.25); font-size: 14px; border-left: 5px solid var(--accent); }
.toast.bad { border-left-color: var(--red); }
:root[data-theme="dark"] .toast { background: #EAEEEA; color: #111111; }

@media (max-width: 1000px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis .hero { grid-column: 1 / -1; }
  .grid-when, .grid-who, .detail { grid-template-columns: minmax(0, 1fr); }
  .status-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slip-img { position: relative; top: auto; } /* not static: the card background layers need a positioned box */
  .slip-img img { max-height: 60vh; }
}
@media (max-width: 600px) {
  .top-title { font-size: 19px; }
  .top-row { row-gap: 8px; }
  .top-end { gap: 6px; width: 100%; }
  .top-end .chip-host { flex: 1 1 100%; order: 9; }
  .top-end .btn { min-height: 36px; padding: 0 10px; font-size: 13px; }
  .tab { flex: 1; justify-content: center; }
  .page { padding-top: 16px; }
  .page-title { font-size: 22px; }
  .card { padding: 16px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpis .kpi:last-child { grid-column: 1 / -1; }
  .stat-value { font-size: 22px; }
  .status-row { gap: 10px; }
  .seg { width: 100%; } .seg button { flex: 1; padding: 0 4px; }
  .range { width: 100%; } .range .field.date { flex: 1; min-width: 0; }
  .cols, .cols-wrap { min-height: 160px; } .cols { gap: 2px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .hide-sm { display: none; }
  .bar-row { grid-template-columns: 78px minmax(0, 1fr) auto; gap: 8px; }
  .table td, .table th { padding: 10px; }
  .table.who th:nth-child(3), .table.who td:nth-child(3), .table.who th:nth-child(4), .table.who td:nth-child(4) { display: none; }
  .table.who td, .table.who th { white-space: normal; }
  .table.who td.num, .table.who th.num { white-space: nowrap; }
  .who-name { max-width: none; }
  .share { max-width: 100%; }
  .datebar { flex: 1 1 100%; }
  .field.date { flex: 1; min-width: 0; }
  .feed-main { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "time who amt" "time who st"; row-gap: 4px; gap: 8px; }
  .feed-time { grid-area: time; } .feed-who { grid-area: who; } .feed-amt { grid-area: amt; font-size: 15px; } .feed-st { grid-area: st; }
  .feed .btn-danger { padding: 0 6px; }
  /* slip list: each row becomes a 2-line card so status is always visible */
  .table.click thead { display: none; }
  .table.click tr { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "time amt st" "bank name act"; gap: 2px 12px; padding: 10px 12px; border-top: 1px solid var(--divider); align-items: center; }
  .table.click tbody tr:first-child { border-top: 0; }
  .table.click td { border: 0; padding: 0; }
  .table.click td:nth-child(1) { grid-area: time; color: var(--muted); }
  .table.click td:nth-child(2) { grid-area: amt; text-align: left; font-size: 16px; }
  .table.click td:nth-child(3) { grid-area: bank; font-size: 13px; color: var(--muted); }
  .table.click td:nth-child(4) { grid-area: name; font-size: 13px; color: var(--muted); max-width: 50vw; text-align: right; justify-self: end; }
  .table.click td:nth-child(6) { grid-area: st; justify-self: end; }
  .table.click td:nth-child(7) { grid-area: act; justify-self: end; }
}
