/* ============================================================
   IngatanGajah Trial CRM — Design tokens + komponen bersama
   SPEC §7.

   Rasa UX (directive "seperti figma.com"):
     - transisi 0.15–0.25s ease, HANYA transform/opacity (tidak memicu layout)
     - header tabel & grid sticky; kolom pertama sticky
     - fade-in saat view berganti; hover lift pada kartu/chip
     - nyaman di >= 1024px, tetap terpakai (degrade) di 768px
   ============================================================ */

/* ── 1. TOKEN ──────────────────────────────────────────────── */
:root {
  /* Merek — bold modern: biru royal + aksen lime & kuning */
  --brand-teal:   #0B7C7B;   /* ADDENDUM 48 — RE-THEME teal tua (dulu biru #2C74F0). Dipakai .btn--teal + logo. */
  --brand-blue:   #0B7C7B;   /* alias — kini teal (dulu biru) */
  --brand-orange: #FF7826;
  --brand-lime:   #C6F53F;
  --brand-yellow: #FFD84D;

  /* ADDENDUM 48 — RE-THEME GLOBAL: ramp biru royal → TEAL TUA (senada LMS/Camp #0BBFBE, ~14% lebih tua).
     Semua konsumen token ikut: sidebar, header tabel/grid, tombol, tautan, KPI, tint. Kontras AA terjaga:
     header teal #0A4A49 + teks putih ≈ 9:1; teal #0B7C7B di putih 5.05:1; --blue-dark #075E5D 7.4:1. */
  --navy:      #0A4A49;   /* header tabel/grid + sidebar (dulu #163CC0) */
  --blue-dark: #075E5D;   /* btn--primary, tautan, header trainer/hari-ini (dulu #1D4ED8) */
  --blue:      #0B7C7B;   /* primer: focus ring, aksen KPI (dulu #2C74F0) */
  --blue-lt:   #6FC7C6;   /* teal muda (dulu #8FB4F7) */
  --blue-xlt:  #D8F1F0;   /* tint teal muda: sub-header, avatar, hover edit-cell (dulu #DCE8FE) */

  /* Pastel (kategori) */
  --mint:     #B6E3CE;
  --lime:     #D0E6A5;
  --cream:    #FFDD94;
  --coral:    #FA897B;
  --lavender: #CCABD8;

  /* Netral */
  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* Semantik */
  --ok:      #10B981;
  --ok-bg:   #ECFDF5;
  --warn:    #F59E0B;
  --warn-bg: #FFFBEB;
  --err:     #EF4444;
  --err-bg:  #FEF2F2;
  --info:    var(--blue);
  --info-bg: var(--blue-xlt);

  /* Permukaan */
  --bg:      var(--gray-50);
  --surface: #FFFFFF;
  --text:    var(--gray-800);
  --muted:   var(--gray-500);
  --border:  var(--gray-200);

  /* Header tabel — navy + teks putih (seragam dgn grid kalender). Aksen LIME
     dipakai utk panah-sortir/hover agar kontras di atas latar biru-royal. */
  --th-bg:   var(--navy);
  --th-fg:   #FFFFFF;
  --th-ind:  var(--brand-lime);

  /* Baris sub-header / pemisah grup (mis. "Cibubur — 3 trial") — biru muda
     agar menonjol tapi tetap lebih ringan dari header navy. */
  --subhead-bg: var(--blue-xlt);
  --subhead-fg: var(--blue-dark);

  /* Radius & bayangan */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .08), 0 2px 4px -2px rgba(15, 23, 42, .05);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, .12), 0 8px 10px -6px rgba(15, 23, 42, .08);

  /* Layout */
  --sidebar-w: 232px;
  --header-h:  60px;
  --gh1-h:     30px;   /* tinggi baris header-1 grid (cabang) — dipakai sticky offset */

  /* Gerak */
  --dur:  .18s;
  --dur2: .24s;
  --ease: cubic-bezier(.4, 0, .2, 1);

  --z-drawer: 60;
  --z-modal:  70;
  --z-toast:  90;
}

/* ── 2. DASAR ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--gray-900); }
h1 { font-size: 20px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }

input, select, textarea, button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* Hormati preferensi pengguna yang mengurangi animasi. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── 3. SHELL: sidebar kiri + header + konten ──────────────── */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--header-h) 1fr;
  grid-template-areas: "sidebar header" "sidebar content";
  min-height: 100vh;
}

