/* Monitoring PLTS, PLN Indonesia Power Adipala PGU
   Arah visual: instrumen ruang kontrol pembangkit. Satu tema (terang).
   - Navy (--ink) untuk band header & teks: otoritas dan keterbacaan, turunan biru korporat PLN.
   - Biru PLN (--pln) untuk aksi & tautan; digelapkan agar lolos kontras AA di atas putih.
   - Kuning matahari (--sun) HANYA untuk produksi energi (kurva/bar produksi). Tidak dipakai di tombol.
   - Status memakai bentuk + warna (lingkaran/segitiga/kotak) supaya terbaca tanpa bergantung warna. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("/static/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("/static/fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("/static/fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("/static/fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 500; font-display: swap; src: url("/static/fonts/barlow-sc-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-display: swap; src: url("/static/fonts/barlow-sc-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-display: swap; src: url("/static/fonts/barlow-sc-700.woff2") format("woff2"); }

:root {
  --ink: #0C2233;
  --ink-2: #37516A;
  --muted: #586B7C;
  --pln: #0A7CB8;
  --pln-strong: #075E8E;
  --pln-tint: #E4F1F9;
  --sun: #F2B50A;
  --sun-line: #946F00;
  --sun-tint: #FDF3D4;
  --paper: #EEF2F6;
  --panel: #FFFFFF;
  --panel-2: #F5F8FB;
  --line: #DAE2E9;
  --line-soft: #E8EDF2;
  --line-strong: #90A3B2;
  --band: #0C2233;
  --band-2: #103049;
  --band-text: #FFFFFF;
  --band-muted: #AFC2D1;
  --on-pln: #FFFFFF;
  --ok: #1F7A3D;
  --warn: #9A5B00;
  --bad: #B3261E;
  --off: #5B6B77;
  --ok-tint: #E4F2E8;
  --warn-tint: #FBF0DD;
  --bad-tint: #FBE6E4;
  --focus: #0A7CB8;
  --strip-prod: #2F6E9E;
  --strip-low: #D08A00;
  --strip-zero: #B3261E;
  --strip-nodata: #8FA2B0;
  --strip-night: #E2E8EC;

  --font: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-num: "Barlow Semi Condensed", "Barlow", "Segoe UI", sans-serif;
  --radius: 8px;
  --radius-sm: 5px;
  --gutter: 28px;
  --shadow-card: 0 1px 2px rgba(12, 34, 51, 0.04), 0 1px 1px rgba(12, 34, 51, 0.06);
  --shadow-pop: 0 10px 30px rgba(12, 34, 51, 0.16);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.5 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--pln); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--pln-strong); }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; font-weight: 600; letter-spacing: -0.012em; color: var(--ink); }
h1 { font-size: 30px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0 0 0.75em; max-width: 72ch; }
.num, td.n, .readout { font-family: var(--font-num); font-variant-numeric: tabular-nums lining-nums; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--panel); color: var(--ink); padding: 10px 14px; z-index: 20; border: 2px solid var(--focus); border-radius: var(--radius-sm); }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1340px; margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------ band (header) */
.band {
  background: linear-gradient(180deg, var(--band-2), var(--band));
  color: var(--band-text);
  border-top: 3px solid var(--sun);
  position: sticky; top: 0; z-index: 15;
  box-shadow: 0 1px 0 rgba(12, 34, 51, 0.06), 0 6px 18px rgba(12, 34, 51, 0.10);
}
.band .wrap { display: flex; align-items: center; gap: 26px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--band-text); text-decoration: none; flex: 0 0 auto; }
.brand:hover { color: var(--band-text); }
.logo-plate { background: #FFFFFF; border-radius: var(--radius-sm); padding: 6px 10px; display: inline-flex; align-items: center; flex: 0 0 auto; box-shadow: 0 1px 3px rgba(0,0,0,0.18); }
.logo-plate img { height: 30px; width: auto; display: block; }
.logo-plate + .brand-text { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, 0.22); }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-size: 16px; font-weight: 700; letter-spacing: 0.01em; }
.brand-text span { font-size: 12.5px; color: var(--band-muted); }
.nav { display: flex; gap: 2px; flex: 1 1 auto; align-items: stretch; align-self: stretch; }
.nav a {
  display: flex; align-items: center; padding: 0 13px; color: var(--band-muted); text-decoration: none;
  font-weight: 500; font-size: 14.5px; border-bottom: 3px solid transparent; border-top: 3px solid transparent; white-space: nowrap;
}
.nav a:hover { color: var(--band-text); }
.nav a[aria-current="page"] { color: var(--band-text); border-bottom-color: var(--sun); }
.band-tools { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.fresh { font-size: 13px; color: var(--band-muted); display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.fresh .shape { width: 10px; height: 10px; }
.icon-btn {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.26); color: var(--band-text);
  min-width: 40px; height: 40px; border-radius: var(--radius-sm); cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; padding: 0 12px; font: 500 14.5px var(--font);
}
.icon-btn:hover { border-color: var(--band-text); background: rgba(255,255,255,0.12); }
.icon-btn svg { width: 18px; height: 18px; }
.menu { position: relative; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); min-width: 230px; z-index: 30;
  box-shadow: var(--shadow-pop);
  padding: 6px 0;
}
.menu-panel[hidden] { display: none; }
.menu-panel .who { padding: 10px 16px 11px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-weight: 600; }
.menu-panel .who small { display: block; color: var(--muted); font-weight: 400; }
.menu-panel a, .menu-panel button {
  display: block; width: 100%; text-align: left; padding: 9px 16px; color: var(--ink); text-decoration: none;
  background: none; border: 0; font: inherit; cursor: pointer;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--pln-tint); color: var(--ink); }
