/* =========================================================
   enhance.css v2 — Penyempurnaan tampilan (ADITIF)
   ERP Persemaian Tumbang Nusa - BPDAS Kahayan
   ---------------------------------------------------------
   Dimuat SETELAH app.css. Hapus <link> ini untuk rollback.
   ========================================================= */

/* ============================================================
   1) ATURAN CETAK (PRINT)
   ============================================================ */
@media print {
  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    height: auto !important;
    overflow: visible !important;
  }
  #sidebar, #sidebarToggle, .no-print, button, .swal2-container,
  nav .nav-action, [onclick*="export"], [onclick*="Export"] {
    display: none !important;
  }
  main, #mainContent, .main-content {
    margin: 0 !important; padding: 0 !important;
    width: 100% !important; overflow: visible !important;
  }
  .card, [class*="rounded-"], [class*="shadow"] {
    box-shadow: none !important; background: #fff !important;
    color: #000 !important; border: 1px solid #d1d5db !important;
  }
  table { width: 100% !important; border-collapse: collapse !important; page-break-inside: auto; }
  table th, table td {
    border: 1px solid #9ca3af !important; color: #000 !important;
    background: #fff !important; padding: 6px 8px !important;
  }
  table thead th {
    background: #f3f4f6 !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  tr, td, th { page-break-inside: avoid; }
  h1, h2, h3 { page-break-after: avoid; }
  a { color: #000 !important; text-decoration: none !important; }
}

/* ============================================================
   2) MODE TERANG — TEMA KEHUTANAN (hijau + orange)
   Override menyeluruh agar semua teks terbaca dan tema
   konsisten putih-hijau-orange.
   ============================================================ */

/* --- 2a) Fondasi warna: body, sidebar, header --- */
html:not(.dark) body {
  background: #f0f5ef !important;
  color: #1a2e1a !important;
}

html:not(.dark) main,
html:not(.dark) #slideshowView {
  background: linear-gradient(180deg, #f7faf6 0%, #edf3ec 100%) !important;
}

/* Sidebar: hijau tua profesional */
html:not(.dark) #sidebar {
  background: linear-gradient(180deg, #14532d 0%, #1a3a2a 100%) !important;
  border-color: #166534 !important;
}
html:not(.dark) #sidebar nav a {
  color: #d1fae5 !important;
}
html:not(.dark) #sidebar nav a:hover {
  background: rgba(34, 197, 94, 0.18) !important;
  color: #ffffff !important;
}
html:not(.dark) #sidebar nav a.bg-gray-800,
html:not(.dark) #sidebar nav a[style*="background"] {
  background: rgba(22, 163, 74, 0.3) !important;
  color: #ffffff !important;
}
html:not(.dark) #sidebar .text-gray-400,
html:not(.dark) #sidebar .text-gray-500,
html:not(.dark) #sidebar .text-gray-300 {
  color: #bbf7d0 !important;
}
html:not(.dark) #sidebar .border-b,
html:not(.dark) #sidebar .border-t {
  border-color: rgba(34, 197, 94, 0.25) !important;
}

/* --- 2b) Panel, section, kartu: latar putih bersih, border hijau halus --- */
html:not(.dark) .section-panel,
html:not(.dark) .input-shell {
  background: #ffffff !important;
  border-color: #c6e3c6 !important;
  box-shadow: 0 4px 16px rgba(20, 83, 45, 0.06) !important;
}

html:not(.dark) .progress-year-block,
html:not(.dark) .stock-year-block,
html:not(.dark) .custom-bibit-year-section {
  background: #ffffff !important;
  border-color: rgba(22, 163, 74, 0.3) !important;
  box-shadow: 0 6px 20px rgba(20, 83, 45, 0.07) !important;
}

html:not(.dark) .progress-year-secondary,
html:not(.dark) .stock-year-secondary {
  border-color: rgba(234, 88, 12, 0.4) !important;
}

/* --- 2c) TEKS — perbaikan kontras (akar masalah utama) --- */

/* Judul: hitam tegas */
html:not(.dark) .page-title-text,
html:not(.dark) h1, html:not(.dark) h2,
html:not(.dark) h3, html:not(.dark) h4,
html:not(.dark) .stock-year-title,
html:not(.dark) .stock-category-title,
html:not(.dark) .custom-bibit-year-header h5,
html:not(.dark) .custom-bibit-name,
html:not(.dark) .stock-card-title {
  color: #14532d !important;
  text-shadow: none !important;
}

