/* =========================================================================
   PMS — tampilan berbasis template Metis (Bootstrap 5 admin, MIT, Colorlib)
   Token desain diporting dari src-modern/styles/scss/abstracts/_variables.scss:
   netral Zinc, satu aksen biru, struktur dari garis 1px (bukan bayangan),
   radius 8px, header 56px, sidebar 240px, mode gelap.
   ========================================================================= */
:root {
  --gray-50: #fafafa; --gray-100: #f4f4f5; --gray-200: #e4e4e7; --gray-300: #d4d4d8; --gray-400: #a1a1aa;
  --gray-500: #71717a; --gray-600: #52525b; --gray-700: #3f3f46; --gray-800: #27272a; --gray-900: #18181b; --gray-950: #09090b;
  --primary: #2563eb; --primary-rgb: 37, 99, 235; --success: #16a34a; --info: #0891b2; --warning: #d97706; --danger: #dc2626; --teal: #0d9488;
  --surface-app: var(--gray-50); --surface-panel: #fff; --surface-sunken: var(--gray-100); --surface-hover: var(--gray-100);
  --ink-primary: var(--gray-900); --ink-secondary: var(--gray-600); --ink-muted: var(--gray-500);
  --border: var(--gray-200); --border-strong: var(--gray-300);
  --radius: 0.5rem; --radius-sm: 0.375rem; --radius-lg: 0.625rem;
  --shadow-lg: 0 8px 24px rgba(9, 9, 11, .08), 0 2px 6px rgba(9, 9, 11, .04);
  --shadow-xl: 0 16px 40px rgba(9, 9, 11, .12), 0 4px 10px rgba(9, 9, 11, .05);
  --header-h: 56px; --sidebar-w: 240px;
  --font: "Inter", "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --good-bg: #dcfce7; --good-fg: #15803d; --bad-bg: #fee2e2; --bad-fg: #b91c1c; --warn-bg: #fef3c7; --warn-fg: #b45309; --plain-bg: var(--gray-100); --plain-fg: var(--gray-700);
  color-scheme: light;
}
[data-theme="dark"] {
  --surface-app: var(--gray-950); --surface-panel: var(--gray-900); --surface-sunken: var(--gray-950); --surface-hover: var(--gray-800);
  --ink-primary: var(--gray-100); --ink-secondary: var(--gray-400); --ink-muted: var(--gray-500);
  --border: var(--gray-800); --border-strong: var(--gray-700);
  --good-bg: rgba(22, 163, 74, .16); --good-fg: #4ade80; --bad-bg: rgba(220, 38, 38, .16); --bad-fg: #f87171; --warn-bg: rgba(217, 119, 6, .16); --warn-fg: #fbbf24; --plain-bg: var(--gray-800); --plain-fg: var(--gray-300);
  --primary: #3b82f6; --primary-rgb: 59, 130, 246;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 0.875rem/1.5 var(--font); color: var(--ink-primary); background: var(--surface-app); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 1.375rem; } h2 { font-size: 1.0625rem; } h3 { font-size: 0.9375rem; margin: 1.25rem 0 .5rem; }
a { color: var(--primary); text-decoration: none; } a:hover { text-decoration: underline; }
p { margin: 0 0 .5rem; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ico { width: 1.05rem; height: 1.05rem; flex: none; vertical-align: -0.2em; }
.muted { color: var(--ink-muted); } .small { font-size: .75rem; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.r { text-align: right; } .nowrap { white-space: nowrap; }
.neg { color: var(--danger); } .pos { color: var(--success); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--primary); color: #fff; padding: 8px 12px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }

/* ---------------- Header (admin-header) ---------------- */
.admin-header { position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 1030; display: flex; align-items: center; gap: 1rem;
  padding: 0 1rem; background: var(--surface-panel); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: .55rem; width: calc(var(--sidebar-w) - 3.25rem); font-weight: 700; font-size: 1.0625rem; color: var(--ink-primary); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.hdr-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; height: 36px; min-width: 36px; padding: 0 .5rem;
  border: 0; background: transparent; color: var(--ink-secondary); border-radius: var(--radius-sm); cursor: pointer; position: relative; font: inherit; }
.hdr-btn:hover { background: var(--surface-hover); color: var(--ink-primary); }
.hdr-btn .ico { width: 1.15rem; height: 1.15rem; }
.hdr-badge { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font-size: .625rem; font-weight: 600; display: grid; place-items: center; line-height: 1; }
.hdr-search { flex: 1; max-width: 420px; margin: 0 auto; position: relative; }
.hdr-search select { width: 100%; height: 36px; border: 1px solid transparent; background: var(--surface-sunken); border-radius: var(--radius); padding: 0 2rem 0 2.25rem; font: inherit; color: var(--ink-primary); appearance: none; cursor: pointer; }
.hdr-search select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15); }
.hdr-search .ico-l { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--ink-muted); pointer-events: none; }
.hdr-search .ico-r { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); color: var(--ink-muted); pointer-events: none; width: .85rem; }
.hdr-actions { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.hdr-sep { width: 1px; height: 24px; background: var(--border); margin: 0 .5rem; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-sunken); border: 1px solid var(--border); display: grid; place-items: center; font-weight: 600; font-size: .75rem; color: var(--ink-secondary); }
.user-btn { color: var(--ink-primary); font-weight: 500; }
.user-btn .ico { width: .8rem; }

/* dropdown */
.dropdown { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--surface-panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .375rem; z-index: 1060; }
.menu[hidden] { display: none; }
.menu a, .menu button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem .625rem; border: 0; background: none; font: inherit; color: var(--ink-primary); border-radius: var(--radius-sm); text-align: left; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--surface-hover); text-decoration: none; }
.menu .menu-head { padding: .5rem .625rem; border-bottom: 1px solid var(--border); margin-bottom: .25rem; }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: .25rem 0; }
.notif-menu { width: 360px; max-height: 70vh; overflow: auto; padding: 0; }
.notif-menu .nhead { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--border); font-weight: 600; position: sticky; top: 0; background: var(--surface-panel); }
.notif-item { display: block; padding: .625rem 1rem; border-bottom: 1px solid var(--border); color: var(--ink-primary); }
.notif-item:hover { background: var(--surface-hover); text-decoration: none; }
.notif-item.unread { box-shadow: inset 2px 0 0 var(--primary); }
.notif-item b { font-weight: 500; display: block; }

/* ---------------- Sidebar ---------------- */
.admin-sidebar { position: fixed; top: var(--header-h); left: 0; width: var(--sidebar-w); height: calc(100vh - var(--header-h)); background: var(--surface-panel);
  border-right: 1px solid var(--border); overflow-y: auto; padding: .75rem 0 2rem; z-index: 1035; transition: transform .25s cubic-bezier(.4, 0, .2, 1); scrollbar-width: thin; }
.sidebar-nav { padding: 0 .75rem; }
.nav-link { position: relative; display: flex; align-items: center; gap: .75rem; padding: .5rem .75rem; line-height: 1.5; margin-bottom: 2px; border-radius: var(--radius); color: var(--ink-primary); font-size: .875rem; cursor: pointer;
  border: 0; background: none; width: 100%; font-family: inherit; text-align: left; transition: background-color .12s ease, color .12s ease; }
.nav-link .ico { color: var(--ink-secondary); }
.nav-link:hover { background: var(--surface-sunken); text-decoration: none; }
.nav-link.active { background: var(--surface-hover); font-weight: 600; }
.nav-link.active .ico { color: var(--ink-primary); }
.nav-link.active::before { content: ""; position: absolute; left: -.75rem; top: 5px; bottom: 5px; width: 2px; border-radius: 0 2px 2px 0; background: var(--primary); }
.nav-link .chev { margin-left: auto; width: .75rem; transition: transform .2s ease; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-link .pill { margin-left: auto; font-size: .6875rem; font-weight: 600; padding: 1px 7px; border-radius: 10px; background: var(--danger); color: #fff; }
.nav-sub { margin: 2px 0 4px; padding: 2px 0; }
.nav-sub[hidden] { display: none; }
.nav-sub .nav-link { padding: .375rem .75rem .375rem 2.6rem; font-size: .8125rem; color: var(--ink-secondary); }
.nav-sub .nav-link.active { color: var(--ink-primary); }
.nav-section { display: block; padding: 1rem .75rem .375rem; font-size: .6875rem; letter-spacing: .06em; color: var(--ink-muted); font-weight: 600; text-transform: uppercase; }
.sidebar-backdrop { display: none; }

/* ---------------- Main ---------------- */
.admin-main { margin-left: var(--sidebar-w); padding-top: var(--header-h); min-height: 100vh; }
.content { padding: 1.5rem; max-width: 1600px; }
.admin-footer { padding: 1rem 1.5rem; color: var(--ink-muted); font-size: .75rem; border-top: 1px solid var(--border); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head .sub { color: var(--ink-secondary); margin: .25rem 0 0; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.back { display: inline-block; font-size: .8125rem; color: var(--ink-secondary); margin-bottom: .25rem; }

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; height: 36px; padding: 0 .875rem; font: 500 .875rem/1 var(--font); border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--surface-panel); color: var(--ink-primary); cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s; text-decoration: none; }
.btn:hover { background: var(--surface-hover); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover, #1d4ed8); border-color: var(--primary-hover, #1d4ed8); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-danger-ghost { color: var(--danger); border-color: rgba(220, 38, 38, .35); }
.btn-danger-ghost:hover { background: var(--bad-bg); }
.btn-sm { height: 30px; padding: 0 .625rem; font-size: .8125rem; }
.btn-icon { width: 36px; padding: 0; }
.icon-btn { border: 0; background: none; color: var(--ink-muted); cursor: pointer; width: 28px; height: 28px; border-radius: var(--radius-sm); font-size: .9rem; }
.icon-btn:hover { background: var(--surface-hover); color: var(--ink-primary); }
.link-btn { border: 0; background: none; color: var(--danger); cursor: pointer; font-size: .75rem; padding: 0 .25rem; }
.seg { display: inline-flex; border: 1px solid var(--primary); border-radius: var(--radius); overflow: hidden; }
.seg-btn { border: 0; background: var(--surface-panel); color: var(--primary); font: 600 .8125rem var(--font); padding: 0 .75rem; height: 34px; cursor: pointer; }
.seg-btn + .seg-btn { border-left: 1px solid var(--primary); }
.seg-btn.on { background: var(--primary); color: #fff; }

/* ---------------- Cards ---------------- */
.card, .panel { background: var(--surface-panel); border: 1px solid var(--border); border-radius: var(--radius); }
.panel { padding: 1.25rem; }
.panel > h3:first-child, .side .panel h3 { margin-top: 0; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .875rem 1.25rem; border-bottom: 1px solid var(--border); }
.card-title { font-size: .9375rem; font-weight: 600; margin: 0; }
.card-body { padding: 1.25rem; }
.card-body.flush { padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.stats-card { padding: 1.125rem 1.25rem; display: flex; gap: 1rem; align-items: center; }
.stats-icon { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm); background: var(--surface-sunken); border: 1px solid var(--border); color: var(--ink-secondary); display: grid; place-items: center; flex: none; }
.stats-label { font-size: .6875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: .25rem; }
.stats-value { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stats-delta { font-size: .75rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-secondary); }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.grid-2e { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.mb { margin-bottom: 1rem; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: .45rem 1rem; margin: 0; }
.kv dt { color: var(--ink-secondary); } .kv dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.activity { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow: auto; }
.activity li { display: flex; gap: .75rem; padding: .75rem 1.25rem; border-bottom: 1px solid var(--border); }
.activity li:last-child { border-bottom: 0; }
.activity .a-ico { width: 2rem; height: 2rem; border-radius: var(--radius-sm); background: var(--surface-sunken); border: 1px solid var(--border); display: grid; place-items: center; color: var(--ink-secondary); flex: none; }
.activity .a-ico .ico { width: .9rem; height: .9rem; }
.activity small { color: var(--ink-muted); display: block; }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-panel); }
.card .table-wrap { border: 0; border-radius: 0; }
table.grid { width: 100%; border-collapse: collapse; font-size: .8125rem; }
table.grid th { text-align: left; font-weight: 600; font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-secondary); background: var(--surface-sunken);
  padding: .625rem .75rem; border-bottom: 1px solid var(--border); white-space: nowrap; position: sticky; top: 0; }
table.grid th.r { text-align: right; }
table.grid th[data-sort] { cursor: pointer; user-select: none; }
table.grid th[data-sort]:hover { color: var(--primary); }
table.grid td { padding: .625rem .75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid tbody tr[data-id] { cursor: pointer; }
table.grid tbody tr[data-id]:hover, table.grid tbody tr[data-id]:focus { background: rgba(var(--primary-rgb), .05); outline: none; }
table.grid tr.parent td { font-weight: 600; background: var(--surface-sunken); }
table.grid tr.best td { background: var(--good-bg); }
table.grid tfoot td { background: var(--surface-sunken); font-weight: 600; }
table.compact td, table.compact th { padding: .45rem .625rem; }
.indent-1 { padding-left: 1.75rem !important; } .indent-2 { padding-left: 2.75rem !important; } .indent-3 { padding-left: 3.75rem !important; } .indent-4 { padding-left: 4.75rem !important; }
.lines-tbl input, .lines-tbl select { width: 100%; min-width: 90px; height: 32px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 .5rem; font: inherit; background: var(--surface-panel); color: var(--ink-primary); }
.lines-tbl td { padding: .3rem .4rem !important; }
.lines .btn { margin-top: .5rem; }

.badge { display: inline-block; padding: .2em .6em; border-radius: 999px; font-size: .6875rem; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.badge-good { background: var(--good-bg); color: var(--good-fg); } .badge-bad { background: var(--bad-bg); color: var(--bad-fg); }
.badge-warn { background: var(--warn-bg); color: var(--warn-fg); } .badge-plain { background: var(--plain-bg); color: var(--plain-fg); }
.tag { display: inline-block; padding: .1em .45em; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .6875rem; font-weight: 600; color: var(--ink-secondary); background: var(--surface-sunken); }
.tag-amber { border-color: transparent; background: var(--warn-bg); color: var(--warn-fg); }
.pbar { display: inline-block; width: 70px; height: 6px; border-radius: 3px; background: var(--surface-sunken); border: 1px solid var(--border); overflow: hidden; vertical-align: middle; }
.pbar > span { display: block; height: 100%; background: var(--primary); }
.pbar.good > span { background: var(--success); } .pbar.bad > span { background: var(--danger); } .pbar.warn > span { background: var(--warning); }
.pbar.wide { width: 100%; height: 8px; }
.pcell { display: inline-flex; gap: .5rem; align-items: center; }

/* ---------------- Filters & forms ---------------- */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .75rem; }
.filters .push { margin-left: auto; }
.inp, .fld input:not([type=checkbox]), .fld select, .fld textarea { height: 36px; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 0 .75rem; font: inherit; background: var(--surface-panel); color: var(--ink-primary); }
.inp:focus, .fld input:focus, .fld select:focus, .fld textarea:focus, .lines-tbl input:focus, .lines-tbl select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15); }
.filters input[type=search] { min-width: 220px; }
.inline { display: inline-flex; align-items: center; gap: .35rem; color: var(--ink-secondary); font-size: .8125rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .875rem 1rem; }
.fld { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .25rem; }
.fld > span { font-weight: 500; font-size: .8125rem; }
.fld small { color: var(--ink-muted); font-size: .75rem; }
.fld textarea { height: auto; padding: .5rem .75rem; resize: vertical; line-height: 1.5; }
.fld.wide { grid-column: 1 / -1; }
.fld.check { flex-direction: row; align-items: center; gap: .5rem; }
.fld.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.form-errors { background: var(--bad-bg); color: var(--bad-fg); border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: 1rem; }
.form-errors ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.pager { display: flex; gap: .75rem; align-items: center; justify-content: flex-end; padding: .75rem 0; color: var(--ink-secondary); font-size: .8125rem; }
.empty, .loading { color: var(--ink-muted); padding: 1.5rem; text-align: center; }
.empty-state { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 2.5rem 1rem; text-align: center; color: var(--ink-secondary); background: var(--surface-panel); }

/* ---------------- Detail ---------------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; align-items: start; }
.side { display: flex; flex-direction: column; gap: 1rem; }
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.5rem; margin: 0; }
.fields dt { font-size: .75rem; color: var(--ink-muted); margin-bottom: .15rem; }
.fields dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.fields .wide { grid-column: 1 / -1; }
.pre { white-space: pre-wrap; font-weight: 400; }
.drop { display: block; border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: .875rem; text-align: center; color: var(--ink-secondary); cursor: pointer; margin-bottom: .75rem; }
.drop:hover { border-color: var(--primary); color: var(--primary); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop:focus-within { outline: 2px solid var(--primary); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .75rem; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); display: block; }
.files, .links { list-style: none; padding: 0; margin: 0; }
.files li { padding: .5rem 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: .1rem; }
.files li span { font-size: .75rem; }
.links li { padding: .3rem 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 .875rem .5rem; }
.timeline li::before { content: ""; position: absolute; left: -1.38rem; top: .35rem; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); border: 2px solid var(--surface-panel); }
.timeline blockquote { margin: .35rem 0 0; padding: .4rem .6rem; background: var(--surface-sunken); border-radius: var(--radius-sm); }
.audit { list-style: none; padding: 0; margin: .5rem 0 0; max-height: 400px; overflow: auto; }
.audit li { padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .8125rem; }
.changes { margin-top: .25rem; font-size: .75rem; color: var(--ink-secondary); }
.changes code { font-size: .7rem; background: var(--surface-sunken); padding: 0 .25rem; border-radius: 3px; }
details summary { cursor: pointer; font-weight: 600; }

/* ---------------- Modal & toast ---------------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(9, 9, 11, .5); z-index: 1050; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; overflow-y: auto; }
.modal { background: var(--surface-panel); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); width: 100%; max-width: 560px; }
.modal-wide { max-width: 980px; }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.modal-body { padding: 1.25rem; }
.modal footer { display: flex; justify-content: flex-end; gap: .5rem; padding: .875rem 1.25rem; border-top: 1px solid var(--border); }
#toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 1080; display: flex; flex-direction: column; gap: .5rem; max-width: 420px; }
.toast { background: var(--gray-900); color: #fff; padding: .75rem 1rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: .8125rem; border-left: 3px solid var(--success); }
.toast-err { border-left-color: var(--danger); }
[data-theme="dark"] .toast { background: var(--gray-800); }

/* ---------------- Charts ---------------- */
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--border); stroke-dasharray: 3 3; }
.chart .axis { fill: var(--ink-muted); font-size: 11px; font-family: var(--font); }
.chart .line-planned { fill: none; stroke: var(--gray-400); stroke-width: 2; stroke-dasharray: 6 4; }
.chart .line-actual { fill: none; stroke: var(--primary); stroke-width: 2.5; }
.chart .dot-actual { fill: var(--primary); stroke: var(--surface-panel); stroke-width: 2; }
.chart .today { stroke: var(--warning); stroke-width: 1.5; }
.chart .today-lbl { fill: var(--warning); font-size: 11px; font-weight: 600; font-family: var(--font); }
.chart .bar-a { fill: var(--primary); } .chart .bar-b { fill: var(--teal); } .chart .bar-c { fill: var(--gray-400); }
.legend { display: flex; gap: 1rem; font-size: .75rem; color: var(--ink-secondary); margin-top: .5rem; flex-wrap: wrap; }
.lg::before { content: ""; display: inline-block; width: 14px; height: 3px; margin-right: .4rem; vertical-align: middle; border-radius: 2px; }
.lg-planned::before { background: var(--gray-400); } .lg-actual::before, .lg-bar-a::before { background: var(--primary); } .lg-bar-b::before { background: var(--teal); } .lg-bar-c::before { background: var(--gray-400); }
.gantt { min-width: 900px; }
.gantt .g-row { fill: transparent; } .gantt .g-row-alt { fill: var(--surface-sunken); }
.gantt .g-plan { fill: var(--gray-300); } .gantt .g-act { fill: var(--primary); } .gantt .g-late { fill: var(--danger); } .gantt .g-par { fill: var(--gray-700); }
[data-theme="dark"] .gantt .g-plan { fill: var(--gray-700); } [data-theme="dark"] .gantt .g-par { fill: var(--gray-300); }
.gantt .g-ms { fill: var(--warning); }
.gantt .g-txt { fill: var(--ink-primary); font-size: 11px; font-family: var(--font); } .gantt .g-txt.b { font-weight: 600; }
.gantt .g-head { fill: var(--ink-muted); font-size: 10px; font-family: var(--font); }
.gantt .g-line { stroke: var(--border); } .gantt .g-today { stroke: var(--warning); stroke-width: 1.5; }

