/* Pilar Keuangan
   Huruf: Plus Jakarta Sans (Tokotype, Jakarta) untuk antarmuka, Fraunces untuk judul halaman dan dokumen.
   Warna: tinta biru-slate, kertas abu sejuk, teal Fixly untuk aksi. */

@font-face { font-family: "Jakarta"; src: url("fonts/jakarta-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/jakarta-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/jakarta-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/jakarta-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #172630;
  --ink-2: #2b3c47;
  --muted: #5b6b76;
  --faint: #8a98a2;
  --paper: #eef2f4;
  --surface: #ffffff;
  --rule: #d9e1e6;
  --rule-soft: #e9eef1;
  --teal: #00838a;
  --teal-deep: #006a70;
  --teal-soft: #e1f3f2;
  --amber: #a35a06;
  --amber-soft: #fdf1dc;
  --red: #b42318;
  --red-soft: #fde7e5;
  --green: #157f3d;
  --green-soft: #ddf5e5;
  --r-lg: 12px;
  --r-md: 8px;
  --h: 40px;
  --ui: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14.5px/1.55 var(--ui); font-feature-settings: "tnum" 1; }
a { color: var(--teal-deep); text-underline-offset: 2px; }
a:hover { color: var(--teal); }
h1, h2, h3 { margin: 0; color: var(--ink); }
h2 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
h3 { font-size: .92rem; font-weight: 700; margin: 18px 0 10px; }
p { margin: 0 0 12px; }
code, .secret { font-family: var(--mono); font-size: .88em; }
small, .muted { color: var(--muted); }
.center { text-align: center; }
hr { border: 0; border-top: 1px solid var(--rule-soft); margin: 20px 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.ico { flex: 0 0 auto; }

/* ================================================================ kerangka */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidenav {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--ink); color: #c9d6dd;
  padding: 18px 12px 32px; scrollbar-width: thin; scrollbar-color: #33505e transparent;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 20px; color: #fff; text-decoration: none; }
.brand .mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto;
  background: var(--teal); color: #fff; font: 600 19px/1 var(--display);
}
.brandtext { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.brandtext b { font-size: .98rem; font-weight: 700; }
.brandtext small { color: #8fa6b2; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navgroup { margin-bottom: 14px; }
.navhead { font-size: .74rem; font-weight: 600; color: #7f97a4; padding: 6px 10px 4px; }
.sidenav nav a {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 1px 0;
  border-radius: var(--r-md); color: #c9d6dd; text-decoration: none; font-size: .9rem; font-weight: 500;
}
.sidenav nav a .ico { color: #7f97a4; }
.sidenav nav a:hover { background: #20333f; color: #fff; }
.sidenav nav a:hover .ico { color: #c9d6dd; }
.sidenav nav a.active { background: #213a46; color: #fff; }
.sidenav nav a.active::before { content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: #2fc4c9; }
.sidenav nav a.active .ico { color: #2fc4c9; }
.sidenav .count { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 700; background: #f2b24c; color: #3d2600; border-radius: 10px; padding: 1px 7px; }

.mainwrap { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 28px;
  background: rgba(238, 242, 244, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule);
}
.grow { flex: 1; }
.burger { display: none; cursor: pointer; padding: 8px; border-radius: var(--r-md); color: var(--ink); }
.bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink-2); }
.bell:hover { background: #e1e8ec; color: var(--ink); }
.bell .badge {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #e8a33b; color: #2f1d00; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid var(--paper);
}
.usermenu { position: relative; }
.usermenu summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; padding: 4px 10px 4px 4px; border-radius: 22px; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover, .usermenu[open] summary { background: #e1e8ec; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: .85rem; }
.who { display: flex; flex-direction: column; line-height: 1.2; }
.who b { font-size: .86rem; font-weight: 600; color: var(--ink); }
.who small { font-size: .74rem; }
.usermenu > div {
  position: absolute; right: 0; top: 46px; min-width: 200px; padding: 6px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 12px 32px rgba(23, 38, 48, .14);
}
.usermenu > div a, .linkbtn { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font: inherit; font-size: .9rem; }
.usermenu > div a:hover, .linkbtn:hover { background: var(--paper); }
.usermenu form { margin: 0; }
.linkbtn { border: 0; background: none; cursor: pointer; }
.navtoggle { position: absolute; opacity: 0; pointer-events: none; }
.scrim { display: none; }

.main { padding: 26px 32px 64px; width: 100%; max-width: 1240px; }
.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 20px; }
.pagehead h1 { font: 600 1.9rem/1.15 var(--display); letter-spacing: -.01em; color: var(--ink); }
.pageactions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pageactions form { margin: 0; }
.main > p.muted:first-of-type { max-width: 72ch; margin-top: -8px; margin-bottom: 18px; }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidenav { position: fixed; z-index: 40; left: 0; top: 0; width: 272px; transform: translateX(-100%); transition: transform .2s ease; }
  .navtoggle:checked ~ .shell .sidenav { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .3); }
  .navtoggle:checked ~ .shell .scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(23, 38, 48, .35); }
  .burger { display: grid; place-items: center; }
  .topbar { padding: 0 14px; }
  .who { display: none; }
  .main { padding: 20px 16px 56px; }
  .pagehead h1 { font-size: 1.55rem; }
}
@media (prefers-reduced-motion: reduce) { .sidenav { transition: none; } }

/* ================================================================ permukaan */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 18px; }
.card.tight { padding: 14px 16px; }
.card > h2 { display: flex; align-items: center; gap: 8px; }
.grid2, .grid3, .grid4 { display: grid; gap: 4px 16px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.main > .grid2, .main > .grid3 { gap: 18px; }
.main > .grid2 > .card, .main > .grid3 > .card { margin-bottom: 0; }
.main > .grid2 + *, .main > .grid3 + * { margin-top: 18px; }
@media (max-width: 760px) { .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } }

/* bilah filter: satu baris rapi, tombol sejajar dengan isian */
.filterbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.filterbar form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.filterbar .fld { margin: 0; width: 180px; }
.filterbar .fld > span { font-size: .78rem; }
.filterbar .fld small { display: none; }

/* angka ringkasan */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 16px 18px; }
.stat .k { font-size: .82rem; color: var(--muted); font-weight: 500; }
.stat .v { font-size: 1.3rem; font-weight: 700; margin-top: 4px; white-space: nowrap; letter-spacing: -.01em; }
.stat .s { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.stat:first-child { background: var(--ink); border-color: var(--ink); color: #fff; }
.stat:first-child .k, .stat:first-child .s { color: #9fb4bf; }
.meter { height: 6px; background: var(--rule-soft); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.meter > span { display: block; height: 100%; background: var(--teal); border-radius: 3px; }
.meter.warn > span { background: #d98a1d; }

/* ================================================================ formulir */
.fld { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; min-width: 0; }
.fld > span { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.fld small { font-size: .77rem; line-height: 1.4; }
.fld.span2 { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%; height: var(--h); padding: 0 12px; border: 1px solid #c8d3da; border-radius: var(--r-md);
  background: #fff; color: var(--ink); font: inherit; font-size: .92rem; transition: border-color .12s, box-shadow .12s;
}
select { padding-right: 32px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235b6b76' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
textarea { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
input[type=file] { padding: 0 6px 0 0; line-height: var(--h); font-size: .85rem; color: var(--muted); }
input[type=file]::file-selector-button { height: calc(var(--h) - 2px); margin-right: 10px; padding: 0 14px; border: 0; border-right: 1px solid #c8d3da; background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; border-radius: var(--r-md) 0 0 var(--r-md); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); flex: 0 0 auto; }
input:hover, select:hover, textarea:hover { border-color: #a9b8c1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 131, 138, .16); }
input:disabled, select:disabled { background: var(--paper); color: var(--muted); }
input.money { text-align: right; }
.chk { display: inline-flex; gap: 9px; align-items: center; min-height: var(--h); font-size: .9rem; cursor: pointer; margin-right: 16px; }
.fld-check { padding-top: 23px; }
.form.inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.form.inline .fld { margin: 0; flex: 1 1 200px; }
.form.inline .fld small { display: none; }
.form.inline > .btn { flex: 0 0 auto; }
fieldset { border: 1px solid var(--rule-soft); border-radius: var(--r-md); padding: 14px 16px 2px; margin: 0 0 18px; }
legend { font-weight: 700; font-size: .88rem; padding: 0 6px; }

/* tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: var(--h); padding: 0 16px;
  border: 1px solid var(--teal); border-radius: var(--r-md); background: var(--teal); color: #fff;
  font: inherit; font-size: .9rem; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: #c8d3da; }
.btn.ghost:hover { background: var(--paper); border-color: #a9b8c1; color: var(--ink); }
.btn.danger { background: var(--surface); color: var(--red); border-color: #efc1bc; }
.btn.danger:hover { background: var(--red-soft); color: var(--red); }
.btn.small { height: 32px; padding: 0 12px; font-size: .82rem; }
.btn.wide { width: 100%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.actions form { margin: 0; }
form.btnform { display: inline-flex; margin: 0; }

/* jarak antar blok di dalam kartu */
.card > * + form, .card > form + *, .card > .kv + *, .card > * + .actions, .card > .tablewrap + *, .card > * + .tablewrap { margin-top: 16px; }
.card > hr { margin: 20px 0; }
.form .grid2 + .actions, .form .grid3 + .actions, .form .grid4 + .actions, .form .fld + .actions, .form fieldset + .actions { margin-top: 2px; }
.form .grid2 + .btn, .form .grid3 + .btn, .form .grid4 + .btn, .form fieldset + .btn, .form .fld + .btn, .form p + .btn, .form .tablewrap + .btn { margin-top: 2px; }
.form .tablewrap + .grid2, .form .tablewrap + p, .form .tablewrap + br + .grid2 { margin-top: 16px; }

/* ================================================================ tabel */
.tablewrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--surface); }
.card .tablewrap { border-radius: var(--r-md); }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th, .tbl td { padding: 11px 14px; border-bottom: 1px solid var(--rule-soft); text-align: left; vertical-align: middle; }
.tbl th { background: #f6f8f9; font-size: .78rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }
.tbl tbody tr:hover td { background: #f8fafb; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.empty { text-align: center; color: var(--muted); padding: 34px 14px; }
.tbl tr.total td { font-weight: 700; background: #f6f8f9; border-top: 1px solid var(--rule); }
.tbl tr.sub td { font-weight: 600; }
.tbl tr.head td { background: var(--teal-soft); font-weight: 700; color: var(--teal-deep); }
.tbl td.indent { padding-left: 30px; }
.tbl td a { font-weight: 600; text-decoration: none; }
.tbl td a:hover { text-decoration: underline; }
.tbl input, .tbl select { height: 34px; }
.tbl td .actions { margin: 0; flex-wrap: nowrap; justify-content: flex-end; }
td details > summary { cursor: pointer; color: var(--teal-deep); font-weight: 600; }
td details[open] > summary { margin-bottom: 10px; }
td details .form.inline { margin-bottom: 8px; }

.pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: #eaeff2; color: var(--ink-2); white-space: nowrap; line-height: 1.6; }
.pill.ok { background: var(--green-soft); color: var(--green); }
.pill.warn { background: var(--amber-soft); color: var(--amber); }
.pill.err { background: var(--red-soft); color: var(--red); }
.pill.soft { background: var(--teal-soft); color: var(--teal-deep); }

/* ================================================================ pesan */
.flash { display: flex; gap: 10px; padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 16px; border: 1px solid; font-size: .9rem; }
.flash.ok { background: var(--green-soft); border-color: #b5e3c4; color: #0f5c2c; }
.flash.warn { background: var(--amber-soft); border-color: #f0d29e; color: #6b3d05; }
.flash.err { background: var(--red-soft); border-color: #f3bdb7; color: #8a1c13; }
.flash.warn { display: block; }
.note { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--teal); padding: 12px 16px; border-radius: var(--r-md); margin: 0 0 18px; font-size: .88rem; color: var(--ink-2); max-width: 100%; }
.note.warn { border-left-color: #d98a1d; background: #fffaf1; }
.sqlbox { white-space: pre-wrap; background: #fff; border: 1px solid #f0d29e; border-radius: 6px; padding: 10px; margin: 10px 0 0; font-size: .82rem; }

/* ================================================================ pengingat */
.remlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.remlist li { display: block; padding: 11px 14px; background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--teal); border-radius: var(--r-md); }
.remlist li.lvl-danger { border-left-color: var(--red); }
.remlist li.lvl-warn { border-left-color: #d98a1d; }
.remlist li.lvl-ok { border-left-color: var(--green); }
.remlist li a { font-weight: 600; text-decoration: none; color: var(--ink); }
.remlist li a:hover { color: var(--teal-deep); }
.remlist li .pill { margin-right: 8px; }
.card .remlist li { border-top-color: var(--rule-soft); border-right-color: var(--rule-soft); border-bottom-color: var(--rule-soft); }
.remrow { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.remrow .actions { margin: 0; }
dialog.welcome { border: 0; border-radius: 16px; padding: 26px 28px; max-width: 540px; width: calc(100% - 32px); box-shadow: 0 24px 64px rgba(23, 38, 48, .3); }
dialog.welcome h2 { font: 600 1.4rem/1.2 var(--display); margin-bottom: 8px; }
dialog.welcome::backdrop { background: rgba(23, 38, 48, .5); }
dialog.welcome form { margin-top: 18px; text-align: right; }

/* ================================================================ detail transaksi */
.kv { display: grid; grid-template-columns: 190px minmax(0, 1fr); margin: 0; font-size: .9rem; }
.kv dt, .kv dd { padding: 9px 0; border-bottom: 1px solid var(--rule-soft); margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 500; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; } .kv dt { border-bottom: 0; padding-bottom: 0; } }
.statusrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.attlist { list-style: none; padding: 0; margin: 0; }
.attlist li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.attlist li:last-child { border-bottom: 0; }
.attlist li a { font-weight: 600; }
.attlist + form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule-soft); }

/* ================================================================ masuk & 2FA */
body.bare { background: var(--ink); min-height: 100vh; }
.loginwrap { min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(1200px 600px at 85% -10%, #1f4552 0%, transparent 60%), var(--ink); }
.logincard { width: 100%; max-width: 420px; background: var(--surface); border-radius: 16px; padding: 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.brand.big { padding: 0 0 22px; color: var(--ink); }
.brand.big span:last-child { font: 600 1.35rem/1.2 var(--display); }
.steps { padding-left: 20px; margin: 0 0 14px; }
.steps li { margin-bottom: 6px; }
.setup2fa { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: start; }
.setup2fa .qr svg { display: block; border: 1px solid var(--rule); border-radius: 10px; }
@media (max-width: 640px) { .setup2fa { grid-template-columns: 1fr; } .setup2fa .qr svg { width: 220px; height: 220px; } }
.codes { columns: 2; font-family: var(--mono); }
.recovery { background: var(--amber-soft); padding: 14px 18px; border-radius: var(--r-md); }

/* ================================================================ dokumen cetak (invoice, slip, laporan) */
.printbar { position: sticky; top: 0; display: flex; gap: 8px; padding: 10px 16px; background: var(--ink); }
.printbar .btn.ghost { background: transparent; color: #fff; border-color: #4a6170; }
body.printpage { background: #dfe5e9; }
.paper { background: #fff; max-width: 820px; margin: 22px auto; padding: 44px 50px; box-shadow: 0 6px 30px rgba(23, 38, 48, .12); font-size: 13.5px; }
.paper.wide { max-width: 1100px; }
.doc-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 16px; margin-bottom: 20px; }
.doc-head .co { font-weight: 700; font-size: 16px; }
.doc-title { text-align: right; }
.doc-title .t { font: 600 26px/1.1 var(--display); color: var(--teal-deep); margin-bottom: 4px; }
.doc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.doc-meta .lbl, .lbl { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.doc-table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.doc-table th { background: var(--ink); color: #fff; padding: 8px 10px; font-size: 12px; font-weight: 600; text-align: left; }
.doc-table td { padding: 8px 10px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.doc-table .num { text-align: right; white-space: nowrap; }
.doc-table tr.total td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; }
.doc-foot { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 24px; }
.sign { text-align: center; margin-top: 10px; }
.sign .space { height: 72px; }
.doc-small { font-size: 11.5px; color: #4b5b65; }
.stamp { display: inline-block; border: 2px solid var(--green); color: var(--green); font-weight: 800; padding: 3px 12px; border-radius: 6px; transform: rotate(-5deg); letter-spacing: .08em; margin-top: 6px; }
.stamp.void { border-color: var(--red); color: var(--red); }

@media print {
  @page { size: A4; margin: 14mm; }
  body, body.printpage { background: #fff; }
  .noprint, .printbar, .topbar, .sidenav, .filterbar, .pageactions, form, .btn { display: none !important; }
  .paper { box-shadow: none; margin: 0; padding: 0; max-width: none; }
  .shell { display: block; }
  .main { padding: 0; }
  .card { border: 0; padding: 0; }
  .tablewrap { border: 0; overflow: visible; }
  a { color: inherit; text-decoration: none; }
}

/* lebar meter (CSP melarang style inline) */
.meter .w0 { width: 0%; } .meter .w5 { width: 5%; } .meter .w10 { width: 10%; } .meter .w15 { width: 15%; } .meter .w20 { width: 20%; }
.meter .w25 { width: 25%; } .meter .w30 { width: 30%; } .meter .w35 { width: 35%; } .meter .w40 { width: 40%; } .meter .w45 { width: 45%; }
.meter .w50 { width: 50%; } .meter .w55 { width: 55%; } .meter .w60 { width: 60%; } .meter .w65 { width: 65%; } .meter .w70 { width: 70%; }
.meter .w75 { width: 75%; } .meter .w80 { width: 80%; } .meter .w85 { width: 85%; } .meter .w90 { width: 90%; } .meter .w95 { width: 95%; } .meter .w100 { width: 100%; }

/* halaman detail: isi utama + kolom samping */
.split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.split .card { margin-bottom: 18px; }
.col-side .card { background: #fbfcfd; }
.col-side .attlist + form, .col-side .form.inline { flex-direction: column; align-items: stretch; }
.col-side .form.inline .fld { flex: 0 0 auto; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }
.doclist { list-style: none; padding: 0; margin: 0; }
.doclist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule-soft); }
.doclist li:last-child { border-bottom: 0; }
.doclist li > a { font-weight: 600; text-decoration: none; color: var(--ink); }
.doclist li > a:hover { color: var(--teal-deep); }
.doclist li span { display: flex; gap: 6px; flex: 0 0 auto; }
.filterbar .form.inline { flex-wrap: nowrap; }
.filterbar .form.inline .fld { flex: 0 0 180px; width: 180px; }
@media (max-width: 640px) { .filterbar .form.inline { flex-wrap: wrap; } .filterbar .form.inline .fld { flex: 1 1 140px; } }