.nav-toggle { display: none; }

/* ------------------------------------------------------------ main */
main { flex: 1; padding: 30px 0 60px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.page-head p { color: var(--muted); margin: 7px 0 0; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 7px; display: flex; gap: 7px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--pln); text-decoration: underline; }
.stack > * + * { margin-top: 20px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr); gap: 20px; align-items: start; }
.grid-even { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 20px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 17px 22px 15px; flex-wrap: wrap; border-bottom: 1px solid var(--line-soft); }
.panel > header h2 { font-size: 18px; }
.panel > header p { color: var(--muted); font-size: 13.5px; margin: 3px 0 0; }
.panel > header a { font-weight: 600; font-size: 14px; white-space: nowrap; }
.panel-body { padding: 20px 22px; }
.panel-body.flush { padding: 8px 0 0; }

.flash { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 22px; display: flex; gap: 11px; align-items: flex-start; border: 1px solid; border-left-width: 4px; }
.flash.ok { background: var(--ok-tint); border-color: var(--ok); }
.flash.warn { background: var(--warn-tint); border-color: var(--warn); }
.flash.bad { background: var(--bad-tint); border-color: var(--bad); }
.flash .shape { margin-top: 5px; }

/* ------------------------------------------------------------ status shapes */
.shape { display: inline-block; width: 11px; height: 11px; flex: 0 0 auto; vertical-align: baseline; }
.shape-ok { background: var(--ok); border-radius: 50%; }
.shape-warn { width: 0; height: 0; border-left: 6.5px solid transparent; border-right: 6.5px solid transparent; border-bottom: 11px solid var(--warn); }
.shape-bad { background: var(--bad); }
.shape-off { border: 2px solid var(--off); border-radius: 50%; }
.shape-info { background: var(--pln); border-radius: 2px; transform: rotate(45deg) scale(0.8); }

