/* CSS Kustom untuk Aplikasi Pembiasaan Diri */

:root {
    --app-bg: #f4f7f6;
    --surface: #ffffff;
    --surface-soft: #eef7f4;
    --text: #15211f;
    --muted: #66736f;
    --line: #dce5e2;
    --primary: #0f766e;
    --primary-dark: #115e59;
    --danger: #dc3545;
    --shadow: 0 10px 28px rgba(22, 38, 35, 0.08);
    --radius: 14px;
}

* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--app-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overscroll-behavior-y: none;
}

input,
button,
select,
textarea {
    font: inherit;
    -webkit-appearance: none;
    appearance: none;
}

a {
    color: inherit;
}

.btn,
.form-control,
.form-select,
.input-group-text,
.modal-content,
.alert {
    border-radius: var(--radius);
}

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
}

.form-control,
.form-select {
    border-color: var(--line);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.14);
}

.login-body {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    background:
        radial-gradient(95% 62% at 8% 4%, rgba(16, 185, 129, 0.2), transparent 61%),
        radial-gradient(76% 56% at 94% 2%, rgba(37, 99, 235, 0.18), transparent 58%),
        linear-gradient(145deg, #f0faf7 0%, #f3f8fc 48%, #edf7f4 100%);
}

.login-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(transparent 96%, rgba(21, 33, 31, 0.03) 96%),
        linear-gradient(90deg, transparent 96%, rgba(21, 33, 31, 0.03) 96%);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at center, black 38%, transparent 92%);
}

.login-screen {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
}

.app-splash {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(80% 60% at 20% 15%, rgba(202, 138, 4, 0.24), transparent 62%),
        radial-gradient(70% 50% at 85% 4%, rgba(15, 118, 110, 0.3), transparent 58%),
        linear-gradient(180deg, #f6f8f7, #eef4f2);
    transition: opacity 380ms ease, visibility 380ms ease;
}

.app-splash.hidden {
    opacity: 0;
    visibility: hidden;
}

.app-splash-inner {
    text-align: center;
    animation: splash-enter 600ms ease-out;
}

.app-splash-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(18, 70, 64, 0.2);
}

.app-splash h2 {
    margin: 14px 0 4px;
    font-size: 1.6rem;
    font-family: "Merriweather", Georgia, serif;
    font-weight: 800;
}

.app-splash p {
    margin: 0;
    color: #52635e;
    font-size: 0.9rem;
}

.login-ornament {
    position: absolute;
    z-index: 0;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.94);
    border-radius: 20px;
    box-shadow: 0 16px 32px rgba(15, 118, 110, 0.2);
    font-size: 1.8rem;
    animation: login-float 5s ease-in-out infinite;
}

.login-ornament-left {
    top: clamp(50px, 10vh, 120px);
    left: clamp(16px, 8vw, 110px);
    background: linear-gradient(135deg, #0f766e, #115e59);
}

.login-ornament-right {
    right: clamp(16px, 8vw, 110px);
    bottom: clamp(40px, 12vh, 140px);
    background: linear-gradient(135deg, #2563eb, #0f766e);
    animation-delay: 0.9s;
}

.login-abstract-cloud {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.abstract-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 300px;
    padding: 9px 14px;
    color: #114945;
    background: rgba(242, 250, 247, 0.88);
    border: 1px solid rgba(170, 214, 203, 0.78);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(31, 55, 50, 0.12);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
    animation: login-float 7s ease-in-out infinite;
    backdrop-filter: blur(2px);
    opacity: 0.9;
}

.abstract-chip i {
    color: #0f766e;
}

.chip-1 {
    top: clamp(16%, 18vh, 24%);
    left: clamp(2%, 6vw, 10%);
    transform: rotate(-5deg);
}

.chip-2 {
    top: clamp(13%, 15vh, 21%);
    right: clamp(3%, 6vw, 12%);
    transform: rotate(7deg);
    animation-delay: 0.6s;
}

.chip-3 {
    bottom: clamp(15%, 19vh, 21%);
    right: clamp(6%, 12vw, 16%);
    transform: rotate(-6deg);
    animation-delay: 1.1s;
}

.chip-4 {
    bottom: clamp(24%, 30vh, 34%);
    left: clamp(4%, 8vw, 12%);
    transform: rotate(4deg);
    animation-delay: 1.6s;
}

.chip-quote {
    bottom: clamp(8%, 12vh, 14%);
    left: 50%;
    max-width: min(92vw, 460px);
    padding: 12px 16px;
    border-radius: 18px;
    transform: translateX(-50%) rotate(-2deg);
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    background: rgba(247, 252, 249, 0.94);
    border-style: dashed;
    animation-delay: 0.9s;
}

.login-card {
    position: relative;
    z-index: 2;
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 26px 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(220, 229, 226, 0.78);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.login-card-enhanced {
    width: min(100%, 470px);
    border: 1px solid rgba(215, 226, 222, 0.85);
    box-shadow: 0 24px 52px rgba(20, 39, 36, 0.12);
    backdrop-filter: blur(2px);
    animation: login-enter 600ms ease-out;
}

.login-card-enhanced::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(15, 118, 110, 0.08), transparent 24%);
}

.pwa-install-wrap {
    margin-top: 12px;
    display: grid;
    gap: 8px;
    text-align: center;
}
.login-action-group { display: grid; gap: 10px; margin-top: 4px; }
.login-action-group .pwa-install-wrap { margin-top: 0; }

.btn-install-app {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-height: 64px;
    padding: 9px 14px 9px 10px;
    overflow: hidden;
    color: #fff;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f766e, #13a89e);
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.25);
    text-align: left;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn-install-app::after {
    content: "";
    position: absolute;
    top: -45px;
    right: -35px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.btn-install-app:hover,
.btn-install-app:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, #0b6861, #0f978e);
    box-shadow: 0 15px 32px rgba(15, 118, 110, 0.32);
    transform: translateY(-2px);
}

.install-app-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.35rem;
}

.install-app-icon .bi-arrow-down-short {
    position: absolute;
    right: 2px;
    bottom: 0;
    font-size: 1rem;
}

.btn-install-app strong,
.btn-install-app small { display: block; }
.btn-install-app strong { font-size: 0.94rem; font-weight: 800; }
.btn-install-app small { margin-top: 2px; color: rgba(255, 255, 255, 0.82); font-size: 0.71rem; }
.install-app-arrow { position: relative; z-index: 1; font-size: 1.05rem; }

.pwa-install-tip {
    margin: 0;
    color: #51605c;
    font-size: 0.78rem;
}

.standalone-mode .pwa-install-wrap {
    display: none;
}

.ios-install-guide img {
    width: 82px;
    height: 82px;
    margin-bottom: 14px;
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(3, 46, 42, 0.18);
}

.ios-install-guide ol {
    margin: 18px 0;
    padding-left: 24px;
    color: #51605c;
    text-align: left;
}

.ios-install-guide li { margin-bottom: 12px; }
.ios-install-guide .btn { width: 100%; min-height: 48px; }

.login-bismillah {
    width: max-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 12px;
    color: #115e59;
    background: #e8f6f2;
    border: 1px solid #cfe9e2;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.login-brand {
    text-align: center;
}

.login-logo-shell {
    width: 118px;
    height: 118px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    overflow: visible;
    border-radius: 16px;
    background: transparent;
    box-shadow: 0 10px 26px rgba(15, 118, 110, 0.18);
    position: relative;
}

.login-logo-shell::before {
    content: "";
    position: absolute;
    width: 122px;
    height: 122px;
    border-radius: 24px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.34) 0%, rgba(245, 158, 11, 0.14) 42%, rgba(245, 158, 11, 0) 72%);
    z-index: 0;
    transform: translate(16px, -14px);
    filter: blur(0.5px);
}

.login-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 14px;
    z-index: 1;
}

.brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    color: #ffffff;
    background: var(--primary);
    border-radius: 12px;
    font-size: 1.8rem;
}

.login-card h1 {
    margin: 0 0 18px;
    text-align: center;
    font-size: clamp(1.65rem, 8vw, 2.25rem);
    font-weight: 800;
    font-family: "Merriweather", Georgia, serif;
    letter-spacing: 0;
}

.login-card p {
    margin: 0 0 24px;
    color: var(--muted);
}

.login-card .form-label {
    font-weight: 700;
    color: var(--text);
}

.login-card .form-control,
.login-card .input-group-text,
.login-card .btn {
    min-height: 50px;
}

.login-form {
    display: grid;
    gap: 0;
}

.login-sticky-action {
    position: sticky;
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 4;
    padding-top: 8px;
}

.login-sticky-action .btn {
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.24);
}

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

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

@keyframes login-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes splash-enter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.app-body {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom);
    background:
        radial-gradient(70rem 38rem at -8% -8%, rgba(16, 185, 129, 0.22), transparent 62%),
        radial-gradient(66rem 36rem at 108% 4%, rgba(37, 99, 235, 0.2), transparent 61%),
        radial-gradient(46rem 30rem at 82% 92%, rgba(13, 148, 136, 0.13), transparent 68%),
        linear-gradient(145deg, #eef9f5 0%, #f4f9fc 48%, #edf7f5 100%);
    background-attachment: fixed;
}

.app-body::before,
.app-body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.app-body::before {
    opacity: 0.72;
    background-image:
        linear-gradient(30deg, rgba(15, 118, 110, 0.035) 12%, transparent 12.5%, transparent 87%, rgba(15, 118, 110, 0.035) 87.5%),
        linear-gradient(150deg, rgba(37, 99, 235, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(37, 99, 235, 0.03) 87.5%),
        linear-gradient(30deg, rgba(15, 118, 110, 0.035) 12%, transparent 12.5%, transparent 87%, rgba(15, 118, 110, 0.035) 87.5%),
        linear-gradient(150deg, rgba(37, 99, 235, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(37, 99, 235, 0.03) 87.5%);
    background-position: 0 0, 0 0, 36px 63px, 36px 63px;
    background-size: 72px 126px;
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.7) 55%, transparent 100%);
}

.app-body::after {
    inset: auto -120px 12% auto;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(37, 99, 235, 0.09);
    border-radius: 50%;
    box-shadow:
        0 0 0 42px rgba(15, 118, 110, 0.025),
        0 0 0 84px rgba(37, 99, 235, 0.018);
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: max(12px, env(safe-area-inset-top)) 16px 12px;
    background: linear-gradient(100deg, rgba(248, 255, 252, 0.94), rgba(247, 251, 255, 0.94));
    border-bottom: 1px solid rgba(116, 157, 151, 0.24);
    box-shadow: 0 5px 22px rgba(31, 78, 73, 0.055);
    backdrop-filter: blur(18px) saturate(130%);
}

.app-topbar > div {
    min-width: 0;
    flex: 1 1 auto;
}

.app-topbar h1 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-topbar p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-logo {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 7px 14px rgba(18,35,31,.2), inset 0 1px rgba(255,255,255,.35);
    transform: perspective(220px) rotateX(3deg) rotateY(-3deg);
}

.icon-btn {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 1.2rem;
}

.icon-btn.danger {
    color: var(--danger);
}

.app-shell {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 16px 14px 24px;
}

.welcome-panel {
    padding: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #256d85);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.welcome-panel.student {
    background: linear-gradient(135deg, #0f766e, #6b7d2c);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.welcome-panel h2 {
    margin: 0 0 8px;
    max-width: 640px;
    font-size: clamp(1.35rem, 6vw, 2.1rem);
    font-weight: 800;
    letter-spacing: 0;
}

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

/* Identitas ringkas siswa di halaman Home. */
.student-identity-card {
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 38px;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    overflow: hidden;
    border: 1px solid #dbe8e4;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff, #f0faf7);
    box-shadow: 0 8px 26px rgba(22, 38, 35, 0.08);
}

.student-identity-card::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(15, 118, 110, 0.06);
}