.sidebar {
  grid-area: sidebar;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--header-h);
  padding: 0 18px;
  font-weight: 800;
  letter-spacing: .2px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  flex: none;
}
.sidebar__logo {
  width: 28px; height: 28px; flex: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-teal), var(--blue));
  display: grid; place-items: center;
  font-size: 15px;
}
/* ADDENDUM 19 — logo brand PNG (LMS/CMP) menggantikan emoji 🐘 di sidebar. */
.sidebar__logo:has(img) { background: transparent; }
.sidebar__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sidebar__title { font-size: 14px; line-height: 1.15; }
.sidebar__title small { display: block; font-size: 10px; font-weight: 500; opacity: .6; letter-spacing: .06em; text-transform: uppercase; }

.sidebar__nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, .72);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  border: 0; background: none; width: 100%; text-align: left;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  position: relative;
}
.nav-item::before {              /* latar hover: opacity saja, tanpa layout thrash */
  content: ''; position: absolute; inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, .10);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.nav-item:hover::before { opacity: 1; }
.nav-item:active { transform: scale(.985); }
.nav-item > * { position: relative; }
.nav-item.is-active { color: #fff; }
.nav-item.is-active::before { opacity: 1; background: linear-gradient(90deg, rgba(11,124,123,.42), rgba(11,124,123,.16)); } /* ADDENDUM 48 — teal (dulu biru rgba 44,116,240) */
.nav-item.is-active::after {
  content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-lime);
}
.nav-item__icon { width: 18px; text-align: center; flex: none; opacity: .95; }

.sidebar__foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; color: rgba(255,255,255,.45); flex: none; }

.header {
  grid-area: header;
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 0 20px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header__title { font-size: 16px; font-weight: 700; }
.header__spacer { flex: 1; }

.header__search { position: relative; }
.header__search input {
  width: 260px; padding: 8px 12px 8px 32px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--gray-50);
  transition: opacity var(--dur) var(--ease);
}
.header__search input:focus { background: #fff; }
.header__search .kbd-hint {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 10px; color: var(--gray-400); pointer-events: none;
}
.header__search svg, .header__search .ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--gray-400); }

.header__user { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue-xlt); color: var(--blue-dark);
  display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none;
}

.content { grid-area: content; padding: 20px; min-width: 0; }

/* Fade-in saat view berganti (transform+opacity saja). */
.view { display: none; }
.view.is-active { display: block; animation: viewIn var(--dur2) var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }

/* ── 4. BUTTON ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--gray-700);
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover  { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--primary { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn--accent  { background: var(--brand-orange); border-color: var(--brand-orange); color: #fff; }
.btn--teal    { background: var(--brand-teal); border-color: var(--brand-teal); color: #fff; }
.btn--danger  { background: var(--err); border-color: var(--err); color: #fff; }
.btn--ghost   { background: transparent; border-color: transparent; color: var(--gray-600); }
.btn--sm      { height: 28px; padding: 0 10px; font-size: 12px; }
.btn--icon    { width: 34px; padding: 0; }
.btn-group    { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); margin-left: 0; }
.btn-group .btn:last-child  { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ── 5. FIELD ──────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field > label { font-size: 12px; font-weight: 600; color: var(--gray-600); }
.field .hint { font-size: 11px; color: var(--muted); }
.field .err-msg { font-size: 11px; color: var(--err); min-height: 14px; }

.input, .select, .textarea {
  width: 100%; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface);
  transition: opacity var(--dur) var(--ease);
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--gray-100); color: var(--gray-500); cursor: not-allowed; }
.textarea { min-height: 76px; resize: vertical; }
.input.is-invalid, .select.is-invalid { border-color: var(--err); background: var(--err-bg); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters .select, .filters .input { width: auto; min-width: 130px; height: 34px; padding: 0 10px; font-size: 13px; }

/* ── 6. CHIP & BADGE ───────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px;
  border-radius: 999px;
  background: var(--gray-100); color: var(--gray-700);
  font-size: 11px; font-weight: 600; white-space: nowrap;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.chip--clickable { cursor: pointer; }
.chip--clickable:hover { transform: translateY(-1px); }
.chip--active { background: var(--blue-dark); color: #fff; }
.chip__x { cursor: pointer; opacity: .6; font-weight: 700; }
.chip__x:hover { opacity: 1; }

.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px; font-weight: 700; line-height: 1.5;
  letter-spacing: .01em; white-space: nowrap;
  background: var(--gray-100); color: var(--gray-700);
}
.badge--ok   { background: var(--ok-bg);   color: #047857; }
.badge--warn { background: var(--warn-bg); color: #B45309; }
.badge--err  { background: var(--err-bg);  color: #B91C1C; }
.badge--info { background: var(--info-bg); color: var(--blue-dark); }
.badge--join { background: var(--ok-bg);   color: #047857; }
.badge--wl   { background: var(--warn-bg); color: #B45309; }

/* Titik status kehadiran. */
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; background: var(--gray-300); }
.dot--y { background: var(--ok); }
.dot--n { background: var(--err); }

