/* School additions use the existing ADORA HR palette, components and layout. */
.school-actions {display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin:14px 0}
.school-actions .btn {white-space:normal}
.school-form {display:grid;gap:16px}
.school-dialog [data-policy-inputs]{border:0!important;padding:0!important;display:grid;gap:18px}.school-policy-links{gap:12px 24px}.school-policy-document+ .school-policy-document{margin-top:20px}
.school-form .field {margin:0}
.school-form label {display:block;font-weight:600;margin-bottom:7px;font-size:.88rem}
.school-form input,.school-form select,.school-form textarea,.school-filter select,.school-filter input {width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:9px;background:var(--white);color:var(--ink);font:inherit;min-height:44px}
.school-form textarea {min-height:100px;resize:vertical}
.school-form input[type=checkbox] {width:20px;min-height:20px;vertical-align:middle;margin-right:8px}
.school-form input[type=file] {max-width:100%;font-size:.85rem}
.school-form small {display:block;font-weight:400;color:var(--muted);line-height:1.6;margin-top:5px}
.school-cols {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.lesson-format-banner{display:flex;align-items:center;gap:14px;padding:16px 20px;border:1px solid #e7d5ac;border-radius:12px;background:#fcf6e8;margin:20px 0;line-height:1.6}.lesson-format-banner strong{background:#132645;color:#fff;padding:7px 12px;border-radius:8px;flex-shrink:0}.lesson-format-banner span{font-size:.9rem}.rpa-metadata{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 26px;padding:22px;border:1px solid var(--line);border-radius:12px;background:#f7f8fa;margin:20px 0}.rpa-metadata>div{min-width:0}.rpa-metadata>div:last-child{grid-column:1/-1}.rpa-metadata dt{font-size:.82rem;color:var(--muted);margin-bottom:6px}.rpa-metadata dd{margin:0;line-height:1.6;font-weight:600;overflow-wrap:anywhere}.rpa-structured-form{grid-template-columns:repeat(2,minmax(0,1fr))}.rpa-structured-form>.lesson-field{min-width:0}.rpa-structured-form>.lesson-field:nth-child(n+5){grid-column:1/-1}.rpa-structured-form .field{margin:0}.rpa-structured-form small{display:block;line-height:1.6;margin-top:8px;color:var(--muted)}.lesson-section>.lesson-numbered{padding-left:42px;margin:0}.lesson-numbered li+li{margin-top:8px}@media(max-width:700px){.lesson-format-banner{align-items:flex-start;padding:14px;gap:10px}.rpa-metadata,.rpa-structured-form{grid-template-columns:1fr}.rpa-metadata{padding:18px;gap:16px}.rpa-structured-form>.lesson-field:nth-child(n+5){grid-column:auto}.lesson-section>.lesson-numbered{padding-left:36px}}
.school-filter {display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}
.school-filter label {flex:1;min-width:170px;font-size:.8rem;color:var(--muted)}
.school-filter label>select,.school-filter label>input {margin-top:5px}
.school-banner {padding:14px 17px;border-left:4px solid var(--gold);background:var(--gold-soft);border-radius:8px;line-height:1.6;margin:14px 0;overflow-wrap:anywhere}
.school-success {border-color:var(--success);background:#edf7f0}
.school-tag {display:inline-block;padding:5px 9px;border-radius:20px;background:var(--paper);font-size:.77rem;line-height:1.4}
.school-muted {color:var(--muted);font-size:.86rem;line-height:1.6}
.school-terms {max-height:240px;overflow:auto;white-space:pre-wrap;border:1px solid var(--line);padding:16px;border-radius:10px;line-height:1.7;background:var(--paper)}
.school-table {overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:12px;margin:16px 0}
.school-table table {width:100%;border-collapse:collapse;min-width:550px}
.school-table th,.school-table td {text-align:left;padding:13px;vertical-align:top;border-bottom:1px solid var(--line);font-size:.86rem;overflow-wrap:anywhere}
.school-table th {background:var(--paper);font-size:.73rem;text-transform:uppercase;letter-spacing:.045em;color:var(--muted)}
.school-table tr:last-child td {border-bottom:0}
.school-table td:last-child {white-space:normal}
.school-cards {display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:17px;margin:18px 0}
.school-cards .card {padding:22px;min-width:0}
.school-cards h3 {margin-top:8px}
.school-section {margin-bottom:22px}
.school-section>.card {padding:25px;min-width:0}
.school-section h3 {margin-top:0}
.school-modal {background:var(--white);border-radius:20px;width:min(780px,calc(100vw - 28px));max-height:92dvh;overflow:auto;padding:28px;box-shadow:var(--shadow)}
.school-modal .modal-header {display:flex;align-items:start;justify-content:space-between;gap:15px;margin-bottom:20px}
.school-modal h2 {margin:0;font-family:var(--serif)}
.school-modal .form-error {margin:10px 0}
.school-modal pre {white-space:pre-wrap;overflow-wrap:anywhere}
.school-modal .school-actions {justify-content:flex-end}
.school-empty {padding:36px 18px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:12px;line-height:1.6}
.school-pay-qr {max-width:220px;width:100%;height:auto;background:white;padding:12px;border:1px solid var(--line);border-radius:12px}
.school-number {font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.school-summary strong {display:block;font-size:1.6rem;margin-top:8px}
.school-nav-group {font-size:.7rem;text-transform:uppercase;letter-spacing:.12em;color:#b4bfd3;padding:20px 16px 6px}
.school-product-price {font-family:var(--serif);font-size:1.8rem;margin:12px 0}
.school-auth-links {display:grid;gap:12px;margin-top:16px}.school-auth-links>.btn{width:100%}
.school-auth-links a {color:var(--gold);text-align:center;line-height:1.6;padding:8px}
.school-progress {font-size:.8rem;color:var(--muted)}
@media(max-width:700px){.school-cols{grid-template-columns:1fr}.school-modal{padding:20px;max-height:95dvh}.school-section>.card{padding:18px}.school-filter label{min-width:120px}.school-actions .btn{flex:1}.school-cards{grid-template-columns:1fr}.school-table table{min-width:480px}.school-modal .school-table{margin-left:0;margin-right:0}}

.topbar>div:first-child{min-width:0}.topbar h1{overflow-wrap:anywhere}.nav a{text-decoration:none}.top-actions select,#language{border:1px solid var(--line);border-radius:9px;background:var(--white);padding:9px;color:var(--ink);font:inherit;max-width:170px}
@media(min-width:901px){[data-do=menu]{display:none}}
@media(max-width:700px){.topbar{flex-direction:column;align-items:stretch;gap:12px}.topbar h1{font-size:1.6rem}.top-actions{justify-content:flex-end;flex-wrap:wrap}.topbar>div:first-child{width:100%}.school-filter{display:grid;grid-template-columns:1fr}.school-filter label{min-width:0}.school-actions{align-items:stretch}}

.school-modal{min-width:0;overflow-wrap:anywhere}.school-modal .modal-header h2{flex:1;min-width:0;overflow-wrap:anywhere}.school-modal .modal-header button{flex-shrink:0}.school-modal .summary-strip{min-width:0}.school-modal .summary-strip>div{min-width:0}.school-modal .school-form,.school-modal fieldset{min-width:0}.school-modal .btn{overflow-wrap:anywhere}
@media(max-width:700px){.school-modal .school-actions{display:grid;grid-template-columns:1fr}.school-modal .school-actions>.btn{width:100%}.school-modal .school-table table{min-width:0}.school-modal .modal-header h2{font-size:1.3rem}.school-modal .school-table th,.school-modal .school-table td{padding:10px}}

[hidden]{display:none!important}.school-handoff-qr{display:block;max-width:100%;width:420px;margin:12px auto}.school-modal video{width:100%;max-height:380px;background:#081735;border-radius:12px}.school-steps{display:flex;flex-wrap:wrap;gap:10px 28px;color:var(--text-muted);padding-left:25px}.school-form fieldset{border:1px solid var(--line);border-radius:12px;padding:16px;min-width:0}.school-form legend{font-weight:700;padding:0 6px}.school-family-detail{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit}.school-payment-extra{border-top:1px solid var(--line);margin-top:20px;padding-top:16px}.school-modal details{margin:12px 0}.school-modal select,.school-modal input,.school-modal textarea{max-width:100%}.school-table small{overflow-wrap:anywhere}.school-payment-extra .btn{margin:4px}

/* School 0.3 reuses HR nav-button, nav-icon, card, module-card and grid rules. */
.school-parent-card{width:min(480px,100%)}.school-parent-card .language-control select{background:#151515;color:inherit;border-color:#555;font:inherit}.school-parent-card .field input{font:inherit}.school-parent-card .btn{width:100%}
.school-choice{display:flex!important;gap:10px;align-items:flex-start;font-weight:400!important;line-height:1.5;margin:10px 0}.school-choice input[type=checkbox],.school-form .check-row input{flex:0 0 18px;width:18px;min-height:18px;margin:3px 0 0}.school-choice small{display:block;color:var(--muted)}.school-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.school-check-grid .check-row{display:flex;gap:10px;align-items:flex-start}.school-form fieldset{border:1px solid var(--line)}.school-form .form-error{color:#8c2525;background:#fff0ed}.school-steps{color:var(--muted)}
.school-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:16px}.school-student-filter{align-items:flex-end}.school-student-filter label{min-width:140px}.school-guardian-card{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}.school-guardian-card>div{min-width:0}.school-guardian-card p{margin:6px 0;overflow-wrap:anywhere}.school-guardian-card small{color:var(--muted);line-height:1.7}.school-guardians{margin:22px 0}.school-guardians>.btn{margin-top:12px}.school-modal .detail-grid>div{min-width:0}.school-form [data-option] label{display:block}.school-form [data-option] input{margin-top:6px}.school-form [data-option]{margin-bottom:14px}
@media(max-width:700px){.school-check-grid{grid-template-columns:1fr}.school-guardian-card{flex-direction:column}.school-guardian-card>.btn{width:100%}.school-student-filter .btn{width:100%}.school-tabs>.btn{flex:1}.school-parent-card h1{font-size:1.85rem}}

.school-parent-card #language{background:#151515;color:#fff;border-color:#555;min-height:36px;padding:7px 10px}

@media(max-width:700px){
 .school-student-table{border:0;overflow:visible;background:transparent}
 .school-student-table table,.school-student-table tbody,.school-student-table tr,.school-student-table td{display:block;width:100%;min-width:0;max-width:100%}
 .school-student-table thead{display:none}
 .school-student-table tbody{display:grid;gap:12px}
 .school-student-table tr{padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--white)}
 .school-student-table td{padding:0 0 12px;border:0;white-space:normal;overflow-wrap:anywhere}
 .school-student-table td::before{content:attr(data-label);display:block;margin-bottom:4px;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);font-weight:700}
 .school-student-table td:last-child{padding:0}.school-student-table td:last-child::before{display:none}
 .school-student-table .btn{width:100%;white-space:normal;overflow-wrap:normal}.school-student-table .school-tag{white-space:nowrap}
}

.school-dialog .check-row{display:flex;align-items:flex-start;gap:8px;line-height:1.5}.school-dialog .check-row input[type=checkbox]{flex:0 0 auto;margin-top:3px}

.school-voucher-code-label{margin-top:10px;color:var(--muted);font-size:.75rem}.school-voucher-code{display:inline-block;margin:3px 0 5px;padding:5px 8px;border:1px solid var(--line);border-radius:6px;background:var(--paper);font-family:monospace;font-weight:700;letter-spacing:.03em;user-select:all;overflow-wrap:anywhere}.school-voucher-discount{font-weight:600;line-height:1.6}.school-voucher-actions{display:flex;gap:8px;flex-wrap:wrap}.school-voucher-actions .btn{overflow-wrap:normal}
@media(max-width:700px){.school-voucher-list{border:0;overflow:visible}.school-voucher-list table,.school-voucher-list tbody,.school-voucher-list tr,.school-voucher-list td{display:block;width:100%;min-width:0;max-width:100%}.school-voucher-list thead{display:none}.school-voucher-list tbody{display:grid;gap:12px}.school-voucher-list tr{padding:14px;border:1px solid var(--line);border-radius:12px}.school-modal .school-voucher-list td{padding:0 0 12px;border:0}.school-voucher-list td::before{content:attr(data-label);display:block;margin-bottom:5px;font-size:.73rem;text-transform:uppercase;color:var(--muted);font-weight:700}.school-voucher-list td:last-child{padding:0}.school-voucher-list td:last-child::before{display:none}.school-voucher-actions .btn{flex:1;white-space:normal}}

/* 0.4: a reading page and one complete editor, using ADORA HR tokens. */
.school-profile-page{max-width:1100px;margin:0 auto;min-width:0}.profile-topline{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.profile-hero{display:flex;gap:22px;align-items:center;padding:32px;background:linear-gradient(125deg,#102341,#233b59);border:1px solid #304766;border-radius:22px;color:#fff;margin-bottom:26px}.profile-hero>div{min-width:0}.profile-hero .eyebrow{color:#dec58d}.profile-hero h2{font-size:clamp(1.7rem,3vw,2.45rem);line-height:1.2;margin:9px 0 16px;overflow-wrap:anywhere;color:#fff}.profile-avatar{display:grid;place-items:center;width:78px;height:78px;flex:0 0 78px;background:#ffffff12;border:1px solid #b99a57;border-radius:24px;color:#ead8ae;font-size:1.6rem;font-weight:700}.profile-meta{display:flex;gap:10px 18px;align-items:center;flex-wrap:wrap;font-size:.9rem;color:#e0e6ed}.profile-meta .school-tag{background:#f7edda;color:#4c391a;font-weight:600}.profile-section{padding:30px!important;margin-bottom:24px;min-width:0}.profile-section-title{display:flex;gap:12px;align-items:center;margin-bottom:25px}.profile-section-title>span{color:#92713b;font-size:.75rem;border:1px solid #e7d9bf;border-radius:9px;padding:7px 9px;background:#fbf7ee}.profile-section-title h3{margin:0;font-size:1.15rem}.profile-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 30px;margin:0}.profile-values>div{min-width:0}.profile-values dt{font-size:.8rem;color:var(--muted);margin-bottom:7px}.profile-values dd{font-size:1rem;line-height:1.6;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.profile-parents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.profile-parent-card{padding:24px;background:#faf8f3;border:1px solid var(--line);border-radius:16px;min-width:0}.profile-parent-card h4{font-size:1.15rem;line-height:1.5;margin:12px 0 22px;overflow-wrap:anywhere}.profile-parent-card .profile-values{grid-template-columns:1fr;gap:17px}.profile-parent-card .eyebrow{color:#7e6337}.profile-custody-read{padding:20px 22px;margin-top:22px;background:#f3f6fa;border-radius:12px;font-size:.9rem;line-height:1.6}.profile-custody-read p{margin:8px 0 0}.profile-custody{margin-top:25px;padding-top:24px;border-top:1px solid var(--line)}.profile-care-note{padding:18px 20px;border-left:3px solid #b79752;background:#fcfaf5;border-radius:5px;margin-top:24px;line-height:1.7}.profile-care-note p{margin:8px 0 0}.profile-section>section{margin-top:28px;border-top:1px solid var(--line);padding-top:24px}.profile-reference{margin-top:26px;padding-top:18px;border-top:1px solid var(--line);color:var(--muted);font-size:.8rem;overflow-wrap:anywhere}.profile-reference summary,.profile-history summary{cursor:pointer;line-height:1.7}.profile-history{padding:22px 26px;border:1px solid var(--line);border-radius:16px;background:#f7f4ed;margin-bottom:24px}.profile-history[open]>summary{margin-bottom:22px}.profile-history .profile-values{margin-bottom:22px}.profile-accounts{display:grid;gap:0}.profile-accounts>article{padding:22px 0;border-bottom:1px solid var(--line)}.profile-accounts>article:first-child{padding-top:0}.profile-accounts>article:last-child{border:0;padding-bottom:0}.profile-account-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.profile-account-heading>div{min-width:0}.profile-account-heading h4{margin:8px 0 0;overflow-wrap:anywhere;font-size:1.04rem}.profile-account-heading .school-tag{flex:0 0 auto}.account-active{background:#eaf4ec;color:#26603b}.account-disabled{background:#f1eeee;color:#825150}.account-eligible{background:#f9efd8;color:#785a20}.profile-accounts .btn{font-size:.84rem}.profile-footer{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;padding:20px;background:var(--white);border:1px solid var(--line);border-radius:16px;margin:12px 0 30px;box-shadow:0 4px 18px #12233c08}.profile-footer .btn{min-height:46px}.profile-footer .btn-primary{padding-inline:28px}.school-profile-page .school-form .profile-section{margin-bottom:0;display:grid;gap:20px}.school-profile-page .school-form{gap:24px}.school-profile-page .school-form .profile-section-title{margin:0}.school-profile-page .school-form label{font-size:.9rem}.school-profile-page .school-form input,.school-profile-page .school-form select,.school-profile-page .school-form textarea{font-size:1rem}.profile-family-form{display:flex;flex-direction:column;gap:18px;background:#fcfaf6;padding:22px!important}.profile-family-form>.field{margin:0}.profile-family-form .school-cols{grid-template-columns:1fr}.profile-family-form [data-replacement]>.btn{font-size:.78rem;background:transparent;padding:8px 10px;min-height:38px}.profile-field-error{font-size:.86rem;color:#9b3030;line-height:1.5;margin:8px 0 0}.school-form [aria-invalid=true]{border-color:#af4848;background:#fffafa}.school-profile-page .form-error{padding:16px;border-radius:12px}.school-profile-page .btn{word-break:normal;overflow-wrap:normal}.school-profile-page p{overflow-wrap:anywhere}
@media(max-width:800px){.profile-section{padding:22px!important}.profile-parents{gap:16px}.profile-parent-card{padding:20px}.profile-avatar{display:none}.profile-hero{padding:25px}}
@media(max-width:600px){.profile-topline{margin-bottom:16px}.profile-topline>span{display:none}.profile-hero{padding:24px 20px;border-radius:18px;margin-bottom:20px}.profile-hero h2{font-size:1.8rem}.profile-parents,.profile-values{grid-template-columns:1fr}.profile-section{padding:20px!important;margin-bottom:20px}.profile-section-title{gap:10px;margin-bottom:20px}.profile-section-title h3{font-size:1.05rem;line-height:1.5}.profile-parent-card{padding:20px}.profile-account-heading{align-items:flex-start;flex-direction:column;gap:12px}.profile-accounts .school-actions{display:grid;grid-template-columns:1fr;gap:10px}.profile-footer{display:grid;grid-template-columns:1fr;padding:16px;gap:10px}.profile-footer .btn-primary{grid-row:1}.profile-family-form{padding:18px!important}.profile-history{padding:20px}.profile-meta{font-size:.86rem}.profile-section .school-cols{grid-template-columns:1fr}.profile-section .school-table table{min-width:0}}



/* 0.11.0: child access and assessment destinations */
.bulk-branch,.child-access-notice,.fee-access-panel{border:1px solid #171717;border-radius:12px;padding:16px;margin:14px 0;background:#fffefa}.bulk-branch legend{padding:0 7px;font-weight:700}.bulk-class-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}.child-access-notice{border-left:5px solid #da9c15}.child-access-notice p{margin:8px 0 12px}.fee-access-panel .finance-heading p{margin:0}#exam-bulk-form input[type=checkbox],.bulk-class-grid input{width:18px;min-width:18px;height:18px}#bulk-review th,#bulk-review td,.fee-access-panel th,.fee-access-panel td{border:1px solid #c5c5c5}#bulk-review td{vertical-align:top}#bulk-review small{display:block}#bulk-review select{max-width:100%;min-width:0}#bulk-review{scroll-margin-top:20px}.child-access-notice,.fee-access-panel,#bulk-review{overflow-wrap:anywhere}#exam-bulk-form .school-cols>*{min-width:0}@media(max-width:600px){.bulk-class-grid{grid-template-columns:1fr}.fee-access-panel .summary-strip{display:grid;grid-template-columns:1fr}.fee-access-panel .finance-heading{flex-wrap:wrap}#bulk-review th,#bulk-review td{padding:7px}#bulk-review .school-table-wrap{overflow:auto}#bulk-review select{width:190px}.child-access-notice .school-actions{gap:8px}}

@media(max-width:600px){#bulk-review .school-table{overflow:visible;border:0}#bulk-review table,#bulk-review tbody{display:block;width:100%;min-width:0}#bulk-review thead{display:none}#bulk-review tr{display:block;margin:12px 0;border:1px solid #171717;border-radius:10px;overflow:hidden;background:#fff}#bulk-review td{display:block;border:0;border-bottom:1px solid #c5c5c5;padding:10px;width:auto!important}#bulk-review td:last-child{border-bottom:0}#bulk-review td::before{content:attr(data-label);display:block;font-size:.72rem;font-weight:700;text-transform:uppercase;color:#132440;margin-bottom:7px}#bulk-review select{width:100%}}

/* Parent attendance: clear clock times without administrative audit columns. */
.parent-attendance-filters{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));max-width:680px;margin-bottom:14px}
.parent-attendance-grid{min-width:1650px}.parent-attendance-grid td{font-variant-numeric:tabular-nums;font-size:13px;min-width:49px;text-align:center;padding:9px 3px}.parent-attendance-grid .parent-clock-label{position:sticky;left:0;z-index:2;min-width:48px;background:#122443;color:white}
.screening-table{overflow-x:auto}.screening-table table{min-width:850px}.screening-table small{display:block}.screening-table td{vertical-align:top;white-space:normal;overflow-wrap:anywhere}.screening-table td:last-child{min-width:260px;max-width:430px}.screening-table p{margin:5px 0}
