:root{font-family:system-ui,Segoe UI,sans-serif;color:#1c2421;background:#f8f9f9;--nav:#114e8e;--accent:#114e8e;--red:#b42335}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:8px;padding:10px 15px;background:var(--accent);color:white;font-weight:650}button.secondary{background:#e6eef2;color:#114e8e}button.danger{background:#b42335}button.ghost{background:transparent;color:white}button:disabled{opacity:.45;cursor:default}input,select,textarea{width:100%;padding:10px;border:1px solid #ccd9df;border-radius:7px;background:white;color:#1c2421}label{display:block;font-size:.85rem;font-weight:600;margin:8px 0}label input,label select{margin-top:5px}h1,h2,h3,p{margin-top:0}h1{font-size:1.7rem}h2{font-size:1.25rem}small,.muted{color:#607887}.login{min-height:100vh;display:grid;place-items:center;background:linear-gradient(130deg,#12384c,#114e8e);padding:20px}.loginbox{background:white;border-radius:18px;padding:36px;width:min(100%,420px);box-shadow:0 20px 60px #0003}.loginbox button{width:100%;margin-top:12px}.logo{width:64px;height:64px;border-radius:18px;background:#114e8e;color:white;display:grid;place-items:center;font-size:24px;font-weight:800;margin-bottom:20px}header{position:sticky;top:0;z-index:3;background:var(--nav);color:white;display:flex;align-items:center;gap:12px;padding:12px 20px;height:62px}header small{color:#c8dce5}#connection{margin-left:auto;font-size:.8rem}aside{position:fixed;top:62px;bottom:0;width:235px;background:white;border-right:1px solid #e2eaee;overflow:auto;padding:15px}aside button{display:block;width:100%;text-align:left;background:white;color:#355366;margin:3px 0}aside button.active{background:#e6effa;color:#114e8e}main{margin-left:235px;padding:26px;max-width:1600px}.panel{background:white;border:1px solid #e1e9ed;border-radius:12px;padding:18px;margin-bottom:16px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:16px}.metric{background:white;border:1px solid #e1e9ed;padding:18px;border-radius:12px}.metric strong{display:block;font-size:2rem;margin-bottom:5px}.row{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin-bottom:12px}.row>*{flex:1;min-width:120px}.row button{flex:0 1 auto}.scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:.88rem}th,td{text-align:left;padding:10px;border-bottom:1px solid #e5ecef;vertical-align:middle}th{background:#edf4f6;color:#345567;white-space:nowrap}td input{min-width:70px;max-width:110px;padding:7px}.bad{color:var(--red);font-weight:700}.good{color:#13704d;font-weight:700}.warn{color:#93620b;font-weight:700}.bar{height:12px;background:#e5edf0;border-radius:7px;overflow:hidden}.bar span{display:block;height:100%;background:#114e8e}.tag{display:inline-block;background:#e6eef2;padding:4px 8px;border-radius:6px;font-size:.78rem}#toast{position:fixed;bottom:15px;right:15px;max-width:90vw;background:#114e8e;color:white;padding:12px 18px;border-radius:8px;display:none;z-index:10}#menu{display:none}[hidden]{display:none!important}@media(max-width:760px){#menu{display:block}aside{display:none;z-index:4;box-shadow:0 8px 30px #0002}aside.open{display:block}main{margin:0;padding:14px}header{padding:8px}header small{display:none}.panel{padding:12px}h1{font-size:1.4rem}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{padding:12px}.metric strong{font-size:1.6rem}}@media print{header,aside,button,.no-print{display:none!important}main{margin:0;padding:0}.panel{border:0}}

/* Identidad visual del portal educativo */
.login{padding:0;grid-template-columns:1.15fr 1fr;place-items:stretch;background:#fff;min-height:100svh}.welcome{position:relative;display:flex;align-items:end;min-height:100%;color:#fff;overflow:hidden;background:linear-gradient(145deg,#071e38 0%,#114e8e 62%,#2e6fb3 100%)}.welcome:before,.welcome:after{content:"";position:absolute;border:1px solid #ffffff25;border-radius:50%;width:650px;height:650px;right:-270px;top:-230px;pointer-events:none}.welcome:after{width:450px;height:450px;right:-170px;top:-130px}.welcome-inner{position:relative;z-index:1;padding:clamp(28px,6vw,92px);max-width:760px}.welcome-kicker{display:inline-block;font-size:.78rem;letter-spacing:.19em;font-weight:700;margin-bottom:30px;color:#d4e7ff}.welcome h2{font-size:clamp(2.3rem,5vw,4.6rem);line-height:1.02;letter-spacing:-.055em;margin-bottom:24px}.welcome p{font-size:clamp(1rem,1.7vw,1.25rem);line-height:1.6;color:#e4efff;max-width:470px}.welcome-footer{display:block;margin-top:70px;font-size:.85rem;color:#d4e7ff}.loginbox{align-self:center;justify-self:center;box-shadow:none;border-radius:0;width:min(100%,470px);padding:clamp(25px,5vw,55px)}.loginbox h1{font-size:2rem;letter-spacing:-.04em;margin:14px 0 8px}.loginbox p{color:#526373;line-height:1.5}.loginbox input{padding:13px;background:#fff;border-color:#d7dfe7}.loginbox button{border-radius:9px;padding:14px}.loginbox .logo{background:#114e8e}.loginbox label{margin-top:18px}button:hover:not(:disabled):not(.ghost){filter:brightness(.93)}input:focus,select:focus,textarea:focus{outline:2px solid #2e6fb3;outline-offset:1px}aside button.active{border-left:3px solid #114e8e}header{box-shadow:0 2px 8px #112d4b22}.panel,.metric{box-shadow:0 2px 8px #123b5e08}th{background:#edf3fa;color:#114e8e}.bar span{background:#2e6fb3}@media(max-width:760px){.login{grid-template-columns:1fr;grid-template-rows:auto 1fr}.welcome{min-height:210px}.welcome-inner{padding:28px}.welcome h2{font-size:2.1rem;margin-bottom:12px}.welcome p{font-size:.95rem;margin-bottom:0}.welcome-kicker{margin-bottom:12px}.welcome-footer{display:none}.loginbox{padding:28px;align-self:start}.loginbox h1{font-size:1.7rem}.loginbox .logo{width:48px;height:48px;margin-bottom:10px}}

#gradeTable .scroll{max-height:70vh}#gradeTable th{position:sticky;top:0;z-index:2}#gradeTable th:first-child,#gradeTable td:first-child{position:sticky;left:0;min-width:220px;max-width:260px;background:#f1f6fc;z-index:1}#gradeTable th:first-child{z-index:3}#gradeTable td:first-child button{text-align:left;white-space:normal;width:100%}#gradeTable input[data-state=bad]{color:#b42335;background:#fff0f1;border-color:#dca5ad}#gradeTable input[data-state=good]{color:#13704d;background:#effaf4;border-color:#a7d6bd}#gradeTable input[data-state=invalid]{outline:2px solid #b42335}#gradeTable input[data-state=empty]{background:#f5f7fa}#showPassword{font-size:.8rem;padding:8px;margin:4px 0 10px}@media(max-width:760px){#gradeTable th:first-child,#gradeTable td:first-child{min-width:125px;max-width:150px}#gradeTable td:first-child button{font-size:.75rem;padding:6px}main{min-width:0}.row>*{min-width:0}.scroll{max-width:100%}}