/* ── 7. CARD & KPI ─────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card--hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card__title { font-size: 14px; font-weight: 700; }
.card__foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); }

.card-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.kpi-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 16px; }
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  position: relative; overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); }
.kpi--teal::after   { background: var(--brand-teal); }
.kpi--orange::after { background: var(--brand-orange); }
.kpi--ok::after     { background: var(--ok); }
.kpi--warn::after   { background: var(--warn); }
.kpi__label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kpi__value { font-size: 26px; font-weight: 800; color: var(--gray-900); line-height: 1.25; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi__sub   { font-size: 11px; color: var(--muted); }

/* ── 8. TABLE (sticky header + kolom pertama) ──────────────── */
.table-wrap {
  overflow: auto;
  max-height: calc(100vh - var(--header-h) - 190px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }

.table thead th {
  position: sticky; top: 0; z-index: 3;
  background: var(--th-bg);
  color: var(--th-fg);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  text-align: left; white-space: nowrap;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}
.table thead th.is-sortable { cursor: pointer; user-select: none; }
.table thead th .sort-ind { opacity: .35; margin-left: 4px; }
.table thead th.is-sorted .sort-ind { opacity: 1; color: var(--th-ind); }

.table tbody td { padding: 9px 12px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.table tbody tr { transition: opacity var(--dur) var(--ease); }
.table tbody tr:hover td { background: var(--gray-50); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .nowrap { white-space: nowrap; }

/* Kolom pertama sticky (nama murid). */
.table th.sticky-col, .table td.sticky-col {
  position: sticky; left: 0; z-index: 2;
  background: var(--surface);
  border-right: 1px solid var(--border);
  font-weight: 600;
}
.table thead th.sticky-col { z-index: 4; background: var(--th-bg); }
.table tbody tr:hover td.sticky-col { background: var(--gray-50); }
.table td.sticky-col .link { color: var(--blue-dark); cursor: pointer; }
.table td.sticky-col .link:hover { text-decoration: underline; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--muted); }

/* ── 9. GRID JADWAL (fitur utama, SPEC §8) ─────────────────── */
.grid-wrap {
  position: relative;
  overflow: auto;
  max-height: calc(100vh - var(--header-h) - 170px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.grid-table { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; }

/* Header baris 1 = Cabang, baris 2 = Trainer. */
.grid-table th { font-weight: 700; }
.grid-table .gh-branch {
  position: sticky; top: 0; z-index: 4;
  height: var(--gh1-h);
  background: var(--navy); color: #fff;
  font-size: 11px; text-align: center; letter-spacing: .02em;
  padding: 5px 8px;
  border-right: 1px solid rgba(255,255,255,.14);
}
.grid-table .gh-trainer {
  position: sticky; top: var(--gh1-h); z-index: 4;
  background: var(--blue-dark); color: #fff;
  font-size: 11px; font-weight: 600; text-align: center;
  padding: 5px 8px;
  border-right: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid var(--border);
}
.grid-table .gh-trainer.is-empty { font-style: italic; opacity: .8; }

/* Pojok kiri-atas: sticky pada dua sumbu sekaligus. */
.grid-table .corner {
  position: sticky; left: 0; top: 0; z-index: 6;
  width: 62px; min-width: 62px;
  background: var(--navy); color: #fff;
  font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  border-right: 1px solid var(--border);
}

/* Kolom waktu di KIRI (permintaan harfiah user). */
.grid-table .time-col {
  position: sticky; left: 0; z-index: 2;
  width: 62px; min-width: 62px;
  background: var(--gray-50); color: var(--gray-500);
  font-size: 10px; font-weight: 700; text-align: right;
  padding: 2px 8px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--gray-100);
  font-variant-numeric: tabular-nums;
  vertical-align: top;
}
.grid-table .time-col.is-hour { color: var(--gray-700); border-bottom-color: var(--gray-200); }

.grid-table tbody tr { height: 24px; }
.grid-table .ev-cell {
  position: relative;              /* jangkar chip absolut (span durasi) */
  padding: 0;
  vertical-align: top;
  min-width: 120px;
  border-right: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  background: var(--surface);
}
.grid-table tr.is-hour .ev-cell { border-bottom-color: var(--gray-200); }
.grid-table .ev-cell.is-branch-end { border-right: 1px solid var(--gray-300); }

/* Chip acara: tinggi absolut = durasi. JANGAN pakai rowspan HTML —
   satu kolom bisa memuat 2 murid dengan durasi berbeda. JS mengisi
   inline style: top / height / left / width. */
.ev-chip {
  position: absolute;
  left: 2px; right: 2px;
  top: 0;
  min-height: 18px;   /* chip bertumpuk TIDAK boleh menyusut sampai tak terbaca */
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  font-size: 10px; line-height: 1.35; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .07);
  display: flex; flex-direction: column; gap: 1px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), opacity var(--dur) var(--ease);
  z-index: 1;
}
.ev-chip:hover  { transform: translateY(-1px) scale(1.012); box-shadow: var(--shadow-md); z-index: 5; }
.ev-chip:active { transform: scale(.99); }
.ev-chip.is-dim { opacity: .32; }         /* tidak cocok filter/pencarian */

/* Penanda "+N lainnya": ringkasan murid yang tak muat di slot. */
.ev-chip.ev-more {
  background: var(--gray-100); color: var(--gray-700);
  border-left: 3px solid var(--gray-400);
  justify-content: center; align-items: center;
  font-weight: 700; font-size: 10px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .1);
}
.ev-chip.ev-more .ev-chip__name { font-weight: 700; }

