/* Gaya "framed sheet" (taste-skill, app screens; seed 1372637141). Bingkai abu-biru dari kartu
   e-KTP memuat menu samping; pekerjaan duduk di lembar putih bertepi 1px, tanpa bayangan.
   Warna hanya untuk data, status, dan satu aksi utama. Font di-host sendiri (CSP 'self'). */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex/ibm-plex-sans-latin-400-normal.0ceb759015a6.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex/ibm-plex-sans-latin-500-normal.767677e47513.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex/ibm-plex-sans-latin-600-normal.e78568807d10.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex/ibm-plex-sans-latin-ext-400-normal.0e2c71ca88ef.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex/ibm-plex-sans-latin-ext-500-normal.9e50dcc81c7e.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex/ibm-plex-sans-latin-ext-600-normal.4267dfb25bc2.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex/ibm-plex-mono-latin-400-normal.4cc7b4398540.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex/ibm-plex-mono-latin-500-normal.bc5ccab82723.woff2") format("woff2"); }

:root {
  --ground: #f1f4f7; --surface: #fff; --raised: #f5f7f9; --active: #e2e7ec;
  --border: #e3e7eb; --rule: #eef0f2; --control: #c9cdd2;
  --text: #131416; --muted: #5a5e63;
  --primary: #1d1f20; --accent: #1f4e8c;
  --positive: #1e7b4f; --negative: #c4242a; --warning: #92400e;
  --pill-positive-bg: #dcfae5; --pill-positive-ink: #04250e;
  --pill-negative-bg: #ffedea; --pill-negative-ink: #831c1e; --pill-negative-edge: #f6c4bd;
  --pill-warning-bg: #fffbeb; --pill-warning-ink: #92400e; --pill-warning-edge: #fde68a;
  --pill-neutral-bg: #e9ecef; --pill-neutral-ink: #353736;
  --radius-sheet: 16px; --radius-card: 8px; --radius-control: 6px; --radius-chip: 4px;
  --sheet-inset: 8px; --pad: 24px; --gap: 16px; --control-height: 32px;
  --side-w: 228px; --side-w-mini: 64px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  font-family: var(--font);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--text); font-size: 14px; line-height: 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; line-height: 28px; font-weight: 600; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 16px; line-height: 24px; font-weight: 600; margin: 32px 0 12px; }
