/* ==========================================================================
   SIM-LEMBAGA PCNU KOTA TANGERANG SELATAN (2026–2031)
   Design System: Authentic Neumorphism (Soft UI) & Administrative Dignity
   Palette:
     * Latar Belakang Utama (Background Luar): #ECF0F3 (Abu-abu muda soft khas desain neumorphism)
     * Kartu Form (Card Background): #ECF0F3
     * Warna Bayangan Terang (Light Shadow/Highlight): #FFFFFF
     * Warna Bayangan Gelap (Dark Shadow): #D1D9E6 atau #BBE1EF (tergantung tingkat kecerahan)
   Accents: Official Indonesian NU Green (#0a5c36) & Tangsel Heritage Amber (#b45309)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;1,6..72,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --neu-bg: #ECF0F3;
  --neu-card-bg: #ECF0F3;
  --neu-shadow-dark: #D1D9E6;
  --neu-shadow-dark-soft: #BBE1EF;
  --neu-shadow-light: rgba(255, 255, 255, 0.35); /* Hilangkan sinar putih berlebih */
  --nu-primary: #0a5c36;
  --nu-primary-hover: #07472a;
  --nu-gold: #b45309;
  --text-main: #1e293b;
  --text-muted: #526071;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--neu-bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-editorial {
  font-family: 'Newsreader', Georgia, serif;
}

