/* Scoped to the new student attendance page. */
.student-view[data-view="attendance"]:has(.sat) > .module-head {display:none}
.sat {--sat-ink:#202b45;--sat-muted:#6c778e;--sat-line:#e4eaf2;--sat-primary:#4f5bd5;min-width:0;color:var(--sat-ink);font-size:14px;line-height:1.65;display:grid;gap:24px}
.sat * {box-sizing:border-box}
.sat h1,.sat h2,.sat h3,.sat p {margin:0}
.sat svg {width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sat button {font:inherit;min-height:44px;border:1px solid var(--sat-line);border-radius:10px;padding:9px 14px;background:white;color:var(--sat-primary);cursor:pointer}
.sat button:hover:enabled {background:#f1f3ff;border-color:#c7cdf5}
.sat button:disabled {opacity:.45;cursor:default}
.sat button:focus-visible,.sat summary:focus-visible {outline:3px solid #99a3f4;outline-offset:3px}
.sat-heading,.sat-section-head {display:flex;align-items:center;justify-content:space-between;gap:16px}
.sat-heading h1 {font-size:28px;line-height:1.4;letter-spacing:.5px}
.sat-heading p {color:var(--sat-muted);margin-top:4px}
.sat-refresh {display:flex;align-items:center;gap:8px;flex-shrink:0}
.sat-overview {display:grid;grid-template-columns:1.1fr 1fr;gap:18px}
.sat-hero {position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:15px;background:linear-gradient(115deg,#e7f5f0,#f4fbf7);border:1px solid #d5e9e0;border-radius:20px;padding:26px 30px;color:#226e5b;min-width:0}
.sat-eyebrow {font-weight:600;font-size:16px}
.sat-rate {display:block;font-size:54px;font-weight:750;line-height:1.25;margin:4px 0;font-variant-numeric:tabular-nums;letter-spacing:-1px}
.sat-rate small {font-size:25px;margin-left:3px}
.sat-hero p {font-size:13px;color:#5a7c70}
.sat-state {display:inline-flex;align-items:center;gap:5px;margin-top:14px;padding:3px 10px;border-radius:20px;background:#d8efe4;color:#23765d;font-size:12px}
.sat-state svg {width:15px;height:15px}
.sat-state-neutral {background:#e4ecea;color:#506c64}
.sat-ring {display:grid;place-items:center;width:104px;height:104px;border-radius:50%;background:conic-gradient(#39967e var(--sat-progress),#d5e7e0 0);flex-shrink:0;transform:rotate(-10deg)}
.sat-ring > span {display:grid;place-items:center;background:#edf8f2;width:88px;height:88px;border-radius:50%;transform:rotate(10deg)}
.sat-ring svg {width:41px;height:41px;stroke-width:1.3}
.sat-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.sat-metrics article {min-width:0;border:1px solid var(--sat-line);border-radius:17px;background:white;padding:22px 16px;display:flex;flex-direction:column;justify-content:center;box-shadow:0 3px 12px #24375903}
.sat-metrics article:nth-child(2) {background:#f7f5ff;border-color:#e8e4f5}
.sat-metrics article:nth-child(3) {background:#f1f8fc;border-color:#e1edf4}
.sat-metrics article > span {display:flex;gap:6px;align-items:center;color:var(--sat-muted);font-size:13px}
.sat-metrics article svg {width:17px;height:17px;color:#727bb0}
.sat-metrics strong {font-size:30px;line-height:1.5;color:#27385a;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.sat-metrics small {color:var(--sat-muted);font-size:11px}
.sat-section {min-width:0;background:white;border:1px solid var(--sat-line);border-radius:18px;padding:22px;box-shadow:0 4px 18px #24375903;scroll-margin-top:20px}
.sat-section-head {margin-bottom:17px}
.sat-section-head h2 {font-size:18px;font-weight:700}
.sat-section-head > span,.sat-section-head p {font-size:12px;color:var(--sat-muted)}
.sat-courses {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.sat-course {min-width:0;border:1px solid var(--sat-line);border-radius:14px;padding:17px;background:#fff}
.sat-course-top {display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:start}
.sat-course-icon,.sat-record-icon {display:grid;place-items:center;background:#eff2ff;border-radius:11px;color:var(--sat-primary);width:38px;height:38px}
.sat h3 {font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.sat-course-top p {font-size:12px;color:var(--sat-muted);margin-top:3px}
.sat-badge {grid-column:2;justify-self:start;font-size:11px;border-radius:20px;background:#e9f5ee;color:#278265;padding:2px 9px}
.sat-badge-neutral {background:#f4f1fc;color:#796493}
.sat-course-bottom {display:flex;justify-content:space-between;flex-wrap:wrap;gap:7px 12px;border-top:1px solid #eff2f7;padding-top:12px;margin-top:13px;color:var(--sat-muted);font-size:12px}
.sat-course-bottom strong {color:var(--sat-ink);font-size:15px;margin:0 3px}
.sat-expand {display:none}
.sat-records {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sat-record {display:flex;gap:12px;border:1px solid var(--sat-line);border-radius:14px;padding:16px;min-width:0}
.sat-record-icon {background:#f0f7f4;color:#4d8d77;flex-shrink:0}
.sat-record-body {flex:1;min-width:0}
.sat-record-top {display:flex;align-items:start;justify-content:space-between;gap:10px}
.sat-record-top h3 {flex:1;min-width:0}
.sat-record-body p {font-size:12px;color:var(--sat-muted);margin-top:4px;overflow-wrap:anywhere}
.sat-status {flex-shrink:0;font-size:11px;padding:2px 10px;border-radius:20px;background:#edf1f7;color:#606f85}
.sat-status-normal {background:#e6f4ed;color:#238166}
.sat-status-absent {background:#fdeced;color:#b14c58}
.sat-status-late {background:#fff3df;color:#986d2e}
.sat-status-sick_leave,.sat-status-personal_leave {background:#f1edfb;color:#79619b}
.sat-record-foot {display:flex;align-items:start;justify-content:space-between;gap:12px;border-top:1px solid #f0f2f7;padding-top:9px;margin-top:10px;font-size:12px;color:var(--sat-muted)}
.sat-record-foot > span:first-child {min-width:0;overflow-wrap:anywhere}
.sat-record-foot > span:last-child {flex-shrink:0}
.sat-record-foot strong {color:#24836a;font-size:14px}
.sat .sat-negative {color:#b64c5d!important}
.sat .sat-warning {color:#a16d2e}
.sat .sat-adjustment {color:#8762a1}
.sat-pages {display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:17px;font-size:12px;color:var(--sat-muted)}
.sat-pages > div {display:flex;gap:8px;flex-shrink:0}
.sat-pages button {font-size:12px;padding:8px 12px}
.sat-ledger {min-width:0;border:1px solid var(--sat-line);border-radius:16px;background:white;scroll-margin-top:20px}
.sat-ledger > summary {display:flex;justify-content:space-between;align-items:center;min-height:62px;gap:12px;padding:16px 22px;cursor:pointer;list-style:none;font-weight:600}
.sat-ledger > summary::-webkit-details-marker {display:none}
.sat-ledger > summary > span {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sat-ledger > summary svg {color:var(--sat-primary)}
.sat-ledger > summary > svg {transition:transform .15s}
.sat-ledger[open] > summary > svg {transform:rotate(90deg)}
.sat-ledger small {font-size:12px;font-weight:400;color:var(--sat-muted)}
.sat-ledger-content {border-top:1px solid var(--sat-line);padding:18px 22px}
.sat-note {font-size:12px;color:var(--sat-muted);line-height:1.8}
.sat-ledger-row {display:flex;justify-content:space-between;gap:16px;padding:15px 0;border-bottom:1px solid #edf0f5}
.sat-ledger-row > div {min-width:0}
.sat-ledger-row p {font-size:12px;color:var(--sat-muted);overflow-wrap:anywhere;margin-top:3px}
.sat-ledger-row > strong {flex-shrink:0;color:#24836a}
.sat-end-note {text-align:center}
.sat-empty {padding:28px 12px;text-align:center;color:var(--sat-muted);grid-column:1/-1}
.sat-error {color:#b04759;padding:12px 0;overflow-wrap:anywhere}
@media(max-width:1250px) {.sat-overview{grid-template-columns:1fr}.sat-courses{grid-template-columns:repeat(2,minmax(0,1fr))}.sat-metrics article{padding:16px 20px}.sat-metrics strong{font-size:28px}}
@media(max-width:700px) {
 body:has(.student-view[data-view="attendance"].active .sat) .student-topbar {padding:10px 14px;min-height:62px;flex-wrap:nowrap;gap:10px}
 body:has(.student-view[data-view="attendance"].active .sat) .student-topbar > div:not(.topbar-actions) {flex:1;min-width:0}
 body:has(.student-view[data-view="attendance"].active .sat) [data-page-title] {font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body:has(.student-view[data-view="attendance"].active .sat) [data-page-subtitle],body:has(.student-view[data-view="attendance"].active .sat) .topbar-actions .search,body:has(.student-view[data-view="attendance"].active .sat) .topbar-actions .ghost-button {display:none}
 body:has(.student-view[data-view="attendance"].active .sat) .topbar-actions {flex:0 0 auto;width:auto;margin-left:auto}
 body:has(.student-view[data-view="attendance"].active .sat) .student-content {padding:18px 14px 28px}
 .sat{gap:18px;font-size:13px}.sat-heading{gap:10px}.sat-heading h1{font-size:24px}.sat-heading p{font-size:12px}.sat-refresh{padding:9px 11px!important}.sat-refresh span{font-size:12px}
 .sat-overview{gap:12px}.sat-hero{padding:22px;gap:12px;border-radius:18px}.sat-rate{font-size:52px}.sat-eyebrow{font-size:14px}.sat-ring{width:88px;height:88px}.sat-ring>span{width:74px;height:74px}.sat-ring svg{width:33px;height:33px}
 .sat-metrics{gap:8px}.sat-metrics article{padding:13px 10px;border-radius:13px;justify-content:start}.sat-metrics article>span{gap:4px;font-size:11px}.sat-metrics article svg{width:14px;height:14px}.sat-metrics strong{font-size:26px;margin:3px 0}.sat-metrics small{font-size:10px}
 .sat-section{padding:16px;border-radius:16px}.sat-section-head{gap:8px;margin-bottom:13px}.sat-section-head h2{font-size:17px}.sat-section-head>span{font-size:11px;max-width:130px;text-align:right}
 .sat-courses,.sat-records{grid-template-columns:1fr;gap:10px}.sat-course{padding:14px}.sat-course-top{grid-template-columns:34px minmax(0,1fr) auto;gap:9px}.sat-course-icon{width:34px;height:36px}.sat-badge{grid-column:auto;white-space:nowrap;font-size:10px;padding:2px 7px;max-width:100%}.sat-course-top p{font-size:11px}.sat h3{font-size:13px}.sat-course-bottom{margin-top:12px;padding-top:10px}
 .sat-courses:not(.sat-expanded) .sat-extra-course{display:none}.sat-expand{display:flex;justify-content:center;align-items:center;gap:6px;width:100%;margin-top:10px;border-color:transparent!important;background:#f7f8fc!important}
 .sat-record{padding:13px;gap:10px}.sat-record-icon{width:32px;height:34px}.sat-record-body p{font-size:11px}.sat-record-foot{font-size:11px}.sat-record-foot strong{font-size:13px}
 .sat-pages{flex-wrap:wrap;font-size:11px}.sat-pages button{padding:8px 10px}.sat-ledger>summary{padding:14px 16px;font-size:13px}.sat-ledger-content{padding:14px 16px}.sat-note{font-size:11px}
}
@media(prefers-reduced-motion:reduce) {.sat *{transition:none!important;scroll-behavior:auto!important}}