.ev-chip__name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-chip__meta { display: flex; align-items: center; gap: 4px; font-weight: 500; opacity: .92; }
.ev-chip__prog { padding: 0 5px; border-radius: 999px; font-size: 9px; font-weight: 700; }
.ev-chip__age  { font-variant-numeric: tabular-nums; }

/* ADDENDUM 7 — blok ROMBONGAN (1 jam, "N anak"). */
.ev-chip--group { display: flex; flex-direction: column; gap: 2px; justify-content: center; cursor: pointer; }
.ev-chip--group .ev-chip__count { font-weight: 800; font-variant-numeric: tabular-nums; }
.ev-chip--group .ev-chip__jam   { font-size: 10px; opacity: .8; font-variant-numeric: tabular-nums; }
.ev-chip--group:hover { filter: brightness(0.98); }

/* Modal daftar anak dalam rombongan. */
.grp-head { font-size: 12px; color: var(--muted); margin-bottom: 8px; text-wrap: pretty; }
.grp-list { display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow: auto; }
.grp-item { display: grid; grid-template-columns: 1fr auto 14px; align-items: center; gap: 10px;
  width: 100%; text-align: left; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface); cursor: pointer;
  transition-property: background-color, transform; transition-duration: 120ms; transition-timing-function: ease-out; }
.grp-item:hover { background: var(--gray-50); }
.grp-item:active { transform: scale(0.995); }
.grp-item__name { font-weight: 600; }
.grp-item__age  { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Garis merah "sekarang" — hanya bila tanggal = hari ini. */
.grid-now { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--err); pointer-events: none; z-index: 7; }
.grid-now::before { content: ''; position: absolute; left: 56px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--err); }

/* ── 10. DRAWER (panel kanan) ──────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: rgba(15, 23, 42, .40);
  opacity: 0;
  transition: opacity var(--dur2) var(--ease);
}
.overlay.is-open { opacity: 1; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-drawer);
  width: min(560px, 100vw);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur2) var(--ease);
  will-change: transform;
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex: none; }
.drawer__title { font-size: 15px; font-weight: 700; flex: 1; min-width: 0; }
.drawer__close { border: 0; background: none; cursor: pointer; font-size: 20px; line-height: 1; color: var(--gray-400); padding: 4px 8px; border-radius: var(--radius-sm); transition: opacity var(--dur) var(--ease); }
.drawer__close:hover { opacity: .65; }
.drawer__body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.drawer__foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--gray-50); flex: none; }

/* ── 11. MODAL ─────────────────────────────────────────────── */
.modal-layer { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 20px; pointer-events: none; }
.modal {
  pointer-events: auto;
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(10px) scale(.985);
  transition: opacity var(--dur2) var(--ease), transform var(--dur2) var(--ease);
  will-change: transform, opacity;
}
.modal.is-open { opacity: 1; transform: none; }
.modal__head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex: none; }
.modal__title { font-size: 16px; font-weight: 700; flex: 1; }
.modal__close { border: 0; background: none; cursor: pointer; font-size: 20px; line-height: 1; color: var(--gray-400); padding: 4px 8px; }
.modal__body { padding: 18px 20px; overflow-y: auto; flex: 1; }
.modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--gray-50); border-radius: 0 0 var(--radius-lg) var(--radius-lg); flex: none; }

