/* Adminitrasi Siswa — UI */
:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --input-border: #cbd5e1;
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-soft: #ccfbf1;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --success: #15803d;
  --success-soft: #dcfce7;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --space-page: 1.75rem;
  --space-section: 1.5rem;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

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

/* —— Login —— */
.page-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(13, 148, 136, 0.2), transparent),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(30, 58, 95, 0.18), transparent),
    linear-gradient(165deg, #f8fafc 0%, #e0f2fe 45%, #f0fdfa 100%);
  z-index: 0;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
}

.login-brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-logo {
  display: inline-block;
  filter: drop-shadow(0 8px 20px rgba(13, 148, 136, 0.35));
}

.login-brand h1 {
  margin: 0.75rem 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.login-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.login-card {
  padding: 2rem;
}

.login-card h2 {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.login-hint {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* —— App shell —— */
.page-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}
.brand-link:hover {
  text-decoration: none;
  opacity: 0.92;
}

.brand-logo {
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.brand-logo-photo,
.login-logo-photo {
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
}
.login-logo-photo {
  border-radius: 16px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-text strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.brand-text small {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem 0.85rem;
  flex-wrap: wrap;
}

/* Satu gaya navigasi: netral + halaman aktif menonjol */
.nav-pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8125rem;
  text-decoration: none;
  color: #475569;
  background: #fff;
  border: 1px solid var(--input-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.nav-pill:hover {
  text-decoration: none;
  color: var(--primary-dark);
  border-color: #99f6e4;
  background: #f0fdfa;
}

.nav-pill-active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}
.nav-pill-active:hover {
  color: #fff !important;
  filter: brightness(1.05);
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}

.main-content {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-page) 1.5rem 2.5rem;
  width: 100%;
}

.app-footer {
  text-align: center;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* —— Cards & dashboard —— */
.card-elevated {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.main-content-wide {
  max-width: 1200px;
}

.welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1.5rem;
  margin-bottom: var(--space-section);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 45%, #f0fdfa 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.welcome-banner h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.welcome-banner p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.welcome-art {
  flex-shrink: 0;
  opacity: 0.95;
}

.section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.dash-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}
.dash-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  border-color: transparent;
}

.dash-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.dash-card-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}

.dash-card-body p {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.dash-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--muted);
}

.dash-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--muted);
  opacity: 0.6;
}

