/* Volve DCA Cockpit — sistem desain "Baja Laut Utara"
   Satu keluarga huruf (IBM Plex Sans), latar abu-baja dingin, warna seri mengikuti konvensi
   industri migas (minyak = hijau, air = biru, gas = merah). Tanpa dekorasi; struktur = informasi. */
@font-face { font-family: "Plex"; src: url("../fonts/IBMPlexSans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/IBMPlexSans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/IBMPlexSans-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --bg: #eef1f3; --panel: #ffffff; --panel2: #f6f8f9;
  --ink: #1b2630; --ink2: #3b4852; --muted: #6b7782; --line: #dde2e6; --line2: #eceff1;
  --oil: #1f7a4d; --oilbg: #e7f2ec; --water: #2c6aa6; --waterbg: #e8f0f8; --gas: #b43a2e; --gasbg: #f8e9e7; --amber: #a86b12; --amberbg: #f7efe0;
  --accent: #14384f;
  --sans: "Plex", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; }
a { color: var(--water); text-decoration: none; } a:hover { text-decoration: underline; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--water); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--accent); color: #fff; }
.top-in { max-width: 1320px; margin: 0 auto; padding: 0 24px; display: flex; align-items: stretch; gap: 28px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand .name { font-weight: 600; font-size: 17px; letter-spacing: 0; }
.brand .sub { font-size: 12px; color: #a9bccb; }
.tabs { display: flex; gap: 2px; overflow-x: auto; margin-left: auto; scrollbar-width: none; }
.tab { display: flex; align-items: center; padding: 0 13px; color: #b9c9d5; font-size: 14px; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
.tab:hover { color: #fff; text-decoration: none; }
.tab[aria-current="page"] { color: #fff; border-bottom-color: #7fc4a0; }

/* ---------- Control bar ---------- */
.ctl { position: sticky; top: 58px; z-index: 40; background: var(--panel); border-bottom: 1px solid var(--line); }
.ctl-in { max-width: 1320px; margin: 0 auto; padding: 10px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.fld { display: flex; align-items: center; gap: 10px; }
.fld label { font-size: 13px; color: var(--muted); }
select.sel, .in { border: 1px solid var(--line); background: var(--panel); padding: 6px 10px; min-height: 34px; border-radius: 6px; }
.datebox { flex: 1 1 360px; min-width: 300px; }
.datebox input[type=range] { flex: 1; accent-color: var(--accent); min-width: 120px; }
.datelbl { font-weight: 600; font-size: 14px; min-width: 96px; text-align: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { border: 0; background: var(--panel); padding: 6px 12px; cursor: pointer; font-size: 13px; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.btn { border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 6px 14px; min-height: 34px; border-radius: 6px; cursor: pointer; font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { background: var(--panel2); border-color: #c8d0d6; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #1c4a66; }
.btn.small { padding: 3px 10px; min-height: 28px; font-size: 12.5px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.ghost { border-color: transparent; background: transparent; color: var(--ink2); }

/* ---------- Layout ---------- */
main { max-width: 1320px; margin: 0 auto; padding: 28px 24px 64px; min-width: 0; }
.page { display: none; } .page.on { display: block; }
.ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin: 0 0 20px; }
.ph h1 { font-size: 26px; line-height: 1.2; }
.ph p { margin: 6px 0 0; color: var(--muted); max-width: 680px; }
.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .g12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) {
  .g2, .g3, .g4, .g21, .g12 { grid-template-columns: minmax(0, 1fr); } .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-in { flex-wrap: wrap; gap: 0; padding: 0 16px; } .brand { padding: 10px 0 4px; } .tabs { margin-left: 0; width: 100%; } .tab { padding: 10px 11px; }
  .ctl { position: static; } .ctl-in { padding: 10px 16px; } .datebox { min-width: 0; flex-basis: 100%; } .datelbl { min-width: 0; }
  main { padding: 20px 16px 48px; } .ph h1 { font-size: 22px; }
}

/* ---------- Card ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px 14px; min-width: 0; }
.card > h3 { font-size: 15px; margin-bottom: 10px; color: var(--ink); }
.card .hint, .card .read { display: none; }
.chart { width: 100%; height: 300px; } .chart.tall { height: 380px; } .chart.short { height: 250px; } .chart.mini { height: 240px; }

/* ---------- KPI ---------- */
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.kpi .l { font-size: 13px; color: var(--muted); }
.kpi .v { font-size: 26px; font-weight: 600; line-height: 1.2; margin-top: 4px; letter-spacing: -0.01em; }
.kpi .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kpi.good .v { color: var(--oil); } .kpi.warn .v { color: var(--amber); } .kpi.bad .v { color: var(--gas); }

/* ---------- Pills & notes ---------- */
.pill { display: inline-block; padding: 4px 12px; font-weight: 600; font-size: 13px; border-radius: 999px; }
.pill.go { color: var(--oil); background: var(--oilbg); } .pill.marginal { color: var(--amber); background: var(--amberbg); }
.pill.nogo { color: var(--gas); background: var(--gasbg); } .pill.info { color: var(--water); background: var(--waterbg); }
.note { border-radius: 8px; background: var(--waterbg); color: var(--ink2); padding: 10px 14px; margin: 0 0 16px; font-size: 13.5px; }
.note.warn { background: var(--amberbg); } .note.bad { background: var(--gasbg); color: var(--gas); } .note.ok { background: var(--oilbg); }

/* ---------- Hero keputusan (Ringkasan) ---------- */
.hero { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 26px 28px 22px; margin-bottom: 18px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.hero .ctx { font-size: 14px; color: var(--muted); }
.hero .verdict { font-size: 30px; line-height: 1.2; font-weight: 600; margin: 6px 0 8px; letter-spacing: -0.015em; }
.hero .verdict.go { color: var(--oil); } .hero .verdict.marginal { color: var(--amber); } .hero .verdict.nogo { color: var(--gas); }
.hero .why { color: var(--ink2); font-size: 15px; max-width: 560px; }
.range .lab { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.range .track { position: relative; height: 44px; }
.range .axis { position: absolute; left: 0; right: 0; top: 20px; height: 4px; background: var(--line2); border-radius: 2px; }
.range .band { position: absolute; top: 14px; height: 16px; border-radius: 3px; background: var(--oil); opacity: .22; }
.range .band.neg { background: var(--gas); }
.range .p50 { position: absolute; top: 8px; width: 3px; height: 28px; background: var(--ink); border-radius: 1px; }
.range .zero { position: absolute; top: 4px; height: 36px; border-left: 1px dashed var(--muted); }
.range .ticks { position: relative; height: 34px; font-size: 12.5px; color: var(--muted); }
.range .ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.range .ticks b { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .hero .verdict { font-size: 24px; } }

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line2); text-align: right; white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl th { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.tbl tr.best td { font-weight: 600; background: var(--oilbg); }
.tbl td.txt, .tbl th.txt { text-align: left; white-space: normal; }
.tscroll { overflow-x: auto; }

/* ---------- Form ---------- */
.frm { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px 24px; }
.fi label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 4px; gap: 8px; }
.fi label output { color: var(--ink); font-weight: 600; }
.fi input[type=range] { width: 100%; accent-color: var(--accent); }
.fi input[type=text], .fi input[type=number] { width: 100%; }

/* ---------- Drawer ---------- */
.veil { position: fixed; inset: 0; background: rgba(20, 30, 40, .35); z-index: 90; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(500px, 100%); background: var(--panel); z-index: 100; padding: 24px 26px 32px; overflow-y: auto; box-shadow: -12px 0 40px rgba(20, 30, 40, .16); }
.drawer h2 { font-size: 20px; margin-bottom: 6px; }
.drawer .x { position: absolute; top: 16px; right: 18px; }
.drawer ul { padding-left: 18px; } .drawer li { margin-bottom: 8px; }

/* ---------- Tour ---------- */
.tour { position: fixed; right: 24px; bottom: 24px; width: min(380px, calc(100% - 32px)); z-index: 120; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: 0 12px 40px rgba(20, 30, 40, .18); }
.tour .st { font-size: 12.5px; color: var(--muted); }
.tour h4 { font-size: 16px; margin: 2px 0 6px; }
.tour .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.tour-hl { box-shadow: 0 0 0 3px var(--water); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.tm { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tm .ph-wrap { position: relative; aspect-ratio: 4 / 4.2; background: var(--panel2); }
.tm img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm .ini { width: 100%; height: 100%; display: grid; place-items: center; font-size: 44px; font-weight: 500; color: #9aa7b1; }
.tm .body { padding: 12px 14px 14px; }
.tm .rib { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.tm .nm { font-weight: 600; font-size: 15.5px; }
.tm .li { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 500; }
.tm .li.off { color: var(--muted); }
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 18px; }
.mini { display: flex; gap: 12px; align-items: center; }
.mini .av { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--panel2); border: 1px solid var(--line); }
.mini .av img { width: 100%; height: 100%; object-fit: cover; } .mini .av .ini { width: 100%; height: 100%; display: grid; place-items: center; font-size: 15px; font-weight: 500; color: #8795a0; }
.mini .nm { font-weight: 600; font-size: 14px; line-height: 1.25; }
.kb { color: var(--accent); background: var(--waterbg); font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
.pipe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; }
.pipe .s { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; }
.pipe .a { color: #a3aeb7; }
.dz { border: 1.5px dashed #c3ccd3; border-radius: 10px; background: var(--panel2); padding: 26px; text-align: center; cursor: pointer; }
.dz.drag { border-color: var(--oil); background: var(--oilbg); }
footer { max-width: 1320px; margin: 0 auto; padding: 18px 24px 28px; color: var(--muted); font-size: 12.5px; }

/* ---------- Print brief ---------- */
#brief { display: none; }
@media print {
  body { background: #fff; } .top, .ctl, main, footer, .tour, .drawer, .veil { display: none !important; }
  #brief { display: block !important; } #brief h1 { font-size: 20px; } #brief img { width: 100%; height: auto; }
  #brief .b2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } @page { size: A4; margin: 14mm; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
/* Halaman "Data Anda": kontrol global (sumur/tanggal Volve) tidak berlaku di sini */
body[data-page="data"] .ctl { display: none; }
details.cols summary { cursor: pointer; font-weight: 500; font-size: 14px; padding: 4px 0 8px; }
details.cols[open] summary { margin-bottom: 4px; }
.cta-up { margin: -6px 0 18px; color: var(--muted); }

/* Panel Asumsi: ringkasan efek perubahan */
.asum-live { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 12px 0 16px; position: sticky; top: -24px; z-index: 1; }
.al-row { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin: 6px 0; font-size: 13.5px; }
.al-v { font-weight: 600; font-size: 16px; }
.al-v.go { color: var(--oil); } .al-v.marginal { color: var(--amber); } .al-v.nogo { color: var(--gas); }
