/* Shared school-themed module layout: tables, records, forms, details, finance and HR */
.school-module-hero{
 position:relative;display:flex;align-items:center;justify-content:space-between;
 gap:26px;min-height:175px;padding:24px 30px;overflow:hidden;isolation:isolate;
 border-radius:22px;margin-bottom:22px;color:white;
 background:linear-gradient(112deg,color-mix(in srgb,var(--brand) 83%,var(--module-accent)),
 color-mix(in srgb,var(--brand-2) 75%,var(--module-accent)));
 box-shadow:0 16px 33px rgba(34,61,116,.10)
}
.school-module-hero::before{
 content:"";width:350px;height:350px;position:absolute;right:12%;top:-238px;
 border:60px solid rgba(255,255,255,.085);border-radius:50%;z-index:-1
}
.school-module-hero::after{
 content:"";width:125px;height:125px;position:absolute;bottom:-76px;right:-48px;
 border-radius:50%;background:var(--accent);opacity:.45;z-index:-1
}
.school-module-hero-copy{flex:1;position:relative;z-index:1;max-width:700px}
.school-module-eyebrow{
 display:flex;gap:10px;align-items:center;font-weight:800;font-size:10px;
 letter-spacing:.135em;text-transform:uppercase;color:rgba(255,255,255,.87);
 margin-bottom:11px
}
.school-module-eyebrow span{color:#fff0ad}
.school-module-hero h2{margin:0 0 7px;color:white;font-size:clamp(23px,2.1vw,31px);font-weight:800;letter-spacing:-.025em}
.school-module-hero p{margin:0;line-height:1.6;color:rgba(255,255,255,.92);font-size:13px}
.school-module-count{
 display:inline-flex;align-items:center;gap:8px;margin-top:15px;padding:7px 12px;
 background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.17);
 border-radius:22px;font-size:11px;font-weight:750
}
.school-module-count .school-icon{width:15px;height:15px}
.school-module-hero-art{width:285px;max-width:32%;height:152px;flex:none;display:grid;place-items:center;align-self:flex-end}
.school-module-hero-art img{
 display:block;height:100%;max-height:154px;width:100%;object-fit:contain;
 filter:drop-shadow(0 8px 14px rgba(22,40,80,.12))
}
.school-module-compact{min-height:144px;padding-top:19px;padding-bottom:19px}
.school-module-compact .school-module-hero-art{height:116px}
.school-module-compact .school-module-hero-art img{max-height:116px}
.school-module-compact h2{font-size:25px}
html[data-school-illustrations="off"] .school-module-hero-art{display:none}
/* Identity-colored surfaces across old and new Django templates */
.page-content[data-school-module] > .panel,
.page-content[data-school-module] > .grid-2 .panel,
.page-content[data-school-module] > .school-header,
.page-content[data-school-module] > .stat-grid .stat-card,
.page-content[data-school-module] > .class-grid .class-card{
 border-color:#e1e9f5;
 box-shadow:0 7px 23px rgba(40,62,111,.055)
}
.page-content[data-school-module] .panel-head{
 border-bottom:1px solid #e3ebf6;
 background:linear-gradient(95deg,color-mix(in srgb,var(--module-accent) 7%,white),#fff 62%);
 position:relative
}
.page-content[data-school-module] .panel-head::before{
 content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--module-accent);
 opacity:.65;border-radius:3px
}
.page-content[data-school-module] .panel-head h2{color:#253e5c}
.page-content[data-school-module] .stat-card{border-radius:var(--school-card-radius)}
.page-content[data-school-module] .quick-card{background:linear-gradient(120deg,#fff,color-mix(in srgb,var(--module-accent) 5%,white));border-color:#e0eafa}
.page-content[data-school-module] .quick-card:hover{border-color:var(--module-accent)}
.page-content[data-school-module] .quick-icon{color:var(--module-accent)}
/* The shared list layout has a balanced toolbar and friendly tables */
.record-panel{border-radius:var(--school-card-radius);overflow:hidden}
.record-toolbar{
 padding:19px 20px;display:flex;align-items:center;gap:12px;
 background:linear-gradient(100deg,#f7faff,#fff 75%);
 border-bottom:1px solid #e3ebf5
}
.record-search-form{display:flex;align-items:center;gap:9px;flex:1;min-width:0;flex-wrap:wrap}
.record-search-wrap{
 display:flex;align-items:center;gap:10px;flex:1;min-width:210px;
 max-width:490px;background:#fff;border:1px solid #d8e5f2;
 border-radius:11px;padding:0 13px;transition:box-shadow .15s,border-color .15s
}
.record-search-wrap:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 10%,white)}
.record-search-wrap svg{width:19px;height:19px;flex:none;color:#7891a9}
.record-search-wrap .search-input{border:0;box-shadow:none;width:100%;min-width:0;max-width:none;height:42px;background:transparent;padding:0;outline:0}
.record-search-wrap .search-input:focus{box-shadow:none;border:0}
.record-search-form>.form-control{width:auto;flex:0 1 185px;min-width:140px;border-radius:10px;height:42px}
.record-search-form>.btn{height:42px}
.record-create-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.record-create-actions .btn{height:41px;min-height:41px;border-radius:10px}
.record-panel .table-wrap{overflow:auto}
.school-modern-table{border-collapse:separate;border-spacing:0}
.school-modern-table thead th{
 position:sticky;top:0;z-index:1;padding:14px 15px;background:
 color-mix(in srgb,var(--brand) 6%,#fff);
 color:#52677e;font-size:10px;font-weight:800;letter-spacing:.075em;
 border-bottom:1px solid #dfe7f2;white-space:nowrap
}
.school-modern-table tbody tr{transition:background .14s}
.school-modern-table tbody tr:nth-child(even){background:#fcfdff}
.school-modern-table tbody tr:hover{background:color-mix(in srgb,var(--module-accent,var(--brand)) 6%,white)}
.school-modern-table td{
 padding:12px 15px;border-bottom:1px solid #edf2f8;
 color:#30435a;line-height:1.5
}
.school-modern-table tbody tr:last-child td{border-bottom:0}
.school-modern-table .record-first-cell{white-space:nowrap;font-weight:700;color:#2a4059}
.record-row-icon{
 display:inline-flex;align-items:center;justify-content:center;
 width:30px;height:30px;vertical-align:middle;margin-right:10px;
 border-radius:10px;background:color-mix(in srgb,var(--module-accent,var(--brand)) 10%,white);
 color:var(--module-accent,var(--brand))
}
.record-row-icon .school-icon{width:16px;height:16px}
.school-status-pill,.school-type-pill{
 display:inline-flex;align-items:center;gap:6px;min-height:24px;
 padding:4px 10px;border-radius:30px;background:#eff3fa;
 color:#49627c;font-size:11px;font-weight:750;line-height:1.3;white-space:nowrap
}
.school-status-pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.75}
.tone-positive{background:#e7f7ee;color:#187848}
.tone-negative{background:#fff0f0;color:#ae4550}
.tone-pending{background:#fff6df;color:#936819}
.school-type-pill{background:color-mix(in srgb,var(--module-accent,var(--brand)) 9%,white);color:#536089}
.school-modern-table .table-link{
 display:inline-flex;align-items:center;gap:4px;padding:5px 3px;
 font-weight:750;white-space:nowrap
}
.school-modern-table .table-link .school-icon{width:13px;height:13px}
.school-modern-table .table-link:hover{color:var(--module-accent,var(--brand))}
.school-empty-state{display:grid;place-items:center;gap:9px;min-height:153px}
.school-empty-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;
 background:color-mix(in srgb,var(--brand) 9%,white);color:var(--brand);font-size:27px}
.school-empty-state strong{font-size:15px;color:#3c506d}
.school-empty-state span{font-size:12px;color:#71869b}
.record-panel .pagination{border-top:1px solid #e6ecf5;background:#fbfcff}
/* Forms become focused, friendly record cards without changing field semantics */
.school-record-form{max-width:1050px}
.school-form-heading{display:flex;gap:13px;padding:22px 24px;
 align-items:center;background:linear-gradient(95deg,color-mix(in srgb,var(--brand) 9%,white),white);
 border-bottom:1px solid #e4ecf7}
.school-form-heading-icon{display:grid;place-items:center;border-radius:12px;
 width:38px;height:38px;background:var(--brand);color:#fff;font-weight:800}
.school-form-heading h3{font-size:17px;color:#2b4062;margin:0}
.school-form-heading p{font-size:12px;color:#6a7f95;margin:5px 0 0}
.school-record-form form{padding:25px}
.school-record-form .form-control{border-radius:10px;min-height:42px;border-color:#d6e3f1;background:#fff}
.school-record-form .form-control:focus{border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 11%,white)}
.school-record-form .field label{color:#3d526c;font-size:12px}
.school-record-form .form-actions{background:#fafcff;margin:24px -25px -25px;padding:18px 25px;border-top:1px solid #e5ecf6}
.school-record-form .btn-primary{min-width:115px}
.sr-only{position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;white-space:nowrap}
@media(max-width:1160px){
 .record-toolbar{flex-wrap:wrap}
 .record-search-form{width:100%;flex:1 1 100%}
 .record-create-actions{width:100%;justify-content:flex-start}
}
@media(max-width:770px){
 .school-module-hero{min-height:135px;padding:19px 20px;border-radius:15px}
 .school-module-hero-art{max-width:31%;height:90px}
 .school-module-hero-art img{max-height:94px}
 .school-module-hero h2{font-size:23px}
 .school-module-hero p{font-size:12px}
 .record-toolbar{padding:14px}
 .record-search-wrap{max-width:none}
 .record-search-form>.form-control{flex:1 1 175px}
 .school-modern-table td{padding:11px}
}
@media(max-width:520px){
 .school-module-hero-art{display:none}
 .school-module-count{margin-top:11px}
 .record-search-form>.btn{flex:1}
 .record-create-actions .btn{flex:1}
 .record-search-form>.form-control{min-width:145px}
 .school-record-form form{padding:15px}
 .school-record-form .form-actions{margin:18px -15px -15px;padding:15px}
}
html[dir="rtl"] .record-row-icon{margin-right:0;margin-left:10px}
html[dir="rtl"] .school-modern-table thead th{text-align:right}