.accent-spp .dash-card-icon { background: #e0f2fe; }
.accent-spp:hover { border-color: #7dd3fc; }

.accent-lks .dash-card-icon { background: #ede9fe; }
.accent-lks:hover { border-color: #c4b5fd; }

.accent-ujian .dash-card-icon { background: #ffedd5; }
.accent-ujian:hover { border-color: #fdba74; }

.accent-rapor .dash-card-icon { background: #dcfce7; }
.accent-rapor:hover { border-color: #86efac; }

.accent-kal .dash-card-icon { background: #fce7f3; }
.accent-kal:hover { border-color: #f9a8d4; }

.grid-dashboard-kas {
  grid-template-columns: minmax(280px, 1fr);
  max-width: 520px;
}

.accent-kas .dash-card-icon { background: #fef3c7; }
.accent-kas:hover { border-color: #fcd34d; }

/* —— Forms & alerts —— */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.field > span:first-child {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.01em;
}

.field input {
  font: inherit;
  font-size: 0.9375rem;
  min-height: 2.625rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder {
  color: #94a3b8;
}
.field input:hover {
  border-color: #94a3b8;
}
.field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}

.field select {
  font: inherit;
  font-size: 0.9375rem;
  min-height: 2.625rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field select:hover {
  border-color: #94a3b8;
}
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}
.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: #f8fafc;
  color: var(--text);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
}

.btn-xs {
  padding: 0.3rem 0.55rem;
  font-size: 0.75rem;
}

.btn-danger-ghost {
  background: transparent;
  color: var(--danger);
  border: 1px solid #fecaca;
}
.btn-danger-ghost:hover {
  background: var(--danger-soft);
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-error {
  background: var(--danger-soft);
  color: #991b1b;
  border: 1px solid #fecaca;
}
.alert-success {
  background: var(--success-soft);
  color: #166534;
  border: 1px solid #bbf7d0;
}

.muted {
  color: var(--muted);
}

/* —— Pembayaran page —— */
.page-pembayaran .main-content {
  padding-bottom: 3rem;
}
.page-head {
  margin-bottom: 1.25rem;
}
.page-head h1 {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.35rem;
}

.back-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.layout-split {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 900px) {
  .layout-split {
    grid-template-columns: 1fr;
  }
}

.form-panel {
  padding: 1.5rem 1.5rem;
}
.form-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}
.form-grid > .field {
  min-width: 0;
}
.form-grid .field input,
.form-grid .field select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.field-full {
  grid-column: 1 / -1;
}
.form-actions {
  margin-top: 0.25rem;
}

@media (max-width: 520px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.table-panel {
  padding: 1.25rem 1.35rem;
  overflow: hidden;
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.table-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.total-pill {
  font-size: 0.9rem;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 -0.25rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table th,
.data-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #f8fafc;
}
.data-table .num {
  text-align: right;
  white-space: nowrap;
}
.empty-cell {
  text-align: center;
  color: var(--muted);
  padding: 2rem !important;
}

.inline-form {
  display: inline;
  margin: 0;
}

/* —— Kas —— */
.kas-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.kas-stat {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.kas-stat h3 {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.kas-stat-value {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.kas-stat-in { border-top: 3px solid #059669; }
.kas-stat-out { border-top: 3px solid #dc2626; }
.kas-stat-balance { border-top: 3px solid #0d9488; }
.kas-stat-total { border-top: 3px solid #d97706; }

.kas-filter-bar {
  padding: 1.35rem 1.5rem;
  margin-bottom: 0;
}
.kas-filter-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}
.kas-filter-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}
.kas-filter-fields .field {
  min-width: 160px;
}
.kas-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.kas-filter-hint {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.kas-forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.kas-form-card {
  padding: 1.25rem 1.35rem;
}

.kas-form-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.kas-form-head h2 {
  margin: 0;
  font-size: 1.05rem;
}
.kas-form-head p {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
}
.kas-form-head-in { border-bottom-color: #a7f3d0; }
.kas-form-head-out { border-bottom-color: #fecaca; }

.form-grid-single {
  grid-template-columns: 1fr;
}

.btn-out {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}
.btn-out:hover {
  filter: brightness(1.05);
}

.kas-ledger {
  margin-bottom: 2rem;
}

.kas-table .row-masuk {
  background: linear-gradient(90deg, rgba(209, 250, 229, 0.35) 0%, transparent 100%);
}
.kas-table .row-keluar {
  background: linear-gradient(90deg, rgba(254, 226, 226, 0.4) 0%, transparent 100%);
}

.kas-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.kas-pill-in {
  background: #d1fae5;
  color: #047857;
}
.kas-pill-out {
  background: #fee2e2;
  color: #b91c1c;
}

.page-kas .kas-input-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.kas-input-toolbar-title {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.kas-input-toolbar-sub {
  margin: 0;
  font-size: 0.85rem;
}
.kas-input-toolbar-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.kas-toolbar-ico {
  border-radius: 8px;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.kas-form-dialog {
  padding: 0;
  border: none;
  max-width: calc(100vw - 1.25rem);
  width: 28rem;
  background: transparent;
  box-shadow: none;
}
.kas-form-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
}
.kas-form-dialog-box {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  max-height: min(90vh, 40rem);
  display: flex;
  flex-direction: column;
}
.kas-form-dialog-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-right: 2.75rem;
}
.kas-form-dialog-head h2 {
  margin: 0;
  font-size: 1.05rem;
}
.kas-form-dialog-x {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.kas-form-dialog-x:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.kas-dialog-form {
  padding: 1.1rem 1.15rem 1.25rem;
  overflow-y: auto;
}
.kas-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.kas-riwayat-keluar-full {
  margin-bottom: 1.5rem;
  border-top: 4px solid #dc2626;
}
.kas-rk-scroll {
  max-height: none;
  overflow-x: auto;
}
.page-kas .kas-riwayat-keluar-full .kas-rk-table thead th {
  position: static;
  box-shadow: none;
}

/* Popup sukses (pembayaran & kas) */
.success-popup-dialog {
  padding: 0;
  border: none;
  max-width: calc(100vw - 1.25rem);
  width: 24rem;
  background: transparent;
  box-shadow: none;
}
.success-popup-dialog::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}
.success-popup-box {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.35rem 1.35rem;
  text-align: center;
}
.success-popup-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #047857;
  font-size: 1.5rem;
  font-weight: 800;
}
.success-popup-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.success-popup-lead {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}
.success-popup-detail {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  text-align: left;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.5;
  color: #334155;
}
.success-popup-detail li {
  margin: 0.25rem 0;
}
.success-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: stretch;
}
.success-popup-no-wa {
  margin: 0;
  font-size: 0.8125rem;
  text-align: left;
}

/* —— Layout umum (rapi & konsisten) —— */
.layout-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-section);
}

.main-content > .alert {
  margin-bottom: var(--space-section);
}

.main-content > h2.section-title {
  margin-top: 2rem;
}
.main-content > h2.section-title:first-of-type {
  margin-top: 0;
}

.page-head-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: var(--space-section);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page-head-text .breadcrumb {
  margin-bottom: 0.35rem;
}

.page-head-text h1 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #0f172a;
}

.page-lead {
  margin: 0;
  max-width: 40rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #64748b;
}

.page-head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid #99f6e4;
  white-space: nowrap;
}

.breadcrumb {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--primary-dark);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb-sep {
  margin: 0 0.35rem;
  opacity: 0.55;
}

.header-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.accent-siswa .dash-card-icon {
  background: #e0e7ff;
}
.accent-siswa:hover {
  border-color: #a5b4fc;
}

.panel-heading {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.panel-heading h2 {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.panel-sub {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #64748b;
}
.panel-meta {
  margin: -0.25rem 0 1rem;
  font-size: 0.875rem;
}

.link-inline {
  font-weight: 600;
}

.panel-split {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 340px);
  gap: 0;
  overflow: hidden;
}
.panel-split-form {
  padding: 1.5rem 1.5rem 1.75rem;
  border-right: 1px solid var(--border);
}
.panel-split-side {
  padding: 1.5rem 1.5rem 1.75rem;
  background: #f8fafc;
  border-left: 3px solid var(--primary);
}
@media (max-width: 960px) {
  .panel-split {
    grid-template-columns: 1fr;
  }
  .panel-split-form {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .panel-split-side {
    border-left: none;
    border-top: 3px solid var(--primary);
  }
}

.form-grid-tight {
  gap: 1rem 1.25rem;
}

.panel-split-form .form-actions {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.req {
  color: var(--danger);
}

.field-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.import-hints {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}
.import-hints code {
  font-size: 0.8rem;
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.input-file {
  font-size: 0.875rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px dashed var(--input-border);
  border-radius: var(--radius-sm);
  background: #fff;
}
.input-file::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.8125rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f1f5f9;
  cursor: pointer;
}
.input-file::file-selector-button:hover {
  background: #e2e8f0;
}

.form-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.btn-secondary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn-secondary:hover {
  filter: brightness(1.05);
}

.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
}
.toolbar-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}
.field-inline input,
.field-inline select {
  min-width: 180px;
}

.table-panel-flush {
  padding: 0;
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
  max-height: min(70vh, 560px);
  overflow-y: auto;
}
.table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: 0 1px 0 var(--border);
}

.data-table-striped tbody tr:nth-child(even) {
  background: #f8fafc;
}

.table-panel-flush > .table-head {
  padding: 1.15rem 1.35rem;
  margin: 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
}
.page-pembayaran .table-panel-flush > .table-head h2 {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.page-pembayaran .total-pill {
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(13, 148, 136, 0.25);
}
.page-pembayaran .pay-table th,
.page-pembayaran .pay-table td {
  padding: 0.9rem 1rem;
  vertical-align: middle;
}
.page-pembayaran .pay-table tbody tr:last-child td {
  border-bottom: none;
}
.page-pembayaran .table-scroll {
  max-height: min(70vh, 520px);
}
.table-head-bar {
  align-items: center;
}
.table-head-meta {
  font-size: 0.82rem;
  text-align: right;
  max-width: 18rem;
}

.table-foot {
  margin: 0;
  padding: 0.65rem 1.25rem 1rem;
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}

.col-actions {
  white-space: nowrap;
  text-align: right;
}
.col-actions .btn,
.col-actions form {
  vertical-align: middle;
}
.col-actions form {
  display: inline-block;
  margin-left: 0.25rem;
}

.cell-mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
}

.layout-split-pay {
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}
.layout-split-pay > .form-panel,
.layout-split-pay > .table-panel {
  min-width: 0;
}
@media (max-width: 900px) {
  .layout-split-pay {
    grid-template-columns: 1fr;
  }
}

/* Area input + riwayat: latar & kartu */
.pay-workspace {
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
  padding: 1.35rem 1.3rem 1.65rem;
  background: linear-gradient(165deg, #dfe7f0 0%, #e8edf4 28%, #f1f5f9 70%, #f8fafc 100%);
  border-radius: 18px;
  border: 1px solid #d0dae6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.pay-workspace-split {
  gap: 1.5rem 2rem;
}
@media (max-width: 900px) {
  .pay-workspace {
    padding: 1.1rem 0.95rem 1.45rem;
    border-radius: 14px;
  }
}

.page-pembayaran .pay-card-form.form-panel,
.page-pembayaran .pay-card-ledger.table-panel {
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 14px 36px rgba(15, 23, 42, 0.09);
  border: 1px solid rgba(226, 232, 240, 0.95);
}
.page-pembayaran .pay-card-form {
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--primary);
}
.page-pembayaran .pay-card-ledger {
  border-top: 4px solid #475569;
}

.page-pembayaran .pay-card-form-head.panel-heading {
  margin: 0;
  padding: 1.2rem 1.4rem 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.page-pembayaran .pay-card-form-head.panel-heading h2 {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.pay-form-body {
  flex: 1;
  padding: 1.3rem 1.4rem 0;
  background: linear-gradient(180deg, #f1f5f9 0%, #eef2f7 100%);
}
.page-pembayaran .pay-form-body .form-pay {
  gap: 1.2rem;
}
.page-pembayaran .pay-form-body .field input,
.page-pembayaran .pay-form-body .field select {
  background: #fff;
}

.pay-form-actions-bar.form-pay-actions {
  margin: 1.2rem -1.4rem 0;
  padding: 1.1rem 1.4rem 1.3rem;
  border-top: 1px solid #cbd5e1;
  background: #fff;
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.05);
}
.pay-form-actions-bar .btn-pay-submit {
  width: 100%;
  min-height: 2.85rem;
  font-size: 0.9375rem;
}
@media (min-width: 420px) {
  .pay-form-actions-bar .btn-pay-submit {
    width: 100%;
    min-width: 0;
  }
}

.pay-ledger-head {
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 1.15rem 1.4rem !important;
  gap: 0.65rem 1.25rem;
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}
.pay-ledger-head-main {
  min-width: 0;
  flex: 1;
}
.pay-ledger-head-main h2 {
  margin: 0 0 0.2rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.pay-ledger-meta {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
}
.pay-ledger-total {
  flex-shrink: 0;
  align-self: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.page-pembayaran .pay-card-ledger .table-scroll {
  background: #fff;
  border-top: 1px solid var(--border);
}
.page-pembayaran .pay-card-ledger .pay-table tbody tr {
  transition: background 0.12s ease;
}
.page-pembayaran .pay-card-ledger .pay-table tbody tr:hover {
  background: #f0fdfa !important;
}
.page-pembayaran .pay-card-ledger .data-table-striped tbody tr:nth-child(even) {
  background: #f8fafc;
}
.page-pembayaran .pay-card-ledger .data-table-striped tbody tr:nth-child(even):hover {
  background: #ecfdf5 !important;
}

/* Riwayat full width (halaman pembayaran tanpa kolom form) */
.page-pembayaran .pay-ledger-full {
  width: 100%;
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
}
.page-pembayaran .pay-ledger-full .table-scroll {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}
.page-pembayaran .pay-ledger-full .pay-table thead th {
  position: static;
  box-shadow: none;
}

/* Halaman input pembayaran (input.php) */
.page-input-pembayaran .pay-input-page-card {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.pay-head-input {
  white-space: nowrap;
}
.pay-head-back {
  white-space: nowrap;
}

/* Form pembayaran: baris eksplisit agar tidak tumpang tindih */
.form-pay {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
.page-pembayaran .form-pay .field {
  gap: 0.4rem;
}
.form-pay-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
}
.form-pay-row-full {
  display: block;
}
.form-pay .field {
  min-width: 0;
}
.form-pay .field input,
.form-pay .field select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.form-pay .field select {
  text-overflow: ellipsis;
}
.form-pay-actions {
  padding-top: 1.35rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--border);
}
.form-pay-actions .btn {
  width: 100%;
  min-height: 2.75rem;
  font-size: 0.9375rem;
}
@media (min-width: 420px) {
  .form-pay-actions .btn {
    width: auto;
    min-width: 12rem;
  }
}
@media (max-width: 540px) {
  .form-pay-row-2 {
    grid-template-columns: 1fr;
    gap: 1.125rem;
  }
}

/* Input nominal Rupiah */
.input-rp-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  min-height: 2.75rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.input-rp-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}
.input-rp-prefix {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.85rem;
  min-width: 3.25rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  border-right: 1px solid rgba(13, 148, 136, 0.22);
}
.input-rp-wrap input {
  flex: 1;
  min-width: 0;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-left: 0.85rem !important;
  padding-right: 0.85rem !important;
  font-variant-numeric: tabular-nums;
}
.input-rp-wrap input:focus {
  outline: none;
  box-shadow: none !important;
}

/* WhatsApp */
.btn-wa {
  background: #25d366;
  color: #fff !important;
  border: none;
  text-decoration: none !important;
}
.btn-wa:hover {
  filter: brightness(1.05);
  color: #fff !important;
}
.btn-wa-outline {
  background: #fff;
  color: #128c7e !important;
  border: 1px solid #25d366 !important;
  text-decoration: none !important;
}
.btn-wa-outline:hover {
  background: #ecfdf5;
  color: #0d9488 !important;
}
a.btn-kwitansi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  text-decoration: none !important;
  font-weight: 600;
  border-radius: 8px;
}
a.btn-kwitansi:hover {
  background: #fff;
  border-color: #0f766e !important;
  color: #0f766e !important;
}
.btn-wa-xs {
  padding: 0.25rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 6px;
  display: inline-block;
  margin: 0.1rem 0;
  white-space: nowrap;
}
.btn-wa-compact {
  padding: 0.42rem 0.72rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none !important;
}
.btn-del-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.7rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #fecaca;
  background: #fff;
  color: var(--danger);
  transition: background 0.15s, border-color 0.15s;
}
.btn-del-compact:hover {
  background: var(--danger-soft);
  border-color: #f87171;
}
.pay-table th.pay-th-aksi,
.pay-table td.pay-td-aksi {
  width: 1%;
  min-width: 8.5rem;
  vertical-align: middle;
}
.pay-table .pay-td-nominal {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pay-status-item-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-end;
}

.siswa-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.siswa-stack .siswa-table-full {
  width: 100%;
}

.siswa-import-card {
  padding: 1.25rem 1.35rem 1.4rem;
}

.siswa-edit-card {
  padding: 1.25rem 1.35rem 1.4rem;
}

.pay-aksi-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.pay-aksi-wa {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pay-aksi-del {
  margin: 0;
  padding: 0;
}
.pay-no-wa {
  font-size: 0.75rem;
  font-weight: 500;
}
.pay-no-wa-inline {
  font-size: 0.78rem;
}
.cell-wa {
  white-space: normal;
  vertical-align: middle;
}
.cell-wa .btn-wa-xs {
  margin-right: 0.2rem;
}

.pay-page-head {
  align-items: flex-start;
  gap: 1.25rem;
}
.page-pembayaran .page-head-bar {
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}
.page-pembayaran .page-head-text h1 {
  letter-spacing: -0.03em;
}
.page-pembayaran .page-lead {
  max-width: 40rem;
  line-height: 1.55;
}
.pay-head-tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.pay-head-tools .pay-brand-mark {
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.btn-pay-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  min-height: 2.75rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  transition: filter 0.15s, transform 0.1s;
}
.btn-pay-add:hover {
  filter: brightness(1.06);
}
.btn-pay-add:active {
  transform: scale(0.98);
}
.btn-pay-add-icon {
  flex-shrink: 0;
}
.btn-pay-add-label {
  line-height: 1.2;
}
.btn-pay-add-compact {
  min-height: 2.5rem;
  min-width: 2.5rem;
  padding: 0.45rem;
  border-radius: 10px;
}
.btn-pay-add-compact .btn-pay-add-label {
  display: none;
}
@media (max-width: 520px) {
  .btn-pay-add .btn-pay-add-label {
    display: none;
  }
  .btn-pay-add {
    min-width: 2.75rem;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
}

.panel-heading-with-action {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}
.panel-heading-text {
  min-width: 0;
  flex: 1;
}
.panel-heading-with-action .panel-sub {
  margin-top: 0.25rem;
}

.pay-status-panel {
  margin-top: 1.75rem;
  padding: 0;
  overflow: hidden;
}
.pay-status-panel-top {
  margin-top: 0;
  margin-bottom: 1.75rem;
}
.pay-status-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pay-status-title-row .pay-status-title {
  margin: 0;
}
.pay-status-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.pay-status-head-text {
  min-width: min(100%, 260px);
}
.pay-status-title {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pay-status-lead {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}
.pay-cek-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 0.75rem;
}
.pay-cek-field {
  min-width: min(100%, 240px);
  margin: 0;
}
.pay-cek-field input {
  min-width: 0;
  width: 100%;
  max-width: 280px;
}
.pay-cek-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.pay-status-info {
  margin: 0;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}
.pay-status-hint {
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0 0 0.5rem;
}
.pay-status-meta {
  font-size: 0.8125rem;
  margin: 0;
  color: #475569;
}
.pay-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1.5rem;
  background: #f1f5f9;
}
@media (max-width: 800px) {
  .pay-status-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 1.15rem 1.25rem;
  }
}
.pay-status-col {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.pay-status-sudah {
  border-top: 4px solid #059669;
}
.pay-status-belum {
  border-top: 4px solid #e11d48;
}
.pay-status-col-title {
  margin: 0;
  padding: 0.85rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.pay-status-sudah .pay-status-count {
  background: #d1fae5;
  color: #065f46;
}
.pay-status-belum .pay-status-count {
  background: #ffe4e6;
  color: #9f1239;
}
.pay-status-count {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}
.pay-status-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  max-height: min(360px, 45vh);
  overflow-y: auto;
}
.pay-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0 0.65rem 0.5rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.pay-status-item:last-child {
  margin-bottom: 0.35rem;
}
.pay-status-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.pay-status-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  font-size: 0.875rem;
}
.pay-status-item-main strong {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pay-status-item-wa {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}
.pay-status-empty {
  margin: 0.5rem 0.85rem 0.85rem;
  padding: 1.1rem 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px dashed var(--border);
}
.small-no-wa {
  font-size: 0.75rem;
}
@media (max-width: 640px) {
  .pay-status-head {
    flex-direction: column;
    align-items: stretch;
  }
  .pay-cek-field input {
    max-width: none;
  }
}

/* Dialog pilih jenis pembayaran */
.pay-jenis-dialog {
  padding: 0;
  border: none;
  border-radius: 16px;
  max-width: calc(100vw - 1.5rem);
  width: 26rem;
  background: transparent;
  box-shadow: none;
}
.pay-jenis-dialog::backdrop {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
}
.pay-jenis-dialog-box {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.pay-jenis-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}
.pay-jenis-dialog-head h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pay-jenis-close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pay-jenis-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.pay-jenis-dialog-lead {
  margin: 0;
  padding: 0.85rem 1.15rem 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
}
.pay-jenis-dialog-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: min(60vh, 22rem);
  overflow-y: auto;
}
.pay-jenis-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  text-align: left;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fafbfc;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
a.pay-jenis-pick:hover {
  text-decoration: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.12);
}
button.pay-jenis-pick.is-current {
  border-color: rgba(13, 148, 136, 0.45);
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdfa 100%);
  cursor: pointer;
}
button.pay-jenis-pick.is-current:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.15);
}
.pay-jenis-pick-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
}
.pay-jenis-pick-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}
.pay-jenis-pick-badge {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
}

.form-panel-sticky {
  position: sticky;
  top: 5.5rem;
}
@media (max-width: 900px) {
  .form-panel-sticky {
    position: static;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Dashboard (tampilan baru) —— */
.page-dashboard {
  background: linear-gradient(180deg, #e2e8f0 0%, #eef2f7 18%, #eef2f7 100%);
}

.dash-main {
  padding-top: 1.25rem;
}

.dash-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 1.35rem;
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(128deg, #0d5c56 0%, #0f766e 38%, #134e4a 72%, #1e3a5f 100%);
  color: #fff;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.08),
    0 22px 48px rgba(13, 92, 86, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: stretch;
  padding: 1.75rem 1.75rem 1.75rem 2rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  .dash-hero-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem;
  }
}

.dash-hero-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

.dash-hero-copy h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 4vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.dash-welcome-heading .dash-salam {
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.95;
}
.dash-welcome-heading .dash-salam-sep {
  font-weight: 500;
  opacity: 0.85;
}
.dash-welcome-heading .dash-role {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.92em;
  opacity: 0.98;
}
.dash-hero-byname {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.88;
  letter-spacing: 0.02em;
}

.dash-hero-lead {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.92;
  max-width: 26rem;
}

.dash-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.dash-btn:active {
  transform: scale(0.98);
}

.dash-btn-light {
  background: #fff;
  color: #0f766e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.dash-btn-light:hover {
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.dash-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.dash-btn-outline:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.65);
}

.dash-hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  min-width: 0;
}

.dash-hero-date {
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: right;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.dash-hero-pattern {
  width: 140px;
  height: 140px;
  margin-top: 1rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0.9;
}

@media (max-width: 720px) {
  .dash-hero-aside {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .dash-hero-pattern {
    width: 72px;
    height: 72px;
    margin-top: 0;
  }
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-bottom: 1.85rem;
}

@media (max-width: 960px) {
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .dash-stats {
    grid-template-columns: 1fr;
  }
}

.dash-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.dash-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 14px 0 0 14px;
  opacity: 0.95;
}
a.dash-stat:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.06),
    0 16px 36px rgba(15, 23, 42, 0.1);
  border-color: rgba(100, 116, 139, 0.45);
}

.dash-stat-static {
  cursor: default;
  pointer-events: none;
}
.dash-stat-static:hover {
  transform: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  border-color: var(--border);
}

.dash-stat-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, #f1f5f9 100%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.dash-stat-icon img {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
}

.dash-stat-pay .dash-stat-icon {
  background: transparent;
}

.dash-stat-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.dash-stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #0f172a;
}

.dash-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  line-height: 1.3;
}

.dash-stat-siswa::before {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}
.dash-stat-kas::before {
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
}
.dash-stat-bayar::before {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
}
.dash-stat-pay::before {
  background: linear-gradient(180deg, #2dd4bf 0%, #0d9488 100%);
}

.dash-stat-absen-santri::before {
  background: linear-gradient(180deg, #a78bfa 0%, #6d28d9 100%);
}

.dash-stat-absen-guru::before {
  background: linear-gradient(180deg, #fbbf24 0%, #b45309 100%);
}

.dash-pay-block {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 20px;
  padding: 1.45rem 1.5rem 1.55rem;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px rgba(15, 23, 42, 0.07);
}

.dash-pay-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.dash-pay-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.dash-pay-sub {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
}

.dash-pay-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.dash-pay-grid > li {
  margin: 0;
  min-width: 0;
}

.dash-pay-card::before {
  display: none;
}
.dash-pay-card {
  height: 100%;
  min-height: 5.75rem;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.15rem 1.2rem;
  padding-top: calc(1.15rem + 3px);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  background: linear-gradient(155deg, #fff 0%, #f8fafc 55%, #fff 100%);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
}
.dash-pay-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--pay-accent, var(--primary));
  border-radius: 16px 16px 0 0;
  opacity: 0.92;
}
.dash-pay-card .dash-stat-text {
  flex: 1;
  min-width: 0;
}
.dash-pay-card .dash-pay-card-unit {
  font-size: 0.68em;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.03em;
}
a.dash-pay-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  border-color: #94a3b8;
}

.dash-pay-card .dash-stat-label {
  line-height: 1.25;
  max-height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dash-pay-card-desc {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
  color: #64748b;
  text-transform: none;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

@media (max-width: 420px) {
  .dash-pay-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Pondok Pesantren — tema Islami (hijau, krem, emas) —— */
:root {
  --pondok-forest: #143d32;
  --pondok-forest-mid: #1e5c4a;
  --pondok-forest-soft: #2a6b58;
  --pondok-cream: #f4efe4;
  --pondok-cream-card: #faf7f0;
  --pondok-gold: #b8942e;
  --pondok-gold-soft: #d4b84a;
  --pondok-pattern: rgba(20, 61, 50, 0.04);
}

body.page-pondok {
  background: var(--pondok-cream);
}

body.page-pondok.page-app {
  display: block;
  min-height: 100vh;
}

.pondok-app {
  display: flex;
  min-height: 100vh;
  background: var(--pondok-cream);
}

.pondok-sidebar {
  width: 268px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--pondok-forest) 0%, #0f2e26 100%);
  color: #f0ebe0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(201, 162, 39, 0.25);
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12);
  z-index: 30;
  transition: transform 0.22s ease;
}

.pondok-sidebar-brand {
  padding: 1.25rem 1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pondok-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.pondok-brand-link:hover {
  text-decoration: none;
  opacity: 0.95;
}

.pondok-brand-logo-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.15));
  border: 2px solid rgba(212, 184, 74, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.pondok-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
}
.pondok-brand-logo-photo {
  border-radius: 50%;
  background: #fff;
}

.pondok-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.pondok-brand-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.25;
  color: #fff;
}

.pondok-brand-loc {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(240, 235, 224, 0.72);
}

.pondok-side-nav {
  padding: 0.65rem 0.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow-y: auto;
  flex: 1;
}

.pondok-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.pondok-nav-item:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.pondok-nav-item-active {
  background: linear-gradient(90deg, rgba(212, 184, 74, 0.22), rgba(212, 184, 74, 0.06));
  color: #fff;
  border: 1px solid rgba(212, 184, 74, 0.35);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.pondok-nav-ico {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.12);
  color: var(--pondok-gold-soft);
}

.pondok-nav-item-active .pondok-nav-ico {
  background: rgba(212, 184, 74, 0.2);
  color: #f5e6a8;
}

.pondok-nav-label {
  line-height: 1.3;
}

.pondok-sidebar-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 25;
  backdrop-filter: blur(2px);
}

body.pondok-nav-open .pondok-sidebar-scrim {
  display: block;
}

.pondok-workspace {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--pondok-cream);
  background-image:
    radial-gradient(circle at 12% 18%, var(--pondok-pattern) 0%, transparent 42%),
    radial-gradient(circle at 88% 72%, var(--pondok-pattern) 0%, transparent 38%);
}

.pondok-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem 0.85rem 1.65rem;
  background: linear-gradient(180deg, #fffefb 0%, var(--pondok-cream-card) 100%);
  border-bottom: 1px solid rgba(20, 61, 50, 0.1);
  box-shadow: 0 2px 12px rgba(20, 61, 50, 0.06);
  position: sticky;
  top: 0;
  z-index: 20;
}

.pondok-topbar-start {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.pondok-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(20, 61, 50, 0.15);
  border-radius: 10px;
  background: #fff;
  color: var(--pondok-forest);
  cursor: pointer;
}
.pondok-menu-btn:hover {
  background: var(--pondok-cream-card);
}

.pondok-topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.pondok-topbar-brand:hover {
  text-decoration: none;
  opacity: 0.92;
}
.pondok-topbar-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(20, 61, 50, 0.12);
  border: 1px solid rgba(20, 61, 50, 0.1);
  background: #fff;
}
.pondok-topbar-logo-photo {
  object-fit: cover;
}
.pondok-topbar-brand-title {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.25;
  color: var(--pondok-forest);
  text-transform: uppercase;
  max-width: min(300px, 46vw);
}
@media (max-width: 520px) {
  .pondok-topbar-brand-title {
    font-size: 0.58rem;
    letter-spacing: 0.05em;
    max-width: 42vw;
  }
  .pondok-topbar-logo {
    width: 38px;
    height: 38px;
  }
}

.pondok-topbar-end {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pondok-greet {
  text-align: right;
  min-width: 0;
}

.pondok-greet-salam {
  margin: 0;
  font-size: 0.9rem;
  color: var(--pondok-forest);
  font-weight: 500;
}

.pondok-greet-salam strong {
  font-weight: 700;
  color: #0f2e26;
}

.pondok-greet-date {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #5c6b66;
  font-weight: 500;
}

.pondok-greet-hijri {
  color: var(--pondok-gold);
  font-weight: 600;
}

.pondok-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(184, 148, 46, 0.45);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(20, 61, 50, 0.1);
}

.pondok-logout {
  border-color: rgba(20, 61, 50, 0.15) !important;
  color: var(--pondok-forest) !important;
}

.pondok-workspace .main-content {
  flex: 1;
  max-width: 1240px;
  width: 100%;
  margin-left: 0;
  margin-right: auto;
  padding: 1rem 1.25rem 2rem 1.65rem;
  box-sizing: border-box;
}

.pondok-workspace .main-content.dash-madin-dashboard {
  max-width: none;
  width: 100%;
  padding-right: 0.75rem;
  box-sizing: border-box;
}

.pondok-app-footer {
  margin-top: auto;
  padding: 0.85rem 1.65rem;
  text-align: center;
  font-size: 0.78rem;
  color: #5c6b66;
  border-top: 1px solid rgba(20, 61, 50, 0.08);
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 959px) {
  .pondok-menu-btn {
    display: inline-flex;
  }
  .pondok-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
  }
  .pondok-sidebar.pondok-sidebar-open {
    transform: translateX(0);
  }
}

@media (min-width: 960px) {
  .pondok-sidebar-scrim {
    display: none !important;
  }
}

/* Dashboard pondok */
.page-dashboard.page-pondok {
  background: linear-gradient(180deg, #e6e2d8 0%, var(--pondok-cream) 32%, #f4efe4 100%);
}

.page-pondok .dash-hero {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(212, 184, 74, 0.15), transparent 50%),
    linear-gradient(128deg, var(--pondok-forest) 0%, var(--pondok-forest-mid) 45%, #0f2e26 100%);
  border: 1px solid rgba(212, 184, 74, 0.25);
}

.page-pondok .dash-stat {
  background: linear-gradient(145deg, #fffefb 0%, var(--pondok-cream-card) 100%);
  border-color: rgba(20, 61, 50, 0.12);
}

.page-pondok .dash-stat-value {
  color: var(--pondok-forest);
}

.page-pondok .dash-stat-label {
  color: #5a6d68;
}

.page-pondok.page-dashboard .dash-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 640px;
}

.page-pondok.page-dashboard .dash-madin-dashboard .dash-stats {
  max-width: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 1100px) {
  .page-pondok.page-dashboard .dash-madin-dashboard .dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .page-pondok.page-dashboard .dash-stats {
    grid-template-columns: 1fr;
    max-width: none;
  }
  .page-pondok.page-dashboard .dash-madin-dashboard .dash-stats {
    grid-template-columns: 1fr;
  }
}

.pondok-quick-letter {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--pondok-forest);
  line-height: 1;
}

.pondok-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .pondok-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .pondok-quick-grid {
    grid-template-columns: 1fr;
  }
}

.pondok-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  min-height: 112px;
  padding: 1rem 0.85rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--pondok-forest);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.35;
  background: linear-gradient(160deg, #fffefb 0%, var(--pondok-cream-card) 55%, #fff 100%);
  border: 1px solid rgba(20, 61, 50, 0.1);
  box-shadow: 0 4px 18px rgba(20, 61, 50, 0.07);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  position: relative;
  overflow: hidden;
}

.pondok-quick-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(184, 148, 46, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

.pondok-quick-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(20, 61, 50, 0.12);
  border-color: rgba(184, 148, 46, 0.35);
}

.pondok-quick-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(30, 92, 74, 0.12), rgba(184, 148, 46, 0.12));
  color: var(--pondok-forest-mid);
  position: relative;
  z-index: 1;
}