/* ---------------- Tabs ---------------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; overflow-x: auto; }
.tabs a { padding: .625rem .875rem; color: var(--ink-secondary); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink-primary); text-decoration: none; }
.tabs a.on { color: var(--primary); border-bottom-color: var(--primary); }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .5rem; }
.quick a { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink-primary); background: var(--surface-panel); }
.quick a:hover { border-color: var(--border-strong); background: var(--surface-hover); text-decoration: none; }
.quick a .ico { color: var(--ink-secondary); }

/* ---------------- Chat (halaman Messages Metis) ---------------- */
.chat { display: grid; grid-template-columns: 300px 1fr; height: calc(100vh - var(--header-h) - 3rem); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-panel); overflow: hidden; }
.chat-rooms { border-right: 1px solid var(--border); overflow-y: auto; }
.chat-rooms .rh { padding: .875rem 1rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.room { display: block; width: 100%; padding: .75rem 1rem; border: 0; border-bottom: 1px solid var(--border); background: none; text-align: left; cursor: pointer; font: inherit; color: var(--ink-primary); }
.room:hover { background: var(--surface-hover); }
.room.on { background: var(--surface-hover); box-shadow: inset 2px 0 0 var(--primary); }
.room .rn { display: flex; justify-content: space-between; font-weight: 500; gap: .5rem; }
.room .rl { display: block; color: var(--ink-muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room .cnt { background: var(--primary); color: #fff; border-radius: 9px; font-size: .6875rem; padding: 0 6px; height: 18px; display: grid; place-items: center; }
.room-type { padding: .5rem 1rem .25rem; font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); font-weight: 600; }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: .875rem 1.25rem; border-bottom: 1px solid var(--border); font-weight: 600; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .75rem; background: var(--surface-app); }
.msg { max-width: 72%; align-self: flex-start; }
.msg.me { align-self: flex-end; }
.msg .bub { background: var(--surface-panel); border: 1px solid var(--border); padding: .55rem .8rem; border-radius: 12px 12px 12px 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me .bub { background: var(--primary); color: #fff; border-color: var(--primary); border-radius: 12px 12px 4px 12px; }
.msg.me .bub a { color: #fff; text-decoration: underline; }
.msg .meta { font-size: .6875rem; color: var(--ink-muted); margin: .2rem .25rem; }
.msg.me .meta { text-align: right; }
.msg .mention { font-weight: 600; }
.msg img { max-width: 260px; border-radius: 8px; display: block; margin-top: .35rem; }
.chat-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--border); align-items: flex-end; }
.chat-form textarea { flex: 1; resize: none; min-height: 38px; max-height: 140px; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: .5rem .75rem; font: inherit; background: var(--surface-panel); color: var(--ink-primary); }

/* ---------------- Auth (halaman login Metis) ---------------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: var(--surface-app); }
.auth-card { width: 100%; max-width: 400px; background: var(--surface-panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.auth-card .brand { width: auto; margin-bottom: 1.5rem; }
.auth-card h1 { font-size: 1.25rem; margin-bottom: .25rem; }
.auth-card .fld { margin-bottom: .875rem; }
.auth-card .fld input { width: 100%; }
.auth-card .btn { width: 100%; height: 40px; margin-top: .5rem; }
.auth-foot { margin-top: 1.25rem; font-size: .75rem; color: var(--ink-muted); text-align: center; }
.pw-rules { font-size: .75rem; color: var(--ink-secondary); padding-left: 1.1rem; margin: .25rem 0 .75rem; }

/* ---------------- Report (print) ---------------- */
.report { background: #fff; color: #111; padding: 2rem; border: 1px solid var(--border); border-radius: var(--radius); max-width: 1000px; }
[data-theme="dark"] .report { background: var(--surface-panel); color: var(--ink-primary); }
.report h1 { font-size: 1.375rem; } .report h2 { font-size: 1rem; margin: 1.5rem 0 .5rem; padding-bottom: .35rem; border-bottom: 2px solid var(--primary); }
.report .rmeta { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 1rem 0; }
.report .rmeta div { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .75rem; }
.report .rmeta b { display: block; font-size: 1.125rem; }
.report .rmeta span { font-size: .7rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .05em; }
.matrix td, .matrix th { text-align: center !important; }
.matrix td:first-child, .matrix th:first-child { text-align: left !important; }
.lv { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 4px; font-size: .6875rem; font-weight: 600; }
.lv0 { color: var(--ink-muted); } .lv1 { background: var(--plain-bg); } .lv2 { background: var(--warn-bg); color: var(--warn-fg); } .lv3 { background: rgba(var(--primary-rgb), .12); color: var(--primary); } .lv4 { background: var(--good-bg); color: var(--good-fg); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1200px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .grid-2, .grid-3 { grid-template-columns: 1fr; } .detail-grid { grid-template-columns: 1fr; } .fields { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 991.98px) {
  .admin-sidebar { transform: translateX(-100%); z-index: 1041; }
  .admin-sidebar.show { transform: none; box-shadow: 4px 0 16px rgba(0, 0, 0, .15); }
  .sidebar-backdrop.show { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: rgba(9, 9, 11, .4); z-index: 1040; }
  .admin-main { margin-left: 0; }
  .brand { width: auto; }
  .hdr-name, .hdr-hide-md { display: none; }
  .chat { grid-template-columns: 1fr; } .chat.has-room .chat-rooms { display: none; } .chat:not(.has-room) .chat-main { display: none; }
}
@media (max-width: 640px) {
  .content { padding: 1rem; } .stats-grid, .grid-2e { grid-template-columns: 1fr; } .form-grid, .fields { grid-template-columns: 1fr; }
  .hdr-search { display: none; } .report .rmeta { grid-template-columns: repeat(2, 1fr); } .notif-menu { width: calc(100vw - 2rem); right: -60px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .admin-header, .admin-sidebar, .actions, .filters, .pager, .no-print, .admin-footer, .side .drop, #toasts { display: none !important; }
  .admin-main { margin: 0; padding: 0; } .content { padding: 0; max-width: none; }
  body { background: #fff; color: #000; } .panel, .card, .report { border: 0; padding: 0; }
  .detail-grid { grid-template-columns: 1fr; } table.grid th { position: static; }
  .report h2 { break-after: avoid; } tr { break-inside: avoid; }
}

/* tambahan */
body.sb-collapsed .admin-sidebar { transform: translateX(-100%); }
body.sb-collapsed .admin-main { margin-left: 0; }
.lg-late::before { background: var(--danger); }
.photo-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.photo-grid figure { margin: 0; overflow: hidden; }
.photo-grid img { border: 0; border-radius: 0; aspect-ratio: 4/3; }
.photo-grid figcaption { padding: .5rem .75rem; }
.hdr-hide-lg { display: none; }
@media (max-width: 991.98px) { .hdr-hide-lg { display: inline; } }
.filters.panel { padding: .75rem 1rem; }
.chat-form .btn-icon { flex: none; }

.sb-proj { display: none; padding: 0 .75rem .5rem; }
.sb-proj select { width: 100%; }
.brand span:last-child { white-space: nowrap; }
@media (max-width: 640px) { .sb-proj { display: block; } .brand span:last-child { display: none; } }

/* ---------------- Installer ---------------- */
.install-card { max-width: 780px; }
.steps { display: flex; gap: .25rem; list-style: none; padding: 0; margin: 0 0 1.25rem; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--ink-muted); padding: .25rem .5rem .25rem .25rem; border-radius: 999px; }
.steps li span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-sunken); border: 1px solid var(--border); font-weight: 600; }
.steps li.on { color: var(--ink-primary); font-weight: 600; background: var(--surface-sunken); }
.steps li.on span { background: var(--primary); color: #fff; border-color: var(--primary); }
.steps li.done span { background: var(--good-bg); color: var(--good-fg); border-color: transparent; }
.checks { list-style: none; padding: 0; margin: 1rem 0; }
.checks li { display: flex; gap: .6rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.checks li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .75rem; flex: none; }
.checks li.ok span { background: var(--good-bg); color: var(--good-fg); } .checks li.bad span { background: var(--bad-bg); color: var(--bad-fg); } .checks li.warn span { background: var(--warn-bg); color: var(--warn-fg); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1rem 0; }
.opt { display: grid; grid-template-columns: auto 1fr; gap: .15rem .6rem; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: .875rem 1rem; cursor: pointer; margin-bottom: 1rem; }
.opt input { grid-row: span 2; margin-top: .2rem; accent-color: var(--primary); }
.opt span { color: var(--ink-secondary); font-size: .8125rem; }
.opt.on, .opt:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12); }
.wiz-nav { display: flex; justify-content: space-between; margin-top: 1.25rem; gap: .5rem; }
.wiz-nav .btn { width: auto; margin: 0; }
.auth-card .wiz-nav .btn { width: auto; }
.install-card .fld input, .install-card .fld select { width: 100%; }
details.help { background: var(--surface-sunken); border-radius: var(--radius); padding: .6rem .875rem; margin-bottom: 1rem; font-size: .8125rem; }
details.help ol { margin: .5rem 0 0; padding-left: 1.2rem; }
.meter { display: block; height: 4px; background: var(--surface-sunken); border-radius: 2px; overflow: hidden; margin-top: .3rem; }
.meter span { display: block; height: 100%; width: 0; background: var(--danger); transition: width .2s; }
.meter span.mid { background: var(--warning); } .meter span.strong { background: var(--success); }
.done-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--good-bg); color: var(--good-fg); display: grid; place-items: center; font-size: 1.75rem; font-weight: 700; margin-bottom: .75rem; }
code.big { font-size: 1.125rem; background: var(--surface-sunken); padding: .25rem .5rem; border-radius: var(--radius-sm); user-select: all; }
.install-card .panel { margin: .75rem 0; }
@media (max-width: 640px) { .choice { grid-template-columns: 1fr; } }
code.wrap { display:block; white-space: pre-wrap; word-break: break-all; background: var(--surface-sunken); padding: .5rem; border-radius: var(--radius-sm); font-size: .75rem; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }

/* ---------------- Cetak Permintaan Barang (PB) — A4 landscape ---------------- */
body.print-mode .admin-header, body.print-mode .admin-sidebar, body.print-mode .admin-footer, body.print-mode .sidebar-backdrop { display: none; }
body.print-mode .admin-main { margin: 0; padding-top: 0; background: var(--gray-200); }
body.print-mode .content { max-width: none; padding: 1rem; }
.pb-toolbar { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; max-width: 297mm; margin: 0 auto .75rem; }
.pb-sheet { width: 297mm; min-height: 210mm; margin: 0 auto; background: #fff; color: #000; padding: 10mm 12mm; box-shadow: var(--shadow-lg);
  font-family: "Times New Roman", Times, "Liberation Serif", serif; font-size: 10.5pt; line-height: 1.3; position: relative; }
.pb-sheet b { font-weight: 700; }
.pb-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 8mm; }
.pb-kop { display: flex; gap: 3mm; align-items: center; }
.pb-logo { max-height: 22mm; max-width: 40mm; object-fit: contain; }
.pb-co { font-family: Arial, Helvetica, sans-serif; font-weight: 800; font-size: 15pt; color: var(--kop-name, var(--pa, #e8541c)); letter-spacing: .2px; line-height: 1.1; }
.pb-tag { font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 10pt; color: var(--kop-tag, var(--pc, #1f3a93)); }
.pb-addr { font-family: Arial, Helvetica, sans-serif; font-size: 6.5pt; color: #333; }
.pb-code { margin-top: 5mm; background: #d9d9d9; font-weight: 700; font-size: 18pt; padding: 1mm 4mm; justify-self: center; }
.pb-meta { justify-self: end; border-collapse: collapse; font-size: 10.5pt; }
.pb-meta th { text-align: left; padding: .4mm 2mm .4mm 0; font-weight: 700; }
.pb-meta td { padding: .4mm 1.5mm; }
.pb-meta td.shade { min-width: 32mm; }
.pb-sheet .shade { background: #cfe0f5; }
.pb-sheet .shade.pad { padding: 0 2mm; font-weight: 700; }
.pb-title { text-align: center; font-size: 15pt; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin: 5mm 0 6mm; letter-spacing: .3px; font-family: inherit; }
.pb-line { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1mm; }
.pb-line > div:first-child { margin-bottom: 4mm; }
.pb-items { width: 100%; border-collapse: collapse; margin-bottom: 4mm; }
.pb-items th, .pb-items td { border: 1px solid #000; padding: .6mm 1.5mm; vertical-align: top; }
.pb-items th { font-weight: 700; text-align: center; }
.pb-items td.c { text-align: center; }
.c-no { width: 10mm; } .c-q { width: 15mm; } .c-name { width: 88mm; } .c-job { width: 52mm; }
.pb-opts { width: 100%; border-collapse: collapse; margin-bottom: 6mm; }
.pb-opts td { border: 1px solid #000; padding: 1.5mm 2mm 3mm; vertical-align: top; }
.pb-opts .o1 { width: 26%; } .pb-opts .o2 { width: 38%; }
.pb-opts .g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5mm 4mm; margin: 2mm 0 2mm 1mm; }
.pb-cb { display: inline-flex; align-items: center; gap: 2mm; }
.pb-box { display: inline-block; width: 3.2mm; height: 3.2mm; border: 1px solid #000; position: relative; flex: none; }
.pb-box.on::after { content: ""; position: absolute; left: .9mm; top: -.2mm; width: 1.1mm; height: 2.2mm; border: solid #000; border-width: 0 .45mm .45mm 0; transform: rotate(40deg); }
.pb-sign { display: grid; grid-template-columns: 45mm 1fr; gap: 20mm; align-items: start; }
.pb-req { text-align: center; }
.pb-sigbox { height: 20mm; display: flex; align-items: center; justify-content: center; }
.pb-sigimg { max-height: 18mm; max-width: 44mm; object-fit: contain; }
.pb-req .pb-sigimg { max-width: 42mm; }
.pb-name { border-bottom: 1px solid #000; padding-bottom: .5mm; }
.pb-pos { padding-top: .5mm; }
.pb-appr { text-align: center; }
.pb-appr table { width: 100%; border-collapse: collapse; margin-top: 3mm; table-layout: fixed; }
.pb-appr td { border: 1px solid #000; text-align: center; }
.pb-appr td.sig { height: 21mm; vertical-align: middle; }
.pb-appr td.lbl { padding: .5mm; }
.pb-signame { font-style: italic; font-size: 12pt; }
.pb-sigdate { font-size: 6.5pt; color: #444; }
.pb-transfer { position: absolute; right: 12mm; bottom: 10mm; font-family: Arial, Helvetica, sans-serif; font-size: 6pt; width: 48mm; }
.pb-transfer b { display: block; margin-bottom: 1.5mm; }
.pb-transfer div { display: flex; justify-content: space-between; align-items: center; }
.pb-transfer .pb-box { width: 3.6mm; height: 3.6mm; margin: -1px 0 0; }
.sigrow { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.sigpad { width: 100%; height: 150px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: #fff; touch-action: none; cursor: crosshair; display: block; }
.sig-preview { max-height: 80px; max-width: 260px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px; }
.logo-preview { max-height: 60px; max-width: 200px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px; }
@media print {
  /* default: A4 portrait dengan margin wajar (laporan, halaman lain) */
  @page { size: A4 portrait; margin: 10mm 10mm 12mm; @bottom-right { content: "Hal. " counter(page) " / " counter(pages); font: 7pt Arial, sans-serif; color: #555; } }
  @page land { size: A4 landscape; margin: 8mm 10mm; }
  @page inv { size: A4 portrait; margin: 8mm 10mm; }
  .pb-sheet { page: land; }
  .pb-sheet.portrait { page: inv; }
  body.print-mode .admin-main, body.print-mode .content { background: #fff; padding: 0; margin: 0; }
  /* lebar mengikuti area cetak kertas → tidak pernah "mengecil" di pojok */
  .pb-sheet { box-shadow: none; margin: 0; width: auto; min-height: 192mm; padding: 0; }
  .pb-sheet.portrait { min-height: 279mm; }
  .pb-transfer { right: 0; bottom: 0; }
  .no-print, .skip-link, #toasts, .modal-wrap { display: none !important; }
  .pb-sheet .shade { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pb-code { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.sumbar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .875rem 1rem; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); background: var(--surface-panel); margin-top: -1px; }
.sumbar span { display: block; font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); font-weight: 600; }
.sumbar b { font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.sumbar .r { margin-left: auto; text-align: right; }
.done-ico.bad { background: var(--bad-bg); color: var(--bad-fg); }
.verify-card { max-width: 480px; }

/* ---------------- Cetak PP / PO / AP / Invoice ---------------- */
.pb-sheet .ul { text-decoration: underline; text-underline-offset: 2px; }
.pb-sheet .r { text-align: right; } .pb-sheet .c { text-align: center; } .pb-sheet .b { font-weight: 700; }
.pb-sheet .or { color: var(--pa, #e8541c); } .pb-sheet .big { font-size: 12pt; }
.pb-sheet .pre { white-space: pre-wrap; }
.pb-code.plain { margin-top: 3mm; }
.sig-qr svg { width: 17mm; height: 17mm; display: block; margin: 0 auto; }
/* PP */
.pp-intro { margin-bottom: 1mm; } .pp-intro > div { margin-bottom: .6mm; }
.pp-items .c-money { width: 40mm; }
.pb-items td.money, .inv-items td.money { text-align: right; }
.pb-items td.money span, .inv-items td.money span { float: left; }
.pp-items tr.blank td { height: 5mm; }
.pp-sig { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pp-sig th { border: 1px solid #000; font-weight: 700; padding: .5mm; }
.pp-sig td { border: 1px solid #000; text-align: center; }
.pp-sig td.sig { height: 22mm; }
/* PO & AP (font sans seperti contoh) */
.po-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6mm; align-items: start; font-family: Arial, Helvetica, sans-serif; }
.po-meta, .ap-meta { justify-self: end; border-collapse: collapse; font-family: Arial, Helvetica, sans-serif; font-size: 10pt; }
.po-meta th { text-align: left; padding: .4mm 6mm .4mm 0; font-weight: 700; }
.po-meta td, .ap-meta td { padding: .4mm 0; } .ap-meta td:first-child { padding-right: 18mm; }
.po-title { text-align: center; font-family: Arial, Helvetica, sans-serif; font-size: 15pt; font-weight: 700; text-decoration: underline; margin: 4mm 0 3mm; }
.pb-sheet:has(.po-title), .pb-sheet:has(.ap-title), .pb-sheet.portrait { font-family: Arial, Helvetica, sans-serif; font-size: 9.5pt; }
.po-party { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #000; border-bottom: 1px solid #000; margin-bottom: 5mm; }
.po-party > div { padding: 1.5mm 2mm; } .po-party > div + div { border-left: 1px solid #000; }
.po-party table { border-collapse: collapse; } .po-party td { padding: 1mm 1.5mm; vertical-align: top; } .po-party td.lb { width: 38mm; white-space: nowrap; }
.po-items, .ap-items { width: 100%; border-collapse: collapse; margin-bottom: 4mm; }
.po-items th, .po-items td, .ap-items th, .ap-items td { border: 1px solid #000; padding: 1mm 1.5mm; }
.po-items th, .ap-items th { font-weight: 400; text-align: center; } .ap-items th { font-weight: 700; background: #f2f2f2; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.po-items thead tr { border-bottom: 2px solid #000; }
.c-qb { width: 30mm; } .c-sat { width: 22mm; } .c-pr { width: 38mm; } .c-acc { width: 38mm; } .c-ref { width: 66mm; } .c-q2 { width: 22mm; }
.po-items td.terb { vertical-align: middle; padding: 3mm; }
.po-foot { width: 100%; border-collapse: collapse; }
.po-foot > tbody > tr > td { border: 1px solid #000; vertical-align: top; padding: 1.5mm 2mm; }
.po-foot .pf1 { width: 45%; } .po-foot .pf1 table td { padding: .3mm 1.5mm .3mm 0; }
.po-foot .pf2, .po-foot .pf3 { text-align: center; }
.po-signame { margin-top: 16mm; }
.po-signers { display: flex; justify-content: space-around; gap: 4mm; }
.po-signers > div { text-align: center; min-width: 28mm; }
.po-sigarea { height: 16mm; display: flex; align-items: center; justify-content: center; }
.po-sigarea .pb-sigimg { max-height: 15mm; }
/* AP */
.ap-rule { border: 0; border-top: 1.5px solid #000; margin: 3mm 0 2mm; }
.ap-title { text-align: center; font-family: "Times New Roman", Times, serif; font-size: 16pt; font-weight: 700; color: var(--pa, #e8541c); text-decoration: underline; margin: 0 0 3mm; }
.ap-info { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6mm; margin-bottom: 3mm; font-family: "Times New Roman", Times, serif; font-size: 10.5pt; }
.ap-info table { border-collapse: collapse; } .ap-info th { text-align: left; padding: .6mm 10mm .6mm 0; white-space: nowrap; } .ap-info td { padding: .6mm 0; }
.ap-items td { vertical-align: top; height: 7mm; }
.ap-sign { width: 100%; border-collapse: collapse; font-family: "Times New Roman", Times, serif; font-size: 9pt; }
.ap-sign th, .ap-sign td { border: 1px solid #000; padding: .6mm 1mm; text-align: center; }
.ap-sign th.note, .ap-sign td.note { text-align: left; width: 38%; }
.ap-sign td.sig { height: 20mm; vertical-align: bottom; } .ap-sign td.sig .pb-sigimg { max-height: 13mm; display: block; margin: 0 auto; }
.ap-sign .sig-qr svg { width: 13mm; height: 13mm; }
/* Invoice portrait */
.pb-sheet.portrait { width: 210mm; min-height: 297mm; padding: 12mm 14mm; }
.inv-head { display: grid; grid-template-columns: 1fr 76mm; gap: 6mm; }
.inv-banner { background: #1f5296; color: #fff; text-align: center; font-weight: 700; font-size: 17pt; padding: 1mm; letter-spacing: .5px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.inv-meta { width: 100%; border-collapse: collapse; font-size: 7.5pt; margin-top: 1.5mm; }
.inv-meta td { padding: .7mm 1.5mm; } .inv-meta td + td { border: 1px solid #000; }
.inv-bar { background: #1f5296; color: #fff; font-weight: 700; font-size: 8pt; padding: 1mm 2mm; margin-top: 5mm; width: 74%; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.inv-bill { font-size: 8.5pt; margin: 1.5mm 0 4mm; }
.inv-items { width: 100%; border-collapse: collapse; font-size: 8.5pt; }
.inv-items thead th { background: #1f5296; color: #fff; padding: 1mm; border: 1px solid #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.inv-items td { border: 1px solid #000; padding: .8mm 1.5mm; }
.inv-items tr.tot td.nob { border: 0; }
.inv-terb { background: #e7e7e7; text-align: center; font-size: 7.5pt; padding: 1.2mm; margin: 4mm 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.inv-terms { font-size: 8pt; }
.inv-comments { width: 58%; } .inv-comments .inv-bar { width: auto; } .inv-comments .box { border: 1px solid #000; min-height: 18mm; padding: 1.5mm; font-size: 8pt; }
.inv-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 8mm; font-size: 8pt; }
.inv-qr { text-align: center; font-size: 6pt; color: #555; } .inv-qr svg { width: 24mm; height: 24mm; display: block; }
.inv-sign { text-align: center; min-width: 60mm; }
.inv-thanks { text-align: center; font-size: 8.5pt; margin-top: 8mm; }
.wide-inp { width: 100%; min-width: 180px; } .num-inp { width: 110px; } .mt { margin-top: .75rem; }

/* ---------------- Cetak generik A4 (semua modul, daftar, laporan) ---------------- */
.print-only { display: none; }
.ps-sheet { width: 210mm; min-height: 297mm; margin: 0 auto; background: #fff; color: #000; padding: 12mm 12mm 14mm; box-shadow: var(--shadow-lg);
  font-family: Arial, Helvetica, sans-serif; font-size: 9pt; line-height: 1.35; display: flex; flex-direction: column; }
.ps-sheet.ps-land { width: 297mm; min-height: 210mm; }
.ps-sheet .pre { white-space: pre-wrap; }
.ps-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 6mm; border-bottom: 2px solid var(--pc, #1f3a93); padding-bottom: 3mm; margin-bottom: 4mm; }
.ps-docbox { text-align: right; flex: none; }
.ps-code { display: inline-block; background: #d9d9d9; font-weight: 700; font-size: 14pt; padding: .5mm 4mm; margin-bottom: 2mm; font-family: "Times New Roman", Times, serif; }
.ps-meta { border-collapse: collapse; margin-left: auto; font-size: 8.5pt; text-align: left; }
.ps-meta th { padding: .3mm 1.5mm .3mm 0; font-weight: 700; white-space: nowrap; }
.ps-meta td { padding: .3mm 1.5mm; } .ps-meta td.shade { background: #cfe0f5; min-width: 38mm; }
.ps-title { text-align: center; font-size: 13pt; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-transform: uppercase; margin: 1mm 0 4mm; letter-spacing: .3px; }
.ps-filter { font-size: 8pt; margin: -2mm 0 2mm; color: #333; }
.ps-fields { width: 100%; border-collapse: collapse; margin-bottom: 3mm; table-layout: fixed; }
.ps-fields th, .ps-fields td { border: 1px solid #9aa4b2; padding: 1mm 2mm; vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.ps-fields th { background: #eef2f8; width: 20%; font-weight: 700; }
.ps-h { font-size: 10pt; font-weight: 700; margin: 4mm 0 1.5mm; padding-left: 2mm; border-left: 3px solid var(--pa, #e8541c); break-after: avoid; }
.ps-table { width: 100%; border-collapse: collapse; font-size: 8.5pt; }
.ps-table th { background: var(--pc, #1f3a93); color: #fff; font-weight: 700; padding: 1mm 1.5mm; border: 1px solid var(--pc, #1f3a93); text-align: left; }
.ps-table td { border: 1px solid #555; padding: .8mm 1.5mm; vertical-align: top; overflow-wrap: anywhere; }
.ps-table tbody tr:nth-child(even) td { background: #f4f6fa; }
.ps-table .r { text-align: right; } .ps-table .c { text-align: center; } .ps-table .b { font-weight: 700; } .ps-table .nw { white-space: nowrap; }
.ps-table th.no { width: 8mm; }
.ps-table tfoot td { background: #eef2f8; }
.ps-sum { margin: 3mm 0 0 auto; border-collapse: collapse; font-size: 9pt; }
.ps-sum th { text-align: left; padding: .8mm 6mm .8mm 2mm; border: 1px solid #555; background: #eef2f8; }
.ps-sum td { text-align: right; padding: .8mm 2mm; border: 1px solid #555; min-width: 45mm; white-space: nowrap; }
.ps-sum tr.g th, .ps-sum tr.g td { font-weight: 700; background: #cfe0f5; }
.ps-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; }
.ps-photos figure { margin: 0; break-inside: avoid; }
.ps-photos img { width: 100%; height: 45mm; object-fit: cover; border: 1px solid #999; display: block; }
.ps-photos figcaption { font-size: 7pt; color: #444; margin-top: .5mm; }
.ps-files { margin: 0; padding-left: 5mm; }
.ps-sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10mm; margin-top: 8mm; text-align: center; break-inside: avoid; }
.ps-sign .lb { font-weight: 700; } .ps-sign .box { height: 20mm; }
.ps-sign .nm { border-top: 1px solid #000; padding-top: 1mm; margin: 0 4mm; }
.ps-foot { margin-top: auto; padding-top: 1.5mm; border-top: 1px solid #bbb; display: flex; justify-content: space-between; font-size: 7pt; color: #555; }
.ps-sheet .pb-logo, .rep-kop .pb-logo { max-width: 80mm; max-height: 18mm; }
.rep-kop { border-bottom: 2px solid var(--pc, #1f3a93); padding-bottom: 3mm; margin-bottom: 4mm; font-family: Arial, Helvetica, sans-serif; }
@page lst { size: A4 landscape; margin: 10mm 10mm 12mm; @bottom-right { content: "Hal. " counter(page) " / " counter(pages); font: 7pt Arial, sans-serif; color: #555; } }
@media print {
  .print-only { display: block; }
  .admin-main, body.print-mode .admin-main { min-height: 0 !important; }
  .ps-sheet { width: auto; min-height: 0; padding: 0; margin: 0; box-shadow: none; display: block; }
  .ps-sheet.ps-land { page: lst; width: auto; min-height: 0; }
  .ps-foot { margin-top: 6mm; }
  .ps-table thead { display: table-header-group; } .ps-table tr { break-inside: avoid; }
  .ps-sheet, .ps-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .report { font-family: Arial, Helvetica, sans-serif; }
}
.import-steps { margin: 0 0 1rem; padding-left: 1.25rem; } .import-steps li { margin-bottom: .4rem; }
.import-errs { max-height: 220px; overflow-y: auto; margin: .5rem 0 0; padding-left: 1.1rem; font-size: .8125rem; color: var(--bad-fg); }
/* ---------------- Kotak pilihan dengan pencarian ---------------- */
.pick { position: relative; display: block; min-width: 180px; }
.pick .pick-in { width: 100%; padding-right: 1.9rem !important; }
.lines-tbl .pick { min-width: 220px; }
.pick-x { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--ink-muted); cursor: pointer; font-size: .75rem; padding: 4px 6px; border-radius: var(--radius-sm); }
.pick-x:hover { background: var(--surface-sunken); color: var(--ink-primary); }
.pick-menu { position: fixed; z-index: 1070; max-height: 280px; overflow-y: auto; background: var(--surface-panel); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .25rem; font-size: .875rem; }
.pick-opt { padding: .45rem .6rem; border-radius: var(--radius-sm); cursor: pointer; display: flex; justify-content: space-between; gap: .75rem; }
.pick-opt.on, .pick-opt:hover { background: rgba(var(--primary-rgb), .1); color: var(--ink-primary); }
.pick-meta { color: var(--ink-muted); font-size: .75rem; white-space: nowrap; }
.pick-msg { padding: .45rem .6rem; color: var(--ink-muted); font-size: .8125rem; }

/* ---------------- Cetak QTS: Surat Penawaran Harga + BoQ (A4 portrait) ---------------- */
.qts-sheet { font-family: "Times New Roman", Times, "Liberation Serif", serif; font-size: 11.5pt; line-height: 1.32; overflow: hidden; margin-bottom: 1rem; }
.qts-sheet > table, .qts-sheet .qts-frame { position: relative; z-index: 1; }
.qts-wm { position: absolute; left: 50%; top: 32%; width: 78%; transform: translateX(-50%); opacity: .32; pointer-events: none; z-index: 0; }
.qts-frame { width: 100%; border-collapse: collapse; }
.qts-frame > thead td, .qts-frame > tbody > tr > td { padding: 0; }
.qts-kop .pb-kop { justify-content: center; gap: 4mm; }
.qts-kop .pb-logo { max-height: 26mm; max-width: 70mm; }
.qts-kop .pb-co { font-size: 21pt; }
.qts-kop .pb-tag { font-size: 13pt; }
.qts-kop .pb-addr { font-size: 7.5pt; }
.qts-rule { border-top: 2.5px solid #000; border-bottom: 1px solid #000; height: 2px; margin: 3mm 0 6mm 18mm; }
.qts-body { padding: 0 6mm 0 0 !important; }
.qts-sheet .b { font-weight: 700; } .qts-sheet .pre { white-space: pre-wrap; }
.qts-top { display: flex; justify-content: space-between; padding-right: 22mm; }
.qts-hal { border-collapse: collapse; margin: 4mm 0; } .qts-hal th { text-align: left; font-weight: 700; padding: 0 6mm 0 0; vertical-align: top; }
.qts-sheet p { margin: 0 0 4mm; }
.qts-sec { margin-bottom: 4mm; }
.qts-sec h3 { font: inherit; font-weight: 700; margin: 0 0 .5mm; break-after: avoid; } .qts-sec h3 span { display: inline-block; width: 6mm; }
.qts-ol { margin: 0; padding-left: 12mm; } .qts-ol li { padding-left: 1mm; }
.qts-price { width: 92%; margin-left: 5mm; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.qts-price .c1 { width: 7mm; } .qts-price .c2 { width: 12mm; } .qts-price .c3 { width: 17mm; } .qts-price .c5 { width: 33mm; } .qts-price .c6 { width: 9mm; } .qts-price .c7 { width: 30mm; }
.qts-price th { background: #c9c9c9; border: 1.5px double #000; font-weight: 700; padding: .3mm 1mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.qts-price td { border-left: 1px solid #000; border-right: 1px solid #000; padding: 4mm 1.2mm 0; vertical-align: top; }
.qts-price tr.fill td { height: 10mm; border-bottom: 1px solid #000; padding: 0; }
.qts-price tfoot td { border: 1px solid #000; padding: .4mm 1.2mm; }
.qts-price td.g { background: #c9c9c9; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.qts-price td.nb { border: 0; }
.qts-price .c { text-align: center; } .qts-price .r { text-align: right; } .qts-price td.rp { padding-left: 1mm; padding-right: 0; border-right: 0; }
.qts-price tr.it td.rp + td, .qts-price tfoot td.rp + td { border-left: 0; }
.qts-words { margin: 5mm 0 4mm 5mm; width: 75%; background: #e0e0e0; font-weight: 700; font-style: italic; padding: .6mm 2mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.qts-notes { margin-left: 5mm; } .qts-notes ul { margin: .5mm 0 0; padding-left: 5mm; }
.qts-terms, .qts-days { border-collapse: collapse; margin-left: 6mm; }
.qts-terms td { padding: 0 2mm; vertical-align: top; } .qts-terms .bul { width: 6mm; } .qts-terms .pct { text-align: right; width: 12mm; padding-right: 5mm; }
.qts-days td { padding: 0 2mm 0 0; vertical-align: top; } .qts-days .num { text-align: right; min-width: 7mm; } .qts-days .wd { white-space: nowrap; padding-right: 6mm; }
.qts-close { break-inside: avoid; margin-top: 4mm; }
.qts-close p { margin-bottom: 0; }
.qts-sig { height: 24mm; display: flex; align-items: flex-end; } .qts-sig .pb-sigimg { max-height: 26mm; max-width: 60mm; }
.qts-signame { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
/* lampiran BoQ */
.qts-boq { font-family: Arial, Helvetica, sans-serif; font-size: 7.5pt; line-height: 1.25; }
.boq { width: 100%; border-collapse: collapse; table-layout: fixed; }
.boq .b1 { width: 8mm; } .boq .b3 { width: 40mm; } .boq .b4 { width: 10mm; } .boq .b5 { width: 13mm; } .boq .b6 { width: 6mm; } .boq .b7 { width: 21mm; } .boq .b8 { width: 22mm; }
.boq th.boq-head { border: 0; text-align: left; font-weight: 400; padding: 0 0 3mm; background: none; }
.boq-title { text-align: center; font-weight: 700; font-size: 9pt; margin: 2mm 0 4mm; letter-spacing: .4px; }
.boq-info { border-collapse: collapse; font-variant: small-caps; font-weight: 700; } .boq-info td { padding: .2mm 3mm 0 0; } .boq-info td:first-child { font-weight: 400; width: 24mm; }
.boq tr.hd th { background: #b8cce4; border: 1px solid #000; font-weight: 700; font-variant: small-caps; padding: .6mm 1mm; text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.boq td { border-left: 1px solid #000; border-right: 1px solid #000; padding: .25mm 1mm; vertical-align: top; overflow-wrap: anywhere; }
.boq td.rp { border-right: 0; padding-right: 0; } .boq td.rp + td { border-left: 0; }
.boq > tbody > tr:last-child > td { border-bottom: 1px solid #000; }
.boq .c { text-align: center; } .boq .r { text-align: right; white-space: nowrap; }
.boq tr.sp td { height: 2.2mm; padding: 0; }
.boq tr.grp td { background: #ffe699; font-weight: 700; font-style: italic; border-top: 1px solid #000; border-bottom: 1px solid #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.boq tr.main td { font-variant: small-caps; }
.boq td.ind { padding-left: 6mm; font-variant: small-caps; }
.boq tr.subt td { color: #c00000; font-weight: 700; font-style: italic; border-top: 1px solid #000; border-bottom: 1px solid #000; background: #dce6f1; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.boq tr.gt td { background: #95b3d7; color: #c00000; font-weight: 700; font-style: italic; border-top: 1.5px solid #000; border-bottom: 1.5px solid #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.boq tr { break-inside: avoid; }
.boq-sig { margin: 6mm 22mm 0 auto; border-collapse: collapse; break-inside: avoid; font-size: 7pt; }
.boq-sig th { background: #d9d9d9; border: 1px solid #000; padding: .5mm 4mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.boq-sig td { border: 1px solid #000; text-align: center; width: 36mm; padding: .4mm 1mm; } .boq-sig td.sig { height: 20mm; vertical-align: middle; }
.boq-sig td.nm { font-weight: 700; } .boq-sig .pb-sigimg { max-height: 18mm; max-width: 34mm; }
@media print {
  .qts-sheet { overflow: visible; margin: 0; min-height: 0 !important; }
  .qts-sheet.qts-boq { break-before: page; }
  .qts-wm { position: fixed; top: 50%; transform: translate(-50%, -50%); width: 72%; }
  .qts-frame > thead { display: table-header-group; } .boq > thead { display: table-header-group; }
}
.pb-sheet.portrait.qts-sheet { font-family: "Times New Roman", Times, "Liberation Serif", serif; font-size: 11.5pt; }
.pb-sheet.portrait.qts-sheet.qts-boq { font-family: Arial, Helvetica, sans-serif; font-size: 7.5pt; }
.boq .boq-info td { border: 0; padding: .2mm 3mm 0 0; }
.boq .b5 { width: 15mm; } .boq .b3 { width: 38mm; }
.qts-price tr.fill td.rp { border-right: 0; } .qts-price tr.fill td.rp + td { border-left: 0; }
@media print { .qts-sheet { background: transparent !important; } body.print-mode .content, body.print-mode .admin-main { background: transparent !important; } }

/* BoQ: garis rapi — sel info kop tanpa garis; border hanya pada tabel utama */
.boq .boq-info td, .boq .boq-info tr:last-child td { border: 0 !important; }
.boq > tbody > tr > td.rp { border-right: 0; } .boq > tbody > tr > td.rp + td { border-left: 0; }
.qts-rule { display: none; }
.qts-kop { margin-bottom: 7mm; }
.boq tr td.rp, .boq tr.main td.rp { font-variant: normal; }
/* QTS: kop rapat ke atas */
@page qts { size: A4 portrait; margin: 6mm 13mm 10mm 15mm; @bottom-right { content: "Hal. " counter(page) " / " counter(pages); font: 7pt Arial, sans-serif; color: #555; } }
@media print {
  .pb-sheet.portrait.qts-sheet { page: qts; padding: 0 !important; min-height: 0 !important; }
  .qts-kop { margin-bottom: 5mm; }
}
@media print { .qts-boq .boq { break-after: avoid; } .qts-boq .boq-sig { break-before: avoid; } }
.lines-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; } .lines-actions .btn svg { width: 14px; height: 14px; }
.lines-tbl input[data-col="description"] { min-width: 240px; } .lines-tbl input[data-col="spec"], .lines-tbl input[data-col="grp"] { min-width: 150px; } .lines-tbl input[data-col="no"] { min-width: 50px; width: 60px; }
/* QTS: surat dibuat 1 halaman — jarak rapat, ukuran huruf disesuaikan otomatis (--qf) */
.pb-sheet.portrait.qts-sheet:not(.qts-boq) { padding: 6mm 13mm 10mm 15mm; font-size: var(--qf, 11.5pt); line-height: 1.24; }
.qts-sheet:not(.qts-boq) .qts-kop { margin-bottom: 4mm; }
.qts-sheet:not(.qts-boq) p { margin: 0 0 2.2mm; }
.qts-sheet .qts-hal { margin: 2.2mm 0; }
.qts-sheet .qts-sec { margin-bottom: 2.2mm; }
.qts-sheet .qts-price td { padding-top: 1.8mm; }
.qts-sheet .qts-price tr.fill td { height: 5mm; }
.qts-sheet .qts-price tfoot td { padding-top: .3mm; padding-bottom: .3mm; }
.qts-sheet .qts-words { margin: 2.5mm 0 2mm 5mm; }
.qts-sheet .qts-close { margin-top: 1.5mm; }
.qts-sheet .qts-sig { height: 19mm; } .qts-sheet .qts-sig .pb-sigimg { max-height: 19mm; } .qts-sheet .qts-sig .sig-qr svg { width: 16mm; height: 16mm; }
@media print { .pb-sheet.portrait.qts-sheet:not(.qts-boq) { padding: 0 !important; } }
.qts-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; }
.qts-2col > .qts-sec { break-inside: avoid; }
@media print { .pb-sheet.portrait.qts-sheet, .pb-sheet.portrait.qts-sheet.qts-boq { width: auto !important; max-width: none !important; } }
/* watermark logo di semua dokumen cetak */
.pb-sheet, .ps-sheet { position: relative; }
.pb-sheet > :not(.doc-wm):not(.pb-transfer), .ps-sheet > :not(.doc-wm) { position: relative; z-index: 1; }
.pb-sheet > .pb-transfer { z-index: 1; }
.doc-wm { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 70%; max-height: 80%; object-fit: contain; opacity: .32; pointer-events: none; z-index: 0; }
.doc-wm.from-logo { opacity: .13; }
.qts-sheet .doc-wm { top: 32%; transform: translateX(-50%); }
.pb-sheet:not(.portrait) .doc-wm, .ps-sheet.ps-land .doc-wm { width: 55%; }
.pb-sheet .shade, .ps-meta td.shade { background: rgba(207, 224, 245, .85); }
@media print {
  .doc-wm { position: fixed; top: 50%; transform: translate(-50%, -50%); }
  .qts-sheet .doc-wm { top: 50%; transform: translate(-50%, -50%); width: 72%; }
}
.qts-kop .pb-logo { max-height: 22mm; max-width: 62mm; } .qts-kop .pb-co { font-size: 19pt; } .qts-kop .pb-tag { font-size: 12pt; }
/* watermark BoQ: tampil di layar; saat cetak cukup satu watermark (posisi tetap) yang otomatis ada di setiap halaman */
.qts-boq .boq-wm { top: 38%; transform: translateX(-50%); }
@media print { .qts-boq .boq-wm { display: none; } }
/* QTS bersusun ke bawah: rapatkan jarak agar huruf tetap besar */
.pb-sheet.portrait.qts-sheet:not(.qts-boq) { line-height: 1.18; }
.qts-sheet:not(.qts-boq) .qts-kop { margin-bottom: 3mm; }
.qts-sheet .qts-sec { margin-bottom: 1.6mm; }
.qts-sheet .qts-sec h3 { margin-bottom: .2mm; }
.qts-sheet:not(.qts-boq) p { margin-bottom: 1.6mm; }
.qts-sheet .qts-hal { margin: 1.6mm 0; }
.qts-sheet .qts-price td { padding-top: 1.2mm; }
.qts-sheet .qts-price tr.fill td { height: 3mm; }
.qts-sheet .qts-words { margin: 2mm 0 1.5mm 5mm; }
.qts-sheet .qts-notes ul { margin-top: 0; }
.qts-sheet .qts-sig { height: 16mm; } .qts-sheet .qts-sig .pb-sigimg { max-height: 16mm; } .qts-sheet .qts-sig .sig-qr svg { width: 14mm; height: 14mm; }
.ver-warn { margin: 0 1.5rem 1rem; padding: .75rem 1rem; border-radius: var(--radius); background: var(--bad-bg); color: var(--bad-fg); border: 1px solid currentColor; font-size: .875rem; }

/* =========================== TEMA TAMPILAN =========================== */
:root { --accent: #06b6d4; --accent-rgb: 6, 182, 212; --primary-hover: #1d4ed8; --primary-deep: #172554; }
html[data-size="sm"] { font-size: 15px; } html[data-size="lg"] { font-size: 17px; }
html[data-radius="xl"] .btn, html[data-radius="xl"] .hdr-search select { border-radius: 999px; }
/* sidebar */
html[data-sidebar="dark"] { --sb-bg: #111827; --sb-ink: #e5e7eb; --sb-ink2: #9ca3af; --sb-hover: rgba(255, 255, 255, .07); --sb-active: rgba(255, 255, 255, .12); --sb-line: #1f2937; }
html[data-sidebar="navy"] { --sb-bg: #0b1f4d; --sb-ink: #e8eefc; --sb-ink2: #9fb2da; --sb-hover: rgba(255, 255, 255, .08); --sb-active: rgba(255, 255, 255, .14); --sb-line: #13306b; }
html[data-sidebar="brand"] { --sb-bg: var(--primary-deep); --sb-ink: #fff; --sb-ink2: rgba(255, 255, 255, .72); --sb-hover: rgba(255, 255, 255, .1); --sb-active: rgba(255, 255, 255, .18); --sb-line: rgba(255, 255, 255, .12); }
html[data-sidebar="dark"] .admin-sidebar, html[data-sidebar="navy"] .admin-sidebar, html[data-sidebar="brand"] .admin-sidebar { background: var(--sb-bg); border-right-color: var(--sb-line); }
html[data-sidebar="dark"] .admin-sidebar .nav-link, html[data-sidebar="navy"] .admin-sidebar .nav-link, html[data-sidebar="brand"] .admin-sidebar .nav-link { color: var(--sb-ink); }
html[data-sidebar="dark"] .admin-sidebar .nav-link .ico, html[data-sidebar="navy"] .admin-sidebar .nav-link .ico, html[data-sidebar="brand"] .admin-sidebar .nav-link .ico,
html[data-sidebar="dark"] .admin-sidebar .nav-sub .nav-link, html[data-sidebar="navy"] .admin-sidebar .nav-sub .nav-link, html[data-sidebar="brand"] .admin-sidebar .nav-sub .nav-link { color: var(--sb-ink2); }
html[data-sidebar="dark"] .admin-sidebar .nav-link:hover, html[data-sidebar="navy"] .admin-sidebar .nav-link:hover, html[data-sidebar="brand"] .admin-sidebar .nav-link:hover { background: var(--sb-hover); }
html[data-sidebar="dark"] .admin-sidebar .nav-link.active, html[data-sidebar="navy"] .admin-sidebar .nav-link.active, html[data-sidebar="brand"] .admin-sidebar .nav-link.active { background: var(--sb-active); color: #fff; }
html[data-sidebar="dark"] .admin-sidebar .nav-link.active .ico, html[data-sidebar="navy"] .admin-sidebar .nav-link.active .ico, html[data-sidebar="brand"] .admin-sidebar .nav-link.active .ico { color: #fff; }
html[data-sidebar="brand"] .admin-sidebar .nav-link.active::before { background: var(--accent); }
html[data-sidebar="navy"] .admin-sidebar .nav-link.active::before, html[data-sidebar="dark"] .admin-sidebar .nav-link.active::before { background: var(--accent); }
.admin-sidebar * { scrollbar-color: rgba(127, 127, 127, .35) transparent; }
/* latar aplikasi */
html[data-bg="soft"] body { background: linear-gradient(180deg, rgba(var(--primary-rgb), .09), rgba(var(--accent-rgb), .03) 340px, transparent 620px) no-repeat, var(--surface-app); }
html[data-bg="dots"] body { background: radial-gradient(rgba(var(--primary-rgb), .14) 1px, transparent 1.3px) 0 0 / 18px 18px, var(--surface-app); }
html[data-bg="grid"] body { background: linear-gradient(rgba(var(--primary-rgb), .06) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(var(--primary-rgb), .06) 1px, transparent 1px) 0 0 / 24px 24px, var(--surface-app); }
html[data-bg="paper"]:not([data-theme="dark"]) { --surface-app: #f7f3ec; --surface-sunken: #f1ece3; --surface-hover: #efe9de; }
.brand-mark { background: linear-gradient(135deg, var(--primary), var(--accent)); }
@media print { html, html[data-size] { font-size: 16px !important; } body, html[data-bg] body { background: #fff !important; } }

/* =========================== HALAMAN LOGIN =========================== */
.lg-page { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 6vh 5vw; overflow: hidden; font-family: var(--font);
  background: linear-gradient(118deg, var(--accent) 0%, var(--primary) 46%, var(--primary-deep) 100%); background-color: var(--primary); }
html[data-login-bg="mesh"] .lg-page { background: radial-gradient(60% 70% at 12% 18%, rgba(var(--accent-rgb), .95), transparent 60%), radial-gradient(55% 60% at 88% 12%, rgba(255, 255, 255, .28), transparent 60%), radial-gradient(70% 70% at 80% 95%, var(--primary-deep), transparent 70%), var(--primary); }
html[data-login-bg="solid"] .lg-page { background: var(--surface-app); }
html[data-login-bg="image"] .lg-page { background-size: cover; background-position: center; }
.lg-plane { position: absolute; pointer-events: none; background: rgba(255, 255, 255, .08); }
.lg-plane.p1 { width: 60vw; height: 80vh; left: -18vw; top: -24vh; transform: skewY(-24deg); }
.lg-plane.p2 { width: 40vw; height: 60vh; right: -6vw; bottom: -30vh; transform: skewY(28deg); background: rgba(255, 255, 255, .06); }
.lg-plane.p3 { width: 18vw; height: 34vh; right: 6vw; top: 3vh; transform: skewY(-28deg); background: rgba(255, 255, 255, .07); }
html[data-login-bg="solid"] .lg-plane, html[data-login-bg="image"] .lg-plane { display: none; }
.lg-leaf { position: absolute; width: 170px; pointer-events: none; z-index: 0; }
.lg-leaf .lf1 { fill: #34d399; } .lg-leaf .lf2 { fill: #2dd4bf; } .lg-leaf .lf3 { fill: #10b981; } .lg-leaf .lfv { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 2; }
.lg-leaf.top { left: calc(50% - min(590px, 46vw) + 200px); top: calc(50% - min(320px, 42vh) - 92px); transform: rotate(8deg); }
.lg-leaf.side { left: calc(50% - min(590px, 46vw) - 70px); top: calc(50% + 40px); width: 140px; transform: rotate(-24deg) scaleX(-1); }
html[data-login-bg="solid"] .lg-leaf { opacity: .85; }
.lg-card { position: relative; z-index: 1; width: min(1180px, 92vw); min-height: min(640px, 84vh); display: grid; grid-template-columns: minmax(340px, 34%) 1fr;
  background: var(--surface-panel); border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(2, 6, 23, .35), 0 6px 16px rgba(2, 6, 23, .18); overflow: hidden; }
html[data-login-layout="right"] .lg-card { grid-template-columns: 1fr minmax(340px, 34%); }
html[data-login-layout="right"] .lg-form { order: 2; }
html[data-login-art="none"] .lg-card { grid-template-columns: 1fr; width: min(460px, 92vw); }
html[data-login-art="none"] .lg-art { display: none; }
.lg-form { display: flex; flex-direction: column; padding: 2.4rem 2.5rem 1.6rem; color: var(--ink-primary); }
.lg-brand { display: flex; align-items: center; gap: .65rem; min-height: 40px; }
.lg-brand img { max-height: 40px; max-width: 170px; object-fit: contain; }
.lg-brand .mk { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.lg-brand .nm { font-weight: 600; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1.25; }
.lg-hero { text-align: center; margin: 2.6rem 0 2.2rem; }
.lg-avatar-art { width: 84px; height: 84px; display: block; margin: 0 auto 1rem; }
.lg-avatar-art .av-bg { fill: var(--primary); } .lg-avatar-art .av-body { fill: var(--primary-deep); } .lg-avatar-art .av-vest { fill: #fff; }
.lg-avatar-art .av-skin { fill: #f6c9a3; } .lg-avatar-art .av-hat { fill: #fbbf24; } .lg-avatar-art .av-hat-hi { stroke: #fde68a; stroke-width: 3; stroke-linecap: round; }
.lg-title { font-size: 1.45rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; margin: 0; }
.lg-sub { color: var(--ink-muted); margin: .35rem 0 0; font-size: .875rem; }
.lg-fields { display: grid; gap: 1rem; }
.lg-field { position: relative; display: block; }
.lg-field .ico { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--ink-muted); width: 1.05rem; height: 1.05rem; pointer-events: none; }
.lg-field input { width: 100%; height: 50px; padding: 0 1rem 0 2.75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-panel); color: var(--ink-primary); font: inherit; font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
.lg-field input::placeholder { color: var(--ink-muted); }
.lg-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .16); }
.lg-field.pw input { padding-right: 3rem; }
.lg-eye { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ink-muted); width: 38px; height: 38px; border-radius: var(--radius-sm); cursor: pointer; display: grid; place-items: center; }
.lg-eye:hover { color: var(--ink-primary); background: var(--surface-sunken); }
.lg-field.cap input { padding-right: 10.4rem; text-transform: uppercase; letter-spacing: .12em; }
.lg-field.cap input::placeholder { text-transform: none; letter-spacing: normal; }
.lg-cap-img { position: absolute; right: 2.6rem; top: 50%; transform: translateY(-50%); height: 36px; max-width: 118px; width: auto; border-radius: 4px; cursor: pointer; background: #f1f5f9; }
.lg-cap-new { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); }
.lg-err { background: var(--bad-bg); color: var(--bad-fg); border-radius: var(--radius-sm); padding: .6rem .8rem; font-size: .85rem; }
.lg-err[hidden] { display: none; }
.lg-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; }
.lg-btn { min-width: 180px; height: 48px; padding: 0 2rem; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
  box-shadow: 0 10px 22px rgba(var(--primary-rgb), .35); transition: transform .12s, box-shadow .12s, background .12s; }
.lg-btn:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 14px 26px rgba(var(--primary-rgb), .38); }
.lg-btn:disabled { opacity: .7; cursor: progress; transform: none; }
html[data-radius="none"] .lg-btn, html[data-radius="sm"] .lg-btn { border-radius: var(--radius); }
.lg-forgot { border: 0; background: none; color: var(--ink-muted); font: inherit; font-size: .875rem; cursor: pointer; padding: .25rem; }
.lg-forgot:hover { color: var(--primary); text-decoration: underline; }
.lg-foot { margin-top: auto; padding-top: 2rem; font-size: .75rem; color: var(--ink-muted); }
.lg-art { position: relative; display: grid; place-items: center; padding: 2rem 2rem 4rem; overflow: hidden;
  background: linear-gradient(160deg, rgba(var(--primary-rgb), .04), rgba(var(--primary-rgb), .14)), var(--surface-panel); }
.lg-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(var(--primary-rgb), .14) 1px, transparent 1.4px) 0 0 / 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); }
.lg-art .iso, .lg-art .lg-art-img { position: relative; width: 100%; max-width: 680px; max-height: 100%; }
.lg-art .lg-art-img { object-fit: contain; max-height: 70vh; }
.lg-caps { position: absolute; left: 2.5rem; right: 2.5rem; bottom: 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lg-cap-txt { margin: 0; font-weight: 600; color: var(--ink-primary); font-size: .95rem; transition: opacity .35s; }
.lg-cap-txt.fade { opacity: 0; }
.lg-dots { display: flex; gap: .45rem; } .lg-dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: rgba(var(--primary-rgb), .28); cursor: pointer; transition: width .25s, background .25s; }
.lg-dots button.on { width: 22px; background: var(--primary); }
/* warna ilustrasi isometrik (mengikuti tema) */
.iso polygon { stroke: rgba(255, 255, 255, .25); stroke-width: .6; stroke-linejoin: round; }
.iso .b.t { fill: #93c5fd; fill: color-mix(in srgb, var(--primary) 34%, #fff); } .iso .b.l { fill: #3b82f6; fill: color-mix(in srgb, var(--primary) 80%, #fff); } .iso .b.r { fill: var(--primary); }
.iso .c.t { fill: #bae6fd; fill: color-mix(in srgb, color-mix(in srgb, var(--primary) 55%, var(--accent)) 28%, #fff); } .iso .c.l { fill: color-mix(in srgb, color-mix(in srgb, var(--primary) 55%, var(--accent)) 72%, #fff); } .iso .c.r { fill: color-mix(in srgb, var(--primary) 55%, var(--accent)); }
.iso .a.t { fill: color-mix(in srgb, var(--accent) 45%, #fff); } .iso .a.l { fill: color-mix(in srgb, var(--accent) 85%, #fff); } .iso .a.r { fill: var(--accent); }
.iso .w.t { fill: #ffffff; } .iso .w.l { fill: #e8eef8; } .iso .w.r { fill: #d3dcea; }
.iso .p.t { fill: #f8fafc; } .iso .p.l { fill: color-mix(in srgb, var(--primary) 14%, #fff); } .iso .p.r { fill: color-mix(in srgb, var(--primary) 24%, #fff); }
.iso .base.t { fill: color-mix(in srgb, var(--primary) 12%, #fff); } .iso .base.l { fill: color-mix(in srgb, var(--primary) 30%, #fff); } .iso .base.r { fill: color-mix(in srgb, var(--primary) 42%, #fff); }
.iso .win { fill: rgba(255, 255, 255, .55); stroke: none; } .iso .win.dim { fill: rgba(255, 255, 255, .32); } .iso .win.lit { fill: #fef9c3; } .iso .win.band { fill: rgba(255, 255, 255, .4); }
.iso .scr { fill: #0f2547; fill: color-mix(in srgb, var(--primary-deep) 85%, #000); stroke: none; }
.iso .sbar { fill: color-mix(in srgb, var(--primary) 60%, #fff); stroke: none; opacity: .9; }
.iso .scurve { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.iso .card { fill: #fff; stroke: rgba(var(--primary-rgb), .25); } .iso .chk { fill: var(--accent); stroke: none; } .iso .cline { fill: color-mix(in srgb, var(--primary) 22%, #fff); stroke: none; }
.iso .tree.a1 { fill: #34d399; } .iso .tree.a2 { fill: #10b981; } .iso .tree.t2.a1 { fill: #5eead4; } .iso .tree.t2.a2 { fill: #2dd4bf; } .iso .tree { stroke: none; }
.iso .trunk { fill: #92400e; }
.iso .mast { stroke: color-mix(in srgb, var(--primary) 60%, #000); stroke-width: 2; } .iso .beacon { fill: #ef4444; }
.iso .cable { stroke: #334155; stroke-width: 1.4; }
.iso .hat { fill: #fbbf24; } .iso .hat-brim { fill: #f59e0b; } .iso .hat-hi { fill: none; stroke: #fde68a; stroke-width: 3; stroke-linecap: round; }
.iso .gshadow { fill: rgba(var(--primary-rgb), .12); }
.iso .pshadow { fill: rgba(15, 23, 42, .18); } .iso .legs { stroke: #1e293b; stroke-width: 2.6; stroke-linecap: round; }
.iso .shirt { fill: var(--primary-deep); } .iso .shirt.a { fill: var(--accent); } .iso .shirt.c { fill: #f97316; } .iso .skin { fill: #f6c9a3; } .iso .helm { fill: #fbbf24; }
.iso .badge circle { fill: var(--accent); filter: drop-shadow(0 6px 10px rgba(var(--accent-rgb), .45)); } .iso .badge path { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .iso .w.t { fill: #cbd5e1; } [data-theme="dark"] .iso .w.l { fill: #94a3b8; } [data-theme="dark"] .iso .w.r { fill: #64748b; } [data-theme="dark"] .iso .card { fill: #e2e8f0; }
[data-theme="dark"] .lg-card { box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
/* layar ganti password / pesan menunggu memakai latar yang sama */
.auth { background: linear-gradient(118deg, var(--accent) 0%, var(--primary) 46%, var(--primary-deep) 100%); }
@media (max-width: 900px) {
  .lg-card, html[data-login-layout="right"] .lg-card { grid-template-columns: 1fr; width: min(460px, 94vw); min-height: 0; }
  .lg-art, .lg-leaf { display: none; }
  .lg-form { padding: 2rem 1.5rem 1.25rem; } .lg-hero { margin: 1.8rem 0 1.6rem; }
  .lg-actions { flex-direction: column; align-items: stretch; } .lg-btn { width: 100%; }
}
/* pilihan tema di pengaturan & profil */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; margin: .5rem 0 1rem; }
.theme-card { border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface-panel); padding: .55rem; cursor: pointer; text-align: left; font: inherit; color: var(--ink-primary); }
.theme-card:hover { border-color: var(--border-strong); } .theme-card.on { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15); }
.theme-card .sw { display: grid; grid-template-columns: 26% 1fr; height: 58px; border-radius: calc(var(--radius) - 2px); overflow: hidden; margin-bottom: .45rem; border: 1px solid var(--border); }
.theme-card .sw i { display: block; } .theme-card .sw .main { display: grid; grid-template-rows: 12px 1fr; }
.theme-card .sw .main b { display: block; } .theme-card .sw .main span { display: flex; gap: 4px; padding: 6px; align-items: flex-start; }
.theme-card .sw .main span em { display: block; height: 9px; border-radius: 3px; flex: 1; }
.theme-card .tn { font-weight: 600; font-size: .8125rem; display: block; } .theme-card .tf { font-size: .7rem; color: var(--ink-muted); }
.theme-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .75rem 1rem; }
.theme-form .fld input[type="color"] { height: 38px; padding: 2px; width: 100%; cursor: pointer; }
.img-pick { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; } .img-pick img { max-height: 44px; max-width: 120px; border-radius: 4px; border: 1px solid var(--border); }
.lg-field[hidden] { display: none; }
.lg-preview-bar { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 5; background: var(--surface-panel); color: var(--ink-primary); border-radius: 999px; padding: .4rem .5rem .4rem 1rem; box-shadow: var(--shadow-xl); display: flex; gap: .75rem; align-items: center; font-size: .8125rem; }
.theme-card .sw.sw-follow { display: grid; place-items: center; grid-template-columns: 1fr; color: var(--primary); background: rgba(var(--primary-rgb), .08); }
.theme-card .sw.sw-follow .ico { width: 26px; height: 26px; }
html[data-login-art="none"] .lg-leaf { display: none; }

/* =========================== TEMPLATE CETAKAN =========================== */
/* --pc = warna utama cetakan, --pa = warna aksen. "original" = tanpa aturan tambahan (format asli). */
:root { --pc: #1f4e9a; --pa: #e8541c; }
.pt-pick { display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; color: var(--ink-secondary); }
.pt-pick select { height: 34px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-panel); color: var(--ink-primary); font: inherit; padding: 0 .5rem; }
.pt-pick .ico { width: 1rem; height: 1rem; }
html[data-pt]:not([data-pt="original"]) :is(.pb-sheet, .ps-sheet) * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* tabel rincian yang di-skin */
/* ---------- 1. MODERN ---------- */
html[data-pt="modern"] :is(.pb-sheet, .ps-sheet), html[data-pt="modern"] .pb-sheet.portrait.qts-sheet:not(.qts-boq) { font-family: "Segoe UI", Calibri, Arial, Helvetica, sans-serif; }
html[data-pt="modern"] :is(.pb-head, .po-head, .inv-head, .ps-head) { border-bottom: 3px solid var(--pc); padding-bottom: 3mm; margin-bottom: 4mm; }
html[data-pt="modern"] .qts-kop { border-bottom: 3px solid var(--pc); padding-bottom: 3mm; }
html[data-pt="modern"] :is(.pb-code, .ps-code) { background: var(--pc); color: #fff; border-radius: 2mm; letter-spacing: 1px; font-family: inherit; }
html[data-pt="modern"] :is(.pb-title, .po-title, .ap-title, .ps-title) { color: var(--pc); text-decoration: none; letter-spacing: 2.5px; font-family: inherit; }
html[data-pt="modern"] :is(.pb-title, .po-title, .ap-title, .ps-title)::after { content: ""; display: block; width: 22mm; height: 1mm; background: var(--pa); margin: 1.5mm auto 0; border-radius: 1mm; }
html[data-pt="modern"] .ap-rule { border-color: var(--pc); }
html[data-pt="modern"] :is(.pb-items, .po-items, .ap-items, .inv-items, .ps-table, .qts-price, .ps-fields) :is(th, td) { border-color: #c3ccd9; }
html[data-pt="modern"] :is(.pb-items, .po-items, .ap-items, .inv-items, .ps-table, .qts-price) th { background: var(--pc); color: #fff; border-color: var(--pc); font-weight: 600; }
html[data-pt="modern"] :is(.pb-items, .po-items, .ap-items, .inv-items, .ps-table) tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--pc) 5%, #fff); }
html[data-pt="modern"] .ps-fields th { background: color-mix(in srgb, var(--pc) 10%, #fff); color: var(--pc); }
html[data-pt="modern"] :is(.pb-sheet, .ps-sheet) .shade { background: color-mix(in srgb, var(--pc) 12%, #fff); }
html[data-pt="modern"] :is(.pb-appr table, .pp-sig, .ap-sign, .boq-sig, .pb-opts) :is(th, td) { border-color: #c3ccd9; }
html[data-pt="modern"] :is(.pp-sig, .ap-sign, .boq-sig) th { background: color-mix(in srgb, var(--pc) 12%, #fff); color: var(--pc); }
html[data-pt="modern"] :is(.inv-bar, .inv-banner) { background: var(--pc); color: #fff; }
html[data-pt="modern"] .inv-banner { border-radius: 2mm; }
html[data-pt="modern"] .ps-h { border-left-color: var(--pa); color: var(--pc); }
html[data-pt="modern"] :is(.ps-sum tr.g, .ps-meta td.shade) :is(th, td) { background: color-mix(in srgb, var(--pc) 14%, #fff); }
html[data-pt="modern"] .qts-words { background: color-mix(in srgb, var(--pc) 10%, #fff); border-left: 1.2mm solid var(--pc); }
html[data-pt="modern"] .qts-sec h3 { color: var(--pc); }
html[data-pt="modern"] .qts-price td.g { background: color-mix(in srgb, var(--pc) 10%, #fff); }
html[data-pt="modern"] .boq tr.hd th { background: var(--pc); color: #fff; border-color: var(--pc); }
html[data-pt="modern"] .boq tr.grp td { background: color-mix(in srgb, var(--pa) 16%, #fff); color: #000; }
html[data-pt="modern"] .boq tr.subt td { background: color-mix(in srgb, var(--pc) 9%, #fff); color: var(--pc); }
html[data-pt="modern"] .boq tr.gt td { background: var(--pc); color: #fff; }
/* ---------- 2. KORPORAT ---------- */
html[data-pt="corporate"] :is(.pb-sheet, .ps-sheet) { font-family: Calibri, "Segoe UI", Arial, sans-serif; }
html[data-pt="corporate"] :is(.pb-sheet, .ps-sheet)::before { content: ""; display: block; height: 4.5mm; margin: 0 0 4mm; background: linear-gradient(90deg, color-mix(in srgb, var(--pc) 78%, #000) 0 72%, var(--pa) 72% 100%); }
html[data-pt="corporate"] .qts-sheet::before { display: none; }
html[data-pt="corporate"] .qts-kop::before { content: ""; display: block; height: 4mm; margin: 0 0 3mm; background: linear-gradient(90deg, color-mix(in srgb, var(--pc) 78%, #000) 0 72%, var(--pa) 72% 100%); }
html[data-pt="corporate"] :is(.pb-title, .po-title, .ap-title, .ps-title) { font-family: Georgia, "Times New Roman", serif; color: color-mix(in srgb, var(--pc) 78%, #000); text-decoration: none; text-transform: uppercase; letter-spacing: 3px; border-top: .4mm solid var(--pa); border-bottom: .4mm solid var(--pa); padding: 1.2mm 0; margin-left: 30%; margin-right: 30%; }
html[data-pt="corporate"] :is(.pb-code, .ps-code) { background: color-mix(in srgb, var(--pc) 78%, #000); color: #fff; font-family: Georgia, serif; }
html[data-pt="corporate"] :is(.pb-items, .po-items, .ap-items, .inv-items, .ps-table, .qts-price) th { background: color-mix(in srgb, var(--pc) 78%, #000); color: #fff; text-transform: uppercase; letter-spacing: .5px; font-size: .92em; border-color: color-mix(in srgb, var(--pc) 78%, #000); }
html[data-pt="corporate"] :is(.pb-items, .po-items, .ap-items, .inv-items, .ps-table, .qts-price, .ps-fields) td { border-color: #9aa5b5; }
html[data-pt="corporate"] :is(.pb-sheet, .ps-sheet) .shade { background: color-mix(in srgb, var(--pa) 13%, #fff); }
html[data-pt="corporate"] .ps-fields th { background: color-mix(in srgb, var(--pc) 8%, #fff); }
html[data-pt="corporate"] :is(.pp-sig, .ap-sign, .boq-sig) th { background: color-mix(in srgb, var(--pc) 78%, #000); color: #fff; }
html[data-pt="corporate"] :is(.inv-bar, .inv-banner) { background: color-mix(in srgb, var(--pc) 78%, #000); color: #fff; border-left: 2mm solid var(--pa); }
html[data-pt="corporate"] .ps-h { border-left-color: var(--pa); text-transform: uppercase; letter-spacing: .6px; }
html[data-pt="corporate"] :is(.po-items, .ap-items, .inv-items) tr:last-child td, html[data-pt="corporate"] .inv-items tr.tot:last-child td { background: color-mix(in srgb, var(--pa) 12%, #fff); }
html[data-pt="corporate"] .qts-sec h3 { color: color-mix(in srgb, var(--pc) 78%, #000); }
html[data-pt="corporate"] .qts-words { background: color-mix(in srgb, var(--pa) 12%, #fff); }
html[data-pt="corporate"] .boq tr.hd th { background: color-mix(in srgb, var(--pc) 78%, #000); color: #fff; }
html[data-pt="corporate"] .boq tr.grp td { background: color-mix(in srgb, var(--pa) 20%, #fff); }
html[data-pt="corporate"] .boq tr.gt td { background: color-mix(in srgb, var(--pc) 78%, #000); color: #fff; }
/* ---------- 3. MINIMALIS (hemat tinta) ---------- */
html[data-pt="minimal"] :is(.pb-sheet, .ps-sheet), html[data-pt="minimal"] .pb-sheet.portrait.qts-sheet:not(.qts-boq) { font-family: Arial, Helvetica, sans-serif; }
html[data-pt="minimal"] :is(.pb-sheet, .ps-sheet) :is(th, td, div, span, b, tr, .shade, .inv-bar, .inv-banner, .pb-code, .ps-code) { background: transparent !important; }
html[data-pt="minimal"] :is(.pb-sheet, .ps-sheet) :is(th, td, .boq tr td) { color: #000 !important; }
html[data-pt="minimal"] :is(.pb-items, .po-items, .ap-items, .inv-items, .ps-table, .qts-price, .ps-fields, .pb-appr table, .pp-sig, .ap-sign, .boq-sig, .pb-opts, .boq) :is(th, td) { border-color: #9a9a9a; border-width: .5px; }
html[data-pt="minimal"] :is(.pb-items, .po-items, .ap-items, .inv-items, .ps-table, .qts-price, .boq) th { border-bottom: 1.5px solid #000; font-weight: 700; }
html[data-pt="minimal"] :is(.pb-code, .ps-code) { border: 1.2px solid #000; }
html[data-pt="minimal"] :is(.pb-title, .po-title, .ap-title, .ps-title) { color: #000; text-decoration: none; letter-spacing: 3px; font-weight: 700; }
html[data-pt="minimal"] .ap-title, html[data-pt="minimal"] .or { color: #000 !important; }
html[data-pt="minimal"] :is(.inv-bar) { border-bottom: 1px solid #000; color: #000; padding-left: 0; }
html[data-pt="minimal"] .inv-banner { color: #000; border: 1.2px solid #000; }
html[data-pt="minimal"] .ps-head { border-bottom: 1px solid #000; } html[data-pt="minimal"] .ps-h { border-left: 0; padding-left: 0; text-decoration: underline; }
html[data-pt="minimal"] .ps-table tbody tr:nth-child(even) td { background: transparent; }
html[data-pt="minimal"] .qts-words { border: .5px solid #9a9a9a; }
html[data-pt="minimal"] .boq tr.gt td, html[data-pt="minimal"] .boq tr.subt td { border-top: 1.5px solid #000; border-bottom: 1.5px solid #000; }
html[data-pt="minimal"] .doc-wm { opacity: .08; filter: grayscale(1); }
/* ---------- 4. KLASIK FORMAL ---------- */
html[data-pt="classic"] :is(.pb-sheet, .ps-sheet) { font-family: "Times New Roman", Times, "Liberation Serif", serif; }
html[data-pt="classic"] :is(.pb-head, .po-head, .inv-head, .ps-head) { border-bottom: 3px double #000; padding-bottom: 2.5mm; margin-bottom: 4mm; }
html[data-pt="classic"] .qts-kop { border-bottom: 3px double #000; padding-bottom: 2.5mm; }
html[data-pt="classic"] :is(.pb-title, .po-title, .ap-title, .ps-title) { font-family: inherit; color: #000; text-decoration: underline; text-decoration-thickness: 1px; letter-spacing: 1.5px; font-variant: small-caps; font-size: 17pt; }
html[data-pt="classic"] .ap-title, html[data-pt="classic"] .or { color: #000 !important; }
html[data-pt="classic"] :is(.pb-code, .ps-code) { background: transparent; border: 1.5px solid #000; font-family: inherit; }
html[data-pt="classic"] :is(.pb-items, .po-items, .ap-items, .inv-items, .ps-table, .qts-price, .ps-fields) :is(th, td) { border-color: #000; }
html[data-pt="classic"] :is(.pb-items, .po-items, .ap-items, .inv-items, .ps-table, .qts-price) th { background: #e6e6e6; color: #000; font-weight: 700; }
html[data-pt="classic"] .ps-table tbody tr:nth-child(even) td { background: transparent; }
html[data-pt="classic"] .ps-fields th { background: #f0f0f0; }
html[data-pt="classic"] :is(.pb-sheet, .ps-sheet) .shade { background: #ededed; }
html[data-pt="classic"] :is(.inv-bar, .inv-banner) { background: #e6e6e6; color: #000; border: 1px solid #000; }
html[data-pt="classic"] .ps-h { border-left: 0; padding-left: 0; font-variant: small-caps; letter-spacing: .5px; border-bottom: 1px solid #000; }
html[data-pt="classic"] .boq tr.hd th { background: #e6e6e6; color: #000; }
html[data-pt="classic"] .boq tr.grp td { background: #f3f3f3; } html[data-pt="classic"] .boq tr.subt td { background: #fff; color: #000; } html[data-pt="classic"] .boq tr.gt td { background: #e6e6e6; color: #000; }
/* ---------- 5. ELEGAN ---------- */
html[data-pt="elegant"] :is(.pb-sheet, .ps-sheet) { font-family: "Segoe UI", Calibri, Arial, sans-serif; }
html[data-pt="elegant"] :is(.pb-title, .po-title, .ap-title, .ps-title) { font-family: Georgia, Cambria, serif; font-weight: 400; font-style: italic; color: var(--pc); text-decoration: none; letter-spacing: 1px; font-size: 19pt; }
html[data-pt="elegant"] :is(.pb-head, .po-head, .inv-head, .ps-head) { border-bottom: .4mm solid var(--pc); padding-bottom: 2.5mm; margin-bottom: 4mm; box-shadow: 0 1.2mm 0 -0.8mm var(--pa); }
html[data-pt="elegant"] :is(.pb-code, .ps-code) { background: transparent; color: var(--pc); border: .4mm solid var(--pc); border-radius: 10mm; padding: .5mm 5mm; font-family: Georgia, serif; font-style: italic; }
html[data-pt="elegant"] :is(.pb-items, .po-items, .ap-items, .inv-items, .ps-table, .qts-price, .ps-fields) :is(th, td) { border-color: color-mix(in srgb, var(--pc) 35%, #fff); border-left: 0; border-right: 0; }
html[data-pt="elegant"] :is(.pb-items, .po-items, .ap-items, .inv-items, .ps-table, .qts-price) th { background: color-mix(in srgb, var(--pc) 9%, #fff); color: var(--pc); font-weight: 600; border-top: .5mm solid var(--pc); border-bottom: .5mm solid var(--pc); }
html[data-pt="elegant"] .ps-table tbody tr:nth-child(even) td { background: transparent; }
html[data-pt="elegant"] .ps-fields th { background: transparent; color: var(--pc); }
html[data-pt="elegant"] :is(.pb-sheet, .ps-sheet) .shade { background: color-mix(in srgb, var(--pc) 7%, #fff); }
html[data-pt="elegant"] :is(.pp-sig, .ap-sign, .boq-sig) th { background: transparent; color: var(--pc); border-color: color-mix(in srgb, var(--pc) 35%, #fff); }
html[data-pt="elegant"] :is(.inv-bar) { background: transparent; color: var(--pc); border-bottom: .4mm solid var(--pc); padding-left: 0; font-family: Georgia, serif; font-style: italic; font-size: 10pt; }
html[data-pt="elegant"] .inv-banner { background: transparent; color: var(--pc); font-family: Georgia, serif; font-style: italic; font-weight: 400; }
html[data-pt="elegant"] .ps-h { border-left: 0; padding-left: 0; color: var(--pc); font-family: Georgia, serif; font-style: italic; font-weight: 400; font-size: 11pt; }
html[data-pt="elegant"] .qts-sec h3 { color: var(--pc); }
html[data-pt="elegant"] .qts-words { background: transparent; border-top: .4mm solid var(--pc); border-bottom: .4mm solid var(--pc); }
html[data-pt="elegant"] .boq tr.hd th { background: color-mix(in srgb, var(--pc) 10%, #fff); color: var(--pc); }
html[data-pt="elegant"] .boq tr.grp td { background: transparent; color: var(--pc); }
html[data-pt="elegant"] .boq tr.subt td { background: transparent; color: var(--pa); } html[data-pt="elegant"] .boq tr.gt td { background: color-mix(in srgb, var(--pc) 10%, #fff); color: var(--pc); }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .75rem; margin: .6rem 0 1rem; }
.pt-card { border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface-panel); padding: .55rem; cursor: pointer; text-align: left; font: inherit; color: var(--ink-primary); }
.pt-card.on { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15); }
.pt-card .tn { display: block; font-weight: 600; font-size: .8125rem; } .pt-card .tf { display: block; font-size: .7rem; color: var(--ink-muted); line-height: 1.3; }
.ptm { display: grid; gap: 3px; padding: 7px; height: 84px; margin-bottom: .45rem; background: #fff; border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); align-content: start; }
.ptm i { display: block; height: 6px; border-radius: 1px; background: #d4d4d8; }
.ptm .h { height: 9px; width: 55%; background: #52525b; } .ptm .t { height: 6px; width: 40%; margin: 2px auto 3px; background: #27272a; } .ptm .th { height: 8px; background: #d4d4d8; border: 1px solid #27272a; } .ptm .r { border: 1px solid #a1a1aa; background: #fff; }
.ptm-modern .h { background: var(--pc); box-shadow: 0 4px 0 -1px var(--pc); width: 100%; height: 6px; } .ptm-modern .t { background: var(--pc); } .ptm-modern .th { background: var(--pc); border-color: var(--pc); } .ptm-modern .r:nth-child(odd) { background: color-mix(in srgb, var(--pc) 8%, #fff); } .ptm-modern .r { border-color: #cbd5e1; }
.ptm-corporate .h { width: 100%; background: linear-gradient(90deg, color-mix(in srgb, var(--pc) 78%, #000) 72%, var(--pa) 72%); } .ptm-corporate .t { background: color-mix(in srgb, var(--pc) 78%, #000); box-shadow: 0 -3px 0 -1px var(--pa), 0 3px 0 -1px var(--pa); } .ptm-corporate .th { background: color-mix(in srgb, var(--pc) 78%, #000); border-color: transparent; }
.ptm-minimal .h { background: #000; height: 5px; } .ptm-minimal .t { background: #000; } .ptm-minimal .th { background: #fff; border: 0; border-bottom: 2px solid #000; } .ptm-minimal .r { border: 0; border-bottom: 1px solid #bbb; }
.ptm-classic .h { background: #000; box-shadow: 0 4px 0 -2px #000, 0 6px 0 -2px #fff, 0 8px 0 -2px #000; width: 100%; height: 4px; margin-bottom: 4px; } .ptm-classic .th { background: #e5e5e5; border-color: #000; } .ptm-classic .r { border-color: #000; }
.ptm-elegant .h { background: var(--pc); height: 3px; width: 100%; box-shadow: 0 3px 0 -1px var(--pa); } .ptm-elegant .t { background: var(--pc); border-radius: 4px; } .ptm-elegant .th { background: color-mix(in srgb, var(--pc) 10%, #fff); border: 0; border-top: 2px solid var(--pc); border-bottom: 2px solid var(--pc); } .ptm-elegant .r { border: 0; border-bottom: 1px solid color-mix(in srgb, var(--pc) 35%, #fff); }
.grid th.ck, .grid td.ck { width: 36px; text-align: center; padding-left: .5rem; padding-right: .25rem; }
.grid td.ck input, .grid th.ck input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }
.grid td.ck input:disabled { cursor: not-allowed; opacity: .35; }
.bulkbar { display: flex; align-items: center; gap: .6rem; padding: .55rem .85rem; margin-bottom: .6rem; border-radius: var(--radius); background: rgba(var(--primary-rgb), .08); border: 1px solid rgba(var(--primary-rgb), .25); font-weight: 600; font-size: .85rem; }
.bulkbar[hidden] { display: none; } .bulkbar span { margin-right: auto; }

/* ======================= Accounting & Finance ======================= */
.nav-num { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 18px; padding: 0 4px; border-radius: 5px; font-size: .68rem; font-weight: 700; letter-spacing: .3px; background: rgba(var(--primary-rgb), .1); color: var(--primary); flex: none; }
.nav-link.active .nav-num { background: var(--primary); color: #fff; }
.acct-head > div { display: flex; gap: .9rem; align-items: flex-start; }
.acct-no { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-deep, var(--primary))); color: #fff; font-weight: 800; font-size: 1.1rem; box-shadow: 0 6px 16px rgba(var(--primary-rgb), .25); }
.acct-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.acct-tile { position: relative; display: flex; flex-direction: column; gap: .25rem; padding: .9rem 1rem .9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; min-height: 84px; }
.acct-tile:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(var(--primary-rgb), .12); transform: translateY(-1px); text-decoration: none; }
.acct-tile .ix { font-size: .7rem; font-weight: 700; color: var(--primary); letter-spacing: .4px; }
.acct-tile b { font-size: .92rem; line-height: 1.3; } .acct-tile small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.small-tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } .small-tiles .acct-tile { min-height: 0; padding: .6rem .8rem; }
.acct-stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 1rem; }
.acct-wh { margin: .5rem 0 .6rem; font-size: 1rem; }
.acct-bud { padding: .55rem 0; border-bottom: 1px dashed var(--border); } .acct-bud:last-child { border-bottom: 0; } .acct-bud .pbar { margin: .3rem 0; display: block; }
.acct-tbl tr.grp td { background: rgba(var(--primary-rgb), .06); font-weight: 700; }
.acct-tbl tr.tot td { border-top: 1px solid var(--border); font-weight: 600; }
.acct-tbl tr.gt td { background: rgba(var(--primary-rgb), .1); font-weight: 700; }
.acct-tbl tr.sub td { color: var(--muted); font-style: italic; }
.acct-tbl tr.over td { background: rgba(220, 38, 38, .06); }
.acct-tbl tfoot td { font-weight: 700; background: var(--gray-100, #f3f4f6); }
.checklist { list-style: none; padding: 0; margin: 0; } .checklist > li { padding: .55rem 0; border-bottom: 1px solid var(--border); display: block; }
.checklist ul { margin: .3rem 0 0 2rem; }
.chk { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 800; margin-right: .5rem; font-size: .8rem; }
.chk.ok { background: #dcfce7; color: #166534; } .chk.no { background: #fef3c7; color: #92400e; }
.notice { padding: .7rem 1rem; border-radius: var(--radius); background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }
.neg { color: #dc2626; } .pos { color: #15803d; }

/* ---------- Cetakan dokumen accounting (arsip hardcopy) ---------- */
.av-sheet { font-size: 9pt; }
.av-sheet .ps-head { border-bottom: .5mm solid var(--pc); box-shadow: 0 1.1mm 0 -.75mm var(--pa); }
.av-sheet .ps-code { background: var(--pc); color: #fff; border-radius: 1.2mm; font-family: Georgia, "Times New Roman", serif; letter-spacing: 1.5px; font-size: 11pt; padding: .8mm 4mm; }
.av-sheet .ps-meta td.shade { background: color-mix(in srgb, var(--pc) 8%, #fff); min-width: 34mm; }
.av-sheet .ps-title { font-family: Georgia, "Times New Roman", serif; text-decoration: none; letter-spacing: 2px; color: var(--pc); font-size: 15pt; margin: 1mm 0 .5mm; }
.av-sheet .ps-title::after { content: ""; display: block; width: 26mm; height: .7mm; margin: 1.6mm auto 0; background: var(--pa); border-radius: 1mm; }
.av-subtitle { text-align: center; margin: 0 0 4mm; color: #444; font-style: italic; font-size: 9pt; }
.av-info { display: grid; gap: 0; border: .3mm solid color-mix(in srgb, var(--pc) 30%, #fff); border-radius: 1.5mm; overflow: hidden; margin-bottom: 3.5mm; }
.av-info.c2 { grid-template-columns: 1fr 1fr; } .av-info.c1 { grid-template-columns: 1fr; }
.av-info > div { display: grid; grid-template-columns: 34mm 1fr; border-bottom: .2mm solid color-mix(in srgb, var(--pc) 15%, #fff); min-height: 6.5mm; }
.av-info.c2 > div:nth-child(odd):not(.w) { border-right: .2mm solid color-mix(in srgb, var(--pc) 15%, #fff); }
.av-info > div.w { grid-column: 1 / -1; grid-template-columns: 34mm 1fr; }
.av-info span { background: color-mix(in srgb, var(--pc) 6%, #fff); color: color-mix(in srgb, var(--pc) 85%, #000); padding: 1.2mm 2mm; font-size: 8pt; font-weight: 600; }
.av-info b { padding: 1.2mm 2mm; font-weight: 500; overflow-wrap: anywhere; }
.av-amount { display: grid; grid-template-columns: 62mm 1fr; border: .4mm solid var(--pc); border-radius: 1.5mm; overflow: hidden; margin: 0 0 3.5mm; break-inside: avoid; }
.av-amt { background: var(--pc); color: #fff; padding: 2mm 3mm; display: flex; flex-direction: column; justify-content: center; }
.av-amt span { font-size: 7.5pt; text-transform: uppercase; letter-spacing: 1px; opacity: .85; } .av-amt b { font-size: 14pt; font-family: Georgia, serif; } .av-amt small { font-size: 7pt; opacity: .85; }
.av-terb { padding: 2mm 3mm; background: color-mix(in srgb, var(--pa) 10%, #fff); display: flex; flex-direction: column; justify-content: center; }
.av-terb span { font-size: 7.5pt; text-transform: uppercase; letter-spacing: 1px; color: #666; } .av-terb i { font-family: Georgia, serif; font-size: 10pt; }
.av-terbline { margin: 1.5mm 0 3mm; font-size: 8.5pt; } .av-terbline span { color: #666; } .av-terbline i { font-family: Georgia, serif; }
.av-sheet .av-lines { margin-bottom: 3mm; } .av-sheet .av-lines td.cr { padding-left: 7mm; }
.av-sheet .av-lines tr.blank td { height: 7mm; }
.av-ok { color: #15803d; font-weight: 600; margin-left: 2mm; } .av-bad { color: #b91c1c; margin-left: 2mm; }
.av-journal { border: .3mm dashed color-mix(in srgb, var(--pc) 45%, #fff); border-radius: 1.5mm; padding: 1.5mm 2.5mm 2mm; margin: 0 0 3mm; break-inside: avoid; }
.av-jh { font-size: 7.5pt; text-transform: uppercase; letter-spacing: 1px; color: var(--pc); font-weight: 700; margin-bottom: 1mm; }
.av-jt { width: 100%; border-collapse: collapse; font-size: 7.8pt; margin-top: 1mm; } .av-jt th { text-align: left; font-weight: 600; color: #444; border-bottom: .2mm solid #bbb; padding: .4mm 1mm; }
.av-jt td { padding: .3mm 1mm; } .av-jt td.cr { padding-left: 6mm; } .av-jt .r { text-align: right; width: 30mm; }
.av-sum { border-collapse: collapse; font-size: 9pt; margin: 0 0 3mm auto; min-width: 95mm; break-inside: avoid; }
.av-sum caption { text-align: left; font-weight: 700; color: var(--pc); font-size: 8.5pt; padding-bottom: 1mm; }
.av-sum th { text-align: left; font-weight: 500; padding: 1mm 3mm 1mm 2mm; border-bottom: .2mm solid #ccc; } .av-sum td { text-align: right; padding: 1mm 2mm; border-bottom: .2mm solid #ccc; white-space: nowrap; }
.av-sum tr.g th, .av-sum tr.g td { font-weight: 700; background: color-mix(in srgb, var(--pc) 9%, #fff); border-top: .4mm solid var(--pc); border-bottom: .4mm solid var(--pc); }
.av-recon, .av-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; align-items: start; } .av-recon .av-sum, .av-row2 .av-sum { margin: 0; width: 100%; min-width: 0; }
.av-row2 .av-amount { margin: 0; grid-template-columns: 1fr; } .av-row2 .av-info { margin: 0; }
.av-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; margin: 0 0 3mm; } .av-row3 > div { border: .3mm solid color-mix(in srgb, var(--pc) 35%, #fff); border-radius: 1.5mm; padding: 1.8mm 3mm; }
.av-row3 span { display: block; font-size: 7.5pt; color: #666; text-transform: uppercase; letter-spacing: .6px; } .av-row3 b { font-size: 12pt; font-family: Georgia, serif; color: var(--pc); }
.av-diff { text-align: center; padding: 1.5mm; border-radius: 1.5mm; margin: 2mm 0 3mm; } .av-diff.ok { background: #ecfdf3; color: #166534; } .av-diff.bad { background: #fef2f2; color: #991b1b; }
.av-note { margin: 0 0 3mm; } .av-letter { line-height: 1.6; text-align: justify; margin: 0 0 4mm; font-size: 9.5pt; }
.av-proj td { font-style: italic; color: #444; }
.av-pay th, .av-pay td { font-size: 7.6pt; } .av-pay td.ttd { width: 26mm; height: 8mm; vertical-align: bottom; } .av-pay td.ttd span { font-size: 6.5pt; color: #999; }
.av-sign { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 5mm; margin-top: 5mm; text-align: center; break-inside: avoid; }
.av-sign[data-n="1"] { --n: 1; } .av-sign[data-n="2"] { --n: 2; } .av-sign[data-n="3"] { --n: 3; } .av-sign[data-n="4"] { --n: 4; } .av-sign[data-n="5"] { --n: 5; } .av-sign3 { --n: 3; }
.av-sign > div { display: flex; flex-direction: column; align-items: center; border: .25mm solid color-mix(in srgb, var(--pc) 25%, #fff); border-radius: 1.5mm; padding: 1.5mm 1.5mm 1.2mm; }
.av-sign span { font-size: 7.8pt; font-weight: 700; color: var(--pc); text-transform: uppercase; letter-spacing: .6px; }
.av-sign i { display: flex; align-items: center; justify-content: center; height: 19mm; width: 100%; font-style: normal; }
.av-sign i img { max-height: 17mm; max-width: 90%; } .av-sign i .sig-qr svg { width: 16mm; height: 16mm; }
.av-sign b { display: block; width: 88%; border-top: .25mm solid #000; padding-top: .8mm; font-weight: 600; font-size: 8.5pt; }
.av-sign small { font-size: 7pt; color: #555; min-height: 3mm; }
.av-foot { display: grid; grid-template-columns: 15mm 1fr auto; gap: 3mm; align-items: center; margin-top: auto; padding-top: 2mm; border-top: .3mm solid color-mix(in srgb, var(--pc) 35%, #fff); font-size: 7pt; color: #555; break-inside: avoid; }
.av-qr svg { width: 15mm; height: 15mm; display: block; }
.av-arsip { border: .3mm solid var(--pc); border-radius: 1.2mm; padding: 1mm 2.5mm; text-align: center; } .av-arsip span { display: block; font-size: 6.5pt; text-transform: uppercase; letter-spacing: .8px; } .av-arsip b { color: var(--pc); font-size: 8.5pt; }
.ps-sheet > .av-stamp { position: absolute; z-index: 3 !important; top: 49mm; right: 12mm; transform: rotate(-12deg); border: .8mm double currentColor; border-radius: 2mm; padding: .8mm 3.5mm; font: 700 11pt/1.1 Georgia, serif; letter-spacing: 2px; opacity: .55; text-align: center; pointer-events: none; }
.av-stamp small { display: block; font-size: 6.5pt; letter-spacing: .5px; font-family: Arial, sans-serif; }
.av-stamp.ok { color: #15803d; } .av-stamp.bad { color: #dc2626; opacity: .45; font-size: 22pt; top: 90mm; right: 40mm; transform: rotate(-24deg); }
/* slip gaji: 2 per halaman */
.av-slipsheet { padding: 8mm 10mm; }
.av-slips { display: flex; flex-direction: column; }
.av-slip { height: 136mm; box-sizing: border-box; padding: 3mm 2mm 4mm; border-bottom: .4mm dashed #888; display: flex; flex-direction: column; gap: 2mm; break-inside: avoid; position: relative; }
.av-slip:nth-child(2n) { border-bottom: 0; break-after: page; }
.av-slip header { display: flex; justify-content: space-between; align-items: center; border-bottom: .5mm solid var(--pc); padding-bottom: 1.5mm; }
.av-slip .pb-logo { max-height: 11mm; max-width: 45mm; } .av-slip .pb-co { font-size: 10pt; } .av-slip .pb-addr, .av-slip .pb-tag { font-size: 7pt; }
.av-sliphd { text-align: right; } .av-sliphd b { display: block; font: 700 13pt Georgia, serif; color: var(--pc); letter-spacing: 1.5px; } .av-sliphd span { display: block; font-size: 8.5pt; } .av-sliphd small { color: #666; font-size: 7pt; }
.av-slipinfo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2mm; } .av-slipinfo span { display: block; font-size: 7pt; color: #666; text-transform: uppercase; letter-spacing: .5px; } .av-slipinfo b { font-size: 9pt; }
.av-slipcols { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; } .av-slipcols table { border-collapse: collapse; width: 100%; font-size: 8.5pt; }
.av-slipcols th { text-align: left; background: color-mix(in srgb, var(--pc) 9%, #fff); color: var(--pc); padding: 1mm 2mm; border-bottom: .3mm solid var(--pc); }
.av-slipcols td { padding: .8mm 2mm; border-bottom: .2mm solid #ddd; } .av-slipcols tfoot td { font-weight: 700; border-top: .3mm solid #999; } .av-slipcols .r { text-align: right; }
.av-slipnet { display: grid; grid-template-columns: auto auto 1fr; gap: 4mm; align-items: center; background: var(--pc); color: #fff; border-radius: 1.5mm; padding: 2mm 4mm; }
.av-slipnet span { text-transform: uppercase; letter-spacing: 1px; font-size: 8pt; } .av-slipnet b { font: 700 14pt Georgia, serif; } .av-slipnet i { font-size: 8pt; text-align: right; }
.av-slipsig { display: grid; grid-template-columns: 1fr 1fr; gap: 20mm; text-align: center; margin-top: auto; }
.av-slipsig span { font-size: 8pt; } .av-slipsig i { display: block; height: 13mm; } .av-slipsig b { display: block; border-top: .25mm solid #000; padding-top: .6mm; font-size: 8.5pt; margin: 0 8mm; }
.av-slipnote { font-size: 6.5pt; color: #777; text-align: center; }
.av-report .ps-table tr.grp td { font-weight: 700; background: color-mix(in srgb, var(--pc) 7%, #fff); }
.av-report .ps-table tr.tot td { font-weight: 700; border-top: .4mm solid #555; }
.av-report .ps-table tr.gt td { font-weight: 700; background: color-mix(in srgb, var(--pc) 12%, #fff); }
.av-report .ps-table tr.sub td { font-style: italic; }
.av-report .av-sign { margin-top: 8mm; }
@media print {
  .av-sheet { display: flex !important; flex-direction: column; min-height: 272mm; }
  .av-sheet.ps-land { min-height: 186mm; }
  .av-sheet.av-slipsheet { display: block !important; min-height: 0; padding: 0; }
  .av-slip { height: 136mm; }
  .av-report.av-sheet { display: block !important; min-height: 0; }
}
html[data-pt="minimal"] .av-sheet { --pc: #222; --pa: #777; } html[data-pt="minimal"] .av-amt, html[data-pt="minimal"] .av-slipnet { background: transparent !important; color: #000; border-right: .3mm solid #000; }
html[data-pt="classic"] .av-sheet { --pc: #1a1a1a; --pa: #8a6d1f; font-family: "Times New Roman", Times, serif; }
.ps-sheet.ps-land > .av-stamp.ok { top: 48mm; right: auto; left: 22mm; }
.av-slip { height: auto !important; min-height: 0; }
.av-slipsig { margin-top: 4mm; } .av-slipsig i { height: 16mm; }
.nav-sub .nav-link .nav-num { margin-right: .45rem; }
.nav-sub .nav-link.nav-sep { margin-top: .35rem; border-top: 1px solid var(--border); padding-top: .55rem; }
/* invoice: kop dirapatkan agar nama PT & slogan tidak turun ke baris berikut */
.inv-head { grid-template-columns: 1fr 70mm; gap: 4mm; }
.inv-head .pb-kop { gap: 3mm; align-items: center; }
.inv-head .pb-logo { max-height: 16mm; max-width: 30mm; }
.inv-head .pb-co { font-size: 12.5pt; white-space: nowrap; }
.inv-head .pb-tag { font-size: 7.6pt; white-space: nowrap; }
.inv-head .pb-addr { font-size: 6.8pt; }

/* ======================= HRM ======================= */
.hr-pasal { margin: 0 0 2.5mm; break-inside: avoid; } .hr-pasal h4 { text-align: center; margin: 0 0 1mm; font-size: 9.5pt; color: var(--pc); line-height: 1.3; }
.hr-pasal > div { text-align: justify; line-height: 1.55; }
.hr-party { margin: 0 0 3mm 2mm; border-collapse: collapse; } .hr-party td { vertical-align: top; padding: .6mm 1.5mm; line-height: 1.5; }
.hr-sheet-doc .av-lines td.ttd { width: 28mm; height: 8mm; vertical-align: bottom; } .hr-sheet-doc .av-lines td.ttd span { font-size: 6.5pt; color: #999; }
.hr-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.hr-cal > div { border: 1px solid var(--border); border-radius: 6px; padding: 4px; min-height: 64px; font-size: .75rem; display: flex; flex-direction: column; gap: 2px; }
.hr-cal > div.off { background: rgba(220, 38, 38, .06); } .hr-cal b { font-size: .8rem; }
.hr-cal span { background: rgba(var(--primary-rgb), .12); border-radius: 4px; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-cal span.t-sick { background: #fee2e2; } .hr-cal span.t-permission { background: #fef3c7; }
.org-wrap { overflow-x: auto; padding: 1rem 0; margin-bottom: 1rem; }
.org, .org ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; position: relative; }
.org ul { padding-top: 18px; }
.org li { position: relative; padding: 18px 6px 0; display: flex; flex-direction: column; align-items: center; }
.org li::before, .org li::after { content: ""; position: absolute; top: 0; right: 50%; width: 50%; height: 18px; border-top: 1.5px solid var(--border); }
.org li::after { right: auto; left: 50%; border-left: 1.5px solid var(--border); }
.org li:only-child::before, .org li:only-child::after { display: none; } .org li:only-child { padding-top: 0; }
.org li:first-child::before, .org li:last-child::after { border: 0 none; }
.org li:last-child::before { border-right: 1.5px solid var(--border); border-radius: 0 6px 0 0; } .org li:first-child::after { border-radius: 6px 0 0 0; }
.org ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 18px; border-left: 1.5px solid var(--border); }
.org > li { padding-top: 0; } .org > li::before, .org > li::after { display: none; }
.org-card { border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: 8px; background: var(--card); padding: .45rem .7rem; min-width: 130px; max-width: 180px; text-align: center; display: flex; flex-direction: column; gap: 1px; box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.05)); }
.org-card b { font-size: .82rem; } .org-card span { font-size: .74rem; color: var(--muted); } .org-card small { font-size: .68rem; color: var(--primary); }
.hr-sheet td { vertical-align: middle; } .hr-sheet select, .hr-sheet input { min-width: 0; }
@media print { body.print-mode .org-wrap, .org-wrap { overflow: visible; } }
.av-pre { white-space: pre-wrap; font-weight: 400; background: none; padding: 0; }
/* ---- multi-bahasa ---- */
.menu-lang{display:flex;flex-direction:column;gap:6px;padding:8px 14px}
.menu-lang>span{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted,#6b7280)}
.menu-lang>span svg{width:15px;height:15px}
.lang-sel{height:32px;padding:4px 8px;font-size:13px;width:100%}
.lg-card{position:relative}
.lg-lang{position:absolute;top:14px;right:14px;z-index:3}
.lg-lang .lang-sel{width:auto;min-width:150px;height:30px;font-size:12px;border-radius:8px}
.sr-roles{display:flex;flex-wrap:wrap;gap:4px 12px;margin:6px 0}
.sr-box .fld{margin:6px 0}
.mfa-setup{max-width:460px}
.mfa-qr{width:200px;margin:10px 0;background:#fff;padding:8px;border-radius:8px}
.mfa-qr svg{width:100%;height:auto;display:block}
.mfa-codes{font-family:ui-monospace,monospace;font-size:15px;line-height:1.7;background:var(--bg-soft,#f4f6fa);padding:10px 14px;border-radius:8px}
.warn-panel{border-left:3px solid #f59e0b}
.tag-warn{background:#fef3c7;color:#92400e}
/* ---- pencarian menu ---- */
.sb-search { position: sticky; top: -.75rem; z-index: 2; margin: -.75rem 0 .5rem; padding: .75rem .75rem .5rem; background: inherit; display: flex; align-items: center; }
.admin-sidebar .sb-search { background: var(--surface-panel); }
html[data-sidebar="dark"] .sb-search, html[data-sidebar="navy"] .sb-search, html[data-sidebar="brand"] .sb-search { background: var(--sb-bg); }
.sb-search .ico-l { position: absolute; left: 1.4rem; width: 15px; height: 15px; color: var(--ink-muted); pointer-events: none; }
.sb-search input { width: 100%; height: 34px; border: 1px solid var(--border); background: var(--surface-sunken); border-radius: var(--radius); padding: 0 3.6rem 0 2.1rem; font: inherit; font-size: .8125rem; color: var(--ink-primary); }
.sb-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15); background: var(--surface-panel); }
.sb-search input::-webkit-search-cancel-button { display: none; }
.sb-search kbd, .cmdk kbd { position: absolute; right: 1.25rem; font: 600 .625rem/1 ui-monospace, monospace; padding: 3px 5px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; color: var(--ink-muted); background: var(--surface-panel); }
html[data-sidebar="dark"] .sb-search input, html[data-sidebar="navy"] .sb-search input, html[data-sidebar="brand"] .sb-search input { background: var(--sb-hover); border-color: var(--sb-line); color: var(--sb-ink); }
.sr-hide { display: none !important; }
#sbnav .searching .nav-section, .sidebar-nav.searching .nav-section { display: none; }
.menu-empty { padding: .5rem 1.5rem; font-size: .8125rem; color: var(--ink-muted); }
.cmdk-wrap { padding-top: 12vh; }
.cmdk { max-width: 600px; overflow: hidden; }
.cmdk-in { position: relative; border-bottom: 1px solid var(--border); }
.cmdk-in input { width: 100%; border: 0; padding: 1rem 4rem 1rem 1.25rem; font: inherit; font-size: 1rem; background: transparent; color: var(--ink-primary); }
.cmdk-in input:focus { outline: none; }
.cmdk-in kbd { top: 50%; transform: translateY(-50%); }
.cmdk-list { list-style: none; margin: 0; padding: .375rem; max-height: 52vh; overflow-y: auto; }
.cmdk-list li { display: flex; align-items: baseline; gap: .6rem; padding: .55rem .75rem; border-radius: var(--radius); cursor: pointer; }
.cmdk-list li b { font-weight: 500; }
.cmdk-list li span { font-size: .75rem; color: var(--ink-muted); }
.cmdk-list li em { margin-left: auto; font-style: normal; font-size: .6875rem; color: var(--ink-muted); }
.cmdk-list li.on, .cmdk-list li:hover { background: var(--surface-hover); }
.cmdk-list li.on b { color: var(--primary); }
.cmdk-list .cmdk-empty { color: var(--ink-muted); cursor: default; }
.cmdk-foot { display: flex; gap: 1rem; padding: .5rem 1rem; border-top: 1px solid var(--border); }
.cmdk-in input::-webkit-search-cancel-button { display: none; }
/* sakelar on/off */
.sw { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; cursor: pointer; }
.sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.sw span { position: absolute; inset: 0; background: var(--border-strong, #cbd5e1); border-radius: 24px; transition: background .2s; }
.sw span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.sw input:checked + span { background: var(--success, #16a34a); }
.sw input:checked + span::before { transform: translateX(18px); }
.sw input:focus-visible + span { box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .3); }
.sw input:disabled + span { opacity: .6; cursor: not-allowed; }
.mfa-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.mfa-row p { margin: .25rem 0 0; }
.panel-fit { align-self: start; }
/* alur tanda tangan berjenjang */
.sigflow { list-style: none; margin: 0; padding: 0; position: relative; }
.sigflow .sigrow { position: relative; display: flex; align-items: center; gap: .75rem; padding-left: 0; }
.sigflow .sigrow > div { flex: 1; min-width: 0; }
.sigstep { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; border: 2px solid var(--border); color: var(--ink-muted); background: var(--surface-panel); position: relative; z-index: 1; }
.sigflow .sigrow:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: calc(50% + 15px); height: calc(100% - 22px); border-left: 2px dashed var(--border); }
.sig-done .sigstep { background: var(--success, #16a34a); border-color: var(--success, #16a34a); color: #fff; }
.sig-ready .sigstep { border-color: var(--primary); color: var(--primary); }
.sig-wait { opacity: .75; }
.sig-paper .sigstep { border-style: dashed; }
.sr-ord { width: 64px; }
/* role kustom */
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
.linkbtn:hover { text-decoration: underline; }
.rl-check td.c, .rl-check th { text-align: center; }
.rl-check td:first-child, .rl-check th:first-child { text-align: left; }
.rl-check input[type=checkbox] { width: 17px; height: 17px; cursor: pointer; }
.rl-quick { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .6rem 0; }
.rl-flags { display: grid; gap: .3rem; margin: .5rem 0; }
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-grid2 .wide { grid-column: 1 / -1; }
.modal footer .spacer { flex: 1; }
@media (max-width: 640px) { .form-grid2 { grid-template-columns: 1fr; } }
/* ---- QR verifikasi di semua cetakan ---- */
.ps-qr { display: flex; align-items: center; gap: 2.5mm; }
.ps-qr .qr { width: 19mm; height: 19mm; flex: none; }
.ps-qr span { font-size: 7pt; line-height: 1.35; color: #444; max-width: 34mm; }
.ps-qr span b { display: block; color: #000; font-size: 7.5pt; }
.ps-foot.has-qr { align-items: center; gap: 4mm; }
.ps-foot.has-qr > span:first-of-type { flex: 1; }
.pb-sheet { position: relative; }
.doc-qrstamp { position: absolute !important; left: 12mm; right: auto; bottom: 5mm; width: max-content; max-width: 60mm; box-sizing: border-box; display: flex; align-items: center; gap: 2mm; background: #fff; padding: 1.2mm; border: .2mm solid #ccc; border-radius: 1.5mm; z-index: 2; }
.doc-qrstamp .qr { width: 17mm; height: 17mm; display: block; }
.doc-qrstamp span { font: 6.5pt/1.3 Arial, Helvetica, sans-serif; color: #444; max-width: 22mm; }
.doc-qrstamp span b { display: block; color: #000; font-size: 7pt; word-break: break-all; }
.av-slipqr { flex: none; margin-left: 3mm; }
.av-slipqr .qr { width: 15mm; height: 15mm; display: block; }
.org-qr { margin-bottom: 4mm; }
.rep-kop .ps-qr { margin-top: 3mm; justify-content: flex-end; }
.qts-sheet .doc-qrstamp { left: auto; right: 13mm; }
/* QTS: sel abu-abu di baris Total diganti putih bersih pada template bertema */
html[data-pt] .qts-price tfoot td.g { background: #fff !important; border-left: 0; border-right: 0; border-bottom: 0; }
html[data-pt] .qts-price tfoot td.g:first-child { border-left: 0; }
html[data-pt] .qts-price tfoot tr.tot td.g { border-top: 1px solid currentColor; }
.sig-esign { font: italic 8pt/1.3 Arial, sans-serif; color: #1f6f3f; padding: 2mm 0 1mm; }
/* pengaturan warna kop */
.kopc-row { display: flex; gap: .5rem; align-items: center; }
.kopc-row select { flex: 1; min-width: 0; width: 100%; }
.kopc-row { min-width: 0; }
.kopc-row input[type=color] { width: 44px; height: 34px; padding: 2px; flex: none; }
.kop-prev-wrap { grid-column: 1 / -1; }
.kop-prev { display: flex; flex-direction: column; gap: 2px; padding: .9rem 1.1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.kop-prev .pb-co { font-size: 1.35rem; } .kop-prev .pb-tag { font-size: .9rem; }

/* ===== v1.11.0: kotak masuk tanda tangan, absen lapangan, notifikasi & integrasi ===== */
.ib-tools { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.ib-tools .inp { flex: 1 1 220px; max-width: 360px; }
.ab-wrap { max-width: 640px; }
.ab-gps { display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border-radius: var(--radius); background: var(--plain-bg); color: var(--plain-fg); font-size: .875rem; }
.ab-gps.good { background: var(--good-bg); color: var(--good-fg); } .ab-gps.warn { background: var(--warn-bg); color: var(--warn-fg); } .ab-gps.bad { background: var(--bad-bg); color: var(--bad-fg); }
.ab-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; animation: abpulse 1.4s ease-in-out infinite; }
.ab-gps.good .ab-dot, .ab-gps.bad .ab-dot { animation: none; }
@keyframes abpulse { 50% { opacity: .25; } }
.warn-txt { color: var(--warn-fg); }
.ab-wrap .seg { margin: 0 0 1rem; display: flex; } .ab-wrap .seg .seg-btn { flex: 1; height: 40px; }
.ab-me .ab-who { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.ab-today { margin: .35rem 0 1rem; }
.ab-shot { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin: .5rem 0; }
.ab-prev { width: 100%; max-width: 360px; border-radius: var(--radius); border: 1px solid var(--border); }
.ab-ph { width: 100%; max-width: 360px; aspect-ratio: 4/3; display: grid; place-content: center; justify-items: center; gap: .35rem; border: 2px dashed var(--border-strong); border-radius: var(--radius); color: var(--ink-secondary); }
.ab-ph svg { width: 36px; height: 36px; }
.ab-shot label.btn { cursor: pointer; }
.ab-go { width: 100%; height: 52px; font-size: 1.05rem; margin-top: .5rem; }
.ab-done { color: var(--good-fg); font-weight: 600; text-align: center; padding: 1rem 0; }
.ab-list { margin-top: .75rem; display: flex; flex-direction: column; }
.ab-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.ab-row .btn { min-width: 76px; }
.ab-sheet-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); display: flex; align-items: flex-end; justify-content: center; z-index: 60; }
.ab-sheet { background: var(--surface-panel); width: 100%; max-width: 520px; border-radius: 14px 14px 0 0; padding: 1rem 1rem 1.25rem; max-height: 92vh; overflow: auto; }
.ab-sheet h3 { margin: 0 0 .5rem; }
@media (min-width: 700px) { .ab-sheet-bg { align-items: center; } .ab-sheet { border-radius: 14px; } }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 1rem; align-items: start; margin-bottom: 1rem; }
.ig-grid .panel { margin: 0; }
.ig-grid .check { display: block; margin: .35rem 0 .6rem; line-height: 1.45; }
.ig-grid .check input { margin: 0 .4rem 0 0; vertical-align: -2px; }
.ig-grid .grid-2e { margin-bottom: 0; } .ig-grid .grid-2e > *, .ig-grid .fld .inp { min-width: 0; width: 100%; box-sizing: border-box; }
.ab-wrap > .panel, .ab-wrap #abbody > .panel { margin-bottom: 1rem; }
.ig-roles { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin: .25rem 0 .5rem; }
.ig-roles .check { margin: 0; }
.ig-stat { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; margin: .5rem 0; }
.ig-test { display: flex; gap: .5rem; margin-top: .5rem; } .ig-test .inp { flex: 1; }
.fld .check.small { margin-top: .3rem; font-weight: 400; }
@media (max-width: 520px) { .ig-grid { grid-template-columns: 1fr; } .ig-test { flex-direction: column; } }

/* ===== v1.12.0: SPB Surat Pengantar Barang & SPG Surat Pengadaan Barang ===== */
.pb-sheet.sj-sheet, .pb-sheet.sg-sheet { font-size: 9.5pt; line-height: 1.35; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sj-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 6mm; }
.sj-head .pb-kop { flex: 1; min-width: 0; }
.sj-tb { text-align: right; flex: none; }
.sj-title { white-space: nowrap; font-size: 13.5pt; font-weight: 800; letter-spacing: .6px; color: var(--pc, #1f4e9a); line-height: 1.1; }
.sj-en { font-size: 8.5pt; font-style: italic; color: #666; margin-bottom: 2mm; }
.sj-no { margin-left: auto; border-collapse: collapse; font-size: 9pt; }
.sj-no td { padding: .4mm 0 .4mm 3mm; text-align: left; } .sj-no td:first-child { color: #555; }
.sj-rule { height: 1.4mm; margin: 3mm 0 4mm; background: linear-gradient(90deg, var(--pc, #1f4e9a) 0 70%, var(--pa, #e8541c) 70% 100%); border-radius: .7mm; }
.sj-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
.sj-box { border: .3mm solid color-mix(in srgb, var(--pc, #1f4e9a) 45%, #fff); border-radius: 1.5mm; padding: 2.5mm 3mm; }
.sj-bh { font-size: 7.5pt; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--pc, #1f4e9a); margin-bottom: 1mm; }
.sj-to { font-weight: 700; font-size: 10.5pt; }
.sj-attn { margin-top: 1mm; }
.sj-info { border-collapse: collapse; width: 100%; } .sj-info td { padding: .3mm 0; vertical-align: top; } .sj-info td:first-child { width: 27mm; color: #555; }
.sj-intro { margin: 4mm 0 2mm; }
.sj-items, .sg-items { width: 100%; border-collapse: collapse; }
.sj-items th, .sg-items th { background: var(--pc, #1f4e9a); color: #fff; font-weight: 700; font-size: 8.5pt; padding: 1.6mm 1.5mm; border: .3mm solid var(--pc, #1f4e9a); text-align: center; }
.sj-items td, .sg-items td { border: .3mm solid #b9c2cf; padding: 1.3mm 1.5mm; vertical-align: top; }
.sj-items tbody tr:nth-child(even) td, .sg-items tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--pc, #1f4e9a) 6%, #fff); }
.sj-items .c1, .sg-items .c1 { width: 9mm; } .sj-items .c3 { width: 16mm; } .sj-items .c4 { width: 18mm; } .sj-items .c5 { width: 26mm; } .sj-items .c6 { width: 38mm; }
.sj-blank td { height: 6.5mm; }
.sj-items tfoot td { border: 0; border-top: .4mm solid var(--pc, #1f4e9a); padding-top: 1.2mm; font-size: 8.5pt; color: #444; }
.sj-note { margin-top: 2.5mm; padding: 2mm 3mm; background: color-mix(in srgb, var(--pa, #e8541c) 8%, #fff); border-left: 1mm solid var(--pa, #e8541c); }
.sj-stmt { margin: 3mm 0 3mm; font-size: 8.5pt; font-style: italic; color: #444; }
.sj-sign { width: 100%; border-collapse: collapse; }
.sj-sign tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 3mm; }
.sj-sign td { display: block; border: .3mm solid #b9c2cf; border-radius: 1.5mm; padding: 2mm; text-align: center; vertical-align: top; }
.sj-sl { font-weight: 700; color: var(--pc, #1f4e9a); }
.sj-sa { height: 22mm; display: flex; align-items: center; justify-content: center; }
.sj-sa .pb-sigimg { max-height: 21mm; max-width: 100%; }
.sj-stamp { font-size: 7pt; color: #aaa; border: .3mm dashed #ccc; border-radius: 50%; padding: 4mm 3mm; }
.sj-sn { border-bottom: .3mm solid #333; margin: 0 4mm; font-weight: 700; min-height: 4.5mm; }
.sj-sx { font-size: 8pt; color: #555; margin-top: .8mm; }
.sj-sd { font-size: 8pt; color: #555; margin-top: 1.5mm; text-align: left; padding-left: 4mm; }
.sj-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 5mm; gap: 6mm; }
.sj-qr { display: flex; align-items: center; gap: 2mm; } .sj-qr .qr { width: 17mm; height: 17mm; display: block; } .sj-qr span { font-size: 7pt; color: #555; max-width: 30mm; }
.sj-copies { font-size: 7.5pt; color: #555; }
/* SPG */
.sg-head .pb-kop { justify-content: flex-start; }
.sg-rule { height: .8mm; background: var(--pc, #1f4e9a); margin: 3mm 0 .6mm; } .sg-rule::after { content: ""; display: block; height: .3mm; background: var(--pa, #e8541c); margin-top: 1mm; }
.sg-top { display: flex; justify-content: space-between; align-items: flex-start; margin: 5mm 0 4mm; }
.sg-meta { border-collapse: collapse; } .sg-meta td { padding: .3mm 0; vertical-align: top; } .sg-meta td:first-child { width: 22mm; }
.sg-to { margin-bottom: 4mm; }
.pb-sheet.sg-sheet p { margin: 0 0 2.5mm; }
.sg-items { margin: 1mm 0 2mm; }
.sg-items .c3 { width: 34mm; } .sg-items .c4 { width: 13mm; } .sg-items .c5 { width: 16mm; } .sg-items .c6 { width: 27mm; } .sg-items .c7 { width: 30mm; }
.sg-items tfoot td { border: .3mm solid #b9c2cf; padding: 1.3mm 1.5mm; }
.sg-items tfoot td.nb { border: 0; background: transparent !important; }
.sg-items tfoot tr.tot td:not(.nb) { background: color-mix(in srgb, var(--pc, #1f4e9a) 14%, #fff); border-color: var(--pc, #1f4e9a); }
.sg-words { margin-bottom: 3mm; }
.sg-terms table { border-collapse: collapse; margin: 1mm 0 2mm; } .sg-terms td { padding: .4mm 1.5mm .4mm 0; vertical-align: top; } .sg-terms td.n { width: 5mm; } .sg-terms td.t { width: 42mm; }
.sg-terms ul, .sg-notes ul { margin: 0; padding-left: 5mm; }
.sg-notes { margin-bottom: 3mm; }
.sg-sign { display: flex; justify-content: flex-end; gap: 12mm; margin-top: 5mm; text-align: center; }
.sg-sign > div { min-width: 55mm; }
.sg-sa { height: 22mm; display: flex; align-items: center; justify-content: center; } .sg-sa .pb-sigimg { max-height: 21mm; }
.sg-sn { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
html[data-pt="minimal"] :is(.sj-items, .sg-items) th { background: transparent !important; color: #000 !important; border-color: #000; }
html[data-pt="minimal"] :is(.sj-rule, .sg-rule) { background: #000; } html[data-pt="minimal"] .sg-rule::after { background: #000; }
html[data-pt="minimal"] :is(.sj-items, .sg-items) td { background: transparent !important; }
html[data-pt="minimal"] :is(.sj-title, .sj-bh, .sj-sl) { color: #000; }
.sg-terms td ul { display: inline-block; vertical-align: top; margin: 0; padding-left: 4.5mm; }
