@import url("icons.css?v=21");
/**
 * Supervisi Akademik SMK — Modern Tailwind CSS Foundation
 * Zero Bootstrap dependencies. Pure Tailwind CSS v4 design system.
 */

/* ══ CSS COLOR TOKENS & SYSTEM VARIABLES ══ */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface2: #f1f5f9;
  --text: #0f172a;
  --text2: #334155;
  --text3: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #7c3aed;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --radius: 1rem;
}

[data-theme="dark"],
html.dark {
  --bg: #0b1120;
  --surface: #1e293b;
  --surface2: #0f172a;
  --text: #f8fafc;
  --text2: #cbd5e1;
  --text3: #94a3b8;
  --border: #334155;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #1e3a5e;
  --accent: #a78bfa;
  --danger: #f87171;
  --success: #34d399;
  --warning: #fbbf24;
}

/* ══ BASE SMOOTHING ══ */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  max-width: 100vw;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* ══ CRITICAL ZERO-JS UTILITIES & CONTRAST SAFETY (HOSTING PROOF) ══ */
.text-white { color: #ffffff !important; }
.text-slate-100 { color: #f1f5f9 !important; }
.text-slate-200 { color: #e2e8f0 !important; }
.text-slate-300 { color: #cbd5e1 !important; }
.text-blue-100 { color: #dbeafe !important; }
.text-blue-200 { color: #bfdbfe !important; }
.text-blue-600 { color: #2563eb !important; }
.text-blue-900 { color: #1e3a8a !important; }
.bg-white { background-color: #ffffff !important; }
.bg-blue-600 { background-color: #2563eb !important; }
.bg-blue-700 { background-color: #1d4ed8 !important; }

/* ══ HERO LANDING PAGE SCOPED STYLES (ALWAYS HIGH CONTRAST) ══ */
.hero-gradient {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 50%, #6b21a8 100%) !important;
  color: #ffffff !important;
}
.hero-gradient h1,
.hero-gradient .hero-title {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.hero-gradient p,
.hero-gradient .hero-desc {
  color: #dbeafe !important;
}
.hero-gradient .hero-badge {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(8px);
}
.hero-gradient a.hero-btn-white {
  background-color: #ffffff !important;
  color: #1e3a8a !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3) !important;
}
.hero-gradient a.hero-btn-white:hover {
  background-color: #f8fafc !important;
}
.hero-gradient a.hero-btn-glass {
  background-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(8px);
}
.hero-gradient a.hero-btn-glass:hover {
  background-color: rgba(255, 255, 255, 0.26) !important;
}
.nav-btn-login {
  background-color: #2563eb !important;
  color: #ffffff !important;
}
.nav-btn-login span,
.nav-btn-login svg {
  color: #ffffff !important;
}

/* ══ SCROLLBAR REFINEMENT ══ */
.scrollbar-none::-webkit-scrollbar { display: none; }
.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
html.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ══ GLASSMORPHISM & UTILITY HELPERS ══ */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}
html.dark .glass {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(51, 65, 85, 0.8);
}

/* ══ LEGACY COMPATIBILITY HELPERS (COMPATIBLE WITH TAILWIND) ══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: 0.875rem;
  transition: all 0.15s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn:active {
  transform: scale(0.97);
}
.btn.secondary {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.secondary:hover {
  background-color: var(--surface2);
}
.btn.danger {
  background-color: #ef4444;
  color: #ffffff;
}
.btn.danger:hover {
  background-color: #dc2626;
}
.btn.small {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 0.625rem;
}
.btn.large {
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  border-radius: 1rem;
}

/* ══ DESKTOP VIEW SAFETY ══ */
@media (min-width: 1024px) {
  #hamburgerBtn,
  #sidebarCloseBtn,
  #bottomNav,
  #sidebarBackdrop {
    display: none !important;
  }
}

/* ══ FORM CONTROLS PADDING FIX ══ */
.pl-9, input.pl-9 { padding-left: 2.25rem !important; }
.pl-10, input.pl-10 { padding-left: 2.5rem !important; }
.pl-11, input.pl-11 { padding-left: 2.75rem !important; }
.pl-12, input.pl-12 { padding-left: 3rem !important; }
.pr-10, input.pr-10 { padding-right: 2.5rem !important; }
.pr-11, input.pr-11 { padding-right: 2.75rem !important; }
.pr-12, input.pr-12 { padding-right: 3rem !important; }

/* ══ TABLE WRAPPER FOR RESPONSIVE DATA ══ */
.table-wrap {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-color: var(--surface);
}

/* ══ PRINT RULES ══ */
@media print {
  .no-print { display: none !important; }
  .print-only { display: block !important; }
}

@media (min-width: 769px) {
  td.table-actions { white-space: nowrap; }
  td.table-actions .btn + .btn { margin-left: 4px; }
}
.theme-toggle { color: var(--text2); }
@media (max-width: 768px) {
  .sidebar-open .bottom-nav { visibility: hidden; pointer-events: none; }
}

/* v18: shared report layout; scoped so admin forms keep their existing styling. */
.report-card { max-width: 1120px; margin: 16px auto; padding: 28px; }
.report-options { margin-bottom: 16px; }
.report-card .report-letterhead { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 0 0 20px; padding: 0 0 16px; border-bottom: 3px double var(--text2); }
.report-card .letter-logo { width: 72px; height: 72px; max-width: 72px; max-height: 72px; flex: 0 0 72px; object-fit: contain; }
.report-card .letterhead-text { flex: 1; min-width: 0; text-align: center; }
.report-card .letterhead h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.3; text-transform: uppercase; }
.report-card .letterhead p { margin: 3px 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.report-card .report-title { margin: 16px 0 20px; text-align: center; font-size: 19px; line-height: 1.4; }
.report-card .report-title small { display: block; margin: 4px 0 0; font-size: 13px; font-weight: 400; }
.report-card h3 { margin: 20px 0 8px; font-size: 15px; break-after: avoid; }
.report-card p { line-height: 1.6; }
.report-card table { table-layout: auto; }
.report-card th, .report-card td { vertical-align: top; line-height: 1.5; }
.report-card .report-date { white-space: nowrap; }
.report-card .report-signatures { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 40px; margin-top: 32px; text-align: center; }
.report-card .signature-person { min-width: 0; break-inside: avoid; page-break-inside: avoid; }
.report-card .signature-person:last-child { grid-column: 2; }
.report-card .signature-caption { min-height: 48px; }
.report-card .signature-caption p { margin: 0; }
.report-card .signature-space { height: 84px; display: flex; align-items: center; justify-content: center; }
.report-card .signature-space .sign-img { display: block; width: auto; max-width: 180px; height: auto; max-height: 76px; margin: 0; object-fit: contain; }
.report-card .signature-name { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 768px) {
  .report-card { padding: 16px; }
  .report-card .letterhead h2 { font-size: 18px; }
  .report-card .report-letterhead { gap: 12px; }
  .report-card .letter-logo { width: 52px; height: 52px; max-width: 52px; max-height: 52px; flex-basis: 52px; }
  .report-card .report-signatures { grid-template-columns: 1fr; gap: 24px; }
  .report-card .signature-person:last-child { grid-column: auto; }
  .report-card .signature-caption { min-height: 44px; }
}
@page { size: A4 portrait; margin: 12mm 12mm 14mm; }
@media print {
  html, body, .app-shell, .main, .content { display: block !important; width: auto !important; min-height: 0 !important; height: auto !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; }
  :root, html[data-theme], html.dark { --surface: #fff; --surface2: #f5f5f5; --text: #111; --text2: #333; --text3: #555; --border: #ccc; --primary-light: #f5f5f5; }
  .report-card { display: block; width: 100%; max-width: none; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; color: #111 !important; background: #fff !important; font: 10pt/1.4 Arial,sans-serif; }
  .report-card .report-letterhead { display: flex !important; gap: 5mm; padding-bottom: 4mm; margin-bottom: 5mm; break-inside: avoid; page-break-inside: avoid; }
  .report-card .letter-logo { width: 20mm; height: 20mm; max-width: 20mm; max-height: 20mm; flex-basis: 20mm; }
  .report-card .letterhead h2 { font-size: 16pt; }
  .report-card .letterhead p { font-size: 9pt; }
  .report-card .report-title { font-size: 13pt; margin: 4mm 0 5mm; break-after: avoid; }
  .report-card .report-title small { font-size: 9pt; }
  .report-card h3 { font-size: 10pt; margin: 4mm 0 2mm; break-after: avoid; page-break-after: avoid; }
  .report-card p { margin: 1mm 0 3mm; }
  .report-card .table-wrap { display: block; overflow: visible !important; width: 100%; max-width: none; border: 0; border-radius: 0; }
  .report-card table, .report-card table.mobile-cards { display: table !important; width: 100% !important; min-width: 0 !important; table-layout: fixed; font-size: 9pt; background: #fff !important; border-collapse: collapse; }
  .report-card thead, .report-card .mobile-cards thead { display: table-header-group !important; }
  .report-card tbody, .report-card .mobile-cards tbody { display: table-row-group !important; }
  .report-card tr, .report-card .mobile-cards tbody tr { display: table-row !important; break-inside: avoid; page-break-inside: avoid; border: 0; border-radius: 0; box-shadow: none; }
  .report-card th, .report-card td, .report-card .mobile-cards tbody td { display: table-cell !important; padding: 2mm !important; border: 1px solid #ccc !important; font-size: 9pt !important; color: #111 !important; line-height: 1.4; overflow-wrap: anywhere; }
  .report-card th { text-transform: none; letter-spacing: 0; background: #f5f5f5 !important; }
  .report-card td::before { display: none !important; }
  .report-card table.compact th { width: 38mm; }
  .report-card .report-instrument-table th:nth-child(1) { width: 23%; }
  .report-card .report-instrument-table th:nth-child(2) { width: 43%; }
  .report-card .report-instrument-table th:nth-child(3), .report-card .report-instrument-table th:nth-child(4) { width: 8%; }
  .report-card .report-instrument-table th:nth-child(5) { width: 18%; }
  .report-card .report-summary-table { font-size: 9pt; }
  .report-card .report-summary-table th, .report-card .report-summary-table td { font-size: 9pt !important; padding: 1.5mm !important; }
  .report-summary-table th:nth-child(1) { width: 5%; }
  .report-summary-table th:nth-child(2) { width: 14%; }
  .report-summary-table th:nth-child(3) { width: 10%; }
  .report-summary-table th:nth-child(4) { width: 20%; }
  .report-summary-table th:nth-child(5) { width: 15%; }
  .report-summary-table th:nth-child(6) { width: 12%; }
  .report-summary-table th:nth-child(7) { width: 6%; }
  .report-summary-table th:nth-child(8) { width: 18%; }
  .report-card .report-signatures { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 7mm 10mm; margin-top: 8mm; }
  .report-card .signature-person:last-child { grid-column: 2; }
  .report-card .signature-caption { min-height: 12mm; }
  .report-card .signature-caption p { margin: 0; }
  .report-card .signature-space { height: 22mm; }
  .report-card .signature-space .sign-img { max-width: 45mm; max-height: 20mm; }
  .report-card .signature-name { font-size: 9pt; margin: 0; }
  .report-card .no-print { display: none !important; }
}

@media print {
  .report-card .no-print,
  .report-card .mobile-cards tbody td.no-print,
  .report-card .mobile-cards thead th.no-print { display: none !important; }
  .report-recap-table th:nth-child(1) { width: 14%; }
  .report-recap-table th:nth-child(2) { width: 17%; }
  .report-recap-table th:nth-child(3) { width: 20%; }
  .report-recap-table th:nth-child(4) { width: 9%; }
  .report-recap-table th:nth-child(5) { width: 12%; }
  .report-recap-table th:nth-child(6) { width: 28%; }
}

@media print {
  .report-card .signature-group-compact { break-inside: avoid; page-break-inside: avoid; }
}

/* v22: configurable three-column letterhead with independent left/right logos. */
.report-card .report-letterhead {
  display: grid; grid-template-columns: 106px minmax(0,1fr) 106px;
  align-items: center; gap: 16px; border-bottom: 3px solid var(--text2);
  padding-bottom: 12px; margin-bottom: 20px; font-family: Arial,sans-serif;
}
.report-card .letterhead-logo-slot { display: flex; align-items: center; justify-content: center; min-width: 0; }
.report-card .letterhead-logo-slot .letter-logo { width: 106px; height: 140px; max-width: 100%; max-height: 140px; flex: none; object-fit: contain; }
.report-card .letterhead-text { min-width: 0; text-align: center; }
.report-card .letterhead p { margin: 0; }
.report-card .letterhead .letterhead-government { font-size: 20px; font-weight: 400; line-height: 1.25; text-transform: uppercase; }
.report-card .letterhead .letterhead-heading, .report-card .letterhead .letterhead-school-name { font-size: 22px; font-weight: 700; line-height: 1.2; text-transform: uppercase; margin: 0; }
.report-card .letterhead .letterhead-contact { font-size: 14px; line-height: 1.3; margin-top: 2px; overflow-wrap: anywhere; }
.report-card .letterhead .letterhead-school-name + .letterhead-contact { margin-top: 6px; }
.report-card .letterhead-email { text-decoration: underline; }
.report-card.report-header-preview { margin: 16px 0; padding: 0; border: 0; box-shadow: none; background: none; }
.report-card.report-header-preview .report-letterhead { grid-template-columns: 68px minmax(0,1fr) 68px; gap: 10px; }
.report-card.report-header-preview .letterhead-logo-slot .letter-logo { width: 68px; height: 106px; max-height: 106px; }
.report-card.report-header-preview .letterhead-government { font-size: 14px; }
.report-card.report-header-preview .letterhead-heading, .report-card.report-header-preview .letterhead-school-name { font-size: 17px; }
@media (max-width:768px) {
  .report-card .report-letterhead, .report-card.report-header-preview .report-letterhead { grid-template-columns: 44px minmax(0,1fr) 44px; gap: 8px; }
  .report-card .letterhead-logo-slot .letter-logo, .report-card.report-header-preview .letterhead-logo-slot .letter-logo { width: 44px; height: 72px; max-height: 72px; }
  .report-card .letterhead .letterhead-government { font-size: 14px; }
  .report-card .letterhead .letterhead-heading, .report-card .letterhead .letterhead-school-name, .report-card.report-header-preview .letterhead-heading, .report-card.report-header-preview .letterhead-school-name { font-size: 16px; }
}
@media print {
  /* 1. Aturan Kertas Resmi A4 */
  @page {
    size: A4 portrait;
    margin: 15mm 15mm 15mm 15mm;
  }

  /* 2. Sembunyikan SEMUA elemen navigasi, menu, sidebar, header, tombol, dan toolbar web */
  #mainSidebar,
  #sidebar,
  #sidebarBackdrop,
  header,
  #bottomNav,
  #gridMenuModal,
  .no-print,
  .print-hidden,
  nav,
  aside,
  button,
  .btn,
  form,
  input,
  select,
  .action-bar,
  .print-options,
  .toast,
  .alert,
  footer,
  #themeToggle,
  .theme-icon,
  [role="dialog"],
  #hamburgerBtn,
  #sidebarCloseBtn,
  #bottomNavMenu {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
  }

  /* 3. Reset background dan typography menjadi dokumen kedinasan resmi */
  html, body {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    font-family: 'Times New Roman', Times, Georgia, serif !important;
    font-size: 10pt !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* 4. Reset wrapper flex/margin layout web */
  .min-h-screen,
  .lg\:pl-72,
  .lg\:ml-64,
  main,
  .flex-1,
  .max-w-7xl,
  body > div {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
  }

  /* 5. Lembar Dokumen Resmi */
  .report-card,
  .document-sheet {
    display: block !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 9.5pt !important;
    color: #000000 !important;
  }

  /* 6. Kop Surat Kedinasan Garis Ganda Resmi */
  .report-card .report-letterhead,
  .report-letterhead,
  .letterhead {
    display: grid !important;
    grid-template-columns: 24mm minmax(0,1fr) 24mm !important;
    gap: 4mm !important;
    border-bottom: 3px double #000000 !important;
    padding-bottom: 3.5mm !important;
    margin-bottom: 5mm !important;
    text-align: center !important;
  }
  .report-letterhead.letterhead-no-logos {
    grid-template-columns: 1fr !important;
  }
  .report-card .letterhead-logo-slot .letter-logo,
  .letter-logo {
    width: 24mm !important;
    height: 32mm !important;
    max-width: 24mm !important;
    max-height: 32mm !important;
    flex: none !important;
    object-fit: contain !important;
  }
  .report-card .letterhead .letterhead-government {
    font-size: 11pt !important;
    line-height: 1.2 !important;
    color: #000000 !important;
  }
  .report-card .letterhead .letterhead-heading,
  .report-card .letterhead .letterhead-school-name {
    font-size: 13pt !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #000000 !important;
    margin: 0 !important;
  }
  .report-card .letterhead .letterhead-contact {
    font-size: 8.5pt !important;
    line-height: 1.25 !important;
    color: #000000 !important;
    margin-top: 1mm !important;
  }

  /* 7. Tabel Dokumen Kedinasan (Garis 1px Hitam Tegas) */
  table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 8pt !important;
    font-size: 9pt !important;
    color: #000000 !important;
    page-break-inside: auto !important;
  }
  table th, table td {
    border: 1px solid #000000 !important;
    color: #000000 !important;
    padding: 3.5pt 5pt !important;
    background: transparent !important;
    vertical-align: middle !important;
    line-height: 1.35 !important;
  }
  table thead th, table th {
    background-color: #f2f2f2 !important;
    font-weight: bold !important;
    text-align: center !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* 8. Hilangkan Badge Web - Tampilkan Sebagai Teks Dokumen Formal */
  .badge,
  span[class*="rounded-full"],
  span[class*="rounded-md"] {
    background: transparent !important;
    color: #000000 !important;
    border: none !important;
    padding: 0 !important;
    font-weight: bold !important;
    display: inline !important;
  }

  /* 9. Elemen Avoid Page Break & Tanda Tangan */
  .page-break-inside-avoid,
  .signature-grid,
  .report-signatures,
  tr,
  .avoid-break {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .sign-img {
    max-height: 52px !important;
    object-fit: contain !important;
  }
}

.report-card .report-letterhead.letterhead-no-logos { grid-template-columns: minmax(0,1fr) !important; }
.report-card .letterhead-no-logos .letterhead-logo-slot { display: none; }
.settings-preview-card { align-self: start; }

/* ═════════════════════════════════════════════════════════════════════
   SEARCHABLE DROPDOWN COMPONENT (Select dengan Pencarian Interaktif)
   ═════════════════════════════════════════════════════════════════════ */
.custom-searchable-select {
  position: relative;
  width: 100%;
}
.custom-searchable-select.is-open {
  z-index: 50;
}

/* Sembunyikan select asli namun tetap ada untuk form submit & validasi */
.custom-searchable-select select.ss-native-select {
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 0 !important;
  opacity: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  pointer-events: none !important;
}

/* Tombol Pemicu / Trigger */
.ss-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.875rem;
  border-radius: 1rem; /* rounded-2xl */
  border: 1px solid var(--border, #e2e8f0);
  background: var(--surface2, #f8fafc);
  color: var(--text, #0f172a);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  min-height: 46px;
}
[data-theme="dark"] .ss-trigger,
html.dark .ss-trigger {
  border-color: #334155;
  background: rgba(30, 41, 59, 0.7);
  color: #f1f5f9;
}
.ss-trigger:hover {
  border-color: #94a3b8;
  background: #ffffff;
}
[data-theme="dark"] .ss-trigger:hover,
html.dark .ss-trigger:hover {
  border-color: #475569;
  background: rgba(30, 41, 59, 0.9);
}
.ss-trigger:focus,
.custom-searchable-select.is-open .ss-trigger {
  outline: none;
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #ffffff;
}
[data-theme="dark"] .ss-trigger:focus,
[data-theme="dark"] .custom-searchable-select.is-open .ss-trigger,
html.dark .ss-trigger:focus,
html.dark .custom-searchable-select.is-open .ss-trigger {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: #1e293b;
}

/* Validasi: Wajib dipilih jika required */
.ss-trigger.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

/* Label & Ikon pada Trigger */
.ss-label-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  flex: 1;
}
.ss-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}
[data-theme="dark"] .ss-icon-badge,
html.dark .ss-icon-badge {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
}
.ss-selected-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ss-placeholder {
  color: #94a3b8;
  font-weight: 400;
}
[data-theme="dark"] .ss-placeholder,
html.dark .ss-placeholder {
  color: #64748b;
}

/* Tombol Reset (X) & Panah Chevron */
.ss-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.ss-clear-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ss-clear-btn:hover {
  background: #e2e8f0;
  color: #475569;
}
[data-theme="dark"] .ss-clear-btn:hover,
html.dark .ss-clear-btn:hover {
  background: #334155;
  color: #f1f5f9;
}
.custom-searchable-select.has-value .ss-clear-btn {
  display: flex;
}
.ss-arrow {
  width: 1rem;
  height: 1rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}
.custom-searchable-select.is-open .ss-arrow {
  transform: rotate(180deg);
  color: #2563eb;
}
[data-theme="dark"] .custom-searchable-select.is-open .ss-arrow,
html.dark .custom-searchable-select.is-open .ss-arrow {
  color: #60a5fa;
}

/* Menu Dropdown Popup */
.ss-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: ssFadeDown 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-searchable-select.is-open .ss-dropdown {
  display: flex;
}
.ss-dropdown.ss-open-above {
  top: auto;
  bottom: calc(100% + 6px);
  animation: ssFadeUp 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes ssFadeDown {
  from { opacity: 0; transform: translateY(-6px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ssFadeUp {
  from { opacity: 0; transform: translateY(6px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
[data-theme="dark"] .ss-dropdown,
html.dark .ss-dropdown {
  background: #0f172a;
  border-color: #334155;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

/* Header Pencarian di Dalam Dropdown */
.ss-search-wrap {
  padding: 0.625rem;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}
[data-theme="dark"] .ss-search-wrap,
html.dark .ss-search-wrap {
  border-bottom-color: #1e293b;
  background: #111827;
}
.ss-search-input-box {
  position: relative;
  display: flex;
  align-items: center;
}
.ss-search-icon {
  position: absolute;
  left: 0.625rem;
  width: 0.875rem;
  height: 0.875rem;
  color: #94a3b8;
  pointer-events: none;
}
.ss-search-input {
  width: 100%;
  padding: 0.5rem 1.875rem 0.5rem 2rem;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  transition: all 0.15s ease;
}
[data-theme="dark"] .ss-search-input,
html.dark .ss-search-input {
  border-color: #334155;
  background: #1e293b;
  color: #f8fafc;
}
.ss-search-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
[data-theme="dark"] .ss-search-input:focus,
html.dark .ss-search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}
.ss-search-clear {
  position: absolute;
  right: 0.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 9999px;
  color: #94a3b8;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}
.ss-search-clear:hover {
  color: #475569;
}
.ss-search-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.375rem;
  padding: 0 0.25rem;
  font-size: 0.6875rem;
  color: #64748b;
  font-weight: 500;
}
[data-theme="dark"] .ss-search-info,
html.dark .ss-search-info {
  color: #94a3b8;
}

/* List Opsi */
.ss-options-list {
  max-height: 250px;
  overflow-y: auto;
  padding: 0.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.ss-options-list::-webkit-scrollbar {
  width: 6px;
}
.ss-options-list::-webkit-scrollbar-track {
  background: transparent;
}
.ss-options-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
[data-theme="dark"] .ss-options-list::-webkit-scrollbar-thumb,
html.dark .ss-options-list::-webkit-scrollbar-thumb {
  background: #334155;
}

.ss-option {
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: background-color 0.1s, color 0.1s;
  user-select: none;
}
[data-theme="dark"] .ss-option,
html.dark .ss-option {
  color: #cbd5e1;
}
.ss-option:hover,
.ss-option.is-highlighted {
  background-color: #f1f5f9;
  color: #0f172a;
}
[data-theme="dark"] .ss-option:hover,
[data-theme="dark"] .ss-option.is-highlighted,
html.dark .ss-option:hover,
html.dark .ss-option.is-highlighted {
  background-color: #1e293b;
  color: #f8fafc;
}
.ss-option.is-selected {
  background-color: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}
[data-theme="dark"] .ss-option.is-selected,
html.dark .ss-option.is-selected {
  background-color: rgba(30, 58, 94, 0.6);
  color: #60a5fa;
}
.ss-option-check {
  display: none;
  width: 0.875rem;
  height: 0.875rem;
  color: #2563eb;
  flex-shrink: 0;
}
[data-theme="dark"] .ss-option-check,
html.dark .ss-option-check {
  color: #60a5fa;
}
.ss-option.is-selected .ss-option-check {
  display: inline-block;
}
.ss-option mark {
  background-color: #fef08a;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
  font-weight: 700;
}
[data-theme="dark"] .ss-option mark,
html.dark .ss-option mark {
  background-color: rgba(161, 98, 7, 0.5);
  color: #fef08a;
}

/* Empty State / Hasil Kosong */
.ss-empty {
  display: none;
  padding: 1.75rem 1rem;
  text-align: center;
}
.ss-empty-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto 0.5rem;
  border-radius: 0.75rem;
  background: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-theme="dark"] .ss-empty-icon,
html.dark .ss-empty-icon {
  background: #1e293b;
  color: #64748b;
}
.ss-empty-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #475569;
}
[data-theme="dark"] .ss-empty-title,
html.dark .ss-empty-title {
  color: #cbd5e1;
}
.ss-empty-desc {
  font-size: 0.6875rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

