/* Schools colorful design system — per-tenant theme overrides from trusted CSS variables */
:root{--brand:#2563eb;--brand-2:#7c3aed;--accent:#f59e0b;--sidebar-color:#173b69;--school-card-radius:16px;--school-sidebar-text:#eaf4ff;--school-bg:#f4f7ff}
html{font-family:Arial,sans-serif}
html[data-card-style="round"]{--school-card-radius:24px}
html[data-card-style="square"]{--school-card-radius:6px}
html[data-font-scale="large"]{font-size:17px}
html[data-font-scale="compact"]{font-size:14px}
body{font-family:Arial,Helvetica,sans-serif;background:var(--school-bg)}
.app-shell{background:linear-gradient(148deg,#f2f6ff 0%,#f8fafc 49%,#f4f8ff 100%)}
.sidebar{background:linear-gradient(164deg,var(--sidebar-color),#26336a 86%)!important;border-right:1px solid rgba(255,255,255,.12)}
html[data-sidebar-style="dark"] .sidebar{background:var(--sidebar-color)!important}
html[data-sidebar-style="light"] .sidebar{background:#fff!important;color:#203752;border-right:1px solid #dce7ef;box-shadow:6px 0 28px rgba(45,74,127,.05)}
html[data-sidebar-style="light"] .nav-item{color:#38556e}
html[data-sidebar-style="light"] .nav-item span{color:var(--brand)}
html[data-sidebar-style="light"] .nav-item:hover,html[data-sidebar-style="light"] .nav-item.is-active{background:color-mix(in srgb,var(--brand) 13%,white);color:var(--brand)}
html[data-sidebar-style="light"] .brand,html[data-sidebar-style="light"] .tenant-name{color:#24384e}
html[data-sidebar-style="light"] .brand-sub,html[data-sidebar-style="light"] .tenant-label,html[data-sidebar-style="light"] .user-chip,html[data-sidebar-style="light"] .nav-title{color:#778ea4}
html[data-sidebar-style="light"] .tenant-card{border-color:#e2e9f0;background:#f5f9fc}
html[data-sidebar-style="light"] .logout-btn{color:var(--brand);border-color:#d9e4f2}
.sidebar .nav-title{font-size:10px;letter-spacing:.105em;color:#adc3db;padding-top:18px}
.sidebar .nav-title[data-group="people-&-access"],.sidebar .nav-title[data-group="academics"]{color:#b8caff}
.sidebar .nav-title[data-group="finance"]{color:#a7e8cd}
.sidebar .nav-title[data-group="human-resources"]{color:#ffd2a7}
.sidebar .nav-title[data-group="engagement"]{color:#fbc4e4}
.sidebar .nav-item{border-radius:10px;padding:10px 12px;min-height:39px}
.sidebar .nav-item:hover{background:rgba(255,255,255,.12)}
.sidebar .nav-item.is-active{background:rgba(255,255,255,.19);box-shadow:inset 3px 0 var(--accent)!important}
html[dir="rtl"] .sidebar .nav-item.is-active{box-shadow:inset -3px 0 var(--accent)!important}
.school-icon{width:18px;height:18px;flex:none;stroke:currentColor}
.nav-glyph{width:20px!important;height:20px;display:inline-flex;align-items:center;justify-content:center}
.sidebar .nav-item.is-active .nav-glyph{color:#fff}
.tenant-card{border-radius:var(--school-card-radius);background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.20)}
.brand-wrap{gap:11px}
.brand-mark{border-radius:13px;background:linear-gradient(135deg,#fff,#e4efff)}
.brand-mark img{max-width:100%;max-height:100%;object-fit:contain;border-radius:10px}
.brand{font-size:20px;letter-spacing:-.03em}
.topbar{box-shadow:0 3px 18px rgba(28,53,99,.025)}
.top-title{font-weight:800;color:#183450}
.top-subtitle{color:#6c859b}
.page-content{max-width:1780px}
.panel,.stat-card,.quick-card,.class-card,.school-header{border-radius:var(--school-card-radius)}
.panel{border-color:#e5ecf5}
.panel-head{background:linear-gradient(120deg,#fff,#fafcff)}
.panel-head h2{color:#183650}
.btn{border-radius:10px}
.btn-primary{background:var(--brand);box-shadow:0 4px 12px color-mix(in srgb,var(--brand) 20%,transparent)}
.btn-primary:hover{background:var(--brand-2)}
.btn-secondary{color:var(--brand)}
.table-link,.panel-footer-link a{color:var(--brand)}
.login-card{border-radius:var(--school-card-radius)}
.stat-card{position:relative;overflow:hidden;transition:transform .2s,box-shadow .2s;background:#fff;border-color:#e2eaf4}
.stat-card:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(27,53,112,.1)}
.stat-card::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--brand)}
.stat-card::after{content:"";width:72px;height:72px;position:absolute;top:-28px;right:-19px;border-radius:50%;background:var(--brand);opacity:.09;pointer-events:none}
.stat-grid .stat-card:nth-child(5n+1){--stat-color:var(--brand)}
.stat-grid .stat-card:nth-child(5n+2){--stat-color:var(--brand-2)}
.stat-grid .stat-card:nth-child(5n+3){--stat-color:#0fa7a0}
.stat-grid .stat-card:nth-child(5n+4){--stat-color:#f59e0b}
.stat-grid .stat-card:nth-child(5n+5){--stat-color:#ed6c99}
.stat-card::before,.stat-card::after{background:var(--stat-color,var(--brand))}
.stat-value{color:var(--stat-color,var(--brand));font-weight:800}
.stat-label{color:#526b83}
.quick-card{border-color:#e5edf7;background:linear-gradient(135deg,#fbfdff,#f5f9ff);transition:.18s}
.quick-card:hover{border-color:color-mix(in srgb,var(--brand) 40%,#fff);transform:translateY(-2px)}
.quick-card strong{color:var(--brand)}
.activity-row:hover{background:#f6f9ff}
.top-user .avatar{background:linear-gradient(145deg,var(--brand),var(--brand-2));color:#fff}
.lang-btn.active{background:var(--brand)}
/* School illustration as a branded welcome panel */
.school-welcome{display:flex;position:relative;justify-content:space-between;align-items:center;min-height:202px;border-radius:23px;overflow:hidden;background:linear-gradient(112deg,var(--brand),var(--brand-2));padding:24px 28px 18px;margin-bottom:22px;color:#fff;isolation:isolate}
.school-welcome::before{content:"";position:absolute;border-radius:50%;width:370px;height:370px;right:100px;top:-195px;border:80px solid rgba(255,255,255,.09);z-index:-1}
.school-welcome::after{content:"";position:absolute;width:140px;height:140px;right:-55px;bottom:-75px;border-radius:50%;background:var(--accent);opacity:.5;z-index:-1}
.school-welcome-content{max-width:610px;flex:1;z-index:1}
.school-welcome-kicker{display:block;color:#e7f4ff;font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:800;margin-bottom:8px}
.school-welcome h2{font-size:clamp(21px,2.1vw,32px);font-weight:800;line-height:1.17;margin:0 0 9px;color:#fff}
.school-welcome p{font-size:13px;line-height:1.7;opacity:.93;max-width:500px;margin:0}
.school-welcome-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.school-welcome .btn{border-color:rgba(255,255,255,.35);background:#fff;color:var(--brand)}
.school-welcome .btn:hover{background:#eaf2ff}
.school-welcome-image{width:min(340px,37%);max-height:193px;object-fit:contain;object-position:center bottom;align-self:flex-end;filter:drop-shadow(0 8px 12px rgba(0,0,0,.10))}
.school-welcome-image.custom-banner{width:38%;height:185px;max-height:185px;object-fit:cover;border-radius:17px;align-self:center;border:3px solid rgba(255,255,255,.20)}
html[data-school-illustrations="off"] .school-welcome-image:not(.custom-banner){display:none}
.hero-feature{font-size:11px;color:var(--brand);font-weight:700}
.section-heading-with-icon{display:flex;gap:9px;align-items:center}
.section-heading-with-icon .school-icon{color:var(--brand)}
/* Appearance editor */
.theme-intro{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px 27px;background:linear-gradient(120deg,#e4f0ff,#fff4e4);border:1px solid #e1eaf7;border-radius:20px;margin-bottom:22px;overflow:hidden}
.theme-intro>div{max-width:650px}
.theme-kicker{font-weight:800;color:var(--brand);font-size:11px;letter-spacing:.13em}
.theme-intro h2{font-size:27px;margin:8px 0}
.theme-intro p{line-height:1.6;font-size:13px;color:#5e728a}
.theme-intro img{width:min(290px,30%);max-height:160px;object-fit:contain}
.theme-layout{display:grid;grid-template-columns:minmax(0,1fr) 335px;gap:18px;align-items:start}
.theme-edit{display:flex;flex-direction:column;gap:17px;min-width:0}
.theme-section{padding:22px 23px}
.theme-section-title{display:flex;align-items:flex-start;gap:13px;margin-bottom:19px}
.theme-section-title .section-icon{flex:none;width:34px;height:34px;background:var(--brand);color:white;border-radius:11px;display:grid;place-items:center;font-weight:800;font-size:12px}
.theme-section-title h3{margin:1px 0 4px;color:#1d3652;font-size:17px}
.theme-section-title p{margin:0;color:#71869a;font-size:12px;line-height:1.6}
.theme-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.theme-preset{display:block;position:relative;border:2px solid #e4eaf3;border-radius:13px;padding:10px;cursor:pointer;transition:.15s}
.theme-preset:hover{border-color:#a2bedf}
.theme-preset:has(input:checked){border-color:var(--brand);background:#f4f8ff}
.theme-preset input{position:absolute;opacity:0;width:1px;height:1px}
.theme-preset:focus-within{outline:3px solid #bedcff;outline-offset:1px}
.preset-name{display:block;margin-top:8px;font-size:12px;color:#38516a}
.preset-check{position:absolute;right:12px;bottom:10px;color:var(--brand);opacity:0;font-weight:900}
.theme-preset:has(input:checked) .preset-check{opacity:1}
.preset-preview{height:64px;display:block;position:relative;border-radius:7px;background:#f6f8ff;overflow:hidden}
.mini-left{position:absolute;width:29%;inset:0 auto 0 0;background:var(--sample-4)}
.mini-top{position:absolute;left:35%;right:5%;top:9px;height:10px;border-radius:3px;background:var(--sample-1)}
.mini-card{position:absolute;left:35%;top:26px;width:26%;height:30px;border-radius:4px;background:var(--sample-2);opacity:.7}
.mini-card.short{left:65%;width:26%;background:var(--sample-3)}
.mini-dot{position:absolute;left:9%;top:12px;width:10px;height:10px;background:white;border-radius:50%}
.theme-color-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.theme-color-field{display:block;border:1px solid #e6edf5;border-radius:10px;padding:12px 14px}
.theme-color-field>span{font-size:12px;color:#536a81;display:block;margin-bottom:8px;font-weight:700}
.theme-color-control{display:flex;gap:13px;align-items:center}
.theme-color-control input{width:46px!important;height:42px;padding:2px!important;border:1px solid #e3ebf1;cursor:pointer}
.theme-color-control output{font-size:12px;color:#3b516a;font-weight:750}
.theme-select-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.theme-select-grid .field{gap:8px;color:#425a71;font-size:12px;font-weight:700}
.theme-checkbox{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700;color:#365069;cursor:pointer}
.theme-checkbox input{width:17px;height:17px;accent-color:var(--brand)}
.theme-checkbox.small{margin:9px 0;font-size:12px}
.theme-branding-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.theme-current-logo{max-height:85px;max-width:110px;object-fit:contain;border:1px solid #e1e8f2;border-radius:9px;padding:6px}
.theme-current-banner{width:100%;height:100px;object-fit:cover;border-radius:10px}
.theme-section input[type="file"]{font-size:12px;min-height:38px;padding:8px}
.theme-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center}
.theme-reset-form{margin-top:9px}
.theme-preview-wrap{position:sticky;top:105px}
.theme-preview-panel{padding:16px}
.theme-preview-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.theme-preview-head strong{display:block;font-size:14px}
.theme-preview-head small{color:#8193a8;font-size:10px}
.preview-live{color:#078657;font-size:10px;font-weight:800}
.school-theme-preview{--pv-primary:#2563eb;--pv-secondary:#7c3aed;--pv-accent:#f59e0b;--pv-sidebar:#173b69;height:236px;border-radius:11px;overflow:hidden;border:1px solid #dae6f3;display:flex;background:#f5f8fd}
.preview-sidebar{width:27%;background:linear-gradient(var(--pv-sidebar),var(--pv-secondary));padding:14px 9px}
.preview-logo{display:grid;place-items:center;width:26px;height:26px;background:#fff;color:var(--pv-sidebar);border-radius:7px;font-weight:900;margin-bottom:21px}
.preview-nav-item{height:9px;border-radius:4px;background:rgba(255,255,255,.3);margin-bottom:15px}
.preview-nav-item.short{width:66%}
.preview-nav-item.active{background:var(--pv-accent)}
.preview-main{width:73%;padding:12px}
.preview-welcome{background:linear-gradient(120deg,var(--pv-primary),var(--pv-secondary));height:102px;border-radius:9px;display:flex;justify-content:space-between;align-items:center;overflow:hidden;padding:10px;color:#fff}
.preview-welcome strong{font-size:11px;line-height:1.25}
.preview-welcome img{width:54%;height:95%;object-fit:contain}
.school-theme-preview.hide-illustrations .preview-welcome img{display:none}
.preview-stat-row{display:flex;gap:7px;margin-top:9px}
.preview-stat{border-radius:7px;border-left:3px solid var(--pv-primary);background:#fff;padding:8px;flex:1;font-weight:800;font-size:15px}
.preview-stat:last-child{border-left-color:var(--pv-accent)}
.preview-stat small{display:block;font-weight:400;color:#8798a8;font-size:9px;margin-top:4px}
.preview-stat-line{height:6px;margin-top:11px;background:#cdd9e5;border-radius:4px}
.preview-stat-line.half{width:60%;margin-top:7px}
.school-theme-preview[data-sidebar-style="light"] .preview-sidebar{background:#e7f0fc}
.school-theme-preview[data-sidebar-style="light"] .preview-nav-item{background:#8daac4}
.school-theme-preview[data-sidebar-style="dark"] .preview-sidebar{background:var(--pv-sidebar)}
.school-theme-preview[data-card-style="round"] .preview-welcome,.school-theme-preview[data-card-style="round"] .preview-stat{border-radius:17px}
.school-theme-preview[data-card-style="square"] .preview-welcome,.school-theme-preview[data-card-style="square"] .preview-stat{border-radius:2px}
.theme-preview-note{font-size:11px;color:#7990a4;line-height:1.6;margin:12px 0 0}
@media(max-width:1300px){.theme-layout{grid-template-columns:minmax(0,1fr) 290px}}
@media(max-width:1050px){.theme-layout{grid-template-columns:1fr}.theme-preview-wrap{position:static}.theme-preview-panel{max-width:500px}}
@media(max-width:640px){.theme-presets{grid-template-columns:repeat(2,1fr)}.theme-select-grid,.theme-color-grid,.theme-branding-grid{grid-template-columns:1fr}.theme-intro img{display:none}.theme-intro h2{font-size:22px}.school-welcome-image{display:none}.school-welcome{padding:22px}.sidebar .nav-title{padding-top:12px}}


/* Education-themed icon badges on statistics and quick action cards. */
.stat-card{padding-right:67px}
.stat-icon{position:absolute;top:17px;right:17px;width:39px;height:39px;border-radius:12px;
  display:grid;place-items:center;background:color-mix(in srgb,var(--stat-color,var(--brand)) 12%,white);
  color:var(--stat-color,var(--brand))}
.quick-icon{display:inline-grid;place-items:center;width:35px;height:35px;margin-bottom:8px;
  background:color-mix(in srgb,var(--brand) 9%,white);color:var(--brand);border-radius:11px}
.quick-card:has(.quick-icon){padding:14px}
@media(max-width:600px){.stat-card{padding-right:62px}}

/* Readability controls affect the navigation, forms, tables and school cards. */
html[data-font-scale="large"] body{font-size:15.5px}
html[data-font-scale="large"] .nav-item,
html[data-font-scale="large"] .quick-card strong,
html[data-font-scale="large"] .data-table td{font-size:14.5px}
html[data-font-scale="large"] .stat-label,
html[data-font-scale="large"] .panel-head p,
html[data-font-scale="large"] .quick-card span{font-size:13px}
html[data-font-scale="large"] .top-title{font-size:24px}
html[data-font-scale="compact"] body{font-size:13px}
html[data-font-scale="compact"] .nav-item,
html[data-font-scale="compact"] .quick-card strong,
html[data-font-scale="compact"] .data-table td{font-size:12px}
html[data-font-scale="compact"] .stat-label,
html[data-font-scale="compact"] .panel-head p,
html[data-font-scale="compact"] .quick-card span{font-size:10px}
html[data-font-scale="compact"] .stat-card{padding-top:15px;padding-bottom:15px}
