﻿/* =====================================================================
   app.css — Gaya tampilan E-Rapor PAUD
   =====================================================================
   PALET WARNA UTAMA
     - Dusk Blue   #26547c : warna utama (sidebar, tombol, judul)
     - Bubblegum   #ef476f : aksen/peringatan & kategori BB
     - Golden      #ffd166 : aksen highlight & kategori MB
     - Emerald     #06d6a0 : sukses & kategori BSB
     - White       #fcfcfc : latar & kartu

   STRUKTUR FILE (urut dari atas ke bawah):
     1. :root .................. variabel/desain token warna dasar
     2. Layout inti ............ app-shell, sidebar, topbar, kartu, tabel,
                                 form, badge, halaman login, dsb.
     3. Komponen halaman ....... dashboard, narasi, hasil klasifikasi,
                                 rapor (layar) & rapor formal (cetak)
     4. "Flat theme refresh" ... penyelarasan warna final ke palet di atas
     5. "UI/UX REFRESH v2" ..... lapisan poles terakhir (gradient, radius,
                                 shadow). Lapisan inilah yang menentukan
                                 tampilan akhir karena ditulis paling bawah
                                 sehingga memenangkan cascade CSS.

   Catatan: token tambahan (gradient, radius, shadow) didefinisikan ulang
   di blok :root pada bagian "UI/UX REFRESH v2" dekat akhir file.
   ===================================================================== */
:root {
    --dusk-blue: #26547c;
    --bubblegum-pink: #ef476f;
    --golden-pollen: #ffd166;
    --emerald: #06d6a0;
    --white: #fcfcfc;
    --primary: var(--dusk-blue);
    --primary-dark: var(--dusk-blue);
    --secondary: var(--bubblegum-pink);
    --success: var(--emerald);
    --warning: var(--golden-pollen);
    --danger: var(--bubblegum-pink);
    --info: var(--dusk-blue);
    --light: var(--white);
    --dark: var(--dusk-blue);
    --muted: rgba(38, 84, 124, 0.72);
    --border: rgba(38, 84, 124, 0.16);
    --card-bg: var(--white);
    --sidebar-bg: var(--dusk-blue);
    --sidebar-text: var(--white);
    --sidebar-active: var(--golden-pollen);
    --surface: var(--white);
    --surface-soft: rgba(38, 84, 124, 0.06);
    --surface-warm: rgba(255, 209, 102, 0.18);
    --accent-warm: var(--golden-pollen);
    --shadow-sm: 0 1px 2px rgba(38, 84, 124, 0.08);
    --shadow-md: 0 12px 28px rgba(38, 84, 124, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--dark);
}

a {
    text-decoration: none;
}

.btn,
.card,
.sidebar-link,
.stat-card,
.content-card,
.form-control,
.form-select,
.btn-auth-submit {
    transition: all 0.2s ease;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

#sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-header {
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-brand {
    display: flex;
    gap: 14px;
    align-items: center;
}

.app-brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    color: #fcfcfc;
    font-size: 1.2rem;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.25);
}

.app-brand h1 {
    margin: 0;
    color: #fcfcfc;
    font-size: 1.18rem;
}

.app-brand p {
    margin: 2px 0 0;
    color: var(--sidebar-text);
    font-size: 12px;
}

.sidebar-menu {
    list-style: none;
    padding: 18px 12px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--sidebar-text);
    padding: 12px 14px;
    border-radius: 12px;
    position: relative;
    font-weight: 500;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 9px;
    bottom: 9px;
    width: 4px;
    border-radius: 999px;
    background: transparent;
}

.sidebar-link:hover {
    background: rgba(148, 163, 184, 0.12);
    color: #fcfcfc;
}

.sidebar-link.active {
    background: rgba(79, 70, 229, 0.18);
    color: #fcfcfc;
}

.sidebar-link.active::before {
    background: var(--sidebar-active);
}

.sidebar-link small {
    margin-left: auto;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.sidebar-link.disabled {
    opacity: 0.65;
    pointer-events: none;
}

.sidebar-footer {
    padding: 18px 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 14px;
}

.user-avatar,
.topbar-avatar,
.child-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fcfcfc;
    background: var(--surface);
}

.user-meta strong,
.topbar-user strong {
    display: block;
    color: #fcfcfc;
    font-size: 13px;
}

.user-meta span,
.topbar-user span {
    color: var(--sidebar-text);
    font-size: 12px;
}

.btn-sidebar-logout {
    background: rgba(239, 68, 68, 0.12);
    color: #ef476f;
    border: 1px solid rgba(239, 68, 68, 0.14);
    border-radius: 999px;
    font-weight: 600;
}

.btn-sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #fcfcfc;
}

#main-content {
    flex: 1;
    margin-left: 260px;
    min-width: 0;
}

.topbar {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
    background: #fcfcfc;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.topbar-left,
.topbar-right,
.topbar-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-toggle-sidebar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fcfcfc;
    color: var(--dark);
}

.btn-toggle-sidebar:hover {
    background: var(--light);
    border-color: rgba(38, 84, 124, 0.26);
}

.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.topbar-avatar {
    width: 44px;
    height: 44px;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.18);
}

.content-area {
    padding: 24px;
}

.page-header-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.page-header-block h4 {
    margin: 0;
    font-size: 1.55rem;
}

.page-header-block p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.greeting-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px;
    border-radius: 24px;
    margin-bottom: 24px;
    background: var(--surface);
    color: #fcfcfc;
    overflow: hidden;
    position: relative;
}

.greeting-banner.parent-tone {
    background: var(--surface);
}

.greeting-banner.guru-tone {
    background: var(--surface);
}

.greeting-banner .eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.84);
}

.greeting-banner h2 {
    margin: 0 0 10px;
    color: #fcfcfc;
    font-size: 2rem;
}

.greeting-banner p {
    margin: 0;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.86);
}

.greeting-icon {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 2rem;
}

.content-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.section-heading h5 {
    margin: 0 0 5px;
    font-size: 1.12rem;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.stat-card {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fcfcfc;
    box-shadow: var(--shadow-sm);
    min-height: 128px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card h3 {
    margin: 0;
    font-size: 2rem;
}

.stat-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.stat-primary .stat-icon {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.15);
}

.stat-secondary .stat-icon {
    color: var(--secondary);
    background: rgba(6, 182, 212, 0.15);
}

.stat-success .stat-icon {
    color: var(--success);
    background: rgba(16, 185, 129, 0.15);
}

.stat-warning .stat-icon {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.15);
}

.table-app {
    margin-bottom: 0;
}

.table-app thead th {
    background: var(--light);
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    border-top: 0;
}

.table-app tbody td {
    border-top: 0;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table-app tbody tr:hover {
    background: rgba(38, 84, 124, 0.06);
}

.table-subtext {
    color: var(--muted);
    font-size: 12px;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-kategori {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #fcfcfc;
    color: var(--muted);
    border: 1px solid var(--border);
}

.badge-bb {
    background: rgba(239, 71, 111, 0.14);
    color: #ef476f;
    border: 1px solid rgba(239, 71, 111, 0.35);
}

.badge-mb {
    background: rgba(255, 209, 102, 0.25);
    color: #26547c;
    border: 1px solid rgba(255, 209, 102, 0.55);
}

.badge-bsh {
    background: rgba(38, 84, 124, 0.10);
    color: #26547c;
    border: 1px solid rgba(38, 84, 124, 0.30);
}

.badge-bsb {
    background: rgba(6, 214, 160, 0.15);
    color: #26547c;
    border: 1px solid rgba(6, 214, 160, 0.35);
}

.form-label {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}

.form-control,
.form-select,
.select2-container--bootstrap-5 .select2-selection {
    min-height: 44px;
    border-radius: 8px;
    border-color: var(--border);
    padding: 10px 14px;
    font-size: 14px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-control:focus,
.form-select:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--danger);
    font-size: 12px;
}

.modal-content {
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.18);
}

.modal-header,
.modal-footer {
    padding: 20px 24px;
    border-color: var(--border);
}

.modal-body {
    padding: 24px;
}

.modal-title {
    margin: 0;
}

.modal-subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.empty-state {
    padding: 48px 20px;
    text-align: center;
}

.empty-state.compact {
    padding: 28px 12px;
}

.empty-state i {
    display: inline-flex;
    width: 72px;
    height: 72px;
    border-radius: 22px;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 16px;
}

.empty-state h5,
.empty-state h6 {
    margin-bottom: 8px;
}

.empty-state p {
    max-width: 460px;
    color: var(--muted);
    margin: 0 auto 18px;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
}

.quick-action-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: auto;
    padding: 16px;
    border-radius: 14px;
    background: #fcfcfc;
    color: var(--muted);
}

.child-card-header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.child-card-header h5 {
    margin: 0 0 4px;
}

.child-card-header p {
    margin: 0;
    color: var(--muted);
}

.child-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: grid;
    gap: 12px;
}

.child-meta li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
}

.child-meta strong {
    color: var(--dark);
}

.report-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.report-highlight {
    min-width: 180px;
    border-radius: 16px;
    padding: 18px;
    background: rgba(38, 84, 124, 0.08);
}

.report-highlight span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.report-note {
    padding: 18px;
    border-radius: 16px;
    background: #fcfcfc;
}

.report-note h6 {
    margin-bottom: 10px;
}

.report-note p {
    margin: 0;
    color: var(--dark);
}

.report-list {
    display: grid;
    gap: 16px;
}

.report-item {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    background: #fcfcfc;
}

.report-item-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 40% 60%;
    background: #fcfcfc;
}

.auth-aside {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    color: #fcfcfc;
}

.auth-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-badge {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.4rem;
}

.auth-brand h1,
.auth-copy h2 {
    color: #fcfcfc;
    margin: 0;
}

.auth-brand p,
.auth-copy p {
    color: rgba(255, 255, 255, 0.82);
    margin: 8px 0 0;
}

.auth-copy {
    max-width: 420px;
}

.auth-copy .eyebrow,
.welcome-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fcfcfc;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.auth-pattern {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 300px;
}

