/* ============================================================
   SVP Report — korporat bersih
   ============================================================ */
:root {
  --navy: #0f2942;
  --navy-700: #16375a;
  --navy-500: #24486e;
  --blue: #1d4ed8;
  --blue-600: #2563eb;
  --blue-50: #eef4ff;
  --ink: #16233a;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-soft: #edf1f7;
  --bg: #f4f6fa;
  --white: #ffffff;
  --green: #15803d;
  --green-50: #ecfdf3;
  --amber: #b45309;
  --amber-50: #fffaeb;
  --red: #b91c1c;
  --red-50: #fef3f2;
  --violet: #6d28d9;
  --violet-50: #f5f3ff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 35, 58, .04), 0 8px 24px -18px rgba(16, 35, 58, .35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.block { display: block; }
.ta-r { text-align: right; }
.ico { flex: none; }

/* --------------------------------------------------------- login */
.login-body { background: var(--bg); }
.login-shell { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }
.login-brand {
  position: relative;
  background: linear-gradient(160deg, #0b2136 0%, #0f2942 45%, #17395c 100%);
  color: #dbe6f3;
  padding: 44px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.login-brand::after {
  content: '';
  position: absolute;
  inset: -30% -20% auto auto;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(37, 99, 235, .38), transparent 62%);
}
.brand { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #2563eb, #1e40af);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(37, 99, 235, .9);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 15px; letter-spacing: .2px; color: #fff; font-weight: 700; }
.brand-text small { font-size: 11px; color: #93a9c2; letter-spacing: .3px; }
.login-brand-copy { position: relative; z-index: 1; max-width: 460px; }
.login-brand-copy h1 { font-size: 32px; line-height: 1.28; color: #fff; font-weight: 700; letter-spacing: -.4px; }
.login-brand-copy > p { margin-top: 16px; color: #a9bdd3; font-size: 14.5px; line-height: 1.65; }
.login-points { margin-top: 26px; display: grid; gap: 12px; }
.login-points li { display: flex; align-items: center; gap: 10px; color: #cfdeee; font-size: 13.5px; }
.login-points .ico { color: #6ea8ff; }
.login-foot { position: relative; z-index: 1; font-size: 11.5px; color: #7f96ae; }
.login-form-wrap { display: grid; place-items: center; padding: 40px 24px; background: var(--white); }
.login-form { width: 100%; max-width: 372px; }
.login-form h2 { font-size: 22px; letter-spacing: -.3px; }
.login-sub { color: var(--muted); margin: 6px 0 22px; font-size: 13px; }
.login-help { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; font-size: 11.5px; color: var(--muted); text-align: center; }

/* --------------------------------------------------------- layout */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px; flex: none;
  background: var(--navy);
  color: #c3d3e4;
  position: fixed; inset: 0 auto 0 0;
  display: flex; flex-direction: column;
  padding: 20px 14px 16px;
  z-index: 40;
}
.sidebar .brand { padding: 4px 8px 18px; }
.nav { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; overflow-y: auto; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .9px; color: #6f89a4; padding: 0 10px 8px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 9px;
  color: #c3d3e4; font-size: 13.5px; font-weight: 500;
  transition: background .15s, color .15s;
  border: 0; background: transparent; width: 100%; text-align: left; cursor: pointer;
  font-family: inherit;
}
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-item.is-active { background: rgba(59, 130, 246, .2); color: #fff; box-shadow: inset 2px 0 0 #60a5fa; }
.nav-item.is-active .ico { color: #93c5fd; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 3px; padding-top: 14px; }
.logout-form { margin: 0; }
.nav-button { color: #c3d3e4; }
.user-card {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding: 11px; border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .07);
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #3b82f6, #1d4ed8);
  color: #fff; font-weight: 700; font-size: 13px;
}
.avatar-lg { width: 42px; height: 42px; font-size: 16px; }
.user-meta { display: flex; flex-direction: column; min-width: 0; }
.user-meta strong { color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { color: #8fa7c0; font-size: 11px; }
.main { flex: 1; min-width: 0; margin-left: 250px; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 15px 28px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-title h1 { font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
.topbar-title p { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.content { padding: 24px 28px 48px; max-width: 1360px; width: 100%; }
.sidebar-backdrop { display: none; }

/* --------------------------------------------------------- chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  background: #f1f5f9; color: #334155; border: 1px solid var(--line);
}
.chip-role { background: var(--blue-50); color: var(--blue); border-color: #dbe7ff; font-weight: 600; }
.chip-soft .ico { color: var(--muted); }

/* --------------------------------------------------------- cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card + .card { margin-top: 18px; }
.card-head {
  display: flex; align-items: flex-start; gap: 16px; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.card-head > div:first-child { min-width: 0; }
.card-head h2 { font-size: 14.5px; font-weight: 700; letter-spacing: -.1px; }
.card-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card-actions { display: flex; align-items: center; gap: 8px; flex: none; flex-wrap: wrap; max-width: 100%; }
.card-body { padding: 18px; }
.card-body-flush { padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.grid-2 > .card + .card { margin-top: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.grid-side { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.grid-side > div > .card + .card { margin-top: 18px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 4px; }
.detail-main > .card + .card, .detail-side > .card + .card { margin-top: 18px; }

/* --------------------------------------------------------- stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stat-card {
  display: flex; align-items: flex-start; gap: 13px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 17px;
  box-shadow: var(--shadow); color: inherit;
}
a.stat-card:hover { border-color: #c9d8ee; }
.stat-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.tone-blue { background: #eff5ff; color: #1d4ed8; }
.tone-green { background: var(--green-50); color: var(--green); }
.tone-amber { background: var(--amber-50); color: var(--amber); }
.tone-violet { background: var(--violet-50); color: var(--violet); }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat-value { font-size: 24px; font-weight: 700; letter-spacing: -.6px; margin-top: 2px; line-height: 1.2; }
.stat-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* --------------------------------------------------------- hero */
.hero-card {
  display: flex; align-items: center; gap: 20px; justify-content: space-between;
  padding: 22px 24px; border-radius: 14px;
  background: linear-gradient(120deg, #0f2942 0%, #17395c 62%, #1d4a79 100%);
  color: #e8f0f9; box-shadow: 0 14px 34px -22px rgba(15, 41, 66, .9);
  flex-wrap: wrap;
}
.hero-eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; color: #8fb0d1; font-weight: 600; }
.hero-card h2 { font-size: 20px; color: #fff; margin-top: 6px; letter-spacing: -.3px; }
.hero-sub { font-size: 13px; color: #a9c1d8; margin-top: 6px; max-width: 620px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-card .btn-outline { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; }
.hero-card .btn-primary { background: #fff; color: var(--navy); }
.hero-card .btn-primary:hover { background: #eaf1fb; }

/* --------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 15px; border-radius: 9px;
  font-size: 13px; font-weight: 600; font-family: inherit;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  text-decoration: none;
}
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 6px 16px -12px rgba(37, 99, 235, .9); }
.btn-primary:hover { background: var(--blue); color: #fff; }
.btn-outline { background: #fff; border-color: #cfdaea; color: #1e3a5f; }
.btn-outline:hover { background: #f7fafd; border-color: #b9cbe4; }
.btn-ghost { background: transparent; color: var(--blue); padding: 7px 10px; }
.btn-ghost:hover { background: var(--blue-50); }
.btn-danger-ghost { background: transparent; color: var(--red); padding: 7px 10px; }
.btn-danger-ghost:hover { background: var(--red-50); }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 12px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer;
}
.row-actions { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.row-actions form { margin: 0; }

/* --------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 12.5px; font-weight: 600; color: #334155; }
.field > span em { color: var(--red); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid #d5dfeb; border-radius: 9px;
  font-family: inherit; font-size: 13.5px; color: var(--ink);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.field-hint { font-size: 11.5px; color: var(--muted); }
.field-full { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; flex-wrap: wrap; }
.filter-bar { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.filter-bar .field-inline { margin-bottom: 0; min-width: 150px; }
.filter-bar .field-inline > span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.filter-bar select { padding: 8px 10px; font-size: 13px; }
.field-search { margin-bottom: 12px; }
.input-sm { padding: 7px 9px; border: 1px solid #d5dfeb; border-radius: 7px; font-size: 12.5px; font-family: inherit; width: 100%; }
.num-input { max-width: 84px; text-align: center; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form .input-sm { max-width: 190px; }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--blue-600); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfe; font-size: 12.5px; font-weight: 600; color: #334155; }

/* --------------------------------------------------------- alerts */
.alert { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; border: 1px solid; }
.alert-success { background: var(--green-50); border-color: #cdeedd; color: #14532d; }
.alert-error { background: var(--red-50); border-color: #fbd5d5; color: #7f1d1d; }
.alert-warn { background: var(--amber-50); border-color: #fde3ab; color: #78350f; }
.alert-info { background: var(--blue-50); border-color: #dbe7ff; color: #1e3a5f; }
.alert-info a { font-weight: 600; }
.alert .ico { margin-top: 1px; flex: none; }

/* --------------------------------------------------------- table */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); font-weight: 600; padding: 11px 14px;
  background: #f8fafc; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfdff; }
.table td.num-col, .table th.num-col { text-align: right; }
.table td strong { font-weight: 600; }
.table td small { font-size: 11.5px; color: var(--muted); }
.cell-link { color: inherit; display: block; }
.cell-link:hover strong { color: var(--blue); }

/* --------------------------------------------------------- misc bits */
.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .1px; border: 1px solid transparent; white-space: nowrap; }
.badge-good { background: var(--green-50); color: var(--green); border-color: #cdeedd; }
.badge-ok { background: var(--amber-50); color: var(--amber); border-color: #fde3ab; }
.badge-bad { background: var(--red-50); color: var(--red); border-color: #fbd5d5; }
.badge-info { background: var(--blue-50); color: var(--blue); border-color: #dbe7ff; }
.badge-warn { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.badge-violet { background: var(--violet-50); color: var(--violet); border-color: #ddd6fe; }
.badge-neutral { background: #f1f5f9; color: #475569; border-color: var(--line); }
.score-pill { display: inline-flex; min-width: 52px; justify-content: center; padding: 4px 9px; border-radius: 8px; font-weight: 700; font-size: 12.5px; }
.tone-good { background: var(--green-50); color: var(--green); }
.tone-ok { background: var(--amber-50); color: var(--amber); }
.tone-bad { background: var(--red-50); color: var(--red); }
.tone-muted { background: #f1f5f9; color: var(--muted); }
.tone-text-good { color: var(--green); }
.tone-text-ok { color: var(--amber); }
.tone-text-bad { color: var(--red); }
.tone-text-muted { color: var(--muted); }

.progress { height: 7px; background: #eef2f7; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.progress-fill { display: block; height: 100%; border-radius: 999px; transition: width .3s; }
.fill-good { background: #16a34a; }
.fill-ok { background: #f59e0b; }
.fill-bad { background: #dc2626; }
.fill-muted { background: #94a3b8; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 18px; color: var(--muted); text-align: center; font-size: 13px; }
.empty .ico { color: #b6c4d6; }

.donut-wrap { position: relative; flex: none; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-center strong { font-size: 27px; font-weight: 700; letter-spacing: -.8px; color: var(--navy); }
.donut-center small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 600; }
.score-flex { display: flex; align-items: center; gap: 22px; }
.score-flex-body { flex: 1; min-width: 0; }
.kpi-list { display: grid; gap: 13px; }
.kpi-list-sm { gap: 10px; }
.kpi-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.kpi-name { font-size: 12.5px; font-weight: 600; color: #334155; }
.kpi-name small { font-size: 10.5px; font-weight: 500; color: var(--muted); }
.kpi-value { font-size: 13.5px; font-weight: 700; }
.kpi-detail { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.kpi-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.kpi-chip { display: flex; flex-direction: column; gap: 1px; padding: 9px 13px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; min-width: 130px; }
.kpi-chip-name { font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
.kpi-chip strong { font-size: 18px; letter-spacing: -.4px; }
.kpi-chip small { font-size: 10.5px; color: var(--muted); }

.chart { display: flex; align-items: flex-end; gap: 12px; height: 170px; padding-top: 16px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 5px; }
.chart-bar { width: 100%; max-width: 44px; border-radius: 6px 6px 3px 3px; display: block; min-height: 4px; }
.chart-val { font-size: 11px; font-weight: 600; color: #475569; }
.chart-lbl { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }

.mini-list { display: grid; gap: 1px; }
.mini-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); font-size: 12.5px; }
.mini-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-list span { color: var(--muted); }
.mini-list strong { font-weight: 600; }
.note-list { display: grid; gap: 9px; font-size: 12.5px; color: #475569; padding-left: 18px; list-style: disc; }
.read-block h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 12px 0 4px; }
.read-block h3:first-child { margin-top: 0; }
.read-block p { font-size: 13.5px; line-height: 1.65; }

.page-head { margin-bottom: 16px; }
.page-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.page-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar-actions { display: flex; gap: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.back-link:hover { color: var(--blue); }
.back-link .ico { transform: rotate(180deg); }

/* --------------------------------------------------------- wizard / absen */
.wizard { display: grid; gap: 18px; }
.wizard .card + .card { margin-top: 0; }
.step-title { display: flex; gap: 12px; align-items: flex-start; }
.step-num {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: 12.5px;
  display: grid; place-items: center; border: 1px solid #dbe7ff;
}
.store-list { display: grid; gap: 9px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.store-option { display: flex; gap: 11px; align-items: flex-start; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; background: #fff; }
.store-option:hover { border-color: #c2d5ee; background: #fbfdff; }
.store-option input { margin-top: 2px; accent-color: var(--blue-600); width: 16px; height: 16px; flex: none; }
.store-option:has(input:checked) { border-color: var(--blue-600); background: #f5f9ff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.store-option-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.store-option-top { display: flex; align-items: center; gap: 8px; }
.store-option-top strong { font-size: 13.5px; font-weight: 600; }
.store-option-address { font-size: 12px; color: var(--muted); }
.store-option-meta { font-size: 11px; color: #7b8ca3; display: inline-flex; align-items: center; gap: 4px; }

.absen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.camera-box { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; border: 1px dashed #c8d6e8; background: #f8fafc; display: grid; place-items: center; overflow: hidden; margin-bottom: 10px; }
.camera-box img { width: 100%; height: 100%; object-fit: cover; }
.camera-placeholder { display: flex; flex-direction: column; align-items: center; gap: 5px; color: #91a3ba; text-align: center; padding: 14px; }
.camera-placeholder p { font-size: 12.5px; font-weight: 600; color: #64748b; }
.camera-placeholder small { font-size: 11px; }
.absen-meta { display: flex; flex-direction: column; gap: 8px; }
.meta-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); font-size: 12.5px; }
.meta-label { color: var(--muted); }
.meta-value { font-weight: 600; text-align: right; }
.geo-status { margin: 6px 0; }
.map { border-radius: 11px; overflow: hidden; border: 1px solid var(--line); background: #eef3f9; z-index: 0; }
.map-sm { height: 170px; }
.map-md { height: 210px; margin-top: 8px; }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.submit-note { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); max-width: 520px; }
.absen-view { display: grid; grid-template-columns: 190px 1fr; gap: 18px; }
.absen-view-photo .photo-thumb, .absen-view-photo .camera-placeholder { width: 100%; aspect-ratio: 3 / 4; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); cursor: zoom-in; }
.absen-view-meta { display: flex; flex-direction: column; gap: 2px; }

/* --------------------------------------------------------- penetapan toko */
.assign-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.assign-item {
  display: flex; align-items: center; gap: 9px; min-width: 0;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px;
  cursor: pointer; background: #fff; transition: border-color .15s, background .15s;
}
.assign-item:hover { border-color: #c2d5ee; background: #fbfdff; }
.assign-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.assign-item .jd-check { margin-top: 0; }
.assign-item:has(input:checked) { border-color: #bfe3cc; background: #f6fdf9; }
.assign-item:has(input:checked) .jd-check { background: #16a34a; border-color: #16a34a; color: #fff; }
.assign-text { display: flex; flex-direction: column; min-width: 0; }
.assign-text strong { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.assign-text small { font-size: 11px; color: var(--muted); }
.badge-row { display: flex; flex-wrap: wrap; gap: 4px; }

/* --------------------------------------------------------- jobdes */
.jd-group + .jd-group { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.jd-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.jd-group-head h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--navy-500); font-weight: 700; }
.jd-list { display: grid; gap: 7px; }
.jd-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; transition: background .15s, border-color .15s; }
.jd-item:hover { background: #fbfdff; }
.jd-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.jd-check { width: 19px; height: 19px; border-radius: 5px; border: 1.5px solid #cbd5e1; display: grid; place-items: center; flex: none; color: transparent; margin-top: 1px; transition: .15s; background: #fff; }
.jd-item.is-checked { border-color: #bfe3cc; background: #f6fdf9; }
.jd-item.is-checked .jd-check { background: #16a34a; border-color: #16a34a; color: #fff; }
.jd-text strong { font-size: 13px; font-weight: 600; display: block; }
.jd-text small { font-size: 11.5px; color: var(--muted); display: block; margin-top: 1px; }
.jd-order {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 5px; margin-right: 4px;
  background: #f1f5f9; color: #64748b; font-size: 10.5px; font-weight: 700;
  vertical-align: 1px;
}
.jd-admin-group + .jd-admin-group { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.jd-admin-list { display: grid; gap: 8px; }
.jd-admin-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
.jd-admin-text strong { display: block; font-size: 13px; }
.jd-admin-text small { font-size: 11.5px; color: var(--muted); }

/* --------------------------------------------------------- temuan */
.finding-list { display: grid; gap: 10px; }
.finding { border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; background: #fff; }
.finding.is-done { background: #fbfefc; border-color: #d8eee1; }
.finding-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.finding-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.finding-badges { display: flex; gap: 5px; }
.finding-desc { font-size: 12.5px; color: #475569; margin-top: 6px; }
.finding-photo { max-width: 220px; border-radius: 8px; margin-top: 8px; border: 1px solid var(--line); }
.finding-res { font-size: 12px; color: #14532d; background: var(--green-50); border-radius: 7px; padding: 7px 10px; margin-top: 8px; }
.finding-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.finding-form { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.img-preview-slot img { max-width: 150px; border-radius: 8px; border: 1px solid var(--line); margin-top: 4px; }

/* --------------------------------------------------------- rank / supervisor cards */
.rank-list { display: grid; gap: 9px; }
.rank-item { display: flex; gap: 12px; align-items: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; color: inherit; transition: border-color .15s, background .15s; }
.rank-item:hover { border-color: #c2d5ee; background: #fbfdff; }
.rank-num { width: 24px; height: 24px; border-radius: 7px; background: #f1f5f9; color: #475569; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.rank-item:first-child .rank-num { background: #fef3c7; color: #92400e; }
.rank-body { flex: 1; min-width: 0; }
.rank-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rank-top strong { font-size: 13.5px; }
.rank-meta { font-size: 11.5px; color: var(--muted); }
.sup-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: inherit; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.sup-card:hover { border-color: #c2d5ee; transform: translateY(-1px); }
.sup-card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.sup-card-head > div { flex: 1; min-width: 0; }
.sup-card-head strong { display: block; font-size: 14px; }
.sup-card-head small { font-size: 11.5px; color: var(--muted); }
.sup-kpi { display: grid; gap: 5px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-soft); }
.sup-kpi-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.sup-kpi-row span:last-child { font-weight: 700; }


.jd-item.is-locked { cursor: default; background: #fbfcfd; }
.jd-item.is-locked:hover { background: #fbfcfd; }
.jd-item.is-locked .jd-check { opacity: .8; }

.jobdes-progress { margin-bottom: 14px; }
.jobdes-progress .progress { margin-top: 5px; }


/* --------------------------------------------------------- titik lokasi toko */
.maps-paste { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.maps-paste input { flex: 1 1 260px; min-width: 0; padding: 10px 12px; border: 1px solid #d5dfeb; border-radius: 9px; font-family: inherit; font-size: 13px; }
.maps-paste .btn { flex: none; }
.geo-help { border: 1px solid var(--line); border-radius: 9px; background: #fbfdff; padding: 9px 11px; font-size: 12px; }
.geo-help summary { cursor: pointer; font-weight: 600; color: #1e3a5f; list-style: none; }
.geo-help summary::-webkit-details-marker { display: none; }
.geo-help summary::before { content: 'ⓘ '; }
.geo-help[open] summary { margin-bottom: 6px; }
.geo-help-list { margin: 0; padding-left: 18px; display: grid; gap: 5px; color: #475569; line-height: 1.5; }
.geo-help-list li { list-style: decimal; }


/* --------------------------------------------------------- pemilih titik peta */
.map-readout {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin-top: 7px; padding: 7px 10px;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 9px; font-size: 12px;
}

/* --------------------------------------------------------- titik toko (Google Maps) */
.gmaps-step { display: flex; gap: 11px; align-items: flex-start; padding: 12px 0; border-top: 1px dashed var(--line-soft); }
.gmaps-step:first-of-type { border-top: 0; padding-top: 4px; }
.gmaps-step-num {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--blue-50); color: var(--blue); border: 1px solid #dbe7ff;
}
.gmaps-step-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.gmaps-step-body strong { font-size: 13px; }
.gmaps-step-body p { font-size: 12px; color: var(--muted); line-height: 1.55; }
.gmaps-preview {
  position: relative; border: 1px solid var(--line); border-radius: 11px;
  overflow: hidden; background: #eef2f7; min-height: 240px;
}
.gmaps-preview iframe { width: 100%; height: 280px; border: 0; display: block; }
.gmaps-preview.is-empty iframe { display: none; }
.gmaps-preview-empty { display: none; }
.gmaps-preview.is-empty .gmaps-preview-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; padding: 34px 18px; text-align: center; color: var(--muted); font-size: 12.5px;
}
.gmaps-preview.is-empty .gmaps-preview-empty .ico { color: #b6c4d6; }


/* --------------------------------------------------------- lihat password */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 42px !important; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 7px;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; color: #7b8ca3; font-family: inherit;
  transition: background .15s, color .15s;
}
.pw-toggle:hover { background: #eef2f8; color: #334155; }
.pw-toggle:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 1px; }
.pw-toggle .pw-eye-off { display: block; }
.pw-toggle .pw-eye { display: none; }
.pw-toggle.is-visible { color: var(--blue); }
.pw-toggle.is-visible .pw-eye { display: block; }
.pw-toggle.is-visible .pw-eye-off { display: none; }


/* --------------------------------------------------------- temuan terbuka */
.store-open-list { display: grid; gap: 8px; }
.store-open-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  color: inherit; transition: border-color .15s, background .15s;
}
.store-open-item:hover { border-color: #c9d8ee; background: #fbfdff; }
.store-open-body { display: flex; flex-direction: column; min-width: 0; }
.store-open-body strong { font-size: 13px; }
.store-open-body small { font-size: 11px; color: var(--muted); }
.store-open-counts { display: flex; align-items: center; gap: 6px; flex: none; }


/* --------------------------------------------------------- durasi penyelesaian */
.resolve-summary {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px; margin: 18px 0;
}
.resolve-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 15px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px;
}
.resolve-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
.resolve-item strong { font-size: 19px; letter-spacing: -.4px; }
.resolve-item small { font-size: 11px; color: var(--muted); }

/* --------------------------------------------------------- target KPI */
.stat-of { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.progress-inline { display: inline-block; width: 96px; vertical-align: middle; margin-top: 0; }
.empty-sm { padding: 20px 14px; }
.empty-sm p { font-size: 12.5px; max-width: 380px; }
.mt-10 { margin-top: 10px; }
.card-head h2 .badge { vertical-align: middle; margin-left: 6px; font-size: 10px; }

/* --------------------------------------------------------- print paper */
.print-body { background: #eef2f7; }
.paper { max-width: 820px; margin: 0 auto; background: #fff; padding: 38px 42px; border-radius: 8px; box-shadow: 0 12px 40px -24px rgba(15, 41, 66, .6); }
.paper-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 2px solid var(--navy); padding-bottom: 14px; margin-bottom: 20px; }
.paper-brand { font-size: 11px; letter-spacing: 2px; font-weight: 700; color: var(--blue); }
.paper-head h1 { font-size: 19px; margin-top: 3px; letter-spacing: -.2px; }
.paper-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.paper-score { text-align: right; }
.paper-score span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); display: block; font-weight: 600; }
.paper-score strong { font-size: 28px; letter-spacing: -.8px; }
.paper-section { margin-bottom: 20px; }
.paper-section h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: var(--navy-500); border-left: 3px solid var(--blue-600); padding-left: 8px; margin-bottom: 9px; }
.paper-section h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 12px 0 3px; }
.paper-section p { font-size: 12.5px; line-height: 1.6; }
.paper-two { display: grid; grid-template-columns: 200px 1fr; gap: 22px; }
.paper-photo { width: 100%; border-radius: 6px; border: 1px solid var(--line); }
.paper-noimg { height: 150px; display: grid; place-items: center; background: #f8fafc; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); font-size: 12px; }
.paper-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.paper-table th, .paper-table td { border: 1px solid #dfe6ee; padding: 6px 8px; text-align: left; vertical-align: top; }
.paper-table th { background: #f6f9fc; font-weight: 600; color: #334155; }
.paper-table tr.grp td { background: #eef4fb; font-weight: 700; text-transform: uppercase; font-size: 10.5px; letter-spacing: .5px; }
.paper-table tr.total th { background: #eef4fb; }
.paper-table td.box { text-align: center; width: 26px; font-weight: 700; color: var(--green); }
.jobdes-table .hint { font-size: 10.5px; color: var(--muted); }
.hint { font-size: 11px; color: var(--muted); }
.paper-sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; text-align: center; font-size: 11.5px; }
.paper-sign p { color: var(--muted); margin-bottom: 46px; }
.sign-line { border-top: 1px solid #94a3b8; padding-top: 5px; display: block; font-weight: 600; }
.paper-actions { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }

@media print {
  body, .print-body { background: #fff !important; padding: 0 !important; }
  .paper { box-shadow: none; padding: 0; max-width: none; border-radius: 0; }
  .paper-actions { display: none !important; }
  .sidebar, .topbar, .sidebar-backdrop, .chart, .paper-actions { display: none !important; }
  .main { margin-left: 0 !important; }
  .content { padding: 0 !important; }
  .card { box-shadow: none; break-inside: avoid; }
  .page-toolbar, .filter-bar, .toolbar-actions { display: none !important; }
  a { color: inherit; text-decoration: none; }
}

/* --------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .grid-side, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(15, 41, 66, .3); }
  .sidebar.is-open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-btn { display: grid; }
  .topbar { padding: 12px 16px; }
  .content { padding: 18px 16px 40px; }
  .sidebar-backdrop.is-open { display: block; position: fixed; inset: 0; background: rgba(15, 41, 66, .4); z-index: 35; }
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .absen-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-grid-3 { grid-template-columns: 1fr 1fr; }
  .paper-two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stat-grid, .stat-grid-3 { grid-template-columns: 1fr; }
  .topbar-right .chip-soft { display: none; }
  .score-flex { flex-direction: column; align-items: stretch; }
  .donut-wrap { align-self: center; }
  .absen-view { grid-template-columns: minmax(0, 1fr); }
  .assign-grid { grid-template-columns: minmax(0, 1fr); }
  .gmaps-preview iframe { height: 220px; }
  .resolve-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .absen-view-photo .photo-thumb, .absen-view-photo .camera-placeholder { aspect-ratio: 4 / 3; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1; }
  .finding-badges { flex-wrap: wrap; }
  .paper { padding: 20px; }
}
