* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.bg-gradient {
  min-height: 100vh;
  background: linear-gradient(135deg, #1d3557, #457b9d, #f4a261);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d3557;
}

.bg-light {
  min-height: 100vh;
  background: #f1f3f5;
}

.login-page {
  width: 100%;
  max-width: 1100px;
  padding: 16px;
}

.login-card {
  background: #f8f9fa;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  display: flex;
  overflow: hidden;
}

.login-left,
.login-right {
  flex: 1;
  padding: 32px;
}

.branding-badge {
  background: rgba(255,255,255,0.85);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #e76f51;
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.branding-main-title {
  margin-top: 24px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: #1d3557;
}

.branding-subtitle {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(29,53,87,0.9);
}

.branding-badges-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,0.9);
  color: #264653;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.login-form-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.login-form-card h2 {
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ced4da;
  font-size: 14px;
}

.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ced4da;
  font-size: 14px;
}

.form-error {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #a13f2c;
}

.stepper-wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.stepper-item {
  text-align: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: #e9ecef;
  color: #495057;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #dee2e6;
}

.stepper-item.active {
  background: #1d3557;
  border-color: #1d3557;
  color: #ffffff;
}

.stepper-item.done {
  background: #2b8a3e;
  border-color: #2b8a3e;
  color: #ffffff;
}

/* Accordion (Edit Siswa) */
.form-actions-sticky {
  position: sticky;
  top: 12px;
  z-index: 20;
  background: rgba(241, 243, 245, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(233, 236, 239, 0.9);
  border-radius: 18px;
  padding: 10px;
  margin-bottom: 14px;
}

.form-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details.accordion-item {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 18px;
  overflow: hidden;
}

.accordion-summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-weight: 900;
  color: #1d3557;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.accordion-summary::-webkit-details-marker {
  display: none;
}

.accordion-summary::after {
  content: "▾";
  font-size: 14px;
  opacity: 0.8;
}

details[open] > .accordion-summary::after {
  content: "▴";
}

.accordion-body {
  padding: 12px 14px 2px;
  border-top: 1px solid #e9ecef;
}

.foto-preview {
  margin-top: 10px;
}

.foto-preview img {
  width: 140px;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
  background: #ffffff;
}

/* SPMB */
.spmb-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
}

.spmb-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 16px;
  border: 1px solid #e9ecef;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.spmb-muted {
  margin-top: 6px;
  font-size: 12px;
  color: #6c757d;
}

.spmb-muted a {
  color: #1d3557;
  font-weight: 600;
}

.spmb-muted a:hover {
  text-decoration: underline;
}

/* (kamera scanner dihapus; mode scanner alat/keyboard) */

.spmb-status {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1d3557;
}

.spmb-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.spmb-preview {
  background: #f8f9fa;
  border: 1px dashed #dee2e6;
  border-radius: 16px;
  padding: 12px;
}

.spmb-kv {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.spmb-kv li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
  font-size: 13px;
}

.spmb-kv .k {
  font-weight: 800;
  color: #1d3557;
}

.spmb-kv .v {
  color: #264653;
  border-bottom: 1px dashed #dee2e6;
  padding-bottom: 4px;
}

/* SPMB detail-like preview */
.spmb-detail {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  padding: 12px;
}

.spmb-detail-head {
  display: grid;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 10px;
}

.spmb-detail-name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d3557;
}

.spmb-detail-meta {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: #264653;
}

.spmb-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.spmb-detail-box {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 10px;
}

.spmb-detail-box h5 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d3557;
}

.spmb-detail-box p {
  margin: 0 0 6px;
  font-size: 13px;
  color: #264653;
}

.spmb-detail-box p:last-child {
  margin-bottom: 0;
}

/* Photo modal */
.spmb-photo-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.spmb-photo-modal.open {
  display: flex;
}

.spmb-photo-dialog {
  width: min(560px, 100%);
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.4);
}

.spmb-photo-head {
  padding: 12px 14px;
  background: linear-gradient(135deg, #1d3557, #2b5876);
  color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.spmb-photo-body {
  background: #0b2a3f;
  aspect-ratio: 4 / 3;
}

.spmb-photo-video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.spmb-photo-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spmb-photo-timer {
  position: absolute;
  right: 12px;
  top: 8px;
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
}

.spmb-photo-actions {
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

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

@media (max-width: 900px) {
  .spmb-grid { grid-template-columns: 1fr; }
  .spmb-kv li { grid-template-columns: 1fr; }
}

/* Buku Induk - A4 print */
.a4-toolbar {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
}

.a4-page {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto 18px;
  background: #ffffff;
  color: #111;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
  padding: 14mm 14mm 16mm;
}

.a4-header {
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  gap: 12px;
  align-items: center;
  border-bottom: 2px solid #111;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.a4-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.a4-title h1 {
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  margin: 0;
}

.a4-title p {
  margin-top: 4px;
  text-align: center;
  font-size: 12px;
}

.a4-photo {
  display: flex;
  justify-content: flex-end;
}

.a4-photo img,
.a4-photo-empty {
  width: 110px;
  height: 140px;
  border: 2px solid #111;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.a4-topmeta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
  font-size: 12px;
  margin: 10px 0 12px;
}

.a4-section {
  margin-top: 10px;
}

.a4-section-title {
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.a4-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.a4-table td {
  border-bottom: 1px dotted #333;
  padding: 6px 6px;
  vertical-align: top;
}

.a4-table td.n {
  width: 26px;
}

.a4-table td.k {
  width: 260px;
  font-weight: 700;
}

.a4-footer {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.a4-sign {
  width: 220px;
  font-size: 12px;
  text-align: center;
}

.a4-line {
  height: 28px;
  border-bottom: 1px solid #111;
  margin: 8px 0 8px;
}

@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .a4-page {
    width: auto;
    min-height: auto;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 12mm;
  }
  @page {
    size: A4;
    margin: 10mm;
  }
}

.btn-primary {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9f1c, #e76f51);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

.btn-primary:hover {
  opacity: 0.92;
}

/* Buttons (secondary / table) */
.btn-table {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: #1d3557;
  background: rgba(29,53,87,0.08);
  border: 1px solid rgba(29,53,87,0.18);
  white-space: nowrap;
}

.btn-table:hover {
  background: rgba(29,53,87,0.12);
}

/* Alerts */
.alert {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
}

.alert-success {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.35);
  color: #1f7a45;
}

.alert-error {
  background: rgba(231, 111, 81, 0.12);
  border: 1px solid rgba(231, 111, 81, 0.35);
  color: #a13f2c;
}

/* Detail siswa — kartu profil modern */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.detail-link-pengaturan {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.detail-link-pengaturan:hover {
  color: #1e40af;
}

.student-profile {
  --sp-navy: #0f2744;
  --sp-navy-mid: #1d3557;
  --sp-accent: #f4c430;
  --sp-accent-soft: #fde68a;
  --sp-surface: #ffffff;
  --sp-line: #e8edf3;
  --sp-muted: #64748b;
  max-width: 1120px;
}

/* —— Kartu profil siswa (detail) —— */
.profile-hero {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  color: #f8fafc;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 24px 60px rgba(15, 23, 42, 0.28);
  isolation: isolate;
}

.profile-hero--modern .profile-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, #0a1628 0%, #152a45 38%, #1e3a5f 68%, #0f2744 100%);
}

.profile-hero--modern.profile-hero--custom-bg .profile-hero__bg {
  background-image:
    linear-gradient(
      125deg,
      rgba(10, 22, 40, 0.88) 0%,
      rgba(21, 42, 69, 0.82) 40%,
      rgba(30, 58, 95, 0.78) 70%,
      rgba(15, 39, 68, 0.85) 100%
    ),
    var(--profile-hero-bg-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.profile-hero--modern .profile-hero__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
  pointer-events: none;
}

.profile-hero--modern .profile-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  animation: profile-orb-float 8s ease-in-out infinite;
}

.profile-hero--modern .profile-hero__orb--1 {
  width: 220px;
  height: 220px;
  top: -60px;
  right: 8%;
  background: rgba(59, 130, 246, 0.45);
}

.profile-hero--modern .profile-hero__orb--2 {
  width: 180px;
  height: 180px;
  bottom: -40px;
  left: 12%;
  background: rgba(244, 196, 48, 0.28);
  animation-delay: -3s;
}

@keyframes profile-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -8px) scale(1.05); }
}

.profile-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: clamp(20px, 4vw, 32px);
  padding: clamp(24px, 4.5vw, 40px);
}

.profile-hero__aside {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: clamp(168px, 20vw, 220px);
}

.profile-hero--modern .profile-avatar {
  flex: 1 1 auto;
  width: 100%;
  min-height: clamp(220px, 32vh, 340px);
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: none;
}

.profile-avatar {
  position: relative;
  flex-shrink: 0;
  width: clamp(120px, 22vw, 168px);
  height: clamp(120px, 22vw, 168px);
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #0f172a;
}

.profile-avatar--ring {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.profile-avatar__ring {
  position: absolute;
  inset: -3px;
  border-radius: 27px;
  padding: 3px;
  background: linear-gradient(135deg, #f4c430, #60a5fa, #f4c430);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.profile-avatar__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #3b82f6 0%, #1e40af 50%, #0f2744 100%);
}

.profile-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.profile-status--aktif {
  background: rgba(34, 197, 94, 0.25);
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.4);
}

.profile-status--mutasi {
  background: rgba(251, 191, 36, 0.25);
  color: #fde68a;
}

.profile-status--keluar {
  background: rgba(248, 113, 113, 0.22);
  color: #fecaca;
}

.profile-status--lulus {
  background: rgba(96, 165, 250, 0.25);
  color: #bfdbfe;
}

.profile-hero__aside-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  text-align: center;
}

.profile-jk-pill {
  font-size: 11px;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.55);
}

