:root { font: 16px/1.5 "Times New Roman", Times, serif; color: #182b27; background: #f4f7f5; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #145c4c; text-decoration: none; }
input, select, textarea, button { font-family: inherit; }
header { background: #103a31; color: white; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .7rem; padding-block: .85rem; }
header a { color: white; text-decoration: none; }
.brand { font-weight: 800; font-size: 1.25rem; }
nav { display: flex; flex-wrap: wrap; gap: .25rem; }
nav a { padding: .45rem .7rem; border-radius: .5rem; }
nav a:hover, nav a[aria-current] { background: #2e594e; }
main { padding-block: 2.2rem; }
.login { max-width: 440px; margin-block: clamp(1rem, 8vh, 5rem); }
.login h1 { margin-bottom: 1.25rem; }
.eyebrow { letter-spacing: .13em; font-size: .73rem; color: #286252; font-weight: 800; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.12; margin: .4rem 0 .65rem; }
h2 { font-size: 1.2rem; margin: 0 0 .65rem; }
h3 { font-size: .95rem; }
.intro { color: #425850; margin: 0 0 1.5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.card { background: white; border: 1px solid #dbe6df; border-radius: .85rem; padding: 1.2rem; margin-bottom: 1rem; }
.stat { display: grid; gap: .25rem; }
.stat strong { color: #145c4c; font-size: 2rem; }
label { display: grid; gap: .3rem; font-weight: 650; margin-bottom: .8rem; }
input, select, button, .button { min-height: 2.65rem; font: inherit; border-radius: .45rem; padding: .42rem .65rem; }
input, select { width: 100%; color: inherit; border: 1px solid #97ada3; background: white; }
button, .button { display: inline-block; border: 1px solid transparent; background: #145c4c; color: white; font-weight: 650; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: #0b483b; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #a64b00; outline-offset: 3px; }
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
.filters label { margin: 0; flex: 1 1 155px; }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin-bottom: .85rem; text-align: left; }
th, td { padding: .65rem .75rem; border-bottom: 1px solid #e4ebe7; }
th { background: #eef5f0; }
td input, td select { max-width: 12rem; min-width: 7rem; }
.history { display: flex; flex-wrap: wrap; gap: .5rem; }
.history a { background: #edf5f0; border-radius: .4rem; padding: .3rem .6rem; }
.notice { padding: .65rem .9rem; border-radius: .5rem; background: #def2e4; }
.error { background: #fce6e2; color: #781e18; }
.login-page {
    min-height: 100vh;
    color: #253249;
    background: radial-gradient(ellipse 420px 360px at 1% 8%, #d9f8ec 0%, transparent 85%),
                radial-gradient(ellipse 360px 260px at 100% 100%, #e4f7f1 0%, transparent 85%), #f7f9fb;
}
.login-page .login { max-width: 390px; padding-block: 0; margin-block: clamp(36px, 12vh, 120px) 32px; }
.login-brand { text-align: center; margin-bottom: 27px; }
.login-logo { width: 78px; height: 78px; margin: 0 auto 14px; border-radius: 21px; display: grid; place-items: center; background: linear-gradient(140deg, #00996f, #079c8c); box-shadow: 0 5px 10px #064e3b25; }
.login-logo svg { width: 63px; height: 63px; }
.login-brand h1 { margin: 0 0 5px; font-size: 28px; font-weight: 800; letter-spacing: -.8px; }
.login-brand p { margin: 0; color: #536580; font-size: 14px; line-height: 1.6; }
.login-page .login-card { padding: 28px; border: 1px solid #ffffff; border-radius: 20px; background: #ffffffd9; box-shadow: 0 8px 14px #193c3610; }
.login-card label { font-size: 12px; font-weight: 550; color: #4d607d; gap: 6px; margin-bottom: 14px; }
.login-label { display: flex; align-items: center; gap: 6px; }
.login-card label.login-label { margin-bottom: 7px; }
.login-label svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.login-card input { min-height: 43px; border: 1px solid #d9e2ef; border-radius: 13px; padding: 10px 13px; font-size: 13px; font-weight: 400; box-shadow: 0 1px 2px #24395118; }
.login-card input::placeholder { color: #8297b5; opacity: 1; }
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.login-card .password-toggle { position: absolute; right: 4px; top: 1px; min-height: 40px; width: 40px; padding: 10px; background: transparent; color: #6f86a7; border-radius: 10px; }
.password-toggle[hidden] { display: none; }
.password-toggle svg, .login-submit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.login-hint { font-size: 11px; color: #61738b; margin: 14px 0 12px; }
.login-card .login-submit { width: 100%; display: flex; gap: 8px; align-items: center; justify-content: center; background: linear-gradient(100deg, #009d74, #008166); border-radius: 12px; font-size: 13px; min-height: 43px; box-shadow: 0 5px 10px #00966d25; }
.login-card .login-submit:hover { filter: brightness(.94); }
.login-divider { display: flex; align-items: center; gap: 13px; color: #8297b5; font-size: 11px; margin: 23px 0 18px; }
.login-divider::before, .login-divider::after { content: ''; height: 1px; background: #dce5ef; flex: 1; }
.login-help { display: flex; gap: 10px; align-items: flex-start; }
.login-help details { flex: 1; min-width: 0; }
.login-help summary { cursor: pointer; text-align: center; list-style: none; border: 1px solid #dce5ef; border-radius: 12px; padding: 9px 6px; font-size: 11px; color: #455b79; background: white; }
.login-help summary::-webkit-details-marker { display: none; }
.login-help details[open] summary { border-color: #008166; color: #00765d; }
.login-help p { font-size: 12px; color: #536580; line-height: 1.65; }
.login-card .notice { font-size: 13px; margin-top: 0; }
@media (max-width: 420px) {
    .login-page .login-card { padding: 22px; }
    .login-brand p { font-size: 13px; }
    .login-break { display: none; }
}
.app-page { background: #f7f9fb; color: #22324a; font-size: 14px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 224px; background: white; border-right: 1px solid #e3eaf3; display: flex; flex-direction: column; padding: 18px 12px; z-index: 2; overflow-y: auto; }
.app-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: #22324a; font-weight: 800; font-size: 19px; margin-bottom: 22px; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 38px; background: #009b77; color: white; border-radius: 12px; box-shadow: 0 3px 6px #00836d25; }
.app-brand small { display: block; color: #009b77; font-size: 8px; letter-spacing: .7px; margin-top: 2px; }
.profile { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid #e4ebf3; border-radius: 13px; background: #f8fafc; margin-bottom: 17px; }
.avatar { border-radius: 12px; background: #009b77; color: white; font-weight: 750; padding: 9px; }
.profile small, .sidebar-note small { display: block; color: #627590; font-size: 11px; }
.sidebar nav { display: grid; gap: 6px; }
.sidebar nav a { color: #465c7b; display: flex; align-items: center; gap: 12px; font-size: 12px; padding: 11px 13px; }
.sidebar nav a span { width: 18px; font-size: 18px; line-height: 1; }
.sidebar nav a:hover { background: #ecf8f2; }
.sidebar nav a[aria-current] { background: #009a74; color: white; box-shadow: 0 3px 5px #008b6720; }
.sidebar-logout { margin-top: 24px; }
.sidebar-logout button { font-size: 12px; background: #eef7f3; color: #08765c; width: 100%; }
.sidebar-note { background: #ecfcf4; padding: 12px; border-radius: 12px; margin-top: auto; font-size: 11px; color: #00876c; }
.app-topbar { margin-left: 224px; height: 66px; background: white; border-bottom: 1px solid #e3eaf3; color: #22324a; display: flex; justify-content: space-between; align-items: center; padding: 12px 26px; }
.app-topbar small { display: block; color: #627590; font-size: 11px; }
.top-user { border-radius: 20px; background: #ecfcf4; color: #008766; padding: 7px 14px; font-size: 12px; }
.app-content { max-width: 1240px; margin: 0 auto 0 224px; padding: 28px clamp(18px, 4vw, 64px); }
.app-content > h1 { font-size: 28px; margin-bottom: 20px; }
.welcome { background: radial-gradient(circle at 95% 10%, #49d0ae35, transparent 30%), linear-gradient(110deg, #009970, #108e83, #0b6251); color: white; border-radius: 20px; padding: 27px; display: flex; align-items: center; justify-content: space-between; gap: 20px; box-shadow: 0 7px 12px #234b3d15; margin-bottom: 20px; }
.welcome h1 { font-size: clamp(23px, 3vw, 31px); margin: 12px 0 5px; letter-spacing: -.6px; }
.welcome p { margin: 0; color: #ddfff4; }
.welcome-badge { border: 1px solid #ffffff30; border-radius: 20px; padding: 4px 10px; font-size: 11px; background: #ffffff15; }
.welcome .button { background: #25dfb7; color: #004b3d; font-size: 12px; white-space: nowrap; border-radius: 12px; }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.quick-actions a { display: grid; justify-items: center; gap: 9px; background: white; border: 1px solid #e2eaf2; border-radius: 20px; padding: 17px 8px; font-size: 12px; font-weight: 650; text-decoration: none; box-shadow: 0 2px 3px #163e3310; }
.quick-actions a span { display: grid; place-items: center; border-radius: 14px; background: #009b80; color: white; font-size: 25px; width: 46px; height: 46px; }
.quick-actions a:nth-child(2) span { background: #00b99c; }
.quick-actions a:nth-child(3) span { background: #ff9c00; }
.quick-actions a:nth-child(4) span { background: #008fb8; }
.app-content .card { border-color: #e1e9f2; border-radius: 18px; box-shadow: 0 2px 3px #163e330a; }
.dashboard-stats { grid-template-columns: repeat(3, 1fr); }
.dashboard-stats .stat { background: #edfcf5; border-color: #99e6c4; padding: 16px 19px; }
.dashboard-stats .stat span { text-transform: uppercase; font-size: 10px; color: #00876c; letter-spacing: .6px; }
.dashboard-stats .stat strong { font-size: 26px; font-weight: 600; }
.monitor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel-heading { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.panel-heading h2 { margin: 0; font-size: 16px; }
.count { display: inline-grid; place-items: center; min-width: 29px; height: 29px; border-radius: 10px; font-weight: 700; }
.warning { background: #fff3d6; color: #9b4f00; }
.danger { background: #ffebe6; color: #b83a24; }
.muted { font-size: 12px; color: #63768f; line-height: 1.7; }
.empty-state { border: 1px dashed #cad9e5; border-radius: 13px; background: #f8fafc; padding: 28px 17px; color: #61758f; font-size: 12px; text-align: center; margin-top: 18px; }
.alert-list { max-height: 470px; overflow-y: auto; }
.student-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #edf0f5; padding: 14px 0; }
.student-alert small { display: block; color: #63768f; margin-top: 3px; }
.student-alert a { font-size: 11px; color: #00856b; font-weight: 650; }
.alert-text { display: block; color: #a85a12; font-size: 12px; margin-top: 5px; }
.pending-label { display: block; color: #a85a12; font-size: 11px; margin-top: 4px; }
@media (min-width: 1650px) { .app-content { margin-inline: auto; transform: translateX(112px); } }
@media (max-width: 1000px) { .monitor-grid { grid-template-columns: 1fr; } .welcome { align-items: flex-start; flex-direction: column; } }
@media (max-width: 700px) {
    .sidebar { position: static; width: 100%; padding: 12px 16px; border-bottom: 1px solid #e3eaf3; }
    .app-brand { margin-bottom: 12px; }
    .profile, .sidebar-note { display: none; }
    .sidebar nav { display: flex; overflow-x: auto; flex-wrap: nowrap; }
    .sidebar nav a { white-space: nowrap; padding: 9px; }
    .sidebar-logout { margin-top: 8px; align-self: flex-end; }
    .sidebar-logout button { min-height: 30px; padding: 3px 14px; }
    .app-topbar { margin-left: 0; padding-inline: 16px; }
    .app-content { margin: 0; padding: 20px 16px; }
    .quick-actions { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .dashboard-stats { gap: 8px; }
    .dashboard-stats .stat { padding: 12px; }
}
.journal-editor { max-width: 590px; margin: 0 auto 32px; }
.journal-back { display: inline-block; font-size: 12px; margin-bottom: 10px; text-decoration: none; color: #00876c; }
.journal-editor h1 { font-size: 23px; margin: 0 0 5px; line-height: 1.4; letter-spacing: -.4px; }
.journal-editor > .muted { margin: 0 0 22px; }
.journal-form { padding: 25px; }
.journal-form label { display: block; font-size: 12px; font-weight: 500; color: #334b6b; margin-bottom: 18px; }
.journal-form select, .journal-form input, .journal-form textarea { display: block; margin-top: 6px; border-radius: 13px; border: 1px solid #dce5ef; box-shadow: 0 1px 2px #22324a15; font-size: 13px; background: white; color: #253b59; width: 100%; padding: 10px 13px; }
.journal-form textarea { font-family: inherit; line-height: 1.6; resize: vertical; min-height: 110px; }
.journal-form textarea::placeholder { color: #8297b5; }
.required-mark { color: #d83b5a; margin-left: 4px; }
.journal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 23px; }
.journal-actions .button, .journal-actions button { border-radius: 13px; font-size: 12px; display: inline-flex; align-items: center; }
.journal-actions .secondary { background: white; border-color: #dce5ef; color: #334b6b; }
.journal-context { border-left: 4px solid #00a27b !important; }
.journal-context h2 { margin-top: 8px; }
.journal-material { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 560px; min-width: 140px; }
#journal-history { scroll-margin-top: 20px; }
.settings-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.settings-tabs a { text-decoration: none; background: white; color: #08765c; border: 1px solid #dce7e2; border-radius: 10px; padding: 9px 14px; font-size: 12px; }
.settings-tabs a:hover { background: #ecfcf4; }
.settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
#identitas, #akun, #data-kelas { scroll-margin-top: 20px; }
.profile > span:last-child, .app-brand > span:last-child { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }
.editable-list { list-style: none; padding: 0; margin: 18px 0 0; }
.editable-list > li { padding: 12px 0; border-top: 1px solid #e3eaf3; }
.record-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-top: 7px; }
.record-actions details { min-width: 70px; }
.record-actions summary { cursor: pointer; color: #08765c; font-size: 12px; padding: 5px 9px; border: 1px solid #dce7e2; border-radius: 7px; list-style: none; background: #f3faf6; }
.record-actions summary::-webkit-details-marker { display: none; }
.record-actions .delete-details summary { color: #b83a24; background: #fff5f2; border-color: #f2d8cf; }
.record-form { border: 1px solid #dce7e2; border-radius: 10px; padding: 12px; background: #f9fbfa; margin-top: 8px; max-width: 340px; min-width: min(210px, 100%); }
.record-form label, .record-form button, .record-form p { font-size: 12px; }
.record-form p { white-space: normal; }
.record-form input { max-width: 100%; }
.record-form .delete-confirm { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
.record-form .delete-confirm input { width: 16px; min-width: 16px; min-height: 16px; height: 16px; margin-top: 3px; }
.record-form .danger-button { background: #b83a24; }
.record-form .danger-button:hover { background: #932b19; }
.monitor-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.monitor-heading h1 { font-size: 23px; line-height: 1.4; margin: 5px 0; }
.monitor-heading .muted { margin: 0; }
.detected-badge { color: #a65a00; border: 1px solid #f7d684; border-radius: 20px; background: #fffaf0; padding: 4px 10px; font-size: 11px; }
.monitor-indicators { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.monitor-indicators .card { padding: 16px; display: grid; gap: 5px; }
.monitor-indicators small { color: #7487a4; font-size: 10px; }
.monitor-indicators strong { font-size: 13px; }
.monitor-indicators span { font-size: 10px; color: #647891; }
.monitoring-filters { margin-top: 3px; }
.app-content .monitoring-table { padding: 0; overflow: hidden; }
.monitoring-table .table { margin: 0; }
.monitoring-table table { margin: 0; }
.monitoring-table th { background: #f8fafc; color: #5f7594; font-size: 11px; font-weight: 500; padding: 14px 17px; }
.monitoring-table td { vertical-align: top; padding: 16px 17px; font-size: 12px; }
.issue-line { margin: 0 0 9px; min-width: 180px; }
.issue-line small { display: block; color: #7689a3; padding-left: 13px; margin-top: 3px; }
.issue-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.attendance-dot { background: #e49a1d; }
.grade-dot { background: #de7964; }
.risk-badge { display: inline-block; background: #fff6e6; color: #8f5a00; border-radius: 7px; font-size: 10px; padding: 4px 7px; min-width: 90px; }
.risk-badge.combined { background: #ffede9; color: #b23d27; }
.followup-link { display: block; font-size: 11px; min-width: 160px; margin: 0 0 10px; color: #00856b; }
.monitor-clear { display: grid; justify-items: center; padding: 58px 20px; text-align: center; }
.monitor-clear > span { display: grid; place-items: center; width: 48px; height: 48px; background: #ecfcf5; color: #009b77; border-radius: 50%; margin-bottom: 13px; }
.monitor-clear strong { font-size: 13px; }
.monitor-clear p { color: #8295af; font-size: 11px; margin: 4px 0 0; }
@media (max-width: 1000px) { .monitor-indicators { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.attendance-hero { background: linear-gradient(110deg,#009b77,#0f6554); color: white; padding: 22px; border-radius: 17px; margin-bottom: 16px; box-shadow: 0 5px 10px #0d514222; }
.attendance-hero a { color: #d2fff0; font-size: 11px; text-decoration: none; }
.attendance-hero h2 { font-size: 24px; margin: 10px 0 3px; }
.attendance-hero p { font-size: 12px; margin: 0; }
.attendance-summary h2 { font-size: 13px; font-weight: 500; }
#attendance-percent { font-size: 10px; color: #00805d; background: #edfcf5; border: 1px solid #a4e8ce; border-radius: 5px; padding: 3px 6px; margin-left: 6px; }
#attendance-recorded { color: #6b7c94; font-size: 11px; }
.attendance-summary progress { width: 100%; height: 10px; display: block; margin: 15px 0; border: none; border-radius: 10px; overflow: hidden; background: #e7edf4; accent-color: #00ba9b; }
.attendance-summary progress::-webkit-progress-bar { background: #e7edf4; }
.attendance-summary progress::-webkit-progress-value { background: linear-gradient(90deg,#00ce9d,#00b4cc); border-radius: 10px; }
.attendance-totals { display: grid; grid-template-columns: repeat(5,1fr); gap: 9px; }
.attendance-totals > div { display: grid; justify-items: center; gap: 3px; border: 1px solid #e0e7f0; border-radius: 11px; padding: 12px 5px; background: #f6f8fb; }
.attendance-totals small { font-size: 10px; text-transform: uppercase; }
.attendance-totals [data-status="Hadir"] { background: #edfcf4; border-color: #90e9c5; color: #008265; }
.attendance-totals [data-status="Izin"] { background: #eff9ff; border-color: #a6dffc; color: #127daf; }
.attendance-totals [data-status="Sakit"] { background: #fffae9; border-color: #f4d371; color: #a56d00; }
.attendance-totals [data-status="Alpa"] { background: #fff1f4; border-color: #ffb0c3; color: #d13a60; }
.student-search { font-size: 12px; }
.student-search input { border-radius: 10px; border-color: #d6e1ed; background: white; }
.attendance-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.attendance-student { border: 1px solid #d9e3ee; border-radius: 15px; background: white; padding: 13px; min-width: 0; }
.attendance-student[data-status="Hadir"] { border-color: #34d8a5; background: #f5fcf9; }
.attendance-student[data-status="Izin"] { border-color: #72cfff; background: #f4fbff; }
.attendance-student[data-status="Sakit"] { border-color: #f2c04e; background: #fffcf3; }
.attendance-student[data-status="Alpa"] { border-color: #ff8ba9; background: #fff7f9; }
.attendance-student[hidden] { display: none; }
.student-identity { display: flex; gap: 9px; align-items: center; margin-bottom: 12px; }
.student-avatar { display: grid; place-items: center; background: linear-gradient(135deg,#00b797,#008e91); color: white; border-radius: 10px; min-width: 35px; height: 35px; font-size: 12px; font-weight: 700; }
.student-identity strong { display: block; font-size: 11px; text-transform: uppercase; overflow-wrap: anywhere; }
.student-identity small { color: #7186a0; font-size: 10px; }
.status-picker,.extra-picker { border: 0; margin: 0; padding: 6px; display: grid; gap: 4px; background: #f0f4f8; }
.status-picker { grid-template-columns: repeat(4,minmax(0,1fr)); border-radius: 10px 10px 0 0; }
.extra-picker { grid-template-columns: repeat(3,minmax(0,1fr)); border-radius: 0 0 10px 10px; }
.status-picker label,.extra-picker label { margin: 0; position: relative; font-size: 10px; font-weight: 500; }
.status-picker input,.extra-picker input { position: absolute; opacity: 0; width: 1px; min-height: 0; }
.status-picker span,.extra-picker span { display: grid; place-items: center; text-align: center; min-height: 32px; padding: 3px; border-radius: 7px; color: #64758e; }
.status-picker input:checked + span { color: white; background: #8795a8; }
.status-picker [data-status="Hadir"] input:checked + span { background: #31bd92; }
.status-picker [data-status="Izin"] input:checked + span { background: #30b6eb; }
.status-picker [data-status="Sakit"] input:checked + span { background: #efa923; }
.status-picker [data-status="Alpa"] input:checked + span { background: #f65583; }
.status-picker .unset-status { grid-column: 1/-1; }
.status-picker .unset-status span { min-height: 22px; font-size: 9px; }
.extra-picker input:checked + span { color: #007e64; background: #d6f5e7; }
.extra-picker input:disabled + span { opacity: .4; }
.status-picker input:focus-visible + span,.extra-picker input:focus-visible + span { outline: 2px solid #845000; }
.student-note { margin: 10px 0 0; }
.student-note input { min-height: 30px; font-size: 10px; border-radius: 7px; border-color: #dce5ee; padding: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.attendance-save { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; margin-top: 12px; }
.attendance-save span { color: #697f98; font-size: 11px; }
@media(max-width:1100px) { .attendance-cards { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:500px) { .attendance-cards { grid-template-columns: 1fr; } .attendance-totals { gap: 4px; } .attendance-totals small { font-size: 8px; } .attendance-summary .panel-heading { flex-wrap: wrap; } }
.app-content .attendance-history { padding: 0; overflow: hidden; }
.history-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 20px 18px 0; }
.history-heading h2 { font-size: 16px; margin: 0; }
.history-heading > span { font-size: 11px; color: #008365; background: #edfcf5; border-radius: 15px; padding: 4px 9px; }
.history-description { padding-inline: 18px; }
.attendance-history table { margin: 0; font-size: 12px; }
.attendance-history th { background: #f7f9fc; font-size: 11px; color: #657b97; font-weight: 500; padding: 13px 16px; }
.attendance-history td { padding: 16px; vertical-align: top; }
.attendance-history tr:hover { background: #f6fcf9; }
.attendance-history td small { display: block; color: #7d91ad; font-size: 10px; margin-top: 3px; }
.history-progress { display: inline-block; white-space: nowrap; font-size: 10px; color: #008263; background: #eefcf6; border: 1px solid #a2e9ce; border-radius: 15px; padding: 4px 8px; }
.history-state { display: inline-block; white-space: nowrap; font-size: 10px; color: #96670c; background: #fff8e8; border-radius: 15px; padding: 4px 8px; }
.history-state.complete { background: #eef4fa; color: #46617e; }
.history-open { display: inline-block; white-space: nowrap; padding: 7px 10px; border: 1px solid #dce5ef; border-radius: 10px; font-size: 11px; text-decoration: none; color: #315774; background: white; }
.history-material { margin-top: 7px; font-size: 10px; color: #637d98; max-width: 290px; }
.history-material summary { cursor: pointer; }
.history-material p { overflow-wrap: anywhere; font-size: 12px; }
.assessment-editor { max-width: 700px; }
.assessment-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
@media(max-width:500px) { .assessment-form-grid { grid-template-columns: 1fr; } }
.report-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle { font-size: 12px; min-height: 34px; padding: 6px 12px; color: #14664f; background: #ecf8f1; border: 1px solid #c6e4d5; border-radius: 10px; }
.theme-toggle:hover { background: #d9f0e3; }
.theme-toggle[hidden] { display: none; }
.login-theme { display: flex; justify-content: flex-end; padding: 16px 20px 0; }
html[data-theme="dark"] { color-scheme: dark; background: #111923; color: #e5edf6; }
html[data-theme="dark"] .app-page,
html[data-theme="dark"] .login-page { background: #111923; color: #e5edf6; }
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .app-topbar,
html[data-theme="dark"] .card,
html[data-theme="dark"] .login-page .login-card,
html[data-theme="dark"] .quick-actions a,
html[data-theme="dark"] .attendance-student { background: #1c2938; border-color: #35475b; color: #e5edf6; }
html[data-theme="dark"] .app-brand,
html[data-theme="dark"] .app-topbar,
html[data-theme="dark"] .sidebar nav a,
html[data-theme="dark"] .login-card label,
html[data-theme="dark"] .journal-form label,
html[data-theme="dark"] .student-identity strong { color: #e5edf6; }
html[data-theme="dark"] .profile,
html[data-theme="dark"] .record-form,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .status-picker,
html[data-theme="dark"] .extra-picker,
html[data-theme="dark"] th,
html[data-theme="dark"] .attendance-history th,
html[data-theme="dark"] .monitoring-table th,
html[data-theme="dark"] .login-help summary,
html[data-theme="dark"] .settings-tabs a { background: #233346; border-color: #41546a; color: #dbe7f5; }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .journal-form input,
html[data-theme="dark"] .journal-form select,
html[data-theme="dark"] .journal-form textarea { background: #142132; border-color: #4b6078; color: #edf4ff; }
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #a3b4ca; }
html[data-theme="dark"] .muted,
html[data-theme="dark"] .intro,
html[data-theme="dark"] .login-brand p,
html[data-theme="dark"] .login-hint,
html[data-theme="dark"] .login-help p,
html[data-theme="dark"] .profile small,
html[data-theme="dark"] .app-topbar small,
html[data-theme="dark"] .student-identity small,
html[data-theme="dark"] .attendance-history td small,
html[data-theme="dark"] .issue-line small,
html[data-theme="dark"] .monitor-indicators small,
html[data-theme="dark"] .monitor-indicators span,
html[data-theme="dark"] .attendance-save span,
html[data-theme="dark"] #attendance-recorded { color: #b2c3d8; }
html[data-theme="dark"] a,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .followup-link,
html[data-theme="dark"] .student-alert a { color: #7ce7c5; }
html[data-theme="dark"] .sidebar nav a[aria-current] { background: #008667; color: white; }
html[data-theme="dark"] .sidebar nav a:hover,
html[data-theme="dark"] .attendance-history tr:hover { background: #253e44; }
html[data-theme="dark"] td,
html[data-theme="dark"] .student-alert,
html[data-theme="dark"] .editable-list > li { border-color: #35475b; }
html[data-theme="dark"] .dashboard-stats .stat,
html[data-theme="dark"] .sidebar-note,
html[data-theme="dark"] .notice,
html[data-theme="dark"] .top-user { background: #173e37; color: #a3efd6; border-color: #356b5e; }
html[data-theme="dark"] .dashboard-stats .stat strong,
html[data-theme="dark"] .dashboard-stats .stat span { color: #99eacb; }
html[data-theme="dark"] .notice.error { background: #522d32; color: #ffd5cf; }
html[data-theme="dark"] .theme-toggle { background: #2a3b4e; color: #f7df98; border-color: #4b6078; }
html[data-theme="dark"] .theme-toggle:hover { background: #354c62; }
html[data-theme="dark"] .attendance-student[data-status="Hadir"] { background: #173b35; }
html[data-theme="dark"] .attendance-student[data-status="Izin"] { background: #173447; }
html[data-theme="dark"] .attendance-student[data-status="Sakit"] { background: #3b3524; }
html[data-theme="dark"] .attendance-student[data-status="Alpa"] { background: #422935; }
html[data-theme="dark"] .status-picker span,
html[data-theme="dark"] .extra-picker span { color: #c0d0e2; }
html[data-theme="dark"] .extra-picker input:checked + span { background: #1d654f; color: #e4fff4; }
html[data-theme="dark"] .report-paper { color-scheme: light; }
html[data-theme="dark"] .report-paper,
html[data-theme="dark"] .report-paper td,
html[data-theme="dark"] .report-paper th { color: #000; }
@media(max-width:500px) { .topbar-actions { gap: 6px; } .theme-toggle { font-size: 11px; padding: 5px 8px; } }
.menu-icon { width: 21px; height: 21px; flex-shrink: 0; transition: transform .18s ease; }
.sidebar nav a { transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.sidebar nav a:hover { transform: translateX(3px); }
.sidebar nav a:hover .menu-icon { transform: scale(1.1); }
.sidebar nav a[aria-current] .menu-icon { stroke-width: 2.1; }
.quick-actions a { transition: transform .18s ease, box-shadow .18s ease; }
.quick-actions a:hover { transform: translateY(-3px); box-shadow: 0 7px 15px #0a6c7925; }
.quick-actions .menu-icon { width: 25px; height: 25px; }
html[data-theme="dark"] .app-brand small,
html[data-theme="dark"] .sidebar-note small,
html[data-theme="dark"] .student-alert small,
html[data-theme="dark"] .history-material,
html[data-theme="dark"] .login-divider,
html[data-theme="dark"] .monitor-clear p { color: #b7cadf; }
html[data-theme="dark"] .alert-text,
html[data-theme="dark"] .pending-label { color: #ffcc85; }
html[data-theme="dark"] .required-mark { color: #ff9db3; }
html[data-theme="dark"] .history a,
html[data-theme="dark"] .history-open,
html[data-theme="dark"] .record-actions summary,
html[data-theme="dark"] .journal-actions .secondary { background: #263b4e; color: #d4f8ec; border-color: #4c667c; }
html[data-theme="dark"] .record-actions .delete-details summary { background: #532d38; color: #ffbecb; border-color: #915061; }
html[data-theme="dark"] .history-heading > span,
html[data-theme="dark"] .history-progress,
html[data-theme="dark"] #attendance-percent { background: #163f35; color: #a0efd3; border-color: #478675; }
html[data-theme="dark"] .history-state,
html[data-theme="dark"] .warning,
html[data-theme="dark"] .risk-badge,
html[data-theme="dark"] .detected-badge { background: #493b23; color: #ffdb96; border-color: #8c7141; }
html[data-theme="dark"] .history-state.complete { background: #2a3f56; color: #d2e5ff; }
html[data-theme="dark"] .danger,
html[data-theme="dark"] .risk-badge.combined { background: #502d37; color: #ffc1cc; }
html[data-theme="dark"] .attendance-totals > div { background: #26384b; color: #dfebf9; border-color: #4b6078; }
html[data-theme="dark"] .attendance-totals [data-status="Hadir"] { background: #173f35; color: #96f1ce; border-color: #368d70; }
html[data-theme="dark"] .attendance-totals [data-status="Izin"] { background: #173e55; color: #a4e0ff; border-color: #397ca3; }
html[data-theme="dark"] .attendance-totals [data-status="Sakit"] { background: #443820; color: #ffda8c; border-color: #927136; }
html[data-theme="dark"] .attendance-totals [data-status="Alpa"] { background: #4c2938; color: #ffb9ce; border-color: #a04f6c; }
html[data-theme="dark"] .button,
html[data-theme="dark"] .login-submit,
html[data-theme="dark"] .danger-button { color: white; }
html[data-theme="dark"] .welcome .button { color: #003c30; }
html[data-theme="dark"] .status-picker input:checked + span { color: #fff; }
html[data-theme="dark"] .status-picker [data-status="Hadir"] input:checked + span { background: #166a52; }
html[data-theme="dark"] .status-picker [data-status="Izin"] input:checked + span { background: #166489; }
html[data-theme="dark"] .status-picker [data-status="Sakit"] input:checked + span { background: #775007; }
html[data-theme="dark"] .status-picker [data-status="Alpa"] input:checked + span { background: #a6234a; }
html[data-theme="dark"] .sidebar-logout button { background: #234d42; color: #c2f6e5; }
html[data-theme="dark"] .login-card .password-toggle { color: #bdd3ed; }
html[data-theme="dark"] :focus-visible { outline-color: #ffe098; }
@media(prefers-reduced-motion:reduce) {
    .menu-icon, .sidebar nav a, .quick-actions a { transition: none; }
    .sidebar nav a:hover, .sidebar nav a:hover .menu-icon, .quick-actions a:hover { transform: none; }
}
.attention-list { display: grid; gap: 14px; }
.attention-student { margin: 0; }
.attention-student h2 { font-size: 18px; }
.attention-student small { color: #627590; }
.attention-issue { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid #dce5ef; margin-top: 14px; padding-top: 12px; }
.attention-issue p { margin: 0; font-size: 14px; }
.attention-issue a { font-size: 12px; }
html[data-theme="dark"] .attention-student small { color: #c0d0e2; }
html[data-theme="dark"] .attention-issue { border-color: #41546a; }
.attendance-icon { width: 20px; height: 20px; flex-shrink: 0; transition: transform .18s ease; }
.status-picker label,.extra-picker label { cursor: pointer; }
.status-picker span,.extra-picker span { gap: 4px; padding: 7px 3px; transition: background-color .18s ease, box-shadow .18s ease; border: 1px solid transparent; }
.status-picker .attendance-icon { color: #00845e; }
.status-picker [data-status="Izin"] .attendance-icon { color: #0879bb; }
.status-picker [data-status="Sakit"] .attendance-icon { color: #b47700; }
.status-picker [data-status="Alpa"] .attendance-icon { color: #d02c5d; }
.extra-picker [data-detail="late"] .attendance-icon { color: #bb7500; }
.extra-picker [data-detail="dispensation"] .attendance-icon { color: #7951cc; }
.extra-picker [data-detail="early_leave"] .attendance-icon { color: #00859d; }
.status-picker label:hover .attendance-icon,.extra-picker label:hover .attendance-icon { transform: translateY(-2px) scale(1.1); }
.status-picker label:hover span,.extra-picker label:hover span { box-shadow: 0 2px 6px #26374e22; border-color: #9eb5cd; }
.status-picker input:checked + span { box-shadow: 0 2px 6px #193b4c26; }
.status-picker input:checked + span .attendance-icon { color: white; }
.extra-picker [data-detail="late"] input:checked + span { background: #fff0c6; border-color: #cf940e; color: #704600; }
.extra-picker [data-detail="dispensation"] input:checked + span { background: #eee5ff; border-color: #9b75e0; color: #593799; }
.extra-picker [data-detail="early_leave"] input:checked + span { background: #daf6fc; border-color: #3da5b9; color: #006174; }
html[data-theme="dark"] .status-picker [data-status="Hadir"] .attendance-icon { color: #67e6b5; }
html[data-theme="dark"] .status-picker [data-status="Izin"] .attendance-icon { color: #7bceff; }
html[data-theme="dark"] .status-picker [data-status="Sakit"] .attendance-icon { color: #ffd477; }
html[data-theme="dark"] .status-picker [data-status="Alpa"] .attendance-icon { color: #ff94b4; }
html[data-theme="dark"] .extra-picker [data-detail="late"] .attendance-icon { color: #ffd477; }
html[data-theme="dark"] .extra-picker [data-detail="dispensation"] .attendance-icon { color: #c9acff; }
html[data-theme="dark"] .extra-picker [data-detail="early_leave"] .attendance-icon { color: #7ee5f5; }
html[data-theme="dark"] .status-picker input:checked + span .attendance-icon { color: white; }
html[data-theme="dark"] .extra-picker [data-detail="late"] input:checked + span { background: #59431c; color: #ffe1a0; border-color: #bd923e; }
html[data-theme="dark"] .extra-picker [data-detail="dispensation"] input:checked + span { background: #453260; color: #e2ceff; border-color: #ab85e4; }
html[data-theme="dark"] .extra-picker [data-detail="early_leave"] input:checked + span { background: #194956; color: #acF2ff; border-color: #53adc0; }
@media(prefers-reduced-motion:reduce) { .attendance-icon { transition: none; } .status-picker label:hover .attendance-icon,.extra-picker label:hover .attendance-icon { transform: none; } }
#grade-entry textarea { min-width: 180px; width: 100%; padding: 9px; border: 1px solid #97ada3; border-radius: 8px; font: inherit; }
.grade-status { display: block; min-width: 140px; font-weight: bold; }
.schedule-heading { display:flex; justify-content:space-between; flex-wrap:wrap; align-items:center; gap:16px; margin-bottom:24px; }
.schedule-heading h1 { font-size:30px; margin:6px 0; }
.schedule-heading p { color:var(--muted,#52616a); }
.schedule-days { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; align-items:start; }
.schedule-day > small { display:block; color:var(--muted,#52616a); margin-bottom:18px; }
.schedule-entry { padding:14px; border-radius:13px; border:1px solid var(--edge,#dce5ef); border-left:3px solid var(--accent,#00845c); background:var(--surface-raised,#f2f3ff); margin-top:12px; overflow-wrap:anywhere; }
.schedule-entry strong { color:var(--accent,#00845c); font-size:13px; }
.schedule-entry h3 { font-size:16px; line-height:1.4; margin:10px 0; }
.schedule-entry p { margin:8px 0; }
.schedule-entry small { color:var(--muted,#52616a); font-size:11px; line-height:1.5; }
@media(max-width:1200px) { .schedule-days { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .schedule-days { grid-template-columns:1fr; } }
.schedule-session-link { display:block; margin-top:12px; border:1px solid var(--edge,#c5e7da); background:var(--surface-raised,#ecfdf5); color:var(--accent,#006948); padding:10px 12px; border-radius:10px; font-size:13px; }
.schedule-journal-launcher h1 { font-size:26px; }
