/* =====================================================================
   SIM-GT — Putih bersih · Hijau pesantren · Klasik & modern
   ===================================================================== */

:root {
  --green-950: #052418;
  --green-900: #0a3624;
  --green-800: #0e4a31;
  --green-700: #14603f;
  --green-600: #18774e;
  --green-500: #1f9463;
  --green-100: #dcefe3;
  --green-50:  #f1f8f3;
  --gold:      #b9924a;
  --gold-soft: #e6d7b4;
  --cream:     #fbfaf5;
  --paper:     #ffffff;
  --ink:       #16221c;
  --ink-soft:  #3a4a42;
  --muted:     #6f7f77;
  --line:      #e5ece7;
  --line-soft: #eff4f0;
  --danger:    #a93f38;
  --danger-soft:#fbeceb;
  --gold-bg:   #fbf4e2;
  --heading:   var(--green-900);
  --heading-soft: var(--green-800);
  --link:      var(--green-700);
  --link-strong: var(--green-600);
  --surface-soft: #fcfdfb;
  --card-head-bg: linear-gradient(180deg, #fff, #fdfefa);
  --fs: 1;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(10, 54, 36, .04), 0 10px 30px -18px rgba(10, 54, 36, .25);
  --shadow-lg: 0 24px 60px -30px rgba(10, 54, 36, .35);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: calc(14.5px * var(--fs));
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 100% 0, rgba(31, 148, 99, .05), transparent 45%),
    radial-gradient(circle at 0 100%, rgba(185, 146, 74, .05), transparent 40%);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-strong); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--heading); margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: 27px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

.ico { vertical-align: -3px; flex: none; }

/* ------------------------------ Layout ------------------------------ */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 264px;
  flex: none;
  background: linear-gradient(175deg, var(--green-900) 0%, var(--green-950) 100%);
  color: #eaf4ee;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 40;
  border-right: 1px solid rgba(255, 255, 255, .05);
}
.sidebar::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), #e6d7b4 45%, transparent);
  opacity: .85;
}
.brand {
  padding: 26px 22px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.brand-mark {
  width: 44px; height: 44px; flex: none;
  border: 1px solid rgba(230, 215, 180, .5);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 19px; color: var(--gold-soft);
  background: rgba(255, 255, 255, .04);
}
.brand-mark.has-image {
  padding: 0; overflow: hidden; background: #fff;
  border-color: rgba(230, 215, 180, .65);
}
.brand-mark.has-image img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; font-family: var(--serif); font-size: 18px; letter-spacing: .04em; color: #fff; }
.brand-text span { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(234, 244, 238, .55); }

.nav { padding: 16px 12px 28px; overflow-y: auto; flex: 1; scrollbar-width: thin; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }
.nav-fold { margin: 2px 0; }
.nav-fold > summary.nav-group {
  margin: 12px 10px 6px;
  padding: 4px 2px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(230, 215, 180, .62); cursor: pointer; list-style: none;
  border-radius: 6px; user-select: none;
}
.nav-fold > summary.nav-group::-webkit-details-marker { display: none; }
.nav-fold > summary.nav-group:hover { color: var(--gold-soft); }
.nav-fold > summary.nav-group .ico { opacity: .55; transition: transform .18s ease; }
.nav-fold[open] > summary.nav-group .ico { transform: rotate(180deg); }
.nav-fold:first-child > summary.nav-group { margin-top: 2px; }
.nav-fold-body { padding-bottom: 2px; }
.nav-fold:not([open]) > summary.nav-group { margin-bottom: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; margin: 2px 0;
  border-radius: 9px; color: rgba(234, 244, 238, .78);
  font-size: 13.5px; transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.active {
  background: rgba(230, 215, 180, .12);
  color: #fff;
  box-shadow: inset 2px 0 0 var(--gold);
}
.nav-item .ico { opacity: .8; }
.nav-item .count {
  margin-left: auto; background: var(--gold); color: var(--green-950);
  font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 20px;
}
.sidebar-foot { padding: 14px 18px 20px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 11.5px; color: rgba(234, 244, 238, .45); }
.sidebar-foot strong { display: block; color: rgba(234, 244, 238, .8); font-weight: 500; }

.main { flex: 1; margin-left: 264px; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 66px; display: flex; align-items: center; gap: 16px;
  padding: 0 30px; background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.topbar .crumb { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.topbar .crumb strong { color: var(--heading-soft); font-weight: 600; }
.topbar-spacer { flex: 1; }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-100); color: var(--heading-soft);
  display: grid; place-items: center; font-weight: 600; font-size: 13px;
  border: 1px solid rgba(20, 96, 63, .15);
}
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.user-meta { line-height: 1.2; }
.user-meta strong { display: block; font-size: 13px; color: var(--heading); }
.user-meta span { font-size: 11px; color: var(--muted); text-transform: capitalize; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--paper); display: grid; place-items: center; color: var(--ink-soft);
  cursor: pointer; position: relative;
}
.icon-btn:hover { border-color: var(--green-100); color: var(--link); background: var(--green-50); }
.icon-btn .dot { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }

.content { padding: 30px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head .titles { flex: 1; min-width: 240px; }
.page-head h1 { margin-bottom: 2px; }
.page-head .sub { color: var(--muted); font-size: 13px; margin: 0; }
.page-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.eyebrow { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 6px; }

/* ------------------------------ Cards ------------------------------- */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 22px; overflow: hidden;
}
.card-head {
  padding: 16px 20px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--card-head-bg);
}
.card-head h2, .card-head h3 { margin: 0; font-size: 16px; }
.card-head .sub { font-size: 12px; color: var(--muted); margin: 0; }
.card-head .spacer { flex: 1; }
.card-body { padding: 20px; }
.card-body.tight { padding: 0; }
.card-foot { padding: 13px 20px; border-top: 1px solid var(--line-soft); background: var(--surface-soft); }
.card-accent { border-top: 3px solid var(--gold); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 22px; align-items: start; }

/* ----------------------------- Stat cards --------------------------- */
.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.stat::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--green-600), var(--green-100));
}
.stat.gold::before { background: linear-gradient(180deg, var(--gold), var(--gold-soft)); }
.stat-label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.stat-value { font-family: var(--serif); font-size: 30px; color: var(--heading); line-height: 1.15; margin: 6px 0 2px; }
.stat-note { font-size: 11.5px; color: var(--muted); }
.stat-ico { position: absolute; right: 16px; top: 16px; color: var(--green-100); }