h1 + .muted { margin-top: 0; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.container { padding: var(--pad); }
.container.narrow { max-width: 400px; margin: 0 auto; padding-top: 14vh; }
.container.wide { padding: 16px 20px; }

/* Bingkai: menu samping di atas warna dasar; halaman adalah lembar putih */
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--side-w); display: flex; flex-direction: column; background: var(--ground); color: var(--text); transition: width .18s ease, transform .2s ease; overflow: hidden; }
.page { margin: var(--sheet-inset) var(--sheet-inset) var(--sheet-inset) var(--side-w); min-height: calc(100vh - 2 * var(--sheet-inset)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sheet); transition: margin-left .18s ease; }
body:not(.has-sidebar) .page { margin-left: var(--sheet-inset); }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 10px 12px 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex: none; color: var(--accent); }
.brand-mark .sheet-back { fill: #c9d6e6; }
.brand-mark .sheet-front { fill: currentColor; }
.brand-mark .sheet-lines { stroke: #fff; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.brand-text { display: flex; flex-direction: column; line-height: 16px; }
.brand-text small { color: var(--muted); font-size: 12px; font-weight: 400; }
.sidebar-toggle { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--muted); }
.sidebar-toggle:hover { background: var(--active); color: var(--text); }
.sidebar-toggle .icon { transition: transform .18s ease; }
.sidebar-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 8px 16px; display: flex; flex-direction: column; gap: 2px; }
.nav-section { margin: 20px 10px 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.nav-link { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; height: auto; min-height: 32px; font-weight: 400; padding: 6px 10px; border: 0; border-radius: var(--radius-control); background: none; color: #3b3f44; font: inherit; text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer; }
.nav-link .icon { color: var(--muted); }
.nav-link:hover { background: var(--active); color: var(--text); text-decoration: none; }
.nav-link[aria-current="page"] { background: var(--active); color: var(--text); font-weight: 500; }
.nav-link[aria-current="page"] .icon { color: var(--text); }
.sidebar-foot { padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.user { display: flex; align-items: center; gap: 10px; padding: 4px 6px; min-width: 0; }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: #d7e2ef; color: var(--accent); font-weight: 600; font-size: 12px; }
.user-text { display: flex; flex-direction: column; min-width: 0; line-height: 16px; }
.user-text strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.user-text small { color: var(--muted); font-size: 12px; }
.logout:hover { color: var(--negative); }
.logout:hover .icon { color: var(--negative); }
.mobilebar, .sidebar-backdrop { display: none; }
.nav-count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--negative); color: #fff; font-size: 12px; font-weight: 500; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.sidebar-collapsed .nav-link { position: relative; }
.sidebar-collapsed .nav-count { position: absolute; top: 0; right: 4px; min-width: 16px; line-height: 16px; padding: 0 4px; font-size: 11px; }

/* Pemberitahuan operator */
.notice { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 10px 14px; border: 1px solid var(--pill-warning-edge); border-radius: var(--radius-card); background: var(--pill-warning-bg); color: var(--pill-warning-ink); text-decoration: none; }
.notice:hover { text-decoration: none; border-color: #f5c84c; }
.notice-link { margin-left: auto; font-weight: 500; white-space: nowrap; }
.alert-card { margin-bottom: 12px; }
.alert-card p { margin: 6px 0; }
.alert-card-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }

/* Halaman masuk */
.auth-card { padding: 0; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.auth-brand .brand-mark { width: 32px; height: 32px; }
.auth-brand strong { display: block; font-weight: 600; }
.auth-brand small { color: var(--muted); font-size: 12px; }
button.block { width: 100%; height: 40px; }

/* Diciutkan menjadi deretan ikon (desktop) */
.sidebar-collapsed .sidebar { width: var(--side-w-mini); }
.sidebar-collapsed .page { margin-left: var(--side-w-mini); }
.sidebar-collapsed .nav-label { display: none; }
.sidebar-collapsed .sidebar-head { flex-direction: column; padding: 16px 0 8px; }
.sidebar-collapsed .sidebar-toggle .icon { transform: rotate(180deg); }
.sidebar-collapsed .nav-link, .sidebar-collapsed .user { justify-content: center; padding-left: 0; padding-right: 0; }
.sidebar-collapsed .nav-section { margin: 12px 8px 8px; height: 1px; background: var(--border); }

/* Layar sempit: bingkai hilang, lembar menjadi layar; menu menjadi laci */
@media (max-width: 900px) {
  .sidebar, .sidebar-collapsed .sidebar { width: 280px; transform: translateX(-100%); background: var(--surface); }
  .page, .sidebar-collapsed .page, body:not(.has-sidebar) .page { margin: 0; min-height: 100vh; border: 0; border-radius: 0; }
  .sidebar-collapsed .nav-label { display: inline; }
  .sidebar-collapsed .user-text { display: flex; }
  .sidebar-collapsed .sidebar-head { flex-direction: row; padding: 16px 10px 12px 16px; }
  .sidebar-collapsed .nav-link, .sidebar-collapsed .user { justify-content: flex-start; padding: 6px 10px; }
  .sidebar-collapsed .nav-section { height: auto; background: none; margin: 20px 10px 6px; }
  .nav-link { min-height: 44px; }
  .sidebar-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .18); }
  .sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(19, 20, 22, .35); }
  .mobilebar { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 20; height: 48px; padding: 0 12px; background: var(--ground); }
  .mobilebar .sidebar-toggle { width: 44px; height: 44px; color: var(--text); }
  .container { padding: 20px 16px; }
}
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--control-height); padding: 0 12px; font: inherit; font-weight: 500; line-height: 1; border-radius: var(--radius-control); border: 1px solid var(--control); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s; }
button:hover, .button:hover { background: var(--raised); border-color: #b3b8be; text-decoration: none; }
button:active, .button:active { background: var(--active); }
button.primary, .button.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
button.primary:hover, .button.primary:hover { background: #3a3d40; border-color: #3a3d40; }
button.danger { background: var(--surface); border-color: var(--pill-negative-edge); color: var(--negative); }
button.danger:hover { background: var(--pill-negative-bg); border-color: var(--negative); }
button.link { height: auto; border: 0; background: none; color: var(--accent); font-weight: 500; padding: 0; }
button.link:hover { background: none; text-decoration: underline; }
button:disabled { cursor: not-allowed; background: var(--raised); border-color: var(--border); color: var(--muted); }
input, select, textarea { font: inherit; height: 38px; padding: 0 12px; border: 1px solid var(--control); border-radius: 8px; background: #fff; color: var(--text); width: 100%; }
textarea { height: auto; padding: 8px 12px; line-height: 20px; }
input[type=file] { height: auto; padding: 8px; }
input::placeholder, textarea::placeholder { color: #6b6e72; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 78, 140, .16); }
input[type=checkbox], input[type=radio] { width: auto; height: auto; accent-color: var(--primary); }
label { display: block; font-weight: 500; }
label > input, label > select, label > textarea { display: block; margin-top: 8px; font-weight: 400; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: var(--gap); align-items: end; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 160px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px; }
form.panel { max-width: 720px; }
.alert { padding: 10px 14px; border-radius: var(--radius-card); margin: 8px 0; border: 1px solid var(--border); background: var(--raised); }
.alert-error { border-color: var(--pill-negative-edge); color: var(--pill-negative-ink); background: var(--pill-negative-bg); }
span.alert-error { padding: 2px 8px; border: 0; border-radius: var(--radius-chip); }
.alert-warn, .alert-warning { border-color: var(--pill-warning-edge); color: var(--pill-warning-ink); background: var(--pill-warning-bg); }
.alert-success, .alert-ok { border-color: #b7ebc8; color: var(--pill-positive-ink); background: var(--pill-positive-bg); }
.alerts, .messages { padding: 16px var(--pad) 0; }
.alerts .alert, .messages .alert { margin: 0; }
.alert .mono { font-size: 13px; }
.badge { display: inline-flex; align-items: center; flex: none; height: 20px; padding: 0 8px; border-radius: var(--radius-chip); background: var(--pill-neutral-bg); color: var(--pill-neutral-ink); font-size: 12px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; vertical-align: middle; }
.badge-ok { background: var(--pill-positive-bg); color: var(--pill-positive-ink); }
.badge-heavy { background: var(--pill-negative-bg); color: var(--pill-negative-ink); }
.badge-light { background: var(--pill-warning-bg); color: var(--pill-warning-ink); }
.badge-status { background: var(--pill-neutral-bg); color: var(--pill-neutral-ink); }

/* Beranda: satu daftar alat, dibagi garis */
.tools { margin-top: 20px; max-width: 760px; border: 1px solid var(--border); border-radius: var(--radius-card); }
.tool { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; min-height: 56px; padding: 0 16px; color: var(--text); text-decoration: none; }
.tool + .tool { border-top: 1px solid var(--rule); }
a.tool:hover { background: var(--raised); text-decoration: none; }
a.tool:first-child:hover { border-radius: var(--radius-card) var(--radius-card) 0 0; }
.tool-name { font-weight: 500; }
.tool-action { color: var(--accent); font-weight: 500; }
.tool-disabled .tool-name { color: var(--muted); font-weight: 400; }

/* Tabel: garis dan perataan, tanpa kotak, tanpa pita kepala */
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
th { padding-top: 8px; padding-bottom: 8px; font-size: 12px; line-height: 16px; color: var(--muted); font-weight: 400; border-bottom-color: var(--border); }
th.num, td.num { text-align: right; }
td { font-variant-numeric: tabular-nums; }
tbody tr:last-child > td { border-bottom: 0; }
td .job-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
td .button.primary { height: 28px; padding: 0 10px; background: var(--surface); border-color: var(--control); color: var(--text); }
td .button.primary:hover { background: var(--raised); }
.job-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters { display: flex; gap: 12px; align-items: end; margin: 20px 0 16px; flex-wrap: wrap; }
.filters > * { width: auto; }
.filters label { font-size: 12px; font-weight: 400; color: var(--muted); }
.filters select, .filters input { height: var(--control-height); margin-top: 4px; min-width: 160px; color: var(--text); font-size: 14px; }
.pagination { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
/* Review berdampingan (FR-023), target 1366 px */
.review { display: grid; grid-template-columns: minmax(0, var(--split, 50%)) 12px minmax(0, 1fr); height: calc(100vh - 104px); }
.review-divider { position: relative; cursor: col-resize; touch-action: none; }
.review-divider::after { content: ""; position: absolute; top: 50%; left: 50%; width: 4px; height: 40px; transform: translate(-50%, -50%); border-radius: 4px; background: var(--control); transition: background .12s, height .12s; }
.review-divider:hover::after, .review-divider:focus-visible::after, .review.resizing .review-divider::after { background: var(--accent); height: 64px; }
.review.resizing { cursor: col-resize; user-select: none; }
.review.resizing iframe, .review.resizing img { pointer-events: none; }
.review-source, .review-draft { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: auto; }
.review-source { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--raised); }
.review-draft { background: var(--surface); padding: 4px 20px 20px; }
.viewer-toolbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 8px; background: var(--raised); border-bottom: 1px solid var(--border); }
.viewer-toolbar button { width: 32px; padding: 0; }
.viewer-toolbar button[data-viewer="reset"] { width: auto; padding: 0 10px; }
.viewer-toolbar .muted { margin-left: 6px; font-size: 13px; line-height: 18px; }
/* Penampil sumber: geser/zoom lewat transform pada stage, area pandang tidak menggulir (FR-107). */
.viewer-viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; cursor: grab; user-select: none; }
.viewer-viewport.dragging { cursor: grabbing; }
.viewer-stage { padding: 16px; transform-origin: center center; will-change: transform; }
.viewer-stage img { display: block; max-width: 100%; margin: 0 auto 16px; pointer-events: none; background: #fff; border: 1px solid var(--border); }
.field { display: grid; grid-template-columns: 9.5rem 1fr; gap: 4px 16px; padding: 10px 8px; border-bottom: 1px solid var(--rule); }
.field-label { font-weight: 500; padding-top: 9px; }
.field input { height: 38px; }
.field > span:not(.field-source):not(.save-state) { padding-top: 9px; }
.field-source { grid-column: 2; font-size: 13px; line-height: 18px; color: var(--muted); }
.field.has-heavy { background: var(--pill-negative-bg); border-radius: var(--radius-control); }
.field.has-light { background: var(--pill-warning-bg); border-radius: var(--radius-control); }
.save-state { font-size: 12px; line-height: 16px; grid-column: 2; min-height: 16px; }
.save-state.ok { color: var(--positive); }
.save-state.err { color: var(--negative); }
/* Kolom review: mode baca/edit/tersimpan (FR-103) dan tanda di dalam kolom (FR-101). */
.field-control { display: flex; gap: 8px; align-items: center; }
.field-control input { flex: 1; min-width: 0; margin-top: 0; }
.field-control input[readonly] { background: transparent; border-color: transparent; padding-left: 0; cursor: default; }
.field.has-heavy .field-control input[readonly] { color: var(--pill-negative-ink); font-weight: 600; }
.field.is-editing { background: var(--surface); box-shadow: inset 2px 0 0 var(--text); border-radius: 0; }
.field.is-editing .field-control input { background: #fff; border-color: var(--accent); }
.field-flag, .field-confirm { grid-column: 2; font-size: 13px; line-height: 18px; }
.field-flag-berat { color: var(--pill-negative-ink); }
.field-flag-ringan { color: var(--pill-warning-ink); }
.field-flag.is-confirmed { color: var(--muted); }
.field-confirm summary { cursor: pointer; color: var(--pill-negative-ink); font-weight: 500; }
.field-confirm form { display: flex; gap: 8px; margin-top: 6px; }
.field-confirm input { flex: 1; min-width: 0; height: var(--control-height); }
.doc-flags.has-flags { margin: 12px 0 8px; padding: 10px 12px; border: 1px solid var(--pill-negative-edge); border-radius: var(--radius-card); background: var(--pill-negative-bg); }
.doc-flags .field-flag { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.barcode-panel { margin: 16px 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-card); }
.barcode-panel h2 { margin-top: 0; }
.barcode-preview { display: block; width: 160px; height: auto; image-rendering: pixelated; border: 1px solid var(--border); margin-bottom: 8px; }
.approve { margin-top: 24px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--raised); }
.approve h2 { margin: 0; }
.file-results li { margin: 4px 0; }
.kv { display: grid; grid-template-columns: 14rem 1fr; gap: 12px 16px; align-items: center; max-width: 880px; }
.kv > span:nth-child(odd) { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
h1.mono { font-size: 20px; font-weight: 500; letter-spacing: 0; }
.mono .badge { font-family: var(--font); }
/* Utilitas pengganti style inline (CSP style-src 'self') */
.center { text-align: center; }
.inline { display: inline; }
.pre-wrap { white-space: pre-wrap; }
.cell-22 { max-width: 22rem; }
.row > .fixed-12 { flex: 0 0 12rem; }
.row.no-grow, .row > .no-grow { flex: 0 0 auto; }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.review-head h1 { margin: 0; display: flex; align-items: center; gap: 10px; }
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline; }

.docx-preview { margin: 8px 0; padding: 16px 20px; background: #fff; color: #111; border: 1px solid var(--border); border-radius: var(--radius-card); font-family: "Times New Roman", serif; font-size: .9rem; overflow-x: auto; }
.docx-preview p { margin: .2rem 0; }
.docx-table { width: auto; border-collapse: collapse; margin: .4rem auto; border: 0; border-radius: 0; box-shadow: none; background: none; }
.docx-table td { padding: .1rem .4rem; vertical-align: top; border-bottom: 0; }
.docx-table td:first-child { padding-left: .4rem; }
.docx-table.bordered > tbody > tr > td { border: 1px solid #444; }
.docx-table.grid td { font-size: .75rem; }
.docx-footer { margin-top: 1rem; font-size: .75rem; color: #555; }
/* Verifikasi dua langkah (002 US5). */
.qr-setup { display: block; margin: 0 auto; image-rendering: pixelated; }
.recovery-codes { columns: 2; font-family: var(--mono); font-size: 14px; }

/* Tablet dan ponsel: tabel bergulir di bingkainya sendiri, halaman tidak bergulir ke samping */
@media (max-width: 900px) {
  table:not(.docx-table) { display: block; overflow-x: auto; }
}
@media (max-width: 640px) {
  table:not(.docx-table) { white-space: nowrap; }
  .review { grid-template-columns: 1fr; height: auto; gap: 12px; }
  .review-divider { display: none; }
  .review-source { max-height: 60vh; }
  .field { grid-template-columns: 1fr; }
  .field-source, .save-state { grid-column: 1; }
  .field-label { padding-top: 0; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv > span:nth-child(even) { margin-bottom: 10px; }
}