.pondok-quick-card span:last-child {
  position: relative;
  z-index: 1;
}

.pondok-section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5c6b66;
  margin: 0 0 0.85rem;
}

/* Dashboard MADIN — layout referensi (hero + kolom widget jam/kalender) */
.dash-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(272px, 340px);
  gap: 1.5rem;
  align-items: start;
}

/* Kolom widget tetap sempit (standar), menempel kanan; konten utama memakai sisa lebar penuh */
.dash-madin-dashboard .dash-layout {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1rem;
  align-items: start;
}

.dash-layout-primary {
  min-width: 0;
}

.dash-layout-widgets {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 4.75rem;
}

.dash-madin-dashboard .dash-layout-widgets {
  width: 100%;
  min-width: 0;
}

.dash-madin-dashboard .dash-layout-widgets > .dash-widget {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }
  .dash-madin-dashboard .dash-layout {
    grid-template-columns: 1fr;
  }
  .dash-layout-widgets {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .dash-widget-clock,
  .dash-widget-calendar,
  .dash-widget-quick {
    flex: 1 1 280px;
    max-width: 360px;
  }
}

.dash-hero-madin {
  border-radius: 22px;
}

.dash-welcome-heading-madin {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0 0 0.5rem;
}

.dash-line-salam {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 600;
  opacity: 0.95;
  letter-spacing: 0.02em;
}