/* ------------------------------ Table ------------------------------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.3px; }
.table thead th {
  text-align: left; padding: 11px 16px; background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; white-space: nowrap;
}
.table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--green-50); }
.table .strong { font-weight: 600; color: var(--heading); }
.table .muted { color: var(--muted); font-size: 12.3px; }
.table-actions { display: flex; gap: 6px; justify-content: flex-end; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .center { text-align: center; }

/* ------------------------------ Badges ------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: .01em;
  padding: 3px 9px; border-radius: 20px; white-space: nowrap;
  border: 1px solid transparent;
}
.badge-green { background: #e9f6ee; color: #14613f; border-color: #cfe9d9; }
.badge-gold  { background: var(--gold-bg); color: #8a6a2b; border-color: #eddfc0; }
.badge-red   { background: var(--danger-soft); color: var(--danger); border-color: #f2d5d3; }
.badge-gray  { background: #f3f5f4; color: #5c6b64; border-color: #e6ece7; }
.badge-dark  { background: var(--green-900); color: #eaf4ee; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-50); border: 1px solid var(--green-100);
  color: var(--heading-soft); border-radius: 20px; padding: 3px 10px; font-size: 12px;
}

/* ------------------------------ Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: 9px; border: 1px solid transparent;
  font-size: 13px; font-weight: 600; font-family: var(--sans);
  cursor: pointer; transition: all .16s; text-decoration: none; line-height: 1.2;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--green-700), var(--green-800));
  color: #fff; box-shadow: 0 2px 8px -3px rgba(10, 54, 36, .45);
}
.btn-primary:hover { color: #fff; filter: brightness(1.07); transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, #c9a45f, var(--gold)); color: #221a0a; }
.btn-gold:hover { color: #221a0a; filter: brightness(1.05); }
.btn-outline { background: var(--paper); border-color: var(--line); color: var(--ink-soft); }
.btn-outline:hover { border-color: var(--link-strong); color: var(--link); background: var(--green-50); }
.btn-ghost { background: transparent; color: var(--link); }
.btn-ghost:hover { background: var(--green-50); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #f0d2cf; }
.btn-danger:hover { background: #f7dedc; }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: .5; pointer-events: none; }

/* ------------------------------ Forms ------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 2px; }
.field label, .label {
  font-size: 11.5px; font-weight: 700; color: var(--ink-soft);
  letter-spacing: .04em; text-transform: uppercase;
}
.field label .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; padding: 9px 12px; font-family: var(--sans); font-size: calc(13.5px * var(--fs));
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--link-strong);
  box-shadow: 0 0 0 3px rgba(31, 148, 99, .12);
}
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236f7f77' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.hint { font-size: 11.5px; color: var(--muted); }
.error-text { font-size: 11.5px; color: var(--danger); }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.check input { width: 16px; height: 16px; accent-color: var(--link-strong); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; margin: 0 0 18px; }
legend { padding: 0 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { flex: 1; min-width: 150px; margin: 0; }

/* ------------------------------ Alerts ------------------------------ */
.alert {
  display: flex; gap: 10px; align-items: flex-start;
  border-radius: var(--radius-sm); padding: 12px 15px; margin-bottom: 18px;
  font-size: 13px; border: 1px solid;
}
.alert .ico { margin-top: 2px; }
.alert-success { background: #edf8f1; border-color: #cfe9d9; color: #14613f; }
.alert-error   { background: var(--danger-soft); border-color: #f0d2cf; color: var(--danger); }
.alert-warning { background: var(--gold-bg); border-color: #eddfc0; color: #7c5f24; }
.alert-info    { background: #eef6fb; border-color: #d5e7f3; color: #24566f; }

/* ----------------------------- Empty state -------------------------- */
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty .ico { color: var(--green-100); margin-bottom: 10px; }
.empty strong { display: block; font-family: var(--serif); font-size: 17px; color: var(--ink-soft); margin-bottom: 4px; }
.empty p { font-size: 13px; margin: 0 0 14px; }

/* ------------------------------ Tabs -------------------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tab {
  padding: 9px 15px; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent;
  margin-bottom: -1px; font-weight: 600;
}
.tab:hover { color: var(--link); }
.tab.active { color: var(--heading-soft); border-bottom-color: var(--gold); }

/* ---------------------------- Pagination ---------------------------- */
.pagination { display: flex; align-items: center; gap: 5px; padding: 14px 18px; border-top: 1px solid var(--line-soft); }
.page-btn {
  min-width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 7px; font-size: 12.5px;
  color: var(--ink-soft); background: var(--paper);
}
.page-btn:hover { border-color: var(--link-strong); color: var(--link); }
.page-btn.active { background: var(--green-800); border-color: var(--heading-soft); color: #fff; }
.page-btn.disabled { opacity: .4; pointer-events: none; }
.page-info { margin-left: auto; font-size: 11.5px; color: var(--muted); }

/* ------------------------------ Detail ------------------------------ */
.detail-list { display: grid; grid-template-columns: 160px 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); overflow: hidden; }
.detail-list dt, .detail-list dd { margin: 0; padding: 10px 14px; background: var(--paper); font-size: 13px; }
.detail-list dt { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; background: var(--surface-soft); }
.detail-list dd { color: var(--ink); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--green-100); }
.timeline li { position: relative; padding: 0 0 20px 18px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--green-500); }
.timeline strong { display: block; font-size: 13px; color: var(--heading); }
.timeline span { font-size: 11.5px; color: var(--muted); }

.progress { height: 7px; background: var(--line-soft); border-radius: 20px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--green-600), var(--green-500)); border-radius: 20px; }
.progress.gold > span { background: linear-gradient(90deg, var(--gold), #d8bd85); }

/* --------------------------- Auth / publik -------------------------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-art {
  background:
    radial-gradient(circle at 20% 20%, rgba(230, 215, 180, .14), transparent 40%),
    linear-gradient(160deg, var(--green-900), var(--green-950));
  color: #eaf4ee; padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-art::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.02) 0 1px, transparent 1px 18px);
}
.auth-art > * { position: relative; }
.auth-art .brand-mark { width: 58px; height: 58px; font-size: 24px; }
.auth-art h1 { color: #fff; font-size: 40px; line-height: 1.15; margin: 30px 0 14px; max-width: 480px; }
.auth-art h1 em { color: var(--gold-soft); font-style: normal; }
.auth-art p { color: rgba(234, 244, 238, .72); max-width: 430px; font-size: 14px; }
.auth-quote { border-left: 2px solid var(--gold); padding-left: 16px; color: rgba(234, 244, 238, .7); font-family: var(--serif); font-size: 15px; }
.auth-quote span { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; color: rgba(230, 215, 180, .7); }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: var(--paper); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font-size: 26px; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.auth-card .field { margin-bottom: 14px; }
.auth-links { margin-top: 18px; font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin: 22px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Landing pemilihan pendaftaran */
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.choice {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--paper);
  transition: all .18s; display: block; color: var(--ink); box-shadow: var(--shadow);
}
.choice:hover { border-color: var(--link-strong); transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--ink); }
.choice .ico { color: var(--link-strong); margin-bottom: 10px; }
.choice h3 { font-size: 18px; margin-bottom: 4px; }
.choice p { color: var(--muted); font-size: 12.5px; margin: 0; }
.choice small { display: inline-block; margin-top: 12px; color: var(--gold); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }

/* ----------------------------- QR / surat --------------------------- */
.qr-box { text-align: center; padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: #fff; }
.qr-box img, .qr-box canvas { max-width: 220px; }
.qr-code-text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: .08em; color: var(--ink-soft); word-break: break-all; }

