/* ===== Dashboard Monitoring — gaya tampilan ===== */
:root {
  --navy: #0b2552; --navy-2: #0f2f66; --navy-3: #16397a;
  --bg: #eef2f8; --card: #fff; --ink: #0f1f3d; --ink-2: #334155; --muted: #64748b; --line: #e3e8f0; --line-2: #f1f4f9;
  --blue: #2563eb; --blue-d: #1d4ed8; --green: #16a34a; --amber: #f59e0b; --red: #ef4444; --purple: #7c3aed; --cyan: #0ea5e9;
  --radius: 10px; --shadow: 0 1px 2px rgba(15, 31, 61, .06), 0 2px 10px rgba(15, 31, 61, .05);
  --side-w: 250px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.45 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
.ic { width: 20px; height: 20px; fill: currentColor; flex: none; }
.muted { color: var(--muted); }
.nw { white-space: nowrap; }
.c { text-align: center; }
.small { font-size: 12px; }
.empty { padding: 24px; text-align: center; color: var(--muted); }

/* ---------- boot ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 3px solid #cbd5e1; border-top-color: var(--blue); border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; margin-right: 10px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }

/* ---------- Sidebar ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: linear-gradient(180deg, var(--navy) 0%, #0a2149 100%); color: #dbe6ff; display: flex; flex-direction: column; z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px 22px; color: #fff; }
.logo-mark { width: 54px; height: 38px; flex: none; }
.brand b { display: block; font-size: 22px; letter-spacing: .5px; font-weight: 700; }
.brand small { display: block; font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: #c7d6f5; margin-top: -2px; }
#nav { flex: 1; overflow-y: auto; padding: 4px 12px; }
#nav > a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 6px; border-radius: 8px; color: #e5edff; font-size: 15px; position: relative; transition: background .15s; }
#nav > a .ic { width: 22px; height: 22px; opacity: .92; }
#nav > a:hover { background: rgba(255, 255, 255, .07); }
#nav > a.active { background: linear-gradient(90deg, #1d6cf2, #2a7bf6); color: #fff; box-shadow: 0 4px 14px rgba(29, 108, 242, .35); }
.caret { margin-left: auto; display: flex; padding: 2px; border-radius: 4px; }
.caret.up .ic { transform: rotate(180deg); }
.caret:hover { background: rgba(255, 255, 255, .12); }
.nav-dot { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .25); }
.nav-dot.amber { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, .25); }
.nav-dot.red { background: var(--red); box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); }
.nav-dot.blue { background: #60a5fa; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.nav-count { background: var(--amber); color: #111; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 0 6px; margin-left: 6px; }
.subnav-side { display: none; margin: -2px 0 8px 22px; border-left: 1px solid rgba(255, 255, 255, .14); padding-left: 10px; }
.subnav-side.open { display: block; }
.subnav-side a { display: flex; align-items: center; gap: 8px; color: #b9c9ea; padding: 6px 8px; font-size: 13px; border-radius: 6px; }
.subnav-side a i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.subnav-side a:hover, .subnav-side a.on { color: #fff; background: rgba(255, 255, 255, .07); }
.side-foot { padding: 14px 22px 18px; font-size: 12px; color: #9fb3dc; display: flex; align-items: center; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .07); }
.sf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.sf-dot.amber { background: var(--amber); } .sf-dot.red { background: var(--red); } .sf-dot.blue { background: #60a5fa; }
.scrim { display: none; }

/* ---------- Main + Topbar ---------- */
.main { margin-left: var(--side-w); min-height: 100vh; }
.topbar { position: relative; display: flex; align-items: center; gap: 16px; padding: 10px 22px; min-height: 84px; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.banner { position: absolute; right: 0; top: 0; height: 100%; width: 62%; pointer-events: none; }
.titles { position: relative; z-index: 1; }
.titles h1 { font-size: 27px; font-weight: 800; color: var(--navy); letter-spacing: -.3px; }
.subnav { display: flex; gap: 0; margin-top: 2px; font-size: 17px; }
.subnav a { color: #2f62b8; padding-right: 12px; margin-right: 12px; border-right: 1.5px solid #9db3d8; line-height: 1.1; }
.subnav a:last-child { border: 0; }
.subnav a:hover, .subnav a.on { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.top-right { position: relative; z-index: 1; margin-left: auto; display: flex; align-items: center; gap: 16px; background: rgba(255, 255, 255, .92); border-radius: 10px; padding: 8px 14px; box-shadow: var(--shadow); }
.datebox { display: flex; align-items: center; gap: 10px; padding-right: 16px; border-right: 1px solid var(--line); }
.datebox .ic { width: 26px; height: 26px; color: var(--navy); }
.datebox b, .netbox b, .user-btn b { display: block; font-size: 13.5px; font-weight: 600; }
.datebox small, .netbox small, .user-btn small { display: block; font-size: 11.5px; color: var(--muted); }
.netbox { display: flex; align-items: center; gap: 9px; border: 0; background: none; cursor: pointer; text-align: left; padding: 2px 16px 2px 0; border-right: 1px solid var(--line); }
.netbox .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); }
.netbox.green b { color: var(--green); }
.netbox.amber .dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); } .netbox.amber b { color: #b45309; }
.netbox.red .dot { background: var(--red); box-shadow: 0 0 0 3px rgba(239, 68, 68, .2); } .netbox.red b { color: var(--red); }
.netbox.blue .dot { background: #3b82f6; animation: pulse 1s infinite; } .netbox.blue b { color: var(--blue); }
.userbox { position: relative; }
.user-btn { display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; text-align: left; padding: 0; }
.uav { width: 36px; height: 36px; border-radius: 50%; background: #e0e9f8; display: grid; place-items: center; color: var(--navy); }
.uav .ic { width: 24px; height: 24px; }
.user-menu { display: none; position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 31, 61, .15); min-width: 190px; padding: 6px; z-index: 50; }
.userbox.open .user-menu { display: block; }
.user-menu a, .user-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; color: var(--ink); border-radius: 6px; cursor: pointer; text-align: left; }
.user-menu a:hover, .user-menu button:hover { background: var(--line-2); }
.user-menu .ic { width: 18px; height: 18px; color: var(--muted); }
.topbar .menu-btn { display: none; }
.notice { display: flex; align-items: center; gap: 10px; margin: 12px 20px 0; padding: 10px 14px; border-radius: 8px; background: #fff7e6; border: 1px solid #fde4b0; color: #7c4a03; font-size: 13.5px; }
.notice.off { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.notice .ic { width: 18px; height: 18px; }
.notice a { font-weight: 600; }
#view { padding: 14px 20px 30px; outline: none; }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 16px; }
.kpi { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius); color: #fff; min-height: 98px; box-shadow: 0 6px 18px rgba(15, 31, 61, .12); transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; right: -30px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 31, 61, .18); }
.kpi-ic .ic { width: 54px; height: 54px; }
.kpi > div { flex: 1; min-width: 0; }
.kpi-label { font-size: 14px; opacity: .95; }
.kpi-val { font-size: 30px; font-weight: 700; line-height: 1.15; display: flex; align-items: center; gap: 12px; }
.kpi-sub { font-size: 13px; opacity: .95; display: block; }
.kpi .bar { margin-top: 6px; height: 9px; background: rgba(255, 255, 255, .3); }
.trend { display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; color: #b6f5c9; }
.k-green .trend { color: #d1fae5; }
.trend .ic { width: 16px; height: 16px; }
.k-blue { background: linear-gradient(135deg, #1f74f5, #0f56d9); }
.k-green { background: linear-gradient(135deg, #15a85b, #0b8a4a); }
.k-orange { background: linear-gradient(135deg, #f9a21b, #f27a0c); }
.k-purple { background: linear-gradient(135deg, #6a5cf5, #5640df); }
.k-red { background: linear-gradient(135deg, #f44a63, #e12c47); }

/* ---------- Grid & Card ---------- */
.grid { display: grid; gap: 16px; margin-bottom: 16px; }
.row2 { grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); }
.row2 .tbl td { padding: 7px 8px; } .row2 .tbl th { padding: 8px; } .row2 .tbl td:nth-child(3) { white-space: nowrap; }
.row3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
.row4 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, .95fr); }
.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.detail { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; min-width: 0; margin-bottom: 16px; }
.grid > .card { margin-bottom: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-head h2 { font-size: 17px; font-weight: 700; color: var(--ink); }
.card-foot { padding-top: 10px; font-size: 12.5px; color: var(--muted); }
.btn-link { border: 1px solid #cfdcf3; color: var(--blue); background: #fff; padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.btn-link:hover { background: #eef4ff; }
.mini-select { border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; font-size: 13px; background: #fff; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { background: #f3f6fb; color: var(--ink-2); font-weight: 600; text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.c { text-align: center; }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl.compact td { padding: 6px 6px; font-size: 12.5px; }
.tbl.compact .avatar { width: 26px; height: 26px; font-size: 10px; margin-right: 6px; }
.tbl.compact .alat-ic { margin-right: 4px; }
.tbl.compact th { padding: 7px 6px; font-size: 12px; }
.tbl.hover tbody tr:hover { background: #f7faff; }
.tbl tr[data-go], .tbl tr[data-pick] { cursor: pointer; }
.tbl tr.sel { background: #eef4ff; }
.tbl td.act { white-space: nowrap; text-align: right; }
.tbl small.sub { display: block; color: var(--muted); font-size: 11.5px; margin-left: 38px; margin-top: -4px; }
.prog { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.prog b { min-width: 34px; }
.prog.big b { font-size: 18px; min-width: 50px; }
.bar { flex: 1; display: block; height: 10px; background: #e8edf4; border-radius: 6px; overflow: hidden; min-width: 60px; }
.bar i { display: block; height: 100%; border-radius: 6px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge.green { background: #d6f5df; color: #13753a; }
.badge.amber { background: #fde9a8; color: #8a5b00; }
.badge.red { background: #fee2e2; color: #b91c1c; }
.badge.blue { background: #dbeafe; color: #1d4ed8; }
.badge.gray { background: #e5e7eb; color: #475569; }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 11.5px; font-weight: 700; margin-right: 8px; vertical-align: middle; }
.alat-ic { display: inline-grid; place-items: center; width: 30px; height: 26px; margin-right: 8px; color: #e8a10b; vertical-align: middle; }
.alat-ic .ic { width: 28px; height: 28px; }
.plink { color: var(--ink-2); }
.plink:hover { color: var(--blue); text-decoration: underline; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
.dev { font-weight: 600; font-size: 12.5px; }
.dev.neg { color: var(--red); } .dev.pos { color: var(--green); }

/* ---------- Charts ---------- */
.donut-row { display: flex; align-items: center; gap: 18px; padding: 6px 4px; }
.donut { width: 168px; height: 168px; flex: none; }
.donut .seg { cursor: pointer; transition: opacity .15s; stroke: #fff; stroke-width: 1.2; }
.donut .seg:hover { opacity: .82; }
.donut-num { font-size: 26px; font-weight: 700; fill: var(--ink); }
.donut-sub { font-size: 12.5px; fill: var(--ink-2); }
.legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.legend li { display: flex; align-items: center; gap: 8px; padding: 3.5px 0; font-size: 13px; }
.legend li.clickable { cursor: pointer; border-radius: 4px; }
.legend li.clickable:hover { background: var(--line-2); }
.legend .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.legend .lg-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.legend b { min-width: 22px; text-align: right; }
.legend .lg-pct { color: var(--ink-2); min-width: 42px; }
.hbars { list-style: none; margin: 0; padding: 6px 0 0; }
.hbars li { display: grid; grid-template-columns: 140px 1fr 40px; align-items: center; gap: 10px; padding: 5.5px 0; font-size: 13.5px; cursor: pointer; }
.hbars li:hover span:first-child { color: var(--blue); }
.hbars li b { text-align: right; }
.hbars .bar { height: 14px; border-radius: 3px; }
.hbars .bar i { border-radius: 3px; }
.curve { width: 100%; height: auto; display: block; }
.curve .grid { stroke: #e8edf4; }
.curve .axis { font-size: 11px; fill: var(--muted); }
.curve .plan { fill: none; stroke: #94a3b8; stroke-width: 2; stroke-dasharray: 6 5; }
.curve .real { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linejoin: round; }
.curve .pt { fill: #fff; stroke: var(--blue); stroke-width: 2; }
.curve .today { stroke: var(--red); stroke-dasharray: 3 3; }
.curve-legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.curve-legend i { display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--blue); vertical-align: middle; margin-right: 6px; }
.curve-legend i.l-plan { border-top: 2px dashed #94a3b8; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 4px 0 0; }
.timeline li { display: grid; grid-template-columns: 82px 1fr; gap: 14px; position: relative; padding: 0 0 12px; }
.timeline li::before { content: ""; position: absolute; left: 96px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2.5px solid var(--blue); }
.timeline li::after { content: ""; position: absolute; left: 101px; top: 18px; bottom: 0; width: 1.5px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.green::before { border-color: var(--green); } .timeline li.amber::before { border-color: var(--amber); } .timeline li.red::before { border-color: var(--red); } .timeline li.purple::before { border-color: var(--purple); }
.timeline time { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.timeline div { padding-left: 16px; }
.timeline b { display: block; font-size: 13.5px; font-weight: 600; }
.timeline b a { color: var(--ink); }
.timeline b a:hover { color: var(--blue); }
.timeline small { color: var(--muted); font-size: 12px; }
.timeline.wide li { grid-template-columns: 140px 1fr; }
.timeline.wide li::before { left: 154px; } .timeline.wide li::after { left: 159px; }
.timeline .empty { display: block; }
.timeline .empty::before, .timeline .empty::after { display: none; }

/* ---------- Map ---------- */
.map-card { padding-bottom: 12px; display: flex; flex-direction: column; }
.map-box { position: relative; flex: 1; min-height: 270px; border-radius: 8px; overflow: hidden; background: #0f2a3d; }
.map-box.small { min-height: 180px; margin-top: 12px; }
.map-box.tall { min-height: 560px; }
.smap { position: absolute; inset: 0; cursor: grab; touch-action: none; user-select: none; }
.smap.grabbing { cursor: grabbing; }
.smap-svg { width: 100%; height: 100%; display: block; }
.smap .land path { fill: url(#land); stroke: #8fb58a; stroke-width: .8; }
.smap .border { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.smap-labels span, .smap-pins .pin { position: absolute; left: 0; top: 0; will-change: transform; }
.smap-labels span { color: rgba(255, 255, 255, .92); font-size: 13px; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); white-space: nowrap; pointer-events: none; }
.smap-labels .big { font-size: 14px; letter-spacing: .6px; font-weight: 700; }
.smap-labels .sea { font-style: italic; font-weight: 400; color: rgba(190, 220, 245, .7); font-size: 12px; }
.pin { border: 0; background: none; padding: 0; cursor: pointer; display: flex; align-items: flex-start; }
.pin svg { width: 24px; height: 32px; margin: -32px 0 0 -12px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .45)); transition: transform .12s; transform-origin: 50% 100%; }
.pin:hover svg { transform: scale(1.15); }
.pin b { color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; margin: -26px 0 0 4px; text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 6px rgba(0, 0, 0, .6); }
.map-ctrl { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; background: #fff; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); overflow: hidden; }
.map-ctrl button { width: 32px; height: 30px; border: 0; background: #fff; font-size: 18px; cursor: pointer; border-bottom: 1px solid var(--line); }
.map-ctrl button:last-child { border: 0; font-size: 15px; }
.map-ctrl button:hover { background: var(--line-2); }
.map-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; padding-top: 8px; color: var(--ink-2); }
.map-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.lmap { position: absolute; inset: 0; }
.lpin { background: none; border: 0; }
.lpin b { position: absolute; left: 26px; top: 4px; color: #fff; font-size: 12px; white-space: nowrap; text-shadow: 0 1px 3px #000; }
.peta-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
.loc-list { list-style: none; margin: 0; padding: 0; }
.loc-list a { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.loc-list a:hover { background: #f7faff; }
.loc-list div { flex: 1; min-width: 0; }
.loc-list small { display: block; color: var(--muted); font-size: 12px; }
.loc-list em { font-style: normal; font-weight: 700; color: var(--blue); }
.pin-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }

/* ---------- Page heads / toolbar ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 14px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head .back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; margin-bottom: 4px; }
.page-head .back .ic { width: 16px; height: 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; max-width: 240px; }
.chip { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; font-size: 12.5px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 8px; padding: 8px 14px; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.btn .ic { width: 18px; height: 18px; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-d); }
.btn.ghost { background: #fff; border-color: #d3dceb; color: var(--ink-2); }
.btn.ghost:hover { background: #f4f7fc; }
.btn.danger { background: var(--red); color: #fff; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn.block { width: 100%; margin-top: 8px; padding: 11px; }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; }
.seg .btn { border-radius: 6px; }
.icon-btn { border: 0; background: none; border-radius: 6px; padding: 6px; cursor: pointer; color: var(--muted); display: inline-flex; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn.sm { padding: 4px; } .icon-btn.sm .ic { width: 17px; height: 17px; }
.icon-btn.del:hover { color: var(--red); background: #fef2f2; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; min-width: 160px; }
.search { flex: 1; min-width: 220px; max-width: 420px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; }
.search .ic { color: var(--muted); width: 18px; height: 18px; }
.search input { border: 0; outline: 0; padding: 8px 0; flex: 1; background: none; min-width: 0; }

/* ---------- Paket cards ---------- */
.paket-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pcard { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--c); }
.pcard-main { display: block; padding: 14px 16px; color: var(--ink); }
.pcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding-right: 54px; }
.pcard h3 { font-size: 17px; }
.pcard .muted { display: flex; align-items: center; gap: 4px; margin: 4px 0 10px; font-size: 13px; }
.pcard .muted .ic { width: 15px; height: 15px; }
.pcard-stats { display: flex; gap: 14px; margin: 12px 0 8px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.pcard-stats span { display: inline-flex; align-items: center; gap: 5px; }
.pcard-stats .ic { width: 16px; height: 16px; color: var(--muted); }
.pcard-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 8px; }
.pcard-act { position: absolute; top: 10px; right: 10px; display: flex; }
.pcard-act + .pcard-main, .pcard .pcard-top .badge { margin-left: auto; }

/* ---------- Detail ---------- */
.mini-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mini-kpis > * { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; color: var(--ink); display: block; }
.mini-kpis a:hover { box-shadow: 0 0 0 2px #bfd3fb; }
.mini-kpis span { display: block; font-size: 12.5px; color: var(--muted); }
.mini-kpis b { display: block; font-size: 24px; font-weight: 700; margin: 2px 0 4px; }
.mini-kpis b.sm { font-size: 18px; margin: 6px 0 6px; }
.mini-kpis small { font-size: 12px; color: var(--muted); }
.mini-kpis .bar { height: 8px; }
.info { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; margin: 0; font-size: 13.5px; }
.info dt { color: var(--muted); } .info dd { margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px 0 10px; flex-wrap: wrap; align-items: center; }
.tab { border: 0; background: none; padding: 10px 14px; cursor: pointer; color: var(--muted); font-weight: 600; border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.tab.on { color: var(--blue); border-bottom-color: var(--blue); }
.push { margin-left: auto; }

/* ---------- Sync ---------- */
.sync-hero { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px; border-left: 5px solid var(--green); }
.sync-hero h2 { font-size: 19px; } .sync-hero p { margin: 3px 0 0; color: var(--muted); }
.big-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(22, 163, 74, .18); flex: none; }
.sync-hero.amber { border-color: var(--amber); } .sync-hero.amber .big-dot { background: var(--amber); box-shadow: 0 0 0 6px rgba(245, 158, 11, .2); }
.sync-hero.red { border-color: var(--red); } .sync-hero.red .big-dot { background: var(--red); box-shadow: 0 0 0 6px rgba(239, 68, 68, .18); }
.sync-hero.blue { border-color: var(--blue); } .sync-hero.blue .big-dot { background: var(--blue); animation: pulse 1s infinite; }
.log { list-style: none; padding: 0; margin: 0; max-height: 360px; overflow: auto; }
.log li { display: flex; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line-2); }
.log li.ok .ic { color: var(--green); } .log li.err .ic { color: var(--red); }
.log b { display: block; font-weight: 500; font-size: 13.5px; } .log small { color: var(--muted); font-size: 12px; }

/* ---------- Settings ---------- */
.profile { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.profile .avatar { width: 46px; height: 46px; font-size: 16px; }
.profile b { display: block; font-size: 16px; } .profile small { color: var(--muted); }
.card h4 { font-size: 14px; margin: 6px 0 10px; }
.row-end { display: flex; justify-content: flex-end; align-items: center; margin-top: 10px; }
.data-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.data-actions > div { border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.data-actions p { color: var(--muted); font-size: 13px; margin: 4px 0 10px; }

/* ---------- Forms & Modal ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.fld { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.fld.full { grid-column: 1 / -1; }
.fld > span { font-weight: 600; color: var(--ink-2); }
.fld em { color: var(--red); font-style: normal; }
.fld small { color: var(--muted); font-size: 11.5px; }
.fld input, .fld select, .fld textarea { border: 1px solid #cfd8e6; border-radius: 7px; padding: 9px 10px; background: #fff; outline: none; width: 100%; }
.fld input[type=color] { padding: 3px; height: 40px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.fld .invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }
.range-row { display: flex; gap: 10px; align-items: center; }
.range-row input[type=range] { flex: 1; padding: 0; border: 0; box-shadow: none; accent-color: var(--blue); }
.range-num { width: 90px !important; }
.modal-wrap { position: fixed; inset: 0; background: rgba(10, 25, 50, .5); display: grid; place-items: center; z-index: 100; padding: 16px; opacity: 0; transition: opacity .15s; }
.modal-wrap.show { opacity: 1; }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal.wide { max-width: 720px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 16px 18px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.confirm-text { margin: 0; font-size: 15px; }
#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { display: flex; align-items: center; gap: 10px; background: #0f1f3d; color: #fff; padding: 11px 16px; border-radius: 9px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: 380px; font-size: 13.5px; animation: tin .2s ease-out; transition: opacity .3s, transform .3s; }
.toast .ic { color: #4ade80; width: 18px; height: 18px; }
.toast.error .ic { color: #f87171; } .toast.info .ic { color: #60a5fa; }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Login ---------- */
#login { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; background: radial-gradient(1200px 600px at 80% -10%, #1e4fa8 0%, transparent 60%), linear-gradient(160deg, #0b2552, #081a3b); }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 14px; padding: 28px 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.login-brand b { display: block; font-size: 21px; color: var(--navy); }
.login-brand small { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.login-card h1 { font-size: 22px; color: var(--navy); }
.login-card > p { margin: 4px 0 16px; }
.login-card .notice { margin: 0 0 14px; }
.login-card form { display: flex; flex-direction: column; gap: 12px; }
.login-net { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; min-height: 18px; }
.login-net .ic { width: 16px; height: 16px; }
.login-net .err { color: var(--red); }

/* ---------- Report ---------- */
.report { padding: 28px 32px; }
.rep-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 3px double var(--navy); padding-bottom: 12px; margin-bottom: 16px; }
.rep-logo { display: flex; align-items: center; gap: 10px; }
.rep-logo b { display: block; font-size: 20px; color: var(--navy); } .rep-logo small { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.rep-title { text-align: right; } .rep-title h2 { font-size: 16px; color: var(--navy); } .rep-title p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.report h3 { font-size: 14.5px; margin: 20px 0 8px; color: var(--navy); }
.rep-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.rep-kpis div { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.rep-kpis span { display: block; font-size: 12px; color: var(--muted); } .rep-kpis b { font-size: 20px; }
.tbl.rep th, .tbl.rep td { border: 1px solid #d7deea; padding: 6px 8px; font-size: 12.5px; }
.tbl.rep.small td, .tbl.rep.small th { font-size: 11.5px; padding: 4px 6px; }
.tbl.kv th { width: 120px; background: #f3f6fb; }
.rep-curve { max-width: 760px; }
.rep-sign { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 30px; font-size: 13px; }
.rep-sign p { margin: 2px 0; }
.sign { text-align: center; min-width: 220px; } .sign .sp { height: 64px; }

/* ---------- Responsive ---------- */
@media (max-width: 1500px) {
  .kpi-val { font-size: 26px; } .kpi-ic .ic { width: 44px; height: 44px; } .kpi { gap: 12px; padding: 14px; }
  .row4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .row4 > :last-child { grid-column: 1 / -1; }
  .donut { width: 140px; height: 140px; }
}
@media (max-width: 1440px) {
  .row2 { grid-template-columns: 1fr; } .map-card .map-box { min-height: 380px; }
  .row3 { grid-template-columns: 1fr 1fr; } .row3 > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .banner { width: 45%; }
  .subnav { font-size: 15px; }
}
@media (max-width: 1024px) {
  :root { --side-w: 260px; }
  .sidebar { transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 39; }
  .main { margin-left: 0; }
  .topbar .menu-btn { display: inline-flex; position: relative; z-index: 2; }
  .menu-btn .ic { width: 26px; height: 26px; color: var(--navy); }
  .datebox { display: none; }
  .detail, .two, .peta-layout { grid-template-columns: 1fr; }
  .rep-kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  #view { padding: 12px 10px 24px; }
  .topbar { padding: 8px 10px; min-height: 64px; gap: 8px; flex-wrap: wrap; }
  .titles h1 { font-size: 19px; } .subnav { font-size: 13px; } .subnav a { padding-right: 8px; margin-right: 8px; }
  .top-right { padding: 6px 8px; gap: 8px; }
  .netbox { padding-right: 8px; } .netbox small, .user-btn div, .user-btn > .ic:last-child { display: none; }
  .banner { width: 100%; opacity: .45; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { min-height: 84px; padding: 12px; gap: 8px; } .kpi-ic .ic { width: 32px; height: 32px; } .kpi-val { font-size: 22px; } .kpi-label, .kpi-sub { font-size: 12px; }
  .kpis > :last-child { grid-column: 1 / -1; }
  .row3, .row4 { grid-template-columns: 1fr; } .row3 > :last-child, .row4 > :last-child { grid-column: auto; }
  .donut-row { flex-direction: column; } .legend { width: 100%; }
  .hbars li { grid-template-columns: 120px 1fr 38px; }
  .form-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 19px; }
  .report { padding: 16px; } .rep-head { flex-direction: column; align-items: flex-start; } .rep-title { text-align: left; }
  .rep-kpis { grid-template-columns: 1fr 1fr; }
  .map-box.tall { min-height: 420px; }
  .timeline li { grid-template-columns: 70px 1fr; } .timeline li::before { left: 82px; } .timeline li::after { left: 87px; }
  .timeline.wide li { grid-template-columns: 100px 1fr; } .timeline.wide li::before { left: 112px; } .timeline.wide li::after { left: 117px; }
}

/* ---------- Print ---------- */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .sidebar, .topbar, #banner, .no-print, #toasts, .scrim { display: none !important; }
  .main { margin: 0; } #view { padding: 0; }
  .card { box-shadow: none; padding: 0; }
  .report h3 { break-after: avoid; } .tbl tr { break-inside: avoid; }
}