/* ── 12. TOAST ─────────────────────────────────────────────── */
.toast-host { position: fixed; right: 18px; bottom: 18px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto;
  min-width: 240px; max-width: 380px;
  display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: var(--gray-900); color: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 13px; font-weight: 500;
  opacity: 0; transform: translateY(10px);
  transition: opacity var(--dur2) var(--ease), transform var(--dur2) var(--ease);
}
.toast.is-open { opacity: 1; transform: none; }
.toast__ico { flex: none; font-weight: 700; }
.toast--ok   { background: #064E3B; }
.toast--err  { background: #7F1D1D; }
.toast--info { background: var(--navy); }

/* ── 13. TABS ──────────────────────────────────────────────── */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; }
.tab {
  position: relative;
  border: 0; background: none; cursor: pointer;
  padding: 9px 13px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  white-space: nowrap;
  transition: opacity var(--dur) var(--ease);
}
.tab:hover { opacity: .75; }
.tab.is-active { color: var(--blue-dark); }
.tab.is-active::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--blue-dark); border-radius: 2px 2px 0 0; }
.tab__num { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 5px; border-radius: 50%; background: var(--gray-200); color: var(--gray-600); font-size: 9px; }
.tab.is-active .tab__num { background: var(--blue-dark); color: #fff; }
.tab.is-done .tab__num { background: var(--ok); color: #fff; }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: viewIn var(--dur) var(--ease); }

/* ── 14. WIZARD (5 langkah) ────────────────────────────────── */
.wizard { display: flex; flex-direction: column; min-height: 340px; }
.wizard__steps { display: flex; align-items: center; gap: 4px; margin-bottom: 16px; }
.wizard__step { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--gray-400); white-space: nowrap; }
.wizard__dot {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--gray-200); color: var(--gray-500);
  font-size: 10px; font-weight: 700;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.wizard__step.is-active { color: var(--blue-dark); }
.wizard__step.is-active .wizard__dot { background: var(--blue-dark); color: #fff; transform: scale(1.12); }
.wizard__step.is-done   { color: var(--ok); }
.wizard__step.is-done .wizard__dot { background: var(--ok); color: #fff; }
.wizard__bar { flex: 1; height: 2px; background: var(--gray-200); border-radius: 2px; min-width: 12px; }
.wizard__step.is-done + .wizard__bar { background: var(--ok); }
.wizard__body { flex: 1; }
.wizard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }

/* ── 15. EMPTY STATE & SKELETON ────────────────────────────── */
.empty-state { display: grid; place-items: center; gap: 8px; padding: 56px 20px; text-align: center; color: var(--muted); }
.empty-state__ico { width: 52px; height: 52px; border-radius: 50%; background: var(--gray-100); display: grid; place-items: center; font-size: 22px; }
.empty-state__title { font-size: 15px; font-weight: 700; color: var(--gray-700); }
.empty-state__desc { font-size: 13px; max-width: 380px; }

/* "—" adalah satu-satunya placeholder yang boleh tampil untuk data kosong. */
.muted { color: var(--muted); }
.dash  { color: var(--gray-300); }

.skeleton {
  position: relative; overflow: hidden;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  height: 14px;
}
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.skeleton--text  { height: 12px; margin: 6px 0; }
.skeleton--title { height: 20px; width: 40%; }
.skeleton--kpi   { height: 74px; border-radius: var(--radius-md); }
.skeleton--row   { height: 34px; margin-bottom: 6px; }

/* ── 16. PIPELINE (papan kolom) ────────────────────────────── */
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.board__col { flex: none; width: 268px; background: var(--gray-100); border-radius: var(--radius-md); padding: 10px; }
.board__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; font-size: 12px; font-weight: 700; color: var(--gray-700); }
.board__count { background: var(--surface); border-radius: 999px; padding: 1px 8px; font-size: 11px; color: var(--muted); }
.board__list { display: flex; flex-direction: column; gap: 7px; max-height: calc(100vh - 300px); overflow-y: auto; }
.board__card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 10px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.board__card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.board__card.is-saving { opacity: .55; }   /* optimistic update sedang berjalan */

/* ── 17. RESPONSIF ─────────────────────────────────────────── */
/* Nyaman mulai 1024px. Di bawahnya sidebar mengecil, lalu jadi bar atas. */
@media (max-width: 1180px) {
  :root { --sidebar-w: 200px; }
  .header__search input { width: 190px; }
}

@media (max-width: 1023px) {
  :root { --sidebar-w: 64px; }
  .sidebar__title, .nav-item__label, .sidebar__foot { display: none; }
  .sidebar__brand { justify-content: center; padding: 0; }
  .nav-item { justify-content: center; padding: 12px 0; }
  .content { padding: 14px; }
  .kpi__value { font-size: 22px; }
}

@media (max-width: 768px) {
  .shell { grid-template-columns: 1fr; grid-template-areas: "header" "content"; }
  .sidebar {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    height: auto; z-index: 40;
    flex-direction: row;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .sidebar__brand { display: none; }
  .sidebar__nav { flex-direction: row; justify-content: space-around; padding: 4px; width: 100%; }
  .nav-item { flex-direction: column; gap: 2px; font-size: 10px; }
  .nav-item.is-active::after { display: none; }
  .content { padding: 12px 12px 76px; }   /* ruang untuk bar bawah */
  .header { padding: 0 12px; gap: 8px; }
  .header__search input { width: 100%; min-width: 110px; }
  .header__search .kbd-hint { display: none; }
  .header__user span { display: none; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .drawer { width: 100vw; }
  .modal { border-radius: var(--radius-md); }
  .table-wrap, .grid-wrap { max-height: 65vh; }
  .filters .select, .filters .input { min-width: 0; flex: 1 1 132px; }
}

/* Cetak: buang chrome, biarkan tabel utuh. */
@media print {
  .sidebar, .header, .toolbar, .toast-host, .drawer, .overlay { display: none !important; }
  .content { padding: 0; }
  .table-wrap, .grid-wrap { max-height: none; overflow: visible; border: 0; box-shadow: none; }
  .dt-toolbar, .dt-pager { display: none !important; }
  .dt-scroll { max-height: none; overflow: visible; }
}

/* ============================================================
   IG.dataTable — tabel edit-inline reusable (ADDENDUM-2 §A.3)
   Sticky kolom-1 + header, hover pensil, saving/saved, locked,
   empty, pager. Transisi 0.15–0.2s HANYA transform/opacity.
   Selaras palet [[iglms-color-palette]] + rasa figma.
   ============================================================ */
.dt-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* ── Toolbar / filter bar ── */
.dt-toolbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--gray-50);
}
.dt-filters {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px 12px;
  flex: 1 1 auto;
  min-width: 0;
}
.dt-field { display: inline-flex; flex-direction: column; gap: 4px; }
.dt-field__lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--muted);
}
.dt-daterange { display: inline-flex; align-items: center; gap: 6px; }
.dt-daterange__sep { color: var(--gray-400); }
.dt-input {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.dt-input:hover { border-color: var(--gray-400); }
.dt-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-xlt); }
.dt-count {
  flex: 0 0 auto;
  align-self: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Scroll + tabel ── */
.dt-scroll {
  position: relative;
  overflow: auto;
  max-height: calc(100vh - var(--header-h) - 190px);
  transition: opacity var(--dur) var(--ease);
}
.dt-wrap.dt-loading .dt-scroll { opacity: .55; pointer-events: none; }

.dt-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.dt-th, .dt-td {
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

/* Header lengket (di atas segalanya, termasuk kolom-1 lengket). */
.dt-th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--th-bg);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--th-fg);
}
/* Kolom-1 lengket (di bawah header, di atas sel biasa). */
.dt-td.dt-sticky, .dt-th.dt-sticky {
  position: sticky;
  left: 0;
  z-index: 2;
}
.dt-td.dt-sticky { background: var(--surface); }
.dt-th.dt-sticky { z-index: 4; }         /* sudut kiri-atas menang atas keduanya */