/* Sub-judul & deskripsi: abu GELAP, bukan abu muda */
html:not(.dark) .stock-year-subtitle,
html:not(.dark) .stock-category-subtitle,
html:not(.dark) .custom-bibit-year-header p,
html:not(.dark) .custom-bibit-meta,
html:not(.dark) .stock-card-subtitle {
  color: #4a5e4a !important;
}

/* Override Tailwind text-gray-* yang hardcoded di JS tanpa dark: prefix */
html:not(.dark) .text-gray-100 { color: #1a2e1a !important; }
html:not(.dark) .text-gray-200 { color: #1f3520 !important; }
html:not(.dark) .text-gray-300 { color: #2d4a2d !important; }
html:not(.dark) .text-gray-400 { color: #3d5c3d !important; }
html:not(.dark) .text-gray-500 { color: #4a6b4a !important; }
html:not(.dark) .text-gray-600 { color: #3d5c3d !important; }

/* Override bg-gray-* yang hardcoded di JS */
html:not(.dark) .bg-gray-700 {
  background: #e8f0e8 !important;
  color: #1a2e1a !important;
}
html:not(.dark) .bg-gray-800 {
  background: #f0f5ef !important;
  color: #1a2e1a !important;
}
html:not(.dark) .bg-gray-800\/70 {
  background: rgba(240, 245, 239, 0.9) !important;
}
html:not(.dark) .bg-gray-900 {
  background: #f7faf6 !important;
  color: #1a2e1a !important;
}
html:not(.dark) .bg-gray-100 {
  background: #ecf5ec !important;
  color: #1a2e1a !important;
}

/* Teks putih (text-white) di mode terang harus gelap */
html:not(.dark) main .text-white, html:not(.dark) .swal2-popup .text-white {
  color: #1a2e1a !important;
}

/* Border abu → hijau halus */
html:not(.dark) .border-gray-600,
html:not(.dark) .border-gray-600\/60,
html:not(.dark) .border-gray-700 {
  border-color: #c6e3c6 !important;
}
html:not(.dark) .border-gray-100 {
  border-color: #d4e8d4 !important;
}

/* --- 2d) Badge / Pill aksen hijau & orange --- */
html:not(.dark) .bg-green-900\/30 {
  background: #dcfce7 !important;
  color: #14532d !important;
}
html:not(.dark) .text-green-300 { color: #15803d !important; }

html:not(.dark) .bg-emerald-900\/30 {
  background: #d1fae5 !important;
  color: #065f46 !important;
}
html:not(.dark) .text-emerald-300 { color: #047857 !important; }

html:not(.dark) .bg-cyan-900\/30 {
  background: #fff7ed !important;
  color: #9a3412 !important;
}
html:not(.dark) .text-cyan-300 { color: #c2410c !important; }

/* Pill ringkasan: kontras jelas */
html:not(.dark) .stock-category-pill,
html:not(.dark) .stock-year-pills span {
  box-shadow: 0 1px 3px rgba(20, 83, 45, 0.1) !important;
}

/* --- 2e) Kartu stok --- */
html:not(.dark) .stock-card {
  background: #ffffff !important;
  border-color: #c6e3c6 !important;
}
html:not(.dark) .stock-card:hover {
  border-color: #22c55e !important;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.12) !important;
}

html:not(.dark) .stock-tube-target {
  color: #ea580c !important;
  font-weight: 900;
}

html:not(.dark) .stock-tube-bottom-meta span {
  background: #ecf5ec !important;
  color: #3d5c3d !important;
}

html:not(.dark) .stock-available-number {
  color: #15803d !important;
}
html:not(.dark) .stock-available-label {
  color: #4a6b4a !important;
}

/* Kartu custom jenis bibit */
html:not(.dark) .custom-bibit-name-card {
  background: #ffffff !important;
  border-color: #c6e3c6 !important;
}
html:not(.dark) .custom-bibit-name-card:hover {
  background: #f0fdf4 !important;
  border-color: #22c55e !important;
}
html:not(.dark) .custom-bibit-edit-icon {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
  color: #15803d !important;
}

/* --- 2f) Kategori section --- */
html:not(.dark) .stock-category-section {
  background: #ffffff !important;
  border-color: #c6e3c6 !important;
}
html:not(.dark) .stock-category-total div {
  background: #f7faf6 !important;
  border-color: #d4e8d4 !important;
}
html:not(.dark) .stock-category-total span { color: #4a6b4a !important; }
html:not(.dark) .stock-category-total strong { color: #14532d !important; }

/* --- 2g) Tabel agar terbaca jelas --- */
html:not(.dark) table th {
  background: #14532d !important;
  color: #ffffff !important;
}
html:not(.dark) table td {
  color: #1a2e1a !important;
  border-color: #d4e8d4 !important;
}
html:not(.dark) table tr:nth-child(even) td {
  background: #f7faf6 !important;
}
html:not(.dark) table tr:hover td {
  background: #ecfdf5 !important;
}

/* --- 2h) Input & select: border dan teks jelas --- */
html:not(.dark) input,
html:not(.dark) select,
html:not(.dark) textarea {
  background: #ffffff !important;
  color: #1a2e1a !important;
  border-color: #c6e3c6 !important;
}
html:not(.dark) input:focus,
html:not(.dark) select:focus,
html:not(.dark) textarea:focus {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15) !important;
}
html:not(.dark) input::placeholder {
  color: #7a9a7a !important;
}

/* --- 2i) SweetAlert popup: ikut mode terang --- */
html:not(.dark) .swal2-popup {
  background: #ffffff !important;
  color: #1a2e1a !important;
  border: 1px solid #c6e3c6 !important;
}
html:not(.dark) .swal2-title {
  color: #14532d !important;
}
html:not(.dark) .swal2-html-container,
html:not(.dark) .swal2-html-container * {
  color: #2d4a2d !important;
}
html:not(.dark) .swal2-input,
html:not(.dark) .swal2-select {
  background: #f7faf6 !important;
  color: #1a2e1a !important;
  border-color: #c6e3c6 !important;
}
html:not(.dark) .swal2-input:focus,
html:not(.dark) .swal2-select:focus {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18) !important;
}
html:not(.dark) .swal2-validation-message {
  background: #fef2f2 !important;
  color: #991b1b !important;
}

/* Tombol popup: hijau utama, merah hapus */
html:not(.dark) .swal2-confirm {
  background: #16a34a !important;
  color: #ffffff !important;
}
html:not(.dark) .swal2-deny {
  background: #dc2626 !important;
  color: #ffffff !important;
}
html:not(.dark) .swal2-cancel {
  background: #f0f5ef !important;
  color: #14532d !important;
  border: 1px solid #c6e3c6 !important;
}

/* Override inline style background/color pada SweetAlert
   (JS menulis inline style, jadi perlu !important keras) */
html:not(.dark) div.swal2-popup[style*="background"] {
  background: #ffffff !important;
  color: #1a2e1a !important;
}

/* Label di dalam popup */
html:not(.dark) .swal2-popup label {
  color: #3d5c3d !important;
}
html:not(.dark) .swal2-popup .text-gray-300,
html:not(.dark) .swal2-popup .text-gray-400 {
  color: #4a6b4a !important;
}
html:not(.dark) .swal2-popup .bg-gray-800,
html:not(.dark) .swal2-popup .bg-gray-800\/70,
html:not(.dark) .swal2-popup .bg-gray-700 {
  background: #f0f5ef !important;
  color: #1a2e1a !important;
}
html:not(.dark) .swal2-popup .border-gray-600,
html:not(.dark) .swal2-popup .border-gray-600\/60 {
  border-color: #c6e3c6 !important;
}
html:not(.dark) .swal2-popup .text-white {
  color: #1a2e1a !important;
}

/* --- 2j) Aksen orange untuk elemen sekunder/tahun kedua --- */
html:not(.dark) .progress-year-secondary .progress-year-block,
html:not(.dark) .stock-year-secondary {
  border-left: 4px solid #ea580c !important;
}

/* Slideshow controls */
html:not(.dark) #slideshowControls button:not(.theme-toggle-btn) {
  background: #ffffff !important;
  color: #14532d !important;
  border: 1px solid #c6e3c6 !important;
}
html:not(.dark) #slideshowControls button:not(.theme-toggle-btn):hover {
  background: #f0fdf4 !important;
  border-color: #22c55e !important;
}

/* Footer */
html:not(.dark) footer {
  color: #4a6b4a !important;
}

/* --- 2k) Cincin stok (stock-ring) di mode terang --- */
html:not(.dark) .stock-ring {
  color: #1a2e1a;
}

/* --- 2l) Running text / topbar --- */
html:not(.dark) header {
  background: #14532d !important;
  color: #d1fae5 !important;
}
html:not(.dark) header .text-green-300,
html:not(.dark) header .text-emerald-300 {
  color: #86efac !important;
}


/* ============================================================
   3) PENYEMPURNAAN MOBILE
   ============================================================ */
@media (max-width: 640px) {
  table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  button, .btn, [onclick] { min-height: 40px; }
  h1 { font-size: 1.35rem !important; line-height: 1.3 !important; }
  h2 { font-size: 1.15rem !important; line-height: 1.3 !important; }
  .card, [class*="rounded-2xl"], [class*="rounded-xl"] { padding-left: 0.9rem; padding-right: 0.9rem; }
}


/* ============================================================
   4) PENYEMPURNAAN HALUS (semua tema)
   ============================================================ */
* { scrollbar-width: thin; }
*::-webkit-scrollbar { height: 8px; width: 8px; }
*::-webkit-scrollbar-thumb { background: rgba(120, 120, 120, 0.4); border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(120, 120, 120, 0.6); }

.card, .custom-bibit-name-card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.custom-bibit-name-card:hover { transform: translateY(-1px); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #22c55e; outline-offset: 2px;
}
.stat-number, [class*="text-3xl"], [class*="text-4xl"] {
  word-break: break-word; overflow-wrap: anywhere;
}


/* ============================================================
   5) KARTU STOK — gaya CINCIN (donut)
   ============================================================ */
.stock-ring-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stock-ring { display: flex; align-items: center; justify-content: center; color: #f9fafb; }
html:not(.dark) .stock-ring { color: #1a2e1a; }
.stock-ring svg { display: block; }


/* ============================================================
   6) FIX: Running text & teks logo sidebar di mode terang
   ============================================================ */

/* Running text di header hijau tua: teks harus putih/terang */
html:not(.dark) header .page-title-text {
  color: #ffffff !important;
}
html:not(.dark) header .text-gray-800 {
  color: #ffffff !important;
}
html:not(.dark) header .text-gray-500 {
  color: #d1fae5 !important;
}

/* Tombol hamburger di header hijau: harus terlihat */
html:not(.dark) header button {
  color: #d1fae5 !important;
}
html:not(.dark) header button:hover {
  color: #ffffff !important;
}

/* Teks logo sidebar "Persemaian Permanen / TUMBANG NUSA" */
html:not(.dark) #sidebar h1 {
  color: #86efac !important;
}
html:not(.dark) #sidebar .text-green-400 {
  color: #86efac !important;
}
html:not(.dark) #sidebar h1 span {
  color: #bbf7d0 !important;
}

/* Pastikan text-white di sidebar TETAP putih, bukan di-override gelap */
html:not(.dark) #sidebar,
html:not(.dark) #sidebar .text-white {
  color: #d1fae5 !important;
}


/* ============================================================
   7) DIGITAL SIGNAGE MODE
   Overlay untuk display TV/monitor di lobi publik.
   - Jam + tanggal di pojok kanan atas
   - Dots indikator slide di tengah bawah
   - Auto-hide kursor & kontrol saat idle
   - Transisi slide lebih halus & sinematik
   ============================================================ */

/* --- 7a) Overlay dasar: tersembunyi di mode normal,
       muncul saat .signage-mode (fullscreen) aktif --- */
.signage-overlay {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.signage-mode .signage-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* --- 7b) Jam digital di pojok kanan atas --- */
.signage-clock {
  /* POSISI: kanan bawah (bukan atas) */
  bottom: 5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0.75rem 1.1rem;
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 197, 94, 0.25);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  user-select: none;
}
.signage-clock-time {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(34, 197, 94, 0.35);
}
.signage-clock-date {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #d1fae5;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

/* Light mode: clock pakai latar putih transparan */
html:not(.dark) .signage-clock {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(22, 163, 74, 0.35);
  color: #14532d;
}
html:not(.dark) .signage-clock-time {
  color: #14532d;
  text-shadow: none;
}
html:not(.dark) .signage-clock-date {
  color: #3d5c3d;
}

/* --- 7c) Dots indikator di tengah bawah --- */
.signage-dots {
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 197, 94, 0.25);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.signage-mode .signage-dots {
  transform: translateX(-50%) translateY(0);
}

.signage-dot {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.18s ease;
}
.signage-dot:hover { transform: translateY(-2px); }
.signage-dot:focus-visible { outline: 2px solid #22c55e; outline-offset: 2px; border-radius: 0.4rem; }

.signage-dot-orb {
  display: block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.45);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.signage-dot-active .signage-dot-orb {
  background: #22c55e;
  border-color: #86efac;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.22), 0 0 16px rgba(34, 197, 94, 0.6);
  transform: scale(1.15);
}

.signage-dot-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s ease;
}
.signage-dot-active .signage-dot-label {
  color: #ffffff;
}

/* Light mode untuk dots */
html:not(.dark) .signage-dots {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(22, 163, 74, 0.35);
}
html:not(.dark) .signage-dot-orb {
  background: rgba(20, 83, 45, 0.12);
  border-color: rgba(20, 83, 45, 0.3);
}
html:not(.dark) .signage-dot-active .signage-dot-orb {
  background: #16a34a;
  border-color: #15803d;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.22), 0 0 16px rgba(22, 163, 74, 0.5);
}
html:not(.dark) .signage-dot-label {
  color: #4a6b4a;
}
html:not(.dark) .signage-dot-active .signage-dot-label {
  color: #14532d;
}

/* --- 7d) AUTO-HIDE saat idle 3 detik (kursor & kontrol slideshow) --- */
.signage-mode.signage-idle {
  cursor: none;
}
.signage-mode.signage-idle #slideshowControls {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.signage-mode #slideshowControls {
  transition: opacity 0.6s ease;
}

/* Tampilkan kontrol penuh saat hover (override default opacity-50) */
.signage-mode #slideshowControls {
  opacity: 0.8;
}
.signage-mode #slideshowControls:hover {
  opacity: 1;
}

/* --- 7e) Transisi slide lebih halus & sinematik --- */
.signage-mode #sliderContainer {
  transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1) !important;
}