.auth-pattern div {
    height: 84px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.auth-shape {
    position: absolute;
    border-radius: 999px;
    filter: blur(6px);
    opacity: 0.35;
}

.auth-shape-one {
    width: 220px;
    height: 220px;
    top: -60px;
    right: -40px;
    background: rgba(255, 255, 255, 0.24);
}

.auth-shape-two {
    width: 260px;
    height: 260px;
    bottom: -90px;
    left: -70px;
    background: rgba(255, 255, 255, 0.16);
}

.auth-form-pane {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: var(--surface);
}

.auth-form-card {
    width: 100%;
    max-width: 460px;
    padding: 34px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.auth-form-header h3 {
    margin: 0;
    font-size: 2rem;
}

.auth-form-header p {
    color: var(--muted);
    margin: 8px 0 24px;
}

.input-icon-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fcfcfc;
}

.input-icon-group > span {
    width: 46px;
    display: inline-flex;
    justify-content: center;
    color: var(--muted);
}

.input-icon-group .form-control {
    border: 0;
    box-shadow: none;
    padding-left: 0;
}

.input-icon-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.password-toggle {
    width: 46px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--muted);
}

.btn-auth-submit {
    min-height: 50px;
    border: 0;
    border-radius: 14px;
    color: #fcfcfc;
    font-weight: 700;
    background: var(--surface);
    box-shadow: 0 18px 30px rgba(79, 70, 229, 0.2);
}

.btn-auth-submit:hover {
    filter: brightness(0.96);
    color: #fcfcfc;
}

.auth-footer {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

.fade-in-up {
    animation: fadeInUp 0.55s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-overlay {
    display: none;
}

.dataTables_wrapper .row:last-child {
    margin-top: 18px;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.js-submit-button.is-loading {
    opacity: 0.9;
    pointer-events: none;
}

.classification-swal-popup {
    border-radius: 24px;
}

.classification-alert {
    text-align: center;
}

.classification-alert-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 18px;
    border-radius: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    font-size: 2.6rem;
}

.classification-alert-text {
    margin: 0 0 14px;
    color: var(--muted);
}

.classification-alert-badge {
    margin-bottom: 16px;
}

.classification-alert-meta {
    padding: 14px 16px;
    border-radius: 16px;
    background: #fcfcfc;
}

.classification-alert-meta strong,
.classification-alert-meta span {
    display: block;
}

.classification-alert-meta strong {
    color: var(--dark);
    margin-bottom: 4px;
}

.classification-alert-meta span {
    color: var(--muted);
}

.filter-toolbar-grid {
    display: grid;
    gap: 16px;
}

.result-filter-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.narasi-filter-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
}

.filter-toolbar-action {
    display: flex;
    align-items: end;
}

.narasi-entry-shell {
    overflow: hidden;
}

.stepper-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.stepper-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
}

.stepper-item strong,
.stepper-item span {
    display: block;
}

.stepper-item span {
    font-size: 12px;
}

.stepper-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: #fcfcfc;
    color: var(--muted);
    font-weight: 700;
}

.stepper-item.is-active .stepper-dot,
.stepper-item.is-complete .stepper-dot {
    color: #fcfcfc;
    border-color: transparent;
    background: var(--surface);
}

.stepper-item.is-active strong,
.stepper-item.is-complete strong {
    color: var(--dark);
}

.stepper-line {
    width: 48px;
    height: 1px;
    background: var(--border);
}

.narasi-section + .narasi-section {
    margin-top: 28px;
}

.narasi-divider {
    height: 1px;
    margin: 28px 0;
    background: var(--surface);
}

.child-preview-card {
    min-height: 100%;
    padding: 18px;
    border-radius: 16px;
    border: 1px dashed rgba(79, 70, 229, 0.24);
    background: var(--surface);
}

.child-preview-empty,
.child-preview-filled {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
}

.child-preview-empty {
    color: var(--muted);
}

.child-preview-empty i {
    font-size: 1.6rem;
    color: var(--primary);
}

.child-preview-avatar,
.narasi-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fcfcfc;
    flex-shrink: 0;
}

.child-preview-filled h6 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.child-preview-filled p,
.child-preview-filled span {
    display: block;
    margin: 0;
    color: var(--muted);
}

.textarea-counter-wrap {
    position: relative;
}

.textarea-counter-wrap textarea {
    padding-bottom: 40px;
}

.textarea-counter {
    position: absolute;
    right: 16px;
    bottom: 14px;
    color: var(--muted);
    font-size: 12px;
}

.narasi-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 24px;
    margin-top: 28px;
    border-top: 1px solid var(--border);
}

.narasi-card-grid {
    display: grid;
    gap: 18px;
}

.narasi-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.narasi-card-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.narasi-card-body {
    flex: 1;
    min-width: 0;
}

.narasi-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.narasi-card-head h5 {
    margin: 0 0 4px;
}

.narasi-card-head p {
    margin: 0;
    color: var(--muted);
}

.narasi-card-snippet {
    margin: 0 0 12px;
    color: var(--dark);
}

.narasi-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 12px;
}

.narasi-card-actions {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.detail-modal-intro {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 18px;
    background: var(--surface);
}

.detail-modal-icon {
    width: 66px;
    height: 66px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    color: #fcfcfc;
    font-size: 1.7rem;
    flex-shrink: 0;
}

.detail-modal-summary {
    margin: 10px 0 0;
    color: var(--muted);
}

.detail-section + .detail-section {
    margin-top: 28px;
}

.detail-identity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.detail-identity-item {
    padding: 16px;
    border-radius: 16px;
    background: #fcfcfc;
    border: 1px solid var(--border);
}

.detail-identity-item span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

.detail-identity-item strong {
    display: block;
    color: var(--dark);
}

.analysis-quote {
    margin: 0;
    padding: 18px 20px;
    border-radius: 18px;
    background: #fcfcfc;
    border-left: 4px solid var(--primary);
    color: var(--dark);
}

.score-list {
    display: grid;
    gap: 14px;
}

.algorithm-summary-card {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(79, 70, 229, 0.12);
    background: var(--surface);
}

.algorithm-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.algorithm-decision-note {
    margin: 0 0 14px;
    color: var(--dark);
    line-height: 1.7;
}

.algorithm-steps-note {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.04);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

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

.algorithm-formula-item {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fcfcfc;
}

.algorithm-formula-item.is-winner {
    border-color: rgba(16, 185, 129, 0.24);
    background: rgba(16, 185, 129, 0.07);
}

.algorithm-formula-item p {
    margin: 10px 0 6px;
    color: var(--dark);
    font-size: 13px;
}

.algorithm-formula-item small {
    color: var(--muted);
    font-size: 12px;
}

.algorithm-row-note {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

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

.decision-matrix-card {
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fcfcfc;
}

.decision-matrix-card.is-winner {
    border-color: rgba(79, 70, 229, 0.3);
    background: var(--surface);
}

.decision-matrix-header,
.decision-matrix-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.decision-matrix-stats {
    margin-top: 12px;
}

.decision-matrix-stats span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.decision-matrix-stats strong {
    font-size: 18px;
    color: var(--dark);
}

.decision-matrix-status {
    margin: 12px 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}

.score-item {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fcfcfc;
}

.score-item.is-winner {
    border-color: rgba(79, 70, 229, 0.35);
    background: var(--surface);
}

.score-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.score-progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(38, 84, 124, 0.18);
}

.score-progress .progress-bar {
    background: var(--surface);
    border-radius: 999px;
}

.score-item-note {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.detail-modal-badge {
    font-size: 14px;
    padding: 8px 16px;
}

.category-preview-badge {
    min-width: 86px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
    padding: 6px 12px;
}

.table-subtext {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.aspect-result-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.aspect-result-summary h5 {
    margin-bottom: 6px;
}

.aspect-result-summary p {
    margin: 0;
    color: var(--muted);
}

.aspect-result-badges {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 320px;
}

.aspect-result-badge-card {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fcfcfc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.classification-category-card {
    border-left: 4px solid rgba(79, 70, 229, 0.18);
}

.classification-category-meta {
    min-width: 88px;
    text-align: right;
}

.classification-category-meta strong {
    display: block;
    font-size: 1.35rem;
    color: var(--dark);
    line-height: 1;
}

.classification-category-meta span {
    color: var(--muted);
    font-size: 12px;
}

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

.guideline-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fcfcfc;
}

.guideline-card h6 {
    margin: 0 0 10px;
}

.guideline-card p,
.guideline-quote p {
    margin: 0;
    color: var(--muted);
}

.guideline-list {
    margin: 0;
    padding-left: 18px;
    color: var(--dark);
}

.guideline-list li + li {
    margin-top: 10px;
}

.guideline-example-block {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr 1fr;
}

.guideline-quote {
    padding: 18px;
    border-radius: 18px;
    background: rgba(79, 70, 229, 0.05);
    border-left: 4px solid var(--primary);
}

.guideline-quote strong {
    display: block;
    margin-bottom: 8px;
}

.category-preview-empty {
    background: #fcfcfc;
    border: 1px dashed var(--border);
    color: var(--muted);
}

.status-switch-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-switch-label {
    font-size: 12px;
    font-weight: 600;
}

.status-switch-label.is-active {
    color: var(--success);
}

.status-switch-label.is-inactive {
    color: var(--muted);
}

.avatar-tone-indigo {
    background: var(--surface);
}

.avatar-tone-cyan {
    background: var(--surface);
}

.avatar-tone-emerald {
    background: var(--surface);
}

.avatar-tone-amber {
    background: var(--surface);
}

.avatar-tone-rose {
    background: var(--surface);
}

.avatar-tone-sky {
    background: var(--surface);
}

tr.js-result-row-open {
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        display: none;
    }

    .content-area,
    .topbar {
        padding-left: 18px;
        padding-right: 18px;
    }

    .stepper-header,
    .detail-modal-intro,
    .narasi-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-identity-grid,
    .result-filter-grid,
    .narasi-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .formal-report-document {
        padding: 18px;
        border-radius: 8px;
    }

    .formal-data-table div,
    .formal-data-table.compact div,
    .formal-summary-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .formal-summary-track {
        grid-column: auto;
    }
}

@media (max-width: 767.98px) {
    #sidebar {
        transform: translateX(-100%);
        transition: transform 0.22s ease;
    }

    body.sidebar-open #sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 1030;
    }

    #main-content {
        margin-left: 0;
    }

    .topbar {
        height: auto;
        padding-top: 14px;
        padding-bottom: 14px;
        align-items: flex-start;
        flex-direction: column;
    }

    .page-header-block,
    .report-header,
    .greeting-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .content-area {
        padding: 18px;
    }

    .auth-form-pane {
        padding: 18px;
    }

    .auth-form-card {
        padding: 24px;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .stepper-header,
    .narasi-form-actions,
    .narasi-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-identity-grid,
    .result-filter-grid,
    .narasi-filter-grid {
        grid-template-columns: 1fr;
    }

    .narasi-card-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

.read-only-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(79, 70, 229, 0.18);
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 12px;
}