.dt-row { transition: background-color var(--dur) var(--ease); }
.dt-row:hover > .dt-td { background: var(--gray-50); }
.dt-row:hover > .dt-td.dt-sticky { background: var(--gray-100); }

.dt-val { display: inline-block; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.dt-muted { color: var(--gray-400); }

/* Badge (mis. program) — warna dari IG.colorFor. */
.dt-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

/* Sel dapat-diklik non-editable (link nama → drawer). */
.dt-link { cursor: pointer; }
.dt-link .dt-val { color: var(--blue-dark); font-weight: 600; }
.dt-link:hover .dt-val { text-decoration: underline; }

/* ── Sel editable ── */
.dt-td--edit {
  position: relative;
  cursor: text;
  transition: background-color var(--dur) var(--ease);
}
.dt-td--edit:hover { background: var(--blue-xlt); }
.dt-td--edit:hover .dt-sticky,
.dt-row:hover > .dt-td--edit { background: var(--blue-xlt); }
/* Ikon pensil samar saat hover. */
.dt-td--edit::after {
  content: '✎';
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 11px;
  color: var(--blue-dark);   /* ADDENDUM 48 — pensil edit lebih tua agar terbaca di tint teal saat hover */
  opacity: 0;
  transform: translateY(1px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  pointer-events: none;
}
.dt-td--edit:hover::after { opacity: .7; transform: translateY(0); }

.dt-cell-editing { background: var(--surface) !important; box-shadow: inset 0 0 0 2px var(--blue); }
.dt-cell-editing::after { display: none; }
.dt-editor {
  width: 100%;
  min-width: 90px;
  height: 30px;
  padding: 0 6px;
  border: 1px solid var(--blue);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}
.dt-editor:focus { outline: none; box-shadow: 0 0 0 3px var(--blue-xlt); }
.dt-check { width: 16px; height: 16px; cursor: pointer; accent-color: var(--blue); }
.dt-check:disabled { cursor: not-allowed; opacity: .5; }

/* Sel terkunci (biasanya editable, tapi tidak untuk baris/peran ini). */
.dt-locked { cursor: not-allowed; }
.dt-lock { margin-left: 6px; font-size: 11px; opacity: .45; }

/* ── Indikator simpan (border kiri baris) ── */
.dt-row.dt-saving > .dt-td:first-child { box-shadow: inset 3px 0 0 0 var(--warn); }
.dt-row.dt-saved  > .dt-td:first-child { box-shadow: inset 3px 0 0 0 var(--ok); }
.dt-row.dt-saved  > .dt-td { transition: background-color var(--dur2) var(--ease); background: var(--ok-bg); }

/* ── Kosong ── */
.dt-empty {
  padding: 44px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ── Pager ── */
.dt-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--gray-50);
}
.dt-pginfo { font-size: 12px; color: var(--muted); }
.dt-pgbtn {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.dt-pgbtn:hover:not(:disabled) { border-color: var(--blue); transform: translateY(-1px); }
.dt-pgbtn:active:not(:disabled) { transform: translateY(0); }
.dt-pgbtn:disabled { opacity: .45; cursor: default; }

/* ── ADDENDUM-5 §B.1: header sortable A→Z ── */
.dt-sortbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  text-align: left;
  transition: color var(--dur) var(--ease);
}
.dt-sortbtn:hover, .dt-sortbtn.is-active { color: var(--th-ind); }
.dt-sortbtn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
.dt-sortind { min-width: 9px; font-size: 10px; line-height: 1; color: var(--th-ind); }

/* ── ADDENDUM-5 §B.2: kolom seleksi + toolbar hapus massal ── */
.dt-check-col { width: 36px; text-align: center; padding-left: 10px; padding-right: 10px; }
.dt-check-col .dt-check { vertical-align: middle; }
.dt-selbar { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; align-self: center; }
.dt-selcount { font-size: 12px; font-weight: 600; color: var(--blue-dark); white-space: nowrap; }
.dt-delbtn { white-space: nowrap; }
.dt-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 768px) {
  .dt-scroll { max-height: 62vh; }
  .dt-val { max-width: 200px; }
}

