/* Sistem Risk Register · Perumda Air Minum Duasudara Bitung */
:root {
  color-scheme: light;
  --navy: #0b4f7c;
  --navy-dark: #083a5c;
  --sky: #4fc3f7;
  --bg: #f3f6f9;
  --surface: #ffffff;
  --border: #dde4ea;
  --text: #1c2a36;
  --muted: #64748b;
  --primary: #0b6aa8;
  --primary-hover: #095a8f;
  --danger: #b42318;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 42, 67, .06), 0 2px 8px rgba(16, 42, 67, .05);

  /* Level risiko (selaras dengan Excel) */
  --lv-rendah: #27ae60;
  --lv-sedang: #f39c12;
  --lv-tinggi: #e67e22;
  --lv-st: #c0392b;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
code { font-family: Consolas, "Cascadia Mono", monospace; background: #eef2f6; padding: .1em .35em; border-radius: 4px; }
code.big { font-size: 1.15em; }
.muted { color: var(--muted); }
.small, small { font-size: .85em; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.text-danger { color: var(--danger); font-weight: 600; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
main.container { padding-top: 20px; padding-bottom: 32px; }
.narrow { max-width: 560px; }

/* ---------------- top bar */
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; flex-shrink: 0; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand small { color: #b9d7ec; font-size: .72rem; }
.mainnav { display: flex; align-items: center; gap: 2px; flex: 1; flex-wrap: wrap; }
.mainnav > a { color: #dbeaf5; padding: 8px 10px; border-radius: 8px; font-size: .9rem; text-decoration: none; }
.mainnav > a:hover, .mainnav > a.active { background: rgba(255,255,255,.12); color: #fff; }
.usermenu { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.usermenu .who { display: flex; flex-direction: column; text-align: right; line-height: 1.2; padding-right: 8px; font-size: .82rem; }
.usermenu .who small { color: #b9d7ec; font-size: .72rem; }
.usermenu a, .linklike { color: #dbeaf5; font-size: .85rem; padding: 8px 10px; border-radius: 8px; background: none; border: 0; cursor: pointer; font: inherit; }
.usermenu a:hover, .linklike:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.usermenu form { margin: 0; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-dark); flex-direction: column; align-items: stretch; padding: 8px 12px 14px; gap: 2px; }
  .mainnav.open { display: flex; }
  .mainnav > a { padding: 12px; }
  .usermenu { margin: 8px 0 0; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.15); flex-wrap: wrap; }
  .usermenu .who { text-align: left; width: 100%; padding: 0 12px 6px; }
}

/* ---------------- buttons & forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: .9rem;
  cursor: pointer; text-decoration: none !important; min-height: 40px;
}
.btn:hover { background: #f1f5f9; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--primary); }
.btn-danger-ghost { background: transparent; border-color: #f3c3be; color: var(--danger); }
.btn-sm { padding: 5px 10px; min-height: 32px; font-size: .82rem; }
.btn-block { width: 100%; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; margin: 0; }

label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 12px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 9px 11px;
  border: 1px solid #c9d3dc; border-radius: 8px; background: #fff; color: var(--text);
  font: inherit; font-weight: 400; font-size: 16px; /* 16px mencegah zoom otomatis di iOS */
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sky); outline-offset: 0; border-color: var(--primary); }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
label.check input { width: auto; margin: 0; }
.req { color: var(--danger); }
fieldset { border: 0; border-top: 1px solid var(--border); margin: 0 0 8px; padding: 14px 0 0; }
fieldset:first-of-type { border-top: 0; padding-top: 0; }
legend { font-weight: 700; color: var(--navy); padding: 0; margin-bottom: 10px; font-size: 1rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding-top: 8px; }
.hint { color: var(--muted); font-size: .85rem; }
.skor-preview { background: #f1f5f9; border-radius: 8px; padding: 10px 12px; font-size: .95rem; margin-bottom: 8px; }
.skor-preview.warn { background: #fdecea; color: var(--danger); }
@media (max-width: 640px) {
  .row-2 { grid-template-columns: 1fr; }
  .form-actions .btn { flex: 1 1 100%; }
}

/* ---------------- cards & layout */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card-accent { border-left: 4px solid var(--primary); }
.card.empty { text-align: center; color: var(--muted); padding: 32px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head p { margin: 0; }
.page-head .lead { font-size: 1.05rem; margin-top: 4px; max-width: 760px; }
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 4px !important; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.grid-2 > * { min-width: 0; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 { margin-bottom: 16px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.count { display: inline-block; background: #e6eef5; color: var(--navy); border-radius: 999px; padding: 0 9px; font-size: .8rem; vertical-align: middle; }

.alert { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; border: 1px solid; font-size: .92rem; }
.alert-success { background: #ecfdf3; border-color: #a6e9c1; color: #11633a; }
.alert-error { background: #fef1f0; border-color: #f6c2bd; color: #912018; }
.alert-info { background: #eef6fd; border-color: #b8dbf5; color: #0b4f7c; }
.alert-warning { background: #fff8e6; border-color: #f5d98a; color: #7a5200; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stat span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.stat strong { font-size: 1.9rem; line-height: 1.2; color: var(--navy); }
.stat small { color: var(--muted); }
.stat-alert strong { color: var(--danger); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat strong { font-size: 1.5rem; } }

/* ---------------- badges */
.lv, .st, .mt, .ev, .tag-danger { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.lv-rendah { background: #d8f3e3; color: #17663a; }
.lv-sedang { background: #fdeccc; color: #875200; }
.lv-tinggi { background: #fbdcc2; color: #9a3f0a; }
.lv-sangat-tinggi { background: var(--lv-st); color: #fff; }
.st-draft { background: #eef2f6; color: #475569; }
.st-diajukan { background: #e3effc; color: #0b5394; }
.st-revisi { background: #fff1d6; color: #8a5a00; }
.st-disetujui { background: #dcf5e6; color: #146c3c; }
.mt-belum-dimulai { background: #eef2f6; color: #475569; }
.mt-dalam-proses { background: #e3effc; color: #0b5394; }
.mt-selesai { background: #dcf5e6; color: #146c3c; }
.mt-tertunda { background: #fdeceb; color: #a12a1e; }
.ev-sesuai { background: #dcf5e6; color: #146c3c; }
.ev-belum_berjalan { background: #fdeceb; color: #a12a1e; }
.ev-tidak_efektif { background: #fdeccc; color: #875200; }
.ev-tindak_lanjut { background: #fbdcc2; color: #9a3f0a; }
.tag-danger { background: #fdeceb; color: #a12a1e; }

/* ---------------- tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.card .table-wrap { margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .9rem; }
.table-wrap > .table { border: 1px solid var(--border); border-radius: var(--radius); }
.card .table-wrap > .table { border: 0; }
.table th { background: #f5f8fb; color: #334155; font-size: .78rem; text-transform: uppercase; letter-spacing: .02em; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid #edf1f5; vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot th { background: var(--navy); color: #fff; font-size: .85rem; }
.table .num { text-align: right; white-space: nowrap; }
.table.compact td, .table.compact th { padding: 7px 10px; }
.table td.wrap { min-width: 220px; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #f7fafc; }
tr.row-off td { opacity: .55; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Tabel menjadi kartu di layar HP */
@media (max-width: 760px) {
  .table-wrap { overflow: visible; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table-wrap > .table { border: 0; background: transparent; }
  .table tbody tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; padding: 6px 0; box-shadow: var(--shadow); }
  .card .table tbody tr { box-shadow: none; }
  /* Label di kolom kiri (absolut), isi mengalir normal di kanan */
  .table td { border: 0; padding: 5px 14px 5px calc(14px + 36%); position: relative; text-align: left; min-height: 30px; }
  .table td[data-label]::before { content: attr(data-label); position: absolute; left: 14px; top: 7px; width: 33%; color: var(--muted); font-size: .78rem; font-weight: 600; line-height: 1.3; }
  .table td:not([data-label]) { padding-left: 14px; }
  .table td.wrap { padding-left: 14px; min-width: 0; }
  .table td.wrap::before { position: static; display: block; width: auto; margin-bottom: 2px; }
  .table .num { text-align: left; }
  .table td .progress { max-width: none; }
  .table tfoot { display: block; }
  .table tfoot tr { display: flex; flex-wrap: wrap; gap: 4px 12px; background: var(--navy); border-radius: var(--radius); padding: 10px 14px; }
  .table tfoot th { background: none; padding: 0; }
}

/* ---------------- detail */
.dl { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; margin: 0; }
.dl dt { color: var(--muted); font-size: .85rem; font-weight: 600; }
.dl dd { margin: 0; }
@media (max-width: 640px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 10px; } }
.score-pair { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 0; }
.score-box { border-radius: 12px; padding: 12px 18px; text-align: center; min-width: 120px; display: flex; flex-direction: column; }
.score-box small { font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; }
.score-box strong { font-size: 2.2rem; line-height: 1.1; }
.score-box span { font-size: .82rem; }
.score-box em { font-style: normal; font-weight: 700; }
.score-arrow { font-size: 1.6rem; color: var(--muted); }
.progress { height: 8px; background: #e7edf3; border-radius: 99px; overflow: hidden; margin: 6px 0 2px; max-width: 320px; }
.progress div { height: 100%; background: var(--primary); border-radius: 99px; }
.progress.sm { height: 6px; max-width: 160px; }
.panel { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-top: 14px; background: #fafcfe; }
.panel summary { font-weight: 700; color: var(--primary); cursor: pointer; }
.panel[open] summary { margin-bottom: 12px; }
.panel-form { border-bottom: 1px solid var(--border); margin-bottom: 14px; padding-bottom: 6px; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary .inline-h { display: inline; cursor: pointer; }
details > summary .inline-h::after { content: " ▾"; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { border-left: 3px solid #d6e2ec; padding: 2px 0 10px 14px; margin-left: 4px; }
.timeline li p { margin: 4px 0 0; }
.tl-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.bar-row { display: grid; grid-template-columns: 130px 1fr 36px; gap: 10px; align-items: center; margin-bottom: 10px; }
.bar-row strong { text-align: right; }
.bar { height: 10px; background: #edf1f5; border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; }
.mtb-belum-dimulai { background: #94a3b8; }
.mtb-dalam-proses { background: #3b82c4; }
.mtb-selesai { background: #27ae60; }
.mtb-tertunda { background: #c0392b; }

/* ---------------- filters & chips */
.filters { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: flex-end; padding: 14px 16px 2px; }
.filters label { flex: 1 1 170px; }
.filters label.check { flex: 0 0 auto; margin-bottom: 20px; }
.filter-actions { display: flex; gap: 6px; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: .85rem; text-decoration: none !important; }
.chip b { color: var(--navy); margin-left: 2px; }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.active b { color: #bfe3fb; }
.chip-danger b { color: var(--danger); }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid #edf1f5; display: flex; flex-direction: column; }
.list li:last-child { border-bottom: 0; }
.inline-edit { display: flex; gap: 6px; flex-wrap: wrap; }
.inline-edit input { flex: 1 1 140px; min-width: 0; margin: 0; padding: 6px 8px; font-size: .9rem; }
@media (max-width: 760px) {
  .table td .inline-edit { display: grid; gap: 6px; }
  .table td .inline-edit input, .table td .inline-edit .btn { width: 100%; }
  .table td.nowrap { white-space: normal; }
  .table td form.inline { display: flex; flex-wrap: wrap; gap: 6px; }
}

/* ---------------- heatmap */
.heatmap { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: 1fr auto; gap: 4px; }
.hm-ylabel { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); }
.hm-xlabel { grid-column: 2; text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); }
.hm-grid { display: grid; grid-template-columns: 64px repeat(5, minmax(0, 1fr)); gap: 4px; min-width: 0; }
.hm-rowhead, .hm-colhead { display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; color: var(--navy); font-size: .9rem; line-height: 1.1; text-align: center; }
.hm-rowhead small, .hm-colhead small { font-weight: 500; color: var(--muted); font-size: .62rem; }
.hm-colhead { padding-top: 4px; }
.hm-cell { aspect-ratio: 1.25; border-radius: 8px; position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; }
.hm-cell.lv-rendah { background: var(--lv-rendah); color: #fff; }
.hm-cell.lv-sedang { background: var(--lv-sedang); color: #3b2500; }
.hm-cell.lv-tinggi { background: var(--lv-tinggi); color: #fff; }
.hm-cell.lv-sangat-tinggi { background: var(--lv-st); color: #fff; }
.hm-skor { position: absolute; top: 3px; left: 6px; font-size: .68rem; opacity: .8; }
.hm-n { font-size: 1.25rem; }
@media (max-width: 480px) {
  .hm-grid { grid-template-columns: 26px repeat(5, minmax(0, 1fr)); gap: 3px; }
  .hm-cell { min-height: 0; aspect-ratio: 1; border-radius: 6px; }
  .hm-n { font-size: 1rem; }
  .hm-skor { font-size: .6rem; top: 2px; left: 4px; }
  .hm-rowhead small, .hm-colhead small { display: none; }
}

.score-box.lv-rendah { background: #d8f3e3; color: #17663a; }
.score-box.lv-sedang { background: #fdeccc; color: #6b4100; }
.score-box.lv-tinggi { background: #fbdcc2; color: #8a3808; }
.score-box.lv-sangat-tinggi { background: var(--lv-st); color: #fff; }

/* ---------------- landing */
.landing { background: var(--bg); }
.hero { position: relative; background: linear-gradient(135deg, #083a5c 0%, #0b5f96 60%, #1384c7 100%); color: #fff; overflow: hidden; }
.hero-waves { position: absolute; inset: auto 0 0 0; height: 90px; background:
  radial-gradient(120% 100% at 50% 100%, rgba(79,195,247,.25) 0 40%, transparent 41%),
  radial-gradient(80% 90% at 15% 110%, rgba(255,255,255,.08) 0 50%, transparent 51%); }
.hero-inner { position: relative; text-align: center; padding: 56px 16px 64px; }
.hero-logo { border-radius: 18px; box-shadow: 0 6px 18px rgba(0,0,0,.25); margin-bottom: 18px; }
.hero h1 { font-size: clamp(1.35rem, 3.6vw, 2.35rem); font-weight: 800; letter-spacing: .01em; max-width: 920px; margin: 0 auto 12px; line-height: 1.25; }
.hero-sub { color: #cfe6f6; font-size: 1.02rem; max-width: 640px; margin: 0 auto; }
.hero-session { margin-top: 18px; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.portal { padding-top: 28px; padding-bottom: 40px; }
.section-head { margin-bottom: 8px; }
.group-title { margin: 22px 0 10px; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.portal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.portal-grid-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.portal-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.portal-card:hover { transform: translateY(-2px); border-color: #9ccbea; box-shadow: 0 6px 18px rgba(11,79,124,.12); }
.portal-icon { width: 48px; height: 48px; border-radius: 12px; background: #e6f2fb; color: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.portal-card-alt .portal-icon { background: var(--navy); color: #fff; }
.portal-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.portal-text small { color: var(--muted); }
.portal-count { color: var(--primary) !important; font-weight: 600; margin-top: 2px; }
.portal-go { font-size: 1.6rem; color: #9fb3c4; }
.struktur { margin-top: 28px; }
.struktur-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.struktur-list li { background: #f5f8fb; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.struktur-list span { font-size: .75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.alur { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.alur li { counter-increment: s; border: 1px solid var(--border); border-radius: 10px; padding: 12px 12px 12px 46px; position: relative; font-size: .88rem; color: var(--muted); }
.alur li::before { content: counter(s); position: absolute; left: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.alur li strong { display: block; color: var(--text); }
@media (max-width: 860px) { .alur { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .alur { grid-template-columns: 1fr; } .hero-inner { padding: 40px 16px 52px; } }

/* ---------------- login */
.page-login { background: linear-gradient(160deg, #083a5c, #0b5f96); }
.login-wrap { width: 100%; max-width: 420px; margin: 0 auto; padding: 32px 16px; }
.login-wrap .back { color: #cfe6f6; display: inline-block; margin-bottom: 14px; }
.login-card { text-align: center; padding: 28px 24px; }
.login-card form { text-align: left; margin-top: 16px; }
.login-card h1 { font-size: 1.35rem; margin-top: 10px; }
.page-login .muted.small { color: #cfe6f6; }
.page-plain main { padding-top: 32px; }

/* ---------------- footer */
.footer { color: var(--muted); font-size: .82rem; padding: 18px 0; border-top: 1px solid var(--border); background: var(--surface); }
.footer a { color: var(--muted); }

/* ---------------- cetak */
@media print {
  .topbar, .footer, .actions, .filters, .btn, form, .chips, .menu-toggle { display: none !important; }
  body { background: #fff; font-size: 11px; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .table-wrap { overflow: visible; }
}
