@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --primary:        #1B5E20;
  --primary-dark:   #0a3d0c;
  --primary-light:  #388e3c;
  --primary-bg:     #e8f5e9;
  --gold:           #C9A227;
  --gold-dark:      #a07d0f;
  --gold-light:     #f0c84a;
  --white:          #ffffff;
  --light:          #f8f9fa;
  --light2:         #f1f3f5;
  --border:         #dee2e6;
  --text:           #212529;
  --text-muted:     #6c757d;
  --danger:         #c0392b;
  --danger-bg:      #fdecea;
  --warning:        #e67e22;
  --warning-bg:     #fef3e2;
  --info:           #2980b9;
  --info-bg:        #e3f0fb;
  --success:        #1B5E20;
  --success-bg:     #e8f5e9;
  --sidebar-width:  250px;
  --header-height:  60px;
  --radius:         6px;
  --shadow:         0 2px 8px rgba(0,0,0,.08);
  --shadow-md:      0 4px 16px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--light2);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ─── Layout ─────────────────────────────────────────────────── */
#wrapper { display: flex; min-height: 100vh; }

#sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--primary);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform .25s ease;
}

#main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Header ─────────────────────────────────────────────────── */
#header {
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 1rem;
  box-shadow: var(--shadow);
}

#header .header-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  text-decoration: none;
}

#header .header-brand img { height: 36px; width: auto; border-radius: 4px; }

#header .header-spacer { flex: 1; }

#header .header-actions { display: flex; align-items: center; gap: .75rem; }

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 1.1rem;
  position: relative;
  transition: background .2s;
}
.btn-icon:hover { background: var(--light2); color: var(--text); }

.notif-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--danger);
  color: #fff;
  font-size: .6rem;
  padding: 1px 4px;
  border-radius: 999px;
  min-width: 16px;
  text-align: center;
  line-height: 14px;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  padding: .3rem .6rem;
  border-radius: var(--radius);
  transition: background .2s;
  position: relative;
}
.user-menu:hover { background: var(--light2); }

.user-menu .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary-bg);
  border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem; color: var(--primary);
  overflow: hidden;
}
.user-menu .avatar img { width: 100%; height: 100%; object-fit: cover; }

.user-menu .user-name { font-weight: 600; font-size: .9rem; }
.user-menu .user-role { font-size: .75rem; color: var(--text-muted); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  z-index: 500;
}
.dropdown-menu.show { display: block; }
.dropdown-menu a, .dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: .55rem 1rem;
  font-size: .9rem;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--light2); text-decoration: none; }
.dropdown-menu .dropdown-divider { border-top: 1px solid var(--border); margin: .3rem 0; }

#hamburger { display: none; background: none; border: none; cursor: pointer; padding: .4rem; font-size: 1.3rem; color: var(--text-muted); }

/* ─── Sidebar ────────────────────────────────────────────────── */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  min-height: var(--header-height);
}
.sidebar-logo img { height: 32px; width: auto; filter: brightness(10); border-radius: 4px; }
.sidebar-logo .app-name { line-height: 1.2; }
.sidebar-logo .app-sub { font-size: .68rem; font-weight: 400; opacity: .7; }

.sidebar-nav { flex: 1; padding: .75rem 0; }

.sidebar-section-title {
  padding: .4rem 1.25rem .2rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.45);
  margin-top: .5rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem 1.25rem;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .9rem;
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
}
.sidebar-nav a.active {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-left-color: var(--gold);
  font-weight: 600;
}
.sidebar-nav a .nav-icon { width: 18px; text-align: center; font-size: 1rem; opacity: .8; }

.sidebar-footer {
  padding: .75rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  text-align: center;
}

/* ─── Page content ───────────────────────────────────────────── */
.page-content { flex: 1; padding: 1.5rem; }

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.page-header h1 { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.page-header .breadcrumb { font-size: .82rem; color: var(--text-muted); margin-top: .2rem; }
.page-header .breadcrumb a { color: var(--text-muted); }
.page-header .breadcrumb span { color: var(--text); font-weight: 500; }

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}
.card-header h2, .card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}
.card-body { }

/* ─── Summary / stat cards ───────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.stat-icon.green  { background: var(--primary-bg); color: var(--primary); }
.stat-icon.gold   { background: #fef3e2; color: var(--gold); }
.stat-icon.blue   { background: #e3f0fb; color: var(--info); }
.stat-icon.red    { background: var(--danger-bg); color: var(--danger); }
.stat-value { font-size: 1.8rem; font-weight: 700; line-height: 1; color: var(--text); }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: .2rem; }

/* ─── Tables ─────────────────────────────────────────────────── */
.table-responsive { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead th {
  background: var(--light2);
  padding: .6rem .85rem;
  text-align: left;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--light2); transition: background .1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--light); }
