/* SIMPEL – tampilan */
@font-face { font-family: "InterV"; src: url(../fonts/inter-var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --navy: #0F2238; --navy-2: #172E4A; --navy-3: #22406A; --ink: #14202E; --ink-2: #3F4A57; --muted: #6B6E73;
  --paper: #F5F4F0; --card: #FFFFFF; --line: #E2DED5; --line-2: #EDEAE3;
  --brass: #9C7228; --brass-2: #C9A25A; --brass-soft: #F4ECDC;
  --blue: #2A78D6; --blue-soft: #E7F0FB; --good: #1E7A45; --good-soft: #E3F3E9; --warn: #9A6400; --warn-soft: #FCF1DA;
  --bad: #B23A2E; --bad-soft: #FBE7E4; --radius: 12px; --shadow: 0 1px 2px rgba(15,34,56,.06), 0 4px 16px rgba(15,34,56,.05);
  --sb: 248px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: InterV, "Segoe UI", Roboto, Arial, sans-serif; font-size: 14.5px; line-height: 1.5; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--blue); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--navy); letter-spacing: -.01em; margin: 0 0 .4em; }
h1 { font-size: 24px; font-weight: 700; } h2 { font-size: 18px; font-weight: 650; } h3 { font-size: 15px; font-weight: 650; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .num { font-variant-numeric: tabular-nums; }
.right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }

/* ---------- Sidebar */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sb); background: var(--navy); color: #C9D3DF; display: flex; flex-direction: column; z-index: 40; }
.brand { display: flex; gap: 12px; align-items: center; padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(145deg, var(--brass-2), var(--brass)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; }
.brand-name { color: #fff; font-weight: 800; letter-spacing: .08em; font-size: 15px; }
.brand-sub { font-size: 11.5px; color: #93A3B8; line-height: 1.3; }
.nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.nav-sep { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: #7C8DA4; padding: 16px 12px 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: #C9D3DF; font-weight: 500; margin-bottom: 2px; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.nav-item.active { background: rgba(201,162,90,.16); color: #fff; box-shadow: inset 3px 0 0 var(--brass-2); }
.nav-item .badge { margin-left: auto; background: var(--brass-2); color: var(--navy); font-size: 11px; padding: 1px 7px; border-radius: 99px; }
.sidebar-foot { padding: 12px 10px 16px; border-top: 1px solid rgba(255,255,255,.07); }
.me { display: flex; gap: 10px; align-items: center; padding: 6px 10px 12px; }
.me-name { color: #fff; font-weight: 600; font-size: 13px; } .me-role { font-size: 11.5px; color: #93A3B8; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy-3); color: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.avatar.sm { width: 30px; height: 30px; font-size: 13px; }
.main { margin-left: var(--sb); padding: 28px 32px 48px; min-height: 100vh; max-width: 1500px; }
.main-bare { min-height: 100vh; }
.topbar, .scrim, .bottomnav { display: none; }

/* ---------- Page */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 2px 0 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 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)); }
.span2 { grid-column: span 2; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- KPI */
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 15px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent, var(--blue)); }
.kpi .lbl { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kpi .val { font-size: 30px; font-weight: 750; color: var(--navy); letter-spacing: -.02em; line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.up { color: var(--good); font-weight: 600; } .down { color: var(--bad); font-weight: 600; }

/* ---------- Chips & buttons */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-good { background: var(--good-soft); color: var(--good); } .chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-bad { background: var(--bad-soft); color: var(--bad); } .chip-muted { background: #EEECE7; color: #5E5B55; } .chip-blue { background: var(--blue-soft); color: #1D5BA6; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn:hover { border-color: #C9C3B6; background: #FBFAF7; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; } .btn-primary:hover { background: var(--navy-2); }
.btn-brass { background: var(--brass); border-color: var(--brass); color: #fff; } .btn-brass:hover { background: #87621F; }
.btn-good { background: var(--good); border-color: var(--good); color: #fff; } .btn-bad { background: #fff; border-color: #E6B9B3; color: var(--bad); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 8px; } .btn-lg { height: 50px; font-size: 16px; padding: 0 22px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 5px; } .field.full { grid-column: 1 / -1; }
label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.req::after { content: " *"; color: var(--bad); }
input[type=text], input[type=password], input[type=date], input[type=time], input[type=number], input[type=email], input[type=month], input[type=search], select, textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid #D5D0C5; border-radius: 9px; padding: 9px 12px; width: 100%; min-height: 40px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42,120,214,.15); }
.hint { font-size: 12px; color: var(--muted); } .err { font-size: 12.5px; color: var(--bad); font-weight: 600; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--bad); }
.check { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.seg { display: inline-flex; border: 1px solid #D5D0C5; border-radius: 10px; overflow: hidden; flex-wrap: wrap; }
.seg label { padding: 9px 14px; cursor: pointer; font-weight: 600; color: var(--ink-2); border-right: 1px solid #E5E1D8; display: flex; gap: 6px; align-items: center; }
.seg label:last-child { border-right: 0; } .seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { color: #fff; } .seg label:has(input:checked) { background: var(--navy); color: #fff; }
.seg label.s-bad:has(input:checked) { background: var(--bad); } .seg label.s-good:has(input:checked) { background: var(--good); } .seg label.s-warn:has(input:checked) { background: #B7791F; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters .field { min-width: 150px; }

/* ---------- Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 11px 12px; background: #FAF9F6; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.t tr:last-child td { border-bottom: 0; } .t tbody tr:hover { background: #FCFBF8; }
.t .clip { max-width: 380px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.t tfoot td { font-weight: 700; background: #FAF9F6; border-top: 1px solid var(--line); }
.bar-cell { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.bar-cell .track { flex: 1; height: 8px; background: #EEEBE4; border-radius: 99px; overflow: hidden; }
.bar-cell .fill { height: 100%; border-radius: 99px; }

.pager { display: flex; gap: 6px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.pager a, .pager .cur { padding: 5px 11px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 13px; }
.pager .cur { background: var(--navy); color: #fff; border-color: var(--navy); } .pager .muted { margin-left: 8px; font-size: 12.5px; }

.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 500; border: 1px solid; }
.flash-ok { background: var(--good-soft); border-color: #BFE2CD; color: #165C35; } .flash-err { background: var(--bad-soft); border-color: #EFC3BD; color: #8D2C22; }
.flash-warn { background: var(--warn-soft); border-color: #F0D9A6; color: #6E4A00; } .flash-info { background: var(--blue-soft); border-color: #C6DBF3; color: #1D4F8C; }

/* ---------- Detail */
.dl { display: grid; grid-template-columns: 170px 1fr; gap: 9px 16px; margin: 0; }
.dl dt { color: var(--muted); font-size: 13px; } .dl dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.photos a, .photos .ph { display: block; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: #ECE9E2; border: 1px solid var(--line); position: relative; }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos .drive { display: grid; place-items: center; font-size: 12px; color: var(--ink-2); text-align: center; padding: 8px; height: 100%; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 0 0 14px 20px; position: relative; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--brass); }
.timeline .when { font-size: 12px; color: var(--muted); }
.map { height: 420px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 1; }
.map.tall { height: calc(100vh - 210px); min-height: 520px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.chart-box { position: relative; height: 280px; } .chart-box.tall { height: 360px; }
.cal { border-collapse: separate; border-spacing: 2px; font-size: 11px; }
.cal td { width: 18px; height: 18px; border-radius: 3px; text-align: center; color: #fff; }
.cal th { font-weight: 500; color: var(--muted); padding: 0 2px; } .cal .nm { text-align: right; padding-right: 8px; white-space: nowrap; color: var(--ink); font-size: 12px; width: auto; }

/* ---------- Login */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: radial-gradient(1200px 600px at 10% 10%, #22406A 0%, #0F2238 55%); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(201,162,90,.35); box-shadow: 0 0 0 60px rgba(201,162,90,.06), 0 0 0 140px rgba(201,162,90,.04); }
.login-art h1 { color: #fff; font-size: 40px; line-height: 1.1; max-width: 520px; }
.login-art .kick { color: var(--brass-2); letter-spacing: .18em; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.login-box { display: grid; place-items: center; padding: 32px; }
.login-card { width: 100%; max-width: 380px; }

/* ---------- Field (mobile) */
.hero { background: var(--navy); color: #fff; border-radius: 16px; padding: 22px; position: relative; overflow: hidden; }
.hero h1 { color: #fff; font-size: 22px; } .hero .muted { color: #AEB9C6; }
.hero::after { content: ""; position: absolute; right: -50px; top: -50px; width: 180px; height: 180px; border-radius: 50%; background: rgba(201,162,90,.18); }
.bigbtns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.bigbtn { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 700; box-shadow: var(--shadow); }
.bigbtn:hover { text-decoration: none; border-color: var(--brass-2); }
.bigbtn small { font-weight: 500; color: var(--muted); }
.section-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 14px; }
.section-card > h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.section-card > h3 .n { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; display: grid; place-items: center; }
.gps-box { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #FAF9F6; border: 1px dashed #D5D0C5; font-size: 13px; }
.gps-box.ok { background: var(--good-soft); border-color: #BFE2CD; border-style: solid; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ph-item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #EEE; }
.ph-item img { width: 100%; height: 100%; object-fit: cover; }
.ph-item button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(15,34,56,.75); color: #fff; cursor: pointer; }
.ph-add { aspect-ratio: 1; border: 2px dashed #CFC9BD; border-radius: 10px; display: grid; place-items: center; color: var(--muted); cursor: pointer; text-align: center; font-size: 12px; }
.mp-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(to top, var(--paper) 70%, rgba(245,244,240,0)); padding: 14px 0 6px; display: flex; gap: 10px; z-index: 5; }
.list-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; color: inherit; }
.list-card:hover { text-decoration: none; border-color: #CFC9BD; }
.list-card .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 4px; }
.draft-note { font-size: 12.5px; color: var(--warn); }

@media (max-width: 1100px) { .g4, .g6 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; } body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 30; }
  .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; height: 56px; padding: 0 14px; }
  .menu-btn { background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
  .topbar-title { flex: 1; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .main { margin-left: 0; padding: 16px 14px 90px; }
  .g2, .g3, .g4, .g6, .form-grid { grid-template-columns: minmax(0,1fr); } .span2 { grid-column: auto; }
  .mp-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .login-wrap { grid-template-columns: 1fr; } .login-art { padding: 32px 24px; min-height: 220px; } .login-art h1 { font-size: 28px; }
  .dl { grid-template-columns: 1fr; gap: 2px 0; } .dl dd { margin-bottom: 8px; }
  .role-petugas .bottomnav { display: flex; position: fixed; inset: auto 0 0 0; background: #fff; border-top: 1px solid var(--line); z-index: 25; padding-bottom: env(safe-area-inset-bottom); }
  .bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; font-size: 11px; color: var(--muted); font-weight: 600; }
  .bottomnav a.active { color: var(--navy); } .bottomnav a:hover { text-decoration: none; }
  .role-petugas .sticky-actions { bottom: 62px; }
  .kpi .val { font-size: 24px; }
  .map.tall { height: 70vh; }
}
@media print {
  .sidebar, .topbar, .bottomnav, .no-print, .actions, .filters, .flash { display: none !important; }
  .main { margin: 0; padding: 0; max-width: none; } body { background: #fff; font-size: 11px; }
  .card { box-shadow: none; border: 0; padding: 0; } .table-wrap { border: 0; } .t th, .t td { padding: 4px 6px; }
  @page { size: A4 landscape; margin: 12mm; }
}

/* ---------- Mind map sistem */
.mm-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.mm-toolbar .hint { margin-left: 6px; }
.mm-stage { position: relative; height: calc(100vh - 200px); min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(ellipse at 50% 46%, #FFFFFF 0%, #F8F6F1 52%, #EEEAE1 100%); box-shadow: var(--shadow); }
.mm-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(15,34,56,.09) 1px, transparent 1px); background-size: 22px 22px; }
.mm-stage svg { position: relative; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; user-select: none; }
.mm-stage svg.grabbing { cursor: grabbing; }
.mm-n { cursor: pointer; transition: opacity .35s; }
.mm-n > rect:first-child { transition: filter .2s; }
.mm-n:hover > rect:first-child, .mm-n:focus-visible > rect:first-child { filter: drop-shadow(0 4px 10px rgba(15,34,56,.2)); }
.mm-n:focus { outline: none; }
.mm-n.sel > rect:first-child { stroke: #C9A25A; stroke-width: 3; }
.mm-d0 > rect:first-child { filter: drop-shadow(0 8px 22px rgba(15,34,56,.28)); }
.mm-d1 > rect:first-child { filter: drop-shadow(0 3px 8px rgba(15,34,56,.16)); }
.mm-l { transition: opacity .35s; }
.mm-dim { opacity: .14 !important; }
.mm-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .13em; color: var(--brass); font-weight: 700; }
.mm-detail { position: absolute; top: 16px; right: 16px; width: 310px; max-width: calc(100% - 32px); background: rgba(255,255,255,.97); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 10px 34px rgba(15,34,56,.16); padding: 16px 18px 18px; z-index: 3; }
.mm-detail h3 { font-size: 17px; margin: 4px 0 2px; }
.mm-detail p { margin: 8px 0 12px; color: var(--ink-2); font-size: 13.5px; }
.mm-det-sub { font-size: 13px; color: var(--muted); font-weight: 600; }
.mm-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.mm-zoom { position: absolute; right: 16px; bottom: 16px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); z-index: 2; }
.mm-zoom button { width: 36px; height: 34px; border: 0; background: #fff; font-size: 17px; color: var(--navy); cursor: pointer; }
.mm-zoom button + button { border-top: 1px solid var(--line-2); }
.mm-zoom button:hover { background: var(--brass-soft); }
.mm-ptitle { position: absolute; top: 26px; left: 34px; z-index: 2; pointer-events: none; }
.mm-ptitle h2 { font-size: 28px; font-weight: 750; margin: 4px 0 0; }
.mm-bar { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; z-index: 4;
  background: var(--navy); color: #fff; border-radius: 99px; padding: 8px; box-shadow: 0 10px 34px rgba(15,34,56,.32); }
.mm-bar > button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 22px; cursor: pointer; }
.mm-bar > button:hover { background: rgba(201,162,90,.35); }
.mm-bar .mm-exit { width: auto; border-radius: 99px; padding: 0 16px; font-size: 13px; font-weight: 600; }
.mm-bar-mid { min-width: 260px; text-align: center; padding: 0 6px; }
.mm-bar-title { font-size: 13px; font-weight: 600; white-space: nowrap; }
.mm-dots { display: flex; gap: 5px; justify-content: center; margin-top: 5px; }
.mm-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.28); cursor: pointer; transition: width .25s, background .25s; }
.mm-dots button.on { width: 20px; background: var(--brass-2); }
.mm-stage.is-present { position: fixed; inset: 0; z-index: 300; height: auto; min-height: 0; border: 0; border-radius: 0; }
.mm-stage.is-present .mm-zoom { bottom: 22px; }
.mm-stage:fullscreen { width: 100vw; height: 100vh; }
@media (max-width: 760px) { .mm-stage { height: calc(100vh - 230px); } .mm-detail { top: auto; bottom: 64px; } .mm-bar-mid { min-width: 150px; } .mm-bar-title { white-space: normal; } }
.mm-ptitle { max-width: min(640px, 60vw); }
.mm-ptitle p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* ---------- Area & pekerjaan */
.seg-sm label { padding: 7px 11px; font-size: 13px; }
.area-active { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 14px; }
.print-only { display: none; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 0 0 12px; } .kv dt { color: var(--muted); font-size: 13px; } .kv dd { margin: 0; }
.jchip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: color-mix(in srgb, var(--c) 13%, #fff); color: color-mix(in srgb, var(--c) 78%, #14202E); margin: 1px 0; }
.jchip::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
table.mx { font-size: 13px; }
.mx th.mx-c { text-transform: none; letter-spacing: 0; font-size: 11px; line-height: 1.25; white-space: normal; min-width: 84px; max-width: 100px; vertical-align: bottom; text-align: center; }
.mx-dot { display: block; width: 18px; height: 4px; border-radius: 2px; margin: 0 auto 5px; }
.mx th.mx-l, .mx td.mx-l { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 210px; box-shadow: 1px 0 0 var(--line-2); }
.mx th.mx-l { background: #FAF9F6; }
.mx td.mx-v { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; padding: 8px 6px; border-left: 2px solid #fff; }
.mx td.mx-0 { color: #D5D0C5; font-weight: 400; }
.mx tbody tr, .st tbody tr { cursor: pointer; }
.mx tbody tr:hover td.mx-l, .st tbody tr:hover td { background: #FBF8F1; }
.map-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font-size: 13px; color: var(--ink-2);
  background: rgba(245,244,240,.86); border-radius: 10px; z-index: 500; }
.drawer-scrim { position: fixed; inset: 0; background: rgba(15,34,56,.28); z-index: 90; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--paper); z-index: 100; box-shadow: -12px 0 40px rgba(15,34,56,.22);
  display: flex; flex-direction: column; animation: drawerIn .22s ease-out; }
@keyframes drawerIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 2px 0; font-size: 20px; }
.drawer-x { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; align-self: flex-start; }
.drawer-body { overflow-y: auto; padding: 16px 22px 28px; }
.drawer-body h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 18px 0 8px; }
.d-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.d-stats div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; text-align: center; }
.d-stats b { display: block; font-size: 19px; color: var(--navy); font-variant-numeric: tabular-nums; } .d-stats span { font-size: 11px; color: var(--muted); }
.d-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.d-spark { display: flex; align-items: flex-end; gap: 2px; height: 54px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.d-spark i { flex: 1; background: var(--blue); border-radius: 2px 2px 0 0; min-width: 2px; }
.d-spark-l { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 3px; }
.d-bar { display: grid; grid-template-columns: 170px 1fr 40px; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 5px; }
.d-bar i { height: 10px; background: #ECE9E2; border-radius: 5px; overflow: hidden; } .d-bar b { display: block; height: 100%; border-radius: 5px; }
.d-bar em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.d-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.d-list { display: flex; flex-direction: column; gap: 8px; }
.d-item { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--ink); }
.d-item:hover { border-color: var(--brass-2); text-decoration: none; }
.d-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; }
.d-loc { font-size: 12.5px; margin-top: 3px; font-weight: 600; color: var(--ink-2); }
.d-txt { font-size: 13px; color: var(--ink-2); margin: 3px 0 6px; white-space: pre-line; }
@media (max-width: 760px) { .d-stats { grid-template-columns: repeat(3, 1fr); } .d-bar { grid-template-columns: 120px 1fr 34px; } .mx th.mx-l, .mx td.mx-l { min-width: 150px; } }
@media print { .print-only { display: block !important; } .drawer, .drawer-scrim, .area-active { display: none !important; } .mx td.mx-v { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .jchip { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }

/* ---------- Permasalahan per jenis pekerjaan (dashboard) */
.ms-ctl { display: flex; gap: 10px; flex-wrap: wrap; margin: -4px 0 10px; }
.ms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ms-col { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #FCFBF8; }
.ms-h { display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; flex-wrap: wrap; } .ms-h b { font-size: 18px; color: var(--navy); }
.ms-it { display: block; padding: 7px 0; border-top: 1px solid var(--line-2); color: var(--ink); font-size: 13px; } .ms-it:hover { text-decoration: none; background: #fff; }
@media (max-width: 1100px) { .ms-grid { grid-template-columns: minmax(0, 1fr); } }

.ms-tip { font-size: 12px; color: var(--brass); font-weight: 600; margin: 6px 0 0; }
.ms-h .ms-kon { margin-left: auto; height: 26px; padding: 0 9px; font-size: 12px; }
.ms-nav { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ms-kt tbody tr { cursor: pointer; } .ms-kt tbody tr:hover td { background: #FBF8F1; } .ms-kt tr.sel td { background: var(--brass-soft); }
.ms-kt tr.ms-clean td { color: var(--muted); }
.ms-bar { height: 9px; background: #ECE9E2; border-radius: 5px; overflow: hidden; margin-top: 5px; } .ms-bar i { display: block; height: 100%; border-radius: 5px; }
.d-kal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.d-kal i { font-style: normal; text-align: center; font-size: 12px; padding: 6px 0; border-radius: 6px; font-weight: 600; color: var(--ink-2); background: #ECE9E2; }
.d-kal i.k-lapor { background: #1E7A45; color: #fff; } .d-kal i.k-tidak { background: #F2C8C2; color: #8E2A20; }
/* ---------- Alur proses (swimlane) */
.af-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.af-toolbar .hint { margin-left: 6px; }
.af-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 10px; }
.af-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 22px; height: 13px; border-radius: 4px; }
.lg-start { background: var(--navy); border-radius: 7px; } .lg-step { background: #fff; border: 1.5px solid #CBD2DA; box-shadow: inset 3px 0 0 var(--blue); }
.lg-dec { width: 13px; height: 13px; background: var(--brass-soft); border: 1.5px solid var(--brass); transform: rotate(45deg); border-radius: 2px; margin: 0 4px; }
.lg-state { background: var(--blue-soft); border: 2px solid var(--blue); border-radius: 7px; }
.lg-line, .lg-back, .lg-alt { height: 0; border-radius: 0; border-top: 2px solid #3F4A57; } .lg-back { border-top: 2px dashed var(--brass); } .lg-alt { border-top: 2px dashed var(--blue); }
.af-stage { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: #FBFAF7; overflow: hidden; }
.af-scroll { overflow: auto; max-height: calc(100vh - 250px); min-height: 420px; }
.af-scroll svg { display: block; }
.af-n { cursor: pointer; transition: opacity .35s; } .af-n:focus { outline: none; }
.af-n:hover > :first-child, .af-n:focus-visible > :first-child { filter: drop-shadow(0 4px 10px rgba(15,34,56,.22)); }
.af-n.sel > :first-child { stroke: #C9A25A; stroke-width: 3.5; }
.af-e, .af-el { transition: opacity .35s; }
.af-dim { opacity: .13; }
.af-det-k { font-weight: 700; color: var(--brass); margin: -4px 0 12px; }
.af-ptitle { position: absolute; top: 22px; left: 30px; right: 30px; z-index: 2; pointer-events: none; background: rgba(251,250,247,.92); padding: 10px 14px; border-radius: 12px; max-width: 760px; box-shadow: var(--shadow); }
.af-ptitle h2 { font-size: 26px; font-weight: 750; margin: 4px 0 2px; } .af-ptitle p { margin: 0; color: var(--ink-2); font-size: 15px; }
.af-stage.is-present { position: fixed; inset: 0; z-index: 300; border: 0; border-radius: 0; }
.af-stage.is-present .af-scroll { max-height: none; height: 100vh; overflow: hidden; }
.af-stage.is-present .af-scroll svg { width: 100% !important; height: calc(100vh - 0px) !important; }
.af-stage.is-present .mm-detail { top: auto; bottom: 90px; }
.af-stage:fullscreen { width: 100vw; height: 100vh; }
@media (max-width: 760px) { .af-ptitle h2 { font-size: 19px; } .af-ptitle p { font-size: 13px; } }