/* --- 7f) Penyesuaian tampilan saat signage mode aktif --- */
.signage-mode #sidebar { display: none !important; }
.signage-mode #sidebarToggle { display: none !important; }

/* Beri ruang ekstra di atas (jam) dan bawah (dots) supaya tidak menutupi konten */
.signage-mode main {
  padding-top: 1rem;
  padding-bottom: 4.5rem;
}

/* Sembunyikan tombol-tombol non-esensial di mode signage */
.signage-mode #authButton,
.signage-mode .auth-only,
.signage-mode [data-signage-hide] {
  display: none !important;
}

/* --- 7g) Responsivitas overlay di layar besar (TV 4K/Full HD) --- */
@media (min-width: 1600px) {
  .signage-clock-time { font-size: 3rem; }
  .signage-clock-date { font-size: 1rem; }
  .signage-dot-orb { width: 1rem; height: 1rem; }
  .signage-dot-label { font-size: 0.78rem; }
}

/* --- 7h) Layar HP/kecil: dots & jam dipersempit --- */
@media (max-width: 640px) {
  .signage-clock {
  /* POSISI: kanan bawah (bukan atas) */ top: 0.6rem; right: 0.6rem; padding: 0.5rem 0.75rem; }
  .signage-clock-time { font-size: 1.6rem; }
  .signage-clock-date { font-size: 0.7rem; }
  .signage-dots { bottom: 0.6rem; padding: 0.4rem 0.7rem; gap: 0.4rem; }
  .signage-dot-label { display: none; }
}