.admin-chart-layout {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 220px;
    gap: 22px;
    align-items: center;
}

.admin-chart-canvas-wrap {
    position: relative;
    min-height: 280px;
}

.admin-chart-legend,
.report-latest-list,
.activity-timeline {
    display: grid;
    gap: 12px;
}

.admin-chart-legend-item,
.report-latest-item,
.activity-item,
.quick-action-tile,
.report-summary-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fcfcfc;
}

.admin-chart-legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
}

.report-latest-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: inherit;
    text-decoration: none;
    transition: 0.2s ease;
}

.report-latest-item:hover,
.quick-action-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.report-latest-item p,
.activity-body p,
.quick-action-tile p,
.report-summary-item p,
.report-card-body p,
.report-child-meta p {
    margin: 0;
    color: var(--muted);
}

.report-latest-item small,
.activity-body span {
    color: var(--muted);
    display: block;
    margin-top: 4px;
}

.quick-action-grid {
    display: grid;
    gap: 14px;
}

.quick-action-tile {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

.quick-action-tile h6 {
    margin: 0 0 4px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
}

.quick-action-icon,
.activity-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.quick-action-icon.primary,
.activity-primary {
    background: rgba(79, 70, 229, 0.12);
    color: var(--primary);
}

.quick-action-icon.warning,
.activity-warning {
    background: rgba(245, 158, 11, 0.14);
    color: var(--warning);
}

.quick-action-icon.success,
.activity-success {
    background: rgba(16, 185, 129, 0.14);
    color: var(--success);
}

.quick-action-icon.secondary,
.activity-secondary {
    background: rgba(6, 182, 212, 0.14);
    color: var(--secondary);
}

.activity-item {
    display: flex;
    gap: 14px;
    padding: 16px;
}

.activity-body strong {
    display: block;
    margin-bottom: 4px;
}

.child-report-summary {
    border-top: 1px dashed var(--border);
    margin-top: 18px;
    padding-top: 16px;
}

.child-report-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.child-report-summary-head span,
.child-report-summary-empty span {
    color: var(--muted);
    font-size: 12px;
}

.child-summary-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.child-report-summary-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--light);
    border-radius: 12px;
}

.report-card {
    padding: 22px;
}

.report-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.report-card-body h5 {
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.report-card-divider {
    height: 1px;
    background: var(--border);
    margin: 18px 0;
}

.report-card-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.report-card-meta li,
.report-progress-head,
.report-detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.report-card-meta span {
    color: var(--muted);
}

.report-card-progress {
    display: grid;
    gap: 10px;
}

.report-progress-row {
    display: grid;
    gap: 8px;
}

.report-progress-bar {
    height: 9px;
    background: rgba(38, 84, 124, 0.08);
}

.progress-bar-bb {
    background: #ef476f;
}

.progress-bar-mb {
    background: #ffd166;
}

.progress-bar-bsh {
    background: #26547c;
}

.progress-bar-bsb {
    background: #06d6a0;
}

.report-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.report-hero-card {
    padding: 0;
    overflow: hidden;
    background: var(--surface);
    color: #fcfcfc;
}

.report-hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px;
}

.report-school-logo {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
}

.report-hero-card h3 {
    margin: 4px 0;
    font-size: 1.5rem;
}

.report-hero-card p,
.report-hero-badge span {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.report-hero-badge {
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.report-summary-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: center;
}

.report-donut-wrap {
    display: flex;
    justify-content: center;
}

.report-donut {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.report-donut-center {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: #fcfcfc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.report-donut-center strong {
    font-size: 2rem;
    font-family: 'Nunito', sans-serif;
    line-height: 1;
}

.report-donut-center span {
    color: var(--muted);
    font-size: 12px;
    margin-top: 6px;
}

.report-summary-stats {
    display: grid;
    gap: 12px;
}

.report-summary-stat {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--light);
}

.report-summary-stat.is-dominant {
    border-color: rgba(79, 70, 229, 0.3);
    background: rgba(79, 70, 229, 0.06);
}

.report-summary-stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.report-summary-stat p {
    margin: 0;
    color: var(--muted);
}

.report-note-card {
    margin-bottom: 24px;
}

.report-note-quote {
    margin: 0;
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid rgba(79, 70, 229, 0.12);
    font-style: italic;
    color: var(--dark);
}

.report-detail-footer {
    margin-top: 6px;
}

.report-detail-footer-meta {
    display: grid;
    gap: 4px;
    color: var(--muted);
}

.report-wizard-shell {
    padding: 0;
    overflow: hidden;
}

.report-wizard-header {
    padding: 24px 24px 0;
}

.report-wizard-progress {
    height: 8px;
    background: rgba(38, 84, 124, 0.16);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 18px;
}

.report-wizard-progress-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--surface);
    transition: width 0.2s ease;
}

.report-wizard-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.report-wizard-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fcfcfc;
    color: var(--muted);
}

.report-wizard-step.is-active {
    border-color: rgba(79, 70, 229, 0.26);
    background: rgba(79, 70, 229, 0.06);
    color: var(--dark);
}

.report-wizard-step.is-complete {
    border-color: rgba(16, 185, 129, 0.26);
    background: rgba(16, 185, 129, 0.08);
    color: var(--dark);
}

.report-wizard-step-bullet {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border: 1px solid var(--border);
    font-weight: 700;
}

.report-step-panel {
    padding: 24px;
}

.report-step-panel + .report-step-panel {
    border-top: 1px solid var(--border);
}

.report-child-preview {
    min-height: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    padding: 20px;
}

.report-child-preview-empty,
.report-summary-placeholder {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: var(--muted);
    gap: 10px;
}

.report-child-preview-empty i,
.report-summary-placeholder i {
    font-size: 2rem;
    color: var(--primary);
}

.report-child-preview-filled {
    display: grid;
    gap: 16px;
}

.report-child-avatar {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
}

.report-child-meta h5 {
    margin: 0 0 4px;
}

.report-child-preview-filled ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.report-child-preview-filled li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fcfcfc;
    border: 1px solid var(--border);
}

.report-child-preview-filled li span {
    color: var(--muted);
}

.report-confirm-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    background: #fcfcfc;
}

.report-confirm-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.report-confirm-head h5 {
    margin-bottom: 4px;
}

.report-confirm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.report-summary-item {
    padding: 16px;
}

.report-summary-item.is-empty {
    background: var(--light);
}

.report-summary-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.report-warning-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.report-warning-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid transparent;
}

.report-warning-item i {
    font-size: 1.15rem;
    margin-top: 1px;
}

.report-warning-item div {
    display: grid;
    gap: 4px;
}

.report-warning-item.warning {
    background: rgba(255, 209, 102, 0.18);
    border-color: rgba(255, 209, 102, 0.55);
    color: #26547c;
}

.report-warning-item.overwrite {
    background: rgba(239, 71, 111, 0.10);
    border-color: rgba(239, 71, 111, 0.35);
    color: #ef476f;
}

.report-warning-item.empty {
    background: rgba(38, 84, 124, 0.08);
    border-color: rgba(38, 84, 124, 0.30);
    color: #26547c;
}

.report-wizard-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid var(--border);
    background: #fcfcfc;
}

.report-generation-alert {
    display: grid;
    gap: 14px;
    text-align: center;
}

.report-generation-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    margin: 0 auto;
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.report-generation-text {
    margin: 0;
}

.report-generation-badge,
.report-generation-meta {
    display: grid;
    gap: 4px;
}

.report-generation-note {
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

.table-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--border);
    background: var(--light);
    color: var(--dark);
}

.table-role-badge.role-guru {
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.18);
    color: var(--primary-dark);
}

.table-role-badge.role-kepala_sekolah {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.2);
    color: #26547c;
}

.teacher-note-card {
    margin: 18px 0;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(79, 70, 229, 0.12);
    background: var(--surface);
}

.teacher-note-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.teacher-note-card p {
    margin: 0;
    color: var(--dark);
    font-style: italic;
}

.narasi-availability-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px dashed rgba(79, 70, 229, 0.22);
    background: var(--surface);
}

.narasi-availability-note i {
    font-size: 1.15rem;
    color: var(--primary);
}

.narasi-availability-note strong,
.narasi-availability-note span {
    display: block;
}

.narasi-availability-note span {
    color: var(--muted);
    font-size: 13px;
}

.bulk-aspek-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bulk-aspek-card {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fcfcfc;
}

.bulk-aspek-card.bulk-tone-even {
    background: var(--surface);
    border-color: rgba(79, 70, 229, 0.18);
}

.bulk-aspek-card.bulk-tone-odd {
    background: var(--surface);
    border-color: rgba(6, 182, 212, 0.18);
}

.bulk-aspek-card.bulk-tone-even .textarea-counter-wrap,
.bulk-aspek-card.bulk-tone-even .narasi-doc-block {
    padding: 16px;
    border-radius: 16px;
    background: rgba(79, 70, 229, 0.03);
    border: 1px solid rgba(79, 70, 229, 0.08);
}

.bulk-aspek-card.bulk-tone-odd .textarea-counter-wrap,
.bulk-aspek-card.bulk-tone-odd .narasi-doc-block {
    padding: 16px;
    border-radius: 16px;
    background: rgba(6, 182, 212, 0.035);
    border: 1px solid rgba(6, 182, 212, 0.08);
}

.bulk-aspek-card .narasi-doc-block {
    margin-top: 16px;
}

.bulk-aspek-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.bulk-aspek-head h6 {
    margin: 0 0 6px;
}

.bulk-aspek-head p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.bulk-aspek-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    font-size: 12px;
    font-weight: 700;
    height: fit-content;
}

.grouped-narasi-list {
    display: grid;
    gap: 20px;
}

.grouped-narasi-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.grouped-narasi-child {
    display: flex;
    align-items: center;
    gap: 14px;
}

.grouped-narasi-child h5 {
    margin: 0 0 4px;
}