.sev { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; white-space: nowrap; }
.sev.wrap { white-space: normal; align-items: baseline; }
.sev-critical { color: var(--bad); }
.sev-major { color: var(--warn); }
.sev-minor, .sev-info { color: var(--ink-2); }
.tag { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); white-space: nowrap; background: var(--panel-2); }
.tag-ok { border-color: var(--ok); color: var(--ok); background: var(--ok-tint); }
.tag-warn { border-color: var(--warn); color: var(--warn); background: var(--warn-tint); }
.tag-bad { border-color: var(--bad); color: var(--bad); background: var(--bad-tint); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ------------------------------------------------------------ status hero (dashboard) */
.hero { padding: 4px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.hero h1 { font-size: clamp(25px, 3.3vw, 35px); font-weight: 600; max-width: 36ch; display: flex; gap: 15px; align-items: baseline; letter-spacing: -0.015em; }
.hero h1 .shape { width: 16px; height: 16px; transform: translateY(-2px); }
.hero h1 .shape-warn { border-left-width: 9px; border-right-width: 9px; border-bottom-width: 16px; width: 0; height: 0; }
.hero .sub { margin: 12px 0 0 31px; color: var(--ink-2); font-size: 17px; max-width: 72ch; }
.hero .sub strong { font-family: var(--font-num); font-weight: 600; }

.meters { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 26px; padding: 0; }
.meters > div { padding: 3px 26px 3px 0; margin: 0 26px 14px 0; border-right: 1px solid var(--line); min-width: 142px; position: relative; }
.meters > div:last-child { border-right: 0; }
.meters dt { font-size: 13px; color: var(--muted); font-weight: 500; }
.meters dd { margin: 3px 0 0; font: 600 25px/1.1 var(--font-num); font-variant-numeric: tabular-nums; color: var(--ink); }
.meters dd small { font: 500 14px var(--font); color: var(--muted); margin-left: 3px; }
.meters dd a { font: 500 15px var(--font); }

/* ------------------------------------------------------------ pita siang (strip) */
.strips { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) auto; gap: 9px 16px; align-items: center; }
.strips .who { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strips .who a { color: var(--ink); text-decoration: none; }
.strips .who a:hover { color: var(--pln); text-decoration: underline; }
.strips .who small { display: block; color: var(--muted); font-size: 12px; }
.strip { width: 100%; height: 24px; display: block; border-radius: 3px; overflow: hidden; }
.strip .s-prod { fill: var(--strip-prod); }
.strip .s-low { fill: var(--strip-low); }
.strip .s-zero { fill: var(--strip-zero); }
.strip .s-nodata { fill: url(#hatch); }
.strip .s-night { fill: var(--strip-night); }
.strip .s-future { fill: none; }
.strip .frame { fill: none; stroke: var(--line-strong); }
.strip .now { stroke: var(--ink); stroke-width: 2; }
.hatch-bg { fill: var(--panel); }
.hatch-line { stroke: var(--strip-nodata); stroke-width: 1.5; }
.strip-axis { font-size: 12px; color: var(--muted); position: relative; height: 16px; }
.strip-axis span { position: absolute; transform: translateX(-50%); font-family: var(--font-num); }
.strips .figs { text-align: right; font-family: var(--font-num); white-space: nowrap; font-size: 15px; font-weight: 600; }
.strips .figs small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.legend { display: flex; flex-wrap: wrap; gap: 7px 18px; font-size: 13px; color: var(--ink-2); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 18px; height: 11px; display: inline-block; border: 1px solid var(--line); border-radius: 2px; }
.legend .l-prod { background: var(--strip-prod); }
.legend .l-low { background: var(--strip-low); }
.legend .l-zero { background: var(--strip-zero); }
.legend .l-nodata { background: repeating-linear-gradient(45deg, var(--panel) 0 3px, var(--strip-nodata) 3px 4.5px); }
.legend .l-night { background: var(--strip-night); }

/* ------------------------------------------------------------ charts */
.chart { width: 100%; height: 300px; position: relative; }
.chart.tall { height: 360px; }
.chart.short { height: 220px; }
.chart-state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--muted); font-size: 14px; }
.chart-state.error { color: var(--bad); }

/* ------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 12.5px; letter-spacing: 0.02em; text-transform: none; padding: 11px 14px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; background: var(--panel-2); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th.n, .tbl td.n { text-align: right; white-space: nowrap; }
.tbl td.n { font-size: 15px; }
.tbl tbody tr:hover { background: var(--panel-2); }
.tbl .row-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.tbl .row-link:hover { color: var(--pln); text-decoration: underline; }
.tbl tfoot td { font-weight: 600; border-top: 1px solid var(--line-strong); background: var(--panel-2); }
.cell-sub { display: block; color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------ readouts (inverter) */
.readouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); border-radius: var(--radius-sm); overflow: hidden; }
.readouts > div { padding: 13px 17px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.readouts dt { font-size: 13px; color: var(--muted); }
.readouts dd { margin: 3px 0 0; font: 600 22px/1.15 var(--font-num); font-variant-numeric: tabular-nums; color: var(--ink); }
.readouts dd small { font: 500 13px var(--font); color: var(--muted); margin-left: 3px; }
.readouts .primary { background: var(--panel-2); }
.readouts .primary dd { font-size: 30px; }
@media (min-width: 1100px) { .readouts { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 90px; gap: 12px; align-items: center; font-size: 14px; }
.bar-row .track { height: 16px; background: var(--panel-2); border: 1px solid var(--line); position: relative; border-radius: 3px; overflow: hidden; }
.bar-row .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--strip-prod); }
.bar-row.low .fill { background: var(--strip-low); }
.bar-row.zero .fill { background: var(--strip-zero); }
.bar-row.inactive { color: var(--muted); }
.bar-row .val { text-align: right; font-family: var(--font-num); font-weight: 600; }
.bar-row .median { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); z-index: 1; }