/* ============================================================
   8) FORM INPUT — lebar lebih proporsional dengan ruang layar
   Override max-w-4xl (896px) agar form memanfaatkan layar.
   ============================================================ */

/* Perlebar area form dari max-w-4xl (896px) ke max-w-6xl (1152px) */
#managementView > .max-w-4xl {
  max-width: 72rem !important; /* ~1152px, proporsional di layar 1080p-1440p */
}

/* Pada layar sangat lebar (>1600px), lebih lebar lagi */
@media (min-width: 1600px) {
  #managementView > .max-w-4xl {
    max-width: 82rem !important;
  }
}

/* Section panel & input shell: isi penuh lebar yang tersedia */
#managementView .section-panel,
#managementView .input-shell {
  width: 100%;
}

/* Grid form fields: manfaatkan lebar (min 2 kolom di layar sedang) */
#managementView .grid {
  gap: 1rem;
}

/* Input fields: tinggi lebih nyaman, padding proporsional */
#managementView input,
#managementView select,
#managementView textarea {
  min-height: 2.75rem;
  font-size: 0.95rem;
}

/* Tab header: sedikit lebih besar agar proporsional dengan form lebar */
#mgmtTabs button {
  padding: 1rem 1.25rem !important;
  font-size: 0.95rem !important;
}

/* Custom tahapan/jenis list: grid 3 kolom di layar lebar */
@media (min-width: 1024px) {
  #managementView .grid-cols-2 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1600px) {
  #managementView .grid-cols-2 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