.font-mono-code {
  font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   NEUMORPHIC CORE COMPONENTS (SOFT UI ELEVATIONS & INSETS)
   ========================================================================== */

/* Raised Surface / Card Form */
.neu-flat {
  background: var(--neu-card-bg);
  border-radius: 14px;
  box-shadow: 5px 5px 12px var(--neu-shadow-dark), -3px -3px 8px var(--neu-shadow-light);
  border: 1px solid rgba(209, 217, 230, 0.65);
}

.neu-flat-sm {
  background: var(--neu-card-bg);
  border-radius: 10px;
  box-shadow: 3px 3px 7px var(--neu-shadow-dark), -2px -2px 5px var(--neu-shadow-light);
  border: 1px solid rgba(209, 217, 230, 0.55);
}

.neu-flat-lg {
  background: var(--neu-card-bg);
  border-radius: 20px;
  box-shadow: 8px 8px 18px var(--neu-shadow-dark), -4px -4px 10px var(--neu-shadow-light);
  border: 1px solid rgba(209, 217, 230, 0.7);
}

/* Softer / Ambient Elevation Card with #BBE1EF tint */
.neu-flat-soft {
  background: var(--neu-card-bg);
  border-radius: 14px;
  box-shadow: 6px 6px 14px var(--neu-shadow-dark-soft), -6px -6px 14px var(--neu-shadow-light);
  border: 1px solid rgba(209, 217, 230, 0.65);
}

/* Inset / Depressed Surface (Inputs, wells, recesses) */
.neu-inset {
  background: var(--neu-bg);
  border-radius: 12px;
  box-shadow: inset 4px 4px 8px var(--neu-shadow-dark), inset -4px -4px 8px var(--neu-shadow-light);
  border: 1px solid rgba(209, 217, 230, 0.45);
}

.neu-inset-sm {
  background: var(--neu-bg);
  border-radius: 8px;
  box-shadow: inset 2px 2px 5px var(--neu-shadow-dark), inset -2px -2px 5px var(--neu-shadow-light);
  border: 1px solid rgba(209, 217, 230, 0.4);
}

/* Circular Neumorphic Elements */
.neu-circle {
  border-radius: 50%;
  background: var(--neu-card-bg);
  box-shadow: 4px 4px 9px var(--neu-shadow-dark), -4px -4px 9px var(--neu-shadow-light);
  border: 1px solid rgba(209, 217, 230, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.neu-circle-inset {
  border-radius: 50%;
  background: var(--neu-bg);
  box-shadow: inset 3px 3px 6px var(--neu-shadow-dark), inset -3px -3px 6px var(--neu-shadow-light);
  border: 1px solid rgba(209, 217, 230, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Neumorphic Buttons */
.neu-btn {
  background: var(--neu-card-bg);
  color: var(--text-main);
  border-radius: 10px;
  box-shadow: 4px 4px 9px var(--neu-shadow-dark), -4px -4px 9px var(--neu-shadow-light);
  border: 1px solid rgba(209, 217, 230, 0.6);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  cursor: pointer;
}

.neu-btn:hover {
  box-shadow: 2px 2px 6px var(--neu-shadow-dark), -2px -2px 6px var(--neu-shadow-light);
  transform: translateY(-1px);
}

.neu-btn:active,
.neu-btn.active {
  box-shadow: inset 3px 3px 6px var(--neu-shadow-dark), inset -3px -3px 6px var(--neu-shadow-light);
  transform: translateY(1px);
}

/* Primary Green Action Button */
.neu-btn-primary {
  background: linear-gradient(135deg, #0a5c36, #07472a);
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 4px 4px 10px rgba(10, 92, 54, 0.35), -2px -2px 6px var(--neu-shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.neu-btn-primary:hover {
  background: linear-gradient(135deg, #07472a, #04341e);
  box-shadow: 2px 2px 6px rgba(10, 92, 54, 0.4), -1px -1px 4px var(--neu-shadow-light);
  transform: translateY(-1px);
}

.neu-btn-primary:active {
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3);
  transform: translateY(1px);
}

/* Clean, Modern Input & Select without harsh white glare */
.neu-input {
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  border: 1.5px solid #CBD5E1;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  padding: 8px 12px;
}

.neu-input:focus {
  border-color: var(--nu-primary);
  box-shadow: 0 0 0 3px rgba(10, 92, 54, 0.15);
  background: #FFFFFF;
}

.neu-input:disabled {
  background: #F8FAFC;
  color: #475569;
  border-color: #E2E8F0;
  cursor: not-allowed;
}

/* Dedicated Clean Modal Form Controls */
.modal-input-clean {
  background: #FFFFFF !important;
  border-radius: 8px !important;
  border: 1.5px solid #CBD5E1 !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
  color: #0F172A !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 8.5px 12px !important;
  outline: none !important;
  transition: all 0.15s ease !important;
  width: 100% !important;
}

.modal-input-clean:focus {
  border-color: #0a5c36 !important;
  box-shadow: 0 0 0 3px rgba(10, 92, 54, 0.15) !important;
  background: #FFFFFF !important;
}

.modal-input-clean::placeholder {
  color: #94A3B8 !important;
  font-weight: 400 !important;
}

.modal-input-clean:disabled {
  background: #F8FAFC !important;
  color: #334155 !important;
  border-color: #CBD5E1 !important;
  cursor: not-allowed !important;
  font-weight: 600 !important;
}

/* Neumorphic Badges & Tags */
.neu-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--neu-card-bg);
  box-shadow: 2px 2px 5px var(--neu-shadow-dark), -2px -2px 5px var(--neu-shadow-light);
  border: 1px solid rgba(209, 217, 230, 0.55);
  font-size: 11px;
}

/* Progress Track */
.neu-progress-track {
  background: var(--neu-bg);
  border-radius: 9999px;
  box-shadow: inset 2px 2px 4px var(--neu-shadow-dark), inset -2px -2px 4px var(--neu-shadow-light);
  overflow: hidden;
}

/* Neumorphic Table */
.neu-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-size: 12px;
}

.neu-table thead th {
  padding: 8px 12px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(209, 217, 230, 0.65);
}

.neu-table tbody tr {
  background: var(--neu-card-bg);
  transition: all 0.15s ease;
}

.neu-table tbody tr td {
  padding: 10px 12px;
  vertical-align: middle;
  border-top: 1px solid rgba(209, 217, 230, 0.5);
  border-bottom: 1px solid rgba(209, 217, 230, 0.5);
}

.neu-table tbody tr td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  border-left: 1px solid rgba(209, 217, 230, 0.5);
}

.neu-table tbody tr td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-right: 1px solid rgba(209, 217, 230, 0.5);
}

.neu-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 2px 2px 7px rgba(209, 217, 230, 0.6);
}

/* Neumorphic Avatar Frame */
.neu-avatar-frame {
  position: relative;
  border-radius: 50%;
  padding: 3px;
  background: var(--neu-card-bg);
  box-shadow: 3px 3px 8px var(--neu-shadow-dark), -2px -2px 6px var(--neu-shadow-light);
  border: 1.5px solid rgba(209, 217, 230, 0.75);
  flex-shrink: 0;
}

.neu-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--neu-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--neu-shadow-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b5c2d6;
}

/* Print Rules */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
}

/* ========================================================= */
/* ANIMASI 2 RODA GIGI BERPUTAR (NEUMORPHIC GEARS)          */
/* ========================================================= */
@keyframes spinClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.gear-spin-cw {
  animation: spinClockwise 3.6s linear infinite;
  transform-origin: 88px 85px;
}

.gear-spin-ccw {
  animation: spinCounterClockwise 2.4s linear infinite;
  transform-origin: 150px 58px;
}