/* ------------------------------------------------------------ tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 11px 15px; text-decoration: none; color: var(--ink-2); font-weight: 500; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--pln-strong); border-bottom-color: var(--pln); font-weight: 600; }

/* ------------------------------------------------------------ forms & buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border-radius: var(--radius-sm); border: 1px solid var(--pln); background: var(--pln); color: var(--on-pln);
  font: 600 15px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 120ms ease, border-color 120ms ease;
}
.btn:hover { background: var(--pln-strong); border-color: var(--pln-strong); color: var(--on-pln); }
.btn-quiet { background: var(--panel); color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { background: var(--pln-tint); color: var(--ink); border-color: var(--pln); }
.btn-danger { background: var(--panel); color: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: var(--bad-tint); color: var(--bad); border-color: var(--bad); }
.btn-sm { min-height: 35px; padding: 0 13px; font-size: 14px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-form { display: inline; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 17px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field label, .field .label { font-weight: 600; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"],
input[type="datetime-local"], input[type="month"], input[type="tel"], select, textarea {
  font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); min-height: 42px; padding: 9px 11px; width: 100%;
}
input::placeholder, textarea::placeholder { color: #93A3B0; }
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--pln); flex: 0 0 auto; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 16px 16px; margin: 0; }
legend { font-weight: 600; padding: 0 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 15px 18px; }
.filters .field { min-width: 160px; }

/* ------------------------------------------------------------ misc blocks */
.empty { padding: 30px 22px; text-align: left; color: var(--ink-2); }
.empty h3 { margin-bottom: 7px; }
.empty p { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px 24px; margin: 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 3px 0 0; font-weight: 600; color: var(--ink); }
.note { background: var(--warn-tint); border: 1px solid var(--warn); border-left-width: 4px; padding: 13px 15px; border-radius: var(--radius-sm); font-size: 14px; }
.note.info { background: var(--pln-tint); border-color: var(--pln); }
.alarm-list { list-style: none; margin: 0; padding: 0; }
.alarm-list li { padding: 14px 22px; border-top: 1px solid var(--line-soft); }
.alarm-list li:first-child { border-top: 0; }
.alarm-list a.t { color: var(--ink); font-weight: 600; text-decoration: none; display: block; margin-top: 3px; }
.alarm-list a.t:hover { color: var(--pln); text-decoration: underline; }
.alarm-list .meta { font-size: 13px; color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 13px 0 13px 22px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 18px; width: 10px; height: 10px; background: var(--panel); border: 2px solid var(--line-strong); border-radius: 50%; }
.timeline li.note::before { border-color: var(--pln); }
.timeline .meta { font-size: 13px; color: var(--muted); }
.timeline .body { white-space: pre-wrap; margin-top: 3px; }
.steps { padding-left: 20px; margin: 8px 0 0; }
.steps li { margin-bottom: 6px; }
.sla-bad { color: var(--bad); font-weight: 600; }
.sla-warn { color: var(--warn); font-weight: 600; }
.pager { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.split { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }

footer.foot { border-top: 1px solid var(--line); padding: 18px 0; font-size: 13px; color: var(--muted); background: var(--panel); }

/* ------------------------------------------------------------ login */
main.main-bare { padding: 0; }
.login-page { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr); min-height: 100vh; }
.login-side {
  position: relative; color: var(--band-text); padding: 52px; display: flex; flex-direction: column;
  justify-content: space-between; gap: 30px; overflow: hidden; isolation: isolate;
}
.login-side::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: #0C2233 url("/static/img/plant-wide.jpg") center 35% / cover no-repeat;
}
.login-side::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(195deg, rgba(10, 28, 44, 0.62) 0%, rgba(9, 24, 38, 0.80) 55%, rgba(8, 20, 32, 0.93) 100%);
}
.login-side .logo-plate img { height: 42px; }
.login-side h1 { font-size: clamp(30px, 4vw, 46px); max-width: 15ch; font-weight: 600; color: #fff; letter-spacing: -0.02em; text-shadow: 0 1px 18px rgba(0,0,0,0.35); }
.login-side .lead { max-width: 30ch; }
.login-side p { color: #E6EEF4; font-size: 17px; max-width: 46ch; text-shadow: 0 1px 10px rgba(0,0,0,0.3); }
.login-side h1 + p { margin-top: 18px; }
.login-side .brand-text span { color: #D5E2EC; }
.login-side .foot-note { font-size: 13.5px; color: #C3D3DF; }
.login-caption { font-size: 12.5px; color: #B6C7D4; display: flex; align-items: center; gap: 7px; }
.login-caption::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); flex: 0 0 auto; }
.login-form { padding: 52px 46px; display: flex; flex-direction: column; justify-content: center; background: var(--panel); }
.login-form-inner { width: 100%; max-width: 380px; margin: 0 auto; }
.login-form .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--pln-strong); margin-bottom: 6px; }
.login-form h2 { font-size: 26px; margin-bottom: 22px; }
.login-form .field { margin-bottom: 17px; }
.login-form .btn { width: 100%; margin-top: 8px; height: 46px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .nav a { padding: 0 10px; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .band { position: static; }
  .band .wrap { flex-wrap: wrap; gap: 10px; min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .band-tools { order: 1; gap: 8px; }
  .nav-toggle { display: inline-flex; order: 2; }
  .nav { order: 3; flex: 1 0 100%; flex-direction: column; display: none; padding-bottom: 6px; }
  .nav.open { display: flex; }
  .nav a { min-height: 44px; border: 0; border-left: 3px solid transparent; padding: 0 12px; }
  .nav a[aria-current="page"] { border-left-color: var(--sun); border-bottom-color: transparent; }
  .fresh .label { display: none; }
  .icon-btn { min-width: 44px; height: 44px; }
  .btn { min-height: 44px; }
  main { padding-top: 22px; }
  .hero .sub { margin-left: 0; }
  .strips { grid-template-columns: minmax(0, 1fr) auto; grid-auto-flow: row dense; row-gap: 4px; }
  .strips .who { grid-column: 1 / 2; margin-top: 10px; }
  .strips .figs { grid-column: 2 / 3; margin-top: 10px; }
  .strips .strip-cell { grid-column: 1 / -1; }
  .strips .strip-axis { grid-column: 1 / -1; }
  .strips .axis-spacer { display: none; }
  .meters > div { border-right: 0; min-width: 45%; margin-right: 0; padding-right: 12px; }
  .login-page { grid-template-columns: 1fr; }
  .login-side { padding: 30px 22px 34px; min-height: 42vh; }
  .login-side::before { background-image: url("/static/img/plant-tall.jpg"); background-position: center 30%; }
  .login-form { padding: 30px 22px 44px; }
  .bar-row { grid-template-columns: 72px minmax(0, 1fr) 70px; }
  .tbl.stack-mobile thead { display: none; }
  .tbl.stack-mobile tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .tbl.stack-mobile td { display: flex; justify-content: space-between; gap: 16px; border: 0; padding: 4px 14px; text-align: right; }
  .tbl.stack-mobile td::before { content: attr(data-label); color: var(--muted); font-size: 13px; text-align: left; font-weight: 500; }
  .tbl.stack-mobile td.first { display: block; text-align: left; }
  .tbl.stack-mobile td.first::before { content: none; }
}
@media (max-width: 600px) {
  .band .brand-text span { display: none; }
  .band .logo-plate img { height: 24px; }
  .band .logo-plate + .brand-text { display: none; }
  .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .icon-btn { padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------ print (laporan) */
@media print {
  .band, .no-print, footer.foot, .tabs, .flash { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  main { padding: 0; }
  .panel { border: 0; box-shadow: none; }
  a { color: #000; text-decoration: none; }
  .chart { height: 240px; }
}