.profile-hero__body {
  flex: 1;
  min-width: min(100%, 260px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-hero__head {
  flex-shrink: 0;
}

.profile-hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.profile-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.6);
  margin: 0 0 8px;
}

.profile-hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sp-accent);
  box-shadow: 0 0 12px rgba(244, 196, 48, 0.8);
}

.profile-hero__name {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-transform: none;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.profile-hero__sub {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(248, 250, 252, 0.55);
  max-width: 52ch;
}

.profile-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.profile-hero__actions--footer {
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  gap: 10px;
}

.profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.profile-btn__ico {
  font-size: 14px;
  line-height: 1;
  opacity: 0.9;
}

.profile-btn:active {
  transform: scale(0.97);
}

.profile-btn--glass {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.profile-btn--glass:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.profile-btn--solid {
  color: #0f2744;
  background: linear-gradient(135deg, #f4c430 0%, #fde047 100%);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(244, 196, 48, 0.4);
}

.profile-btn--solid:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 28px rgba(244, 196, 48, 0.55);
  transform: translateY(-1px);
}

.profile-btn--compact {
  font-size: 12px;
  padding: 10px 14px;
}

/* Legacy ghost (panel forms) */
.profile-btn--ghost {
  color: #0f2744;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.profile-btn--ghost:hover {
  background: #ffffff;
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.profile-meta-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.profile-meta-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.profile-meta-card--accent {
  background: rgba(244, 196, 48, 0.12);
  border-color: rgba(244, 196, 48, 0.28);
}

.profile-meta-card--jurusan {
  background: rgba(244, 196, 48, 0.1);
  border-color: rgba(244, 196, 48, 0.22);
}

.profile-meta-card--wide {
  grid-column: span 2;
}

@media (max-width: 520px) {
  .profile-meta-card--wide {
    grid-column: span 1;
  }
}

.profile-meta-card__icon {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
  opacity: 0.85;
}

.profile-meta-card__tingkat {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fde68a;
  background: rgba(244, 196, 48, 0.2);
  border: 1px solid rgba(244, 196, 48, 0.35);
}

.profile-meta-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.profile-meta-card__k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.5);
}

.profile-meta-card__v {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: break-word;
}

.profile-meta-card__v--jurusan {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.profile-meta-card__v-sub {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(248, 250, 252, 0.72);
  margin-top: 2px;
}

/* Legacy chips (jika masih dipakai) */
.profile-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.profile-chip__k {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.65);
}

.profile-chip__v {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.profile-panels {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.profile-panel {
  background: var(--sp-surface);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(15, 39, 68, 0.06);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 12px 32px rgba(15, 39, 68, 0.08);
}

.profile-panel__title {
  margin: 0;
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sp-navy);
  background: linear-gradient(90deg, var(--sp-accent) 0%, var(--sp-accent-soft) 100%);
}

.profile-kv {
  padding: 6px 18px 16px;
}

.profile-kv__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sp-line);
  font-size: 14px;
}

.profile-kv__row:last-child {
  border-bottom: none;
}