.grouped-narasi-child p {
    margin: 0;
    color: var(--muted);
}

.grouped-narasi-total {
    min-width: 120px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(79, 70, 229, 0.08);
    text-align: right;
}

.grouped-narasi-total span,
.child-first-summary-meta span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.grouped-narasi-total strong,
.child-first-summary-meta strong {
    font-size: 1.7rem;
    line-height: 1.1;
    color: var(--dark);
}

.child-first-filter-grid {
    grid-template-columns: 1.5fr 1fr 1fr auto auto;
}

.child-first-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    padding: 20px 22px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid rgba(79, 70, 229, 0.12);
}

.child-first-summary h5 {
    margin: 6px 0 4px;
}

.child-first-summary p {
    margin: 0;
    color: var(--muted);
}

.child-first-summary-meta {
    min-width: 120px;
    text-align: right;
}

.edit-narasi-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.edit-narasi-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.summary-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--dark);
    background: var(--light);
    border: 1px solid var(--border);
}

.bulk-classification-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.bulk-classification-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fcfcfc;
    border: 1px solid var(--border);
}

.bulk-classification-item strong,
.bulk-classification-item span {
    display: block;
}

.bulk-classification-item span {
    color: var(--muted);
    font-size: 12px;
}

.schema-warning-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.08);
}

.schema-warning-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.18);
    color: #26547c;
    flex-shrink: 0;
}

.schema-warning-card h6 {
    margin: 0 0 6px;
}

.schema-warning-card p {
    margin: 0;
    color: var(--muted);
}

.form-help-text {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.uploaded-photo-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fcfcfc;
}

.uploaded-photo-preview img,
.table-photo-thumb,
.report-doc-item img,
.report-detail-photo img,
.hero-school-logo-image {
    object-fit: cover;
}

.uploaded-photo-preview img {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    flex-shrink: 0;
}

.uploaded-photo-preview p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.table-photo-thumb,
.table-photo-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.table-photo-thumb {
    display: block;
}

.table-photo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fcfcfc;
    font-weight: 700;
}

.school-profile-side-card {
    padding: 22px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    height: 100%;
}

.school-profile-side-card h6 {
    margin-bottom: 18px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

.school-logo-text-preview {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fcfcfc;
    background: var(--surface);
}

.inner-card {
    padding: 22px;
    border-radius: 18px;
    background: #fcfcfc;
}

.aspect-doc-card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.aspect-doc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.aspect-doc-header h6 {
    margin: 0;
}

.doc-upload-tile {
    height: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px dashed rgba(79, 70, 229, 0.28);
    background: rgba(79, 70, 229, 0.03);
}

.doc-caption-input {
    min-height: 92px;
}

.compact-caption-input {
    min-height: auto;
    padding: 8px 12px;
    font-size: 13px;
}

.report-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.report-child-profile {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 20px;
}

.report-detail-photo {
    width: 132px;
    height: 162px;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fcfcfc;
    font-weight: 800;
    font-size: 1.5rem;
}

.report-detail-photo img {
    width: 100%;
    height: 100%;
}

.report-opening-block {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(79, 70, 229, 0.1);
    background: rgba(79, 70, 229, 0.05);
}

.report-opening-block h6 {
    margin: 0 0 8px;
}

.report-opening-block p {
    margin: 0;
    color: var(--dark);
}

.report-aspect-list {
    display: grid;
    gap: 18px;
}

.report-aspect-card {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fcfcfc;
}

.report-aspect-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.report-aspect-number {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

.report-aspect-card-head h5 {
    margin: 0;
}

.report-doc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.report-doc-item {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fcfcfc;
}

.report-doc-item img,
.report-doc-placeholder {
    width: 100%;
    height: 176px;
}

.report-doc-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    background: var(--surface);
    font-size: 2rem;
}

.report-doc-item p {
    margin: 0;
    padding: 10px 12px;
    font-size: 12px;
    color: var(--muted);
}

.report-aspect-narrative {
    padding: 16px 18px;
    border-radius: 16px;
    background: #fcfcfc;
    border: 1px solid var(--border);
}

.attendance-grid {
    display: grid;
    gap: 12px;
}

.attendance-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fcfcfc;
}

.attendance-item span {
    color: var(--muted);
    font-size: 12px;
}

.report-closing-card {
    background: var(--surface);
}

.report-closing-text {
    margin: 0 0 20px;
    color: var(--dark);
}

.report-signature-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.report-signature-row span {
    display: block;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 12px;
}

.report-signature-row strong {
    display: block;
}

.imumu-report-hero .report-hero-card-header {
    align-items: center;
}

.hero-school-logo-image {
    width: 100%;
    height: 100%;
}

.formal-report-document {
    max-width: 1120px;
    margin: 0 auto 28px;
    padding: 34px;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    color: #172033;
}

.formal-report-letterhead {
    display: grid;
    grid-template-columns: 96px 1fr 180px;
    gap: 22px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 3px double #172033;
}

.formal-report-logo {
    width: 82px;
    height: 82px;
    border-radius: 6px;
    border: 1px solid #d7dee8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 800;
    color: #26547c;
    background: #fff;
}

.formal-report-logo img,
.formal-child-photo img,
.formal-doc-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.formal-report-kicker {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.formal-report-school h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    line-height: 1.25;
    color: #102a43;
    text-transform: uppercase;
}

.formal-report-school p {
    margin: 2px 0;
    font-size: 13px;
    color: #475569;
}

.formal-report-stamp {
    padding: 14px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
}

.formal-report-stamp span,
.formal-data-table span,
.formal-summary-row em,
.formal-aspect-head span,
.formal-signature-grid span {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.formal-report-stamp strong {
    display: block;
    margin-top: 6px;
    color: #102a43;
}

.formal-report-title {
    padding: 24px 0 20px;
    text-align: center;
}

.formal-report-title span {
    display: inline-block;
    margin-bottom: 8px;
    padding: 5px 12px;
    border: 1px solid #d7dee8;
    border-radius: 999px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.formal-report-title h1 {
    margin: 0 0 8px;
    font-size: 1.65rem;
    text-transform: uppercase;
    color: #102a43;
}

.formal-report-title p {
    margin: 0;
    color: #475569;
}

.formal-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.formal-report-panel {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #fff;
}

.formal-section-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.formal-section-head > span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #102a43;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.formal-section-head h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: #102a43;
}

.formal-section-head p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.formal-identity-layout {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 18px;
    align-items: start;
}

.formal-child-photo {
    width: 132px;
    height: 164px;
    border-radius: 8px;
    border: 1px solid #d7dee8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
}

.formal-data-table {
    display: grid;
    border: 1px solid #d7dee8;
    border-bottom: 0;
}

.formal-data-table div {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 14px;
    padding: 10px 12px;
    border-bottom: 1px solid #d7dee8;
}

.formal-data-table.compact div {
    grid-template-columns: 1fr auto;
}

.formal-data-table strong {
    color: #172033;
    font-weight: 800;
}

.formal-summary-table {
    display: grid;
    gap: 10px;
}

.formal-summary-row {
    display: grid;
    grid-template-columns: 56px 1fr 76px;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.formal-summary-row:last-child {
    border-bottom: 0;
}

.formal-summary-row strong {
    color: #172033;
}

.formal-summary-track {
    grid-column: 2 / 4;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.formal-summary-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #26547c;
}

.formal-report-note {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
}

.formal-report-note strong {
    color: #102a43;
}

.formal-narrative {
    padding: 16px 18px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #fbfdff;
    color: #172033;
    line-height: 1.8;
    text-align: justify;
}

.formal-aspect-list {
    display: grid;
    gap: 18px;
}

.formal-aspect-item {
    padding: 18px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #fff;
}

.formal-aspect-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.formal-aspect-head h4 {
    margin: 3px 0 0;
    font-size: 1rem;
    color: #102a43;
}

.formal-doc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.formal-doc-grid figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #fff;
}

.formal-doc-grid img,
.formal-doc-placeholder {
    height: 150px;
}

.formal-doc-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: #f8fafc;
}

.formal-doc-grid figcaption {
    padding: 9px 10px;
    color: #64748b;
    font-size: 12px;
    border-top: 1px solid #e2e8f0;
}

.formal-note-stack {
    display: grid;
    gap: 12px;
}

.formal-note-stack div {
    padding: 14px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #fbfdff;
}

.formal-note-stack strong {
    display: block;
    margin-bottom: 8px;
    color: #102a43;
}

.formal-note-stack p {
    margin: 0;
    color: #172033;
    line-height: 1.65;
}

.formal-signature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.formal-signature-grid div {
    min-height: 150px;
    padding: 16px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    text-align: center;
    background: #fff;
}

.formal-signature-grid i {
    display: block;
    height: 64px;
    margin-bottom: 12px;
    border-bottom: 1px solid #172033;
}

.formal-signature-grid strong {
    display: block;
    color: #172033;
}

