@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --navy: #163F72;
  --navy-light: #2F6FED;
  --gold: #D4AF37;
  --gold-soft: #F1E4B8;
  --paper: #FAF9F6;
  --border: #EDEAE0;
  --text-muted: #8A8478;
  --error: #C0392B;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--paper);
  color: var(--navy);
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
}

/* ---------- Login ---------- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 55%, #103A5E 100%);
}

.login-bg-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(1px);
  pointer-events: none;
}

.login-bg-shape-1 {
  width: 420px;
  height: 420px;
  top: -140px;
  left: -140px;
}

.login-bg-shape-2 {
  width: 560px;
  height: 560px;
  bottom: -220px;
  right: -200px;
  background: rgba(255, 255, 255, 0.07);
}

.login-card {
  width: 100%;
  max-width: 380px;
  padding: 2.5rem 2.25rem;
  text-align: center;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(8, 30, 54, 0.35);
  position: relative;
  z-index: 1;
}

.login-logo-img {
  display: block;
  height: 96px;
  width: auto;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.login-title {
  color: var(--navy);
  font-size: 1.4rem;
  margin: 0;
}

.login-sub {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0.25rem 0 2rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.login-form label {
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.login-form input {
  background: var(--paper);
  border: 1.5px solid var(--border);
  color: var(--navy);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  outline: none;
}

.login-form input:focus {
  border-color: var(--gold);
  background: #fff;
}

.login-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-password-wrap input {
  width: 100%;
  padding-right: 4.5rem;
}

.login-password-toggle {
  position: absolute;
  right: 0.6rem;
  background: var(--paper);
  border: none;
  color: var(--navy-light);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0.3rem;
  border-radius: 4px;
}

.login-password-toggle:hover {
  color: var(--navy);
}

.login-form button {
  margin-top: 0.75rem;
  padding: 0.85rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), #C49A2C);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
}

.login-footer {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  z-index: 1;
}

.alert {
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.alert-error {
  background: rgba(192, 57, 43, 0.15);
  color: #FF8A80;
}

/* ---------- Dashboard shell ---------- */
.topbar {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 130%);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.topbar-title {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.topbar-sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.topbar-logout {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
}

.content {
  padding: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.card h2 {
  margin-top: 0;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.nav-links a {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}

/* ---------- Form ---------- */
.form-group {
  margin-bottom: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.form-group .hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #E0DCD0;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  background: #fff;
  color: var(--navy);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group.checkbox label {
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--navy);
  color: var(--gold);
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--navy);
  color: var(--navy);
}

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.85rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table.data th {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Badge status ---------- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-menunggu { background: var(--gold-soft); color: var(--navy); }
.badge-lanjut { background: #EAF6EE; color: #2E7D4F; }
.badge-tolak { background: #FDEBEA; color: var(--error); }
.badge-selesai { background: #E7ECF5; color: var(--navy); }

.banner-success {
  background: #EAF6EE;
  color: #2E7D4F;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.empty-state {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 2rem 1rem;
}

/* ---------- Survey multi-step ---------- */
.survey-rail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.85rem 1rem;
  background: var(--navy);
  overflow-x: auto;
}

.survey-step {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  border: 2px solid transparent;
}

.survey-step.active {
  background: var(--gold-soft);
  color: var(--navy);
  border-color: var(--gold);
}

.survey-step.done {
  background: var(--gold);
  color: var(--navy);
}

.survey-nav {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.survey-nav .btn {
  flex: 1;
}

.calc-box {
  background: var(--navy);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.calc-box .calc-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.calc-box .calc-value {
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 700;
}

.calc-box .calc-note {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  margin-top: 0.4rem;
  line-height: 1.4;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  color: rgba(255, 255, 255, 0.7);
}

.calc-row .val {
  color: var(--gold);
  font-weight: 700;
}

tr.jadwal-terakhir td {
  background: var(--gold-soft);
  font-weight: 700;
  color: var(--navy);
}

.rasio-box {
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.rasio-ok {
  background: #EAF6EE;
  color: #2E7D4F;
}

.rasio-warning {
  background: #FDEBEA;
  color: var(--error);
}

.akad-box {
  background: var(--gold-soft);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.akad-box .hint {
  color: #8A7A3D;
  margin-top: 0.3rem;
}

/* ---------- Pill group (radio bergaya tombol + badge skor) ---------- */
.pill-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pill-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid #E0DCD0;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  background: #fff;
  font-size: 0.9rem;
  color: var(--navy);
}

.pill-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pill-option.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  font-weight: 600;
}

.pill-score {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #F0EEE6;
  color: #B5AF9E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pill-option.active .pill-score {
  background: var(--gold);
  color: var(--navy);
}

/* ---------- Toggle biner Jujur/Tidak Jujur ---------- */
.jujur-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.jujur-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #E0DCD0;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  background: #fff;
  color: var(--navy);
  text-align: center;
}

.jujur-btn input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.jujur-btn.jujur-ok.active {
  border-color: #2E7D4F;
  background: #EAF6EE;
  color: #2E7D4F;
}

.jujur-btn.jujur-bad.active {
  border-color: var(--error);
  background: #FDEBEA;
  color: var(--error);
}

.slik-warning {
  background: #FDEBEA;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.slik-warning-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--error);
  margin-bottom: 0.25rem;
}

.slik-warning-body {
  font-size: 0.8rem;
  color: #8A4A42;
}

.jujur-note {
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
  margin-top: 0.6rem;
  line-height: 1.4;
}

.jujur-note-ok {
  color: #2E7D4F;
}

.jujur-note-bad {
  background: #FDEBEA;
  color: var(--error);
}

/* ---------- Multi-entry utang lain (Tahap 4) ---------- */
.utang-row {
  margin-bottom: 0.75rem;
}

.utang-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.utang-row-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.utang-remove {
  background: none;
  border: none;
  color: var(--error);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}

.status-toggle {
  display: flex;
  gap: 0.5rem;
}

.status-btn {
  flex: 1;
  text-align: center;
  padding: 0.55rem;
  border: 1px solid #E0DCD0;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: var(--navy);
}

.status-btn input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.status-btn.active {
  border-color: var(--gold);
  background: var(--gold-soft);
}

/* ---------- Aset checklist (Tahap 5) ---------- */
.aset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.aset-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #E0DCD0;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  background: #fff;
  color: var(--navy);
}

.aset-chip.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  font-weight: 600;
}

/* ---------- Upload foto (Tahap 5-7) ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.photo-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.photo-slot {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.photo-preview-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #F0EEE6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-empty {
  color: #9B9481;
  font-size: 0.75rem;
  text-align: center;
  padding: 0 0.5rem;
}

.photo-input-hidden {
  display: none;
}

.photo-pick-label {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  padding: 0.5rem;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Hasil (Tahap 8) ---------- */
.hasil-score-card {
  background: var(--navy);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.hasil-score-card .label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hasil-score-card .angka {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.hasil-score-card .angka.final {
  color: var(--gold);
}

.hasil-score-card .angka.sementara {
  color: #9B9481;
}

.hasil-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.hasil-badge-layak {
  background: #2E7D4F;
}

.hasil-badge-catatan {
  background: #B8860B;
}

.hasil-badge-tolak {
  background: var(--error);
}

.hasil-badge-belum-lengkap {
  background: #5A5548;
}

.resume-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--navy);
  margin: 0;
}

.rincian-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rincian-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
}

.rincian-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.rincian-bobot {
  font-size: 0.7rem;
  color: #9B9481;
}

/* ---------- Antrian keputusan (Kacab/Manajer/Ketua Pengurus/Badan Pengurus) ---------- */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  flex: 1;
  min-width: 130px;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 140%);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.35rem;
}

/* ---------- Rekap per Unit (AO) — tabel Kabag & bar chart Manajer, no CDN ---------- */
.rekap-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.rekap-card h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--navy);
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.9rem;
  height: 220px;
  padding: 0 0.25rem;
  overflow-x: auto;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 56px;
  height: 100%;
}

