/* ===== KRP Admin Dashboard ===== */
:root {
  --as-w: 258px;
  --as-bg: #0B203A;
  --as-bg2: #0F2949;
  --as-line: rgba(255,255,255,.08);
  --gold: #D6A43A;
  --gold2: #F2C568;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.adm-body {
  background: #F2F5FA;
  color: #0E1B2C;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.hidden { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- AUTH ---------- */
.adm-auth { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }
.aa-art { position: relative; overflow: hidden; background: #0B203A; }
.aa-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.aa-veil { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(8,24,44,.82), rgba(8,24,44,.96) 55%, rgba(214,164,58,.18)); }
.aa-brand { position: absolute; top: 34px; left: 38px; display: flex; gap: 12px; align-items: center; z-index: 2; }
.aa-brand img { width: 42px; height: 42px; object-fit: contain; }
.aa-brand strong { display: block; color: #fff; font-size: 12.5px; letter-spacing: .13em; line-height: 1.3; }
.aa-brand small { color: rgba(233,240,248,.62); font-size: 8.5px; letter-spacing: .2em; }
.aa-quote { position: absolute; left: 38px; right: 38px; bottom: 96px; z-index: 2; }
.aa-tag { display: inline-block; padding: 5px 12px; border-radius: 100px; background: rgba(214,164,58,.16); border: 1px solid rgba(214,164,58,.4); color: #F2C568; font-size: 9px; letter-spacing: .18em; font-weight: 700; }
.aa-quote h1 { color: #fff; font-size: 40px; line-height: 1.12; letter-spacing: -.6px; margin: 16px 0 12px; font-weight: 800; }
.aa-quote p { color: rgba(226,235,246,.72); font-size: 13.5px; line-height: 1.7; max-width: 430px; margin: 0; }
.aa-stats { display: flex; gap: 34px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.aa-stats b { display: block; color: #F2C568; font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.aa-stats small { color: rgba(226,235,246,.6); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.aa-foot { position: absolute; bottom: 34px; left: 38px; color: rgba(214,164,58,.6); font-size: 9px; letter-spacing: .28em; z-index: 2; }

.aa-form { display: grid; place-items: center; padding: 40px 28px; background: #fff; }
.aa-card { width: 100%; max-width: 372px; }
.aa-logo { width: 88px; height: 88px; object-fit: contain; display: block; margin-bottom: 16px; }
.aa-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin: 0 0 6px; }
.aa-sub { font-size: 12.5px; color: #6B7A90; margin: 0 0 22px; }
.aa-card .fg { margin-bottom: 13px; }
.aa-card .fg label { font-size: 11px; font-weight: 700; color: #3B4A5E; display: block; margin-bottom: 6px; letter-spacing: .01em; }
.aa-card .fg input { width: 100%; height: 44px; border: 1px solid #E1E8F2; border-radius: 11px; padding: 0 13px; font-size: 13px; background: #FAFCFF; color: #0E1B2C; outline: none; transition: .15s; }
.aa-card .fg input:focus { border-color: #1C4776; background: #fff; box-shadow: 0 0 0 3px rgba(28,71,118,.08); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px !important; }
.pw-wrap button { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; background: transparent; color: #7C8CA2; cursor: pointer; display: grid; place-items: center; border-radius: 8px; }
.pw-wrap button:hover { background: #F1F5FA; color: #1C4776; }
.aa-err { min-height: 18px; color: #E5484D; font-size: 11.5px; font-weight: 600; margin: 2px 0 8px; }
.aa-card .btn-block { height: 46px; font-size: 13.5px; }
.aa-demo { margin-top: 16px; background: #F7FAFD; border: 1px dashed #DCE5F0; border-radius: 11px; padding: 11px 13px; font-size: 11px; color: #5A6B80; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.aa-demo span { font-weight: 700; color: #33455C; }
.aa-demo code { background: #fff; border: 1px solid #E4EBF4; border-radius: 6px; padding: 2px 6px; font-size: 10.5px; color: #1C4776; }
.aa-demo button { margin-left: auto; border: 0; background: #0B203A; color: #fff; font-size: 10.5px; font-weight: 700; padding: 6px 11px; border-radius: 7px; cursor: pointer; }
.aa-note { font-size: 10.5px; color: #93A2B5; text-align: center; margin-top: 18px; line-height: 1.6; }

/* ---------- SHELL ---------- */
.adm-shell { display: flex; min-height: 100vh; }
.adm-side {
  width: var(--as-w); flex: 0 0 var(--as-w); background: linear-gradient(180deg, #0B203A, #0A1B31 60%, #081627);
  color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  border-right: 1px solid rgba(255,255,255,.06); z-index: 40;
}
.as-brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px 18px; border-bottom: 1px solid var(--as-line); }
.as-brand img { width: 36px; height: 36px; object-fit: contain; }
.as-brand strong { display: block; font-size: 15px; letter-spacing: .16em; font-weight: 800; }
.as-brand small { font-size: 9px; color: rgba(226,235,246,.5); letter-spacing: .13em; text-transform: uppercase; }
.as-close { display: none; margin-left: auto; border: 0; background: rgba(255,255,255,.08); color: #fff; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; }
.as-nav { padding: 14px 10px; overflow-y: auto; flex: 1; }
.as-label { font-size: 8.5px; letter-spacing: .19em; color: rgba(226,235,246,.34); font-weight: 700; margin: 14px 10px 8px; }
.as-label:first-child { margin-top: 2px; }
.as-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 10px; color: rgba(226,235,246,.74); font-size: 12.5px; font-weight: 600; margin-bottom: 2px; position: relative; transition: .15s; }
.as-nav a .ni { width: 18px; height: 18px; display: grid; place-items: center; opacity: .85; }
.as-nav a .ni svg { width: 17px; height: 17px; }
.as-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.as-nav a.on { background: linear-gradient(90deg, rgba(214,164,58,.19), rgba(214,164,58,.05)); color: #fff; box-shadow: inset 2px 0 0 var(--gold); }
.as-nav a.on .ni { color: var(--gold2); opacity: 1; }
.as-nav .tag { margin-left: auto; background: rgba(255,255,255,.1); color: #fff; font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 100px; }
.as-nav .tag.red { background: rgba(229,72,77,.9); }
.as-nav .tag:empty, .as-nav .tag.zero { display: none; }
.as-card { margin: 6px 14px 12px; padding: 13px; border-radius: 12px; background: linear-gradient(145deg, rgba(214,164,58,.14), rgba(214,164,58,.04)); border: 1px solid rgba(214,164,58,.26); }
.as-card b { display: block; font-size: 11.5px; color: #F6E4B8; margin-bottom: 4px; }
.as-card small { display: block; font-size: 10px; color: rgba(240,232,214,.6); line-height: 1.5; margin-bottom: 9px; }
.as-card a { display: inline-block; font-size: 10.5px; font-weight: 700; color: #0B203A; background: var(--gold2); padding: 6px 11px; border-radius: 7px; }
.as-user { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-top: 1px solid var(--as-line); }
.as-user img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; border: 1.5px solid rgba(214,164,58,.5); }
.as-user b { display: block; font-size: 11.5px; }
.as-user small { font-size: 9.5px; color: rgba(226,235,246,.5); }
.as-user button { margin-left: auto; border: 0; background: rgba(255,255,255,.07); color: #E6EEF8; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 12px; }
.as-user button:hover { background: #E5484D; }

.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-top {
  height: 62px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid #E5EBF3;
  display: flex; align-items: center; gap: 14px; padding: 0 22px; position: sticky; top: 0; z-index: 30;
}
.top-burger { display: none; border: 0; background: #F2F5FA; width: 34px; height: 34px; border-radius: 9px; cursor: pointer; color: #33455C; }
.top-search { position: relative; flex: 1; max-width: 380px; }
.top-search .ts-ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #9AA9BC; display: grid; place-items: center; }
.top-search input { width: 100%; height: 36px; border: 1px solid #E5EBF3; background: #F7FAFD; border-radius: 10px; padding: 0 12px 0 34px; font-size: 12px; color: #0E1B2C; outline: none; }
.top-search input:focus { background: #fff; border-color: #BBD0E8; }
.ts-res { position: absolute; top: 42px; left: 0; right: 0; background: #fff; border: 1px solid #E5EBF3; border-radius: 12px; box-shadow: 0 14px 34px rgba(12,32,58,.14); overflow: hidden; display: none; }
.ts-res.on { display: block; }
.ts-res a { display: flex; align-items: center; gap: 9px; padding: 9px 11px; font-size: 12px; border-bottom: 1px solid #F2F6FB; }
.ts-res a:hover { background: #F7FAFD; }
.ts-res img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }
.ts-res small { color: #8494A8; font-size: 10px; }
.ts-res .none { padding: 12px; font-size: 11.5px; color: #8494A8; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top-date { font-size: 11px; color: #6B7A90; font-weight: 600; }
.top-icon { width: 34px; height: 34px; border: 1px solid #E5EBF3; background: #fff; border-radius: 9px; cursor: pointer; color: #46586E; display: grid; place-items: center; position: relative; }
.top-icon:hover { background: #F7FAFD; color: #0B203A; }
.tb-dot { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: #E5484D; display: none; }
.tb-dot.on { display: block; }
.top-prof { display: flex; align-items: center; gap: 8px; padding-left: 10px; border-left: 1px solid #E9EFF7; }
.top-prof img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }
.top-prof b { display: block; font-size: 11.5px; }
.top-prof small { font-size: 9.5px; color: #8494A8; }

.adm-view { padding: 20px 22px 26px; flex: 1; }
.adm-foot { padding: 14px 22px 22px; font-size: 10.5px; color: #94A3B6; text-align: center; }

/* ---------- PAGE HEAD ---------- */
.pg-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.pg-head h1 { font-size: 21px; font-weight: 800; letter-spacing: -.4px; margin: 0; }
.pg-head p { margin: 3px 0 0; font-size: 11.5px; color: #6B7A90; }
.pg-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm { height: 34px; padding: 0 13px; border-radius: 9px; border: 1px solid #E1E8F2; background: #fff; color: #33455C; font-size: 11.5px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.btn-sm:hover { background: #F7FAFD; border-color: #CBD9EA; }
.btn-sm.navy { background: #0B203A; color: #fff; border-color: #0B203A; }
.btn-sm.navy:hover { background: #132F52; }
.btn-sm.gold { background: var(--gold); color: #22190A; border-color: var(--gold); }
.btn-sm.gold:hover { background: #C9992F; }
.btn-sm.danger { color: #C03338; border-color: #F3D5D6; background: #FEF7F7; }

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi { background: #fff; border: 1px solid #E7EDF5; border-radius: 14px; padding: 14px 15px; position: relative; overflow: hidden; }
.kpi::after { content: ''; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle, rgba(28,71,118,.07), transparent 70%); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.kpi-top .ki { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.kpi-top .kt { font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #8494A8; }
.kpi b { font-size: 27px; font-weight: 800; letter-spacing: -1px; display: block; line-height: 1.1; }
.kpi small { font-size: 10.5px; color: #7F90A5; display: flex; align-items: center; gap: 4px; margin-top: 5px; }
.kpi small .up { color: #12803D; font-weight: 700; }
.kpi small .down { color: #C03338; font-weight: 700; }
.kpi .spark { position: absolute; right: 12px; bottom: 12px; opacity: .5; }

/* ---------- GRID / CARDS ---------- */
.grid-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; }
.card2 { background: #fff; border: 1px solid #E7EDF5; border-radius: 14px; padding: 15px 16px; }
.card2.pad0 { padding: 0; overflow: hidden; }
.c2-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.c2-head h3 { font-size: 13px; font-weight: 800; margin: 0; letter-spacing: -.1px; }
.c2-head .sub { font-size: 10.5px; color: #8494A8; margin-top: 1px; }
.c2-head .act { margin-left: auto; display: flex; gap: 5px; align-items: center; }
.c2-head select, .mini-select { height: 28px; border: 1px solid #E5EBF3; border-radius: 8px; background: #FAFCFF; font-size: 10.5px; color: #46586E; padding: 0 7px; outline: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 10.5px; color: #5F7086; margin-top: 8px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* ---------- CHART ---------- */
.chart-wrap { position: relative; height: 196px; margin-top: 4px; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-tip { position: absolute; background: #0B203A; color: #fff; font-size: 10px; padding: 5px 8px; border-radius: 7px; pointer-events: none; transform: translate(-50%, -120%); white-space: nowrap; opacity: 0; transition: opacity .12s; z-index: 5; }
.chart-tip.on { opacity: 1; }

/* ---------- ACTIVITY ---------- */
.act-list { display: flex; flex-direction: column; gap: 2px; max-height: 268px; overflow-y: auto; }
.act-row { display: flex; align-items: center; gap: 9px; padding: 8px 2px; border-bottom: 1px solid #F3F7FC; }
.act-row:last-child { border-bottom: 0; }
.act-row img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.act-row .ar-t { flex: 1; min-width: 0; }
.act-row b { display: block; font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-row small { font-size: 10px; color: #8494A8; }
.act-row .ar-r { text-align: right; }
.act-row .ar-r b { font-size: 10.5px; color: #33455C; }
.act-row .ar-r small { font-size: 9.5px; }

/* ---------- REGU ---------- */
.regu-list { display: flex; flex-direction: column; gap: 11px; }
.regu-row .rr-top { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 5px; }
.regu-row .rr-top b { font-weight: 700; }
.regu-row .rr-top span { color: #7F90A5; font-size: 10.5px; }
.rbar { height: 7px; border-radius: 100px; background: #EEF3FA; overflow: hidden; }
.rbar i { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, #1C4776, #2F6FB0); }
.regu-row.b .rbar i { background: linear-gradient(90deg, #D6A43A, #F2C568); }
.regu-row.c .rbar i { background: linear-gradient(90deg, #12803D, #34C46B); }
.regu-row.d .rbar i { background: linear-gradient(90deg, #6D5BD0, #9A8BE8); }

/* ---------- TABLE ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; }
table.tbl th { text-align: left; padding: 10px 12px; background: #F8FAFD; color: #7F90A5; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid #E9EFF7; white-space: nowrap; }
table.tbl td { padding: 10px 12px; border-bottom: 1px solid #F2F6FB; vertical-align: middle; color: #33455C; }
table.tbl tbody tr:hover { background: #FAFCFF; }
table.tbl tbody tr:last-child td { border-bottom: 0; }
.tperson { display: flex; align-items: center; gap: 8px; }
.tperson img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: #EEF3FA; }
.tperson b { display: block; font-size: 11.5px; font-weight: 700; color: #0E1B2C; }
.tperson small { font-size: 9.5px; color: #8494A8; }
.t-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.t-muted { color: #94A3B6; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 100px; font-size: 9.5px; font-weight: 700; }
.pill.green { background: #E9F8EF; color: #12803D; }
.pill.orange { background: #FEF3E2; color: #A66A06; }
.pill.red { background: #FDECEC; color: #C03338; }
.pill.blue { background: #EAF2FE; color: #1459B8; }
.pill.gray { background: #F1F5FA; color: #5F7086; }
.pill.gold { background: #FBF3E1; color: #8F6715; }
.tact { display: flex; gap: 4px; }
.tico { width: 26px; height: 26px; border-radius: 7px; border: 1px solid #E7EDF5; background: #fff; cursor: pointer; display: grid; place-items: center; color: #46617F; }
.tico:hover { background: #F2F7FD; color: #1459B8; }
.tico.del:hover { background: #FDECEC; color: #C03338; border-color: #F5D2D4; }

/* ---------- FILTER BAR ---------- */
.fbar { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.fbar .fg2 { display: flex; flex-direction: column; gap: 4px; }
.fbar label { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8494A8; }
.fbar input, .fbar select { height: 34px; border: 1px solid #E1E8F2; border-radius: 9px; background: #fff; padding: 0 10px; font-size: 11.5px; color: #33455C; outline: none; min-width: 130px; }
.fbar input:focus, .fbar select:focus { border-color: #8FB4DA; }
.fbar .grow { flex: 1; min-width: 150px; }

/* ---------- MONITORING ---------- */
.mon-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.map-box { position: relative; height: 300px; border-radius: 12px; overflow: hidden; background: #E8EEF6; border: 1px solid #E2EAF3; }
.map-box img.bg { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.map-pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.map-pin .mp { width: 26px; height: 26px; border-radius: 50% 50% 50% 4px; transform: rotate(45deg); background: #1C4776; border: 2px solid #fff; box-shadow: 0 3px 8px rgba(11,32,58,.3); display: grid; place-items: center; }
.map-pin .mp span { transform: rotate(-45deg); color: #fff; font-size: 8.5px; font-weight: 800; }
.map-pin.gold .mp { background: var(--gold); }
.map-pin.gold .mp span { color: #22190A; }
.map-pin .mlabel { margin-top: 5px; background: rgba(255,255,255,.94); border: 1px solid #E5EBF3; border-radius: 6px; padding: 2px 6px; font-size: 8.5px; font-weight: 700; color: #33455C; white-space: nowrap; box-shadow: 0 2px 5px rgba(11,32,58,.08); }
.map-legend { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.94); border: 1px solid #E5EBF3; border-radius: 8px; padding: 6px 9px; font-size: 9px; color: #5F7086; display: flex; gap: 10px; }
.map-legend span { display: flex; align-items: center; gap: 4px; }
.map-legend i { width: 7px; height: 7px; border-radius: 50%; background: #1C4776; }
.map-legend i.g { background: var(--gold); }
.pos-list { display: flex; flex-direction: column; gap: 7px; max-height: 300px; overflow-y: auto; }
.pos-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid #EDF2F9; border-radius: 10px; }
.pos-row .pr-ic { width: 30px; height: 30px; border-radius: 8px; background: #EAF0F8; color: #1C4776; display: grid; place-items: center; flex: 0 0 30px; }
.pos-row b { font-size: 11.5px; display: block; }
.pos-row small { font-size: 9.5px; color: #8494A8; }
.pos-row .pr-n { margin-left: auto; text-align: right; font-size: 13px; font-weight: 800; color: #0B203A; }
.pos-row .pr-n small { display: block; font-weight: 600; font-size: 9px; }

.guard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 9px; }
.gcard { border: 1px solid #E9EFF7; border-radius: 11px; padding: 10px; display: flex; gap: 9px; align-items: center; background: #fff; position: relative; }
.gcard img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; flex: 0 0 38px; }
.gcard b { display: block; font-size: 11px; line-height: 1.3; }
.gcard small { font-size: 9.5px; color: #8494A8; display: block; }
.gcard .gdot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.14); }
.gcard .gdot.t { background: #F59E0B; box-shadow: 0 0 0 3px rgba(245,158,11,.16); }
.gcard .gdot.x { background: #E5484D; box-shadow: 0 0 0 3px rgba(229,72,77,.14); }

/* ---------- MISC ---------- */
.note-box { display: flex; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #F7FAFD; border: 1px solid #E7EDF5; font-size: 10.5px; color: #5F7086; line-height: 1.6; }
.note-box.warn { background: #FFFBF1; border-color: #F5E6C3; color: #8A6414; }
.note-box.red { background: #FEF6F6; border-color: #F6DADA; color: #A8353A; }
.empty2 { padding: 34px 16px; text-align: center; color: #94A3B6; font-size: 11.5px; }
.empty2 svg { margin-bottom: 8px; opacity: .5; }
.pager { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-top: 1px solid #F2F6FB; font-size: 11px; color: #7F90A5; }
.pager .pgbtn { width: 28px; height: 28px; border-radius: 7px; border: 1px solid #E5EBF3; background: #fff; cursor: pointer; color: #46586E; }
.pager .pgbtn:disabled { opacity: .4; cursor: default; }
.pager .pgbtn.on { background: #0B203A; color: #fff; border-color: #0B203A; }
.pager .sp { margin-left: auto; }
.skel { background: linear-gradient(90deg, #F1F5FA, #FAFCFF, #F1F5FA); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 7px; height: 12px; }
@keyframes sk { 0% { background-position: 0 0; } 100% { background-position: 200% 0; } }

/* ---------- MODAL ---------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(9,22,39,.52); backdrop-filter: blur(2px); display: none; align-items: flex-start; justify-content: center; z-index: 90; padding: 40px 16px; overflow-y: auto; }
.modal-wrap.on { display: flex; }
.mdl { background: #fff; border-radius: 15px; width: 100%; max-width: 470px; box-shadow: 0 24px 60px rgba(9,22,39,.3); overflow: hidden; animation: mup .18s ease; }
.mdl.wide { max-width: 620px; }
@keyframes mup { from { transform: translateY(12px); opacity: 0; } }
.mdl-head { display: flex; align-items: center; padding: 15px 17px; border-bottom: 1px solid #EEF3F9; }
.mdl-head h3 { font-size: 14px; font-weight: 800; margin: 0; }
.mdl-head .mx { margin-left: auto; border: 0; background: #F5F8FC; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; color: #5F7086; display: grid; place-items: center; }
.mdl-body { padding: 15px 17px; max-height: 68vh; overflow-y: auto; }
.mdl-foot { padding: 12px 17px; border-top: 1px solid #EEF3F9; display: flex; gap: 8px; justify-content: flex-end; background: #FAFCFF; }
.fg2 { margin-bottom: 11px; }
.fg2 label { display: block; font-size: 10.5px; font-weight: 700; color: #3B4A5E; margin-bottom: 5px; }
.fg2 input, .fg2 select, .fg2 textarea { width: 100%; border: 1px solid #E1E8F2; border-radius: 9px; padding: 9px 11px; font-size: 12px; color: #0E1B2C; background: #FAFCFF; outline: none; font-family: inherit; }
.fg2 input:focus, .fg2 select:focus, .fg2 textarea:focus { border-color: #8FB4DA; background: #fff; }
.fg2 textarea { min-height: 74px; resize: vertical; }
.fg2-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mdl .btn-row { display: flex; gap: 8px; }

/* ---------- TOAST ---------- */
.toast-wrap { position: fixed; top: 14px; right: 14px; z-index: 120; display: flex; flex-direction: column; gap: 7px; }
.toast { display: flex; align-items: center; gap: 8px; background: #0B203A; color: #fff; font-size: 11.5px; font-weight: 600; padding: 10px 13px; border-radius: 10px; box-shadow: 0 10px 26px rgba(9,22,39,.24); animation: tin .2s ease; max-width: 330px; }
.toast.green { background: #0F6B38; }
.toast.red { background: #A62D32; }
.toast.gold { background: #8A6414; }
@keyframes tin { from { transform: translateX(16px); opacity: 0; } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .mon-grid, .grid-1-2 { grid-template-columns: 1fr; }
  .aa-quote h1 { font-size: 32px; }
}
@media (max-width: 900px) {
  .adm-auth { grid-template-columns: 1fr; }
  .aa-art { display: none; }
  .adm-side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(9,22,39,.3); }
  .adm-side.on { transform: none; }
  .as-close { display: grid; place-items: center; }
  .top-burger { display: grid; place-items: center; }
  .top-date { display: none; }
}
@media (max-width: 720px) {
  .adm-view { padding: 14px 12px 20px; }
  .adm-top { padding: 0 12px; gap: 8px; }
  .top-search { max-width: none; }
  .top-prof div { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kpi { padding: 11px 12px; }
  .kpi b { font-size: 22px; }
  .grid-3 { grid-template-columns: 1fr; }
  .pg-head h1 { font-size: 18px; }
  .pg-actions { width: 100%; margin-left: 0; }
  .pg-actions .btn-sm { flex: 1; justify-content: center; }
  .mdl { max-width: none; }
  .fg2-row { grid-template-columns: 1fr; }
  .map-box { height: 240px; }
  .adm-foot { font-size: 9.5px; }
}

/* ---------- lokasi & geofence ---------- */
.lok-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lok-card { background: #fff; border: 1px solid #E7EDF5; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.lk-head { display: flex; align-items: center; gap: 9px; }
.lk-head .lk-ic { width: 36px; height: 36px; border-radius: 11px; background: #EAF0F8; color: #1C4776; display: grid; place-items: center; flex: none; }
.lk-head b { font-size: 12.5px; display: block; color: #0B203A; }
.lk-head small { font-size: 10px; color: #8494A8; }
.lk-addr { margin: 0; font-size: 10.5px; color: #6B7A90; display: flex; align-items: flex-start; gap: 5px; line-height: 1.5; }
.lk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #F8FAFD; border: 1px solid #EEF3FA; border-radius: 10px; padding: 8px 6px; }
.lk-stats div { text-align: center; }
.lk-stats b { display: block; font-size: 13px; color: #0B203A; letter-spacing: -.2px; }
.lk-stats small { font-size: 8.5px; color: #8494A8; line-height: 1.2; display: block; margin-top: 1px; }
.lk-titik { display: flex; flex-wrap: wrap; gap: 4px; }
.lk-titik span { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; font-weight: 600; color: #5F7086; background: #F3F7FC; border-radius: 99px; padding: 3px 7px; }
@media (max-width: 1200px) { .lok-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .lok-grid { grid-template-columns: 1fr; } }

/* ---------- dashboard: chart & donut ---------- */
.grid-dash { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; }
.chart-wrap { margin: 6px -4px 2px; }
.legend { display: flex; gap: 14px; font-size: 10.5px; color: #6B7A90; padding: 4px 0 0; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.donut-wrap { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 6px 0 2px; }
.donut-legend { flex: 1; min-width: 110px; display: flex; flex-direction: column; gap: 7px; }
.donut-legend div { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #6B7A90; }
.donut-legend i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.donut-legend b { margin-left: auto; color: #0B203A; font-size: 11.5px; }
@media (max-width: 980px) { .grid-dash { grid-template-columns: 1fr; } }

/* ---------- KPI solid (dashboard) ---------- */
.kpi.solid { border: 0; color: #fff; box-shadow: 0 8px 18px -10px rgba(11,32,58,.55); }
.kpi.solid .kt { color: rgba(255,255,255,.78); font-weight: 700; }
.kpi.solid b { color: #fff; }
.kpi.solid small { color: rgba(255,255,255,.82); }
.kpi.solid .ki { background: rgba(255,255,255,.2); color: #fff; }
.kpi.solid small .up, .kpi.solid small .down { color: #fff; background: rgba(255,255,255,.2); }
.regu-row.navy .rbar i { background: linear-gradient(90deg, #1C4776, #3E86D8); }
.donut-note { margin-top: 10px; padding: 9px 11px; background: #F7FAFE; border: 1px solid #EDF3FA; border-radius: 10px; font-size: 10.5px; color: #5F7086; line-height: 1.55; }
.donut-note b { color: #0B203A; }

/* ============================================================
   MOCKUP LAYOUT — sidebar navy, topbar navy, dashboard grid
   ============================================================ */
:root{
  --navy-d1:#0A2B4E; --navy-d2:#071D36; --gold-a:#F2C568; --gold-b:#D6A43A;
  --dash-bg:#EEF3FA; --card-line:#E4EDF7; --ink2:#123049;
}
.adm-shell{grid-template-columns:272px 1fr}

/* --- sidebar --- */
.adm-side{background:linear-gradient(170deg,#0B3157 0%,#0A2B4E 42%,#06182C 100%);padding:0;display:flex;flex-direction:column;position:relative;overflow:hidden}
.adm-side::after{content:"";position:absolute;inset:0;background:radial-gradient(120% 60% at 110% 0%,rgba(242,197,104,.10),transparent 60%);pointer-events:none}
.adm-side .as-brand{display:flex;align-items:flex-start;gap:11px;padding:16px 16px 10px;position:relative;z-index:2}
.adm-side .as-brand img{width:60px;height:68px;object-fit:contain;filter:drop-shadow(0 4px 10px rgba(0,0,0,.45))}
.adm-side .as-btxt strong{display:block;color:var(--gold-a);font-size:14.5px;line-height:1.06;font-weight:800;letter-spacing:.2px;text-transform:uppercase}
.adm-side .as-btxt small{display:block;margin-top:7px;color:#BFD2E6;font-size:7.2px;letter-spacing:1.05px;font-weight:700;line-height:1.4;text-transform:uppercase}
.adm-side .as-close{display:none}
.adm-side .as-nav{padding:10px 12px 0;gap:2px;position:relative;z-index:2;overflow-y:auto;flex:1}
.adm-side .as-nav a{display:flex;align-items:center;gap:10px;height:37px;padding:0 11px;border-radius:9px;color:#D3E1F1;font-size:12.5px;font-weight:600;letter-spacing:.1px;transition:.16s}
.adm-side .as-nav a:hover{background:rgba(255,255,255,.07);color:#fff}
.adm-side .as-nav a .ni{width:19px;height:19px;flex:none;opacity:.92;display:grid;place-items:center}
.adm-side .as-nav a .ni svg{width:18px;height:18px;stroke-width:1.75}
.adm-side .as-nav a .chev{width:14px;height:14px;margin-left:auto;flex:none;opacity:.55;background-repeat:no-repeat;background-position:center;background-size:13px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D3E1F1' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E")}
.adm-side .as-nav a .nb{margin-left:auto;min-width:19px;height:19px;border-radius:99px;background:rgba(255,255,255,.16);color:#fff;font-size:10px;font-weight:700;display:grid;place-items:center;padding:0 5px}
.adm-side .as-nav a.on{background:linear-gradient(92deg,var(--gold-a),var(--gold-b));color:#14243A;font-weight:800;box-shadow:0 8px 18px -8px rgba(214,164,58,.75)}
.adm-side .as-nav a.on .ni{opacity:1;color:#14243A}
.adm-side .as-nav a.on .chev{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314243A' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E");opacity:.8}
.adm-side .as-guard{position:relative;margin-top:auto;height:196px;flex:none;overflow:hidden;z-index:1}
.adm-side .as-guard img{width:100%;height:100%;object-fit:cover;object-position:50% 18%;filter:saturate(.95) contrast(1.03)}
.adm-side .as-guard::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0A2B4E 0%,rgba(9,38,64,.55) 26%,rgba(6,24,44,.15) 60%,rgba(4,16,30,.75) 100%)}
.adm-side .as-card,.adm-side .as-user,.adm-side .as-label{display:none}

/* --- topbar --- */
.adm-top{height:66px;padding:0 20px;gap:14px;background:linear-gradient(95deg,#0B3157,#0A2B4E 55%,#071D36);border-bottom:1px solid rgba(255,255,255,.08);display:flex;align-items:center}
.adm-top .top-burger{color:#DCE8F5}
.adm-top .top-title{min-width:0}
.adm-top .top-title h1{color:#fff;font-size:21px;font-weight:800;letter-spacing:-.3px;line-height:1.1;position:relative;padding-bottom:5px}
.adm-top .top-title h1::after{content:"";position:absolute;left:0;bottom:0;width:56px;height:2.5px;border-radius:2px;background:linear-gradient(90deg,var(--gold-a),transparent)}
.adm-top .top-title p{color:#B4C9DF;font-size:10.8px;font-weight:500;margin-top:3px}
.adm-top .top-right{margin-left:auto;display:flex;align-items:center;gap:10px}
.top-clock{display:flex;align-items:center;gap:8px;height:34px;padding:0 12px;border:1px solid rgba(255,255,255,.22);border-radius:9px;color:#EAF2FB;font-size:11.5px;font-weight:600;background:rgba(255,255,255,.04)}
.top-clock i{width:1px;height:14px;background:rgba(255,255,255,.22)}
.top-clock b{color:#B4C9DF;font-weight:600;font-size:10.5px}
.adm-top .top-icon{width:34px;height:34px;border-radius:9px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);color:#E7F0FA;display:grid;place-items:center}
.adm-top .top-icon.bell{background:transparent;border:0;position:relative}
.adm-top .top-icon.bell .tb-dot{position:absolute;top:3px;right:3px;width:9px;height:9px;border-radius:50%;background:#EF4444;border:2px solid #0A2B4E}
.top-prof{display:flex;align-items:center;gap:9px;padding-left:10px;border-left:1px solid rgba(255,255,255,.14)}
.top-prof img{width:34px;height:34px;border-radius:50%;object-fit:cover;border:2px solid rgba(242,197,104,.85)}
.top-prof b{display:block;color:#fff;font-size:11.5px;font-weight:700;line-height:1.2}
.top-prof small{display:block;color:#A9C0D8;font-size:9.5px}
.top-prof .chev{width:12px;height:12px;margin-left:2px;opacity:.7;background-repeat:no-repeat;background-position:center;background-size:12px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CFE0F0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
.top-logout{height:30px;padding:0 11px;border-radius:8px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);color:#DCE8F5;font-size:10.5px;font-weight:600}
.adm-main{background:var(--dash-bg)}
.adm-view{padding:16px 18px 26px;max-width:none}
.adm-foot{display:none}

/* --- KPI --- */
.dash{display:flex;flex-direction:column;gap:14px}
.kpi4{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.kpi2{position:relative;border-radius:14px;padding:14px 16px 12px;color:#fff;overflow:hidden;min-height:106px;box-shadow:0 10px 22px -14px rgba(11,32,58,.55)}
.kpi2.blue{background:linear-gradient(120deg,#2C7BE5 0%,#1D63C9 55%,#14509F 100%)}
.kpi2.green{background:linear-gradient(120deg,#22B357 0%,#15913F 60%,#0C752F 100%)}
.kpi2.orange{background:linear-gradient(120deg,#F9A825 0%,#EE8B06 60%,#D97706 100%)}
.kpi2.red{background:linear-gradient(120deg,#F4535A 0%,#E0353D 60%,#C4222B 100%)}
.kpi2 .k2-top{display:flex;align-items:flex-start;gap:11px;position:relative;z-index:2}
.kpi2 .k2-ic{width:42px;height:42px;border-radius:11px;background:rgba(255,255,255,.22);display:grid;place-items:center;flex:none;color:#fff}
.kpi2 .k2-ic svg{width:22px;height:22px;stroke-width:1.9}
.kpi2 .k2-label{font-size:12px;font-weight:700;letter-spacing:.1px;color:rgba(255,255,255,.95)}
.kpi2 .k2-val{display:flex;align-items:center;gap:9px;margin-top:3px}
.kpi2 .k2-val b{font-size:31px;font-weight:800;letter-spacing:-1px;line-height:1}
.kpi2 .k2-badge{font-size:10.5px;font-weight:800;padding:3px 8px;border-radius:99px;background:rgba(255,255,255,.26);border:1px solid rgba(255,255,255,.35)}
.kpi2 .k2-foot{position:relative;z-index:2;margin-top:9px;font-size:10.8px;font-weight:600;color:rgba(255,255,255,.95);display:flex;align-items:center;gap:5px}
.kpi2 .k2-foot svg{width:13px;height:13px;stroke-width:2.4}
.kpi2 .k2-foot.down svg{transform:scaleY(-1)}
.kpi2 .k2-mark{position:absolute;right:-6px;bottom:-14px;opacity:.17;color:#fff;z-index:1}
.kpi2 .k2-mark svg{width:104px;height:104px;stroke-width:1.1}

/* --- cards --- */
.dcard{background:#fff;border:1px solid var(--card-line);border-radius:14px;padding:14px 16px;box-shadow:0 1px 2px rgba(16,42,72,.03)}
.dcard>.dc-head{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.dcard>.dc-head .dh-ic{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:#EAF2FE;color:#1D63C9;flex:none}
.dcard>.dc-head .dh-ic svg{width:16px;height:16px;stroke-width:2}
.dcard>.dc-head h3{font-size:13.5px;font-weight:800;color:var(--ink2);letter-spacing:-.2px}
.dcard>.dc-head .dh-right{margin-left:auto;display:flex;align-items:center;gap:8px}
.dcard .dh-link{font-size:11px;font-weight:700;color:#1D63C9}
.dcard .dh-full{width:26px;height:26px;border-radius:7px;border:1px solid #E4EDF7;display:grid;place-items:center;color:#6B7A90}
.dash-r2{display:grid;grid-template-columns:1.52fr 1.12fr .98fr;gap:14px;align-items:stretch}
.dash-r3{display:grid;grid-template-columns:1.52fr .8fr 1fr;gap:14px;align-items:stretch}
.dash-r4{display:grid;grid-template-columns:1.62fr 1fr;gap:14px;align-items:stretch}

/* chart */
.chart-bars{display:flex;align-items:flex-end;gap:0;height:196px;padding:16px 0 0 30px;position:relative}
.chart-bars .grid-l{position:absolute;left:0;right:0;top:0;bottom:22px;display:flex;flex-direction:column;justify-content:space-between}
.chart-bars .grid-l span{font-size:9.5px;color:#9CAFC4;line-height:1}
.chart-bars .grid-l i{position:absolute;left:30px;right:0;height:1px;background:#EEF3FA}
.chart-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;position:relative;z-index:2}
.chart-col b{font-size:10px;font-weight:800;color:#123049}
.chart-col .cb{width:70%;max-width:34px;border-radius:6px 6px 0 0;background:linear-gradient(180deg,#4D9BF5 0%,#2C7BE5 55%,#1D63C9 100%);box-shadow:inset 0 -6px 12px rgba(255,255,255,.15)}
.chart-x{display:flex;padding-left:30px;margin-top:7px}
.chart-x span{flex:1;text-align:center;font-size:10px;color:#8194A9}

/* donut status */
.status-flex{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center;padding-top:2px}
.status-flex svg{width:152px;height:152px;flex:none}
.status-legend{flex:1;min-width:120px;display:flex;flex-direction:column;gap:9px}
.status-legend>div{display:flex;align-items:center;gap:7px;font-size:11.5px;color:#3C5169}
.status-legend i{width:9px;height:9px;border-radius:50%;flex:none}
.status-legend b{margin-left:auto;color:#123049;font-size:12px;font-weight:800}
.status-legend small{color:#8CA0B5;font-size:10px;font-weight:600}

/* aktivitas operasional */
.ops-list{display:flex;flex-direction:column}
.ops-row{display:flex;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid #F1F5FA;color:#22384F;font-size:12.2px;font-weight:600}
.ops-row:last-child{border-bottom:0}
.ops-row .op-ic{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;flex:none}
.ops-row .op-ic svg{width:15px;height:15px;stroke-width:2.2}
.ops-row .op-ic.green{background:#E7F8EE;color:#12803D}
.ops-row .op-ic.red{background:#FDECEC;color:#D32F36}
.ops-row .op-ic.blue{background:#EAF2FE;color:#1D63C9}
.ops-row .op-badge{margin-left:auto;min-width:26px;height:24px;padding:0 8px;border-radius:8px;display:grid;place-items:center;font-size:11.5px;font-weight:800}
.ops-row .op-badge.green{background:#E7F8EE;color:#0F7A3B}
.ops-row .op-badge.red{background:#FDECEC;color:#D32F36}
.ops-row .op-badge.blue{background:#EAF2FE;color:#1D63C9}
.ops-row .op-chev{color:#B7C6D6;display:grid;place-items:center}
.ops-row .op-chev svg{width:14px;height:14px;stroke-width:2.4}

/* peta monitoring */
.map-box{position:relative;border-radius:12px;overflow:hidden;height:212px;background:#DDE6F1}
.map-box img{width:100%;height:100%;object-fit:cover;display:block}
.map-box .map-veil{position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,43,78,.05),rgba(10,43,78,.22))}
.map-pin{position:absolute;width:38px;height:38px;border-radius:50%;transform:translate(-50%,-50%);border:2.5px solid #22C55E;overflow:visible;background:#fff;box-shadow:0 6px 14px rgba(4,25,45,.35)}
.map-pin img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.map-pin.alert{border-color:#F59E0B}
.map-pin.alert::after{content:"!";position:absolute;right:-4px;top:-4px;width:14px;height:14px;border-radius:50%;background:#EF4444;color:#fff;font-size:9.5px;font-weight:800;display:grid;place-items:center;border:1.5px solid #fff}
.map-zoom{position:absolute;right:10px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:5px}
.map-zoom button{width:28px;height:28px;border-radius:7px;background:#fff;color:#123049;font-size:16px;font-weight:700;display:grid;place-items:center;box-shadow:0 3px 8px rgba(5,25,45,.18)}

/* patroli hari ini */
.pat-big{display:flex;align-items:baseline;gap:7px}
.pat-big b{font-size:23px;font-weight:800;color:#123049;letter-spacing:-.6px}
.pat-big span{font-size:11.5px;color:#7B8DA3;font-weight:600}
.pat-badge{margin-left:auto;font-size:12px;font-weight:800;color:#0F7A3B;background:#E7F8EE;border-radius:8px;padding:4px 9px}
.pat-bar{height:8px;border-radius:99px;background:#EDF2F9;margin:10px 0 12px;overflow:hidden}
.pat-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#22C55E,#16A34A)}
.pat-list{display:flex;flex-direction:column;gap:1px}
.pat-row{display:flex;align-items:center;gap:8px;padding:6px 0;font-size:11.5px;color:#26394F}
.pat-row .pr-dot{width:16px;height:16px;border-radius:50%;border:1.8px solid #CBD8E6;flex:none;display:grid;place-items:center;color:#fff}
.pat-row.done .pr-dot{background:#16A34A;border-color:#16A34A}
.pat-row .pr-dot svg{width:10px;height:10px;stroke-width:3.4}
.pat-row .pr-time{margin-left:auto;color:#7B8DA3;font-size:10.5px;font-weight:600}
.pat-row.done .pr-name{color:#123049;font-weight:600}

/* laporan terbaru */
.rep-list{display:flex;flex-direction:column;gap:10px}
.rep-row{display:flex;align-items:center;gap:10px}
.rep-row img{width:58px;height:44px;border-radius:8px;object-fit:cover;flex:none;background:#E8EEF6}
.rep-row .rp-t{min-width:0}
.rep-row .rp-t b{display:block;font-size:11.5px;font-weight:700;color:#123049;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rep-row .rp-t small{display:block;font-size:9.8px;color:#8CA0B5;margin-top:2px}
.rep-row .rp-b{margin-left:auto;flex:none;font-size:9.8px;font-weight:800;padding:3px 8px;border-radius:99px}
.rep-row .rp-b.darurat{background:#FDECEC;color:#D32F36}
.rep-row .rp-b.menengah{background:#FEF3E2;color:#B8790E}
.rep-row .rp-b.ringan{background:#EAF2FE;color:#1D63C9}

/* tabel aktivitas */
.acttbl{width:100%;border-collapse:collapse}
.acttbl th{font-size:10.5px;font-weight:700;color:#7B8DA3;text-align:left;padding:7px 8px;background:#F7FAFE;border-bottom:1px solid #EAF1F9}
.acttbl th:first-child{border-radius:8px 0 0 8px;width:64px}
.acttbl th:last-child{border-radius:0 8px 8px 0;text-align:right}
.acttbl td{padding:9px 8px;font-size:11.5px;color:#26394F;border-bottom:1px solid #F2F6FB}
.acttbl tr:last-child td{border-bottom:0}
.acttbl td:first-child{color:#5C7089;font-weight:600}
.acttbl td:last-child{text-align:right}
.acttbl .at-name{font-weight:700;color:#123049}
.acttbl .at-act{display:inline-flex;align-items:center;gap:5px}
.acttbl .at-act svg{width:13px;height:13px;stroke-width:2.4}
.acttbl .at-act.ok{color:#0F7A3B}
.acttbl .at-act.pat{color:#1D63C9}
.acttbl .at-act.rep{color:#D32F36}
.at-badge{font-size:9.8px;font-weight:800;padding:3px 8px;border-radius:99px}
.at-badge.green{background:#E7F8EE;color:#0F7A3B}
.at-badge.blue{background:#EAF2FE;color:#1D63C9}
.at-badge.orange{background:#FEF3E2;color:#B8790E}

/* ringkasan bulan */
.month-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}
.mo-tile{display:flex;align-items:center;gap:9px;border:1px solid #EAF1F9;border-radius:11px;padding:10px}
.mo-tile .mo-ic{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;flex:none}
.mo-tile .mo-ic svg{width:16px;height:16px;stroke-width:2}
.mo-tile b{display:block;font-size:20px;font-weight:800;color:#123049;letter-spacing:-.6px;line-height:1}
.mo-tile small{display:block;font-size:9.5px;color:#7B8DA3;font-weight:600;margin-top:2px}

@media (max-width:1280px){
  .dash-r2{grid-template-columns:1fr 1fr}
  .dash-r2>.dcard:first-child{grid-column:1/-1}
  .dash-r3{grid-template-columns:1fr 1fr}
  .dash-r3>.dcard:first-child{grid-column:1/-1}
}
@media (max-width:1024px){
  .kpi4{grid-template-columns:1fr 1fr}
  .dash-r4{grid-template-columns:1fr}
}
@media (max-width:760px){
  .kpi4{grid-template-columns:1fr}
  .dash-r2,.dash-r3{grid-template-columns:1fr}
  .adm-side{position:fixed;left:0;top:0;bottom:0;width:272px;z-index:60;transform:translateX(-100%);transition:.25s}
  .adm-side.open{transform:none}
  .adm-side .as-close{display:block}
  .adm-top .top-title h1{font-size:16px}
  .adm-top .top-title p{display:none}
  .top-clock span#topDay{display:none}
}

/* --- grafik bar versi mockup --- */
.chart-wrap2{display:flex;gap:0;padding:6px 0 0}
.cb-axis{width:28px;height:172px;display:flex;flex-direction:column;justify-content:space-between;text-align:right;padding-right:7px}
.cb-axis span{font-size:9.5px;color:#9CAFC4;line-height:1}
.cb-plot{position:relative;flex:1;height:172px}
.cb-grid{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between}
.cb-grid i{height:1px;background:#EFF4FA}
.cb-cols{position:absolute;inset:0;display:flex;align-items:flex-end;gap:0}
.cb-cols .chart-col{height:100%;padding-bottom:0}
.cb-cols .chart-col .cb{width:62%;max-width:30px}
.cb-cols .chart-col b{font-size:10px;color:#123049;font-weight:800;margin-bottom:1px}
.chart-x{display:flex;padding-left:28px;margin-top:6px}
.chart-x span{flex:1;text-align:center;font-size:9.8px;color:#8194A9}
.map-box img{transition:transform .25s}

/* --- penyesuaian akhir mockup --- */
.toast-wrap{top:auto;bottom:18px;right:18px}
.adm-side .as-guard{height:228px}
.adm-side .as-guard img{object-position:50% 6%;filter:saturate(1) contrast(1.02) brightness(1.06)}
.month-grid{grid-template-columns:repeat(4,1fr);gap:8px}
.mo-tile{flex-direction:column;align-items:flex-start;gap:6px;padding:9px 8px}
.mo-tile b{font-size:19px}
.mo-tile small{font-size:8.6px;line-height:1.25}
.rep-row img{width:50px;height:38px}
.rep-row .rp-t b{font-size:10.8px}
.rep-row .rp-t small{font-size:9px}
.rep-row .rp-b{font-size:9px;padding:2.5px 7px}
.acttbl td{padding:8px}
.map-box{height:214px}

.cb-axis,.cb-plot{height:202px}
.cb-cols .chart-col .cb{width:58%;max-width:30px}
.chart-x span{font-size:9.6px}
.status-flex{flex-wrap:nowrap;justify-content:flex-start}
.status-legend{min-width:0;gap:8px}
.status-legend>div{font-size:10.8px;gap:6px}
.status-legend b{font-size:11.5px}
.status-legend small{font-size:9.4px}
.top-logout{width:26px;padding:0;display:grid;place-items:center;background:transparent;border:0}
.top-logout .chev{width:13px;height:13px;display:block;background-repeat:no-repeat;background-position:center;background-size:13px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CFE0F0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}

.status-legend>div{white-space:nowrap;font-size:10.6px}
.status-legend small{font-size:9.2px}
.pat-row .pr-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.pat-row .pr-time{white-space:nowrap;font-size:10px}
.chart-x span{font-size:10px}
.cb-axis span{font-size:9.2px}

.status-legend .sv{margin-left:auto;display:flex;align-items:baseline;gap:3px;white-space:nowrap}

/* pin personel di peta monitoring */
.map-box img.bg{transition:transform .3s ease;transform-origin:center}
.mon-gpin{position:absolute;width:26px;height:26px;border-radius:50%;border:2px solid #fff;box-shadow:0 3px 9px rgba(8,26,45,.4);transform:translate(-50%,-50%);overflow:hidden;z-index:3;cursor:default}
.mon-gpin img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
.mon-gpin.late{border-color:#E8A33C;box-shadow:0 0 0 3px rgba(232,163,60,.4),0 3px 9px rgba(8,26,45,.4)}
.mon-gpin:hover{transform:translate(-50%,-50%) scale(1.4);z-index:8}
.map-box .map-pin{z-index:5}
.map-legend i.r{background:#E8A33C}

.btn-xs{height:24px;padding:0 7px;border-radius:6px;border:1px solid #DCE7F3;background:#F5F9FE;color:#1459B8;display:inline-flex;align-items:center;gap:4px;cursor:pointer}
.btn-xs:hover{background:#E8F1FD}
.foto-modal{position:fixed;inset:0;background:rgba(6,20,38,.6);display:grid;place-items:center;z-index:9999;padding:16px}
.fm-card{background:#fff;border-radius:14px;max-width:560px;width:100%;max-height:92vh;overflow:auto;box-shadow:0 20px 60px rgba(4,16,32,.35)}
.fm-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #EAF1F9;font-size:13px}
.fm-x{border:0;background:#F1F5FA;width:26px;height:26px;border-radius:50%;font-size:17px;line-height:1;cursor:pointer;color:#40556C}
.fm-body{display:flex;gap:14px;padding:14px}
.fm-body>img{width:210px;height:210px;object-fit:cover;border-radius:10px;background:#EEF3FA;flex:none}
.fm-noimg{width:210px;height:210px;display:grid;place-items:center;text-align:center;padding:10px;font-size:11px;color:#8494A8;background:#F5F8FC;border-radius:10px;flex:none}
.fm-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;min-width:0}
.fm-meta small{display:block;font-size:9.5px;color:#8494A8;text-transform:uppercase;letter-spacing:.04em}
.fm-meta b{font-size:11.5px;color:#123049}
.fm-out{border-top:1px solid #EAF1F9;padding:10px 14px 14px}
.fm-out small{display:block;font-size:9.5px;color:#8494A8;margin-bottom:6px}
.fm-out img{width:110px;height:110px;object-fit:cover;border-radius:10px}
@media(max-width:560px){.fm-body{flex-direction:column}.fm-body>img,.fm-noimg{width:100%;height:240px}}

/* ---------------- PETA ASLI (LEAFLET) ---------------- */
.map-box{position:relative;overflow:hidden}
.map-box>.leaflet-map{position:absolute;inset:0;z-index:1}
.leaflet-map{width:100%;height:100%;font-family:inherit;background:#E8EEF4}
.map-box .map-zoom{z-index:700}
.map-box .map-legend{z-index:700}
.adm-pin-photo{width:36px;height:36px;border-radius:50%;overflow:hidden;background:#fff;
  border:2.5px solid #21A366;box-shadow:0 6px 14px rgba(6,26,46,.32)}
.adm-pin-photo img{width:100%;height:100%;object-fit:cover;display:block}
.adm-pin-photo.late{border-color:#E7A22B}
.adm-pos-pin{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;
  background:#0B203A;color:#fff;font-size:12px;font-weight:700;border:2px solid #fff;
  box-shadow:0 4px 10px rgba(6,26,46,.35)}
.map-lay{position:absolute;right:10px;top:10px;z-index:700;display:inline-flex;align-items:center;gap:6px;
  border:0;border-radius:9px;background:rgba(255,255,255,.94);color:#12293F;font:600 11.5px/1 inherit;
  padding:8px 11px;cursor:pointer;box-shadow:0 4px 12px rgba(6,26,46,.18)}
.map-lay:hover{background:#fff}
.leaflet-container .leaflet-control-attribution{font-size:9.5px;background:rgba(255,255,255,.72)}
.leaflet-tooltip.adm-tip{border:0;border-radius:10px;box-shadow:0 8px 20px rgba(6,26,46,.18);
  padding:7px 10px;font:600 11.5px/1.45 inherit;color:#12293F}
.leaflet-tooltip.adm-tip b{display:block;font-size:12px}
.leaflet-tooltip.adm-tip span{color:#6A7B8C;font-weight:500}

/* ---------- LAPORAN: foto bukti ---------- */
.lap-bukti{position:relative;margin:0 0 12px;border:1px solid #E9EEF6;border-radius:12px;overflow:hidden;background:#F4F8FC}
.lap-bukti img{display:block;width:100%;max-height:210px;object-fit:cover}
.lap-bukti .btn-xs{position:absolute;right:8px;bottom:8px;background:rgba(255,255,255,.94);box-shadow:0 2px 8px rgba(9,22,38,.18)}
.fm-body.fm-bukti{flex-direction:column;align-items:stretch}
.fm-body.fm-bukti>img{width:100%;height:auto;max-height:70vh;object-fit:contain;background:#0E1A28;border-radius:10px}
