/* OSHELA S.S.S. — Uniform-inspired digital school identity.
   Sky blue is primary; jacket navy provides contrast; crest red is a small accent.
   Photos of learners are deliberately NOT used as decorative assets. */
:root{
 --navy:#11385f;--deep:#09213c;--blue:#1c679b;--red:#cb4b45;--coral:#248ac4;
 --bg:#eef6fa;--line:#d8e8f1;--text:#153451;--muted:#617d94;--success:#117b64;
 --shadow:0 9px 28px rgba(15,65,106,.09);--radius:16px;
}
body{background:var(--bg)}
.shell{background:linear-gradient(135deg,#f3fbff 0%,#eaf5fc 54%,#f7fcff 100%)}
.sidebar{background:linear-gradient(165deg,#0e355a 3%,#0c2a4a 59%,#09223d);padding-top:18px;box-shadow:5px 0 22px #0d3b5c15;overflow:auto}
.side-brand{gap:13px;padding:7px 5px 22px}
.side-brand img{width:83px;height:83px;object-fit:contain;border-radius:17px;border:1px solid #cce2ed;background:#fff;box-shadow:0 7px 15px #0003;padding:2px}
.side-brand strong{font-size:16px;letter-spacing:.005em}
.side-brand span{font-size:11px;line-height:1.6}
.nav-group-heading{font-size:9px;letter-spacing:.18em;color:#92c4dd;font-weight:900;margin:24px 12px 9px}
.nav-item{margin:0 0 3px;padding:10px 12px;border:1px solid transparent;transition:background .17s,transform .17s,box-shadow .17s}
.nav-item:hover{background:#ffffff19;transform:translateX(2px)}
.nav-item.active{background:linear-gradient(110deg,#367eaf,#235a86);box-shadow:inset 3px 0 #a6e6fa,0 5px 13px #0002;border-color:#9cddff24}
.side-bottom{margin-top:27px}
.main-col{position:relative;isolation:isolate}
.main-col::before{content:"";position:fixed;z-index:-1;pointer-events:none;left:55%;top:54%;width:min(42vw,610px);height:min(42vw,610px);transform:translate(-25%,-35%);background:url('/assets/oshela-crest-small.webp') center/contain no-repeat;opacity:.045;filter:saturate(.8)}
.main-content{position:relative;z-index:1}
.topbar{background:linear-gradient(90deg,#fff,#f8fcff);border-bottom:1px solid #dbe9f2}
.top-avatar,.avatar{background:linear-gradient(145deg,#67b8e5,#19659c);box-shadow:inset 0 1px 0 #ffffff7a,0 3px 8px #18486d28}
.eyebrow{color:#257fae}
.year-chip{background:#e8f4fc!important;color:#15588a!important}
.page-heading h1{color:#10365b}
.wide-banner{background:linear-gradient(112deg,#12507b 0%,#287caf 58%,#8ccfea 132%);box-shadow:0 12px 26px #174d7a23;position:relative;overflow:hidden;border:1px solid #9ad2e133}
.wide-banner::after{content:"";position:absolute;right:35px;top:-55px;width:250px;height:250px;border:2px solid #ffffff18;border-radius:50%;box-shadow:0 0 0 40px #ffffff09,0 0 0 86px #ffffff06;pointer-events:none}
.panel,.stat-card{border:1px solid #dceaf1;box-shadow:0 5px 22px rgba(19,68,105,.075);background:rgba(255,255,255,.97)}
.stat-card{background:linear-gradient(153deg,#fff 65%,#e9f7ff);border-top:3px solid #71bee2}
.stat-value{color:#143e62}
.primary-btn,.secondary-btn,.danger-btn,.subtle-btn{border-radius:11px;min-height:41px;transition:transform .17s,box-shadow .17s,filter .17s;background-clip:padding-box}
.primary-btn{background:linear-gradient(180deg,#59b8e6 0%,#2489c4 51%,#146aa4 100%);box-shadow:inset 0 1px 0 #ffffffa6,inset 0 -2px 0 #155786,0 4px 0 #105581,0 8px 18px #155c9131;color:#fff;text-shadow:0 1px 1px #16446845}
.primary-btn:hover{filter:brightness(1.05);transform:translateY(-2px);box-shadow:inset 0 1px 0 #ffffffb8,0 6px 0 #105581,0 12px 22px #155c9131}
.primary-btn:active{transform:translateY(2px);box-shadow:inset 0 2px 6px #0b436754,0 1px 0 #105581}
.secondary-btn{background:linear-gradient(180deg,#fff,#ddecf7);border:1px solid #bedbed;box-shadow:inset 0 1px 0 #fff,0 3px 0 #b6ccda;color:#175b89}
.secondary-btn:hover{transform:translateY(-1px);filter:brightness(1.03)}
.subtle-btn{background:linear-gradient(180deg,#fff,#f0f6fa);border:1px solid #d3e4ec;box-shadow:0 2px 0 #c4d6e0;color:#305778}
.danger-btn{background:linear-gradient(180deg,#fef0f0,#f2cece);border:1px solid #edb8b8;box-shadow:0 2px 0 #dda2a2;color:#9a3030}
button:focus-visible,.nav-item:focus-visible{outline:3px solid #88ccee;outline-offset:3px}
button:disabled{transform:none!important;box-shadow:none!important}
.table-wrap{background:white;border-color:#e1edf3}
.data-table th{background:#edf6fb;color:#50748e}
.data-table tr:hover td{background:#f2faff}
.tag{background:#e8f4fc;color:#2b6e9d}
.status-pill{background:#e4f6ef}
.info-card{background:#eaf6ff;border-color:#cce8f8;color:#245b81}
.modal-overlay{backdrop-filter:blur(5px);background:#0b2a48aa}
.modal{border:1px solid #b8ddf0;box-shadow:0 24px 85px #071e3966;border-radius:20px;max-height:90vh}
.modal-header{background:linear-gradient(95deg,#f3fbff,#e5f4fd);position:sticky;top:0;z-index:2;border-bottom-color:#d4e9f5}
.modal-header h2{color:#0e385d}
.modal-body{padding-top:18px}
.form-grid{row-gap:13px}
.form-actions{margin-top:5px}
.auth-gate{position:relative;isolation:isolate;background:radial-gradient(circle at 8% 3%,#4495b65c 0%,transparent 48%),linear-gradient(136deg,#082440,#174d75 56%,#75b8d9 140%)}
.auth-gate::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('/assets/oshela-crest-small.webp') center/ min(62vh,610px) no-repeat;opacity:.075;filter:grayscale(.2)}
.auth-card{border:1px solid #a4cadf65;box-shadow:0 22px 75px #071f3b80}
.auth-brand img{width:145px;height:145px;object-fit:contain;filter:drop-shadow(0 4px 7px #08243925)}
.auth-brand h1{color:#10456f}
.receipt-head img{width:122px!important;height:122px!important;object-fit:contain}
.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.permission-item{display:flex;gap:11px;align-items:center;padding:11px 12px;background:#f0f8fc;border:1px solid #d6eaf5;border-radius:11px;cursor:pointer;color:#244d6e;font-weight:700;font-size:12px;min-height:47px}
.permission-item:has(input:checked){background:#e0f2fc;border-color:#8bc7e4}
.permission-item input,.check-label input{width:17px;height:17px;min-height:17px;flex:none;accent-color:#1a82be;box-shadow:none}
.check-label{display:flex;align-items:center;gap:10px;color:#285879;font-weight:700;font-size:12px;background:#eef8fe;padding:12px 14px;border-radius:11px}
.optional-section{border:1px solid #d6e8f2;background:#f5fbff;border-radius:12px;padding:4px 15px}
.optional-section summary{padding:13px 2px;cursor:pointer;font-weight:750;color:#194d76}
.optional-section summary span{font-size:11px;color:#7993a5;font-weight:500}
.optional-fields{padding:9px 0 14px}
.form-subheading{margin:5px 0 10px!important}
.filter-row{flex-wrap:wrap}
.filter-row select{width:auto;min-width:135px;max-width:200px}
.search-input{max-width:420px}
.template-grid,.module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.preset-card,.module-card{padding:16px 17px;background:linear-gradient(150deg,#fff,#f4faff);border:1px solid #dcecf4;border-radius:13px;box-shadow:0 4px 9px #102f4f0a}
.preset-title,.module-card h3{font-size:13px;font-weight:850;color:#143a5c;margin:0 0 8px}
.preset-card p,.module-card p{color:#637b8f;font-size:11px;line-height:1.6;margin:0 0 10px}
.module-card{min-height:178px}.module-symbol{font-size:25px;color:#3d96c5;margin-bottom:12px}
.section-spacer{height:18px}
@media(max-width:1150px){.main-col::before{left:60%;width:430px;height:430px}.sidebar{padding-left:12px;padding-right:12px}}
@media(max-width:780px){.main-col::before{width:65vw;height:65vw;left:50%}.sidebar{width:268px}.side-brand img{width:70px;height:70px}.template-grid,.module-grid{grid-template-columns:1fr 1fr}}
@media(max-width:510px){.permission-grid,.template-grid,.module-grid{grid-template-columns:1fr}.filter-row select{min-width:135px;max-width:100%}.auth-brand img{width:120px;height:120px}.modal{max-height:93vh}}
@media print{.main-col::before,.auth-gate::before{display:none!important}.receipt-head img{width:105px!important;height:105px!important}.modal-header{position:static}}

.top-avatar{border:0;cursor:pointer}.top-avatar:hover{filter:brightness(1.08)}
.allocation-preview{border-radius:12px;padding:13px 15px;background:linear-gradient(135deg,#e8f7ff,#f4fbff);border:1px solid #cce9f8}
.allocation-heading{display:flex;justify-content:space-between;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.allocation-heading strong{color:#164f79;font-size:12px}.allocation-heading span{font-size:10px;color:#6d93a9}
.allocation-row{display:flex;align-items:center;justify-content:space-between;padding:7px 0;gap:10px;font-size:11px;border-top:1px solid #d4e9f4}.allocation-row b{white-space:nowrap;color:#236b99}.allocation-row.credit b{color:#ab6d20}

/* Release identity visible even if school data is migrated from v0.1. */
.edition-chip{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:900;letter-spacing:.04em;background:linear-gradient(160deg,#e2f6ff,#a9dff5);color:#084b78;border:1px solid #82bfdf;border-radius:999px;padding:7px 11px;box-shadow:0 2px 5px #0e477017;white-space:nowrap}
.auth-foot .edition-chip{margin-left:9px}
.sidebar-edition{color:#8ed5f5!important;font-size:9px!important;font-weight:800;letter-spacing:.075em;margin-top:3px}
.top-edition{margin-right:7px}
@media(max-width:920px){.top-edition{font-size:9px;padding:6px 7px}}
@media(max-width:680px){.top-edition{display:none}}
@media print{.edition-chip,.sidebar-edition{display:none!important}}

.department-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(195px,1fr));gap:12px;margin:15px 0}.department-card{text-align:left;background:#fff;border:1px solid #c4d6e7;border-radius:10px;padding:16px;display:grid;gap:8px;color:#193d62;cursor:pointer}.department-card span{font-size:13px;color:#526a80}.department-card b{font-size:13px}.notice-sheet{background:white;color:#172d42;padding:22px;border:1px solid #c4d6e7;margin:12px 0}.notice-sheet header{display:flex;align-items:center;gap:18px}.notice-sheet header img{width:80px;height:auto}.notice-sheet h2{font-size:17px;margin:0 0 8px}.notice-sheet table{font-size:12px}.notice-sheet p{line-height:1.5}.cloud-preview .topbar{border-bottom:4px solid #ba751b}.cloud-preview .top-edition::after{content:' · ONLINE DEMO'}@media print{.notice-sheet{break-after:page;page-break-after:always;box-shadow:none;border:0;margin:0;padding:0}.notice-sheet:last-child{break-after:auto;page-break-after:auto}.notice-sheet .table-wrap{overflow:visible}.notice-sheet tr{break-inside:avoid}.notice-sheet header img{width:75px}}