.dash-line-welcome {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  line-height: 1.2;
}

.dash-welcome-strong {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95em;
}

.dash-welcome-name {
  font-weight: 700;
  opacity: 0.95;
}

.dash-madin-dashboard .dash-hero-copy h1.dash-welcome-heading-madin {
  margin-bottom: 0.5rem;
}

.dash-madin-dashboard .dash-stat-label {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.68rem;
  font-weight: 700;
}

.dash-madin-dashboard .dash-hero-aside-card {
  text-align: right;
  align-self: flex-start;
  max-width: 15rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.dash-madin-dashboard .dash-hero-aside-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.35rem;
}

.dash-madin-dashboard .dash-hero-aside-text {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.96);
}

.dash-madin-dashboard .dash-hero-aside-card-tip .dash-hero-aside-text {
  font-size: 0.78rem;
  font-weight: 500;
}

.dash-madin-dashboard .pondok-section-title-dash,
.dash-madin-dashboard .pondok-quick-grid-dash {
  margin-left: 0;
  width: 100%;
  max-width: none;
}

.pondok-section-title-dash {
  margin-top: 0.25rem;
}

.pondok-quick-grid-dash .pondok-quick-letter {
  font-size: 1.5rem;
}

.pondok-quick-grid-dash .pondok-quick-ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.pondok-quick-grid-dash .pondok-quick-card {
  min-height: 120px;
  border-radius: 18px;
}