/* ============================================================
   ADDENDUM-3 — Jadwal: navigasi minggu + chip hari multi-pilih,
   toggle Block/Table, grid kolom-hari, dan Table view (list datar).
   Selaras palet [[iglms-color-palette]] + rasa figma (transisi
   0.15–0.24s HANYA transform/opacity/warna).
   ============================================================ */

/* ── Label rentang minggu ── */
.jadwal-week-label {
  font-size: 13px; font-weight: 700; color: var(--gray-800);
  min-width: 128px; text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ── Chip hari (Senin–Minggu, multi-pilih) ── */
.jadwal-days { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.daychip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--gray-600);
  font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
              color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.daychip:hover { transform: translateY(-1px); }
.daychip:active { transform: translateY(0) scale(.98); }
.daychip__n {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--gray-100); color: var(--gray-600);
  font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.daychip.is-active { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.daychip.is-active .daychip__n { background: rgba(255, 255, 255, .22); color: #fff; }
.daychip.is-empty { opacity: .5; }               /* hari tanpa trial: redup, tetap bisa dipilih */
.daychip.is-empty.is-active { opacity: .9; }

/* ── Header hari (mode BLOCK + >1 hari) ── */
.grid-table .gh-day {
  position: sticky; top: 0; z-index: 4;
  background: var(--navy); color: #fff;
  text-align: center; line-height: 1.15;
  padding: 4px 8px;
  border-right: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 1px solid var(--border);
}
.grid-table .gh-day__name { display: block; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.grid-table .gh-day__date { display: block; font-size: 10px; font-weight: 500; opacity: .7; }
.grid-table .gh-day.is-today { background: var(--blue-dark); }
.grid-table .ev-cell.is-today-col { background: var(--blue-xlt); }   /* chip tetap putih (inline bg) */

/* Baris `trainer · lokasi` pada chip mode kolom-hari. */
.ev-chip__loc {
  font-size: 9px; font-weight: 500; opacity: .78;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Garis "sekarang" versi kolom (mode hari) — tanpa titik penanda kiri. */
.grid-now--col::before { display: none; }

/* ── TABLE view (list datar 11 kolom) ── */
.jadwal-list { table-layout: auto; }
/* ADDENDUM: header Table view sortable A→Z */
.jadwal-list thead .list-th { cursor: pointer; user-select: none; white-space: nowrap; }
.jadwal-list thead .list-th:hover { color: var(--th-ind); }
.jadwal-list thead .list-ind { font-size: 9px; color: var(--th-ind); }
.jadwal-list .list-row { cursor: pointer; }
.jadwal-list .list-name { font-weight: 600; color: var(--blue-dark); }
.jadwal-list .list-row:hover .list-name { text-decoration: underline; }
/* ADDENDUM 40 — sub-baris JAM di kolom Nama; default TERSEMBUNYI (desktop),
   hanya muncul di HP lewat @media (max-width:768px) di bawah. */
.jadwal-list .list-name-jam { display: none; }
.jadwal-list .list-zoom {
  display: flex; align-items: center; gap: 4px;
  margin-top: 2px; font-size: 11px; color: var(--muted);
}
.jadwal-list .list-copy { cursor: pointer; color: var(--blue); font-size: 12px; line-height: 1; }
.jadwal-list .list-copy:hover { color: var(--blue-dark); }
.jadwal-list .list-status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
/* ADDENDUM 18 — chip info Zoom di kolom Lokasi (warna beda: ungu Zoom, jelas vs teks lokasi). */
.jadwal-list .list-zoom-chip {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 6px;
  padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  white-space: nowrap; vertical-align: middle;
  background: #E3F4F3; color: #0B6E6D; border: 1px solid #A7DEDC;   /* ADDENDUM 48 — chip Zoom retint teal (dulu indigo) */
}
.jadwal-list .list-zoom-chip .list-copy { color: #0B6E6D; }
.jadwal-list .list-zoom-chip .list-copy:hover { color: #075E5D; }

/* Baris pemisah/sub-header (sticky kiri agar label tetap terbaca saat scroll-x).
   Dua tingkat (ADDENDUM 30): Cabang+Tanggal (navy) → Trainer (biru muda). */
.jadwal-list .list-sep td {
  position: sticky; left: 0;
  font-weight: 700; font-size: 12px; letter-spacing: .01em;
  padding: 7px 12px; border-top: 1px solid var(--border);
}
/* Level 1 — Cabang + Tanggal (navy, senada header kolom). */
.jadwal-list .list-sep--cabang td { background: var(--th-bg); color: var(--th-fg); }
/* Level 2 — Trainer (biru muda + indentasi supaya terlihat bersarang). */
.jadwal-list .list-sep--trainer td {
  background: var(--subhead-bg); color: var(--subhead-fg);
  padding-left: 26px; font-size: 11.5px;
}
.jadwal-list tbody .list-sep td { white-space: nowrap; }
/* Baris pemisah tidak interaktif — jaga warnanya stabil saat baris di-hover. */
.jadwal-list tbody tr.list-sep--cabang:hover td  { background: var(--th-bg); }
.jadwal-list tbody tr.list-sep--trainer:hover td { background: var(--subhead-bg); }

/* ============================================================
   ADDENDUM-12 — Polish INPUT untuk HP (≤768px). Aditif & mobile-only:
   TIDAK mengubah tampilan desktop sama sekali. Tujuan:
     (1) cegah iOS Safari auto-zoom saat fokus kolom  → font ≥ 16px
     (2) target sentuh lebih besar untuk jempol       → tombol/kolom ≥ 40px
     (3) header 5-langkah wizard tetap muat & terbaca  → label langkah
         aktif saja + boleh scroll horizontal sbg pengaman
   Ditaruh setelah @media (max-width:768px) yang ada → override menang
   (spesifisitas sama, urutan lebih akhir), aturan lama tak tersentuh.
   ============================================================ */
@media (max-width: 768px) {
  /* (1) iOS men-zoom halaman kalau font kolom < 16px. Paksa 16px di HP. */
  .input, .select, .textarea,
  .filters .select, .filters .input { font-size: 16px; }

  /* (2) Target sentuh ≥ 40px (idealnya utk jempol). */
  .btn { height: 40px; padding: 0 16px; }
  .btn--sm { height: 34px; padding: 0 12px; }
  .filters .select, .filters .input { height: 40px; }

  /* (3) Header langkah wizard: hanya label langkah AKTIF yang tampil
     (dot lain tetap terlihat) + boleh geser horizontal bila perlu,
     supaya 5 langkah tak berdesakan/terpotong di layar sempit. */
  .wizard__steps { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .wizard__step { flex: 0 0 auto; }
  .wizard__step > span { display: none; }
  .wizard__step.is-active > span { display: inline; }

  /* (4) ADDENDUM 40 — Table "Jadwal Trial": kolom "Jam Trial" ada di kanan yang
     ter-scroll, jadi di HP jam tak terlihat. Tampilkan jam sebagai sub-baris di
     kolom Nama (sticky, selalu tampak) supaya WAKTU langsung terbaca. */
  .jadwal-list .list-name-jam {
    display: block; margin-top: 2px;
    font-size: 11.5px; font-weight: 600; white-space: nowrap;
    color: var(--muted);
  }
}