.student-identity-photo {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    overflow: hidden;
    color: #fff;
    border: 4px solid #fff;
    border-radius: 28px;
    background: linear-gradient(145deg, #0f766e, #68b92e);
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.22);
    font-size: 2.2rem;
    font-weight: 800;
}

.student-identity-photo img { width: 100%; height: 100%; object-fit: cover; }
.student-identity-main { position: relative; z-index: 1; min-width: 0; }
.student-identity-main .eyebrow { margin-bottom: 0; color: #0f766e; }
.student-identity-main h2 { margin: 3px 0 11px; color: #102522; font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 850; }
.student-identity-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.student-identity-meta > span { display: grid; grid-template-columns: 24px auto; column-gap: 7px; align-items: center; min-width: 150px; padding: 8px 12px; border-radius: 13px; background: #e9f6f2; }
.student-identity-meta i { grid-row: 1 / 3; color: #0f766e; font-size: 1.15rem; }
.student-identity-meta small { color: #71807c; font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.student-identity-meta strong { overflow: hidden; color: #173b36; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.student-identity-link { position: relative; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; color: #0f766e; border-radius: 13px; background: #fff; box-shadow: 0 6px 16px rgba(15, 118, 110, .12); }

.student-attendance-status { display: flex; gap: 14px; align-items: center; padding: 16px 18px; color: #fff; border-radius: 18px; box-shadow: 0 12px 28px rgba(20, 75, 68, .16); }
.student-attendance-status.present { background: linear-gradient(135deg, #15803d, #0f766e); }
.student-attendance-status.absent { background: linear-gradient(135deg, #b4232f, #d97706); }
.student-attendance-status.unmarked { background: linear-gradient(135deg, #475569, #256d85); }
.attendance-status-icon { display: grid; place-items: center; flex: 0 0 auto; width: 54px; height: 54px; border: 1px solid rgba(255,255,255,.2); border-radius: 17px; background: rgba(255,255,255,.14); font-size: 1.55rem; }
.student-attendance-status span { color: rgba(255,255,255,.78); font-size: .7rem; font-weight: 800; letter-spacing: .04em; }
.student-attendance-status h2 { margin: 2px 0 0; font-size: 1.25rem; font-weight: 850; }
.student-attendance-status p { margin: 3px 0 0; color: rgba(255,255,255,.86); font-size: .82rem; }

.attendance-hero { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 20px; color: #fff; border-radius: 20px; background: linear-gradient(135deg, #0f766e, #256d85); box-shadow: 0 15px 32px rgba(15, 90, 100, .18); }
.attendance-hero .eyebrow { margin-bottom: 3px; }
.attendance-hero h2 { margin: 0; font-size: 1.55rem; font-weight: 850; }
.attendance-hero p { margin: 4px 0 0; color: rgba(255,255,255,.82); }
.attendance-hero form { min-width: 190px; }
.attendance-hero label { display: block; margin-bottom: 5px; color: rgba(255,255,255,.82); font-size: .72rem; font-weight: 750; }
.attendance-hero .form-control { color: #173b36; background: rgba(255,255,255,.94); }
.attendance-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.attendance-metrics article { display: grid; justify-items: center; padding: 13px 8px; border: 1px solid #d9e7e3; border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: 0 7px 20px rgba(22,38,35,.06); }
.attendance-metrics strong { color: #334155; font-size: 1.45rem; }
.attendance-metrics span { color: #71807c; font-size: .72rem; }
.attendance-metrics .present strong { color: #15803d; }
.attendance-metrics .absent strong { color: #b4232f; }
.attendance-list { display: grid; gap: 12px; }
.attendance-student-card { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 12px 18px; align-items: center; padding: 13px; border: 1px solid #dce8e5; border-radius: 17px; background: rgba(248,252,251,.9); }
.attendance-student-profile { display: flex; gap: 11px; align-items: center; min-width: 0; }
.attendance-student-profile > img, .attendance-student-profile > span { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; object-fit: cover; color: #fff; border-radius: 15px; background: linear-gradient(135deg,#0f766e,#256d85); font-weight: 850; }
.attendance-student-profile strong, .attendance-student-profile small { display: block; }
.attendance-student-profile strong { overflow: hidden; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.attendance-student-profile small { margin-top: 2px; color: #71807c; font-size: .72rem; }
.attendance-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.attendance-choice label { cursor: pointer; }
.attendance-choice input { position: absolute; opacity: 0; pointer-events: none; }
.attendance-choice span { display: flex; gap: 6px; align-items: center; justify-content: center; min-height: 42px; padding: 8px 12px; color: #64748b; border: 1px solid #d9e4e1; border-radius: 12px; background: #fff; font-size: .78rem; font-weight: 750; }
.attendance-choice .present input:checked + span { color: #166534; border-color: #86d39b; background: #eaf8ee; }
.attendance-choice .absent input:checked + span { color: #991b1b; border-color: #f0a4a4; background: #fff0f1; }
.attendance-reason { grid-column: 1 / -1; }
.attendance-reason label { display: block; margin-bottom: 5px; color: #991b1b; font-size: .75rem; font-weight: 750; }
.attendance-save { position: sticky; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 15; margin-top: 12px; padding: 10px; border-radius: 17px; background: rgba(255,255,255,.9); box-shadow: 0 10px 30px rgba(22,38,35,.15); backdrop-filter: blur(12px); }
.attendance-save .btn { width: 100%; min-height: 50px; font-weight: 800; }

/* Filter, metrik, dan grafik riwayat siswa. */
.history-filter-card .eyebrow { margin-bottom: 5px; color: #0f766e; }
.history-filter-form { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(150px, 1fr)) auto; gap: 12px; align-items: end; }
.history-filter-form .form-label { margin-bottom: 5px; font-size: .78rem; font-weight: 750; }
.history-filter-form .btn { min-height: 46px; padding-inline: 20px; border-radius: 13px; }
.history-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.history-metrics article { display: grid; grid-template-columns: 42px 1fr; column-gap: 10px; align-items: center; padding: 15px; border: 1px solid #dce8e5; border-radius: 18px; background: #fff; box-shadow: 0 7px 22px rgba(22, 38, 35, 0.07); }
.history-metrics i { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; color: #0f766e; border-radius: 14px; background: #e7f6f2; font-size: 1.2rem; }
.history-metrics strong { color: #102522; font-size: 1.35rem; line-height: 1; }
.history-metrics span { color: #71807c; font-size: .76rem; }
.history-bar-chart { display: flex; gap: 10px; align-items: end; min-height: 210px; padding: 18px 8px 5px; overflow-x: auto; border-bottom: 1px solid #dbe7e4; }
.history-bar-column { flex: 1 0 56px; display: grid; grid-template-rows: 20px 145px 20px; gap: 6px; align-items: end; text-align: center; }
.history-bar-column > strong { color: #0f766e; font-size: .75rem; }
.history-bar-column > div { position: relative; height: 145px; overflow: hidden; border-radius: 10px 10px 4px 4px; background: #edf3f1; }
.history-bar-column i { position: absolute; right: 0; bottom: 0; left: 0; height: max(3px, var(--bar-height)); border-radius: 9px 9px 3px 3px; background: linear-gradient(180deg, #7ac143, #0f766e); animation: history-chart-rise 700ms ease both; }
.history-bar-column > span { color: #71807c; font-size: .7rem; white-space: nowrap; }
.history-subchart-title { margin: 22px 0 12px; color: #173b36; font-size: .92rem; font-weight: 800; }
.history-activity-chart { display: grid; gap: 10px; }
.history-activity-chart > div { display: grid; grid-template-columns: minmax(120px, 210px) 1fr 30px; gap: 10px; align-items: center; }
.history-activity-chart span { overflow: hidden; font-size: .8rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.history-activity-chart > div > div { height: 10px; overflow: hidden; border-radius: 999px; background: #e7efed; }
.history-activity-chart i { display: block; width: var(--bar-width); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0f766e, #7ac143); animation: chart-grow 700ms ease both; }
.history-activity-chart strong { color: #0f766e; font-size: .8rem; text-align: right; }
@keyframes history-chart-rise { from { height: 0; } }

@media (max-width: 700px) {
    .student-identity-card { grid-template-columns: 72px minmax(0, 1fr) 30px; gap: 12px; padding: 14px; }
    .student-identity-photo { width: 72px; height: 72px; border-radius: 22px; }
    .student-identity-meta { display: grid; grid-template-columns: 1fr; gap: 6px; }
    .student-identity-meta > span { min-width: 0; padding: 6px 9px; }
    .history-filter-form { grid-template-columns: 1fr 1fr; }
    .history-filter-form > div:first-child, .history-filter-form .btn { grid-column: 1 / -1; }
    .history-metrics { grid-template-columns: repeat(3, 1fr); gap: 7px; }
    .history-metrics article { display: flex; flex-direction: column; gap: 5px; padding: 10px 5px; text-align: center; }
    .history-metrics i { width: 36px; height: 36px; }
    .history-metrics strong { font-size: 1.1rem; }
    .attendance-hero { align-items: stretch; flex-direction: column; padding: 16px; }
    .attendance-hero form { min-width: 0; }
    .attendance-student-card { grid-template-columns: 1fr; }
    .attendance-choice { width: 100%; }
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.quick-tile {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(22, 38, 35, 0.05);
    text-decoration: none;
}

.quick-tile i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: var(--surface-soft);
    border-radius: var(--radius);
    font-size: 1.35rem;
}

.quick-tile span {
    font-weight: 800;
}

.quick-tile small {
    color: var(--muted);
}

.quick-tile.muted {
    opacity: 0.62;
}

.panel-section {
    padding: 16px;
    background: rgba(255, 255, 255, 0.91);
    border: 1px solid rgba(203, 221, 217, 0.88);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(22, 66, 61, 0.075);
    backdrop-filter: blur(12px) saturate(115%);
}

.habit-form-grid .form-label {
    margin-bottom: 6px;
    font-weight: 700;
}

.habit-form-grid .form-control,
.habit-form-grid .form-select {
    min-height: 46px;
}

#activity-catalog {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 2px;
}

#daily-entries {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 2px;
}

#daily-entries .activity-card {
    margin-bottom: 8px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
}

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

.btn-compact {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.stack-list,
.activity-stack {
    display: grid;
    gap: 12px;
}

.list-card,
.activity-card {
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(22, 38, 35, 0.04);
}

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

.list-card-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-badge {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #ffffff;
    background: var(--primary);
    border-radius: var(--radius);
    font-weight: 800;
}

.list-card h3,
.activity-card h6 {
    margin: 0 0 2px;
    font-size: 1rem;
    font-weight: 800;
}

.list-card p,
.activity-card .description {
    margin: 0;
    color: var(--muted);
}

.meta-row,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.meta-row {
    margin-top: 7px;
}

.meta-row span {
    padding: 3px 8px;
    color: var(--primary-dark);
    background: var(--surface-soft);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.action-row {
    justify-content: flex-end;
}

.activity-card.completed {
    border-color: rgba(25, 135, 84, 0.32);
    background: #f0faf4;
}

.activity-card .time {
    color: var(--muted);
    font-size: 0.85rem;
}

.btn-check-custom {
    width: 100%;
    min-height: 44px;
    font-weight: 800;
}

.empty-state {
    padding: 22px 14px;
    color: var(--muted);
    background: #f8faf9;
    border: 1px dashed var(--line);
    border-radius: 12px;
    text-align: center;
}

.empty-state.error {
    color: var(--danger);
}

.bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 8px 12px max(8px, env(safe-area-inset-bottom));
    background: #ffffff;
    border: 1px solid var(--line);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 24px rgba(18, 35, 31, 0.10);
}

.bottom-nav-student {
    grid-template-columns: repeat(4, 1fr);
}

.bottom-nav a {
    min-height: 52px;
    display: grid;
    place-items: center;
    gap: 2px;
    color: var(--muted);
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius);
}

.bottom-nav a.active {
    color: var(--primary);
    background: var(--surface-soft);
}

.bottom-nav a,
.bottom-nav a * {
    pointer-events: auto;
}

.bottom-nav i {
    font-size: 1.25rem;
}

.bottom-nav span {
    font-size: 0.72rem;
    font-weight: 700;
}

.student-body {
    padding-bottom: 128px;
}

.admin-body,
body:has(.bottom-nav-admin) {
    padding-bottom: 128px;
}

.admin-insight-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    color: #fff;
    background: linear-gradient(135deg, #087f76 0%, #075f68 100%);
    border-radius: 20px;
    box-shadow: 0 16px 32px rgba(8, 95, 104, .2);
    overflow: hidden;
    position: relative;
}

.admin-insight-hero::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -55px;
    top: -75px;
    border: 28px solid rgba(255,255,255,.07);
    border-radius: 50%;
}

.admin-insight-hero h2 {
    margin: 0;
    font-size: clamp(1.55rem, 6vw, 2.1rem);
    font-weight: 850;
}

.admin-insight-hero p {
    margin: 4px 0 0;
    color: rgba(255,255,255,.8);
}

.progress-ring {
    --progress: 0;
    width: 92px;
    height: 92px;
    flex: 0 0 auto;
    display: grid;
    place-content: center;
    text-align: center;
    border-radius: 50%;
    background: radial-gradient(circle closest-side, #08736e 75%, transparent 76% 99%), conic-gradient(#fbbf24 calc(var(--progress) * 1%), rgba(255,255,255,.18) 0);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
    position: relative;
    z-index: 1;
}

.progress-ring strong { font-size: 1.28rem; line-height: 1; }
.progress-ring span { margin-top: 3px; font-size: .68rem; color: rgba(255,255,255,.78); }

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

.metric-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 17px;
    box-shadow: 0 6px 18px rgba(22,38,35,.05);
}

.metric-card > i {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 1.2rem;
}

.metric-card div { min-width: 0; display: grid; }
.metric-card strong { font-size: 1.3rem; line-height: 1.1; }
.metric-card span { color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-card.teal > i { color: #087f76; background: #e5f7f3; }
.metric-card.blue > i { color: #2563eb; background: #eaf1ff; }
.metric-card.amber > i { color: #b45309; background: #fff6dc; }
.metric-card.green > i { color: #15803d; background: #eaf8ee; }

.insight-panel .section-heading h2 i { color: var(--primary); margin-right: 5px; }
.class-chart { display: grid; gap: 13px; }
.chart-row { display: grid; grid-template-columns: 58px 1fr 32px; gap: 10px; align-items: center; }
.chart-row > span { font-weight: 750; font-size: .82rem; }
.chart-row > div { height: 11px; overflow: hidden; background: #e7efed; border-radius: 999px; }
.chart-row i { display: block; width: var(--bar-width); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0f766e, #2bb5a6); animation: chart-grow 800ms cubic-bezier(.2,.8,.2,1) both; }
.chart-row strong { color: var(--primary-dark); font-size: .82rem; text-align: right; }

.insight-note {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding: 13px 14px;
    color: #31534e;
    background: #eaf6f3;
    border-radius: 15px;
}
.insight-note i { color: var(--primary); }
.insight-note p { margin: 0; font-size: .83rem; }

.import-guide {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fbfa;
}
.import-guide h3 { margin: 0 0 10px; font-size: 1rem; font-weight: 800; }
.import-guide p { margin: 8px 0 0; color: var(--muted); font-size: .82rem; }

.page-enter { animation: page-enter 520ms cubic-bezier(.2,.8,.2,1) both; }
.stagger-1 { animation-delay: 70ms; }
.stagger-2 { animation-delay: 130ms; }
.stagger-3 { animation-delay: 190ms; }
.page-leaving { animation: page-leave 180ms ease both; pointer-events: none; }
.btn, .icon-btn, .quick-tile, .list-card, .activity-admin-card, .student-activity-card, .bottom-nav a { transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, opacity 180ms ease; }
.btn:active, .icon-btn:active, .student-activity-card:active, .bottom-nav a:active { transform: scale(.94); }
.action-pulse { animation: action-pulse 360ms ease; }

.app-toast-stack {
    position: fixed;
    right: 14px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    left: 14px;
    z-index: 2000;
    display: grid;
    justify-items: center;
    pointer-events: none;
}
.app-toast {
    max-width: 520px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 15px;
    color: #fff;
    background: #18302d;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(0,0,0,.2);
    font-size: .85rem;
    font-weight: 700;
    animation: toast-in 260ms cubic-bezier(.2,.8,.2,1) both;
}
.app-toast.hide { animation: toast-out 220ms ease both; }
.app-toast-info { background: #155e75; }
.app-toast-warning { color: #402d00; background: #fbbf24; }
.app-toast-error { background: #b4232f; }
.modal.show .modal-dialog { animation: modal-rise 300ms cubic-bezier(.2,.8,.2,1) both; }

@keyframes page-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes page-leave { to { opacity: 0; transform: translateY(6px) scale(.995); } }
@keyframes chart-grow { from { width: 0; } }
@keyframes action-pulse { 50% { transform: scale(.96); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(15px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(22px) scale(.985); } }

.report-cover {
    padding: 18px;
    color: #fff;
    background: linear-gradient(145deg, #202064, #0f766e 72%, #7ac143);
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(31,32,100,.2);
    position: relative;
    overflow: hidden;
}
.report-cover::after { content:""; position:absolute; width:190px; height:190px; right:-75px; bottom:-100px; border:30px solid rgba(255,255,255,.08); border-radius:50%; }
.report-cover-brand { display:flex; align-items:center; gap:10px; position:relative; z-index:1; }
.report-cover-brand img { width:52px; height:52px; object-fit:contain; border-radius:10px; background:#fff; }
.report-cover-brand div { display:grid; }
.report-cover-brand span { font-size:.68rem; font-weight:800; letter-spacing:.1em; opacity:.76; }
.report-cover-brand strong { font-size:1.08rem; }
.report-cover-period { display:flex; align-items:center; gap:10px; margin-top:18px; padding:10px 12px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.15); border-radius:14px; width:max-content; max-width:100%; }
.report-cover-period i { font-size:1.2rem; }
.report-cover-period div { display:grid; }
.report-cover-period small { opacity:.7; font-size:.68rem; }
.report-progress-wrap { display:flex; align-items:center; gap:14px; margin-top:18px; position:relative; z-index:1; }
.report-ring { background:radial-gradient(circle closest-side,#242b67 75%,transparent 76% 99%),conic-gradient(#f8c44f calc(var(--progress)*1%),rgba(255,255,255,.18) 0); }
.report-progress-wrap h2 { margin:0; font-size:1.25rem; font-weight:850; }
.report-progress-wrap p { margin:2px 0 8px; opacity:.75; }
.report-status { width:max-content; display:inline-flex; padding:4px 9px; border-radius:999px; font-size:.68rem; font-weight:800; }
.report-status.draft { color:#78350f; background:#fef3c7; }
.report-status.pending { color:#9a3412; background:#ffedd5; }
.report-status.signed { color:#166534; background:#dcfce7; }

.report-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.report-metrics article { min-width:0; display:grid; justify-items:center; gap:2px; padding:14px 8px; text-align:center; background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:0 5px 16px rgba(22,38,35,.05); }
.report-metrics i { color:var(--primary); font-size:1.25rem; }
.report-metrics strong { font-size:1.25rem; }
.report-metrics span { color:var(--muted); font-size:.7rem; }
.report-metrics .attention { border-color:#fed7aa; background:#fffaf3; }
.report-metrics .attention i { color:#ea580c; }

.report-timeline { display:grid; gap:0; }
.report-timeline article { display:grid; grid-template-columns:34px minmax(0,1fr) auto; gap:10px; padding:11px 0; position:relative; }
.report-timeline article:not(:last-child)::after { content:""; position:absolute; left:16px; top:42px; bottom:-4px; width:2px; background:#d9e8e4; }
.timeline-dot { width:34px; height:34px; display:grid; place-items:center; color:#fff; background:var(--primary); border:5px solid #def2ed; border-radius:50%; z-index:1; }
.report-timeline article > div > strong { font-size:.9rem; }
.report-timeline article > div > p { margin:1px 0 4px; color:var(--muted); font-size:.75rem; }
.report-timeline article > img { width:50px; height:50px; object-fit:cover; border-radius:10px; }

.signature-card { padding:16px; background:linear-gradient(180deg,#fff,#f8fbfa); border:1px solid var(--line); border-radius:18px; box-shadow:0 5px 16px rgba(22,38,35,.05); }
.signature-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.signature-box { display:grid; justify-items:center; gap:3px; padding:13px 8px; text-align:center; color:var(--muted); background:#f5f7f6; border:1px dashed #cbd8d4; border-radius:14px; }
.signature-box > i { font-size:1.25rem; }
.signature-box > span,.signature-box > small { font-size:.68rem; }
.signature-box > strong { max-width:100%; color:var(--text); font-size:.8rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.signature-box.signed { color:#15803d; background:#edf9f0; border-style:solid; border-color:#b9e2c4; }
.teacher-note { display:flex; gap:10px; margin-top:13px; padding:12px; color:#4338ca; background:#eef2ff; border-radius:13px; }
.teacher-note p { margin:2px 0 0; color:#4b5563; font-size:.8rem; }

.teacher-report-hero { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:19px; color:#fff; background:linear-gradient(135deg,#262569,#0f766e); border-radius:20px; box-shadow:0 16px 32px rgba(31,32,100,.18); }
.teacher-report-hero h2 { margin:0; font-size:1.3rem; font-weight:850; }
.teacher-report-hero p { margin:4px 0 0; opacity:.75; font-size:.82rem; }
.report-request-list,.class-progress-list { display:grid; gap:10px; }
.report-request-card { display:grid; grid-template-columns:44px minmax(0,1fr) auto; gap:10px; align-items:center; padding:11px; border:1px solid var(--line); border-radius:15px; background:#fff; }
.report-request-card.pending { border-color:#fed7aa; background:#fffcf8; }
.report-student-avatar { width:44px; height:44px; display:grid; place-items:center; color:#fff; background:linear-gradient(135deg,#0f766e,#262569); border-radius:13px; font-weight:850; }
.report-request-main { min-width:0; }
.report-request-main > div:first-child { display:flex; align-items:center; gap:6px; }
.report-request-main strong { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.report-request-main p { margin:2px 0 5px; color:var(--muted); font-size:.72rem; }
.report-request-main small { color:var(--muted); font-size:.68rem; }
.mini-progress,.class-progress-track { height:7px; overflow:hidden; background:#e5eeeb; border-radius:999px; }
.mini-progress i,.class-progress-track i { display:block; width:var(--value); height:100%; background:linear-gradient(90deg,#0f766e,#7ac143); border-radius:inherit; animation:chart-grow 700ms ease both; }
.sign-report-btn span { display:none; }
.signed-mark { color:#16a34a; font-size:1.45rem; }
.class-progress-list article { display:grid; grid-template-columns:minmax(110px,1fr) minmax(90px,1.4fr) 38px; gap:10px; align-items:center; padding:9px 0; }
.class-progress-list article > div:first-child { min-width:0; display:grid; }
.class-progress-list article strong { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:.82rem; }
.class-progress-list article small { color:var(--muted); font-size:.67rem; }
.class-progress-list article b { color:var(--primary-dark); font-size:.78rem; text-align:right; }
.signature-stamp { display:grid; grid-template-columns:58px 1fr auto; gap:11px; align-items:center; padding:13px; color:#fff; background:linear-gradient(135deg,#262569,#0f766e); border-radius:16px; }
.signature-stamp img { width:58px; height:58px; object-fit:contain; background:#fff; border-radius:10px; }
.signature-stamp div { display:grid; }
.signature-stamp small,.signature-stamp span { opacity:.7; font-size:.68rem; }
.signature-stamp > i { color:#bbf7d0; font-size:1.7rem; }
.nav-badge { position:absolute; top:3px; right:calc(50% - 21px); min-width:17px; height:17px; display:grid; place-items:center; color:#fff; background:#ef4444; border-radius:999px; font-size:.58rem; }
.bottom-nav a { position:relative; }

.report-table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:14px; }
.report-activity-table { width:100%; min-width:720px; border-collapse:collapse; background:#fff; font-size:.78rem; }
.report-activity-table thead { color:#fff; background:linear-gradient(90deg,#262569,#0f766e); }
.report-activity-table th { padding:10px 9px; font-size:.68rem; text-transform:uppercase; letter-spacing:.04em; white-space:nowrap; }
.report-activity-table td { padding:9px; border-bottom:1px solid #e7eeec; color:#34433f; vertical-align:middle; }
.report-activity-table tbody tr:nth-child(even) { background:#f7fbfa; }
.report-activity-table tbody tr:last-child td { border-bottom:0; }
.report-activity-table td:first-child { color:var(--muted); text-align:center; }
.report-activity-table td img { width:42px; height:42px; object-fit:cover; border-radius:8px; box-shadow:0 3px 8px rgba(0,0,0,.12); }

.verification-qr-card { display:grid; grid-template-columns:116px minmax(0,1fr); gap:15px; align-items:center; margin-top:15px; padding:14px; color:#fff; background:linear-gradient(135deg,#242566,#0f766e); border-radius:17px; }
.verification-qr-card #signatureQr { width:116px; height:116px; display:grid; place-items:center; padding:7px; background:#fff; border-radius:11px; }
.verification-qr-card canvas,.verification-qr-card img { max-width:100%; height:auto!important; }
.verification-qr-card span { color:#bbf7d0; font-size:.7rem; font-weight:850; letter-spacing:.06em; }
.verification-qr-card h3 { margin:3px 0; font-size:1rem; }
.verification-qr-card p { margin:0 0 5px; color:rgba(255,255,255,.72); font-size:.76rem; }
.verification-qr-card a { color:#fff; font-size:.75rem; font-weight:750; }

.verification-body { min-height:100dvh; padding:22px 14px; background:radial-gradient(circle at 20% 0,rgba(122,193,67,.2),transparent 35%),linear-gradient(180deg,#edf6f3,#f8faf9); }
.verification-shell { width:min(100%,520px); margin:0 auto; display:grid; gap:14px; }
.verification-brand { display:flex; align-items:center; gap:11px; padding:12px; background:#fff; border:1px solid var(--line); border-radius:17px; box-shadow:var(--shadow); }
.verification-brand img { width:66px; height:66px; object-fit:contain; border-radius:13px; box-shadow:0 8px 16px rgba(20,30,29,.2); }
.verification-brand div { display:grid; }
.verification-brand span { color:var(--primary); font-size:.68rem; font-weight:850; letter-spacing:.09em; }
.verification-brand strong { font-size:1.1rem; }
.verification-valid { display:flex; gap:13px; align-items:center; padding:18px; color:#fff; background:linear-gradient(135deg,#15803d,#0f766e); border-radius:19px; box-shadow:0 16px 34px rgba(21,128,61,.2); }
.valid-icon { width:58px; height:58px; flex:0 0 auto; display:grid; place-items:center; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.2); border-radius:50%; font-size:1.8rem; }
.verification-valid small { opacity:.7; font-weight:800; letter-spacing:.08em; }
.verification-valid h1 { margin:2px 0; font-size:1.45rem; }
.verification-valid p { margin:0; color:rgba(255,255,255,.76); font-size:.8rem; }
.verification-document,.verification-approvers,.verification-seal,.verification-invalid { padding:16px; background:#fff; border:1px solid var(--line); border-radius:17px; box-shadow:0 7px 22px rgba(22,38,35,.06); }
.verification-document-head { display:grid; padding-bottom:11px; border-bottom:1px solid var(--line); }
.verification-document-head span { color:var(--primary); font-size:.68rem; font-weight:850; letter-spacing:.06em; }
.verification-document-head strong { margin-top:3px; }
.verification-document dl { margin:7px 0 0; }
.verification-document dl div { display:flex; justify-content:space-between; gap:12px; padding:7px 0; }
.verification-document dt { color:var(--muted); font-size:.78rem; font-weight:600; }
.verification-document dd { margin:0; text-align:right; font-size:.82rem; font-weight:800; }
.verification-approvers h2 { margin:0 0 10px; font-size:1rem; }
.verification-approvers article { display:grid; grid-template-columns:42px 1fr auto; gap:10px; align-items:center; padding:10px 0; }
.verification-approvers article+article { border-top:1px solid var(--line); }
.verification-approvers article>span { width:42px; height:42px; display:grid; place-items:center; color:#fff; background:linear-gradient(135deg,#262569,#0f766e); border-radius:12px; }
.verification-approvers article div { min-width:0; display:grid; }
.verification-approvers article small { color:var(--muted); font-size:.68rem; }
.verification-approvers article strong { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.verification-approvers article p { margin:1px 0 0; color:var(--muted); font-size:.68rem; }
.verification-approvers article>i { color:#16a34a; font-size:1.3rem; }
.verification-seal { display:flex; gap:11px; align-items:center; color:#343467; border-style:dashed; }
.verification-seal>i { font-size:1.65rem; }
.verification-seal p { margin:2px 0 0; color:var(--muted); font-size:.68rem; }
.verification-invalid { text-align:center; padding:30px 18px; }
.verification-invalid>i { color:#dc2626; font-size:3rem; }
.verification-invalid h1 { margin:9px 0 4px; font-size:1.35rem; }
.verification-invalid p { margin:0; color:var(--muted); }

@media(max-width:480px){.verification-qr-card{grid-template-columns:96px minmax(0,1fr)}.verification-qr-card #signatureQr{width:96px;height:96px}.verification-qr-card p{display:none}}

.bottom-nav-admin {
    grid-template-columns: repeat(4, 1fr);
}

.bottom-nav-three {
    grid-template-columns: repeat(3, 1fr);
}

.activity-admin-list,
.student-catalog {
    display: grid;
    gap: 12px;
}

.activity-admin-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.activity-admin-thumb {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 13px;
    background: var(--surface-soft);
}

.activity-admin-thumb.placeholder {
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 1.65rem;
}

.activity-admin-main {
    min-width: 0;
}

.activity-admin-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-admin-title h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.activity-admin-title > span {
    padding: 2px 7px;
    color: #fff;
    background: #748087;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
}

.activity-admin-main > p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .86rem;
}

.activity-admin-actions {
    display: flex;
    gap: 6px;
}

.meta-row .evidence-required {
    color: #9a3412;
    background: #fff1e8;
}

.image-preview-wrap img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.evidence-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
}

.evidence-toggle small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
}

.evidence-toggle .form-check-input {
    width: 3rem;
    height: 1.5rem;
}

.selected-activity-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 14px;
    padding: 12px;
    border: 1px solid #cfe6df;
    border-radius: 14px;
    background: var(--surface-soft);
}

.selected-activity-detail[hidden] {
    display: none;
}

.selected-activity-detail img {
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 12px;
}

.selected-activity-detail p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: .84rem;
}

.evidence-upload {
    margin-top: 14px;
    padding: 14px;
    border: 1px dashed #f59e0b;
    border-radius: 14px;
    background: #fffbeb;
}

.evidence-upload[hidden] {
    display: none;
}

.evidence-upload .form-label span {
    margin-left: 5px;
    padding: 2px 7px;
    color: #fff;
    background: #d97706;
    border-radius: 999px;
    font-size: .68rem;
}

.evidence-upload small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.student-activity-card {
    width: 100%;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    color: var(--text);
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
}

.student-activity-card > img,
.student-activity-icon {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 12px;
}

.student-activity-icon {
    display: grid;
    place-items: center;
    color: var(--primary);
    background: var(--surface-soft);
    font-size: 1.3rem;
}

.student-activity-copy {
    min-width: 0;
    display: grid;
}

.student-activity-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .76rem;
}

.daily-entry-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.daily-entry-card h6 i {
    color: #198754;
}

.evidence-thumb {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 11px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

#weekly-report-view {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 2px;
}

.table {
    margin-bottom: 0;
}

.table th {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

@media (max-width: 767.98px) {
    .login-body {
        overflow-y: auto;
    }

    .login-body::before {
        mask-image: none;
        opacity: 0.55;
    }

    .login-screen {
        align-items: stretch;
        padding: 0;
    }

    .login-card {
        padding: 20px 18px 16px;
    }

    .login-ornament {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        font-size: 1.4rem;
    }

    .login-ornament-left {
        top: 24px;
        left: 8px;
    }

    .login-ornament-right {
        right: 8px;
        bottom: auto;
        top: 72px;
    }

    .login-card-enhanced {
        width: 100%;
        min-height: 100dvh;
        margin-top: 0;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.9);
        padding-top: max(18px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .login-bismillah {
        font-size: 0.74rem;
    }

    .login-abstract-cloud {
        display: none;
    }

    .abstract-chip {
        max-width: 54vw;
        padding: 7px 10px;
        font-size: 0.72rem;
        opacity: 0.74;
    }

    .chip-1 {
        top: calc(env(safe-area-inset-top) + 6px);
        left: 8px;
    }

    .chip-2 {
        top: calc(env(safe-area-inset-top) + 48px);
        right: 8px;
    }

    .chip-3 {
        bottom: calc(env(safe-area-inset-bottom) + 16px);
        right: 10px;
    }

    .chip-4 {
        bottom: calc(env(safe-area-inset-bottom) + 58px);
        left: 10px;
    }

    .chip-quote {
        display: none;
    }

    .login-form { padding-bottom: 0; }

    .login-sticky-action { position: static; padding: 0; background: none; backdrop-filter: none; }

    .login-sticky-action .btn {
        min-height: 52px;
        border-radius: 14px;
    }

    .pwa-install-wrap { margin: 0; }

    .app-splash-logo {
        width: 96px;
        height: 96px;
    }

    .app-splash h2 {
        font-size: 1.36rem;
    }

    .login-brand {
        margin-top: 48px;
    }

    .login-logo-shell {
        width: 96px;
        height: 96px;
    }

    .login-card h1 {
        font-size: clamp(1.8rem, 9vw, 2.4rem);
    }

    .pwa-install-wrap { margin-top: 0; }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .quick-tile {
        min-height: 94px;
        display: grid;
        grid-template-columns: 46px 1fr;
        align-items: center;
    }

    .quick-tile small {
        grid-column: 2;
    }

    .panel-section {
        padding: 14px;
    }

    .section-heading {
        align-items: center;
    }

    .btn-compact span {
        display: none;
    }

    .list-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .action-row {
        width: 100%;
    }

    .action-row .icon-btn {
        width: calc(50% - 3px);
    }

    .table-responsive {
        margin: 0 -14px;
        padding: 0 14px;
    }

    .table {
        min-width: 560px;
    }

    #daily-entries {
        max-height: 380px;
    }

    .bottom-nav-student {
        gap: 2px;
    }

    .bottom-nav-student span {
        font-size: 0.68rem;
    }

    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric-card { padding: 12px; }
    .admin-insight-hero { padding: 18px; }
    .progress-ring { width: 82px; height: 82px; }

    .activity-admin-card {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .activity-admin-thumb {
        width: 64px;
        height: 64px;
    }

    .activity-admin-actions {
        grid-column: 1 / -1;
    }

    .activity-admin-actions .icon-btn {
        width: calc(50% - 3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.modal-fullscreen-sm-down .modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-fullscreen-sm-down .modal-content {
    max-height: 100dvh;
}

.native-sheet-modal .modal-dialog {
    margin: 0;
    max-width: none;
}

.native-sheet-modal .modal-content {
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, #f8faf9 0%, #f3f7f6 100%);
}

.native-sheet-modal .modal-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: max(12px, env(safe-area-inset-top)) 16px 12px;
    background: rgba(248, 251, 250, 0.9);
    border-bottom: 1px solid #d9e5e1;
    backdrop-filter: blur(12px);
}

.native-sheet-modal .modal-title {
    font-size: 1.2rem;
    font-weight: 800;
}

.native-sheet-modal .sheet-grabber {
    width: 44px;
    height: 5px;
    margin: 0 auto 8px;
    border-radius: 999px;
    background: #c6d7d1;
}

.native-sheet-modal .modal-body {
    overflow-y: auto;
    padding: 12px 16px 110px;
    -webkit-overflow-scrolling: touch;
}

.native-sheet-modal .modal-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 7;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 16px max(12px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(243, 247, 246, 0), rgba(243, 247, 246, 0.95) 35%, rgba(243, 247, 246, 1) 100%);
    border-top: 0;
}

.native-sheet-modal .modal-footer .btn {
    min-height: 50px;
    border-radius: 12px;
    font-weight: 700;
}

.native-sheet-modal .form-control,
.native-sheet-modal .form-select {
    border-radius: 12px;
}

/* Dialog aplikasi: konfirmasi yang konsisten pada seluruh perangkat. */
.app-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(3, 25, 23, 0.55);
    opacity: 0;
    backdrop-filter: blur(6px);
    transition: opacity 180ms ease;
}

.app-dialog-backdrop.show { opacity: 1; }

.app-dialog {
    width: min(100%, 390px);
    padding: 26px 22px 20px;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(3, 25, 23, 0.24);
    text-align: center;
    transform: translateY(16px) scale(0.96);
    transition: transform 200ms cubic-bezier(.2,.85,.32,1.15);
}

.app-dialog-backdrop.show .app-dialog { transform: translateY(0) scale(1); }
.app-dialog-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 20px; color: #087f76; background: #e4f7f3; font-size: 1.65rem; }
.app-dialog-icon.danger { color: #dc3545; background: #fff0f1; }
.app-dialog h2 { margin: 0 0 8px; color: #102522; font-size: 1.25rem; font-weight: 800; }
.app-dialog p { margin: 0 0 20px; color: #667773; line-height: 1.55; }
.app-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-dialog-actions .btn { min-height: 48px; border-radius: 14px; font-weight: 750; }

/* Foto siswa pada daftar kelas dan profil. */
.student-avatar-photo {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border: 3px solid #e4f7f3;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 7px 18px rgba(8, 127, 118, 0.13);
}
.student-avatar-photo-large { width: 68px; height: 68px; border-radius: 22px; }
.student-photo-preview { display: grid; place-items: center; width: 160px; height: 160px; margin: 18px auto 14px; overflow: hidden; border: 5px solid #fff; border-radius: 42px; color: #087f76; background: linear-gradient(145deg, #e4f7f3, #ccece7); box-shadow: 0 18px 38px rgba(8, 127, 118, 0.2); font-size: 4rem; }
.student-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-student-name { margin-bottom: 8px; text-align: center; font-size: 1.35rem; font-weight: 800; }
.photo-modal-actions { grid-template-columns: 1fr 1.2fr !important; }

/* Ringkasan wali kelas, preview laporan, dan hasil absensi. */
.week-activity-chart { display: grid; grid-template-columns: repeat(7, minmax(48px, 1fr)); gap: 12px; min-height: 210px; padding: 18px 8px 4px; overflow-x: auto; }
.week-chart-column { display: grid; grid-template-rows: 24px 140px 24px; gap: 6px; min-width: 48px; color: #60746f; text-align: center; }
.week-chart-column strong { color: #0f766e; font-size: .88rem; }
.week-chart-column > div { display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border-radius: 14px; background: linear-gradient(180deg, #f3f9f8, #e8f3f1); }
.week-chart-column i { width: min(34px, 72%); height: var(--bar-height); min-height: 6px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #36b9aa, #0f766e); box-shadow: 0 6px 14px rgba(15,118,110,.2); transition: height .4s ease; }
.week-chart-column span { font-size: .76rem; font-weight: 700; white-space: nowrap; }
.dashboard-student-progress { display: grid; gap: 10px; }
.dashboard-student-progress article { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(220px, 1.2fr) 54px; align-items: center; gap: 18px; padding: 14px; border: 1px solid #deebe7; border-radius: 18px; background: #fbfdfc; }
.dashboard-student-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dashboard-student-identity > img, .dashboard-student-identity > span { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 16px; object-fit: cover; color: #fff; background: linear-gradient(145deg,#12857c,#225091); font-weight: 800; }
.dashboard-student-identity div { min-width: 0; }.dashboard-student-identity strong,.dashboard-student-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.dashboard-student-identity small,.dashboard-progress-value small { color: #6a7a76; }
.dashboard-progress-value .mini-progress { margin-bottom: 5px; }.dashboard-student-progress article > b { color: #0f766e; text-align: right; }
.report-preview-profile { display: flex; align-items: center; gap: 15px; padding: 15px; border-radius: 20px; background: linear-gradient(135deg,#edf9f6,#edf4ff); }
.report-preview-avatar { display: grid; place-items: center; flex: 0 0 70px; width: 70px; height: 70px; overflow: hidden; border: 3px solid #fff; border-radius: 22px; color: #fff; background: linear-gradient(145deg,#0f766e,#224b8f); font-size: 1.6rem; font-weight: 800; box-shadow: 0 8px 20px rgba(20,80,72,.14); }.report-preview-avatar img { width: 100%; height: 100%; object-fit: cover; }.report-preview-profile h3 { margin: 0; font-size: 1.18rem; font-weight: 800; }.report-preview-profile p,.report-preview-profile small { margin: 3px 0 0; color: #657771; }
.report-preview-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 12px; }.report-preview-metrics article { display: grid; padding: 13px; border: 1px solid #deebe7; border-radius: 16px; text-align: center; }.report-preview-metrics strong { color: #0f766e; font-size: 1.1rem; }.report-preview-metrics span { color: #6a7a76; font-size: .75rem; }
.report-preview-progress { margin-top: 12px; }.report-preview-progress small { display: block; margin-top: 6px; color: #64736f; }.report-preview-heading { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 8px; }.report-preview-heading h4 { margin: 0; font-size: 1rem; font-weight: 800; }.report-preview-heading span { color: #0f766e; font-size: .82rem; font-weight: 700; }
.report-preview-entries { display: grid; gap: 8px; max-height: 280px; overflow-y: auto; }.report-preview-entries article { display: grid; grid-template-columns: minmax(160px,1fr) auto auto; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #deebe7; border-radius: 14px; background: #fbfdfc; }.report-preview-entries strong,.report-preview-entries small { display: block; }.report-preview-entries small { color: #6b7b77; font-size: .76rem; }.report-entry-tags { display: flex; flex-wrap: wrap; gap: 5px; }.report-entry-tags span,.report-preview-entries a { padding: 5px 8px; border-radius: 9px; color: #0f766e; background: #e8f6f3; font-size: .72rem; font-weight: 700; text-decoration: none; }
.attendance-result-list { display: grid; gap: 10px; }.attendance-result-list article { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px; border: 1px solid #deebe7; border-radius: 17px; background: #fbfdfc; }.attendance-result-person { display: flex; align-items: center; gap: 11px; min-width: 0; }.attendance-result-person > img,.attendance-result-person > span { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 15px; object-fit: cover; color: #fff; background: linear-gradient(145deg,#0f766e,#315a96); font-weight: 800; }.attendance-result-person strong,.attendance-result-person small { display: block; }.attendance-result-person small,.attendance-result-detail small { color: #6a7a76; }.attendance-result-detail { display: flex; align-items: flex-end; flex-direction: column; gap: 5px; text-align: right; }.attendance-result-badge { padding: 6px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; }.attendance-result-badge.present { color: #18713c; background: #e5f7e9; }.attendance-result-badge.absent { color: #a3222a; background: #fff0f1; }
.download-template-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; border-radius: 16px; text-align: left; }.download-template-btn > i { font-size: 1.55rem; }.download-template-btn span,.download-template-btn small { display: block; }.download-template-btn small { opacity: .72; font-weight: 500; }
.signed-report-actions { display: flex; align-items: center; gap: 7px; }.signed-report-actions .btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 12px; white-space: nowrap; }
.attendance-report-score { display: grid; place-items: center; flex: 0 0 100px; width: 100px; height: 100px; border: 10px solid rgba(255,255,255,.22); border-radius: 50%; color: #fff; background: rgba(255,255,255,.12); }.attendance-report-score strong,.attendance-report-score span { display: block; text-align: center; }.attendance-report-score strong { font-size: 1.4rem; }.attendance-report-score span { font-size: .75rem; }
.attendance-report-filter { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; }.attendance-report-filter label { display: block; margin-bottom: 5px; color: #526762; font-size: .8rem; font-weight: 800; }.attendance-report-filter .btn { min-height: 48px; display: inline-flex; align-items: center; gap: 7px; }
.attendance-report-students { display: grid; gap: 10px; }.attendance-report-students > article { display: grid; grid-template-columns: minmax(210px,1fr) auto minmax(130px,.55fr); align-items: center; gap: 18px; padding: 14px; border: 1px solid #deebe7; border-radius: 18px; background: #fbfdfc; }.attendance-report-counts { display: flex; gap: 7px; flex-wrap: wrap; }.attendance-report-counts span { padding: 6px 9px; border-radius: 10px; color: #596d67; background: #f0f5f3; font-size: .73rem; }.attendance-report-counts span.present { color: #18713c; background: #e7f7ec; }.attendance-report-counts span.absent { color: #a3222a; background: #fff0f1; }.attendance-report-rate { text-align: right; }.attendance-report-rate > strong { display: block; margin-bottom: 6px; color: #0f766e; font-size: 1.1rem; }
.unit-class-panel { overflow: hidden; background: linear-gradient(145deg,rgba(255,255,255,.98),rgba(240,250,248,.96)); }
.unit-class-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(285px,1fr)); gap: 14px; }
.unit-class-card { position: relative; overflow: hidden; padding: 17px; border: 1px solid rgba(15,118,110,.13); border-radius: 22px; background: linear-gradient(145deg,#ffffff,#f3faf8); box-shadow: 0 12px 28px rgba(23,75,68,.08); transition: transform .2s ease,box-shadow .2s ease; }
.unit-class-card::after { position: absolute; top: -42px; right: -36px; width: 110px; height: 110px; border: 18px solid rgba(47,115,194,.07); border-radius: 50%; content: ''; }
.unit-class-card:hover { transform: translateY(-3px); box-shadow: 0 17px 35px rgba(23,75,68,.13); }
.unit-class-card-head { position: relative; z-index: 1; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; }
.unit-class-card-head > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; color: #fff; background: linear-gradient(145deg,#0f887d,#23559a); box-shadow: 0 9px 20px rgba(15,118,110,.2); font-size: 1.25rem; }
.unit-class-card-head h3,.unit-class-card-head small { margin: 0; }.unit-class-card-head h3 { color: #172b27; font-size: 1.05rem; font-weight: 850; }.unit-class-card-head div > small { color: #71817d; font-size: .7rem; font-weight: 800; letter-spacing: .08em; }
.unit-class-card-head > strong { color: #0f766e; font-size: 1.45rem; text-align: right; }.unit-class-card-head > strong small { display: block; color: #73827e; font-size: .65rem; font-weight: 700; }
.unit-class-progress { height: 8px; margin: 15px 0; overflow: hidden; border-radius: 999px; background: #e3efec; }.unit-class-progress i { display: block; width: var(--bar-width); height: 100%; border-radius: inherit; background: linear-gradient(90deg,#0f766e,#2bb7a6,#72bd42); }
.unit-class-homeroom { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; color: #24534d; background: rgba(222,244,239,.72); }.unit-class-homeroom > i { font-size: 1.2rem; }.unit-class-homeroom small,.unit-class-homeroom strong { display: block; }.unit-class-homeroom small { color: #6e817c; font-size: .67rem; font-weight: 700; }.unit-class-homeroom strong { font-size: .85rem; }

/* Konfirmasi perjalanan pulang siswa dan notifikasi wali kelas. */
.home-arrival-card { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid rgba(37,99,235,.15); border-radius: 24px; color: #fff; background: linear-gradient(125deg,#24558f,#0f8079); box-shadow: 0 15px 34px rgba(25,82,112,.18); }
.home-arrival-card.confirmed { background: linear-gradient(125deg,#16735f,#58a53b); }.home-arrival-icon { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid rgba(255,255,255,.25); border-radius: 20px; background: rgba(255,255,255,.14); font-size: 1.8rem; }
.home-arrival-copy span { font-size: .73rem; font-weight: 850; letter-spacing: .08em; opacity: .82; }.home-arrival-copy h2 { margin: 3px 0; font-size: 1.3rem; font-weight: 850; }.home-arrival-copy p { margin: 0; opacity: .86; }.home-arrival-card .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding-inline: 18px; border: 0; border-radius: 15px; color: #125e63; font-weight: 800; }.home-arrival-card .btn:disabled { color: #356b42; opacity: .95; }
.home-arrival-notifications { margin-top: 16px; border-color: rgba(15,118,110,.16); background: linear-gradient(145deg,#fff,#f1faf7); }.home-arrival-notifications .section-heading { align-items: center; }.arrival-count-badge { padding: 7px 11px; border-radius: 999px; color: #0f766e; background: #dff5ef; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.home-arrival-notification-list { display: grid; gap: 9px; }.home-arrival-notification-list article { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid #deebe7; border-radius: 16px; background: rgba(255,255,255,.88); }.home-arrival-notification-list article > img,.home-arrival-notification-list article > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; object-fit: cover; color: #fff; background: linear-gradient(145deg,#0f766e,#315a96); font-weight: 800; }.home-arrival-notification-list strong,.home-arrival-notification-list small { display: block; }.home-arrival-notification-list small { color: #6a7a76; }.home-arrival-notification-list time { padding: 7px 10px; border-radius: 10px; color: #16735f; background: #e7f7ec; font-size: .8rem; font-weight: 800; }.home-arrival-result.arrived { color: #18713c; }.home-arrival-result.pending { color: #8a6a12; }

@media (max-width: 700px) { .home-arrival-card { grid-template-columns: 52px 1fr; padding: 16px; }.home-arrival-icon { width: 52px; height: 52px; border-radius: 17px; }.home-arrival-card .btn { grid-column: 1 / -1; width: 100%; } }

/* Halaman pengelolaan Admin Unit. */
.audience-selector { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }.audience-selector label { cursor:pointer; }.audience-selector input { position:absolute; opacity:0; pointer-events:none; }.audience-selector span { display:grid; grid-template-columns:32px 1fr; align-items:center; min-height:72px; padding:12px; border:1px solid #dce9e5; border-radius:16px; background:#f8fbfa; transition:.2s ease; }.audience-selector i { grid-row:1/3; color:#0f766e; font-size:1.25rem; }.audience-selector strong,.audience-selector small { display:block; }.audience-selector small { color:#74827e; font-size:.68rem; }.audience-selector input:checked+span { border-color:#139387; color:#0b6d65; background:#e6f7f3; box-shadow:0 0 0 3px rgba(15,118,110,.1); }.activity-audience.teacher { color:#2159a4!important;background:#e9f1ff!important; }.activity-audience.both { color:#6b4e12!important;background:#fff5d8!important; }
.teacher-profile-hero,.principal-hero { display:flex; align-items:center; gap:18px; padding:25px; border-radius:28px; color:#fff; background:linear-gradient(125deg,#193f82,#087d78,#38915b); box-shadow:0 18px 42px rgba(15,73,76,.2); }.teacher-profile-avatar { display:grid; place-items:center; flex:0 0 78px; width:78px; height:78px; overflow:hidden; border:3px solid rgba(255,255,255,.7); border-radius:25px; background:rgba(255,255,255,.16); font-size:2rem; font-weight:850; }.teacher-profile-avatar img { width:100%;height:100%;object-fit:cover; }.teacher-profile-hero h2,.principal-hero h2 { margin:4px 0;font-size:1.65rem;font-weight:850; }.teacher-profile-hero p,.principal-hero p { margin:0;color:rgba(255,255,255,.82); }.teacher-today-badge { display:flex; align-items:center; gap:8px; margin-left:auto; padding:10px 13px; border-radius:14px; background:rgba(255,255,255,.14); font-weight:750; }
.teacher-habit-cta { display:grid; grid-template-columns:56px 1fr auto; align-items:center; gap:14px; margin:16px 0; padding:17px; border:1px solid rgba(38,91,170,.15); border-radius:21px; color:#17342f; background:linear-gradient(135deg,#edf4ff,#e9faf5); text-decoration:none; box-shadow:0 9px 23px rgba(28,77,82,.1); }.teacher-habit-cta>span { display:grid;place-items:center;width:56px;height:56px;border-radius:18px;color:#fff;background:linear-gradient(145deg,#285ca0,#0f897c);font-size:1.4rem;}.teacher-habit-cta small,.teacher-habit-cta strong,.teacher-habit-cta p{display:block;margin:0}.teacher-habit-cta small{color:#28736d;font-size:.68rem;font-weight:850}.teacher-habit-cta strong{font-size:1.05rem}.teacher-habit-cta p{color:#6a7b77;font-size:.8rem}.teacher-habit-cta>i{color:#0f766e;font-size:1.25rem}
.principal-hero { justify-content:space-between; }.principal-score { display:grid;place-items:center;width:110px;height:110px;border:10px solid rgba(255,255,255,.2);border-radius:50%;background:rgba(255,255,255,.12);}.principal-score strong,.principal-score span{display:block;text-align:center}.principal-score strong{font-size:1.55rem}.principal-score span{font-size:.65rem}.principal-teacher-list{display:grid;gap:10px}.principal-teacher-list article{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(220px,1fr) 55px;align-items:center;gap:16px;padding:14px;border:1px solid #deebe7;border-radius:18px;background:#fbfdfc}.principal-person{display:flex;align-items:center;gap:11px}.principal-person>img,.principal-person>span{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;object-fit:cover;color:#fff;background:linear-gradient(145deg,#0f766e,#315a96);font-weight:800}.principal-person strong,.principal-person small{display:block}.principal-person small,.principal-progress small{color:#6b7b77}.principal-progress>div{height:9px;overflow:hidden;border-radius:999px;background:#e2eeeb}.principal-progress i{display:block;width:var(--value);height:100%;background:linear-gradient(90deg,#0f766e,#67b93f)}.principal-teacher-list article>b{color:#0f766e;text-align:right}.principal-nav{grid-template-columns:repeat(2,1fr)}
@media(max-width:700px){.audience-selector{grid-template-columns:1fr}.teacher-profile-hero{align-items:flex-start;padding:18px}.teacher-today-badge{display:none}.teacher-profile-avatar{flex-basis:58px;width:58px;height:58px;border-radius:18px}.principal-teacher-list article{grid-template-columns:1fr 48px}.principal-progress{grid-column:1/-1;grid-row:2}.principal-score{width:85px;height:85px;border-width:7px}.teacher-habit-cta{grid-template-columns:48px 1fr}.teacher-habit-cta>span{width:48px;height:48px}.teacher-habit-cta>i{display:none}}
.bottom-nav-five{grid-template-columns:repeat(5,1fr)}.teacher-profile-link{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:6px 10px;border-radius:10px;color:#fff;background:rgba(255,255,255,.15);font-size:.72rem;font-weight:800;text-decoration:none}
.principal-metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.principal-metric-grid article{display:flex;align-items:center;gap:12px;padding:17px;border:1px solid #deebe7;border-radius:19px;background:rgba(255,255,255,.94);box-shadow:0 8px 22px rgba(20,70,66,.08)}.principal-metric-grid article>i{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;color:#0f766e;background:#e3f7f2;font-size:1.2rem}.principal-metric-grid strong,.principal-metric-grid span{display:block}.principal-metric-grid strong{font-size:1.25rem}.principal-metric-grid span{color:#697a76;font-size:.75rem}
.principal-teacher-list>a{display:grid;grid-template-columns:minmax(230px,.9fr) minmax(220px,1fr) 66px 20px;align-items:center;gap:16px;padding:15px;border:1px solid #deebe7;border-radius:19px;color:#18332e;background:linear-gradient(135deg,#fff,#f8fcfb);text-decoration:none;box-shadow:0 5px 15px rgba(22,70,65,.05);transition:.2s ease}.principal-teacher-list>a:hover{border-color:#54afa3;box-shadow:0 12px 28px rgba(20,75,69,.12);transform:translateY(-2px)}.principal-card-score{display:grid;place-items:center;width:60px;height:60px;border-radius:18px;color:#0f766e;background:#e7f7f2}.principal-card-score strong,.principal-card-score small{display:block}.principal-card-score strong{font-size:1.2rem}.principal-card-score small{font-size:.62rem}.principal-teacher-list>a>i{color:#5f7872}
.principal-recap-list{display:grid;gap:10px}.principal-recap-list article{display:grid;grid-template-columns:minmax(220px,1.2fr) repeat(4,minmax(90px,.55fr));align-items:center;gap:12px;padding:14px;border:1px solid #dfebe8;border-radius:17px;background:#fbfdfc}.principal-recap-list small,.principal-recap-list strong,.principal-recap-list b{display:block}.principal-recap-list small{color:#72817e;font-size:.65rem;font-weight:800}.principal-recap-list span{padding:8px;border-radius:11px;color:#6b7b77;background:#eff6f4;font-size:.68rem;text-align:center}.principal-recap-list b{color:#0f766e;font-size:1rem}
.teacher-detail-hero,.teacher-profile-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px;border-radius:27px;color:#fff;background:linear-gradient(125deg,#173f80,#087d77,#389158);box-shadow:0 17px 40px rgba(16,73,76,.2)}.teacher-detail-profile,.teacher-profile-card>div:first-child+div{display:flex;align-items:center;gap:14px}.teacher-detail-profile>img,.teacher-detail-profile>span{display:grid;place-items:center;width:76px;height:76px;border:3px solid rgba(255,255,255,.65);border-radius:24px;object-fit:cover;background:rgba(255,255,255,.16);font-size:1.7rem;font-weight:850}.teacher-detail-profile small{font-size:.68rem;font-weight:850;letter-spacing:.08em}.teacher-detail-profile h2,.teacher-profile-card h2{margin:3px 0;font-size:1.5rem;font-weight:850}.teacher-detail-profile p,.teacher-profile-card p{margin:0;color:rgba(255,255,255,.82)}.teacher-detail-score,.profile-average-score{display:grid;place-items:center;min-width:105px;height:90px;padding:10px;border:1px solid rgba(255,255,255,.22);border-radius:22px;background:rgba(255,255,255,.14)}.teacher-detail-score strong,.profile-average-score strong{font-size:1.65rem}.teacher-detail-score span,.profile-average-score span{font-size:.65rem;text-align:center}.teacher-week-filter{display:flex;align-items:end;gap:12px;margin:14px 0;padding:12px 15px;border:1px solid #deebe7;border-radius:16px;background:#fff}.teacher-week-filter label{color:#61736e;font-size:.72rem;font-weight:800}.teacher-week-filter input{display:block;margin-top:4px;padding:8px;border:1px solid #dbe7e4;border-radius:10px}.teacher-week-filter>span{padding-bottom:9px;color:#0f766e;font-weight:800}
.teacher-detail-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.teacher-detail-metrics article{display:grid;grid-template-columns:42px 1fr;align-items:center;padding:14px;border:1px solid #deebe7;border-radius:17px;background:#fff}.teacher-detail-metrics i{grid-row:1/3;color:#0f766e;font-size:1.35rem}.teacher-detail-metrics strong,.teacher-detail-metrics span{display:block}.teacher-detail-metrics span{color:#6a7b77;font-size:.72rem}.teacher-detail-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.75fr);gap:14px;align-items:start}.teacher-entry-list{display:grid;gap:9px}.teacher-entry-list article{display:grid;grid-template-columns:50px 1fr auto;align-items:center;gap:12px;padding:12px;border:1px solid #e0ebe8;border-radius:15px;background:#fbfdfc}.teacher-entry-date{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;color:#fff;background:linear-gradient(145deg,#0f766e,#315e9b)}.teacher-entry-date strong,.teacher-entry-date span{display:block}.teacher-entry-date span{font-size:.65rem}.teacher-entry-list p{margin:3px 0 0;color:#687a75;font-size:.74rem}.teacher-entry-list>a{padding:7px 9px;border-radius:9px;color:#0f766e;background:#e6f5f1;font-size:.7rem;font-weight:800;text-decoration:none}
.weekly-score-form{display:grid;gap:12px}.weekly-score-form label{color:#526963;font-size:.78rem;font-weight:800}.weekly-score-form label>span{float:right;color:#81908c}.weekly-score-form input,.weekly-score-form textarea{display:block;width:100%;margin-top:5px;padding:12px;border:1px solid #d8e5e1;border-radius:13px;outline:0}.weekly-score-form input:focus,.weekly-score-form textarea:focus{border-color:#17978b;box-shadow:0 0 0 3px rgba(15,118,110,.1)}.weekly-score-form input{font-size:1.4rem;font-weight:850}.score-quick-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.score-quick-buttons button{padding:8px;border:0;border-radius:10px;color:#0f766e;background:#e8f5f2;font-weight:800}.weekly-score-form>small{color:#70817d;font-size:.68rem}
.teacher-profile-card{justify-content:flex-start}.teacher-profile-card>.teacher-profile-avatar{flex:0 0 76px}.profile-average-score{margin-left:auto}.teacher-score-history{display:grid;gap:11px}.teacher-score-history article{display:grid;grid-template-columns:88px 1fr auto;align-items:center;gap:15px;padding:14px;border:1px solid #deebe7;border-radius:18px;background:linear-gradient(135deg,#fff,#f7fcfa)}.score-circle{display:grid;place-items:center;width:82px;height:82px;border:8px solid #cceae2;border-radius:50%;color:#0f766e;background:#effaf7}.score-circle strong,.score-circle span{display:block;text-align:center}.score-circle strong{font-size:1.35rem}.score-circle span{font-size:.55rem}.teacher-score-history h3{margin:3px 0;font-size:1rem}.teacher-score-history p{margin:0;color:#657772}.teacher-score-history small{color:#0f766e;font-weight:750}.teacher-score-history>article>i{color:#23a360;font-size:1.5rem}
@media(max-width:800px){.principal-metric-grid{grid-template-columns:repeat(2,1fr)}.principal-teacher-list>a{grid-template-columns:1fr 58px 16px}.principal-progress{grid-column:1/-1;grid-row:2}.principal-recap-list article{grid-template-columns:1fr 1fr}.principal-recap-list article>div{grid-column:1/-1}.teacher-detail-grid{grid-template-columns:1fr}.teacher-detail-metrics{grid-template-columns:1fr}.teacher-detail-hero,.teacher-profile-card{padding:17px}.teacher-detail-score,.profile-average-score{min-width:78px;height:76px}.teacher-detail-profile>img,.teacher-detail-profile>span{width:58px;height:58px;border-radius:18px}.teacher-score-history article{grid-template-columns:72px 1fr}.score-circle{width:68px;height:68px;border-width:6px}.teacher-score-history>article>i{display:none}.bottom-nav-five span{font-size:.58rem}}
@media(min-width:801px){.principal-recap-list article{grid-template-columns:minmax(210px,1.15fr) repeat(5,minmax(78px,.48fr));gap:9px}}
.teacher-profile-card>div:nth-child(2){display:block}
.app-brand-subtitle { display: block; margin-top: 1px; color: #28706a; font-size: clamp(.55rem,1vw,.7rem); font-weight: 700; line-height: 1.2; }.login-brand-subtitle { max-width: 460px; margin: -10px auto 18px; color: #48706a; font-size: .82rem; font-weight: 700; line-height: 1.4; text-align: center; }
.management-page .app-shell { max-width: 1320px; }
.management-hero { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 168px; margin-bottom: 18px; padding: 28px 32px; overflow: hidden; border-radius: 28px; color: #fff; background: linear-gradient(125deg,#075f62 0%,#0b8278 52%,#29629d 100%); box-shadow: 0 18px 42px rgba(16,77,86,.2); }
.management-hero::before,.management-hero::after { position: absolute; border: 24px solid rgba(255,255,255,.08); border-radius: 50%; content: ''; }.management-hero::before { top: -72px; right: 85px; width: 185px; height: 185px; }.management-hero::after { right: -55px; bottom: -105px; width: 245px; height: 245px; }
.activity-management-hero { background: linear-gradient(125deg,#153778 0%,#087b79 58%,#3d945d 100%); }.management-hero > div { position: relative; z-index: 1; }.management-hero .eyebrow { color: rgba(255,255,255,.8); }.management-hero h2 { margin: 7px 0 5px; font-size: clamp(1.55rem,3vw,2.25rem); font-weight: 850; }.management-hero p { margin: 0; color: rgba(255,255,255,.82); font-size: 1rem; }
.management-hero-icon { display: grid; place-items: center; flex: 0 0 82px; width: 82px; height: 82px; border: 1px solid rgba(255,255,255,.22); border-radius: 27px; background: rgba(255,255,255,.13); box-shadow: inset 0 1px rgba(255,255,255,.2); font-size: 2.2rem; backdrop-filter: blur(8px); }
.management-panel { border-color: rgba(15,118,110,.13); border-radius: 26px; box-shadow: 0 16px 38px rgba(22,75,70,.1); }.management-panel > .section-heading { margin-bottom: 16px; }.management-panel > .section-heading .btn-group { overflow: hidden; border-radius: 15px; box-shadow: 0 7px 17px rgba(14,84,79,.12); }.management-panel > .section-heading .btn { min-height: 46px; padding-inline: 16px; border: 0; }
.management-toolbar { display: grid; grid-template-columns: minmax(280px,1fr) auto; align-items: center; gap: 14px; margin-bottom: 18px; padding: 12px; border: 1px solid #deebe7; border-radius: 18px; background: linear-gradient(135deg,#f5fbfa,#f2f7fd); }
.management-search { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid #d8e6e2; border-radius: 14px; color: #0f766e; background: #fff; transition: border-color .2s ease,box-shadow .2s ease; }.management-search:focus-within { border-color: #30a99b; box-shadow: 0 0 0 4px rgba(15,118,110,.1); }.management-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: #19342f; background: transparent; }.management-search input::placeholder { color: #84938f; }.management-search button { padding: 2px; border: 0; color: #82908d; background: none; }
.management-summary { display: flex; gap: 8px; }.management-summary span { display: inline-flex; align-items: center; gap: 7px; min-height: 45px; padding: 8px 12px; border-radius: 13px; color: #4f6761; background: #fff; font-size: .75rem; white-space: nowrap; box-shadow: 0 3px 10px rgba(22,75,70,.06); }.management-summary i,.management-summary strong { color: #0f766e; }.management-summary strong { font-size: 1rem; }
.management-list-card { position: relative; min-height: 112px; padding: 16px 18px; overflow: hidden; border-color: #dce9e5; border-radius: 20px; background: linear-gradient(135deg,#fff,#fbfefd); box-shadow: 0 7px 20px rgba(24,70,65,.06); }.management-list-card::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(#17a493,#3372b5); content: ''; }.management-list-card:hover,.activity-admin-card:hover { border-color: rgba(15,118,110,.3); box-shadow: 0 12px 28px rgba(24,70,65,.12); transform: translateY(-2px); }.management-list-card .avatar-badge,.management-list-card .student-avatar-photo { width: 60px; height: 60px; border-radius: 19px; }.management-list-card .avatar-badge { background: linear-gradient(145deg,#087f76,#3165a0); box-shadow: 0 8px 18px rgba(15,118,110,.18); }.management-list-card h3 { font-size: 1.06rem; }.management-list-card p { display: flex; align-items: center; gap: 3px; }.identity-divider { color: #a5b0ad; }.management-list-card .meta-row span,.activity-admin-card .meta-row span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; }.management-list-card .action-row { padding-left: 12px; border-left: 1px solid #e6efec; }.management-list-card .icon-btn,.activity-admin-actions .icon-btn { border-radius: 14px; }
.activity-admin-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }.activity-admin-card { grid-template-columns: 88px minmax(0,1fr) auto; min-height: 132px; padding: 16px; border-radius: 21px; background: linear-gradient(140deg,#fff,#f8fcfb); box-shadow: 0 7px 20px rgba(24,70,65,.06); }.activity-admin-thumb { width: 88px; height: 88px; border-radius: 19px; box-shadow: 0 7px 17px rgba(18,80,72,.1); }.activity-admin-thumb.placeholder { background: linear-gradient(145deg,#e8f7f3,#eaf2fb); }.activity-admin-title h3 { font-size: 1.06rem; }.activity-admin-title > span { background: linear-gradient(135deg,#0f766e,#3471a5); }.activity-admin-main > p { min-height: 40px; line-height: 1.45; }.activity-admin-actions { flex-direction: column; padding-left: 10px; border-left: 1px solid #e5efec; }

@media (max-width: 900px) { .activity-admin-list { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .management-hero { min-height: 140px; padding: 22px 20px; border-radius: 23px; }.management-hero-icon { flex-basis: 62px; width: 62px; height: 62px; border-radius: 20px; font-size: 1.65rem; }.management-hero p { max-width: 250px; font-size: .82rem; }.management-toolbar { grid-template-columns: 1fr; }.management-summary { display: grid; grid-template-columns: 1fr 1fr; }.management-summary span { justify-content: center; }.management-panel > .section-heading { align-items: flex-start; }.management-panel > .section-heading .btn-group { width: 100%; margin-top: 10px; }.management-panel > .section-heading .btn { flex: 1; }.management-list-card { min-height: 0; padding: 14px; }.management-list-card .action-row { padding: 10px 0 0; border-top: 1px solid #e6efec; border-left: 0; }.activity-admin-card { grid-template-columns: 72px minmax(0,1fr); }.activity-admin-thumb { width: 72px; height: 72px; }.activity-admin-actions { grid-column: 1 / -1; flex-direction: row; padding: 10px 0 0; border-top: 1px solid #e5efec; border-left: 0; }.activity-admin-actions .icon-btn { flex: 1; }.management-list-card:hover,.activity-admin-card:hover { transform: none; } }

@media (max-width: 700px) {
    .dashboard-student-progress article { grid-template-columns: 1fr 46px; gap: 10px; }.dashboard-progress-value { grid-column: 1 / -1; grid-row: 2; }.report-preview-metrics { grid-template-columns: 1fr; }.report-preview-entries article { grid-template-columns: 1fr; }.attendance-result-list article { align-items: flex-start; }.attendance-result-detail { flex: 0 0 auto; }.week-activity-chart { gap: 7px; }.signed-report-actions { flex-direction: column; align-items: stretch; }.signed-report-actions .btn span { display: none; }.attendance-report-filter { grid-template-columns: 1fr; }.attendance-report-students > article { grid-template-columns: 1fr; gap: 10px; }.attendance-report-rate { text-align: left; }.attendance-report-score { width: 84px; height: 84px; flex-basis: 84px; }.unit-class-grid { grid-template-columns: 1fr; }
}

/* Pengalaman PWA mobile yang konsisten untuk seluruh peran. */
@media (max-width: 600px) {
    :root {
        --radius: 16px;
        --mobile-gutter: 12px;
        --mobile-nav-height: 76px;
    }

    html {
        font-size: 15px;
        scroll-padding-top: 82px;
    }

    body {
        overflow-x: hidden;
    }

    .app-body {
        padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
        background-attachment: scroll;
    }

    .app-body::after {
        display: none;
    }

    .app-topbar {
        gap: 9px;
        min-height: 66px;
        padding: max(9px, env(safe-area-inset-top)) var(--mobile-gutter) 9px;
    }

    .topbar-logo {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .app-topbar h1 {
        font-size: 1.02rem;
        line-height: 1.15;
    }

    .app-topbar .app-brand-subtitle {
        max-width: 245px;
        overflow: hidden;
        font-size: .58rem;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-topbar p {
        max-width: 245px;
        font-size: .7rem;
    }

    .app-topbar .icon-btn {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .app-shell {
        width: 100%;
        padding: 12px var(--mobile-gutter) 18px;
    }

    .panel-section,
    .content-card,
    .insight-panel,
    .management-panel {
        padding: 15px;
        border-radius: 20px;
        box-shadow: 0 7px 20px rgba(22, 70, 65, .07);
    }

    .section-heading {
        gap: 8px;
        margin-bottom: 12px;
    }

    .section-heading h2 {
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .section-heading p {
        font-size: .76rem;
        line-height: 1.45;
    }

    .btn,
    .form-control,
    .form-select {
        min-height: 46px;
    }

    .btn {
        touch-action: manipulation;
    }

    .form-label {
        margin-bottom: 5px;
        font-size: .8rem;
        font-weight: 750;
    }

    .bottom-nav {
        min-height: var(--mobile-nav-height);
        gap: 2px;
        padding: 6px 6px max(6px, env(safe-area-inset-bottom));
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -8px 28px rgba(16, 55, 50, .13);
    }

    .bottom-nav a {
        min-width: 0;
        min-height: 57px;
        gap: 1px;
        padding: 5px 2px;
        border-radius: 15px;
    }

    .bottom-nav i {
        font-size: 1.18rem;
    }

    .bottom-nav span {
        max-width: 100%;
        overflow: hidden;
        font-size: .62rem;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bottom-nav-five {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .admin-insight-hero,
    .principal-hero,
    .teacher-profile-hero,
    .teacher-profile-card,
    .teacher-detail-hero {
        align-items: flex-start;
        gap: 12px;
        padding: 18px;
        border-radius: 23px;
    }

    .admin-insight-hero h2,
    .principal-hero h2,
    .teacher-profile-hero h2,
    .teacher-profile-card h2,
    .teacher-detail-profile h2 {
        font-size: 1.25rem;
        line-height: 1.25;
    }

    .progress-ring,
    .principal-score {
        flex: 0 0 76px;
        width: 76px;
        height: 76px;
        border-width: 7px;
    }

    .principal-score strong {
        font-size: 1.15rem;
    }

    .metric-grid,
    .principal-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 10px;
    }

    .metric-card,
    .principal-metric-grid article {
        min-width: 0;
        min-height: 82px;
        gap: 9px;
        padding: 12px;
        border-radius: 17px;
    }

    .metric-card > i,
    .principal-metric-grid article > i {
        width: 39px;
        height: 39px;
        flex: 0 0 39px;
        border-radius: 13px;
    }

    .metric-card strong,
    .principal-metric-grid strong {
        font-size: 1.08rem;
    }

    .metric-card span,
    .principal-metric-grid span {
        font-size: .67rem;
        line-height: 1.2;
    }

    .student-identity-card {
        grid-template-columns: 62px minmax(0, 1fr) 30px;
        gap: 10px;
        padding: 13px;
        border-radius: 21px;
    }

    .student-identity-photo {
        width: 62px;
        height: 62px;
        border-width: 3px;
        border-radius: 19px;
        font-size: 1.6rem;
    }

    .student-identity-main h2 {
        margin-bottom: 7px;
        font-size: 1.08rem;
        line-height: 1.2;
    }

    .student-identity-main .eyebrow {
        font-size: .6rem;
    }

    .student-identity-meta {
        display: flex;
        gap: 5px;
    }

    .student-identity-meta > span {
        min-width: 0;
        padding: 5px 7px;
        border-radius: 10px;
    }

    .student-identity-meta i {
        font-size: .9rem;
    }

    .student-identity-meta small {
        font-size: .55rem;
    }

    .student-identity-meta strong {
        font-size: .68rem;
    }

    .student-attendance-status,
    .home-arrival-card {
        border-radius: 20px;
    }

    .student-attendance-status {
        gap: 11px;
        padding: 14px;
    }

    .attendance-status-icon {
        width: 46px;
        height: 46px;
        border-radius: 15px;
        font-size: 1.3rem;
    }

    .student-attendance-status h2 {
        font-size: 1.02rem;
    }

    .student-attendance-status p {
        font-size: .72rem;
        line-height: 1.35;
    }

    .teacher-habit-cta {
        grid-template-columns: 46px 1fr 16px;
        gap: 10px;
        padding: 13px;
        border-radius: 18px;
    }

    .teacher-habit-cta > span {
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }

    .teacher-habit-cta strong {
        font-size: .9rem;
    }

    .teacher-habit-cta p {
        display: none;
    }

    .dashboard-student-progress article {
        padding: 11px;
        border-radius: 16px;
    }

    .dashboard-student-identity > img,
    .dashboard-student-identity > span {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .week-activity-chart {
        margin-inline: -6px;
        min-height: 175px;
        padding: 10px 2px 2px;
    }

    .week-chart-column {
        grid-template-rows: 20px 112px 22px;
        min-width: 42px;
    }

    .principal-teacher-list > a,
    .principal-teacher-list article {
        grid-template-columns: minmax(0, 1fr) 54px 14px;
        gap: 9px;
        padding: 12px;
        border-radius: 17px;
    }

    .principal-progress {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .principal-card-score {
        grid-column: 2;
        grid-row: 1;
        width: 52px;
        height: 52px;
        border-radius: 15px;
    }

    .principal-teacher-list > a > i {
        grid-column: 3;
        grid-row: 1;
    }

    .principal-person {
        min-width: 0;
    }

    .principal-person > img,
    .principal-person > span {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .principal-person div {
        min-width: 0;
    }

    .principal-person strong,
    .principal-person small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .principal-recap-list article {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        padding: 12px;
    }

    .principal-recap-list article > div {
        grid-column: 1 / -1;
    }

    .principal-recap-list span {
        min-width: 0;
        padding: 7px 5px;
    }

    .teacher-profile-avatar,
    .teacher-detail-profile > img,
    .teacher-detail-profile > span {
        flex: 0 0 62px;
        width: 62px;
        height: 62px;
        border-radius: 19px;
    }

    .teacher-today-badge {
        margin-left: 0;
        padding: 8px;
        font-size: .68rem;
    }

    .teacher-profile-card,
    .teacher-detail-hero {
        flex-wrap: wrap;
    }

    .profile-average-score,
    .teacher-detail-score {
        min-width: 82px;
        height: 66px;
        margin-left: auto;
        border-radius: 17px;
    }

    .teacher-detail-grid {
        grid-template-columns: 1fr;
    }

    .teacher-detail-metrics {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .teacher-week-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .teacher-score-history article {
        grid-template-columns: 62px minmax(0, 1fr) 18px;
        gap: 10px;
        padding: 11px;
    }

    .score-circle {
        width: 60px;
        height: 60px;
        border-width: 6px;
    }

    .management-hero {
        min-height: 120px;
        padding: 18px;
    }

    .management-hero h2 {
        font-size: 1.35rem;
    }

    .management-hero-icon {
        display: none;
    }

    .management-panel {
        padding: 13px;
    }

    .management-panel > .section-heading {
        display: block;
    }

    .management-panel > .section-heading .btn-group {
        display: grid;
        grid-template-columns: 1fr 1.35fr;
        width: 100%;
    }

    .management-panel > .section-heading .btn {
        min-width: 0;
        padding-inline: 8px;
        font-size: .75rem;
    }

    .management-toolbar {
        padding: 9px;
    }

    .management-summary span {
        min-width: 0;
        padding: 7px 5px;
        white-space: normal;
        text-align: center;
    }

    .management-list-card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
        border-radius: 17px;
    }

    .management-list-card .avatar-badge,
    .management-list-card .student-avatar-photo {
        width: 48px;
        height: 48px;
        border-radius: 15px;
    }

    .management-list-card h3 {
        font-size: .94rem;
    }

    .management-list-card p {
        font-size: .72rem;
    }

    .management-list-card .action-row {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
        width: 100%;
    }

    .management-list-card .action-row .icon-btn {
        width: 100%;
        height: 42px;
    }

    .activity-admin-card {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 10px;
        min-height: 0;
        padding: 12px;
        border-radius: 17px;
    }

    .activity-admin-thumb {
        width: 60px;
        height: 60px;
        border-radius: 15px;
    }

    .activity-admin-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .activity-admin-title h3 {
        font-size: .95rem;
    }

    .activity-admin-main > p {
        min-height: 0;
        margin-bottom: 7px;
        font-size: .72rem;
    }

    .activity-admin-actions .icon-btn {
        min-height: 42px;
    }

    .attendance-hero {
        border-radius: 21px;
    }

    .attendance-metrics {
        gap: 7px;
    }

    .attendance-metrics article {
        min-width: 0;
        padding: 10px 4px;
    }

    .attendance-student-card {
        gap: 10px;
        padding: 11px;
        border-radius: 16px;
    }

    .attendance-choice span {
        padding-inline: 7px;
    }

    .attendance-save {
        bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 4px);
        margin-inline: -4px;
        padding: 7px;
    }

    .native-sheet-modal .modal-header {
        padding-inline: 13px;
    }

    .native-sheet-modal .modal-body {
        padding: 12px 13px 104px;
    }

    .native-sheet-modal .modal-footer {
        gap: 8px;
        padding-inline: 13px;
    }

    .audience-selector {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .audience-selector span {
        min-height: 58px;
    }

    .table-responsive {
        margin-inline: -15px;
        padding-inline: 15px;
    }

    .empty-state {
        padding: 18px 12px;
        font-size: .78rem;
    }
}
