/* Doc2Data by Gravita Tech. Tokens, header and demo bar as in Stock Opname by Gravita Tech; Carlito served locally. */
@font-face { font-family: 'Carlito'; src: url('../assets/fonts/carlito-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Carlito'; src: url('../assets/fonts/carlito-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --primary: #E07B00; --on-primary: #0C1844; --accent-text: #B85C00;
  --bg: #F5F7FB; --surface: #FFFFFF; --surface-2: #EEF2F8; --ink: #0C1844; --gray: #46506B; --line: #D6DCE8; --focus: #2A4BB0;
  --navy: #0C1844; --on-navy: #FFFFFF; --on-navy-muted: #C8D2EA;
  --ok: #2F6B12; --ok-bg: #EAF3E3; --bad: #9B2C22; --bad-bg: #FBE9E7; --info: #1D4E89; --info-bg: #E6EEF8; --wait: #8A4B08; --wait-bg: #FDF0E1;
  /* overlay colours tell element kinds apart; no orange (orange is for buttons only) */
  --l-text: #2A4BB0; --l-title: #A3245E; --l-table: #2F6B12; --l-picture: #8A3FA0; --l-list: #0E7C86; --l-furniture: #8A96A8; --l-ocr: #C0392B;
  --shadow: 0 1px 2px rgba(12, 24, 68, .06), 0 8px 24px rgba(12, 24, 68, .06);
  --r: 12px; --font: 'Carlito', Calibri, 'Segoe UI', Arial, sans-serif; --mono: Consolas, 'Cascadia Mono', Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent-text: #F2A54A; --bg: #0A1030; --surface: #111A42; --surface-2: #16204D; --ink: #EEF1FA; --gray: #B4BED8; --line: #27326A; --focus: #8FA6EE;
    --navy: #060B24; --on-navy-muted: #B4BED8;
    --ok: #A6D88A; --ok-bg: #1F3315; --bad: #F2A196; --bad-bg: #3D1C18; --info: #9DC0EE; --info-bg: #182A40; --wait: #F0B866; --wait-bg: #3A2A12;
    --l-text: #8FA6EE; --l-title: #E68AB4; --l-table: #8BC56E; --l-picture: #D29AE0; --l-list: #5FC8D2; --l-furniture: #8A96C0; --l-ocr: #F08070;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent-text: #F2A54A; --bg: #0A1030; --surface: #111A42; --surface-2: #16204D; --ink: #EEF1FA; --gray: #B4BED8; --line: #27326A; --focus: #8FA6EE;
  --navy: #060B24; --on-navy-muted: #B4BED8;
  --ok: #A6D88A; --ok-bg: #1F3315; --bad: #F2A196; --bad-bg: #3D1C18; --info: #9DC0EE; --info-bg: #182A40; --wait: #F0B866; --wait-bg: #3A2A12;
  --l-text: #8FA6EE; --l-title: #E68AB4; --l-table: #8BC56E; --l-picture: #D29AE0; --l-list: #5FC8D2; --l-furniture: #8A96C0; --l-ocr: #F08070;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .3); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* layout rules below set display on sections that start hidden */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--font); font-variant-numeric: tabular-nums; }
/* Japanese: Latin stays Carlito, Japanese falls through to the system font (staged package, his item 17) */
html[lang="ja"] { --font: 'Carlito', "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif; }
html[lang="ja"] body { line-height: 1.8; line-break: strict; }
html[lang="ja"] h1, html[lang="ja"] h2 { line-height: 1.4; word-break: auto-phrase; }
html[lang="ja"] .lead { word-break: auto-phrase; }   /* lead lines break between phrases, not inside a word such as ドキュメント */
main { flex: 1; }
h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; text-wrap: balance; }
h2 { font-size: 22px; line-height: 1.3; margin: 0 0 10px; text-wrap: balance; }
p { margin: 0 0 12px; }
a { color: inherit; text-decoration-color: currentColor; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--gray); }
.small { font-size: 14px; line-height: 1.4; }
.lead { font-size: 18px; color: var(--gray); max-width: 68ch; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 28px 24px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#tables .subtabs { flex-wrap: wrap; margin-bottom: 10px; }
#tables .more { margin-top: -12px; }
#tables .tbl-scroll { max-height: 640px; }
table.data thead th { position: sticky; top: 0; z-index: 1; }

/* demo bar and header (as Stock Opname) */
.demo-bar { background: var(--navy); color: var(--on-navy); font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.demo-inner { max-width: 1320px; margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }
.demo-note { margin: 0; color: var(--on-navy-muted); }
.demo-tag { display: inline-block; font-weight: 700; color: #0C1844; background: #FFFFFF; border-radius: 6px; padding: 1px 8px; margin-right: 8px; }
.demo-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; overflow: hidden; }
.seg button, .demo-btn { font: inherit; font-weight: 700; color: var(--on-navy); background: transparent; border: 0; padding: 6px 12px; min-height: 36px; cursor: pointer; }
.demo-btn { border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; }
.seg button[aria-pressed="true"] { background: var(--on-navy); color: #0C1844; }
.app-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.hdr { max-width: 1320px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); min-width: 0; }
.logo-chip img { height: 36px; width: auto; display: block; }
.wordmark { font-size: 26px; font-weight: 700; line-height: 1.1; padding-left: 14px; border-left: 1px solid var(--line); }
.hdr-nav { display: flex; align-items: center; gap: 8px; }
/* the way back to the gallery (his 2A): quiet, after the tabs, set apart by a rule */
.all-demos { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; padding: 10px 0 10px 18px; border-left: 1px solid var(--line);
  color: var(--gray); font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.all-demos svg { fill: currentColor; flex: none; }
.all-demos:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tabs { display: flex; gap: 4px; }
.tabs button { font: inherit; font-size: 17px; font-weight: 700; color: var(--gray); background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 10px; font: inherit; font-weight: 700;
  font-size: 17px; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: #F08A10; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: default; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 22px; }

/* start */
.start { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.start-actions { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.start-actions .btn { width: 100%; }
.files > summary { list-style: none; }
.files > summary::-webkit-details-marker { display: none; }
.files ul { margin: 8px 0 0; padding: 0 0 0 4px; list-style: none; }
.files li a { display: block; padding: 6px 0; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.msg { margin: 0; color: var(--bad); }
.msg:empty { display: none; }
.msg.info { color: var(--info); background: var(--info-bg); border-radius: 8px; padding: 10px 12px; }   /* "busy": friendly, not an error */

/* machine view */
.machine { display: grid; grid-template-columns: 250px minmax(0, 1fr) 290px; gap: 20px; align-items: start; padding-top: 8px; }
.doclist ol, .stages ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc-btn, .stage-btn { width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; cursor: pointer; display: grid; gap: 2px; }
.doc-btn[aria-current="true"], .stage-btn[aria-current="true"] { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--ink); background: var(--surface-2); }
.doc-btn .name { font-weight: 700; overflow-wrap: anywhere; line-height: 1.25; }
.status { font-size: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--gray); }
.pill { font-size: 13px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.pill.queued { background: var(--surface-2); color: var(--gray); }
.pill.running { background: var(--info-bg); color: var(--info); }
.pill.done { background: var(--ok-bg); color: var(--ok); }
.pill.failed { background: var(--bad-bg); color: var(--bad); }
.stage-btn { grid-template-columns: 26px 1fr; grid-template-areas: "n t" "n m"; align-items: center; column-gap: 10px; row-gap: 0; }
.stage-btn .n { grid-area: n; }
.stage-btn .t { grid-area: t; }
.stage-btn .m { grid-area: m; }
.stage-btn .m:empty { display: none; }
.order-badge { position: absolute; transform: translate(-115%, -10%); min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px;
  background: #0C1844; color: #FFFFFF; font: 700 13px/22px var(--font); text-align: center; box-shadow: 0 0 0 2px #FFFFFF; pointer-events: none; }
.stage-btn .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--gray); }
.stage-btn.done .n { background: var(--navy); color: #FFFFFF; }
:root[data-theme="dark"] .stage-btn.done .n { background: #EEF1FA; color: #0A1030; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stage-btn.done .n { background: #EEF1FA; color: #0A1030; } }
.stage-btn.active .n { background: #2A4BB0; color: #FFFFFF; animation: pulse 1.2s ease-in-out infinite; }
.stage-btn .t { font-weight: 700; line-height: 1.2; }
.stage-btn .m { font-size: 13px; color: var(--gray); white-space: nowrap; }
.stage-btn[disabled] { opacity: .5; cursor: default; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(42, 75, 176, .25); } }
@media (prefers-reduced-motion: reduce) { .stage-btn.active .n { animation: none; } }
.viewer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.viewer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.viewer-head h2 { margin: 0; }
.pages { display: flex; gap: 6px; flex-wrap: wrap; }
.pages button { font: inherit; font-weight: 700; min-width: 36px; min-height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.pages button[aria-current="true"] { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }
.stage-help { color: var(--gray); margin: 0 0 10px; min-height: 24px; }
.page-box { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #FFFFFF; }
.page-box img { display: block; width: 100%; height: auto; }
.page-box svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-box:empty, .page-box img:not([src]) { min-height: 0; }
.ov { fill-opacity: .12; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.ov-num { font: 700 18px var(--font); paint-order: stroke; stroke: #FFFFFF; stroke-width: 4px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 0; font-size: 14px; color: var(--gray); }
.legend span::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
.output { margin-top: 14px; }
.output pre { max-height: 360px; overflow: auto; background: var(--surface-2); border-radius: 8px; padding: 12px; font: 13px/1.45 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.subtabs { display: flex; gap: 6px; margin-bottom: 8px; }
.subtabs button { font: inherit; font-weight: 700; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 4px 12px; cursor: pointer; min-height: 36px; }
.subtabs button[aria-pressed="true"] { border-color: var(--ink); background: var(--surface-2); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); }
.checks .ok { color: var(--ok); font-weight: 700; }
.checks .bad { color: var(--bad); font-weight: 700; }
.kpis { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.kpis div { background: var(--surface-2); border-radius: 8px; padding: 8px 12px; }
.kpis b { display: block; font-size: 20px; }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin: 8px 0 26px; }
table.data { border-collapse: collapse; width: 100%; font-size: 15px; }
table.data th { text-align: left; background: var(--surface-2); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data td.n { text-align: right; white-space: nowrap; }
.tbl-scroll { max-height: 520px; overflow: auto; }
table.rebuilt td, table.rebuilt th { border: 1px solid var(--line); font-size: 14px; }
table.rebuilt th { background: var(--surface-2); white-space: normal; }
.dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 26px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 10px; font-size: 18px; }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: minmax(110px, 40%) 1fr auto; gap: 8px; align-items: center; font-size: 14px; }
.bar i { display: block; height: 12px; border-radius: 6px; background: var(--l-text); }
.bar .lbl { overflow-wrap: anywhere; }

/* ask */
.ask { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; align-items: start; }
.ask-form { display: flex; gap: 10px; align-items: stretch; }
.ask-form textarea { flex: 1; font: inherit; font-size: 17px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--gray); background: var(--surface); color: var(--ink); resize: vertical; min-height: 52px; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.examples button { font: inherit; font-size: 15px; text-align: left; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; cursor: pointer; }
.examples button:hover { border-color: var(--ink); }
.answer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.answer .q { font-weight: 700; margin-bottom: 6px; }
.answer .a { font-size: 17px; }
.answer .meta { font-size: 13px; color: var(--gray); margin-top: 6px; }
.cite { font: inherit; font-weight: 700; font-size: 14px; color: var(--l-text); background: none; border: 0; padding: 0 2px; cursor: pointer; text-decoration: underline; }
.srcs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.srcs button { width: 100%; text-align: left; font: inherit; font-size: 14px; color: var(--ink); background: var(--surface-2); border: 1px solid transparent; border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.srcs button[aria-current="true"] { border-color: var(--ink); }
.srcs .k { font-weight: 700; }
.source-view { position: sticky; top: 16px; }
.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot .wrap { padding: 14px 24px; }

/* tour: spotlight in the focus blue, never orange (orange is for buttons only); box as in Stock Opname */
.tour-dim { position: fixed; inset: 0; z-index: 60; background: rgba(6, 11, 36, .55); }
.tour-spot { position: fixed; z-index: 60; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(6, 11, 36, .55); outline: 3px solid var(--focus); pointer-events: none; transition: top .2s, left .2s, width .2s, height .2s; }
.tour-spot.tour-spot-none { inset: 0; width: auto !important; height: auto !important; outline: 0; border-radius: 0; box-shadow: none; background: rgba(6, 11, 36, .55); }
/* Share (share.css, unchanged): in the navy demo bar it takes the bar's own button look; its menu uses this app's tokens
   in both themes, with no orange (share.css would fall back to navy text and an accent colour) */
.demo-bar .gshare-btn { min-height: 36px; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; color: var(--on-navy); }
.demo-bar .gshare-btn:hover { color: var(--on-navy); border-color: #FFFFFF; }
.demo-bar .gshare-btn:focus-visible { outline-color: #FFFFFF; }
@media (max-width: 600px) { .demo-bar .gshare-compact { width: 44px; padding: 0; justify-content: center; } }   /* icon only, as share.css means it */
.gshare-menu { background: var(--surface); color: var(--ink); border-color: var(--line); }
.gshare-item:hover, .gshare-item:focus-visible { background: var(--surface-2); color: var(--ink); }
.gshare-copy { border-top-color: var(--line); }

/* green tour box, the same for every demo app and both themes (his "1A", 31 Oct 2026; docs/handover/green-tour-box-spec.md) */
.tour-pop { position: fixed; z-index: 61; width: min(380px, calc(100vw - 16px)); background: #0E4D3B; color: #FFFFFF; border: 1px solid #2F7A60; border-radius: 12px; padding: 18px 20px; box-shadow: 0 12px 40px rgba(6, 11, 36, .35); }
.tour-pop.tour-center { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.tour-count { font-size: 15px; font-weight: 400; color: #FFFFFF; margin: 0 0 4px; }   /* regular: bold under 17 px loses the dot on the i */
.tour-body { font-size: 17px; margin: 0 0 12px; color: #FFFFFF; }
.tour-pop .btn { font-size: 17px; font-weight: 700; }
.tour-pop .btn-primary { background: #FFFFFF; color: #0E4D3B; }
.tour-pop .btn-primary:hover { background: #E8F3EF; }
.tour-pop .btn-secondary { background: transparent; color: #FFFFFF; border: 1.5px solid rgba(255, 255, 255, .7); }
.tour-pop .btn-secondary:hover { background: rgba(255, 255, 255, .12); }
.tour-pop .btn-secondary[disabled] { opacity: .5; }
.tour-pop .btn-link { color: #FFFFFF; font-size: 17px; }
.tour-pop :focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.tour-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tour-nav { display: flex; gap: 8px; margin-left: auto; }
.btn-sm { min-height: 40px; padding: 0 16px; }
.btn-link { font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; padding: 8px 2px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .tour-spot { transition: none; } }

@media (max-width: 1100px) {
  .machine { grid-template-columns: 220px minmax(0, 1fr); }
  /* narrower screens: the stages become one scrolling row above the page, so a stage is chosen before scrolling */
  .doclist { order: -2; }   /* document first, then its stages, then the page */
  .stages { grid-column: 1 / -1; order: -1; min-width: 0; }
  .stages ol { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
  .stages li { flex: 0 0 auto; width: 190px; scroll-snap-align: start; }
  .ask { grid-template-columns: 1fr; }
  .source-view { position: static; }
}
@media (max-width: 760px) {
  .wrap { padding: 20px 16px; }
  .demo-inner, .hdr { padding-left: 16px; padding-right: 16px; }
  .wordmark { font-size: 20px; padding-left: 10px; }
  .hdr-nav { width: 100%; justify-content: space-between; gap: 4px; }
  .tabs button { padding: 10px 10px; }
  .all-demos { margin-left: 0; padding-left: 12px; font-size: 15px; }
  /* Japanese tab names are wider (ドキュメント): tighter tabs keep "All demos" inside the side gutter */
  html[lang="ja"] .tabs button { padding: 10px 7px; }
  html[lang="ja"] .all-demos { padding-left: 10px; gap: 6px; }
  .logo-chip img { height: 28px; }
  h1 { font-size: 28px; }
  .start, .machine { grid-template-columns: 1fr; }
  .doclist ol { grid-template-columns: 1fr 1fr; }
  .ask-form { flex-direction: column; }
  /* data tables on phones: one row as a block of label and value lines, so no column is cut at the edge */
  #tables table.data thead { display: none; }
  #tables table.data, #tables table.data tbody, #tables table.data tr, #tables table.data td { display: block; width: 100%; }
  #tables table.data tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  #tables table.data td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 3px 12px; text-align: right; }
  #tables table.data td::before { content: attr(data-label); color: var(--gray); text-align: left; flex: none; max-width: 45%; }
  #tables .tbl-scroll { max-height: none; }
}