.surat { background: #fff; padding: 46px 52px; border: 1px solid var(--line); border-radius: var(--radius); max-width: 820px; margin: 0 auto; box-shadow: var(--shadow); }
.surat-head { text-align: center; border-bottom: 2px solid var(--green-900); padding-bottom: 16px; margin-bottom: 24px; }
.surat-head h2 { margin: 0; font-size: 20px; letter-spacing: .02em; }
.surat-head p { margin: 2px 0; font-size: 12px; color: var(--muted); }
.surat-title { text-align: center; margin: 26px 0; }
.surat-title h3 { text-decoration: underline; letter-spacing: .06em; text-transform: uppercase; font-size: 17px; }
.surat-body { font-size: 13.5px; line-height: 1.9; }
.surat-sign { margin-top: 44px; display: flex; justify-content: flex-end; }
.surat-sign div { text-align: center; min-width: 220px; }
.surat-sign .space { height: 70px; }

/* ------------------------------ Misc -------------------------------- */
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.flex { display: flex; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-6 { gap: 6px; } .gap-10 { gap: 10px; } .gap-16 { gap: 16px; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.w-100 { width: 100%; }
.divider { height: 1px; background: var(--line-soft); margin: 18px 0; }
.kv { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv strong { color: var(--ink); font-weight: 600; }
.note { background: var(--green-50); border-left: 2px solid var(--green-500); padding: 12px 16px; font-size: 12.5px; border-radius: 0 8px 8px 0; color: var(--ink-soft); }
.note.gold { background: var(--gold-bg); border-left-color: var(--gold); color: #6f5722; }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-bar { display: flex; gap: 9px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.filter-bar .field { min-width: 160px; margin: 0; }
.filter-bar .input, .filter-bar .select { padding: 8px 11px; font-size: 13px; }

.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.mini-stat { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--paper); }
.mini-stat b { display: block; font-family: var(--serif); font-size: 21px; color: var(--heading); line-height: 1.2; }
.mini-stat span { font-size: 11px; color: var(--muted); }

.sidebar-toggle { display: none; }
.overlay { display: none; }

/* ---------------------------- Mega menu ----------------------------- */
.mega-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--paper); color: var(--heading-soft);
  font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.mega-toggle:hover { border-color: var(--green-200); background: var(--green-50); }
.mega-panel {
  position: fixed; top: 76px; left: 286px; right: 28px; z-index: 60;
  max-width: 1120px; max-height: 78vh; overflow: auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 28px 70px rgba(5, 36, 24, .22);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.mega-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(120deg, #fff, var(--green-50));
}
.mega-panel-head strong { font-family: var(--serif); font-size: 21px; color: var(--heading); }
.mega-panel-head .eyebrow { margin-bottom: 2px; }
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 22px; padding: 20px 22px 24px; }
.mega-group h3 {
  font-family: var(--sans); font-size: 10px; letter-spacing: .17em;
  text-transform: uppercase; color: var(--gold); margin: 8px 0 8px;
}
.mega-list { display: grid; gap: 2px; }
.mega-item {
  display: flex; align-items: center; gap: 9px; padding: 7px 8px;
  border-radius: 8px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.25;
}
.mega-item:hover { background: var(--green-50); color: var(--heading); }
.mega-item.active { background: var(--green-100); color: var(--heading); font-weight: 600; }
.mega-ico { width: 27px; height: 27px; flex: none; display: grid; place-items: center; border-radius: 7px; background: var(--cream); color: var(--link); }
.mega-item:hover .mega-ico, .mega-item.active .mega-ico { background: var(--paper); }
.mega-panel-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 22px; border-top: 1px solid var(--line-soft);
  color: var(--muted); font-size: 11px; background: var(--cream);
}
.mega-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(5, 36, 24, .16); }
.mega-backdrop[hidden] { display: none; }

/* ------------------------------ Responsif --------------------------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .grid-2-1 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .mega-toggle, .mega-panel, .mega-backdrop { display: none !important; }
  .sidebar { transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .sidebar-toggle { display: grid; }
  .overlay.show { display: block; position: fixed; inset: 0; background: rgba(5, 36, 24, .45); z-index: 35; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .content { padding: 20px 16px; }
  .topbar { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .detail-list { grid-template-columns: 1fr; }
  .detail-list dt { padding-bottom: 2px; }
}
@media (max-width: 560px) {
  h1 { font-size: 22px; }
  .stat-value { font-size: 25px; }
  .content { padding: 16px 12px; }
  .card-body { padding: 15px; }
  .user-meta { display: none; }
}

/* =====================================================================
   Dashboard kaya grafik · TMTB PPS
   ===================================================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, .7fr);
  gap: 24px;
  align-items: center;
  padding: 30px 34px;
  margin-bottom: 18px;
  border-radius: 18px;
  overflow: hidden;
  color: #eaf4ee;
  background:
    radial-gradient(circle at 88% 12%, rgba(230, 215, 180, .16), transparent 34%),
    radial-gradient(circle at 4% 100%, rgba(31, 148, 99, .35), transparent 45%),
    linear-gradient(135deg, #0a3624 0%, #052418 68%, #0b432d 100%);
  box-shadow: var(--shadow-lg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(230, 215, 180, .16) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .22;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero-copy { position: relative; z-index: 2; }
.hero .eyebrow.light { color: var(--gold-soft); }
.hero h1 { color: #fff; font-size: 31px; margin: 4px 0 8px; }
.hero p { color: rgba(234, 244, 238, .72); margin: 0 0 18px; font-size: 13.5px; }
.hero-dot { margin: 0 7px; color: var(--gold-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.btn-gold {
  background: linear-gradient(180deg, #d9bd82, #b9924a);
  color: #2b210f; border: 1px solid #a9823e; font-weight: 650;
}
.btn-gold:hover { color: #1c1508; filter: brightness(1.04); }
.btn-ghost-light {
  background: rgba(255, 255, 255, .06);
  color: #eaf4ee; border: 1px solid rgba(255, 255, 255, .22);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.hero-orbit { position: relative; min-height: 150px; display: grid; place-items: center; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(230, 215, 180, .25); }
.orbit-1 { width: 150px; height: 150px; }
.orbit-2 { width: 196px; height: 196px; border-style: dashed; opacity: .55; }
.hero-seal {
  width: 108px; height: 108px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid rgba(230, 215, 180, .55);
  background: radial-gradient(circle at 35% 25%, rgba(230, 215, 180, .18), rgba(5, 36, 24, .5));
  color: var(--gold-soft); box-shadow: 0 0 0 10px rgba(230, 215, 180, .04);
  font-family: var(--serif); font-size: 25px; line-height: 1;
}
.hero-seal small { font-family: var(--sans); font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; margin-top: 5px; opacity: .7; }

.stat-rich { position: relative; overflow: hidden; }
.stat-rich .stat-value { font-size: 31px; }
.stat-rich .spark { height: 4px; border-radius: 99px; background: var(--green-50); margin-top: 13px; overflow: hidden; }
.stat-rich .spark span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--green-600), var(--green-500)); }
.stat-rich .spark.gold { background: var(--gold-bg); }
.stat-rich .spark.gold span { background: linear-gradient(90deg, var(--gold), #d9bd82); }
.gap-6 { gap: 6px; }

.chart-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; margin-bottom: 14px; }
.chart-card { overflow: hidden; }
.chart-card .card-head { align-items: flex-start; }
.chart-card .sub { margin-top: 2px; }
.chart-wide { min-width: 0; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--green-500); }
.dot.gt, .dot.aktif { background: var(--green-500); }
.dot.pjgt, .dot.tetap { background: var(--gold); }
.dot.korwil { background: #7aa7c7; }
.dot.selesai { background: var(--green-900); }
.dot.batal { background: #c9d2cc; }

.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 210px; padding: 12px 2px 0; border-bottom: 1px solid var(--line); }
.bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; width: 100%; }
.bar { width: 26%; max-width: 16px; min-height: 4px; border-radius: 4px 4px 1px 1px; transition: height .4s ease, filter .2s; }
.bar:hover { filter: brightness(1.08); }
.bar.gt { background: linear-gradient(180deg, #2aab75, var(--green-500)); }
.bar.pjgt { background: linear-gradient(180deg, #d9bd82, var(--gold)); }
.bar.korwil { background: linear-gradient(180deg, #9fc3dc, #6f9dbd); }
.bar-label { font-size: 10.5px; color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
.chart-foot { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 11px; font-size: 11.5px; color: var(--muted); }
.chart-foot b { color: var(--heading-soft); font-size: 13px; }

.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 6px 0; }
.donut {
  width: 142px; height: 142px; border-radius: 50%; flex: none; position: relative;
  background: conic-gradient(
    var(--green-500) 0 var(--a),
    var(--gold) var(--a) var(--b),
    var(--green-900) var(--b) var(--c),
    #d8e0da var(--c) 100%);
  box-shadow: inset 0 0 0 1px rgba(10, 54, 36, .05);
}
.donut-hole {
  position: absolute; inset: 19px; border-radius: 50%; background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 1px 8px rgba(10, 54, 36, .07);
}
.donut-hole b { font-family: var(--serif); font-size: 25px; color: var(--heading); line-height: 1; }
.donut-hole span { font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.donut-legend { display: grid; gap: 8px; flex: 1; min-width: 130px; }
.donut-legend > div { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-soft); }
.donut-legend b { color: var(--heading-soft); font-size: 12.5px; }

.hbar { margin-bottom: 13px; }
.hbar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink-soft); margin-bottom: 5px; }
.hbar-top b { color: var(--heading-soft); }
.hbar-track { height: 7px; background: var(--green-50); border-radius: 99px; overflow: hidden; }
.hbar-track span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--green-700), var(--green-500)); }

.funnel { display: grid; gap: 11px; }
.funnel-step { display: flex; gap: 10px; align-items: center; }
.funnel-ico { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; color: var(--link); background: var(--green-50); border: 1px solid var(--green-100); }
.funnel-body { flex: 1; min-width: 0; }
.funnel-top { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-soft); margin-bottom: 4px; }
.funnel-top b { color: var(--heading-soft); }
.funnel-track { height: 6px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.funnel-track span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), #d9bd82); }

.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.check input { accent-color: var(--link-strong); width: 15px; height: 15px; }
.badge-dark { background: var(--green-900); color: #eaf4ee; }

@media (max-width: 1100px) {
  .chart-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-orbit { display: none; }
}
@media (max-width: 560px) {
  .hero { padding: 24px 20px; }
  .hero h1 { font-size: 25px; }
  .bar-chart { gap: 5px; height: 170px; }
  .chart-foot { gap: 10px; }
}

/* ----------------------------- Consent ------------------------------ */
.consent {
  position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 60;
  display: flex; gap: 18px; align-items: center; justify-content: space-between;
  max-width: 860px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--green-600);
  border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-lg);
}
.consent[hidden] { display: none; }
.consent-text { min-width: 0; }
.consent-text strong { display: block; font-family: var(--serif); font-size: 15px; color: var(--heading); }
.consent-text p { margin: 3px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.consent-actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 640px) {
  .consent { flex-direction: column; align-items: flex-start; gap: 12px; }
  .consent-actions { width: 100%; justify-content: flex-end; }
}