.neu-gear-card {
  background: var(--neu-card-bg);
  box-shadow: inset 4px 4px 10px var(--neu-shadow-dark), inset -4px -4px 10px var(--neu-shadow-light);
  border-radius: 16px;
  border: 1px solid rgba(209, 217, 230, 0.55);
}

/* Digital ID Card Styling */
.neu-id-card {
  background: var(--neu-card-bg);
  box-shadow: 8px 8px 20px var(--neu-shadow-dark), -8px -8px 20px var(--neu-shadow-light);
  border-radius: 20px;
  border: 1px solid rgba(209, 217, 230, 0.7);
  position: relative;
  overflow: hidden;
}


/* Neumorphic Embossed Badge & Text (PCNU Tangerang Selatan) */
.neu-emboss-badge {
  background: var(--neu-bg);
  border-radius: 9999px;
  box-shadow: inset 2.5px 2.5px 5px var(--neu-shadow-dark), inset -2.5px -2.5px 5px var(--neu-shadow-light);
  border: 1px solid rgba(209, 217, 230, 0.55);
  display: inline-flex;
  align-items: center;
  padding: 5px 16px;
}

.neu-emboss-text {
  color: var(--nu-primary);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.95), -1px -1px 0px rgba(209, 217, 230, 0.85);
}


/* ========================================================= */
/* ANIMASI POPUP VERIFIKASI RADAR & SEAL SCANNER PCNU       */
/* ========================================================= */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes radarPulse {
  0% { transform: scale(0.75); opacity: 0.9; }
  50% { transform: scale(1.35); opacity: 0.25; }
  100% { transform: scale(1.65); opacity: 0; }
}

@keyframes laserScan {
  0%, 100% { top: 6%; opacity: 0.2; }
  50% { top: 88%; opacity: 0.95; }
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

.animate-spin-slow {
  animation: spinSlow 6s linear infinite;
}

.animate-spin-reverse {
  animation: spinReverse 4s linear infinite;
}

.animate-radar-pulse {
  animation: radarPulse 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.animate-laser-scan {
  animation: laserScan 2s ease-in-out infinite;
}

.animate-pop-in {
  animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


/* ========================================================
   ANDROID VIEW & SIMULATOR STYLES
   ======================================================== */

@media (max-width: 768px) {
  body {
    padding-bottom: 74px;
  }
}

/* Android Device Mockup Shell */
.android-device-wrapper {
  perspective: 1200px;
}

.android-device-shell {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 46px;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 3px #334155,
    inset 0 0 0 5px #0f172a;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Side physical buttons */
.android-device-shell::before {
  content: '';
  position: absolute;
  top: 110px;
  left: -5px;
  width: 4px;
  height: 80px;
  background: #475569;
  border-radius: 3px 0 0 3px;
  box-shadow: -1px 0 2px rgba(0,0,0,0.4);
}

.android-device-shell::after {
  content: '';
  position: absolute;
  top: 140px;
  right: -5px;
  width: 4px;
  height: 50px;
  background: #475569;
  border-radius: 0 3px 3px 0;
  box-shadow: 1px 0 2px rgba(0,0,0,0.4);
}

.android-screen-container {
  border-radius: 38px;
  overflow: hidden;
  background: #ECF0F3;
  display: flex;
  flex-direction: column;
}

/* Android Punch Hole Camera */
.android-punch-hole {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #020617;
  border: 1.5px solid #1e293b;
  position: relative;
  z-index: 30;
}

/* Android Bottom Gesture Pill */
.android-gesture-pill {
  width: 120px;
  height: 4px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  margin: 6px auto;
  transition: background 0.2s;
}

.android-nav-item.active {
  color: #0a5c36;
}

.android-nav-item.active span {
  font-weight: 700;
}


/* ==========================================================================
   MODAL ANTI-GLARE: HILANGKAN SINAR PUTIH / HALO CAHAYA PUTIH TEBAL
   ========================================================================== */
/* Container Modal: Hilangkan bayangan putih luar pada latar belakang gelap */
.fixed.z-50 > div,
#modal-pengurus-detail > div,
#modal-lembaga-detail > div,
#modal-add-proker > div,
#modal-ktp-viewer > div,
#edaran-gear-loading > div,
.fixed.z-50 .neu-flat.max-w-3xl,
.fixed.z-50 .neu-flat.max-w-4xl {
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(209, 217, 230, 0.7) !important;
  border: 1px solid rgba(209, 217, 230, 0.8) !important;
}

/* Kartu-kartu di dalam modal: hilangkan pendaran sinar putih tebal */
#modal-pengurus-detail .neu-flat,
#modal-lembaga-detail .neu-flat,
#modal-add-proker .neu-flat,
.fixed.z-50 .neu-flat {
  box-shadow: 2px 2px 6px rgba(180, 195, 215, 0.35) !important;
  border: 1px solid rgba(209, 217, 230, 0.65) !important;
}

/* Kolom data & kotak inset di dalam modal: lembut dan bersih */
#modal-pengurus-detail .neu-inset,
#modal-pengurus-detail .neu-inset-sm,
#modal-lembaga-detail .neu-inset,
#modal-lembaga-detail .neu-inset-sm,
.fixed.z-50 .neu-inset,
.fixed.z-50 .neu-inset-sm {
  box-shadow: inset 1px 1px 3px rgba(180, 195, 215, 0.4) !important;
  border: 1px solid rgba(209, 217, 230, 0.55) !important;
  background-color: #e4eaf0 !important;
}

/* Avatar frame di dalam modal: hilangkan lingkaran sinar putih */
.fixed.z-50 .neu-avatar-frame,
#modal-pengurus-detail .neu-avatar-frame {
  box-shadow: 2px 2px 6px rgba(180, 195, 215, 0.45) !important;
  border: 2px solid rgba(209, 217, 230, 0.8) !important;
  background: #E0E5EC !important;
}

/* Badge di dalam modal: hilangkan bayangan putih */
.fixed.z-50 .neu-badge,
#modal-pengurus-detail .neu-badge {
  box-shadow: 1px 1px 3px rgba(180, 195, 215, 0.35) !important;
}

/* ========================================================= */
/* NEUMORPHIC SEGMENTED NAVIGATION TABS                      */
/* ========================================================= */
.neu-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #53645a;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  line-height: 1.25;
}

@media (min-width: 1280px) {
  .neu-tab {
    padding: 0.45rem 0.75rem;
    font-size: 12px;
  }
}

.neu-tab:hover {
  color: var(--nu-primary);
  background: rgba(255, 255, 255, 0.45);
}

.neu-tab.active {
  background: var(--neu-bg) !important;
  box-shadow: inset 2px 2px 5px var(--neu-shadow-dark), inset -2px -2px 5px var(--neu-shadow-light) !important;
  border: 1px solid rgba(209, 217, 230, 0.7) !important;
  color: var(--nu-primary) !important;
  font-weight: 700 !important;
}

.neu-tab.active i {
  color: var(--nu-primary) !important;
}

.neu-tab-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 700;
  background: rgba(10, 92, 54, 0.08);
  color: #0a5c36;
  border: 1px solid rgba(10, 92, 54, 0.2);
  line-height: 1.2;
}