.bar-col-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.bar-col-fill {
  width: 100%;
  max-width: 46px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--navy-light) 100%);
  border-radius: 6px 6px 0 0;
  min-height: 3px;
}

.bar-col-label {
  font-size: 0.7rem;
  color: #6B6455;
  margin-top: 0.5rem;
  text-align: center;
  white-space: nowrap;
}

.section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.5rem 0 0.6rem;
}

.tugas-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.6rem;
}

.tugas-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.tugas-card-link:hover {
  border-color: var(--gold);
}

.tugas-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.badge-urgent {
  background: #FDEBEA;
  color: var(--error);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tugas-nama {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.tugas-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.tugas-waktu {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
}

.rincian-skor {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.tahap-placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 3rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #fff;
}

/* ---------- Beranda per role: hero + stat + action card (2026-07-30) ---------- */
.dash-hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 130%);
  border-radius: 18px;
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.dash-hero::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
}

.dash-hero h1 {
  margin: 0 0 0.3rem;
  color: #fff;
  font-size: 1.4rem;
  position: relative;
}

.dash-hero .dash-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  position: relative;
}

.dash-hero .dash-sub strong {
  color: var(--gold);
}

.dash-empty-hint {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  margin-top: 0.6rem;
  position: relative;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  text-decoration: none;
  color: var(--navy);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.1);
  border-color: var(--gold);
}

.action-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}

.action-icon svg {
  width: 20px;
  height: 20px;
}

.action-title {
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.3;
}

.action-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.action-count {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  min-width: 20px;
  height: 20px;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--error);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Page header ringkas (halaman interior, bukan beranda) ---------- */
.page-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.page-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-header-icon svg {
  width: 22px;
  height: 22px;
}

.page-header-text h1 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.25;
}

.page-header-text .page-header-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.back-link:hover {
  color: var(--gold);
}

/* ---------- Tabel: zebra + hover, bikin daftar panjang lebih gampang dibaca ---------- */
table.data tbody tr:nth-child(even) {
  background: #FBFAF7;
}

table.data tbody tr:hover {
  background: var(--gold-soft);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.empty-state .empty-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state .empty-icon svg {
  width: 24px;
  height: 24px;
}

/* ---------- Chip dokumen (hasil SLIK dkk, campur foto+PDF) ---------- */
.dok-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.dok-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #E0DCD0;
  border-radius: 8px;
  padding: 0.35rem 0.6rem 0.35rem 0.35rem;
  background: #fff;
  text-decoration: none;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
}

.dok-chip:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.dok-chip img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

.dok-chip .dok-chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: var(--gold-soft);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dok-chip .dok-chip-icon svg {
  width: 16px;
  height: 16px;
}