.profile-kv__row--block {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.profile-kv__row--block .profile-kv__value {
  text-align: left;
}

.profile-kv__label {
  flex-shrink: 0;
  max-width: 46%;
  font-weight: 600;
  font-size: 12px;
  color: var(--sp-muted);
}

.profile-kv__value {
  text-align: right;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

@media (max-width: 520px) {
  .profile-kv__row:not(.profile-kv__row--block) {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .profile-kv__label {
    max-width: none;
  }

  .profile-kv__value {
    text-align: left;
  }

  .profile-hero__actions,
  .profile-hero__actions--footer {
    width: 100%;
    justify-content: stretch;
  }

  .profile-btn {
    flex: 1;
    min-width: calc(50% - 4px);
  }

  .profile-hero__aside {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .profile-hero--modern .profile-avatar {
    min-height: 200px;
    aspect-ratio: 1;
  }

  .profile-hero__top {
    flex-direction: column;
  }
}

/* Pengaturan kartu profil */
.page-pengaturan-profil .pkp-card {
  max-width: 720px;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.page-pengaturan-profil .pkp-card__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #0f2744;
}

.page-pengaturan-profil .pkp-card__desc {
  margin: 0 0 20px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.page-pengaturan-profil .pkp-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin: 0 0 8px;
}

.page-pengaturan-profil .pkp-preview-wrap {
  margin-bottom: 20px;
}

.page-pengaturan-profil .pkp-preview {
  min-height: 140px;
  padding: 24px;
}

.page-pengaturan-profil .pkp-preview__sample {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #f8fafc;
}

.page-pengaturan-profil .pkp-preview__sample span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.page-pengaturan-profil .pkp-preview__sample strong {
  font-size: 1.25rem;
}

.page-pengaturan-profil .pkp-current {
  font-size: 13px;
  margin: 0 0 16px;
  color: #334155;
}

.page-pengaturan-profil .pkp-current--muted {
  color: #94a3b8;
}

.page-pengaturan-profil .pkp-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

.page-pengaturan-profil .pkp-form-reset {
  margin-top: 16px;
}

.login-info {
  font-size: 11px;
  color: #6c757d;
  margin-top: 10px;
}

/* DASHBOARD */
.dashboard-page {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #1d3557, #2b5876);
  color: #fff;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sidebar-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.sidebar-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.sidebar-title h1 {
  font-size: 18px;
}

.sidebar-title p {
  font-size: 11px;
  opacity: 0.9;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  margin-right: -4px;
}

.menu-item.menu-item--nav-bottom {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-menu::-webkit-scrollbar {
  width: 6px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 6px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #e9ecef;
  font-size: 14px;
}

.menu-item.active,
.menu-item:hover {
  background: rgba(255,255,255,0.15);
}

/* Sidebar: grup Master data */
.menu-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-group__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #e9ecef;
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.menu-group__toggle:hover {
  background: rgba(255,255,255,0.1);
}

.menu-group__toggle--active,
.menu-group--open .menu-group__toggle {
  background: rgba(255,255,255,0.12);
}

.menu-group__chev {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.menu-group--open .menu-group__chev {
  transform: rotate(180deg);
}

.menu-group__sub {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0 6px 6px;
  margin-left: 4px;
  border-left: 2px solid rgba(255,255,255,0.15);
}

.menu-group--open .menu-group__sub {
  display: flex;
}

.menu-item.menu-item--sub {
  padding: 8px 10px 8px 12px;
  font-size: 13px;
  border-radius: 8px;
  opacity: 0.95;
}

.menu-item.menu-item--sub .icon {
  font-size: 15px;
}

.menu-item.menu-item--sub.active,
.menu-item.menu-item--sub:hover {
  background: rgba(255,255,255,0.18);
}

/* Halaman placeholder data guru */
.page-data-guru .dg-placeholder-card {
  margin-top: 8px;
}

.page-data-guru .dg-placeholder-inner {
  max-width: 520px;
  padding: 28px 26px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.page-data-guru .dg-placeholder-icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.page-data-guru .dg-placeholder-inner h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.page-data-guru .dg-placeholder-inner p {
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 10px;
}

.page-data-guru .dg-placeholder-muted {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 0 !important;
}

.page-data-mutasi .ds-table-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

/* Data mutasi: semua kolom data rata tengah (selaras dengan export PDF/Excel) */
.page-data-mutasi .ds-table th,
.page-data-mutasi .ds-table td {
  text-align: center;
  vertical-align: middle;
}

.page-data-mutasi .ds-table .ds-cell-name {
  text-align: center;
}

.page-data-mutasi .ds-table .ds-nis {
  display: inline-block;
  text-align: center;
}

.page-data-mutasi .ds-table .ds-col-actions .ds-btn-action {
  margin-left: auto;
  margin-right: auto;
}

.page-pengaturan-kelas .pk-toolbar {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
}

.page-pengaturan-kelas .pk-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.page-pengaturan-kelas .pk-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-pengaturan-kelas .pk-tab {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.page-pengaturan-kelas .pk-tab--active {
  background: #2563eb;
  color: #fff;
}

.page-pengaturan-kelas .pk-section {
  padding: 1.1rem 1.2rem;
}

.page-pengaturan-kelas .pk-desc {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.page-pengaturan-kelas .pk-input-num {
  width: 72px;
  padding: 0.4rem 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.page-pengaturan-kelas .pk-muted {
  color: #94a3b8;
}

.page-pengaturan-kelas .pk-filters-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.page-pengaturan-kelas .pk-preview {
  margin-top: 1rem;
  font-size: 14px;
}

.page-pengaturan-kelas .pk-aksi-cell {
  min-width: 200px;
}

.page-pengaturan-kelas .pk-aksi-form {
  margin: 0;
}

.page-pengaturan-kelas .btn-table--primary {
  background: #ea580c;
  color: #fff;
  border: none;
  font-weight: 600;
}

.page-pengaturan-kelas .btn-table--primary:hover {
  background: #c2410c;
}

.page-pengaturan-kelas .pk-eksekusi-box {
  padding: 1rem 1.1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.page-pengaturan-kelas .pk-eksekusi-box h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.page-pengaturan-kelas .pk-eksekusi-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  font-size: 14px;
}

.page-pengaturan-kelas .pk-eksekusi-list li {
  margin-bottom: 0.5rem;
}

.page-pengaturan-kelas .pk-aksi-form-inline {
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.sidebar-footer {
  margin-top: auto;
  font-size: 12px;
}

.sidebar-tip {
  font-size: 11px;
  opacity: 0.9;
}

.main-content {
  flex: 1;
  padding: 20px 26px;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sidebar-toggle {
  display: none;
  margin-bottom: 8px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #1d3557;
  font-size: 20px;
  font-weight: 800;
}

.sidebar-backdrop {
  display: none;
}

/* Layar lebar: sidebar tetap di kiri (tidak ikut scroll halaman) */
@media (min-width: 901px) {
  .dashboard-page {
    display: block;
    min-height: 100vh;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
  }

  .main-content {
    margin-left: 260px;
    min-height: 100vh;
    box-sizing: border-box;
  }
}

/* HOME HERO */
.home-hero {
  margin-bottom: 20px;
}

.home-hero-image {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 480px;
  background-color: #dbe4ff;
  background-image: url("/assets/img/sekolah.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 14px 35px rgba(0,0,0,0.18);
}

.home-hero-overlay {
  position: relative;
  z-index: 1;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: #1d3557;
}

.home-hero-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.home-hero-subtitle {
  font-size: 13px;
  margin-bottom: 12px;
}

.hero-left {
  max-width: 55%;
  background: rgba(255,255,255,0.78);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.hero-indicators {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-indicator {
  padding: 8px 12px;
  border-radius: 12px;
  background: #ffffff;
  min-width: 110px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  color: #1d3557;
}

.hero-indicator .label {
  display: block;
  font-size: 11px;
  opacity: 0.95;
}

.hero-indicator .value {
  font-size: 20px;
  font-weight: 800;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hero-indicator-main {
  background: linear-gradient(135deg, #ffe066, #fab005);
}

.hero-indicator-boy {
  background: linear-gradient(135deg, #4dabf7, #228be6);
  color: #f8f9fa;
}

.hero-indicator-girl {
  background: linear-gradient(135deg, #ff99c8, #f06595);
  color: #f8f9fa;
}

.hero-jurusan-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-jurusan-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 220px;
}

.hero-jurusan-card {
  padding: 8px 12px;
  border-radius: 12px;
  background: #ffffff;
  color: #1d3557;
  box-shadow: 0 6px 16px rgba(0,0,0,0.16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.hero-jurusan-card .label {
  font-weight: 600;
}

.hero-jurusan-card .value {
  font-weight: 700;
}

.hero-jurusan-tkr {
  background: linear-gradient(135deg, #ffd166, #f7971e);
}

.hero-jurusan-tsm {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #f8f9fa;
}

.hero-jurusan-dkv {
  background: linear-gradient(135deg, #ff9a9e, #fecfef);
}

.hero-jurusan-lpkc {
  background: linear-gradient(135deg, #43cea2, #185a9d);
  color: #f8f9fa;
}

.hero-jurusan-perhotelan {
  background: linear-gradient(135deg, #f6d365, #fda085);
}

/* Dashboard: per kelas & yatim/piatu */
.dashboard-extra {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.dash-panel {
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.dash-panel__title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.dash-panel__meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

.dash-panel__hint {
  margin: -6px 0 12px;
  font-size: 13px;
  color: #64748b;
}

.dash-panel__empty {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
}

.dash-kelas-scroll {
  max-height: 280px;
  overflow-y: auto;
}

.dash-kelas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.dash-kelas-table th,
.dash-kelas-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.dash-kelas-table th {
  font-weight: 700;
  color: #475569;
  background: #f8fafc;
  position: sticky;
  top: 0;
}

.dash-kelas-table td:nth-child(2),
.dash-kelas-table td:nth-child(3),
.dash-kelas-table td:nth-child(4),
.dash-kelas-table th:nth-child(2),
.dash-kelas-table th:nth-child(3),
.dash-kelas-table th:nth-child(4) {
  text-align: center;
  width: 56px;
}

.dash-kelas-row--muted td:first-child {
  color: #94a3b8;
  font-style: italic;
}

.dash-ortu-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-ortu-card {
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-ortu-card__label {
  font-size: 15px;
  font-weight: 800;
}

.dash-ortu-card__sub {
  font-size: 12px;
  opacity: 0.9;
}

.dash-ortu-card__value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 4px;
}

.dash-ortu-yatim {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.dash-ortu-piatu {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  color: #3730a3;
}

.dash-ortu-yp {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  color: #9d174d;
}

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

.admin-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.admin-role {
  font-size: 13px;
  font-weight: 600;
}

.admin-school {
  font-size: 11px;
  color: #6c757d;
}

/* DATA SISWA */
.filters-row {
  margin-bottom: 12px;
}

.filters-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: #495057;
}

.filter-group input,
.filter-group select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #ced4da;
  min-width: 200px;
  font-size: 13px;
}

.filter-actions {
  display: flex;
  align-items: center;
}

.btn-filter {
  width: auto;
  padding-inline: 18px;
}

.table-section {
  margin-top: 4px;
}

.table-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.table-header h3 {
  font-size: 16px;
}

.table-header p {
  font-size: 12px;
  color: #6c757d;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead {
  background: #f1f3f5;
}

.data-table th,
.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e9ecef;
  text-align: left;
}

.data-table th {
  font-weight: 600;
  color: #495057;
}

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

.data-table tbody tr:hover {
  background: #e7f5ff;
}

.table-empty {
  text-align: center;
  font-size: 13px;
  color: #868e96;
}

/* ——— Data Siswa: tampilan modern (body.page-data-siswa) ——— */
.page-data-siswa .ds-page-head .ds-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.page-data-siswa .ds-page-head .ds-subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: #64748b;
  max-width: 42rem;
  line-height: 1.45;
}

.page-data-siswa .ds-filters {
  margin-bottom: 20px;
}

.page-data-siswa .ds-filters-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(140px, 0.75fr) minmax(120px, 0.65fr) auto;
  gap: 16px 14px;
  align-items: end;
  padding: 20px 22px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.06),
    0 12px 24px -8px rgba(15, 23, 42, 0.1);
}

@media (max-width: 960px) {
  .page-data-siswa .ds-filters-form {
    grid-template-columns: 1fr 1fr;
  }
  .page-data-siswa .ds-filter-actions {
    grid-column: 1 / -1;
  }
}

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

.page-data-siswa .ds-filters-form .filter-group label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.page-data-siswa .ds-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.page-data-siswa .ds-input-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  opacity: 0.55;
  pointer-events: none;
}

.page-data-siswa .ds-input,
.page-data-siswa .ds-select {
  width: 100%;
  min-width: 0;
  padding: 11px 12px 11px 40px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 14px;
  color: #0f172a;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.page-data-siswa .ds-select {
  padding-left: 12px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 8l3-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.page-data-siswa .ds-input:focus,
.page-data-siswa .ds-select:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.page-data-siswa .ds-filter-actions {
  display: flex;
  align-items: stretch;
}

.page-data-siswa .ds-btn-filter {
  padding: 11px 22px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(231, 111, 81, 0.35);
}

.page-data-siswa .ds-table-section {
  margin-top: 0;
}

.page-data-siswa .ds-table-card {
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.05),
    0 16px 32px -12px rgba(15, 23, 42, 0.12);
}

.page-data-siswa .ds-table-head {
  padding: 18px 22px;
  margin-bottom: 0;
  align-items: center;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.page-data-siswa .ds-table-head-left h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.page-data-siswa .ds-table-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.page-data-siswa .ds-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #c2410c;
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  border: 1px solid rgba(234, 88, 12, 0.2);
}

.page-data-siswa .ds-table-scroll {
  padding: 0 0 8px;
}

.page-data-siswa .ds-table {
  font-size: 13px;
  border-collapse: separate;
  border-spacing: 0;
}

.page-data-siswa .ds-table thead {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.page-data-siswa .ds-table thead th {
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5e1;
  border-bottom: none;
  white-space: nowrap;
}

.page-data-siswa .ds-table thead th:first-child {
  border-radius: 0;
}

.page-data-siswa .ds-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #334155;
}

.page-data-siswa .ds-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.page-data-siswa .ds-table tbody tr:hover {
  background: #f0f9ff !important;
}

.page-data-siswa .ds-table tbody tr:last-child td {
  border-bottom: none;
}

.page-data-siswa .ds-col-no {
  width: 48px;
  text-align: center;
}

.page-data-siswa .ds-row-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
}

.page-data-siswa .ds-nis {
  display: inline-block;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #0f172a;
}

.page-data-siswa .ds-nis--temp {
  background: #fff7ed;
  color: #9a3412;
  border: 1px dashed rgba(234, 88, 12, 0.35);
}

.page-data-siswa .ds-cell-name {
  font-weight: 600;
  color: #0f172a;
  max-width: 220px;
}

@media (min-width: 1200px) {
  .page-data-siswa .ds-cell-name {
    max-width: 280px;
  }
}

.page-data-siswa .ds-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.page-data-siswa .ds-badge-jk-l {
  background: linear-gradient(135deg, #bfdbfe, #60a5fa);
  color: #1e3a8a;
}

.page-data-siswa .ds-badge-jk-p {
  background: linear-gradient(135deg, #fbcfe8, #f472b6);
  color: #831843;
}

.page-data-siswa .ds-badge-jurusan {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #e2e8f0;
  color: #475569;
}

.page-data-siswa .ds-jurusan-tkr { background: #e0e7ff; color: #3730a3; }
.page-data-siswa .ds-jurusan-tsm { background: #ede9fe; color: #5b21b6; }
.page-data-siswa .ds-jurusan-dkv { background: #fce7f3; color: #9d174d; }
.page-data-siswa .ds-jurusan-lpkc { background: #ccfbf1; color: #115e59; }
.page-data-siswa .ds-jurusan-perhotelan { background: #ffedd5; color: #9a3412; }

.page-data-siswa .ds-angkatan {
  font-weight: 700;
  color: #475569;
}

.page-data-siswa .ds-kelas {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: #ecfdf5;
  color: #166534;
}

.page-data-siswa .ds-dash {
  color: #cbd5e1;
  font-weight: 500;
}

.page-data-siswa .ds-badge-status {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}

.page-data-siswa .ds-st-aktif { background: #dcfce7; color: #166534; }
.page-data-siswa .ds-st-lulus { background: #dbeafe; color: #1e40af; }
.page-data-siswa .ds-st-mutasi { background: #fef3c7; color: #a16207; }
.page-data-siswa .ds-st-keluar { background: #fee2e2; color: #b91c1c; }
.page-data-siswa .ds-st-semua { background: #f1f5f9; color: #475569; }

.page-data-siswa .ds-btn-doc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: #0f766e;
  background: #ccfbf1;
  border: 1px solid rgba(13, 148, 136, 0.25);
  transition: transform 0.12s, box-shadow 0.12s;
}

.page-data-siswa .ds-btn-doc:hover {
  background: #99f6e4;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
}

.page-data-siswa .ds-col-actions {
  width: 1%;
  white-space: nowrap;
}

.page-data-siswa .ds-action-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.page-data-siswa .ds-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.page-data-siswa .ds-btn-action--ghost {
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.page-data-siswa .ds-btn-action--ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.page-data-siswa .ds-btn-action--primary {
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: 1px solid rgba(234, 88, 12, 0.3);
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

.page-data-siswa .ds-btn-action--primary:hover {
  filter: brightness(1.05);
}

.page-data-siswa .ds-table-empty {
  padding: 48px 24px;
  font-size: 14px;
  color: #94a3b8;
}

.page-data-siswa .ds-flash {
  margin: 16px 22px 0;
  border-radius: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.stat-main {
  background: linear-gradient(135deg, #ffcf71, #ff9f1c);
}

.stat-boy {
  background: linear-gradient(135deg, #4dabf7, #228be6);
  color: #fff;
}

.stat-girl {
  background: linear-gradient(135deg, #ffa8e6, #f06595);
  color: #fff;
}

.stat-header span {
  font-size: 13px;
  font-weight: 600;
}

.stat-value span {
  font-size: 28px;
  font-weight: 800;
}

.stat-desc {
  font-size: 12px;
}

.jurusan-section h3 {
  margin-bottom: 10px;
}

.jurusan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.jurusan-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  font-size: 14px;
}

.jurusan-value {
  font-size: 18px;
  font-weight: 700;
}

.jurusan-desc {
  font-size: 11px;
  color: #6c757d;
}

.info-section {
  margin-top: 18px;
}

.info-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  font-size: 13px;
}

.info-card ul {
  margin-top: 8px;
  padding-left: 16px;
}

.info-card li {
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .login-card {
    flex-direction: column;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .dashboard-page {
    position: relative;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -290px;
    height: 100vh;
    z-index: 1001;
    transition: left 0.22s ease;
    display: flex;
  }

  body.sidebar-open .sidebar {
    left: 0;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1000;
    display: none;
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .home-hero-overlay {
    padding: 14px 14px;
    flex-direction: column;
  }

  .hero-right {
    align-items: stretch;
    margin-top: 10px;
  }

  .hero-jurusan-list {
    width: 100%;
  }

  .home-hero-image {
    min-height: 260px;
  }
}

/* Detail siswa — teaser dokumen */
.profile-panel--doc-teaser .profile-doc-teaser {
  padding: 14px 18px 18px;
}

.profile-doc-teaser__stat {
  font-size: 13px;
  color: #1d3557;
  margin-bottom: 8px;
}

.profile-doc-teaser__hint {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 14px;
}

.profile-doc-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.profile-doc-acc-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}

.profile-doc-acc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  color: #0f172a;
  list-style: none;
}

.profile-doc-acc-summary::-webkit-details-marker {
  display: none;
}

.profile-doc-acc-summary::marker {
  content: '';
}

.profile-doc-acc-title {
  flex: 1;
  font-size: 14px;
}

.profile-doc-acc-count {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0f2744;
  background: rgba(244, 196, 48, 0.45);
  padding: 5px 11px;
  border-radius: 999px;
}

.profile-doc-acc-body {
  padding: 0 14px 14px;
  border-top: 1px dashed #e2e8f0;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

.profile-doc-acc-body p {
  margin: 12px 0 8px;
}

.profile-doc-acc-link {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  color: #1d3557;
  text-decoration: none;
}

.profile-doc-acc-link:hover {
  text-decoration: underline;
}

.profile-doc-teaser__btn-all {
  margin-top: 2px;
}

.profile-btn--inline {
  display: inline-flex;
}

.doc-page-meta {
  color: #64748b;
  font-weight: 500;
}

/* Halaman kelola dokumen siswa */
.doc-manage {
  max-width: 1100px;
}

.doc-manage .alert {
  margin-bottom: 14px;
}

.doc-manage-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 22px;
}

.doc-manage-count {
  margin-left: auto;
  font-size: 13px;
  color: #475569;
}

.doc-section {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(15, 39, 68, 0.08);
  box-shadow: 0 8px 28px rgba(15, 39, 68, 0.07);
  margin-bottom: 22px;
  overflow: hidden;
  scroll-margin-top: 88px;
}

.doc-section__head {
  padding: 18px 20px;
  background: linear-gradient(90deg, #f4c430 0%, #fde68a 100%);
  border-bottom: 1px solid rgba(15, 39, 68, 0.08);
}

.doc-section__head h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: #0f2744;
  letter-spacing: 0.02em;
}

.doc-section__head p {
  margin: 0;
  font-size: 12px;
  color: #334155;
  line-height: 1.45;
}

.doc-subgroup-title {
  margin: 0;
  padding: 14px 20px 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1d3557;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
}

.doc-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 14px;
  padding: 16px 18px 20px;
}

.doc-slot {
  border: 1px solid #e8edf3;
  border-radius: 16px;
  padding: 12px 14px;
  background: #fbfcfe;
}

.doc-slot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.doc-slot__label {
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
}

.doc-slot__badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #64748b;
}

.doc-slot__badge--ok {
  background: rgba(46, 204, 113, 0.18);
  color: #1f7a45;
}

.doc-slot__file {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 12px;
}

.doc-slot__link {
  font-weight: 700;
  color: #1d3557;
  text-decoration: none;
}

.doc-slot__link:hover {
  text-decoration: underline;
}

.doc-slot__fname {
  color: #475569;
  word-break: break-word;
}

.doc-slot__date {
  color: #94a3b8;
  font-size: 11px;
}

.doc-slot__empty {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 10px;
}

.doc-slot__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-slot__form--delete {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

.doc-slot__input {
  font-size: 12px;
  width: 100%;
}

.doc-slot__btn-upload {
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #1d3557, #2b5876);
  color: #fff;
}

.doc-slot__btn-upload:hover {
  opacity: 0.94;
}

.doc-slot__btn-delete {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid #e76f51;
  background: #fff5f3;
  color: #c0392b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.doc-slot__btn-delete:hover {
  background: #ffe4de;
}

/* —— Tambah siswa: wizard modern —— */
.sw-header-sub {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

.student-wizard {
  max-width: 920px;
}

.sw-progress {
  margin-bottom: 22px;
  padding: 16px 18px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(15, 39, 68, 0.08);
  box-shadow: 0 4px 18px rgba(15, 39, 68, 0.06);
}

.sw-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .sw-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

.sw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sw-step__indicator {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #475569;
}

.sw-step.active {
  background: rgba(29, 53, 87, 0.08);
  border-color: #1d3557;
  color: #1d3557;
}

.sw-step.active .sw-step__indicator {
  background: linear-gradient(145deg, #1d3557, #2b5876);
  border-color: #1d3557;
  color: #ffffff;
}

.sw-step.done {
  background: rgba(46, 204, 113, 0.12);
  border-color: rgba(46, 204, 113, 0.45);
  color: #1f7a45;
}

.sw-step.done .sw-step__indicator {
  background: #2b8a3e;
  border-color: #2b8a3e;
  color: #ffffff;
  font-size: 15px;
}

.sw-step__text {
  line-height: 1.2;
  max-width: 100px;
}

.sw-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(15, 39, 68, 0.07);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.03),
    0 16px 40px rgba(15, 39, 68, 0.08);
  overflow: hidden;
}

.sw-card__head {
  padding: 20px 22px 18px;
  background: linear-gradient(90deg, #f4c430 0%, #fde68a 100%);
  border-bottom: 1px solid rgba(15, 39, 68, 0.08);
}

.sw-card__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #0f2744;
  letter-spacing: 0.02em;
}

.sw-card__desc {
  margin: 0;
  font-size: 13px;
  color: #334155;
  line-height: 1.45;
}

.sw-card__body {
  padding: 22px 22px 8px;
}

.sw-alert {
  margin-bottom: 16px;
}

.sw-form .sw-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px 22px;
}

@media (min-width: 640px) {
  .sw-form .sw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sw-form .form-group-full {
  grid-column: 1 / -1;
}

.sw-form .form-group {
  margin-bottom: 0;
}

.sw-form .form-group label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.02em;
}

.sw-req {
  color: #e76f51;
  font-weight: 800;
}

.sw-hint {
  margin: 4px 0 10px;
  font-size: 12px;
  color: #64748b;
}

.sw-form .form-group input,
.sw-form .form-group textarea,
.sw-form .form-group select {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  background: #fbfcfe;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sw-form .form-group input:focus,
.sw-form .form-group textarea:focus,
.sw-form .form-group select:focus {
  outline: none;
  border-color: #1d3557;
  box-shadow: 0 0 0 3px rgba(29, 53, 87, 0.15);
  background: #ffffff;
}

.sw-file-block label {
  margin-bottom: 0;
}

.sw-file-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.sw-file-input {
  width: 100%;
  font-size: 13px;
}

.sw-foto-preview {
  margin-top: 12px;
}

.sw-section-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  padding-bottom: 4px;
  border-bottom: 1px solid #eef2f7;
}

.sw-summary {
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 18px;
}

.sw-summary__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: #1d3557;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sw-summary__line {
  margin: 0 0 6px;
  font-size: 16px;
  color: #0f172a;
}

.sw-summary__meta {
  margin: 0;
  font-size: 13px;
  color: #475569;
}

.sw-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px 22px 22px;
  margin: 8px -22px -8px;
  border-top: 1px solid #eef2f7;
  background: linear-gradient(180deg, #fafbfc, #f4f6f8);
}

.sw-actions__spacer {
  flex: 1;
  min-width: 8px;
}

.sw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.sw-btn:active {
  transform: scale(0.98);
}

.sw-btn--ghost {
  background: #ffffff;
  color: #1d3557;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.sw-btn--ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.sw-btn--primary {
  background: linear-gradient(135deg, #1d3557, #2b5876);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(29, 53, 87, 0.28);
}

.sw-btn--primary:hover {
  opacity: 0.95;
  box-shadow: 0 8px 22px rgba(29, 53, 87, 0.32);
}

.form-hint-spmb {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
  max-width: 36rem;
}

.kelas-ta-page {
  max-width: 1100px;
}

.kelas-ta-toolbar {
  margin-bottom: 18px;
}

.kelas-ta-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: flex-end;
}

.kelas-ta-help {
  margin: 14px 0 0;
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
}

.kelas-ta-table .kelas-ta-input {
  min-width: 140px;
  width: 100%;
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 13px;
}

.kelas-ta-save-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 14px 0 4px;
}

.detail-flash-err {
  max-width: 920px;
  margin-bottom: 14px;
}

.detail-kelas-empty {
  margin: 0 0 14px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

.detail-kelas-quick {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #e2e8f0;
}

.detail-kelas-quick__title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d3557;
}

.detail-kelas-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.detail-kelas-select,
.detail-kelas-input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
}

.detail-kelas-select {
  min-width: 120px;
}

.detail-kelas-input {
  flex: 1;
  min-width: 160px;
}

.detail-kelas-submit {
  padding: 10px 16px !important;
  font-size: 13px !important;
}

.detail-kelas-hint {
  margin: 10px 0 0;
  font-size: 11px;
  color: #94a3b8;
}

/* ——— Klaper (Akademik) ——— */
.page-klaper .klaper-table thead th {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.page-klaper .klaper-th-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-klaper .klaper-th-sub {
  font-weight: 500;
  font-size: 0.72rem;
  opacity: 0.9;
}

.page-klaper .klaper-th-subcol {
  font-size: 0.78rem;
}

.page-klaper .klaper-col-no {
  width: 3rem;
}

.page-klaper .klaper-cell-wrap {
  max-width: 220px;
  white-space: normal;
  line-height: 1.35;
}

.page-klaper .klaper-table tbody td {
  text-align: center;
  vertical-align: middle;
}

.page-klaper .klaper-table .ds-cell-name,
.page-klaper .klaper-table .klaper-cell-wrap {
  text-align: left;
}

.page-klaper .ds-table-scroll {
  overflow-x: auto;
}

.page-klaper .ds-table-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: flex-end;
}

.page-klaper .ds-table-head {
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ——— Tes literasi ——— */
.page-tes-literasi .tes-literasi-table thead th {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.page-tes-literasi .tes-literasi-table tbody td {
  text-align: center;
  vertical-align: middle;
}

.page-tes-literasi .tes-literasi-table .ds-cell-name,
.page-tes-literasi .tes-lit-cell-wrap {
  text-align: left;
}

.page-tes-literasi .tes-lit-col-no {
  width: 3rem;
}

.page-tes-literasi .tes-lit-select,
.page-tes-literasi .tes-lit-input {
  width: 100%;
  min-width: 120px;
  max-width: 200px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font-size: 0.88rem;
  background: #fff;
}

.page-tes-literasi .tes-lit-input {
  max-width: 240px;
}

.page-tes-literasi .tes-lit-select:focus,
.page-tes-literasi .tes-lit-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.page-tes-literasi .ds-table-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: flex-end;
}

.page-tes-literasi .ds-table-head {
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ——— Akses guru tes literasi (admin) ——— */
.tes-lit-guru-access {
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
}

.tes-lit-guru-access h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.tes-lit-guru-desc {
  margin: 0 0 0.65rem;
  color: #64748b;
  font-size: 0.92rem;
}

.tes-lit-guru-link-wrap {
  margin: 0 0 1rem;
}

.tes-lit-guru-link {
  word-break: break-all;
  font-weight: 600;
}

.tes-lit-guru-pin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
  max-width: 720px;
}

.tes-lit-guru-duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.tes-lit-guru-duo__col {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.tes-lit-guru-duo__col h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.tes-lit-guru-pin-grid--compact {
  max-width: 100%;
}

.tes-lit-th-note {
  font-weight: 500;
  font-size: 0.68rem;
  opacity: 0.85;
}

.tes-lit-readonly {
  display: inline-block;
  padding: 0.35rem 0.5rem;
  font-size: 0.88rem;
  color: #475569;
  background: #f1f5f9;
  border-radius: 8px;
  min-width: 5rem;
}

.tes-lit-guru-pin-form .form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.tes-lit-guru-pin-form input[type="password"] {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}

.tes-lit-guru-hint {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

/* ——— Halaman guru input tes (portal penilaian — modern & cerah) ——— */
.page-guru-tes-literasi {
  min-height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(145deg, #eff6ff 0%, #fef3c7 28%, #fce7f3 62%, #ecfeff 100%);
  background-attachment: fixed;
  --guru-accent: #2563eb;
  --guru-accent-soft: #dbeafe;
  --guru-accent-dark: #1e40af;
  --guru-hero-gradient: linear-gradient(120deg, #2563eb 0%, #3b82f6 40%, #06b6d4 100%);
}

.page-guru-tes--umum {
  --guru-accent: #2563eb;
  --guru-accent-soft: #dbeafe;
  --guru-accent-dark: #1e40af;
  --guru-hero-gradient: linear-gradient(120deg, #2563eb 0%, #60a5fa 50%, #22d3ee 100%);
}

.page-guru-tes--alquran {
  --guru-accent: #059669;
  --guru-accent-soft: #d1fae5;
  --guru-accent-dark: #047857;
  --guru-hero-gradient: linear-gradient(120deg, #059669 0%, #34d399 50%, #6ee7b7 100%);
}

.page-guru-tes-pilih {
  --guru-hero-gradient: linear-gradient(120deg, #7c3aed 0%, #a78bfa 45%, #38bdf8 100%);
}

.page-guru-tes-numerasi {
  --guru-accent: #7c3aed;
  --guru-accent-soft: #ede9fe;
  --guru-accent-dark: #5b21b6;
  --guru-hero-gradient: linear-gradient(120deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
}

.page-guru-tes-wawancara {
  --guru-accent: #db2777;
  --guru-accent-soft: #fce7f3;
  --guru-accent-dark: #9d174d;
  --guru-hero-gradient: linear-gradient(120deg, #db2777 0%, #f472b6 45%, #fb923c 100%);
}

.page-guru-pengukuran {
  --guru-accent: #0d9488;
  --guru-accent-soft: #ccfbf1;
  --guru-accent-dark: #0f766e;
  --guru-hero-gradient: linear-gradient(120deg, #0d9488 0%, #14b8a6 50%, #2dd4bf 100%);
}

.guru-tes-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1rem 6rem;
}

/* Hero header */
.page-guru-tes-literasi .guru-tes-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1.35rem 1.5rem;
  background: var(--guru-hero-gradient, linear-gradient(120deg, #2563eb, #06b6d4));
  border-radius: 22px;
  border: none;
  box-shadow: 0 14px 44px rgba(37, 99, 235, 0.22);
  overflow: hidden;
  position: relative;
}

.page-guru-tes-literasi .guru-tes-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.28), transparent 50%);
  pointer-events: none;
}

.page-guru-tes-literasi .guru-tes-hero > * {
  position: relative;
  z-index: 1;
}

.guru-tes-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.07);
}

.guru-tes-hero--center {
  justify-content: center;
  text-align: center;
}

.guru-tes-hero__main {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.guru-tes-hero__main--center {
  flex-direction: column;
}

.guru-tes-hero__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.page-guru-tes-literasi .guru-tes-hero__logo {
  width: 56px;
  height: 56px;
  padding: 6px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.guru-tes-hero__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.page-guru-tes-literasi .guru-tes-hero__eyebrow {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.guru-tes-hero__text h1 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.page-guru-tes-literasi .guru-tes-hero__text h1 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.guru-tes-hero__sub {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.95rem;
}

.page-guru-tes-literasi .guru-tes-hero__sub {
  color: rgba(255, 255, 255, 0.95);
}

.page-guru-tes-literasi .guru-tes-role-pill {
  background: rgba(255, 255, 255, 0.95);
  color: var(--guru-accent-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.guru-tes-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--guru-accent-soft);
  color: var(--guru-accent-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.page-guru-tes-literasi .guru-tes-btn--outline {
  background: rgba(255, 255, 255, 0.95);
  color: var(--guru-accent-dark);
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.guru-tes-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* Buttons */
.guru-tes-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
  font-family: inherit;
}

.guru-tes-btn--primary {
  background: linear-gradient(135deg, var(--guru-accent) 0%, var(--guru-accent-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.page-guru-tes--alquran .guru-tes-btn--primary {
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
}

.guru-tes-btn--primary:hover {
  transform: translateY(-1px);
}

.guru-tes-btn--outline {
  background: #fff;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.guru-tes-btn--ghost {
  background: #f1f5f9;
  color: #475569;
}

.guru-tes-btn--block {
  width: 100%;
  padding: 0.75rem 1rem;
}

.guru-tes-btn--lg {
  padding: 0.7rem 1.35rem;
  font-size: 1rem;
}

.guru-tes-btn--hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .guru-tes-btn--hide-mobile {
    display: inline-flex;
  }
}

/* Toast alerts */
.guru-tes-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  animation: guru-tes-fade-in 0.35s ease;
}

@keyframes guru-tes-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.guru-tes-toast--success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.guru-tes-toast--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.guru-tes-toast__icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.75rem;
}

.guru-tes-toast--success .guru-tes-toast__icon {
  background: #10b981;
  color: #fff;
}

.guru-tes-toast--error .guru-tes-toast__icon {
  background: #ef4444;
  color: #fff;
}

/* Info cards */
.guru-tes-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.guru-tes-info-card {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.page-guru-tes-literasi .guru-tes-info-card--you {
  border-color: var(--guru-accent);
  background: linear-gradient(145deg, #fff 0%, var(--guru-accent-soft) 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.guru-tes-info-card--you {
  border-color: var(--guru-accent);
  background: linear-gradient(145deg, #fff 0%, var(--guru-accent-soft) 120%);
}

.guru-tes-info-card--other {
  background: #f8fafc;
}

.guru-tes-info-card__tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.guru-tes-info-card--you .guru-tes-info-card__tag {
  color: var(--guru-accent-dark);
}

.guru-tes-info-card strong {
  display: block;
  font-size: 1.02rem;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.guru-tes-info-card p {
  margin: 0;
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.4;
}

/* Panels */
.guru-tes-panel {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
  margin-bottom: 1rem;
}

.guru-tes-panel--filters {
  padding: 1rem 1.15rem 1.15rem;
}

.guru-tes-panel--login {
  max-width: 400px;
  margin: 2rem auto;
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.guru-tes-panel__icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.guru-tes-panel--login h2 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
}

.guru-tes-panel__lead {
  margin: 0 0 0.75rem;
  color: var(--guru-accent-dark);
  font-weight: 600;
}

.guru-tes-panel__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
}

.guru-tes-panel__hint {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: #64748b;
}

.guru-tes-filter-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem 1rem;
  align-items: end;
}

@media (max-width: 720px) {
  .guru-tes-filter-form {
    grid-template-columns: 1fr;
  }
}

.guru-tes-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.guru-tes-field__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.guru-tes-select,
.guru-tes-field input[type="password"] {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
  background: #fff;
  color: #0f172a;
}

.guru-tes-select:focus,
.guru-tes-field input:focus {
  outline: none;
  border-color: var(--guru-accent);
  box-shadow: 0 0 0 3px var(--guru-accent-soft);
}

.guru-tes-callout {
  margin: 1rem 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-size: 0.88rem;
  text-align: left;
  line-height: 1.45;
}

.guru-tes-callout--warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.guru-tes-callout--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.guru-tes-muted {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 0.9rem;
}

.guru-tes-muted a {
  color: var(--guru-accent);
  font-weight: 600;
}

/* Table — guru mode */
.guru-tes-table-section {
  margin-bottom: 0;
}

.guru-tes-table-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.06);
}

.guru-tes-table-head {
  padding: 1rem 1.15rem !important;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.page-guru-tes-literasi .guru-tes-table-head {
  background: linear-gradient(90deg, var(--guru-accent-soft), #fff 70%);
  border-bottom: 2px solid var(--guru-accent-soft);
}

.page-guru-tes-literasi .guru-tes-count,
.page-guru-tes-literasi .ds-count-pill {
  background: linear-gradient(135deg, var(--guru-accent), var(--guru-accent-dark));
  color: #fff !important;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.guru-tes-count {
  font-weight: 700;
}

.guru-tes-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: 0.65rem 1.15rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.8rem;
}

.guru-tes-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
}

.guru-tes-legend__item--active {
  background: var(--guru-accent-soft);
  color: var(--guru-accent-dark);
  font-weight: 600;
}

.guru-tes-legend__item--active::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--guru-accent);
}

.guru-tes-legend__item--readonly {
  color: #64748b;
}

.guru-tes-legend__item--readonly::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.guru-tes-legend__item--note {
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
}

.guru-tes-legend__item--note::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
}

.page-guru-tes-literasi .guru-tes-input-note,
.page-guru-tes-literasi .tes-lit-input {
  width: 100%;
  min-width: 140px;
  max-width: 220px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  font-size: 0.88rem;
  background: #fff;
}

.page-guru-tes-literasi .guru-tes-input-note:focus,
.page-guru-tes-literasi .tes-lit-input:focus {
  outline: none;
  border-color: var(--guru-accent);
  box-shadow: 0 0 0 3px var(--guru-accent-soft);
}

.tes-literasi-table--guru .tes-lit-col-note {
  min-width: 160px;
}

.guru-tes-table-scroll {
  max-height: min(62vh, 640px);
}

.tes-literasi-table--guru thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #1e293b;
  color: #f8fafc;
  font-size: 0.78rem;
  padding: 0.65rem 0.5rem;
  vertical-align: middle;
  font-weight: 700;
}

/* Header kolom isi: teks gelap di latar terang — hindari teks putih di pink/terang */
.tes-literasi-table--guru thead th.tes-lit-col--active,
.tes-literasi-table--guru thead th.tes-lit-col--readonly,
.tes-wawancara-table--guru thead th.tes-waw-col--grade,
.tes-numerasi-table--guru thead th.tes-num-col--active {
  background: var(--guru-accent-soft) !important;
  color: var(--guru-accent-dark) !important;
  box-shadow: inset 0 -3px 0 var(--guru-accent);
}

.tes-literasi-table--guru tbody .tes-lit-col--active {
  background: #f0f9ff;
}

.page-guru-tes--alquran .tes-literasi-table--guru tbody .tes-lit-col--active {
  background: #ecfdf5;
}

.tes-literasi-table--guru tbody .tes-lit-col--readonly {
  background: #f8fafc;
}

.tes-lit-col-badge {
  display: block;
  margin-bottom: 0.2rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: var(--guru-accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guru-tes-row--done {
  background: #f0fdf4 !important;
}

.guru-tes-name {
  font-weight: 600;
  color: #0f172a;
  min-width: 140px;
}

.guru-tes-nis {
  font-size: 0.8rem;
  white-space: nowrap;
}

.guru-tes-school {
  font-size: 0.86rem;
  color: #475569;
  max-width: 160px;
}

.guru-tes-select {
  min-width: 130px;
  max-width: 100%;
  padding: 0.55rem 2rem 0.55rem 0.65rem;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  background-color: #fff;
  cursor: pointer;
}

.guru-tes-select--filled {
  border-color: var(--guru-accent);
  background-color: var(--guru-accent-soft);
  color: var(--guru-accent-dark);
}

.guru-tes-readonly {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  background: #e2e8f0;
  border-radius: 8px;
  border: 1px dashed #94a3b8;
}

.guru-tes-empty {
  padding: 2.5rem 1rem !important;
  text-align: center;
  color: #64748b;
}

.guru-tes-empty__icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Sticky save bar (mobile) */
.guru-tes-savebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.1);
}

.guru-tes-savebar__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: #475569;
}

@media (min-width: 768px) {
  .guru-tes-savebar {
    display: none;
  }
}

/* Pilih penilaian */
.guru-tes-pilih-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.guru-tes-pilih-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.35rem;
  background: #fff;
  border-radius: 20px;
  border: 2px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.guru-tes-pilih-card--umum:hover {
  border-color: #2563eb;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.15);
  transform: translateY(-3px);
}

.guru-tes-pilih-card--alquran:hover {
  border-color: #059669;
  box-shadow: 0 16px 40px rgba(5, 150, 105, 0.15);
  transform: translateY(-3px);
}

.guru-tes-pilih-card__icon {
  font-size: 2.25rem;
  margin-bottom: 0.65rem;
}

.guru-tes-pilih-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

.guru-tes-pilih-card p {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.45;
}

.guru-tes-pilih-card__cta {
  font-weight: 700;
  font-size: 0.92rem;
}

.guru-tes-pilih-card--umum .guru-tes-pilih-card__cta {
  color: #2563eb;
}

.guru-tes-pilih-card--alquran .guru-tes-pilih-card__cta {
  color: #059669;
}

.tes-lit-guru-duo--single {
  grid-template-columns: 1fr;
  max-width: 520px;
}

/* ——— Tes numerasi (admin + guru) ——— */
.page-tes-numerasi .tes-numerasi-table thead th {
  white-space: nowrap;
}

.page-tes-numerasi .tes-numerasi-table tbody td {
  vertical-align: middle;
}

.page-guru-tes-numerasi .guru-tes-btn--primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.tes-numerasi-table--guru thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #1e293b;
  color: #f8fafc;
  font-size: 0.78rem;
  padding: 0.65rem 0.5rem;
}

.tes-numerasi-table--guru tbody .tes-num-col--active {
  background: #f5f3ff;
}

.guru-tes-info-grid--single {
  grid-template-columns: 1fr;
  max-width: 480px;
}

.guru-tes-info-grid--wawancara {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ——— Tes wawancara ——— */
.page-tes-wawancara .tes-wawancara-scroll {
  overflow-x: auto;
}

.page-tes-wawancara .tes-waw-select {
  min-width: 118px;
  max-width: 150px;
}

.page-guru-tes-wawancara .guru-tes-btn--primary {
  background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
}

.tes-wawancara-table--guru thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #1e293b;
  color: #f8fafc;
  font-size: 0.75rem;
  padding: 0.6rem 0.45rem;
  white-space: nowrap;
}

.tes-wawancara-table--guru tbody .tes-waw-col--grade {
  background: var(--guru-accent-soft);
}

.tes-wawancara-table--guru tbody .guru-tes-row--done .tes-waw-col--grade {
  background: #ecfdf5;
}

.guru-tes-legend--wawancara {
  flex-wrap: wrap;
}

.guru-tes-legend__item--locked {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
}

.tes-lock-hint {
  margin: 0;
  padding: 0.5rem 1.15rem;
  font-size: 0.82rem;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.tes-nilai-terkunci {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-weight: 600;
  color: #334155;
  font-size: 0.88rem;
}

.tes-keterangan-terkunci {
  display: block;
  max-width: 220px;
  white-space: normal;
  word-break: break-word;
}

.tes-nilai-terkunci__icon {
  font-size: 0.85rem;
  opacity: 0.85;
}

.guru-tes-row--locked td.tes-lit-col--active,
.guru-tes-row--locked td.tes-num-col--active,
.guru-tes-row--locked td.tes-waw-col--grade {
  background: #f8fafc !important;
}

.profile-panel--full {
  grid-column: 1 / -1;
}

.detail-tes-ukur__body {
  padding: 16px 18px 20px;
}

.detail-tes-ukur__lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--sp-muted);
  line-height: 1.45;
}

.detail-tes-ukur__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}

.detail-tes-ukur__block {
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--sp-line);
  border-radius: 14px;
}

.detail-tes-ukur__heading {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--sp-navy);
}

.detail-tes-ukur__empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--sp-muted);
}

.profile-kv--compact .profile-kv__row {
  padding: 0.35rem 0;
}

.profile-kv--compact .profile-kv__label {
  font-size: 0.78rem;
}

.profile-kv--compact .profile-kv__value {
  font-size: 0.88rem;
}

.page-guru-pengukuran .guru-tes-btn--primary {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

.page-pengukuran-siswa .pengukuran-scroll,
.page-guru-pengukuran .pengukuran-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pengukuran-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: separate;
  border-spacing: 0;
}

.pengukuran-table thead th {
  white-space: nowrap;
  vertical-align: middle;
}

.pengukuran-table .pengukuran-head-group th {
  background: #1e293b;
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 0.5rem;
}

.pengukuran-table .pengukuran-col-ukur--group {
  text-align: center;
  border-bottom: 2px solid #0d9488;
}

.pengukuran-table .pengukuran-col-seragam {
  border-bottom-color: #14b8a6;
  background: linear-gradient(180deg, #134e4a 0%, #1e293b 100%);
}

.pengukuran-table .pengukuran-subhead th {
  background: #334155;
  color: #f1f5f9;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.45rem 0.4rem;
  line-height: 1.25;
  max-width: 7.5rem;
  white-space: normal;
}

.pengukuran-table--guru thead th {
  position: sticky;
  top: 0;
  z-index: 3;
}

.pengukuran-table--guru .pengukuran-subhead th {
  top: 2.35rem;
  z-index: 3;
  background: #334155 !important;
  color: #f1f5f9 !important;
}

.pengukuran-table--guru .pengukuran-subhead th.pengukuran-col-input--baju_putih,
.pengukuran-table--guru .pengukuran-subhead th.pengukuran-col-input--baju_batik,
.pengukuran-table--guru .pengukuran-subhead th.pengukuran-col-input--baju_hawai,
.pengukuran-table--guru .pengukuran-subhead th.pengukuran-col-input--baju_jurusan {
  background: #115e59 !important;
  color: #ecfdf5 !important;
}

.pengukuran-table--guru .pengukuran-subhead th.pengukuran-col-input--celana_rok {
  background: #0f766e !important;
  color: #fff !important;
}

.page-guru-tes-literasi .guru-tes-table-card {
  border-radius: 20px;
  border: 2px solid var(--guru-accent-soft);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.page-guru-tes-literasi .guru-tes-panel--filters {
  border: 2px solid var(--guru-accent-soft);
}

.page-guru-tes-literasi .guru-tes-panel__title {
  font-size: 1.05rem;
  color: #0f172a;
}

.page-guru-tes-literasi .guru-tes-savebar__inner {
  background: linear-gradient(135deg, var(--guru-accent), var(--guru-accent-dark));
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.page-guru-tes-literasi .guru-tes-savebar__inner strong {
  color: #fff;
}

.page-guru-tes-literasi .guru-tes-pilih-card {
  border-width: 2px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
}

.page-guru-tes-literasi .guru-tes-pilih-card--umum:hover {
  border-color: #2563eb;
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.2);
}

.page-guru-tes-literasi .guru-tes-pilih-card--alquran:hover {
  border-color: #059669;
  box-shadow: 0 14px 40px rgba(5, 150, 105, 0.2);
}

.page-guru-tes-literasi tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.65);
}

.page-guru-tes-literasi tbody tr:hover {
  background: var(--guru-accent-soft);
}

.pengukuran-col-no {
  width: 2.5rem;
  text-align: center;
}

.pengukuran-col-id {
  min-width: 9.5rem;
}

.pengukuran-col-name {
  min-width: 8.5rem;
  max-width: 11rem;
}

.pengukuran-col-school {
  min-width: 7.5rem;
  max-width: 10rem;
}

.pengukuran-school-text {
  display: block;
  font-size: 0.82rem;
  line-height: 1.35;
  word-break: break-word;
}

.pengukuran-col-jk {
  text-align: center;
  font-weight: 700;
  width: 2.5rem;
}

.pengukuran-col-input {
  min-width: 4.5rem;
  vertical-align: middle;
}

.pengukuran-col-input--tinggi,
.pengukuran-col-input--berat {
  min-width: 5.5rem;
}

.pengukuran-col-input--sepatu {
  min-width: 4.25rem;
}

.pengukuran-col-input--baju_putih,
.pengukuran-col-input--baju_batik,
.pengukuran-col-input--baju_hawai,
.pengukuran-col-input--baju_jurusan {
  min-width: 5.75rem;
  background: #f0fdfa;
}

.pengukuran-col-input--celana_rok {
  min-width: 4.5rem;
  background: #ecfeff;
}

.pengukuran-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
}

.pengukuran-input {
  width: 100%;
  min-width: 3.25rem;
  max-width: 4.5rem;
  padding: 0.4rem 0.35rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.85rem;
}

.pengukuran-col-input--tinggi .pengukuran-input,
.pengukuran-col-input--berat .pengukuran-input {
  max-width: 3.75rem;
}

.pengukuran-col-input--celana_rok .pengukuran-input {
  max-width: 3.5rem;
}

.pengukuran-select {
  width: 100%;
  min-width: 4.75rem;
  max-width: 5.5rem;
  padding: 0.4rem 0.3rem;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  font-size: 0.82rem;
  background: #fff;
  color: #0f172a;
}

.pengukuran-select:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.pengukuran-suffix {
  font-size: 0.72rem;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
}

.pengukuran-terkunci {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.page-guru-pengukuran .guru-tes-table-scroll {
  max-height: min(68vh, 720px);
}

/* Surat pernyataan — cetak A4 */
.page-surat-pernyataan-cetak {
  background: #e8ecf1;
}

.sp-toolbar {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  max-width: 210mm;
  margin: 0 auto;
}

.sp-doc {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto 24px;
  padding: 16mm 18mm 18mm;
  background: #fff;
  color: #111;
  font-family: "Times New Roman", Times, serif;
  font-size: 11pt;
  line-height: 1.45;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.sp-doc__title {
  text-align: center;
  font-size: 13pt;
  font-weight: 700;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.sp-doc__school,
.sp-doc__ta {
  text-align: center;
  margin: 0 0 2px;
  font-weight: 700;
}

.sp-doc__intro {
  margin: 14px 0 10px;
}

.sp-section {
  margin-top: 12px;
}

.sp-section__title {
  font-weight: 700;
  margin: 0 0 6px;
}

.sp-table {
  width: 100%;
  border-collapse: collapse;
}

.sp-table td {
  padding: 3px 4px;
  vertical-align: top;
}

.sp-table__label {
  width: 38%;
  padding-left: 12px;
}

.sp-table__sep {
  width: 12px;
}

.sp-table__value {
  font-weight: 500;
}

.sp-note-petugas {
  text-align: right;
  font-size: 10pt;
  margin: 2px 0 8px;
}

.sp-subhead {
  font-weight: 700;
  margin: 8px 0 4px;
  padding-left: 12px;
}

.sp-jk span,
.sp-jurusan span {
  margin-right: 10px;
  white-space: nowrap;
}

.sp-jk--on,
.sp-jur--on {
  font-weight: 700;
}

.sp-pernyataan {
  margin-top: 14px;
}

.sp-pernyataan__lead {
  margin: 0 0 8px;
  padding-left: 12px;
}

.sp-points {
  margin: 0 0 12px;
  padding-left: 28px;
}

.sp-points li {
  margin-bottom: 6px;
  text-align: justify;
}

.sp-penutup {
  text-align: justify;
  padding: 0 8px;
}

.sp-sign {
  margin-top: 20px;
}

.sp-sign__tempat {
  text-align: right;
  margin-bottom: 24px;
}

.sp-sign__cols {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
}

.sp-sign__box {
  width: 45%;
  text-align: center;
}

.sp-sign__role {
  margin: 0 0 8px;
  line-height: 1.35;
}

.sp-sign__line {
  height: 56px;
  border-bottom: 1px solid #111;
  margin: 0 8px 6px;
}

.sp-sign__hint {
  font-size: 10pt;
  margin: 0;
}

.sp-ket {
  margin-top: 16px;
  font-size: 10pt;
}

.sp-footer-note {
  margin-top: 18px;
  text-align: center;
  font-size: 9pt;
  color: #555;
}

/* ——— Halaman guru surat pernyataan (modern, warna cerah) ——— */
.page-guru-surat-pernyataan {
  min-height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(145deg, #fff7ed 0%, #fef3c7 18%, #e0f2fe 55%, #fce7f3 100%);
  background-attachment: fixed;
  --gsp-orange: #f97316;
  --gsp-orange-dark: #ea580c;
  --gsp-cyan: #06b6d4;
  --gsp-violet: #8b5cf6;
  --gsp-pink: #ec4899;
  --gsp-shadow: 0 16px 48px rgba(249, 115, 22, 0.12);
}

.page-guru-surat-pernyataan .gsp-shell {
  max-width: 1024px;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

/* Hero gradient */
.page-guru-surat-pernyataan .gsp-hero {
  position: relative;
  margin-bottom: 1.25rem;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--gsp-shadow);
}

.page-guru-surat-pernyataan .gsp-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #f97316 0%, #fb923c 25%, #f472b6 55%, #38bdf8 85%, #22d3ee 100%);
  opacity: 1;
}

.page-guru-surat-pernyataan .gsp-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.2) 0%, transparent 40%);
}

.page-guru-surat-pernyataan .gsp-hero__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
}

.page-guru-surat-pernyataan .gsp-hero__main {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.page-guru-surat-pernyataan .gsp-hero__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.page-guru-surat-pernyataan .gsp-hero__eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.page-guru-surat-pernyataan .gsp-hero__text h1 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.page-guru-surat-pernyataan .gsp-hero__sub {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
}

.page-guru-surat-pernyataan .gsp-hero__sub strong {
  font-weight: 700;
}

/* Buttons */
.page-guru-surat-pernyataan .gsp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

.page-guru-surat-pernyataan .gsp-btn:active {
  transform: scale(0.98);
}

.page-guru-surat-pernyataan .gsp-btn--primary {
  background: linear-gradient(135deg, #f97316, #fb7185);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.page-guru-surat-pernyataan .gsp-btn--primary:hover {
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.5);
  filter: brightness(1.05);
}

.page-guru-surat-pernyataan .gsp-btn--ghost {
  background: rgba(255, 255, 255, 0.95);
  color: #c2410c;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.page-guru-surat-pernyataan .gsp-btn--ghost:hover {
  background: #fff;
}

.page-guru-surat-pernyataan .gsp-btn--block {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.page-guru-surat-pernyataan .gsp-logout-form {
  margin: 0;
}

/* Toast */
.page-guru-surat-pernyataan .gsp-toast {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 500;
  animation: gsp-fade-in 0.35s ease;
}

@keyframes gsp-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-guru-surat-pernyataan .gsp-toast--success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #6ee7b7;
}

.page-guru-surat-pernyataan .gsp-toast--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.page-guru-surat-pernyataan .gsp-toast__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.page-guru-surat-pernyataan .gsp-toast--success .gsp-toast__icon {
  background: #10b981;
  color: #fff;
}

.page-guru-surat-pernyataan .gsp-toast--error .gsp-toast__icon {
  background: #ef4444;
  color: #fff;
}

/* Stats cards */
.page-guru-surat-pernyataan .gsp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .page-guru-surat-pernyataan .gsp-stats {
    grid-template-columns: 1fr;
  }
}

.page-guru-surat-pernyataan .gsp-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #fff;
  border: 2px solid transparent;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.page-guru-surat-pernyataan .gsp-stat--orange {
  border-color: #fed7aa;
  background: linear-gradient(135deg, #fff7ed, #fff);
}

.page-guru-surat-pernyataan .gsp-stat--cyan {
  border-color: #a5f3fc;
  background: linear-gradient(135deg, #ecfeff, #fff);
}

.page-guru-surat-pernyataan .gsp-stat--violet {
  border-color: #ddd6fe;
  background: linear-gradient(135deg, #f5f3ff, #fff);
}

.page-guru-surat-pernyataan .gsp-stat__icon {
  font-size: 1.75rem;
  line-height: 1;
}

.page-guru-surat-pernyataan .gsp-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.page-guru-surat-pernyataan .gsp-stat span {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

/* Panels */
.page-guru-surat-pernyataan .gsp-panel {
  background: #fff;
  border-radius: 20px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.06);
}

.page-guru-surat-pernyataan .gsp-panel--login {
  text-align: center;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.page-guru-surat-pernyataan .gsp-panel__icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-guru-surat-pernyataan .gsp-panel--login h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: #0f172a;
}

.page-guru-surat-pernyataan .gsp-panel__lead {
  margin: 0 0 1.25rem;
  color: #64748b;
  font-size: 0.95rem;
}

.page-guru-surat-pernyataan .gsp-panel__title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.page-guru-surat-pernyataan .gsp-callout {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  text-align: left;
  margin-bottom: 1rem;
}

.page-guru-surat-pernyataan .gsp-callout--warn {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* Form fields */
.page-guru-surat-pernyataan .gsp-filter-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

@media (max-width: 720px) {
  .page-guru-surat-pernyataan .gsp-filter-form {
    grid-template-columns: 1fr;
  }
}

.page-guru-surat-pernyataan .gsp-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.page-guru-surat-pernyataan .gsp-field__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-guru-surat-pernyataan .gsp-field input,
.page-guru-surat-pernyataan .gsp-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.page-guru-surat-pernyataan .gsp-field input:focus,
.page-guru-surat-pernyataan .gsp-select:focus {
  outline: none;
  border-color: var(--gsp-orange);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.page-guru-surat-pernyataan .gsp-pin-form {
  text-align: left;
}

.page-guru-surat-pernyataan .gsp-pin-form .gsp-field {
  margin-bottom: 1rem;
}

/* Table */
.page-guru-surat-pernyataan .gsp-table-section {
  margin-bottom: 1rem;
}

.page-guru-surat-pernyataan .gsp-table-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 14px 44px rgba(249, 115, 22, 0.08);
}

.page-guru-surat-pernyataan .gsp-table-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.35rem;
  background: linear-gradient(90deg, #fff7ed, #fef9c3 40%, #e0f2fe);
  border-bottom: 2px solid #fed7aa;
}

.page-guru-surat-pernyataan .gsp-table-head h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.page-guru-surat-pernyataan .gsp-table-head p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.page-guru-surat-pernyataan .gsp-badge-count {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #fb7185);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  white-space: nowrap;
}

.page-guru-surat-pernyataan .gsp-table-scroll {
  overflow-x: auto;
}

.page-guru-surat-pernyataan .gsp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.page-guru-surat-pernyataan .gsp-table thead {
  background: linear-gradient(90deg, #0ea5e9, #06b6d4);
}

.page-guru-surat-pernyataan .gsp-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.page-guru-surat-pernyataan .gsp-table tbody tr {
  transition: background 0.12s ease;
}

.page-guru-surat-pernyataan .gsp-table tbody tr:nth-child(even) {
  background: #fffbeb;
}

.page-guru-surat-pernyataan .gsp-table tbody tr:hover {
  background: #ffedd5;
}

.page-guru-surat-pernyataan .gsp-table td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.page-guru-surat-pernyataan .gsp-col-no {
  font-weight: 700;
  color: #94a3b8;
  width: 3rem;
}

.page-guru-surat-pernyataan .gsp-col-nis code {
  font-size: 0.8rem;
  background: #f1f5f9;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  color: #0369a1;
  font-family: ui-monospace, monospace;
}

.page-guru-surat-pernyataan .gsp-col-nama {
  font-weight: 600;
  color: #0f172a;
}

.page-guru-surat-pernyataan .gsp-jurusan-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ddd6fe, #c4b5fd);
  color: #5b21b6;
}

.page-guru-surat-pernyataan .gsp-btn-cetak {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #f97316 0%, #f43f5e 100%);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.45);
  transition: transform 0.15s, box-shadow 0.15s;
}

.page-guru-surat-pernyataan .gsp-btn-cetak:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(249, 115, 22, 0.55);
}

.page-guru-surat-pernyataan .gsp-btn-cetak__icon {
  font-size: 1rem;
  line-height: 1;
}

.page-guru-surat-pernyataan .gsp-empty {
  text-align: center;
  padding: 2.5rem 1rem !important;
  color: #94a3b8;
}

.page-guru-surat-pernyataan .gsp-empty__icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-guru-surat-pernyataan .gsp-empty p {
  margin: 0;
}

/* Modal — selaras halaman guru */
.page-guru-surat-pernyataan .sp-surat-modal {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.page-guru-surat-pernyataan .sp-surat-modal__dialog {
  border-radius: 20px;
  border: 2px solid #fed7aa;
  box-shadow: 0 24px 60px rgba(249, 115, 22, 0.2);
}

.page-guru-surat-pernyataan .sp-surat-modal__head {
  background: linear-gradient(90deg, #fff7ed, #e0f2fe);
  border-bottom-color: #fed7aa;
}

.page-guru-surat-pernyataan .sp-surat-modal__head h2 {
  font-weight: 800;
  color: #0f172a;
}

.page-guru-surat-pernyataan .sp-surat-modal__foot .btn-primary.btn-filter {
  background: linear-gradient(135deg, #f97316, #fb7185) !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

@media print {
  .page-surat-pernyataan-cetak {
    background: #fff;
  }
  .sp-doc {
    width: auto;
    min-height: auto;
    margin: 0;
    padding: 10mm 12mm;
    box-shadow: none;
  }
  @page {
    size: A4;
    margin: 10mm;
  }
}

/* Surat pernyataan — modal pilih jenis cetak */
.sp-surat-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.45);
}
.sp-surat-modal[hidden] {
  display: none !important;
}
.sp-surat-modal__dialog {
  width: 100%;
  max-width: 28rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.sp-surat-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}
.sp-surat-modal__head h2 {
  margin: 0;
  font-size: 1.05rem;
}
.sp-surat-modal__close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  padding: 0 0.25rem;
}
.sp-surat-modal__body {
  padding: 1rem 1.25rem 0.5rem;
}
.sp-surat-modal__siswa {
  margin: 0 0 1rem;
  font-weight: 600;
  color: #0f172a;
}
.sp-surat-modal__fieldset {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
}
.sp-surat-modal__fieldset legend {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 0.35rem;
}
.sp-surat-modal__radio {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.35rem 0;
  cursor: pointer;
  font-size: 0.92rem;
}
.sp-surat-modal__radio--off {
  opacity: 0.45;
  cursor: not-allowed;
}
.sp-surat-modal__hint {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #b45309;
}
.sp-surat-modal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid #e2e8f0;
}
.sp-surat-modal__foot .btn-filter,
.sp-surat-modal__foot .btn-table {
  text-decoration: none;
}

/* Legacy cleanup */
.guru-tes-head,
.guru-tes-brand,
.guru-tes-logo,
.guru-tes-card,
.guru-tes-login,
.guru-tes-scope-note,
.guru-tes-filters {
  /* replaced by new classes */
}

