/* Layout: sidebar kiri (menu per peran) + area kerja; di ponsel menu menjadi laci atas. */
:root {
  --bg: #f5f3f0; --surface: #ffffff; --surface-2: #faf8f6; --ink: #241a12; --ink-2: #554638; --muted: #85776a;
  --line: #e6dfd7; --line-2: #d3c8bc; --accent: #6b4a2f; --accent-ink: #ffffff; --accent-soft: #f3ebe1; --gold: #c9a467;
  --good: #1f7a45; --good-soft: #e3f3e8; --warn: #a2650d; --warn-soft: #fbf0dc; --crit: #b3342a; --crit-soft: #fbe6e3;
  --info: #2a62b8; --info-soft: #e5edf9; --gray-soft: #eceff0;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s8: #e34948; --s7: #6250d6;
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r: 10px; --shadow: 0 1px 2px rgba(15, 40, 35, .06), 0 4px 16px rgba(15, 40, 35, .05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15110e; --surface: #1e1915; --surface-2: #241e19; --ink: #efe8e1; --ink-2: #c6b8aa; --muted: #95877a;
    --line: #332b24; --line-2: #45392f; --accent: #d8b47a; --accent-ink: #1a120b; --accent-soft: #33281c; --gold: #d8b47a;
    --good: #5cc98a; --good-soft: #163324; --warn: #e3a64a; --warn-soft: #3a2b12; --crit: #ef7a6e; --crit-soft: #3d1b18;
    --info: #79a8ec; --info-soft: #18263d; --gray-soft: #222c2a;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s8: #e66767; --s7: #9085e9;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15110e; --surface: #1e1915; --surface-2: #241e19; --ink: #efe8e1; --ink-2: #c6b8aa; --muted: #95877a;
  --line: #332b24; --line-2: #45392f; --accent: #d8b47a; --accent-ink: #1a120b; --accent-soft: #33281c; --gold: #d8b47a;
  --good: #5cc98a; --good-soft: #163324; --warn: #e3a64a; --warn-soft: #3a2b12; --crit: #ef7a6e; --crit-soft: #3d1b18;
  --info: #79a8ec; --info-soft: #18263d; --gray-soft: #222c2a;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s8: #e66767; --s7: #9085e9;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.25; }
h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 700; }
.num, td.num, .tabnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.eyebrow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100%; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 16px; }
.brand-mark { width: 42px; height: 42px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; flex: none; overflow: hidden; }
.brand-mark img { width: 36px; height: 36px; object-fit: contain; }
.login-logo { display: block; width: min(280px, 80%); margin: 0 auto; background: #fff; border-radius: 12px; padding: 14px 18px; }
.kpi.link { cursor: pointer; transition: border-color .15s, box-shadow .15s; text-align: left; font: inherit; color: inherit; }
.kpi.link:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.kpi.link .go { font-size: 11.5px; color: var(--accent); font-weight: 700; }
.drill { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--accent-soft); color: var(--accent); border-radius: 8px; padding: 8px 12px; font-weight: 600; font-size: 13px; }
tr.clk { cursor: pointer; }
.tag.hid { border-color: var(--line-2); color: var(--muted); font-weight: 600; }
.brand b { display: block; font-size: 14px; }
.brand span { font-size: 11px; color: var(--muted); }
.nav-group { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 14px 10px 4px; }
.nav-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--ink-2); font-weight: 500; }
.nav-btn:hover { background: var(--surface-2); color: var(--ink); }
.nav-btn.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.nav-btn .cnt { margin-left: auto; font-size: 11px; background: var(--crit-soft); color: var(--crit); border-radius: 99px; padding: 0 7px; font-weight: 700; }
.side-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.who b { display: block; font-size: 13px; }
.who span { font-size: 11.5px; color: var(--muted); }
.main { min-width: 0; padding-block: 22px 60px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.main-inner { max-width: 1240px; margin: 0 auto; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.main-inner > *, .grid > * { min-width: 0; }
.topbar { display: none; }
.page-head { display: flex; gap: 12px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); max-width: 70ch; }
.demo-band { background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 600; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 40; transform: translateX(-100%); transition: transform .2s; padding-top: calc(18px + env(safe-area-inset-top, 0px)); box-shadow: var(--shadow); }
  .side.open { transform: none; }
  .topbar { display: flex; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); align-items: center; gap: 10px; }
  .scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 35; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- komponen ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .g2, .g3 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 7px 13px; cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.pri:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn.danger { color: var(--crit); border-color: color-mix(in srgb, var(--crit) 40%, transparent); }