tbody td { padding: .7rem .85rem; vertical-align: middle; }

.table-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.table-actions a, .table-actions button { white-space: nowrap; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  text-decoration: none;
  line-height: 1.5;
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover { text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn-primary   { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--light2); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-danger    { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #a93226; border-color: #a93226; color: #fff; }
.btn-warning   { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-warning:hover { background: #ca6f1e; color: #fff; }
.btn-gold      { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-sm        { padding: .28rem .65rem; font-size: .8rem; }
.btn-xs        { padding: .18rem .45rem; font-size: .75rem; }
.btn-outline-primary { background: none; color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary-bg); }
.btn-outline-danger  { background: none; color: var(--danger); border-color: var(--danger); }
.btn-outline-danger:hover  { background: var(--danger-bg); }

/* ─── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .35rem;
}
.form-group label .required { color: var(--danger); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: .5rem .75rem;
  font-size: .9rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  line-height: 1.5;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(27,94,32,.12);
}
.form-control:disabled, .form-control[readonly] {
  background: var(--light2);
  opacity: .7;
}
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }

.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: .25rem; }
.form-error { font-size: .78rem; color: var(--danger); margin-top: .25rem; }

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

.form-check { display: flex; align-items: center; gap: .5rem; }
.form-check input[type=checkbox], .form-check input[type=radio] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }
.form-check label { font-weight: 400; margin: 0; cursor: pointer; }

.form-actions {
  display: flex;
  gap: .75rem;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* ─── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}

.badge-biasa         { background: var(--light2);     color: var(--text-muted); border: 1px solid var(--border); }
.badge-segera        { background: #fef9e7;             color: #b7770d; border: 1px solid #f9ca74; }
.badge-sangat-segera { background: #fef0e6;             color: var(--warning); border: 1px solid #f5b97d; }
.badge-rahasia       { background: var(--danger-bg);   color: var(--danger); border: 1px solid #f1a89e; }

.badge-draft         { background: var(--light2);     color: var(--text-muted); }
.badge-diperiksa     { background: #fef9e7;             color: #b7770d; }
.badge-disetujui     { background: var(--info-bg);     color: var(--info); }
.badge-ditandatangani{ background: var(--success-bg); color: var(--success); }
.badge-terkirim      { background: #e8f5e9;             color: #2e7d32; }
.badge-arsip         { background: #f3e5f5;             color: #6a1b9a; }

.badge-superadmin    { background: #311b92; color: #fff; }
.badge-pimpinan      { background: #bf360c; color: #fff; }
.badge-sekretaris    { background: #1b5e20; color: #fff; }
.badge-kabag         { background: #1a237e; color: #fff; }
.badge-staf          { background: #4e342e; color: #fff; }
.badge-arsip-role    { background: #33691e; color: #fff; }
.badge-aktif         { background: var(--success-bg); color: var(--success); }
.badge-nonaktif      { background: var(--danger-bg); color: var(--danger); }

/* ─── Alerts / Flash messages ────────────────────────────────── */
.alert {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: .9rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  border-left: 4px solid transparent;
}
.alert strong { display: block; margin-bottom: .15rem; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.alert-error   { background: var(--danger-bg);  color: var(--danger);  border-color: var(--danger); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning); }
.alert-info    { background: var(--info-bg);    color: var(--info);    border-color: var(--info); }

/* ─── Search / filter bar ────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: .6rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.filter-bar .form-control { width: auto; min-width: 180px; }
.filter-bar .search-box   { flex: 1; min-width: 200px; max-width: 360px; }

/* ─── Pagination ─────────────────────────────────────────────── */
.pagination-nav { display: flex; justify-content: center; margin-top: 1rem; }
.pagination { display: flex; list-style: none; gap: .3rem; flex-wrap: wrap; }
.pagination li a, .pagination li span {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .85rem;
  color: var(--text);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.pagination li a:hover { background: var(--primary-bg); border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pagination li.active a { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination li.dots span { border: none; color: var(--text-muted); cursor: default; }

/* ─── Login page ─────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.login-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}
.login-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}
.login-logo img { height: 56px; width: auto; margin-bottom: .75rem; }
.login-logo h1 { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.login-logo p  { font-size: .85rem; color: var(--text-muted); }
.login-logo .logo-placeholder {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .75rem;
  font-size: 2rem;
  color: var(--primary);
}

/* ─── Grid helpers ───────────────────────────────────────────── */
.row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; align-items: start; }
.col-4  { grid-column: span 4; }
.col-6  { grid-column: span 6; }
.col-8  { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* ─── Utility ────────────────────────────────────────────────── */
.text-center { text-align: center !important; }
.text-right  { text-align: right !important; }
.text-muted  { color: var(--text-muted) !important; }
.text-danger { color: var(--danger) !important; }
.text-success{ color: var(--success) !important; }
.text-gold   { color: var(--gold) !important; }
.fw-bold     { font-weight: 700 !important; }
.fw-600      { font-weight: 600 !important; }
.fs-sm       { font-size: .85rem !important; }
.fs-xs       { font-size: .75rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .4rem !important; }
.mt-2 { margin-top: .75rem !important; }
.mt-3 { margin-top: 1.25rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .4rem !important; }
.mb-2 { margin-bottom: .75rem !important; }
.mb-3 { margin-bottom: 1.25rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.me-1 { margin-right: .4rem !important; }
.me-2 { margin-right: .75rem !important; }

.d-flex   { display: flex !important; }
.d-block  { display: block !important; }
.d-none   { display: none !important; }
.flex-wrap{ flex-wrap: wrap !important; }
.align-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.gap-1 { gap: .4rem !important; }
.gap-2 { gap: .75rem !important; }
.gap-3 { gap: 1.25rem !important; }

.w-100 { width: 100% !important; }
.overflow-hidden { overflow: hidden !important; }

.hr { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .4; }
.empty-state h3 { font-size: 1rem; margin-bottom: .5rem; }

/* ─── Detail / info block ────────────────────────────────────── */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem 1.5rem; }
.info-item .info-label { font-size: .78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .2rem; }
.info-item .info-value { font-size: .95rem; }

/* ─── Verifikasi page ────────────────────────────────────────── */
.verif-page {
  min-height: 100vh;
  background: var(--light2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.verif-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  width: 100%;
  max-width: 540px;
  text-align: center;
}
.verif-status {
  font-size: 3.5rem;
  margin-bottom: .75rem;
}
.verif-valid   { color: var(--success); }
.verif-invalid { color: var(--danger); }

/* ─── Print ───────────────────────────────────────────────────── */
@media print {
  #sidebar, #header, .no-print { display: none !important; }
  #main-content { margin-left: 0 !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  #sidebar {
    transform: translateX(-100%);
  }
  #sidebar.open {
    transform: translateX(0);
  }
  #main-content {
    margin-left: 0;
  }
  #hamburger { display: block; }

  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .col-4, .col-6, .col-8, .col-12 { grid-column: span 1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .page-content { padding: 1rem; }
  .login-card { padding: 1.75rem; }
}

/* ─── Sidebar overlay (mobile) ───────────────────────────────── */
#sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 199;
}
#sidebar-overlay.show { display: block; }

/* ─── Chart container ────────────────────────────────────────── */
.chart-container { position: relative; height: 260px; }

/* ─── Rich Text Editor ───────────────────────────────────────── */
.editor-toolbar {
  border: 1px solid #ddd;
  padding: 4px 8px;
  background: #f8f9fa;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}
.editor-toolbar button {
  background: none;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 2px 8px;
  cursor: pointer;
  margin-right: 2px;
  font-size: .85rem;
}
.editor-toolbar button:hover { background: #e9ecef; }
.editor-content {
  min-height: 200px;
  border: 1px solid #ddd;
  padding: 12px;
  border-radius: 0 0 4px 4px;
  outline: none;
  background: #fff;
  line-height: 1.8;
}
.editor-content:focus { border-color: var(--primary); }

/* ─── Disposisi Tree ─────────────────────────────────────────── */
.disposisi-tree { padding-left: 0; margin: 0; }
.disposisi-tree li {
  list-style: none;
  padding: 8px 12px;
  border-left: 3px solid var(--primary);
  margin-bottom: 8px;
  background: #f9f9f9;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.disposisi-tree li.level-1 {
  margin-left: 20px;
  border-left-color: var(--gold);
}
.disposisi-tree li.level-2 {
  margin-left: 40px;
  border-left-color: #888;
}

/* ─── Timeline ───────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ddd;
}
.timeline-item { position: relative; margin-bottom: 16px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}

/* ─── Extra badge colours ────────────────────────────────────── */
.badge-orange { background: #e65100; color: #fff; }
.badge-info   { background: #0288d1; color: #fff; }

/* ─── Filter row utility ─────────────────────────────────────── */
.filter-form  { margin-bottom: 1rem; }
.filter-row   { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; }
.filter-row .form-group { margin-bottom: 0; }
