/* Printed report: A4, light, formal. Screen view shows the pages as sheets. */
:root {
  --ink: #141a2b; --muted: #5c6378; --line: #d8dbe3; --soft: #f3f4f7;
  --navy: #0c1122; --gold: #b8893a; --ok: #1f7a5a; --warn: #b3364f; --amber: #9a6a12;
  --body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --num: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --display: "Cormorant Garamond", Georgia, serif;
  color-scheme: light;
}
@page { size: A4; margin: 16mm 15mm 18mm;
  @bottom-left { content: "SAMPLE · fictional data · Dunia Canggih NOC"; font: 8pt "Outfit", sans-serif; color: #5c6378; }
  @bottom-right { content: "Page " counter(page) " of " counter(pages); font: 8pt "IBM Plex Mono", monospace; color: #5c6378; } }
* { box-sizing: border-box; }
html { background: #c9ccd4; }
body { margin: 0; font-family: var(--body); color: var(--ink); font-size: 10pt; line-height: 1.45; font-weight: 300; }
.sheet { background: #fff; width: 210mm; max-width: 100%; min-height: 297mm; margin: 24px auto; padding: 16mm 15mm; box-shadow: 0 4px 24px rgba(0,0,0,.18); position: relative; }
.sheet::after { content: "SAMPLE"; position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%) rotate(-28deg); font: 600 110px var(--body); color: rgba(184, 137, 58, .07); pointer-events: none; letter-spacing: .1em; }
@media print {
  html { background: #fff; }
  .sheet { width: auto; min-height: 0; margin: 0; padding: 0; box-shadow: none; break-after: page; }
  .sheet:last-child { break-after: auto; }
  .screen-only { display: none !important; }
}
@media screen and (max-width: 800px) { .sheet { padding: 20px 16px; margin: 12px auto; min-height: 0; } }
.screen-bar { max-width: 210mm; margin: 16px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; padding: 0 16px; }
.screen-bar a { color: var(--navy); font-weight: 500; }

.rhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 2px solid var(--navy); padding-bottom: 8px; margin-bottom: 14px; }
.rhead .brand { font-family: var(--display); font-style: italic; font-size: 17pt; line-height: 1; }
.rhead .brand span { font-family: var(--body); font-style: normal; font-size: 7.5pt; letter-spacing: .16em; color: var(--gold); font-weight: 600; margin-left: 6px; }
.rhead .ref { font-family: var(--num); font-size: 7.5pt; color: var(--muted); text-align: right; line-height: 1.5; }
h1 { font-family: var(--display); font-weight: 400; font-size: 28pt; line-height: 1.05; margin: 18px 0 4px; }
h2 { font-size: 11pt; font-weight: 600; margin: 18px 0 8px; color: var(--navy); letter-spacing: .02em; }
h2 small { font-weight: 300; color: var(--muted); font-size: 9pt; margin-left: 6px; }
h3 { font-size: 10pt; font-weight: 600; margin: 12px 0 6px; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); margin: 14px 0 6px; }
.meta div { padding: 8px 10px; border-right: 1px solid var(--line); }
.meta div:last-child { border-right: 0; }
.meta b { display: block; font-size: 7pt; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.meta span { font-family: var(--num); font-size: 9pt; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.tile { background: var(--soft); padding: 10px; border-top: 3px solid var(--navy); }
.tile b { display: block; font-size: 7pt; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.tile span { font-family: var(--num); font-size: 16pt; font-weight: 500; }
.tile.ok { border-top-color: var(--ok); } .tile.ok span { color: var(--ok); }
.tile.warn { border-top-color: var(--warn); }
ul.summary { margin: 6px 0 0; padding-left: 16px; display: grid; gap: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 9pt; margin: 4px 0 6px; }
th { text-align: left; font-weight: 600; font-size: 7.5pt; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 6px 6px; border-bottom: 1.5px solid var(--ink); background: var(--soft); }
td { padding: 5px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.n, th.n { text-align: right; font-family: var(--num); white-space: nowrap; }
td.mono { font-family: var(--num); font-size: 8.5pt; white-space: nowrap; }
tr.total td { font-weight: 600; border-top: 1.5px solid var(--ink); }
.met { color: var(--ok); font-weight: 600; }
.miss { color: var(--warn); font-weight: 600; }
.pri { display: inline-block; font-family: var(--num); font-size: 7.5pt; font-weight: 600; padding: 0 5px; border-radius: 3px; color: #fff; background: var(--navy); }
.pri.p1 { background: var(--warn); } .pri.p2 { background: #c76b81; } .pri.p3 { background: var(--amber); } .pri.p4 { background: var(--muted); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.box { border: 1px solid var(--line); padding: 10px 12px; }
.note { font-size: 8.5pt; color: var(--muted); }
.signoff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 18px; }
.signoff div { border-top: 1px solid var(--ink); padding-top: 6px; font-size: 9pt; }
.signoff b { display: block; font-weight: 600; }
.validity { margin-top: 16px; padding: 8px 10px; background: var(--soft); font-size: 8.5pt; color: var(--muted); border-left: 3px solid var(--gold); }
.p1-banner { display: flex; align-items: center; gap: 14px; background: var(--warn); color: #fff; padding: 12px 16px; margin: 0 0 12px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.p1-banner .big { font: 600 30pt/1 var(--body); letter-spacing: .02em; border: 2px solid #fff; padding: 4px 10px; }
.p1-banner .txt b { display: block; font-size: 14pt; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.p1-banner .txt span { font-size: 9pt; opacity: .92; }
.p1-strip { background: var(--warn); color: #fff; font-size: 8pt; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; margin: -6px 0 12px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ai-box { border: 1px solid var(--line); border-left: 3px solid var(--navy); padding: 10px 12px; margin: 8px 0; }
.ai-tag { display: inline-block; font-family: var(--num); font-size: 7pt; font-weight: 600; letter-spacing: .08em; color: var(--navy); border: 1px solid var(--navy); padding: 0 5px; margin-right: 6px; vertical-align: 1px; }
.conf { font-family: var(--num); font-size: 8.5pt; white-space: nowrap; }
* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
svg text { font-family: "IBM Plex Mono", monospace; }
@media screen and (max-width: 700px) { .meta, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .two { grid-template-columns: minmax(0, 1fr); } table { font-size: 8pt; } .scroll { overflow-x: auto; } }
