/* Log Downtime Mesin — palet baja + sinyal merah untuk mesin berhenti */
:root {
  --ink: #1d2630;
  --steel: #3e4c5a;
  --muted: #62707c;
  --line: #d3d9de;
  --field: #b4bec7;
  --paper: #eef1f3;
  --surface: #ffffff;
  --signal: #c8321e;
  --signal-dark: #9e2414;
  --signal-soft: #fbe9e6;
  --caution: #f2b705;
  --ok: #2f7d4f;
  --ok-soft: #e4f1e9;
  --focus: #1a66c9;
  --radius: 6px;
  --font: "Barlow", "Segoe UI", Arial, sans-serif;
  --font-num: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--font); }
a { color: var(--focus); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.print-only { display: none; }

/* Topbar dengan garis peringatan */
.topbar {
  background: var(--ink); color: #fff;
  border-bottom: 6px solid var(--caution);
  border-image: repeating-linear-gradient(-45deg, var(--caution) 0 10px, var(--ink) 10px 20px) 6;
}
.topbar-inner {
  max-width: 1240px; margin: 0 auto; padding: .7rem 1.25rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.brand { font-family: var(--font-num); font-size: 1.5rem; font-weight: 700; color: #fff; text-decoration: none; }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; flex: 1; }
.nav a { color: #c7d0d8; text-decoration: none; padding: .4rem .75rem; border-radius: var(--radius); font-weight: 500; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.active { color: #fff; background: var(--steel); }

.container { max-width: 1240px; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
h1 { font-family: var(--font-num); font-size: 2.1rem; font-weight: 600; line-height: 1.1; margin: 0 0 .3rem; }
h2, h3 { font-size: 1.1rem; margin: 0 0 1rem; line-height: 1.3; }
.sub { color: var(--muted); margin: 0; max-width: 70ch; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 1.25rem; }
.split-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.split-form { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); align-items: start; }
@media (max-width: 800px) { .split-form { grid-template-columns: 1fr; } }
.empty { color: var(--muted); margin: .5rem 0; }

/* Angka ringkas: satu strip, bukan kartu terpisah */
.figures {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.25rem;
}
.figure { padding: 1rem 1.25rem; border-left: 1px solid var(--line); }
.figure:first-child { border-left: 0; }
.figure .val { font-family: var(--font-num); font-size: 2rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.figure .val-signal { color: var(--signal); }
.figure .lbl { color: var(--muted); font-size: .9rem; }

/* Tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-weight: 600; line-height: 1.2; padding: .6rem 1rem;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--steel); border-color: var(--steel); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--field); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn-caution { background: var(--caution); border-color: var(--caution); color: var(--ink); }
.btn-caution:hover { background: #ffca2c; border-color: #ffca2c; }
.btn-danger { background: transparent; border-color: transparent; color: var(--signal); }
.btn-danger:hover { background: var(--signal-soft); border-color: var(--signal-soft); }
.btn-sm { padding: .35rem .65rem; font-size: .9rem; }

/* Pesan */
.flash { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; border-left: 4px solid; }
.flash-ok { background: var(--ok-soft); border-color: var(--ok); }
.flash-err { background: var(--signal-soft); border-color: var(--signal); }
.flash ul { margin: .35rem 0 0; padding-left: 1.2rem; }

/* Form */
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.hint { color: var(--muted); font-size: .85rem; margin: .3rem 0 0; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  padding: .55rem .65rem; border: 1px solid var(--field); border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 2px solid rgba(26,102,201,.25); outline-offset: 0; }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem 1.25rem; }
.span-all { grid-column: 1 / -1; }
.stack { display: grid; gap: 1rem; }
.with-btn { display: flex; gap: .5rem; }
.with-btn input { flex: 1; }
.form-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem; }

.time-block { border: 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); margin: 1.5rem 0; padding: 1rem 0 1.25rem; }
.time-block legend { font-weight: 700; padding: 0 .5rem 0 0; }
.time-grid { display: grid; grid-template-columns: 1fr 1fr minmax(200px, 1.1fr); gap: 1rem 1.25rem; align-items: end; }
@media (max-width: 760px) { .time-grid { grid-template-columns: 1fr; } }
.readout { display: flex; flex-direction: column; }
.readout-lbl { font-weight: 600; font-size: .95rem; }
.readout-val { font-family: var(--font-num); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.readout-val.is-set { color: var(--signal); }
.readout-note { color: var(--muted); font-size: .85rem; min-height: 1.3em; }

.filter-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.25rem; }
.filter-box > summary { cursor: pointer; padding: .85rem 1.25rem; font-weight: 600; list-style-position: inside; }
.filter-box[open] > summary { border-bottom: 1px solid var(--line); }
.filter-box .filters { padding: 1.25rem; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .9rem 1rem; align-items: end; }
.filter-actions { display: flex; gap: .5rem; }
.day-picker { display: flex; gap: .4rem; align-items: center; }
.day-picker input { width: auto; }

/* Tabel */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data th { text-align: left; font-weight: 600; color: var(--steel); padding: .5rem .6rem; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.data td { padding: .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data tbody tr:hover td { background: #f6f8f9; }
.data tfoot td { border-top: 2px solid var(--ink); border-bottom: 0; }
.data.compact td, .data.compact th { padding: .4rem .5rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data th.num { text-align: right; }
.dur { font-family: var(--font-num); font-size: 1.05rem; font-weight: 600; color: var(--signal); }
.tag { display: inline-block; padding: 0 .5rem; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); font-size: .85rem; white-space: nowrap; }
.keterangan { min-width: 280px; max-width: 520px; }
.keterangan p { margin: .35rem 0 0; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions > * { display: inline-block; vertical-align: middle; margin: 0 0 0 .25rem; }
.row-actions form { margin: 0 0 0 .25rem; }
tr.is-off td { color: var(--muted); }
.pager { display: flex; gap: .25rem; flex-wrap: wrap; margin-top: 1rem; }
.pager a, .pager span { min-width: 2.2rem; text-align: center; padding: .3rem .5rem; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; }
.pager .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Garis waktu downtime per mesin */
.tl-scroll { overflow-x: auto; margin-bottom: 1.5rem; }
.tl { min-width: 760px; }
.tl-row { display: grid; grid-template-columns: 170px 1fr; align-items: stretch; border-bottom: 1px solid var(--line); }
.tl-label { padding: .45rem .75rem .45rem 0; line-height: 1.2; }
.tl-label strong { display: block; }
.tl-label span { color: var(--muted); font-size: .85rem; }
.tl-track {
  position: relative; min-height: 48px;
  background-image: repeating-linear-gradient(to right, #e7ebee 0 1px, transparent 1px calc(100% / 24));
}
.tl-head { border-bottom: 2px solid var(--ink); }
.tl-scale { background: none; height: 48px; }
.tl-tick { position: absolute; bottom: 4px; transform: translateX(-50%); font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-tick.is-first { transform: none; }
.tl-tick.is-last { transform: translateX(-100%); }
.tl-shiftname { position: absolute; top: 2px; padding-left: 6px; font-weight: 600; font-size: .85rem; border-left: 2px solid var(--ink); }
.tl-shiftline { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--ink); opacity: .55; }
.tl-block {
  position: absolute; top: 10px; bottom: 10px; min-width: 4px;
  background: var(--signal); color: #fff; border-radius: 2px;
  font-family: var(--font-num); font-size: .85rem; font-weight: 600; line-height: 28px;
  padding: 0 5px; overflow: hidden; white-space: nowrap; text-decoration: none;
}
.tl-block:hover, .tl-block:focus-visible { background: var(--signal-dark); z-index: 2; }

/* Bar rekap */
.bar-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr auto; gap: .75rem; align-items: center; padding: .4rem 0; }
.bar { height: 10px; background: var(--paper); border-radius: 2px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--steel); }
.bar-signal span { background: var(--signal); }
.bar-val { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .95rem; }

/* Sub menu modul */
.subnav { display: flex; gap: .25rem; margin: -.5rem 0 1.25rem; border-bottom: 2px solid var(--line); overflow-x: auto; }
.subnav a { padding: .6rem 1rem; color: var(--steel); text-decoration: none; font-weight: 600; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -2px; }
.subnav a:hover { color: var(--ink); }
.subnav a.active { color: var(--ink); border-bottom-color: var(--ink); }

/* Pencapaian target */
.capai { display: inline-grid; grid-template-columns: minmax(70px, 1fr) auto; align-items: center; gap: .5rem; min-width: 150px; width: 100%; }
.capai-bar { height: 8px; background: var(--paper); border-radius: 4px; overflow: hidden; }
.capai-bar span { display: block; height: 100%; background: var(--field); border-radius: 4px; }
.capai-val { font-family: var(--font-num); font-weight: 600; font-size: 1.05rem; min-width: 3.6rem; text-align: right; font-variant-numeric: tabular-nums; }
.capai-tercapai .capai-bar span { background: var(--ok); }
.capai-tercapai .capai-val, .pct-tercapai, .val-tercapai { color: var(--ok); }
.capai-hampir .capai-bar span { background: #d99a00; }
.capai-hampir .capai-val, .pct-hampir, .val-hampir { color: #9a6700; }
.capai-kurang .capai-bar span { background: var(--signal); }
.capai-kurang .capai-val, .pct-kurang, .val-kurang { color: var(--signal); }
.capai-belum .capai-val, .pct-belum { color: var(--muted); }
.status { display: inline-block; padding: .05rem .5rem; border-radius: 3px; font-size: .85rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.status-tercapai { background: var(--ok-soft); color: var(--ok); }
.status-hampir { background: #fff4d6; color: #8a5c00; }
.status-kurang { background: var(--signal-soft); color: var(--signal-dark); }
.status-belum, .status-tanpa-target { background: var(--paper); color: var(--muted); border-color: var(--line); }
.figure .val small { font-size: 1.1rem; color: var(--muted); font-weight: 500; }
.prod-summary { margin: -.25rem 0 .75rem; }
.prod-summary strong { font-family: var(--font-num); font-size: 1.25rem; }
.prod-bar-row { grid-template-columns: minmax(140px, 1.2fr) 2fr minmax(120px, auto); }
.grid-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.grid-head h2 { margin: 0; }

/* Input produksi */
.pick-shift { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 1rem 1.5rem; align-items: end; }
.pick-shift .label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.seg { display: flex; border: 1px solid var(--field); border-radius: var(--radius); overflow: hidden; }
.seg a { flex: 1; display: flex; flex-direction: column; align-items: center; padding: .4rem .5rem; text-decoration: none;
  color: var(--ink); font-weight: 600; border-left: 1px solid var(--field); line-height: 1.2; }
.seg a:first-child { border-left: 0; }
.seg a small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.seg a:hover { background: var(--paper); }
.seg a.on { background: var(--ink); color: #fff; }
.seg a.on small { color: #c7d0d8; }
.prod-grid td { vertical-align: middle; }
.prod-grid input { padding: .45rem .55rem; }
.prod-grid th, .prod-grid td { padding-left: .4rem; padding-right: .4rem; }
.prod-grid .num input { text-align: right; font-variant-numeric: tabular-nums; width: 92px; }
.prod-grid .in-reject { width: 70px; }
.prod-grid input[name$="[produk]"] { min-width: 150px; }
.prod-grid input[name$="[keterangan]"] { min-width: 140px; }
.prod-grid .capai { min-width: 130px; }
.prod-grid .row-actions { white-space: normal; width: 1%; }
.prod-grid .row-actions > * { display: block; margin: 0 0 .25rem; text-align: center; white-space: nowrap; }
.prod-mesin { min-width: 130px; }
.prod-mesin span { display: block; }
.unit { display: flex; align-items: center; gap: .35rem; }
.unit span { color: var(--muted); font-size: .8rem; min-width: 2.3rem; text-align: left; }
.prod-row.is-hapus td { opacity: .45; }
.prod-row.is-hapus .row-actions { opacity: 1; }
.chk-hapus { display: inline-flex; align-items: center; gap: .3rem; color: var(--signal); font-size: .9rem; cursor: pointer; white-space: nowrap; }
.chk-hapus input { width: auto; }
.prod-total { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: flex-end; padding-top: 1rem; border-top: 2px solid var(--ink); margin-top: .5rem; }
.prod-total strong { font-family: var(--font-num); font-size: 1.2rem; }
.sticky-actions { position: sticky; bottom: 0; background: var(--paper); padding: .75rem 0; margin-top: 0; z-index: 5; border-top: 1px solid var(--line); }
.form-grid.two { grid-template-columns: 1fr 1fr; }

/* Grafik tren harian */
.trend { display: flex; align-items: flex-end; overflow-x: auto; padding-bottom: .25rem; }
.trend-col { flex: 1 0 34px; display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.trend-bar { position: relative; width: 100%; height: 160px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--ink); }
.trend-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 83.333%; border-top: 1px dashed var(--steel); }
.trend-bar > span { position: relative; width: 62%; max-width: 28px; border-radius: 2px 2px 0 0; background: var(--field); }
.trend-bar em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 2px;
  font-style: normal; font-size: .78rem; color: var(--steel); font-variant-numeric: tabular-nums; }
.trend { padding-top: 1.2rem; }
.trend-bar .bar-tercapai { background: var(--ok); }
.trend-bar .bar-hampir { background: #d99a00; }
.trend-bar .bar-kurang { background: var(--signal); }
.trend-lbl { font-size: .75rem; color: var(--muted); white-space: nowrap; }

/* WhatsApp & aksi cepat */
.btn-wa { background: #1f8f4e; border-color: #1f8f4e; color: #fff; }
.btn-wa:hover { background: #17733e; border-color: #17733e; }
.quick-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: -.5rem 0 1rem; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
  background: var(--ok-soft); border-left: 4px solid var(--ok); border-radius: var(--radius); padding: .6rem 1rem; margin-bottom: 1rem; }
.share-panel textarea { font-size: .95rem; min-height: 260px; }
.panel.narrow { max-width: 480px; }
.btn-block { width: 100%; }

/* Menu & keluar */
.menu-toggle { display: none; font: inherit; font-weight: 600; color: #fff; background: transparent;
  border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); padding: .5rem .85rem; cursor: pointer; }
.logout { display: flex; align-items: center; gap: .5rem; margin: 0 0 0 auto; }
.logout .who { color: #9fadb9; font-size: .9rem; }
.logout button { font: inherit; font-weight: 500; color: #c7d0d8; background: transparent; border: 0; padding: .4rem .6rem; border-radius: var(--radius); cursor: pointer; }
.logout button:hover { color: #fff; background: rgba(255,255,255,.08); }

/* Laporan */
.report-head { display: none; }
.signatures { grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; margin-top: 2.5rem; page-break-inside: avoid; }
.sign-line { height: 70px; border-bottom: 1px solid #000; margin: 0 1.5rem .3rem; }
.signatures p { margin: 0; }

@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body { background: #fff; font-size: 11px; }
  .no-print, .topbar { display: none !important; }
  .print-only { display: block; }
  .signatures.print-only { display: grid; }
  .container { max-width: none; padding: 0; }
  .panel, .figures { border: 0; padding: 0; margin-bottom: 12px; }
  .figure { padding: 4px 8px; }
  .figure .val { font-size: 18px; }
  .report-head { display: block; text-align: center; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 12px; }
  .report-company { font-weight: 700; font-size: 14px; }
  .report-title { font-size: 16px; margin: 2px 0; }
  .report-head p { margin: 0; }
  .split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .data td, .data th { padding: 3px 4px; }
  .data tbody tr { page-break-inside: avoid; }
  .dur, .figure .val-signal { color: #000; }
  .table-wrap { overflow: visible; }
  a { color: inherit; text-decoration: none; }
  .printed-at { margin-top: 12px; font-size: 9px; color: #555; }
}

/* ===== Smartphone ===== */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hide-sm { display: none !important; }
  .container { padding: 1rem .85rem 2.5rem; }
  h1 { font-size: 1.65rem; }

  .topbar-inner { display: grid; grid-template-columns: 1fr auto auto; gap: .5rem; padding: .6rem .85rem; }
  .brand { font-size: 1.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .menu-toggle { display: inline-block; min-height: 42px; }
  .btn-catat { min-height: 42px; padding: .5rem .8rem; }
  .nav { display: none; grid-column: 1 / -1; flex-direction: column; gap: 0; padding-bottom: .4rem; }
  .menu-open .nav { display: flex; }
  .nav a { padding: .8rem .5rem; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .logout { margin: .5rem 0 0; justify-content: space-between; padding: 0 .5rem; }
  .logout button { border: 1px solid rgba(255,255,255,.35); padding: .55rem 1rem; }

  .btn { min-height: 44px; }
  .btn-sm { min-height: 38px; }
  .page-head { align-items: stretch; }
  .head-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .form-actions .btn, .filter-actions .btn { flex: 1; }
  .panel { padding: 1rem; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figure { border-left: 0; border-top: 1px solid var(--line); padding: .75rem .9rem; }
  .figure:nth-child(-n+2) { border-top: 0; }
  .figure:nth-child(even) { border-left: 1px solid var(--line); }
  .figure .val { font-size: 1.6rem; }
  .split, .split-3 { grid-template-columns: 1fr; }
  .day-picker { width: 100%; }
  .day-picker input { flex: 1; }
  .quick-actions .btn { flex: 1; }
  .tl-row { grid-template-columns: 96px 1fr; }
  .tl-label span { display: none; }
  .bar-row { grid-template-columns: 1fr auto; }
  .bar-row .bar { grid-column: 1 / -1; grid-row: 2; }

  .pick-shift { grid-template-columns: 1fr; }
  .prod-bar-row { grid-template-columns: 1fr auto; }
  .prod-bar-row .capai { grid-column: 1 / -1; grid-row: 2; }
  .prod-total { justify-content: space-between; gap: .75rem; }
  .table-wrap:has(.prod-grid) { overflow: visible; }
  .prod-grid .num input, .prod-grid .in-reject, .prod-grid input[name$="[produk]"], .prod-grid input[name$="[keterangan]"] { width: 100%; min-width: 0; }
  .prod-grid td.num { text-align: left; }
  .form-grid.two { grid-template-columns: 1fr 1fr; }

  /* Tabel jadi kartu */
  .table-wrap:has(.stack-sm) { overflow: visible; }
  table.stack-sm thead { display: none; }
  table.stack-sm, table.stack-sm tbody, table.stack-sm tr, table.stack-sm td { display: block; width: 100%; }
  table.stack-sm tr { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; padding: .35rem .75rem; background: var(--surface); }
  table.stack-sm tbody tr:hover td { background: none; }
  table.stack-sm td { border: 0; padding: .3rem 0; text-align: left; white-space: normal; max-width: none; min-width: 0; }
  table.stack-sm td[data-label] { display: grid; grid-template-columns: 6.5rem 1fr; gap: .5rem; }
  table.stack-sm td[data-label]::before { content: attr(data-label); color: var(--muted); font-weight: 500; font-family: var(--font); font-size: .9rem; }
  table.stack-sm td.keterangan { display: block; }
  table.stack-sm td.keterangan::before { display: none; }
  table.stack-sm .row-actions > * { display: inline-block; margin: 0 .25rem .25rem 0; }
  table.stack-sm .row-actions { text-align: left; white-space: normal; width: 100%; border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .6rem; }
  table.stack-sm tfoot { display: block; }
  table.stack-sm tfoot tr { display: flex; justify-content: space-between; border: 0; background: none; }
  table.stack-sm tfoot td { width: auto; }
  table.stack-sm tfoot td:first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