.dash-foot-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 52rem;
}

.dash-madin-dashboard .dash-foot-note {
  max-width: none;
}

/* Jam analog */
.dash-widget {
  background: linear-gradient(160deg, #fffefb 0%, var(--pondok-cream-card) 100%);
  border: 1px solid rgba(20, 61, 50, 0.1);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 6px 24px rgba(20, 61, 50, 0.08);
}

.dash-clock-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

.dash-clock-meta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 11rem;
}

.dash-digital-date-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.65rem 0.85rem;
  flex-wrap: wrap;
  width: 100%;
}

.dash-digital-date-row .dash-digital-block {
  flex-shrink: 0;
}

.dash-digital-date-row .dash-widget-date {
  flex: 1 1 9rem;
  margin: 0;
  text-align: right;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.dash-widget-date {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--pondok-forest);
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 61, 50, 0.12);
}

.dash-digital-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dash-digital-label {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #6b7a74;
}

.dash-digital-time {
  font-size: 1.28rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--pondok-forest);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.dash-madin-dashboard .dash-widget-clock {
  padding: 1rem 1rem 1.15rem;
}

.dash-madin-dashboard .dash-widget-clock .dash-analog-clock {
  flex-shrink: 0;
  transform: scale(0.9);
  transform-origin: left center;
}