.formal-report-actions {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.form-error-text {
    margin-top: 8px;
    font-size: 12px;
    color: var(--danger);
}

.clean-form-card {
    padding: 22px;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.child-preview-card {
    min-height: 92px;
    display: flex;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fcfcfc;
}

.child-preview-empty,
.child-preview-filled {
    display: flex;
    align-items: center;
    gap: 14px;
}

.child-preview-empty i {
    font-size: 1.35rem;
    color: var(--primary);
}

.child-preview-empty span,
.child-preview-filled p,
.child-preview-filled span {
    color: var(--muted);
}

.child-preview-filled h6 {
    margin: 0 0 4px;
}

.child-preview-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fcfcfc;
    font-weight: 700;
    flex-shrink: 0;
}

.bulk-aspek-grid-clean {
    grid-template-columns: 1fr;
    gap: 16px;
}

.bulk-aspek-head-clean {
    align-items: flex-start;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.bulk-aspek-head-clean p {
    max-width: 42ch;
}

.narasi-doc-block {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}

.narasi-doc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.narasi-doc-head strong {
    font-size: 14px;
}

.narasi-doc-head span {
    color: var(--muted);
    font-size: 12px;
}

.clean-doc-tile {
    padding: 14px;
    border-style: solid;
    border-color: rgba(38, 84, 124, 0.16);
    background: #fcfcfc;
}

.clean-doc-tile:hover {
    background: #fcfcfc;
    border-color: rgba(38, 84, 124, 0.26);
}

@media (max-width: 991.98px) {
    .algorithm-formula-grid {
        grid-template-columns: 1fr;
    }

    .decision-matrix-grid {
        grid-template-columns: 1fr;
    }

    .aspect-result-summary,
    .guideline-example-block {
        grid-template-columns: 1fr;
        display: grid;
    }

    .aspect-result-badges,
    .guideline-grid {
        grid-template-columns: 1fr;
        min-width: 0;
    }
}

.report-wizard-shell-clean {
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.report-wizard-shell-clean .report-wizard-header {
    padding: 20px 20px 0;
}

.report-wizard-shell-clean .report-wizard-step {
    padding: 12px;
    border-radius: 12px;
    background: #fcfcfc;
}

.report-wizard-shell-clean .report-step-panel {
    padding: 20px;
}

.report-wizard-shell-clean .report-wizard-actions {
    padding: 20px;
    background: #fcfcfc;
}

.report-wizard-shell-clean .report-child-preview,
.report-wizard-shell-clean .report-confirm-card,
.report-wizard-shell-clean .inner-card {
    background: #fcfcfc;
    border-radius: 14px;
    box-shadow: none;
}

.report-wizard-shell-clean .inner-card {
    border: 1px solid var(--border);
    padding: 20px;
}

.report-hero-card {
    background: var(--surface);
    color: var(--dark);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.report-hero-card h3,
.report-hero-card p,
.report-hero-card small {
    color: var(--dark);
}

.report-hero-card .eyebrow.text-white-50 {
    color: var(--muted) !important;
}

.report-school-logo {
    background: #fcfcfc;
    border: 1px solid var(--border);
    box-shadow: none;
}

.report-hero-badge {
    background: #fcfcfc;
    border-color: var(--border);
    color: var(--muted);
}

.report-donut-center {
    box-shadow: none;
    border: 1px solid var(--border);
}

.report-note-quote,
.report-opening-block,
.report-closing-card,
.teacher-note-card,
.narasi-availability-note,
.child-first-summary {
    background: #fcfcfc;
}

.report-note-quote,
.report-opening-block,
.teacher-note-card,
.narasi-availability-note,
.child-first-summary {
    border: 1px solid var(--border);
}

.report-note-quote {
    font-style: normal;
}

.teacher-note-head {
    color: var(--dark);
}

.teacher-note-card p {
    font-style: normal;
    color: var(--muted);
}

.uploaded-photo-preview,
.report-child-preview,
.report-aspect-narrative,
.attendance-item,
.report-summary-item,
.report-summary-stat {
    background: #fcfcfc;
}

@media (min-width: 1200px) {
    .bulk-aspek-grid-clean {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .report-summary-layout,
    .admin-chart-layout,
    .bulk-aspek-grid,
    .report-doc-grid,
    .formal-report-grid,
    .formal-doc-grid,
    .report-signature-row,
    .formal-signature-grid,
    .report-child-profile {
        grid-template-columns: 1fr;
    }

    .formal-report-letterhead,
    .formal-identity-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .formal-report-logo,
    .formal-child-photo {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 991.98px) {
    .report-hero-card-header,
    .report-detail-footer,
    .report-confirm-head,
    .grouped-narasi-head,
    .child-first-summary,
    .edit-narasi-meta,
    .aspect-doc-header,
    .report-aspect-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-wizard-steps,
    .report-confirm-grid,
    .child-first-filter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .topbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .read-only-chip,
    .report-card-actions,
    .report-wizard-actions {
        width: 100%;
    }

    .report-card-actions .btn,
    .report-wizard-actions .btn {
        flex: 1 1 auto;
    }

    .report-hero-card-header,
    .child-report-summary-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-doc-grid {
        grid-template-columns: 1fr;
    }

    .child-preview-card,
    .child-preview-empty,
    .child-preview-filled {
        align-items: flex-start;
    }
}

/* Clean palette refresh */
body {
    background: var(--surface);
}

.app-shell {
    background: transparent;
}

#sidebar {
    background: var(--surface);
    border-right: 1px solid rgba(255, 225, 0, 0.12);
    box-shadow: 8px 0 28px rgba(16, 9, 26, 0.18);
}

.sidebar-header {
    padding: 22px 18px 18px;
    border-bottom-color: rgba(255, 249, 204, 0.12);
}

.app-brand-icon {
    border-radius: 14px;
    background: var(--surface);
    color: var(--dusk-blue);
    box-shadow: 0 12px 24px rgba(255, 106, 0, 0.22);
}

.app-brand h1 {
    letter-spacing: 0;
}

.app-brand p {
    color: rgba(241, 236, 248, 0.74);
}

.sidebar-menu {
    padding: 16px 10px;
    gap: 4px;
}

.sidebar-link {
    border-radius: 10px;
    color: rgba(241, 236, 248, 0.78);
    padding: 11px 13px;
}

.sidebar-link i {
    width: 22px;
    color: rgba(255, 237, 102, 0.88);
}

.sidebar-link:hover {
    background: rgba(255, 249, 204, 0.10);
    color: #fcfcfc;
}

.sidebar-link.active {
    background: var(--surface);
    color: #fcfcfc;
}

.sidebar-link.active::before {
    background: var(--bubblegum-pink);
}

.sidebar-section-label {
    padding: 8px 13px 6px;
    color: rgba(255, 249, 204, 0.56);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-section-label.footer-label {
    padding: 0 2px 10px;
}

.sidebar-footer {
    border-top-color: rgba(255, 249, 204, 0.12);
}

.user-mini-card {
    border-radius: 12px;
    background: rgba(255, 249, 204, 0.08);
    border: 1px solid rgba(255, 249, 204, 0.10);
}

.user-avatar,
.topbar-avatar,
.child-avatar,
.report-card-avatar {
    background: var(--surface);
    color: #fcfcfc;
}

.btn-sidebar-logout {
    border-radius: 10px;
    background: rgba(255, 106, 0, 0.12);
    border-color: rgba(255, 106, 0, 0.22);
    color: rgba(239, 71, 111, 0.16);
}

.topbar {
    height: 72px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(233, 223, 204, 0.95);
    box-shadow: 0 8px 24px rgba(16, 9, 26, 0.06);
    backdrop-filter: blur(12px);
}

.btn-toggle-sidebar {
    border-radius: 10px;
    background: rgba(255, 209, 102, 0.14);
    border-color: rgba(255, 209, 102, 0.45);
    color: var(--dusk-blue);
}

.btn-toggle-sidebar:hover {
    background: rgba(255, 209, 102, 0.25);
    border-color: var(--golden-pollen);
}

.topbar-breadcrumb span {
    color: var(--muted);
}

.topbar-breadcrumb strong,
.topbar-user strong {
    color: var(--dark);
}

.topbar-user span {
    color: var(--muted);
}

.read-only-chip {
    border-color: rgba(255, 209, 102, 0.45);
    background: rgba(255, 209, 102, 0.14);
    color: var(--dusk-blue);
}

.content-area {
    padding: 26px;
}

.page-header-block {
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(233, 223, 204, 0.85);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.page-header-block h4 {
    font-size: 1.35rem;
}

.greeting-banner,
.greeting-banner.guru-tone,
.greeting-banner.parent-tone {
    border-radius: 16px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid rgba(255, 249, 204, 0.16);
    box-shadow: 0 18px 38px rgba(16, 9, 26, 0.18);
}

.greeting-banner .eyebrow {
    color: rgba(255, 209, 102, 0.45);
}

.greeting-banner h2 {
    font-size: 1.75rem;
}

.greeting-icon {
    border-radius: 16px;
    background: rgba(255, 249, 204, 0.12);
    border-color: rgba(255, 249, 204, 0.18);
    color: rgba(255, 209, 102, 0.25);
}

.content-card,
.card,
.modal-content,
.clean-form-card,
.report-card,
.report-aspect-card,
.teacher-note-card,
.schema-warning-card,
.school-profile-side-card,
.inner-card,
.child-card {
    border-radius: 10px;
    border-color: rgba(233, 223, 204, 0.95);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

.content-card:hover,
.report-card:hover,
.child-card:hover {
    border-color: rgba(170, 143, 214, 0.55);
    box-shadow: 0 14px 30px rgba(16, 9, 26, 0.08);
}

.section-heading {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.section-heading h5 {
    color: var(--dusk-blue);
}

.stat-card {
    border-radius: 12px;
    background: var(--surface);
    border-color: rgba(233, 223, 204, 0.95);
    min-height: 118px;
}

.stat-card h3 {
    color: var(--dusk-blue);
}

.stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
}

.stat-primary .stat-icon,
.quick-action-icon.primary,
.activity-primary {
    color: var(--dusk-blue);
    background: var(--surface-soft);
}

.stat-secondary .stat-icon,
.quick-action-icon.secondary,
.activity-secondary {
    color: var(--dusk-blue);
    background: rgba(38, 84, 124, 0.06);
}

.stat-success .stat-icon,
.quick-action-icon.success,
.activity-success {
    color: var(--bubblegum-pink);
    background: rgba(239, 71, 111, 0.08);
}

.stat-warning .stat-icon,
.quick-action-icon.warning,
.activity-warning {
    color: var(--dusk-blue);
    background: rgba(255, 209, 102, 0.25);
}

.btn-primary,
.btn-auth-submit {
    background: var(--surface);
    border-color: var(--dusk-blue);
    color: #fcfcfc;
    box-shadow: 0 8px 18px rgba(45, 27, 75, 0.16);
}

.btn-primary:hover,
.btn-auth-submit:hover {
    background: var(--surface);
    border-color: var(--dusk-blue);
    color: #fcfcfc;
}

.btn-outline-info,
.btn-outline-primary {
    border-color: var(--dusk-blue);
    color: var(--dusk-blue);
}

.btn-outline-info:hover,
.btn-outline-primary:hover {
    background: var(--dusk-blue);
    border-color: var(--dusk-blue);
    color: #fcfcfc;
}

.btn-outline-warning {
    border-color: rgba(239, 71, 111, 0.40);
    color: var(--bubblegum-pink);
}

.btn-outline-warning:hover {
    background: var(--bubblegum-pink);
    border-color: var(--bubblegum-pink);
    color: #fcfcfc;
}

.table-app {
    --bs-table-bg: transparent;
}

.table-app thead th {
    background: rgba(255, 209, 102, 0.14);
    color: var(--dusk-blue);
    border-bottom-color: rgba(255, 209, 102, 0.45);
}

.table-app tbody td {
    border-bottom-color: rgba(233, 223, 204, 0.82);
}

.table-app tbody tr:hover {
    background: rgba(255, 247, 205, 0.50);
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.form-control,
.form-select,
.select2-container--bootstrap-5 .select2-selection {
    border-radius: 9px;
    border-color: var(--border);
    background-color: #fcfcfc;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: var(--muted);
    font-size: 13px;
}

.dataTables_wrapper .pagination .page-link {
    border-color: var(--border);
    color: var(--dusk-blue);
    border-radius: 8px;
    margin: 0 2px;
}

.dataTables_wrapper .pagination .page-item.active .page-link {
    background: var(--dusk-blue);
    border-color: var(--dusk-blue);
    color: #fcfcfc;
}

.dataTables_wrapper .pagination .page-link:hover {
    background: rgba(255, 209, 102, 0.14);
    color: var(--dusk-blue);
}

.form-control:focus,
.form-select:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.input-icon-group:focus-within {
    border-color: var(--dusk-blue);
    box-shadow: 0 0 0 3px rgba(96, 87, 168, 0.14);
}

.form-label {
    color: var(--dusk-blue);
}

.modal-content {
    overflow: hidden;
}

.modal-header {
    background: var(--surface);
}

.modal-title {
    color: var(--dusk-blue);
}

.swal2-popup {
    border-radius: 14px !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 24px 60px rgba(16, 9, 26, 0.18) !important;
}

.swal2-confirm {
    background: var(--dusk-blue) !important;
    border-radius: 9px !important;
}

.swal2-cancel {
    border-radius: 9px !important;
}

.empty-state i {
    background: rgba(255, 209, 102, 0.14);
    color: var(--dusk-blue);
}

.quick-action-tile,
.report-latest-item,
.activity-item,
.admin-chart-legend-item,
.report-summary-item,
.aspect-result-badge-card,
.classification-category-card,
.decision-matrix-card,
.algorithm-summary-card,
.algorithm-formula-item {
    border-radius: 10px;
    border-color: rgba(233, 223, 204, 0.92);
    background: #fcfcfc;
}

.quick-action-tile:hover,
.report-latest-item:hover {
    border-color: rgba(38, 84, 124, 0.22);
    box-shadow: 0 12px 22px rgba(16, 9, 26, 0.08);
}

.badge-bb {
    background: rgba(239, 71, 111, 0.10);
    color: #ef476f;
    border-color: rgba(239, 71, 111, 0.35);
}

.badge-mb {
    background: rgba(255, 209, 102, 0.25);
    color: #26547c;
    border-color: rgba(255, 209, 102, 0.55);
}

.badge-bsh {
    background: rgba(38, 84, 124, 0.08);
    color: #26547c;
    border-color: rgba(38, 84, 124, 0.30);
}

.badge-bsb {
    background: rgba(6, 214, 160, 0.15);
    color: #26547c;
    border-color: rgba(6, 214, 160, 0.35);
}

.auth-aside,
.report-hero-card {
    background: var(--surface);
}

.auth-form-pane {
    background: var(--surface);
}

.auth-form-card {
    border-radius: 14px;
    border-color: var(--border);
    box-shadow: 0 22px 52px rgba(16, 9, 26, 0.10);
}

.child-report-summary-empty,
.quick-action-note,
.report-note,
.teacher-note-card,
.child-preview-empty,
.child-preview-filled,
.uploaded-photo-preview,
.narasi-doc-block,
.textarea-counter-wrap {
    background: var(--surface-warm);
}

.bulk-aspek-card.bulk-tone-even {
    background: var(--surface);
    border-color: rgba(255, 209, 102, 0.45);
}

.bulk-aspek-card.bulk-tone-odd {
    background: var(--surface);
    border-color: rgba(38, 84, 124, 0.22);
}

.report-progress-bar {
    border-radius: 999px;
    background: rgba(255, 209, 102, 0.25);
}

.progress-bar-bb {
    background: var(--bubblegum-pink);
}

.progress-bar-mb {
    background: var(--golden-pollen);
}

.progress-bar-bsh {
    background: var(--dusk-blue);
}

.progress-bar-bsb {
    background: #06d6a0;
}

@media (max-width: 767.98px) {
    .content-area {
        padding: 18px;
    }

    .page-header-block {
        padding: 16px;
    }

    .greeting-banner,
    .greeting-banner.guru-tone,
    .greeting-banner.parent-tone {
        padding: 20px;
        border-radius: 14px;
    }
}

/* Flat theme refresh: dusk blue, bubblegum pink, golden pollen, emerald, white */
body,
.auth-form-pane {
    background: var(--white);
}

#sidebar {
    background: var(--dusk-blue);
    border-right-color: rgba(252, 252, 252, 0.16);
    box-shadow: 8px 0 24px rgba(38, 84, 124, 0.18);
}

.app-brand-icon,
.brand-badge,
.report-school-logo {
    background: var(--golden-pollen);
    color: var(--dusk-blue);
}

.sidebar-link {
    color: rgba(252, 252, 252, 0.82);
}

.sidebar-link i {
    color: var(--golden-pollen);
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(252, 252, 252, 0.12);
    color: var(--white);
}

.sidebar-link.active::before {
    background: var(--golden-pollen);
}

.sidebar-section-label {
    color: rgba(255, 209, 102, 0.78);
}

.user-mini-card {
    background: rgba(252, 252, 252, 0.10);
    border-color: rgba(252, 252, 252, 0.16);
}

.topbar,
.page-header-block,
.content-card,
.card,
.modal-content,
.clean-form-card,
.report-card,
.child-card,
.inner-card,
.teacher-note-card,
.school-profile-side-card,
.schema-warning-card,
.report-aspect-card,
.auth-form-card {
    background: var(--white);
    border-color: var(--border);
}

.greeting-banner,
.greeting-banner.guru-tone,
.greeting-banner.parent-tone,
.auth-aside,
.report-hero-card {
    background: var(--dusk-blue);
    color: var(--white);
}

.greeting-banner .eyebrow,
.report-hero-card .eyebrow {
    color: var(--golden-pollen);
}

.greeting-icon,
.auth-pattern div {
    background: rgba(252, 252, 252, 0.12);
    border-color: rgba(252, 252, 252, 0.18);
}

.stat-card {
    background: var(--white);
    border-left: 4px solid var(--dusk-blue);
}

.stat-primary .stat-icon,
.quick-action-icon.primary,
.activity-primary {
    background: rgba(38, 84, 124, 0.10);
    color: var(--dusk-blue);
}

.stat-secondary .stat-icon,
.quick-action-icon.secondary,
.activity-secondary {
    background: rgba(239, 71, 111, 0.12);
    color: var(--bubblegum-pink);
}

.stat-success .stat-icon,
.quick-action-icon.success,
.activity-success {
    background: rgba(6, 214, 160, 0.13);
    color: var(--emerald);
}

.stat-warning .stat-icon,
.quick-action-icon.warning,
.activity-warning {
    background: rgba(255, 209, 102, 0.26);
    color: var(--dusk-blue);
}

.btn-primary,
.btn-auth-submit,
.swal2-confirm {
    background: var(--dusk-blue) !important;
    border-color: var(--dusk-blue) !important;
    color: var(--white) !important;
}

.btn-primary:hover,
.btn-auth-submit:hover {
    background: var(--bubblegum-pink) !important;
    border-color: var(--bubblegum-pink) !important;
}

.btn-outline-primary,
.btn-outline-info {
    border-color: var(--dusk-blue);
    color: var(--dusk-blue);
}

.btn-outline-primary:hover,
.btn-outline-info:hover {
    background: var(--dusk-blue);
    border-color: var(--dusk-blue);
    color: var(--white);
}

.btn-outline-warning {
    border-color: var(--golden-pollen);
    color: var(--dusk-blue);
}

.btn-outline-warning:hover {
    background: var(--golden-pollen);
    border-color: var(--golden-pollen);
    color: var(--dusk-blue);
}

.btn-outline-danger {
    border-color: var(--bubblegum-pink);
    color: var(--bubblegum-pink);
}

.btn-outline-danger:hover {
    background: var(--bubblegum-pink);
    border-color: var(--bubblegum-pink);
    color: var(--white);
}

.table-app thead th {
    background: rgba(38, 84, 124, 0.08);
    color: var(--dusk-blue);
}

.table-app tbody tr:hover {
    background: rgba(255, 209, 102, 0.16);
}

.form-control:focus,
.form-select:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.input-icon-group:focus-within {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(6, 214, 160, 0.18);
}

.read-only-chip,
.empty-state i,
.child-report-summary-empty,
.quick-action-note,
.uploaded-photo-preview,
.report-child-preview,
.report-aspect-narrative,
.attendance-item,
.report-summary-stat,
.textarea-counter-wrap,
.narasi-doc-block {
    background: rgba(38, 84, 124, 0.06);
    color: var(--dusk-blue);
}

.quick-action-tile,
.report-latest-item,
.activity-item,
.admin-chart-legend-item,
.report-summary-item,
.classification-category-card,
.decision-matrix-card,
.algorithm-summary-card,
.algorithm-formula-item,
.aspect-result-badge-card {
    background: var(--white);
    border-color: var(--border);
}

.badge-bb,
.progress-bar-bb {
    background: var(--bubblegum-pink);
    color: var(--white);
    border-color: var(--bubblegum-pink);
}

.badge-mb,
.progress-bar-mb {
    background: var(--golden-pollen);
    color: var(--dusk-blue);
    border-color: var(--golden-pollen);
}

.badge-bsh,
.progress-bar-bsh {
    background: var(--dusk-blue);
    color: var(--white);
    border-color: var(--dusk-blue);
}

.badge-bsb,
.progress-bar-bsb {
    background: var(--emerald);
    color: var(--dusk-blue);
    border-color: var(--emerald);
}

.bulk-aspek-card.bulk-tone-even {
    background: rgba(255, 209, 102, 0.14);
    border-color: rgba(255, 209, 102, 0.42);
}

.bulk-aspek-card.bulk-tone-odd {
    background: rgba(38, 84, 124, 0.06);
    border-color: rgba(38, 84, 124, 0.18);
}

/* Simplified classification detail */
.btn-view-detail {
    min-width: 82px;
    font-weight: 700;
}

.keyword-preview {
    display: inline-block;
    max-width: 240px;
    color: var(--dusk-blue);
    font-size: 13px;
    line-height: 1.45;
}

.detail-modal-intro {
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(38, 84, 124, 0.05);
}

.detail-modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--dusk-blue);
    color: var(--white);
    box-shadow: none;
}

.detail-modal-badge-wrap {
    margin-top: 6px;
}

.detail-modal-summary {
    max-width: 62ch;
    margin-top: 10px;
    color: var(--dark);
    line-height: 1.65;
}

.detail-section + .detail-section {
    margin-top: 22px;
}

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

.detail-identity-item {
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--white);
}

.detail-identity-item span {
    margin-bottom: 4px;
}

.detail-identity-item strong {
    font-size: 13px;
}

.analysis-quote {
    border-radius: 12px;
    background: rgba(38, 84, 124, 0.04);
    border-left-color: var(--dusk-blue);
    line-height: 1.75;
}

.matched-rule-list {
    display: grid;
    gap: 10px;
}

.matched-rule-item,
.matched-rule-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
}

.matched-rule-item strong {
    display: block;
    margin-bottom: 3px;
}

.matched-rule-item small,
.matched-rule-empty {
    color: var(--muted);
    font-size: 12px;
}

.matched-rule-empty {
    justify-content: flex-start;
}

.technical-toggle {
    border: 1px solid var(--border);
    color: var(--dusk-blue);
    font-weight: 700;
}

.technical-toggle:hover {
    border-color: var(--dusk-blue);
    background: rgba(38, 84, 124, 0.08);
    color: var(--dusk-blue);
}

.algorithm-summary-card {
    padding: 14px;
    border-radius: 10px;
    background: rgba(38, 84, 124, 0.04);
}

.algorithm-decision-note {
    margin: 0;
}

.score-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.score-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    background: var(--white);
}

.score-item.is-winner {
    border-color: var(--emerald);
    background: rgba(6, 214, 160, 0.08);
}

.score-item strong,
.score-item small {
    display: block;
    text-align: right;
}

.score-item small {
    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 991.98px) {
    .detail-identity-grid,
    .score-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .matched-rule-item,
    .score-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .score-item strong,
    .score-item small {
        text-align: left;
    }
}

/* Operational polish: school logo, visible logout, and PDF action */
.app-brand-icon {
    overflow: hidden;
    background: var(--white);
    color: var(--dusk-blue);
    border: 1px solid rgba(252, 252, 252, 0.28);
    box-shadow: none;
}

.app-brand-icon span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 4px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

.app-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.btn-sidebar-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    background: var(--white) !important;
    border: 1px solid rgba(255, 209, 102, 0.65) !important;
    color: var(--dusk-blue) !important;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.btn-sidebar-logout:hover,
.btn-sidebar-logout:focus {
    background: var(--golden-pollen) !important;
    color: var(--dusk-blue) !important;
    border-color: var(--golden-pollen) !important;
}

.topbar-right {
    gap: 12px;
}

.topbar-logout-form {
    margin: 0;
}

.btn-topbar-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(239, 71, 111, 0.35);
    background: rgba(239, 71, 111, 0.08);
    color: var(--bubblegum-pink);
    font-weight: 800;
}

.btn-topbar-logout:hover,
.btn-topbar-logout:focus {
    background: var(--bubblegum-pink);
    border-color: var(--bubblegum-pink);
    color: var(--white);
}

.aspect-result-actions {
    min-width: 180px;
    display: grid;
    gap: 8px;
    justify-items: end;
}

.aspect-result-actions span {
    max-width: 190px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    text-align: right;
}

@media (max-width: 991.98px) {
    .aspect-result-actions {
        justify-items: start;
    }

    .aspect-result-actions span {
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    .topbar-right {
        width: 100%;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .btn-topbar-logout span {
        display: none;
    }
}

/* =====================================================================
   UI/UX REFRESH v2 — lapisan final yang menyatukan tampilan.
   Tujuan: tampilan lebih modern, rapi, dan mudah dibaca. Lapisan ini
   sengaja ditaruh paling akhir agar memenangkan cascade tanpa mengubah
   struktur (grid/flex) yang sudah ada.
   ===================================================================== */
:root {
    --brand-900: #14304d;
    --brand-700: #1d4061;
    --brand-600: #26547c;
    --brand-500: #2f6394;
    --brand-400: #3b7ea1;
    --ink: #1f2d3d;
    --ink-soft: #5b6b7d;
    --line: #e6ebf1;
    --page-bg: #f3f6fa;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --ring: 0 0 0 4px rgba(38, 84, 124, 0.14);
    --shadow-soft: 0 1px 2px rgba(16, 40, 70, 0.06), 0 6px 18px rgba(16, 40, 70, 0.06);
    --shadow-lift: 0 10px 30px rgba(16, 40, 70, 0.12);
    --grad-brand: linear-gradient(135deg, #2f6394 0%, #26547c 55%, #1d4061 100%);
    --grad-sidebar: linear-gradient(185deg, #2b5a85 0%, #214b72 50%, #19395a 100%);
    --muted: var(--ink-soft);
    --border: var(--line);
    --dark: var(--ink);
}

body {
    background: var(--page-bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
    letter-spacing: -0.01em;
}

/* ---- Sidebar ---- */
#sidebar {
    background: var(--grad-sidebar);
    border-right: 0;
    box-shadow: 4px 0 24px rgba(16, 40, 70, 0.16);
}

.sidebar-header {
    padding: 22px 18px 18px;
    border-bottom-color: rgba(255, 255, 255, 0.10);
}

.app-brand h1 {
    font-size: 1.12rem;
    font-weight: 800;
}

.app-brand p {
    color: rgba(255, 255, 255, 0.66);
    font-size: 11.5px;
}

.app-brand-icon {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--brand-600);
    border: 0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.sidebar-menu {
    padding: 14px 12px;
    gap: 3px;
}

.sidebar-section-label {
    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
    letter-spacing: 0.12em;
}

.sidebar-link {
    border-radius: 11px;
    color: rgba(255, 255, 255, 0.80);
    padding: 11px 13px;
    font-weight: 500;
}

.sidebar-link i {
    color: rgba(255, 255, 255, 0.62);
    transition: color 0.15s ease;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar-link:hover i {
    color: var(--golden-pollen);
}

.sidebar-link.active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.sidebar-link.active i {
    color: var(--golden-pollen);
}

.sidebar-link.active::before {
    left: -12px;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background: var(--golden-pollen);
}

.user-mini-card {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-sidebar-logout {
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 0 !important;
    color: var(--brand-700) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.btn-sidebar-logout:hover,
.btn-sidebar-logout:focus {
    background: var(--bubblegum-pink) !important;
    color: #fff !important;
}

/* ---- Topbar ---- */
.topbar {
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    backdrop-filter: saturate(180%) blur(12px);
}

.topbar-breadcrumb strong {
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 700;
}

.btn-toggle-sidebar {
    border-radius: 11px;
    background: #fff;
    border-color: var(--line);
    color: var(--brand-600);
}

.btn-toggle-sidebar:hover {
    background: var(--page-bg);
    border-color: var(--brand-400);
}

.topbar-avatar {
    background: var(--grad-brand);
    box-shadow: 0 6px 14px rgba(38, 84, 124, 0.28);
}

.read-only-chip {
    border-color: rgba(255, 209, 102, 0.55);
    background: rgba(255, 209, 102, 0.18);
    color: var(--brand-700);
}

/* ---- Page header ---- */
.content-area {
    padding: 26px;
}

.page-header-block {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 4px 2px 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.page-header-block h4 {
    font-size: 1.4rem;
    font-weight: 800;
}

.page-header-block p {
    color: var(--ink-soft);
}

/* ---- Cards ---- */
.content-card,
.card,
.clean-form-card,
.report-card,
.child-card,
.inner-card,
.school-profile-side-card,
.report-aspect-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.content-card:hover,
.report-card:hover,
.child-card:hover {
    border-color: rgba(38, 84, 124, 0.18);
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
}

.section-heading {
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.section-heading h5 {
    color: var(--ink);
    font-weight: 800;
}

/* ---- Stat cards ---- */
.stat-card {
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand-500);
    box-shadow: var(--shadow-soft);
    min-height: 118px;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
}

.stat-card h3 {
    color: var(--brand-700);
    font-weight: 800;
}

.stat-icon {
    border-radius: 16px;
}

/* ---- Buttons ---- */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 9px 16px;
}

.btn-primary,
.btn-auth-submit,
.swal2-confirm {
    background: var(--grad-brand) !important;
    border: 0 !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(38, 84, 124, 0.24);
}

.btn-primary:hover,
.btn-auth-submit:hover,
.swal2-confirm:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(38, 84, 124, 0.30);
    color: #fff !important;
}

.swal2-cancel {
    background: #fff !important;
    border: 1px solid var(--line) !important;
    color: var(--ink-soft) !important;
}

.swal2-cancel:hover {
    background: var(--page-bg) !important;
    color: var(--ink) !important;
}

.btn-primary:active,
.btn-auth-submit:active {
    transform: translateY(0);
}

.btn-outline-primary,
.btn-outline-info {
    border-color: var(--brand-500);
    color: var(--brand-600);
}

.btn-outline-primary:hover,
.btn-outline-info:hover {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: #fff;
}

.btn-light, .btn-secondary {
    border-radius: var(--radius-sm);
}

/* ---- Tables ---- */
.content-card .table-responsive {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line);
}

.table-app thead th {
    background: #f7f9fc;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
}

.table-app tbody td {
    padding: 14px 16px;
    border-bottom-color: var(--line);
}

.table-app tbody tr:hover {
    background: rgba(38, 84, 124, 0.04);
}

/* ---- Forms ---- */
.form-control,
.form-select,
.select2-container--bootstrap-5 .select2-selection,
.input-icon-group,
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border-radius: var(--radius-sm);
    border-color: var(--line);
    background-color: #fff;
}

.form-control:focus,
.form-select:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.input-icon-group:focus-within {
    border-color: var(--brand-500);
    box-shadow: var(--ring);
}

.form-label {
    color: var(--ink);
    font-weight: 600;
}

/* ---- Badges (kategori tetap semantik) ---- */
.badge-kategori {
    padding: 5px 13px;
    border-radius: 999px;
    font-weight: 700;
}

.badge-bb { background: rgba(239, 71, 111, 0.12); color: #d6325c; border-color: rgba(239, 71, 111, 0.30); }
.badge-mb { background: rgba(255, 184, 0, 0.18); color: #9a6b00; border-color: rgba(255, 184, 0, 0.45); }
.badge-bsh { background: rgba(38, 84, 124, 0.10); color: var(--brand-700); border-color: rgba(38, 84, 124, 0.28); }
.badge-bsb { background: rgba(6, 214, 160, 0.16); color: #047857; border-color: rgba(6, 214, 160, 0.38); }

/* ---- Hero / greeting ---- */
.greeting-banner,
.greeting-banner.guru-tone,
.greeting-banner.parent-tone,
.report-hero-card {
    border-radius: var(--radius-lg);
    background: var(--grad-brand);
    color: #fff;
    border: 0;
    box-shadow: var(--shadow-lift);
}

.greeting-banner h2 {
    font-weight: 800;
}

.greeting-banner .eyebrow,
.report-hero-card .eyebrow {
    color: var(--golden-pollen);
}

.greeting-icon {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.20);
}

/* ---- Modal ---- */
.modal-content {
    border-radius: var(--radius-lg);
    border: 0;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(16, 40, 70, 0.28);
}

.modal-header {
    background: #f7f9fc;
    border-bottom: 1px solid var(--line);
}

.modal-title {
    color: var(--ink);
    font-weight: 800;
}

/* ---- Empty states ---- */
.empty-state i {
    border-radius: 20px;
    background: rgba(38, 84, 124, 0.08);
    color: var(--brand-600);
}

/* ---- Auth ---- */
.auth-aside {
    background: var(--grad-brand);
    color: #fff;
}

.auth-form-card {
    border-radius: var(--radius-lg);
    border-color: var(--line);
    box-shadow: var(--shadow-lift);
}

.brand-badge {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

/* ---- Quick action / list tiles ---- */
.quick-action-tile,
.report-latest-item,
.activity-item,
.admin-chart-legend-item {
    border-radius: var(--radius-md);
    border-color: var(--line);
}

.quick-action-tile:hover,
.report-latest-item:hover {
    border-color: rgba(38, 84, 124, 0.18);
    box-shadow: var(--shadow-soft);
}

/* ---- Scrollbar halus ---- */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(38, 84, 124, 0.3) transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
    background: rgba(38, 84, 124, 0.26);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(38, 84, 124, 0.4); background-clip: content-box; }

/* =====================================================================
   RESPONSIVE MOBILE v2 — penyelarasan akhir untuk tampilan ponsel.
   Ditaruh paling akhir agar menimpa lapisan tema sebelumnya. Sasaran
   utama: topbar yang ringkas, tabel yang bisa di-scroll, dan tombol/
   kartu yang nyaman disentuh.
   ===================================================================== */

/* ---- TABLET (<= 991px) ---- */
@media (max-width: 991.98px) {
    /* Sidebar jadi slide-in (untuk tablet portrait & mobile). */
    #sidebar {
        transform: translateX(-100%);
        transition: transform 0.22s ease;
    }

    body.sidebar-open #sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 1030;
    }

    #main-content {
        margin-left: 0;
    }

    /* Topbar kompak di tablet juga: sembunyikan info user redundan & chip. */
    .topbar {
        height: auto;
        min-height: 60px;
        padding: 12px 18px;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .topbar-right {
        flex: 0 0 auto;
        width: auto;
        margin-left: auto;
        gap: 10px;
    }

    .topbar-user,
    .read-only-chip {
        display: none;
    }

    .btn-topbar-logout {
        min-height: 38px;
        padding: 8px 14px;
        border-radius: 10px;
    }

    .content-area {
        padding: 20px 18px;
    }

    .page-header-block {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .page-header-block .header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .page-header-block .header-actions .btn {
        flex: 1 1 auto;
        white-space: nowrap;
    }

    .greeting-banner,
    .greeting-banner.guru-tone,
    .greeting-banner.parent-tone {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 22px;
    }

    .greeting-banner h2 {
        font-size: 1.4rem;
    }

    .greeting-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }
}

/* ---- MOBILE (<= 767px) ---- */
@media (max-width: 767.98px) {
    /* Topbar: kompak satu baris (toggle | judul | logout). Info user
       sengaja disembunyikan karena sudah tersedia di sidebar yang
       dapat dibuka via tombol toggle. */
    .topbar {
        height: auto;
        min-height: 58px;
        padding: 10px 14px;
        gap: 10px;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }

    .topbar-left {
        flex: 1 1 auto;
        min-width: 0;
        gap: 10px;
    }

    .topbar-right {
        flex: 0 0 auto;
        width: auto;
        gap: 8px;
        margin-left: auto;
    }

    .topbar-breadcrumb {
        flex: 1;
        min-width: 0;
    }

    .topbar-breadcrumb strong {
        display: block;
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Sembunyikan info user redundan & chip; logout cukup tampil ikon. */
    .topbar-user,
    .read-only-chip {
        display: none;
    }

    .btn-topbar-logout {
        min-height: 38px;
        padding: 8px 12px;
        border-radius: 10px;
    }

    .btn-topbar-logout span {
        display: none;
    }

    .btn-toggle-sidebar {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        flex: 0 0 auto;
    }

    /* Sidebar mobile: lebar penuh agar mudah dibaca, dan chip "Mode
       Baca Saja" ditampilkan di sini sebagai pengganti yang di topbar. */
    #sidebar {
        width: 280px;
        min-width: 280px;
    }

    /* Konten utama */
    .content-area {
        padding: 16px 14px;
    }

    .page-header-block {
        padding: 4px 0 14px;
        gap: 12px;
    }

    .page-header-block h4 {
        font-size: 1.2rem;
    }

    .page-header-block p {
        font-size: 13px;
    }

    /* Banner sambutan: padding & font lebih ringkas. */
    .greeting-banner,
    .greeting-banner.guru-tone,
    .greeting-banner.parent-tone {
        padding: 20px;
        border-radius: 16px;
    }

    .greeting-banner h2 {
        font-size: 1.25rem;
    }

    .greeting-banner p {
        font-size: 13px;
    }

    .greeting-icon {
        display: none;
    }

    /* Kartu statistik: padding lebih kompak, ikon kecil. */
    .stat-card {
        padding: 18px;
        min-height: 100px;
        gap: 14px;
    }

    .stat-card h3 {
        font-size: 1.6rem;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        border-radius: 12px;
    }

    .content-card {
        padding: 18px;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .section-heading h5 {
        font-size: 1rem;
    }

    /* Tabel: hint scroll horizontal & padding sel lebih kompak. */
    .table-responsive {
        margin: 0 -18px;
        padding: 0 18px;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
    }

    .content-card .table-responsive {
        margin: 0;
        padding: 0;
        border-radius: 12px;
        overflow-x: auto;
    }

    .table-app {
        font-size: 13px;
    }

    .table-app thead th,
    .table-app tbody td {
        padding: 10px 12px;
        white-space: nowrap;
    }

    .table-app tbody td.text-wrap,
    .table-app tbody td:has(.narasi-text) {
        white-space: normal;
    }

    /* DataTables: panel kontrol jadi 1 kolom. */
    .dataTables_wrapper .row {
        --bs-gutter-x: 0;
    }
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: left;
        margin-bottom: 8px;
    }
    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
    .dataTables_wrapper .dataTables_filter label {
        display: block;
        width: 100%;
    }

    /* Tombol aksi di sel tabel: tidak wrap, ukuran tap proper. */
    .action-buttons {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .action-buttons .btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* Form & filter: stack 1 kolom dengan tombol full width. */
    .filter-toolbar-grid,
    .result-filter-grid,
    .narasi-filter-grid,
    .child-first-filter-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .filter-toolbar-action .btn {
        width: 100%;
    }

    /* Modal: padding & radius lebih ringkas. */
    .modal-dialog {
        margin: 12px;
    }

    .modal-header,
    .modal-footer {
        padding: 16px 18px;
    }

    .modal-body {
        padding: 18px;
    }

    .modal-footer {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .modal-footer > .btn {
        width: 100%;
        margin: 0;
    }

    /* Stepper input narasi: stack vertikal. */
    .stepper-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .stepper-item {
        gap: 10px;
    }

    .stepper-line {
        display: none;
    }

    /* Wizard rapor: 1 langkah per baris. */
    .report-wizard-steps {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .report-wizard-actions {
        flex-direction: column-reverse;
        gap: 8px;
        padding: 16px;
    }

    .report-wizard-actions .btn {
        width: 100%;
    }

    /* Kartu anak / rapor / narasi: 1 kolom, header stack. */
    .narasi-card,
    .narasi-card-head,
    .grouped-narasi-head,
    .child-first-summary,
    .report-hero-card-header,
    .report-confirm-head,
    .aspect-doc-header,
    .report-aspect-card-head,
    .child-report-summary-head,
    .edit-narasi-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .narasi-card-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .report-card-actions .btn {
        flex: 1 1 auto;
    }

    /* Halaman login: padding & radius card. */
    .auth-form-pane {
        padding: 18px;
    }

    .auth-form-card {
        padding: 24px;
        border-radius: 16px;
    }

    .auth-form-header h3 {
        font-size: 1.6rem;
    }

    /* Empty state padding. */
    .empty-state {
        padding: 32px 16px;
    }

    .empty-state i {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    /* Detail klasifikasi modal: grid 1 kolom. */
    .detail-identity-grid,
    .score-list,
    .algorithm-formula-grid,
    .decision-matrix-grid,
    .aspect-result-badges,
    .guideline-grid {
        grid-template-columns: 1fr;
    }

    /* Pastikan elemen lebar tidak membobol viewport. */
    .narasi-card-snippet,
    .report-card-body p,
    .keyword-preview {
        word-break: break-word;
    }
}

/* ---- MOBILE KECIL (<= 380px) ---- */
@media (max-width: 380px) {
    .content-area {
        padding: 14px 12px;
    }

    .stat-card h3 {
        font-size: 1.4rem;
    }

    .topbar-breadcrumb strong {
        font-size: 0.95rem;
    }

    .auth-form-card {
        padding: 20px;
    }
}