/* --------------------------- Pusat Laporan --------------------------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 26px 0 12px; }
.section-head h2 { margin: 2px 0 0; }
.report-highlight { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.report-highlight-card {
  display: flex; gap: 12px; align-items: flex-start; padding: 15px 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.report-highlight-ico { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--green-50); color: var(--link); border: 1px solid var(--green-100); }
.report-highlight-card.gold .report-highlight-ico { background: var(--gold-bg); color: #8a6a2d; border-color: #f0e3c8; }
.report-highlight-value { font-family: var(--serif); font-size: 24px; line-height: 1.15; color: var(--heading); margin: 1px 0 2px; }
.report-highlight-card.gold .report-highlight-value { color: #6f5722; }
.report-stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.report-stage { display: flex; flex-direction: column; gap: 10px; padding: 14px 15px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.report-stage-head { display: flex; gap: 10px; align-items: flex-start; }
.report-stage-ico { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--green-50); color: var(--link); border: 1px solid var(--green-100); }
.report-stage h3 { font-size: 14px; margin: 0; line-height: 1.3; }
.report-stage-head .small { font-size: 10.5px; margin-top: 2px; line-height: 1.35; }
.report-total { font-family: var(--serif); font-size: 24px; color: var(--heading-soft); line-height: 1; white-space: nowrap; }
.report-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.report-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 6px; background: var(--cream); border: 1px solid var(--line-soft); font-size: 10.5px; color: var(--muted); }
.report-chip b { color: var(--heading-soft); font-size: 11px; }
.report-link { margin-top: auto; padding-top: 2px; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.report-table th, .report-table td { white-space: nowrap; }
.report-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.report-notes { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.report-notes li { margin-bottom: 5px; }
@media (max-width: 1200px) {
  .report-stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-highlight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .report-stage-grid, .report-highlight { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* --------------------------- Bantuan & FAQ --------------------------- */