.dash-analog-clock {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dash-ac-face {
  position: relative;
  width: 220px;
  height: 220px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(20, 61, 50, 0.08),
    inset 0 0 0 6px rgba(244, 239, 228, 0.9),
    inset 0 2px 12px rgba(20, 61, 50, 0.06),
    0 12px 32px rgba(20, 61, 50, 0.12);
}

.dash-ac-label {
  position: absolute;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--pondok-forest);
  opacity: 0.55;
}

.dash-ac-l12 {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}
.dash-ac-l3 {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}
.dash-ac-l6 {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}
.dash-ac-l9 {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.dash-ac-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: 50% 100%;
  border-radius: 2px;
  pointer-events: none;
}

.dash-ac-hour {
  width: 5px;
  height: 52px;
  margin-left: -2.5px;
  background: linear-gradient(180deg, var(--pondok-forest-mid), var(--pondok-forest));
  z-index: 2;
}

.dash-ac-minute {
  width: 3px;
  height: 72px;
  margin-left: -1.5px;
  background: linear-gradient(180deg, #2d4a42, var(--pondok-forest));
  z-index: 3;
}

.dash-ac-second {
  width: 2px;
  height: 82px;
  margin-left: -1px;
  background: linear-gradient(180deg, #b8942e, #8b6914);
  z-index: 4;
}

.dash-ac-cap {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pondok-forest);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.dash-ac-tick {
  display: none;
}

.dash-widget-calendar {
  min-height: auto;
  display: block;
  padding: 1rem 1rem 1.1rem;
}

.dash-cal {
  width: 100%;
}

.dash-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.dash-cal-heading {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.dash-cal-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--pondok-forest);
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.dash-cal-today-link {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--pondok-gold);
  text-decoration: none;
}
.dash-cal-today-link:hover {
  text-decoration: underline;
}

.dash-cal-nav-btn {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(20, 61, 50, 0.14);
  background: #fff;
  color: var(--pondok-forest);
  font-size: 1.15rem;
  line-height: 1;
  text-decoration: none;
  font-weight: 700;
}
.dash-cal-nav-btn:hover {
  background: var(--pondok-cream-card);
}

.dash-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  margin-bottom: 0.35rem;
}