.neu-tab.active .neu-tab-badge {
  background: #0a5c36;
  color: #ffffff;
  border-color: #0a5c36;
}

/* Authentic Neumorphic Inset Input & Select */
.neu-inset-input {
  background: #ECF0F3 !important;
  border-radius: 12px !important;
  box-shadow: inset 3px 3px 6px #C8D0DC, inset -3px -3px 6px #FFFFFF !important;
  border: 1px solid rgba(209, 217, 230, 0.75) !important;
  color: #1a2721 !important;
  transition: all 0.2s ease !important;
}

.neu-inset-input:focus {
  background: #ECF0F3 !important;
  border-color: #0a5c36 !important;
  box-shadow: inset 3px 3px 6px #C8D0DC, inset -3px -3px 6px #FFFFFF, 0 0 0 3px rgba(10, 92, 54, 0.18) !important;
}

.neu-inset-input option {
  background: #FFFFFF;
  color: #1a2721;
  font-weight: 600;
  padding: 10px 14px;
}


/* ==========================================================================
   SPECIFIED NEUMORPHIC COLOR PALETTE & FORM STYLES
   - Background Utama: #ECF0F3
   - Kartu Form: #ECF0F3
   - Primary Button: #707070 (Abu-abu gelap murni) tanpa icon
   - Teks Tombol: #FFFFFF (Putih)
   - Bayangan Terang: #FFFFFF
   - Bayangan Gelap: #D1D9E6 / #BBE1EF
   ========================================================================== */

.edaran-card {
  background-color: #ECF0F3 !important;
  border-radius: 20px !important;
  box-shadow: 8px 8px 18px #D1D9E6, -8px -8px 18px #FFFFFF !important;
  border: 1px solid rgba(209, 217, 230, 0.6) !important;
}