.help-hero {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(200px, .6fr); gap: 30px; align-items: center;
  padding: 30px 34px; margin-bottom: 18px; border-radius: 18px; color: #eaf4ee; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(230, 215, 180, .18), transparent 32%),
    radial-gradient(circle at 0 100%, rgba(31, 148, 99, .35), transparent 48%),
    linear-gradient(135deg, #0a3624, #052418 70%, #0b432d);
  box-shadow: var(--shadow-lg);
}
.help-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(230, 215, 180, .18) 1px, transparent 1px); background-size: 22px 22px; opacity: .18;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.help-hero-copy { position: relative; z-index: 1; }
.help-hero h2 { color: #fff; font-size: 27px; margin: 3px 0 7px; }
.help-hero p { color: rgba(234, 244, 238, .72); font-size: 13.5px; margin-bottom: 16px; max-width: 640px; }
.help-hero p strong { color: var(--gold-soft); }
.help-hero .eyebrow.light { color: var(--gold-soft); }
.help-search { display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); padding: 5px 6px 5px 12px; border-radius: 11px; max-width: 620px; }
.help-search-ico { color: rgba(234, 244, 238, .7); display: grid; place-items: center; }
.help-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; font-size: 13px; padding: 6px 2px; }
.help-search input::placeholder { color: rgba(234, 244, 238, .48); }
.help-hero-side { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; }
.help-ring { width: 130px; height: 130px; border-radius: 50%; border: 1px solid rgba(230, 215, 180, .45); display: grid; place-content: center; text-align: center; box-shadow: 0 0 0 9px rgba(230, 215, 180, .05); }
.help-ring span { font-family: var(--serif); font-size: 36px; color: var(--gold-soft); line-height: 1; }
.help-ring small { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: rgba(234, 244, 238, .55); margin-top: 5px; }
.help-hero-note { font-size: 11.5px; color: rgba(234, 244, 238, .7); text-align: center; }
.help-hero-note b { color: var(--gold-soft); }
.help-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.help-main, .help-side { display: grid; gap: 16px; min-width: 0; }
.step-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.step-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line-soft); }
.step-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.step-number { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--green-100); background: var(--green-50); color: var(--link); font-family: var(--serif); font-size: 15px; display: grid; place-items: center; }
.step-body { flex: 1; min-width: 0; }
.step-body strong { display: block; color: var(--heading); font-size: 13.5px; margin-bottom: 2px; }
.step-body p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.step-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12px; font-weight: 600; }
.help-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.help-menu { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.help-menu:hover { color: var(--heading-soft); border-color: var(--green-100); transform: translateY(-1px); box-shadow: var(--shadow); }
.help-menu-ico { width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--green-50); color: var(--link); display: grid; place-items: center; }
.help-menu strong { display: block; font-size: 12.5px; line-height: 1.35; }
.help-menu small { display: block; font-size: 11px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.flow-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.flow-step { border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px; background: var(--cream); min-width: 0; }
.flow-step span { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--green-900); color: var(--gold-soft); font-size: 10px; margin-bottom: 5px; }
.flow-step strong { display: block; font-size: 11.5px; color: var(--heading); line-height: 1.3; }
.flow-step small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.help-contact { display: flex; gap: 9px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); }
.help-contact:last-of-type { border-bottom: 0; }
.help-contact-ico { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; color: var(--link); background: var(--green-50); border: 1px solid var(--green-100); }
.help-contact small { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.help-contact strong { display: block; font-size: 12.5px; color: var(--ink); font-weight: 550; line-height: 1.4; }
.faq-mini { display: grid; gap: 2px; }
.faq-mini a { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.faq-mini a:last-child { border-bottom: 0; }
.faq-mini a:hover { color: var(--link); }
.faq-mini .ico { color: var(--gold); margin-top: 2px; }
.help-tips { margin: 0; padding-left: 17px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.help-tips li { margin-bottom: 7px; }
.help-inline { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.help-inline > div:nth-child(2) { flex: 1; min-width: 180px; }
.help-inline strong { color: var(--heading); font-size: 13px; }
.faq-search { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; background: var(--paper); border: 1px solid var(--line); padding: 7px 8px 7px 12px; border-radius: 12px; max-width: 720px; box-shadow: var(--shadow); }
.faq-search-ico { color: var(--muted); display: grid; place-items: center; }
.faq-search .input { border: 0; box-shadow: none; padding-left: 0; flex: 1; }
.faq-search .input:focus { box-shadow: none; }
.faq-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.faq-nav { position: sticky; top: 82px; }
.faq-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; font-size: 12.5px; color: var(--ink-soft); border-bottom: 1px dashed var(--line-soft); }
.faq-nav a:last-of-type { border-bottom: 0; }
.faq-nav a:hover { color: var(--link); }
.faq-nav .count { font-size: 10.5px; color: var(--muted); background: var(--green-50); border-radius: 20px; padding: 1px 7px; }
.faq-content { display: grid; gap: 16px; min-width: 0; }
.faq-list { display: grid; gap: 7px; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow: hidden; }
.faq-item[open] { border-color: var(--green-100); box-shadow: 0 8px 24px -20px rgba(10, 54, 36, .4); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 550; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { color: var(--gold); transition: transform .18s ease; flex: none; }
.faq-item[open] summary .ico { transform: rotate(180deg); }
.faq-item summary:hover { color: var(--link); }
.faq-answer { padding: 0 14px 14px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.65; border-top: 1px dashed var(--line-soft); margin-top: 0; padding-top: 10px; }
@media (max-width: 1100px) {
  .help-layout, .faq-layout { grid-template-columns: 1fr; }
  .faq-nav { position: static; }
  .flow-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .help-hero { grid-template-columns: 1fr; padding: 24px 20px; }
  .help-hero-side { display: none; }
  .help-menu-grid, .flow-strip { grid-template-columns: 1fr; }
  .help-search { flex-wrap: wrap; }
  .help-search .btn { width: 100%; }
}

/* ------------------------------- Modal ------------------------------ */
body.modal-open { overflow: hidden; }
.app-modal { position: fixed; inset: 0; z-index: 90; display: none; }
.app-modal.show { display: block; }
.app-modal-backdrop { position: absolute; inset: 0; background: rgba(5, 36, 24, .55); backdrop-filter: blur(3px); }
.app-modal-panel {
  position: relative; z-index: 1; margin: 3.5vh auto; width: min(1020px, 94vw); height: 93vh;
  display: flex; flex-direction: column; background: var(--cream);
  border: 1px solid rgba(230, 215, 180, .5); border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(5, 36, 24, .65);
}
.app-modal-head {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 14px;
  padding: 13px 18px 11px 22px; background: linear-gradient(135deg, var(--green-900), var(--green-950));
  color: #fff; border-bottom: 3px solid var(--gold);
}
.app-modal-head h2 { grid-column: 1; grid-row: 2; margin: 0; color: #fff; font-size: 19px; }
.app-modal-eyebrow { grid-column: 1; grid-row: 1; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); }
.app-modal-close { grid-column: 2; grid-row: 1 / span 2; color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); }
.app-modal-close:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.app-modal iframe { flex: 1; width: 100%; border: 0; background: var(--cream); }
body.modal-page { background: var(--cream); }
@media (max-width: 640px) {
  .app-modal-panel { width: 100vw; height: 100vh; margin: 0; border-radius: 0; border: 0; }
  .app-modal-head { padding: 10px 12px 9px 16px; }
}

/* ------------------------------- Print ------------------------------ */
/* =====================================================================
   Dashboard Laporan
   ===================================================================== */
.ld-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 30px; border-radius: var(--radius); margin-bottom: 18px;
  color: #fff; background:
    radial-gradient(circle at 85% 15%, rgba(230,215,180,.22), transparent 42%),
    linear-gradient(120deg, #0a3624, #145f3f 70%, #1f7650);
  box-shadow: 0 18px 42px -28px rgba(10,54,36,.7);
}
.ld-hero h2 { color: #fff; font-size: 24px; margin: 0 0 4px; }
.ld-hero p { margin: 0; color: rgba(234,244,238,.68); font-size: 12.5px; }
.ld-hero .eyebrow { color: var(--gold-soft); }
.ld-hero-gauge { min-width: 220px; }
.ld-gauge-value { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--gold-soft); }
.ld-gauge-label { font-size: 11px; color: rgba(234,244,238,.62); margin: 5px 0 9px; }
.ld-gauge-track { height: 7px; border-radius: 20px; background: rgba(255,255,255,.14); overflow: hidden; }
.ld-gauge-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #f3e8c9); }
.ld-kpi .mini-stat { background: var(--paper); }
.ld-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 8px 0 12px; flex-wrap: wrap; }
.ld-section-head h2 { margin: 0; font-size: 20px; }
.ld-section-head .sub { margin: 2px 0 0; }
.ld-cards { margin-bottom: 4px; }
.ld-card {
  display: flex; flex-direction: column; gap: 7px; padding: 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); box-shadow: var(--shadow); transition: transform .16s, box-shadow .16s, border-color .16s;
  min-width: 0;
}
.ld-card:hover { transform: translateY(-2px); border-color: var(--green-100); box-shadow: 0 16px 34px -26px rgba(10,54,36,.45); color: var(--ink); }
.ld-card h3 { margin: 3px 0 0; font-size: 14px; color: var(--heading); }
.ld-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ld-card-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--green-50); color: var(--link); }
.ld-card-number { font-family: var(--serif); font-size: 29px; line-height: 1.05; color: var(--heading); }
.ld-card-number small { font-family: var(--sans); font-size: 11px; color: var(--muted); }
.ld-card-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.ld-card-foot { color: var(--muted); font-size: 10.5px; margin-top: 2px; }
.ld-card-national { background: var(--green-950); border-color: var(--heading); }
.ld-card-national h3, .ld-card-national .ld-card-number { color: #fff; }
.ld-card-national .ld-card-meta, .ld-card-national .ld-card-foot { color: rgba(234,244,238,.6); }
.ld-card-national .ld-card-ico { background: rgba(230,215,180,.12); color: var(--gold-soft); }
.ld-track { height: 6px; border-radius: 20px; background: var(--green-50); overflow: hidden; }
.ld-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-700), var(--green-500)); }
.ld-track.gold { background: var(--gold-bg); }
.ld-track.gold span { background: linear-gradient(90deg, var(--gold), #d8b56e); }
.ld-legend { display: flex; gap: 11px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted); }
.ld-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ld-legend i, .ld-legend-stack i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ld-chart { display: flex; align-items: flex-end; gap: 9px; height: 230px; padding: 10px 2px 0; border-bottom: 1px solid var(--line-soft); }
.ld-chart-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.ld-chart-bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.ld-chart-bars span { width: 12%; max-width: 10px; border-radius: 3px 3px 0 0; min-height: 2px; }
.ld-chart-label { text-align: center; font-size: 10px; color: var(--muted); white-space: nowrap; }
.ld-membership-row { display: flex; align-items: baseline; gap: 14px; margin: 8px 0; }
.ld-membership-number { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--heading-soft); min-width: 52px; }
.ld-membership-number.gold { color: var(--gold); }
.ld-membership-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.ld-membership-grid > div { border: 1px solid var(--line-soft); border-radius: 8px; padding: 7px 9px; background: var(--cream); }
.ld-membership-grid span { display: block; font-size: 10px; color: var(--muted); }
.ld-membership-grid b { display: block; font-family: var(--serif); font-size: 18px; color: var(--heading); line-height: 1.2; }
.ld-membership-row strong { display: block; font-size: 12px; }
.ld-membership-row span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.ld-inline-progress { height: 5px; border-radius: 20px; background: var(--green-50); overflow: hidden; margin-bottom: 3px; }
.ld-inline-progress span { display: block; height: 100%; border-radius: inherit; background: var(--green-600); }
.ld-donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ld-donut {
  width: 150px; height: 150px; border-radius: 50%; flex: none; position: relative;
  background: conic-gradient(var(--green-700) 0 var(--a), var(--gold) var(--a) 100%);
  display: grid; place-items: center;
}
.ld-donut::after { content: ''; position: absolute; inset: 17px; background: var(--paper); border-radius: 50%; }
.ld-donut-hole { position: relative; z-index: 1; text-align: center; }
.ld-donut-hole b { display: block; font-family: var(--serif); font-size: 25px; color: var(--heading); line-height: 1.1; }
.ld-donut-hole span { font-size: 10px; color: var(--muted); }
.ld-legend-stack { display: grid; gap: 9px; flex: 1; min-width: 130px; }
.ld-legend-stack > div { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); }
.ld-legend-stack b { margin-left: auto; color: var(--ink); }
@media (max-width: 1100px) {
  .mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Bilah impor/ekspor kontekstual pada halaman data */
.table-tools {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 12px; margin: 0 0 14px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 1px 2px rgba(10, 54, 36, .03);
}
.table-tools .tt-label {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--muted); font-size: 12px;
}
.table-tools .tt-label .ico { color: var(--link-strong); }
.table-tools .tt-label strong { color: var(--heading); font-weight: 600; }
.table-tools .tt-actions {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
}