.dash-cal-wd {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #6b7a74;
  text-transform: uppercase;
}

.dash-cal-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.dash-cal-cell {
  aspect-ratio: 1;
  max-height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
}

.dash-cal-empty {
  visibility: hidden;
  pointer-events: none;
}

.dash-cal-day {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(20, 61, 50, 0.08);
  color: #2d3d38;
}

.dash-cal-today {
  background: linear-gradient(145deg, var(--pondok-forest-mid), var(--pondok-forest));
  color: #fff;
  border-color: rgba(20, 61, 50, 0.25);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(20, 61, 50, 0.2);
}

.dash-widget-quick {
  padding: 1rem 1.1rem 1.15rem;
}

.dash-widget-quick-title {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pondok-forest);
}

.dash-quick-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dash-quick-list a {
  display: block;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pondok-forest);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.dash-quick-list a:hover {
  background: rgba(20, 61, 50, 0.06);
  border-color: rgba(20, 61, 50, 0.1);
  text-decoration: none;
}

.dash-widget-quote {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.65;
  color: #1a332b;
  font-family: 'Times New Roman', 'Arabic Typesetting', 'Segoe UI Historic', serif;
}

.dash-widget-quote-id {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #5c6b66;
  font-style: italic;
}

.dash-widget-quote-id .muted {
  font-style: normal;
}

