:root {
  --brand: #0b5394;
  --brand-2: #e8f0fa;
  --ink: #1f2933;
  --muted: #6b7785;
  --line: #d9dee5;
}
body { background: #f4f6f9; color: var(--ink); font-size: .94rem; }
.navbar-ahsp { background: var(--brand); }
.navbar-ahsp .navbar-brand { font-weight: 700; letter-spacing: .3px; }
.navbar-ahsp .nav-link { color: rgba(255,255,255,.85); }
.navbar-ahsp .nav-link.active, .navbar-ahsp .nav-link:hover { color: #fff; }
.navbar-ahsp .nav-link.active { border-bottom: 2px solid #ffd966; }
main.container-xl { padding-top: 1.25rem; padding-bottom: 3rem; }
.page-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.page-head h1 { font-size: 1.35rem; margin: 0; font-weight: 700; }
.card { border-color: var(--line); }
.card-header { background: #fff; font-weight: 600; }
.table { --bs-table-bg: #fff; }
.table thead th { background: var(--brand-2); font-weight: 600; white-space: nowrap; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tr.sub td { background: #f6f7f9; font-weight: 600; }
.table tr.grp td { background: #fbfcfe; font-weight: 700; color: var(--brand); }
.table tr.total td { background: #fff8e1; font-weight: 700; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: .5rem; padding: 1rem; height: 100%; }
.stat .n { font-size: 1.6rem; font-weight: 700; color: var(--brand); }
.stat .l { color: var(--muted); font-size: .85rem; }
.badge-upah { background: #2e7d32; }
.badge-bahan { background: #6d4c41; }
.badge-alat { background: #1565c0; }
.input-num { text-align: right; max-width: 9rem; }
.input-koef { text-align: right; max-width: 8rem; }
.form-control-sm.inline { min-width: 5rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.note { font-size: .82rem; color: var(--muted); }
.warn-box { background: #fff4e5; border: 1px solid #ffcc80; border-radius: .5rem; padding: .6rem .9rem; font-size: .88rem; }
.table-wrap { overflow-x: auto; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 380px; }

/* ---------- cetak ---------- */
.print-page { background: #fff; padding: 1.5rem; max-width: 1000px; margin: 0 auto; }
.print-page h2 { font-size: 1.1rem; text-align: center; font-weight: 700; margin-bottom: .25rem; }
.print-page .sub { text-align: center; margin-bottom: 1rem; }
.print-page table { width: 100%; border-collapse: collapse; font-size: .82rem; margin-bottom: 1rem; }
.print-page th, .print-page td { border: 1px solid #555; padding: 3px 6px; }
.print-page th { background: #e9eef5; text-align: center; }
.print-page td.num { text-align: right; white-space: nowrap; }
.print-page tr.sub td, .print-page tr.total td { font-weight: 700; background: #f3f3f3; }
.print-page tr.grp td { font-weight: 700; }
.print-page .info td { border: none; padding: 1px 6px; }
.print-page .blok { page-break-inside: avoid; margin-bottom: 1.25rem; }
@media print {
  body { background: #fff; font-size: 10pt; }
  .no-print { display: none !important; }
  .print-page { padding: 0; max-width: none; }
  .print-page .page-break { page-break-before: always; }
  @page { size: A4; margin: 14mm 12mm; }
}
