/* Shared, quiet student and administrator controls. */
.password-wrap{position:relative;display:block;width:100%}.password-wrap input{padding-right:54px!important;width:100%;box-sizing:border-box}
.password-wrap .password-eye{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:42px;height:40px;padding:8px;margin:0;background:transparent;color:#25495a;border:0;box-shadow:none;display:grid;place-items:center;min-width:0}
.password-eye:focus-visible{outline:2px solid #087d69;outline-offset:-2px}.password-eye[aria-pressed=true]{background:#e2f3ed;border-radius:8px}
.profile-avatar{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;object-fit:cover;flex-shrink:0;background:#e3f2ee;color:#075747;font-size:22px;font-weight:700;border:1px solid #c6ddd5}
.student-class-title{display:flex;align-items:center;gap:24px}.student-profile{display:flex;flex-direction:column;align-items:center;gap:8px;flex-shrink:0}.student-profile .profile-avatar{width:88px;height:88px;font-size:36px}.student-profile a{font-size:13px}
.student-ui .student-feature{display:block;width:100%;box-sizing:border-box;padding:30px;margin:0 0 28px;border:1px solid #b5d9cc;border-radius:14px;background:#e8f4ef;color:#063f34;overflow-wrap:anywhere;text-decoration:none}
.student-ui .student-feature h2{margin:14px 0;font-size:clamp(26px,4vw,42px);line-height:1.15}.student-ui .student-feature p{margin:0 0 24px}.student-ui .student-feature strong{display:block}.student-ui .student-feature:hover{background:#ddf0e7}
.review-alert-panel{background:#fff6d9;border:1px solid #e7cb73;border-left:5px solid #b78400;border-radius:12px;padding:24px;margin-bottom:24px}.review-alert-panel h2{margin-top:0}.review-alert{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0}.review-alert form{margin:0}
.chat-thread{display:flex;flex-direction:column;gap:16px;max-width:900px}.chat-message{background:#edf1f5;border:1px solid #d8e1ea;border-radius:12px;padding:18px;max-width:85%;align-self:flex-start;overflow-wrap:anywhere}.chat-message.sent{background:#e6f3ed;align-self:flex-end}.chat-message p{white-space:pre-wrap;margin:10px 0}.chat-message small{color:#516271}.chat-message form{margin:8px 0 0}.chat-message .quiet{padding:4px 0}.panel>form{margin-top:18px}.reading>.profile-avatar{width:90px;height:90px}.sidebar .brand img{width:54px;height:54px;border-radius:12px;object-fit:contain}
@media(max-width:600px){.student-class-title{gap:16px;padding:20px}.student-profile .profile-avatar{width:64px;height:64px}.student-class-title h1{font-size:26px}.student-ui .student-feature{padding:22px}.review-alert{align-items:flex-start;flex-direction:column;gap:4px}.chat-message{max-width:100%}.review-alert-panel{padding:18px}}

[hidden]{display:none!important}.operations-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:24px}.operations-summary a{display:flex;flex-direction:column;gap:10px;color:#163f37;text-decoration:none}.operations-summary strong{font-size:24px}.payment-row{padding:12px 0;border-top:1px solid #dbe4e9;display:flex;justify-content:space-between;gap:16px}.fee-record details{margin-top:18px}.calendar-scroll{overflow-x:auto}.attendance-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:650px;gap:5px}.calendar-label{padding:10px;text-align:center}.calendar-day{min-height:95px;border:1px solid #d8e2e8;padding:8px;border-radius:7px;overflow-wrap:anywhere}.calendar-day.today{border:2px solid #147966}.calendar-empty{background:#f7f9fa}.attendance-event{background:#edf1f5;border-radius:5px;padding:5px;margin-top:6px;font-size:12px}.attendance-event small{display:block;font-weight:700;margin-top:4px}.attendance-event.present{background:#dff3e8}.attendance-event.absent{background:#fce4e2}.attendance-event.late{background:#fff1ce}.attendance-event.excused{background:#e7e9fa}.attendance-event a{color:inherit}.attendance-chart{display:grid;gap:20px}.chart-row{display:grid;grid-template-columns:80px minmax(80px,1fr) 85px;gap:12px;align-items:center}.chart-row meter{width:100%;height:26px;accent-color:#147966}.chart-row small{grid-column:1/-1;color:#52656d}.attendance-legend{font-size:13px}.operations-summary .panel{margin:0}@media(max-width:600px){.operations-summary{grid-template-columns:1fr}.payment-row{flex-direction:column}.chart-row{gap:8px;grid-template-columns:70px minmax(40px,1fr) 75px}}

@media(max-width:600px){.attendance-calendar{min-width:0;gap:2px}.calendar-label{padding:8px 0;font-size:11px}.calendar-day{min-height:65px;padding:3px;font-size:11px}.attendance-event{padding:2px;font-size:9px}.attendance-event span{display:none}.attendance-event small{font-size:9px;overflow-wrap:anywhere}.attendance-event a{font-size:0}.attendance-event a::after{content:'Open';font-size:10px}.attendance-agenda p{font-size:13px;overflow-wrap:anywhere}}

/* Fee status is conveyed by text as well as colour. */
.fee-status-hero{border:2px solid;border-radius:16px;padding:28px;margin:0 0 22px;overflow-wrap:anywhere}.fee-status-hero h2{font-size:clamp(24px,3vw,34px);margin:10px 0}.fee-hero-amount{display:block;font-size:clamp(30px,4vw,46px);line-height:1.2;margin:16px 0}.fee-warning{font-weight:750;font-size:17px}.fee-status-hero .eyebrow,.fee-status-hero p,.fee-status-hero h2{color:inherit}.fee-status-hero .button{background:#fff;color:#143c32;border:1px solid currentColor;margin-top:10px}.fee-status-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:28px}.fee-total{border:1px solid;border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:10px}.fee-total strong{font-size:24px;overflow-wrap:anywhere}.fee-arrears{background:#b00020!important;color:#fff!important;border-color:#ef233c!important;box-shadow:0 0 18px 2px #ed163d66}.fee-pending{background:#fff2a8!important;color:#543c00!important;border-color:#e4b300!important;box-shadow:0 0 17px 2px #efc90055}.fee-paid{background:#d9f8e4!important;color:#075d30!important;border-color:#16a45d!important;box-shadow:0 0 17px 2px #16a45d44}.fee-neutral{background:#f3f6f8;color:#405866;border-color:#d6e0e5}.fee-record .eyebrow,.fee-record h2,.fee-record p,.fee-record .muted,.fee-record label,.fee-record summary{color:inherit!important}.fee-record .fee-status-badge{border:1px solid currentColor;border-radius:20px;padding:7px 12px;font-weight:750;white-space:nowrap}.fee-record input{color:#16352d!important;background:#fff!important}.fee-record.fee-arrears button{background:#fff;color:#9a001b}.fee-record .payment-row{border-color:currentColor}.student-ui .fee-status-hero.fee-arrears{animation:fee-red-glow 3s ease-in-out infinite}@keyframes fee-red-glow{0%,100%{box-shadow:0 0 12px 1px #ed163d55}50%{box-shadow:0 0 24px 4px #ed163d88}}@media(prefers-reduced-motion:reduce){.student-ui .fee-status-hero.fee-arrears{animation:none}}@media(max-width:650px){.fee-status-totals{grid-template-columns:1fr;gap:12px}.fee-status-hero{padding:22px}.fee-status-hero .button{white-space:normal}.fee-record .section-heading{align-items:flex-start;flex-direction:column;gap:12px}}

.admin-student-fee>summary{font-size:15px;line-height:1.6;cursor:pointer}.admin-student-fee>summary .muted{font-size:13px;margin-left:8px}.admin-fee-status{display:inline-block;font-size:13px;line-height:1.4;font-weight:700;border-radius:5px;padding:3px 8px;margin-right:8px;vertical-align:middle}.admin-fee-status.status-arrears{color:#b00020;background:#ffe8ec}.admin-fee-status.status-pending{color:#6d5000;background:#fff2b8}.admin-fee-status.status-paid{color:#086534;background:#def5e7}.admin-fee-body{padding-top:20px}.admin-student-fee{box-shadow:none!important;background:#fff!important}.admin-fee-body .fee-status-badge{font-size:13px}.admin-fee-body details{margin-top:16px}

/* Routine fee states stay quiet; only arrears use the prominent warning. */
.student-ui .fee-compact{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;margin:0 0 20px;border:1px solid;border-radius:10px;box-shadow:none;animation:none;font-size:14px;line-height:1.5}.fee-compact>div{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline}.fee-compact strong{font-size:15px}.fee-compact .text-link{color:inherit;white-space:nowrap}.student-ui .fee-compact.fee-pending,.student-ui .fee-record.fee-pending{background:#fff9df!important;border-color:#e7d895!important;box-shadow:none}.student-ui .fee-compact.fee-paid,.student-ui .fee-record.fee-paid{background:#edf8f1!important;border-color:#b6d9c3!important;box-shadow:none}.student-ui .fee-record:not(.fee-arrears){padding:18px}.student-ui .fee-record:not(.fee-arrears) h2{font-size:18px}.student-ui .fee-record:not(.fee-arrears) .fee-status-badge{font-size:12px;padding:4px 9px}@media(max-width:600px){.student-ui .fee-compact{padding:12px 14px;gap:10px}.fee-compact>div{display:flex;flex-direction:column;gap:2px}.fee-compact .text-link{font-size:13px}}

/* Keep even overdue notices at a normal reading size. */
.student-ui .fee-status-hero{padding:16px 18px;border-width:1px;border-radius:10px;margin-bottom:16px}.student-ui .fee-status-hero h2{font-size:18px;line-height:1.35;margin:6px 0}.student-ui .fee-status-hero .eyebrow{font-size:10px}.student-ui .fee-status-hero .fee-hero-amount{font-size:23px;margin:8px 0;line-height:1.25}.student-ui .fee-status-hero p,.student-ui .fee-status-hero .fee-warning{font-size:13px;line-height:1.5;margin:6px 0}.student-ui .fee-status-hero .button{font-size:13px;padding:7px 11px;min-height:0;margin-top:8px}.student-ui .fee-status-totals{display:flex;flex-direction:column;gap:0;margin-bottom:20px;border:1px solid #d6e0e5;border-radius:8px;overflow:hidden}.student-ui .fee-status-totals .fee-total{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;border:0;border-radius:0;padding:9px 12px;box-shadow:none;font-size:13px}.student-ui .fee-status-totals .fee-total strong{font-size:16px;white-space:nowrap}@media(max-width:600px){.student-ui .fee-status-hero{padding:14px}.student-ui .fee-status-hero h2{font-size:17px}}
.payment-row{flex-wrap:wrap;align-items:center}.payment-row>span{flex:1 1 auto;overflow-wrap:anywhere}.payment-row>a{max-width:100%;overflow-wrap:anywhere;font-size:13px}.attendance-trend>summary{font-weight:700;cursor:pointer}.attendance-trend[open]>summary{margin-bottom:16px}
.fee-record .payment-row>a{color:inherit}