.edaran-neu-input {
  background-color: #ECF0F3 !important;
  border-radius: 12px !important;
  box-shadow: inset 3px 3px 6px #D1D9E6, inset -3px -3px 6px #FFFFFF !important;
  border: 1px solid rgba(209, 217, 230, 0.75) !important;
  color: #1a2721 !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

.edaran-neu-input:focus {
  background-color: #ECF0F3 !important;
  border-color: #707070 !important;
  box-shadow: inset 3px 3px 6px #BBE1EF, inset -3px -3px 6px #FFFFFF, 0 0 0 3px rgba(112, 112, 112, 0.18) !important;
}

.edaran-neu-input option {
  background: #FFFFFF;
  color: #1a2721;
  font-weight: 600;
  padding: 10px 14px;
}

.edaran-btn-primary {
  background-color: #707070 !important;
  color: #FFFFFF !important;
  border-radius: 12px !important;
  border: 1px solid #5f5f5f !important;
  box-shadow: 4px 4px 10px #D1D9E6, -4px -4px 10px #FFFFFF !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.edaran-btn-primary:hover {
  background-color: #5f5f5f !important;
  box-shadow: 2px 2px 6px #BBE1EF, -2px -2px 6px #FFFFFF !important;
  transform: translateY(-1px);
}

.edaran-btn-primary:active {
  background-color: #4f4f4f !important;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.35), inset -2px -2px 5px rgba(255, 255, 255, 0.1) !important;
  transform: translateY(0);
}


/* Khusus Android & Layar Mobile: Sembunyikan Stepper Breadcrumbs Portal */
@media (max-width: 768px) {
  #edaran-breadcrumbs-box {
    display: none !important;
  }
}
html.is-android #edaran-breadcrumbs-box,
body.is-android #edaran-breadcrumbs-box {
  display: none !important;
}


/* ==========================================================================
   ANDROID & MOBILE: HALAMAN MASUK EDARAN FULLSCREEN NON-SCROLL (TIDAK GESER)
   ========================================================================== */
@media (max-width: 640px) {
  body:has(#edaran-step-matching:not(.hidden)),
  body.edaran-matching-active {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    touch-action: pan-x !important;
  }

  body:has(#edaran-step-matching:not(.hidden)) main,
  body.edaran-matching-active main {
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
  }

  body:has(#edaran-step-matching:not(.hidden)) #view-portal-edaran,
  body.edaran-matching-active #view-portal-edaran {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    overflow: hidden !important;
  }

  body:has(#edaran-step-matching:not(.hidden)) #portal-edaran-top-bar,
  body.edaran-matching-active #portal-edaran-top-bar {
    padding-bottom: 6px !important;
    margin-bottom: 2px !important;
    flex-shrink: 0 !important;
    border-bottom: 1px solid rgba(209, 217, 230, 0.7) !important;
  }

  body:has(#edaran-step-matching:not(.hidden)) #edaran-step-matching,
  body.edaran-matching-active #edaran-step-matching {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  body:has(#edaran-step-matching:not(.hidden)) .edaran-card,
  body.edaran-matching-active .edaran-card {
    padding: 16px 16px !important;
    border-radius: 18px !important;
    margin: auto 0 !important;
    width: 100% !important;
    box-shadow: 6px 6px 14px #D1D9E6, -6px -6px 14px #FFFFFF !important;
  }

  body:has(#edaran-step-matching:not(.hidden)) #edaran-matching-logo-box,
  body.edaran-matching-active #edaran-matching-logo-box {
    width: 60px !important;
    height: 60px !important;
    padding: 6px !important;
    margin-bottom: 2px !important;
  }

  body:has(#edaran-step-matching:not(.hidden)) #edaran-matching-logo-img,
  body.edaran-matching-active #edaran-matching-logo-img {
    width: 44px !important;
    height: 44px !important;
  }

  body:has(#edaran-step-matching:not(.hidden)) .edaran-card h2,
  body.edaran-matching-active .edaran-card h2 {
    font-size: 16px !important;
    line-height: 1.2 !important;
    margin-top: 1px !important;
  }

  body:has(#edaran-step-matching:not(.hidden)) .edaran-hide-mobile,
  body.edaran-matching-active .edaran-hide-mobile {
    display: none !important;
  }

  body:has(#edaran-step-matching:not(.hidden)) .edaran-neu-input,
  body.edaran-matching-active .edaran-neu-input {
    padding: 9px 12px !important;
    font-size: 13px !important;
  }

  body:has(#edaran-step-matching:not(.hidden)) .edaran-btn-primary,
  body.edaran-matching-active .edaran-btn-primary {
    padding: 11px 14px !important;
    font-size: 13px !important;
  }
}