.btn.ghost { border-color: transparent; background: none; }
.btn.sm { padding: 4px 9px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line-2); background: var(--surface); border-radius: 8px; padding: 7px 10px; min-width: 0; }
textarea.input { resize: vertical; min-height: 38px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.filters .field { min-width: 150px; flex: 1 1 150px; max-width: 260px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { border: 0; background: none; padding: 9px 12px; cursor: pointer; color: var(--ink-2); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.tab .c { font-size: 11px; background: var(--gray-soft); border-radius: 99px; padding: 0 7px; margin-left: 4px; color: var(--ink-2); }

.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 1px 9px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-BELUM { background: var(--gray-soft); color: var(--muted); }
.st-DRAFT { background: var(--warn-soft); color: var(--warn); }
.st-SUBMITTED { background: var(--info-soft); color: var(--info); }
.st-APPROVED, .st-HR_SIGNED { background: var(--accent-soft); color: var(--accent); }
.st-SELESAI { background: var(--good-soft); color: var(--good); }
.tag { display: inline-block; border: 1px solid var(--line-2); border-radius: 5px; padding: 0 6px; font-size: 11px; font-weight: 700; color: var(--ink-2); letter-spacing: .02em; }
.tag.k { border-color: color-mix(in srgb, var(--s2) 50%, transparent); color: var(--s2); }
.ok-chip { color: var(--good); font-weight: 700; }
.bad-chip { color: var(--crit); font-weight: 700; }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 9px 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: color-mix(in srgb, var(--accent-soft) 35%, transparent); }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl .nm b { display: block; font-weight: 650; }
.tbl .nm span { font-size: 11.5px; color: var(--muted); }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 8px 0 0; font-size: 12px; color: var(--muted); }

.kpi { display: grid; gap: 2px; }
.kpi .v { font-size: 26px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.kpi .s { font-size: 11.5px; color: var(--muted); }
.kpi.alert .v { color: var(--crit); }
.bar { height: 8px; border-radius: 99px; background: var(--gray-soft); overflow: hidden; display: flex; gap: 2px; min-width: 80px; }
.bar i { display: block; height: 100%; }
.chart-box { position: relative; height: 270px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
details.dt summary { cursor: pointer; font-size: 12px; color: var(--muted); margin-top: 8px; }

.note { border-radius: 8px; padding: 10px 12px; font-size: 13px; border: 1px solid var(--line); background: var(--surface-2); }
.note.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.note.crit { background: var(--crit-soft); border-color: transparent; color: var(--crit); white-space: pre-line; }
.note.info { background: var(--info-soft); border-color: transparent; color: var(--info); }
.note.good { background: var(--good-soft); border-color: transparent; color: var(--good); }

/* ---------- form PA ---------- */
.ident { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 18px; }
.ident div span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.ident div b { font-weight: 650; overflow-wrap: anywhere; }
@media (max-width: 800px) { .ident { grid-template-columns: 1fr 1fr; } }
.sec-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sec-h .w { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pa-tbl td.desc { min-width: 220px; }
.pa-tbl td.desc small { display: block; color: var(--muted); white-space: pre-line; margin-top: 2px; font-size: 12px; }
.rate { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.rate button { border: 0; background: var(--surface); width: 34px; height: 32px; cursor: pointer; font-weight: 700; color: var(--ink-2); border-right: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.rate button:last-child { border-right: 0; }
.rate button:hover { background: var(--accent-soft); }
.rate button.on { background: var(--accent); color: var(--accent-ink); }
.rate.ro button { cursor: default; }
.rate.ro button:not(.on) { color: var(--line-2); }
.auto-badge { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; }
.auto-badge .n { min-width: 32px; height: 32px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.auto-badge.miss .n { background: var(--crit-soft); color: var(--crit); }
.orig { font-size: 11px; color: var(--warn); font-weight: 700; display: block; margin-top: 3px; }
.sumbar { position: sticky; bottom: 12px; z-index: 20; background: var(--ink); color: var(--bg); border-radius: 12px; padding: 12px 16px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.sumbar .t { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sumbar .k { font-weight: 700; padding: 2px 10px; border-radius: 99px; background: color-mix(in srgb, var(--bg) 18%, transparent); }
.sumbar .m { font-size: 12px; opacity: .8; }
.list-in { display: grid; gap: 6px; }
.list-in .li { display: flex; gap: 6px; align-items: flex-start; }
.list-in .li .no { width: 22px; padding-top: 8px; color: var(--muted); font-weight: 700; font-size: 12px; text-align: right; flex: none; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.choice label { display: inline-flex; gap: 7px; align-items: center; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 12px; cursor: pointer; font-weight: 600; }
.choice label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.signs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 800px) { .signs { grid-template-columns: 1fr 1fr; } }
.sign { border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px; display: grid; gap: 4px; align-content: start; min-height: 150px; }
.sign.done { border-style: solid; border-color: var(--accent); }
.sign .role { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sign .img { height: 62px; display: grid; place-items: center; background: #fff; border-radius: 6px; }
.sign .img img { max-height: 58px; max-width: 100%; }
.sign .wait { height: 62px; display: grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; }
.sign .order { width: 20px; height: 20px; border-radius: 50%; background: var(--gray-soft); display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; margin-right: 4px; }
.sign.done .order { background: var(--accent); color: var(--accent-ink); }
.pad-wrap { border: 1px solid var(--line-2); border-radius: 10px; background: #fff; touch-action: none; max-width: 100%; }
.pad-wrap canvas { display: block; width: 100%; height: 150px; cursor: crosshair; }
.log { font-size: 12px; color: var(--ink-2); display: grid; gap: 3px; }
.log b { font-weight: 650; }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(8, 20, 18, .5); z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: 14px; width: min(720px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal.wide { width: min(980px, 100%); }
.modal-h { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-b { padding: 16px 18px; display: grid; gap: 14px; }
.modal-f { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--surface); }
.toasts { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 80; display: grid; gap: 8px; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-weight: 600; max-width: 360px; box-shadow: var(--shadow); white-space: pre-line; }
.toast.err { background: var(--crit); color: #fff; }
.guide-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.guide-tbl td, .guide-tbl th { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.guide-tbl th { background: var(--surface-2); font-size: 12px; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; }

/* ---------- login ---------- */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
.login-card { width: min(420px, 100%); display: grid; gap: 16px; }
.login-card .brand { padding: 0; }
.demo-acc { display: grid; gap: 6px; }
.demo-acc button { text-align: left; justify-content: flex-start; }

/* ---------- loading ---------- */
.loading { padding: 40px; text-align: center; color: var(--muted); }
.spin { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: sp 0.8s linear infinite; margin: 0 auto 10px; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- cetak ---------- */
#print-root { display: none; }
.pv-bg { position: fixed; inset: 0; z-index: 70; background: #5b6461; overflow: auto; }
.pv-bar { position: sticky; top: 0; z-index: 2; background: #1c2523; color: #fff; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pv-bar .btn { background: #fff; color: #111; border-color: #fff; }
.pv-bar .btn.pri { background: #d8b47a; border-color: #d8b47a; color: #1a120b; }
.pv-bar label { font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.pv-pages { display: grid; gap: 16px; justify-content: center; padding: 20px 8px 60px; }
.pv-pages .sheet { box-shadow: 0 4px 18px rgba(0, 0, 0, .35); }

.sheet { background: #fff; color: #000; overflow: hidden; position: relative; font-family: 'Plus Jakarta Sans', Arial, sans-serif; }
.sheet.a5 { width: 148mm; height: 210mm; padding: 7mm 8mm 6mm; }
.sheet.a4 { width: 297mm; height: 210mm; padding: 10mm 12mm; }
.sheet .pbody { position: absolute; left: 8mm; right: 8mm; top: 7mm; bottom: 12mm; overflow: hidden; }
.sheet.a4 .pbody { left: 12mm; right: 12mm; top: 12mm; bottom: 16mm; }
.sheet .pfoot { position: absolute; left: 8mm; right: 8mm; bottom: 5mm; display: flex; justify-content: space-between; font-size: 6.8pt; color: #444; border-top: 0.3mm solid #999; padding-top: 1.2mm; }
.sheet.a4 .pfoot { left: 12mm; right: 12mm; bottom: 8mm; font-size: 8pt; }
.sheet.blank .bl { position: absolute; inset: 0; display: grid; place-items: center; color: #bbb; font-size: 7pt; }
.pp { font-size: 7.4pt; line-height: 1.3; }
.sheet.a4 .pp { font-size: 9pt; }
.pp .ph { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 0.5mm solid #000; padding-bottom: 1.5mm; margin-bottom: 2mm; }
.pp .ph .lg { display: flex; gap: 2.5mm; align-items: center; }
.pp .ph .lg img { height: 11mm; width: auto; }
.sheet.a4 .pp .ph .lg img { height: 14mm; }
.pp .ph .co { font-weight: 800; font-size: 9pt; color: #4a3322; }
.pp .ph .ti { font-weight: 800; font-size: 10.5pt; letter-spacing: .03em; }
.pp .ph .fn { font-size: 6.8pt; text-align: right; border: 0.3mm solid #000; padding: 0.8mm 1.5mm; }
.pp .wm { position: absolute; top: 40%; left: 0; right: 0; text-align: center; font-size: 40pt; color: rgba(200, 0, 0, .12); font-weight: 800; transform: rotate(-25deg); pointer-events: none; }
.pp table { width: 100%; border-collapse: collapse; margin-bottom: 2mm; }
.pp td, .pp th { border: 0.25mm solid #000; padding: 0.7mm 1.2mm; vertical-align: top; }
.pp th { background: #e9ecea; font-weight: 700; text-align: center; }
.pp td.c { text-align: center; }
.pp td.r { text-align: right; }
.pp .idt td { border: 0; padding: 0.3mm 1mm; }
.pp .idt td.k { width: 22mm; color: #222; }
.pp .stit { font-weight: 800; margin: 1.5mm 0 0.8mm; font-size: 7.8pt; }
.pp .ket { display: block; white-space: pre-line; font-size: 6.4pt; color: #333; }
.pp .tot { display: flex; justify-content: space-between; border: 0.4mm solid #000; padding: 1.2mm 2mm; font-weight: 800; margin-bottom: 2mm; font-size: 8.5pt; }
.pp .sgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5mm; }
.pp .sbox { border: 0.25mm solid #000; padding: 1mm 1.5mm; min-height: 24mm; }
.pp .sbox .sr { font-weight: 700; font-size: 6.8pt; }
.pp .sbox .si { height: 12mm; display: flex; align-items: center; justify-content: center; }
.pp .sbox .si img { max-height: 12mm; max-width: 100%; }
.pp .sbox .sn { font-size: 6.8pt; border-top: 0.2mm dotted #000; padding-top: 0.5mm; }
.pp ul { margin: 0; padding-left: 4mm; }
.pp .kat td { font-size: 6.6pt; padding: 0.3mm 1mm; }
.sheet.a4 .pp .sbox { min-height: 32mm; }
.sheet.a4 .pp .sbox .si { height: 16mm; }
.sheet.a4 .pp .sbox .si img { max-height: 16mm; }
.sheet.a4 .pp .sgrid { grid-template-columns: 1fr 1fr 1fr; gap: 6mm; }
.sheet.a4 .pbody { top: 10mm; bottom: 14mm; }
.sheet.a4 .pfoot { bottom: 6mm; }
.pp th { background: #efe7dc; }

@media print {
  body { background: #fff !important; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; }
  #print-root .sheet { box-shadow: none; page-break-after: always; break-after: page; margin: 0; }
  #print-root .sheet:last-child { page-break-after: auto; break-after: auto; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