@media (max-width: 900px) {
  .ld-hero { flex-direction: column; align-items: flex-start; }
  .ld-chart-bars span { max-width: 7px; }
  .table-tools .tt-actions { margin-left: 0; }
}
@media print {
  .table-tools { display: none !important; }
}
@media print {
  .sidebar, .topbar, .mega-panel, .mega-backdrop, .page-actions, .filter-bar, .print-bar { display: none !important; }
  .main { margin-left: 0; }
  .content { max-width: none; padding: 0; }
  .card, .ld-hero { box-shadow: none; break-inside: avoid; }
  .ld-hero { background: #fff !important; color: var(--ink) !important; border: 1px solid var(--line); }
  .ld-hero h2 { color: var(--ink) !important; }
  .ld-hero p { color: var(--muted) !important; }
  .ld-gauge-value { color: var(--heading-soft) !important; }
  body { background: #fff; }
  a { color: var(--ink); }
}
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .page-actions, .no-print, .pagination { display: none !important; }
  .main { margin-left: 0; }
  .content { padding: 0; max-width: none; }
  .card, .surat { box-shadow: none; border: 0; }
  .surat { padding: 0; }
  a { color: #000; }
}

/* =====================================================================
   Tambahan v5 — FAQ, SOP, Blueprint, Pengaturan menu, dan penyesuaian font
   ===================================================================== */
.nav-fold > summary.nav-group { font-size: 10.5px; letter-spacing: .16em; }
.nav-item { font-size: 14px; padding: 9.5px 12px; }
.nav-item.active { font-weight: 600; }
.mega-item { font-size: 13.5px; }
.mega-group h3 { font-size: 10px; letter-spacing: .16em; }
.mega-ico { width: 29px; height: 29px; }
.mega-ico .ico { width: 18px; height: 18px; }
.sidebar-foot { font-size: 12px; }

.auth-announce { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.auth-announce-item { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--green-50); }
.auth-announce-item strong { display: block; color: var(--heading); font-size: 13px; }
.auth-announce-item p { margin: 3px 0 0; font-size: 12px; color: var(--ink-soft); }

/* FAQ */
.faq-hero { display: flex; gap: 22px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; padding: 24px 26px; border-radius: var(--radius); background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: #fff; margin-bottom: 20px; box-shadow: var(--shadow); }
.faq-hero-text { max-width: 560px; }
.faq-hero-text .eyebrow { color: var(--gold-soft); }
.faq-hero-text h2 { color: #fff; font-size: 24px; margin-bottom: 6px; }
.faq-hero-text p { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; }
.faq-search { display: flex; align-items: flex-end; gap: 8px; min-width: 330px; }
.faq-search .field { margin: 0; flex: 1; }
.faq-search label { color: rgba(255,255,255,.7); }
.faq-search .input { border-color: transparent; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.faq-category { margin: 0; }
.faq-category .card-body { padding-top: 8px; }
.faq-item { border-bottom: 1px solid var(--line-soft); padding: 2px 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; padding: 11px 2px; font-weight: 500; color: var(--heading); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { transition: transform .18s; opacity: .6; }
.faq-item[open] summary .ico { transform: rotate(180deg); }
.faq-answer { padding: 0 24px 12px 2px; color: var(--ink-soft); font-size: 13px; }
.faq-contact { margin-top: 18px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-search { min-width: 100%; } }

/* Dokumen SOP / Blueprint */
.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.doc-toc { position: sticky; top: 84px; }
.doc-toc .card-body { display: grid; gap: 7px; }
.doc-toc a { font-size: 12.5px; color: var(--ink-soft); padding: 3px 0; }
.doc-toc a:hover { color: var(--link); }
.doc-body .card { margin-bottom: 16px; }
.doc-list { margin: 0; padding-left: 20px; }
.doc-list li { margin-bottom: 7px; }
.doc-code { background: var(--green-950); color: #d8efe0; border-radius: 10px; padding: 14px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; line-height: 1.55; white-space: pre-wrap; overflow-x: auto; }
.sop-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sop-steps > div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--cream); }
.sop-steps b { display: block; font-family: var(--serif); font-size: 19px; color: var(--gold); line-height: 1; }
.sop-steps strong { display: block; color: var(--heading); margin: 3px 0 2px; font-size: 13px; }
.sop-steps span { color: var(--muted); font-size: 12px; }
.blueprint-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.blueprint-map > div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--green-50); }
.blueprint-map strong { display: block; color: var(--heading); font-size: 13px; }
.blueprint-map span { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; }
@media (max-width: 1000px) { .doc-layout { grid-template-columns: 1fr; } .doc-toc { position: static; } .blueprint-map { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .sop-steps, .blueprint-map { grid-template-columns: 1fr; } }

/* Pengaturan */
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.settings-aside { position: sticky; top: 84px; }
.preview-login { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--cream); }
.preview-login h3 { font-size: 18px; margin: 2px 0 4px; }
.menu-editor { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.menu-editor > summary { padding: 10px 12px; cursor: pointer; display: flex; align-items: center; gap: 10px; background: var(--green-50); list-style: none; }
.menu-editor > summary::-webkit-details-marker { display: none; }
.menu-editor-body { padding: 10px 12px 14px; border-top: 1px solid var(--line); }
.menu-group-edit { margin-bottom: 14px; }
.menu-group-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 12.5px; color: var(--heading-soft); }
.inline-field { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.input-mini { padding: 5px 7px !important; font-size: 12px !important; min-height: 0 !important; }
.menu-edit-ico { display: inline-flex; color: var(--link); vertical-align: -3px; }
.table-compact td, .table-compact th { padding: 6px 8px; }
.inline-actions { display: inline-block; position: relative; }
.inline-actions > div { position: absolute; right: 0; z-index: 15; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px; box-shadow: var(--shadow-lg); }
@media (max-width: 1100px) { .settings-layout { grid-template-columns: 1fr; } .settings-aside { position: static; } }

/* Pengumuman */
.announce-list { display: grid; gap: 12px; }
.announce-item { border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; background: var(--paper); }
.announce-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.announce-item h3 { margin: 0 0 4px; font-size: 16px; }

/* ============ Helpdesk IT ============ */
.helpdesk-info { align-items: flex-start; }
.helpdesk-info .muted { display: block; margin-top: 4px; }
.helpdesk-table td { vertical-align: top; }
.helpdesk-table .chip { font-size: 11px; }

.hd-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}
.hd-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .75;
}
.hd-status-baru { background: var(--gold-bg); border-color: var(--gold-soft); color: #8a6a2b; }
.hd-status-proses { background: var(--green-50); border-color: var(--green-100); color: var(--link); }
.hd-status-selesai { background: var(--green-900); border-color: var(--heading); color: #eaf4ee; }

.hd-description {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--green-50);
}
.hd-description .eyebrow, .hd-attachment .eyebrow { margin-bottom: 5px; }
.hd-description p { margin: 0; color: var(--ink-soft); font-size: 13.5px; }

.hd-attachment { margin-top: 18px; }
.hd-photo {
  display: block;
  margin-top: 8px;
  max-height: 320px;
  width: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  background: var(--paper);
}

.hd-timeline li { padding-bottom: 16px; }
.hd-timeline li:last-child { padding-bottom: 0; }
.hd-note { margin: 5px 0 0; color: var(--ink-soft); font-size: 12.5px; }

.hd-steps { margin: 0; padding: 0; list-style: none; counter-reset: hd-step; }
.hd-steps li { position: relative; padding: 0 0 14px 32px; counter-increment: hd-step; }
.hd-steps li:last-child { padding-bottom: 0; }
.hd-steps li::before {
  content: counter(hd-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  color: var(--link);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hd-steps b { display: block; font-size: 13px; color: var(--heading); }
.hd-steps span { display: block; margin-top: 1px; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.hd-msg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hd-msg-role { display: inline-flex; align-items: center; padding: 2px 7px; border: 1px solid var(--green-100); border-radius: 999px; background: var(--green-50); color: var(--link); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hd-msg-admin .hd-note { padding: 8px 11px; border-left: 2px solid var(--gold); border-radius: 0 7px 7px 0; background: var(--gold-bg); }
.hd-msg-user .hd-note { padding: 8px 11px; border-left: 2px solid var(--green-500); border-radius: 0 7px 7px 0; background: var(--green-50); }
.hd-reply { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.hd-reply-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.hd-reply-head strong { display: block; font-family: var(--serif); font-size: 16px; color: var(--heading); line-height: 1.25; }
.hd-reply .form-actions { border-top: 0; }

/* =====================================================================
   v7 — Tema terang/gelap/sistem, pilihan font & ukuran, sidebar baru
   ===================================================================== */

/* Pilihan jenis huruf */
html[data-font="modern"] { --serif: var(--sans); }
html[data-font="klasik"] {
  --sans: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

/* Pilihan ukuran teks */
html[data-size="kecil"] { --fs: .94; }
html[data-size="normal"] { --fs: 1; }
html[data-size="besar"] { --fs: 1.08; }
html[data-size="jumbo"] { --fs: 1.16; }
html[data-size] h1 { font-size: calc(27px * var(--fs)); }
html[data-size] h2 { font-size: calc(21px * var(--fs)); }
html[data-size] h3 { font-size: calc(17px * var(--fs)); }
html[data-size] .stat-value { font-size: calc(30px * var(--fs)); }
html[data-size] .table { font-size: calc(13.3px * var(--fs)); }
html[data-size] .btn { font-size: calc(13px * var(--fs)); }
html[data-size] .input, html[data-size] .select, html[data-size] .textarea { font-size: calc(13.5px * var(--fs)); }
html[data-size] .field label, html[data-size] .label { font-size: calc(11.5px * var(--fs)); }
html[data-size] .page-head .sub { font-size: calc(13px * var(--fs)); }
html[data-size] .eyebrow { font-size: calc(10.5px * var(--fs)); }
html[data-size] .chip, html[data-size] .badge { font-size: calc(11.5px * var(--fs)); }
html[data-size] .tab { font-size: calc(13px * var(--fs)); }
html[data-size] .card-head h2, html[data-size] .card-head h3 { font-size: calc(16px * var(--fs)); }
html[data-size] .nav-item { font-size: calc(13.7px * var(--fs)); }
html[data-size] .nav-fold > summary.nav-group { font-size: calc(9.7px * var(--fs)); }
html[data-size] .mega-item { font-size: calc(12.5px * var(--fs)); }
html[data-size] .timeline strong { font-size: calc(13px * var(--fs)); }
html[data-size] .detail-list dt, html[data-size] .detail-list dd { font-size: calc(13px * var(--fs)); }
html[data-size] .hint, html[data-size] .small { font-size: calc(11.5px * var(--fs)); }

.preview-tema {
  padding: 13px 14px; border: 1px dashed var(--line); border-radius: 10px;
  background: var(--green-50);
}
.preview-tema strong { display: block; font-family: var(--serif); font-size: 18px; color: var(--heading); line-height: 1.2; }
.preview-tema span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }

/* Sidebar yang lebih lapang, tenang, dan profesional */
.sidebar {
  width: 276px;
  background:
    radial-gradient(circle at 100% 0, rgba(230, 215, 180, .07), transparent 38%),
    linear-gradient(176deg, #0b3a28 0%, #072a1c 56%, #052418 100%);
  border-right: 1px solid rgba(255, 255, 255, .06);
  overflow: hidden;
}
.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.025) 0 1px, transparent 1px 22px);
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}
.brand {
  position: relative; z-index: 1;
  padding: 22px 20px 18px;
  gap: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .075);
  background: rgba(255, 255, 255, .018);
}
.brand-mark {
  width: 46px; height: 46px;
  border: 1px solid rgba(230, 215, 180, .55);
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .7);
}
.brand-text strong { font-size: 18.5px; letter-spacing: .025em; line-height: 1.1; }
.brand-text span { display: block; margin-top: 4px; font-size: 9.5px; letter-spacing: .14em; color: rgba(230, 215, 180, .62); }
.nav {
  position: relative; z-index: 1;
  padding: 12px 12px 18px;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
.nav-caption {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px 9px;
  color: rgba(230, 215, 180, .5);
  font-size: 9px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase;
}
.nav-caption i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(230,215,180,.22), transparent); }
.nav-fold { margin: 0; }
.nav-fold > summary.nav-group {
  margin: 8px 6px 3px;
  padding: 6px 8px;
  border-radius: 7px;
  color: rgba(230, 215, 180, .58);
  font-size: 9.7px;
  letter-spacing: .15em;
}
.nav-fold > summary.nav-group:hover { background: rgba(255, 255, 255, .035); color: var(--gold-soft); }
.nav-fold[open] > summary.nav-group { color: rgba(230, 215, 180, .8); }
.nav-fold-body {
  margin: 0 0 7px 14px;
  padding: 2px 0 2px 10px;
  border-left: 1px solid rgba(255, 255, 255, .08);
}
.nav-item {
  position: relative;
  padding: 9px 11px 9px 13px;
  margin: 1px 0;
  border-radius: 8px;
  color: rgba(234, 244, 238, .74);
  font-size: 13.7px;
  line-height: 1.35;
  letter-spacing: .005em;
  box-shadow: none;
}
.nav-item::before {
  content: "";
  position: absolute; left: -14.5px; top: 50%;
  width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: transparent;
  transition: background .15s, box-shadow .15s;
}
.nav-item:hover { background: rgba(255, 255, 255, .055); color: #fff; }
.nav-item:hover::before { background: rgba(230, 215, 180, .45); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(230, 215, 180, .17), rgba(230, 215, 180, .035));
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(230, 215, 180, .08);
}
.nav-item.active::before {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 146, 74, .16);
}
.nav-item .count { margin-left: auto; }
.sidebar-foot {
  position: relative; z-index: 1;
  margin: 0 14px 14px;
  padding: 12px 13px 11px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  font-size: 10.5px;
  line-height: 1.45;
  color: rgba(234, 244, 238, .52);
}
.sidebar-foot .sf-kicker { display: block; font-size: 8.5px; letter-spacing: .17em; text-transform: uppercase; color: rgba(230, 215, 180, .52); margin-bottom: 3px; }
.sidebar-foot strong { color: rgba(255, 255, 255, .82); font-size: 11px; font-weight: 500; line-height: 1.4; }
.sidebar-foot .sf-period { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.07); }
.sidebar-foot .sf-period b { color: var(--gold-soft); font-weight: 600; text-align: right; }
.sidebar-foot .sf-version { margin-top: 7px; font-size: 9px; letter-spacing: .08em; color: rgba(234, 244, 238, .28); }
.main { margin-left: 276px; }
.mega-panel { left: 296px; }

/* Panel tampilan di topbar */
.appearance { position: relative; }
.appearance-panel {
  position: absolute; top: 44px; right: 0; z-index: 75;
  width: 300px; max-width: calc(100vw - 24px);
  padding: 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.appearance-panel[hidden] { display: none; }
.appearance-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.appearance-head strong { font-family: var(--serif); font-size: 17px; color: var(--heading); }
.appearance-head span { font-size: 9.5px; color: var(--muted); letter-spacing: .04em; }
.appearance-group { margin-top: 14px; }
.appearance-label { display: block; margin-bottom: 6px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.appearance-panel .select { padding: 8px 10px; font-size: 12.5px; }
.seg {
  display: flex; gap: 3px; padding: 3px;
  background: var(--green-50); border: 1px solid var(--line-soft); border-radius: 10px;
}
.seg button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 7px 4px; border: 0; border-radius: 7px; background: transparent;
  color: var(--muted); font-family: var(--sans); font-size: 11px; font-weight: 600; cursor: pointer;
}
.seg button:hover { color: var(--heading); }
.seg button.active { background: var(--paper); color: var(--heading); box-shadow: 0 1px 4px rgba(10, 54, 36, .12); }
.seg .ico { opacity: .8; }
.appearance-panel .btn-block { margin-top: 15px; }

/* Ikon bantuan kolom "?" */
.field > label { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.field-help {
  width: 18px; height: 18px; flex: none; padding: 0;
  display: inline-grid; place-items: center;
  border: 1px solid var(--green-100); border-radius: 50%;
  background: var(--green-50); color: var(--link);
  font-family: var(--sans); font-size: 10.5px; font-weight: 800; line-height: 1;
  letter-spacing: 0; text-transform: none; cursor: help; position: relative;
}
.field-help:hover, .field-help:focus-visible { background: var(--green-100); color: var(--heading); outline: none; }
.field-help::after {
  content: attr(data-tip);
  position: absolute; left: 0; top: calc(100% + 7px); z-index: 80;
  width: max-content; max-width: 260px;
  padding: 8px 10px;
  background: var(--green-950); color: #eaf4ee;
  border: 1px solid rgba(230, 215, 180, .25); border-radius: 8px;
  box-shadow: 0 14px 30px -16px rgba(5, 36, 24, .7);
  font-size: 11.5px; font-weight: 500; line-height: 1.45; letter-spacing: 0; text-transform: none;
  white-space: normal; text-align: left;
  opacity: 0; visibility: hidden; transform: translateY(-3px);
  transition: opacity .14s, transform .14s, visibility .14s;
  pointer-events: none;
}
.field-help:hover::after, .field-help:focus-visible::after, .field-help.is-open::after { opacity: 1; visibility: visible; transform: translateY(0); }

/* Mode gelap */
@media screen {
  html[data-theme="gelap"] {
    --cream: #0b1410;
    --paper: #111d17;
    --ink: #e7f0ea;
    --ink-soft: #c2d2c8;
    --muted: #93a79c;
    --line: #263a30;
    --line-soft: #1d2e25;
    --green-50: #16261e;
    --green-100: #1e3529;
    --green-950: #06110c;
    --gold-bg: #2a2417;
    --danger-soft: #2e1c1b;
    --surface-soft: #0f1a15;
    --card-head-bg: linear-gradient(180deg, #14211a, #111d17);
    --heading: #eaf4ee;
    --heading-soft: #cfe6d8;
    --link: #82d6ab;
    --link-strong: #9ee4bf;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -20px rgba(0, 0, 0, .75);
    --shadow-lg: 0 24px 60px -28px rgba(0, 0, 0, .8);
  }
  html[data-theme="gelap"] body {
    background-image:
      radial-gradient(circle at 100% 0, rgba(31, 148, 99, .08), transparent 42%),
      radial-gradient(circle at 0 100%, rgba(185, 146, 74, .05), transparent 38%);
  }
  html[data-theme="gelap"] .topbar { background: rgba(17, 29, 23, .88); border-bottom-color: var(--line); }
  html[data-theme="gelap"] .card-head { border-bottom-color: var(--line-soft); }
  html[data-theme="gelap"] .table thead th { color: #9db1a6; }
  html[data-theme="gelap"] .table tbody td { border-bottom-color: var(--line-soft); }
  html[data-theme="gelap"] .btn-outline { background: var(--paper); border-color: var(--line); color: var(--ink-soft); }
  html[data-theme="gelap"] .btn-outline:hover { background: var(--green-50); border-color: var(--green-500); color: var(--link); }
  html[data-theme="gelap"] .btn-ghost { color: var(--link); }
  html[data-theme="gelap"] .icon-btn { background: var(--paper); border-color: var(--line); color: var(--ink-soft); }
  html[data-theme="gelap"] .icon-btn:hover { background: var(--green-50); color: var(--link); }
  html[data-theme="gelap"] .badge-green { background: #162f24; color: #9fe3ba; border-color: #28503b; }
  html[data-theme="gelap"] .badge-gray { background: #1a2620; color: #a8b8ae; border-color: #2a3b32; }
  html[data-theme="gelap"] .badge-gold { background: #2a2417; color: #e1c78d; border-color: #4a3d22; }
  html[data-theme="gelap"] .badge-red { background: #2e1c1b; color: #f0a9a3; border-color: #4b2b28; }
  html[data-theme="gelap"] .alert-success { background: #142a1f; border-color: #28503b; color: #a8e6c0; }
  html[data-theme="gelap"] .alert-info { background: #14242b; border-color: #29434f; color: #a9d8ea; }
  html[data-theme="gelap"] .alert-warning { background: #2a2417; border-color: #4a3d22; color: #e1c78d; }
  html[data-theme="gelap"] .note { background: #17281f; color: var(--ink-soft); }
  html[data-theme="gelap"] .note.gold { background: var(--gold-bg); color: #e1c78d; }
  html[data-theme="gelap"] .mega-panel-head { background: linear-gradient(120deg, var(--paper), var(--green-50)); }
  html[data-theme="gelap"] .mega-ico { background: var(--green-50); color: var(--link); }
  html[data-theme="gelap"] .mega-item:hover, html[data-theme="gelap"] .mega-item.active { background: var(--green-50); }
  html[data-theme="gelap"] .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2393a79c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
  html[data-theme="gelap"] .field-help::after { background: #eaf4ee; color: #0a3624; border-color: rgba(10, 54, 36, .18); }
  html[data-theme="gelap"] .surat, html[data-theme="gelap"] .qr-box { background: #fff; color: #16221c; }
  html[data-theme="gelap"] .surat h1, html[data-theme="gelap"] .surat h2, html[data-theme="gelap"] .surat h3,
  html[data-theme="gelap"] .surat .strong, html[data-theme="gelap"] .surat strong { color: #0a3624; }
  html[data-theme="gelap"] .surat .muted, html[data-theme="gelap"] .surat .hint { color: #6f7f77; }
}

@media (max-width: 900px) {
  .sidebar { width: 276px; }
  .main { margin-left: 0; }
  .appearance-panel { right: -8px; }
}