/* Halaman modul (kartu & toolbar) */
.pondok-page-head {
  margin-bottom: 1.25rem;
}

.pondok-page-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--pondok-forest);
  letter-spacing: -0.02em;
}

.pondok-page-head .page-lead,
.pondok-page-lead {
  margin: 0;
  font-size: 0.9rem;
  color: #5c6b66;
  max-width: 42rem;
  line-height: 1.5;
}

.pondok-card {
  background: linear-gradient(180deg, #fffefb 0%, var(--pondok-cream-card) 100%);
  border-radius: 16px;
  border: 1px solid rgba(20, 61, 50, 0.1);
  box-shadow: 0 4px 20px rgba(20, 61, 50, 0.06);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
}

.pondok-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(20, 61, 50, 0.08);
}

.pondok-card-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pondok-forest);
}

.pondok-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.pondok-profile-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(184, 148, 46, 0.25);
}

@media (max-width: 640px) {
  .pondok-profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pondok-profile-card .pondok-qr {
    margin: 0 auto;
  }
}

.pondok-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--pondok-forest-soft), var(--pondok-forest));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  border: 3px solid rgba(184, 148, 46, 0.4);
}

.pondok-qr {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(90deg, #143d32 0, #143d32 4px, #fff 4px, #fff 8px),
    repeating-linear-gradient(0deg, #143d32 0, #143d32 4px, #fff 4px, #fff 8px);
  background-blend-mode: multiply;
  border: 2px solid rgba(20, 61, 50, 0.2);
}

.pondok-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.pondok-tab {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--pondok-forest);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(20, 61, 50, 0.12);
}
.pondok-tab:hover {
  text-decoration: none;
  border-color: rgba(184, 148, 46, 0.4);
}
.pondok-tab-active {
  background: linear-gradient(135deg, var(--pondok-forest-mid), var(--pondok-forest));
  color: #fff !important;
  border-color: transparent;
}

.pondok-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pondok-badge-ok {
  background: #dcfce7;
  color: #166534;
}
.pondok-badge-warn {
  background: #fef3c7;
  color: #a16207;
}
.pondok-badge-bad {
  background: #fee2e2;
  color: #b91c1c;
}

.pondok-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(20, 61, 50, 0.08);
}

.page-pondok .btn-primary {
  background: linear-gradient(135deg, var(--pondok-forest-mid) 0%, var(--pondok-forest) 100%);
  box-shadow: 0 4px 14px rgba(20, 61, 50, 0.3);
}

.page-pondok .btn-secondary {
  background: linear-gradient(135deg, #5c6b66 0%, #3d4a46 100%);
  box-shadow: 0 4px 12px rgba(61, 74, 70, 0.25);
}

.page-pondok .field input:focus,
.page-pondok .field select:focus {
  border-color: var(--pondok-forest-mid);
  box-shadow: 0 0 0 3px rgba(30, 92, 74, 0.2);
}

/* Login pondok */
.page-login.pondok-login .login-bg {
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(30, 92, 74, 0.18), transparent),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(184, 148, 46, 0.12), transparent),
    linear-gradient(165deg, #faf7f0 0%, #f0ebe0 45%, #e8f5f0 100%);
}

.page-login.pondok-login .login-brand h1 {
  color: var(--pondok-forest);
}

.page-login.pondok-login .btn-primary {
  background: linear-gradient(135deg, var(--pondok-forest-mid) 0%, var(--pondok-forest) 100%);
  box-shadow: 0 4px 14px rgba(20, 61, 50, 0.3);
}

/* Login — popup pilih akses */
.page-login.login-step-access .login-shell {
  position: relative;
  z-index: 1;
  filter: saturate(0.92);
  opacity: 0.88;
  pointer-events: none;
  user-select: none;
}

.login-access-pop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.login-access-scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 48, 40, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.login-access-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(20, 61, 50, 0.1);
  box-shadow:
    0 24px 48px rgba(20, 48, 40, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  animation: login-access-in 0.35s ease-out;
}

@keyframes login-access-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-access-dialog-head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.login-access-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pondok-forest-mid, #1e5c4a);
}

.login-access-heading {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pondok-forest, #143d32);
}

.login-access-lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted, #64748b);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.login-access-alert {
  margin-bottom: 1rem;
}

.login-access-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .login-access-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }
}

.login-access-card {
  margin: 0;
}

.login-access-card-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  min-height: 7.5rem;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid rgba(20, 61, 50, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffef9 0%, #f6f3ea 100%);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
}

.login-access-card-btn:hover {
  border-color: rgba(184, 148, 46, 0.45);
  box-shadow: 0 8px 20px rgba(20, 48, 40, 0.1);
  transform: translateY(-2px);
}

.login-access-card-btn:focus-visible {
  outline: 2px solid var(--pondok-forest-mid, #1e5c4a);
  outline-offset: 2px;
}

.login-access-card-madin .login-access-card-btn {
  background: linear-gradient(145deg, #f0faf4 0%, #dcefe4 45%, #c5e4d4 100%);
  border-color: rgba(30, 92, 74, 0.35);
  box-shadow: 0 6px 18px rgba(30, 92, 74, 0.15);
}

.login-access-card-madin .login-access-card-btn:hover {
  border-color: var(--pondok-forest-mid, #1e5c4a);
  box-shadow: 0 10px 28px rgba(30, 92, 74, 0.22);
}

.login-access-card-kicker {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pondok-forest-mid, #1e5c4a);
  margin-bottom: 0.35rem;
}

.login-access-card-soon .login-access-card-kicker {
  color: #78716c;
}

.login-access-card-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--pondok-forest, #143d32);
  margin-bottom: 0.35rem;
}

.login-access-card-soon .login-access-card-name {
  color: #44403c;
}

.login-access-card-desc {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted, #64748b);
  margin-top: auto;
}

.page-login.login-step-credentials .login-shell {
  filter: none;
  opacity: 1;
  pointer-events: auto;
  user-select: auto;
}

.login-madin-badge {
  margin: 0 0 0.75rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
  text-align: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(30, 92, 74, 0.12), rgba(184, 148, 46, 0.1));
  color: var(--pondok-forest, #143d32);
  border: 1px solid rgba(30, 92, 74, 0.2);
}

.login-row-actions {
  margin-top: 0.75rem;
}
