*{box-sizing:border-box}body{margin:0;background:#f3f6fb;color:#192c46;font:15px system-ui,sans-serif}header{background:#123b68;color:white;padding:24px 5%;display:flex;justify-content:space-between;align-items:center}h1{margin:0;font-size:27px}header small{color:#bcd3ea}nav{background:white;border-bottom:1px solid #dce4ef;padding:14px 5%;display:flex;gap:20px;flex-wrap:wrap}a{color:#145a9e;text-decoration:none}main{max-width:1440px;margin:28px auto;padding:0 24px}.panel,.card{background:white;border:1px solid #dce4ef;border-radius:12px;padding:22px;margin:16px 0}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px}.card strong{font-size:32px;display:block}.card{margin:0;border-top:4px solid #145a9e}.filters{display:flex;gap:12px;flex-wrap:wrap;align-items:end}label{display:block;font-weight:600}select,input,textarea{padding:10px;border:1px solid #b5c5d9;border-radius:6px;font:inherit;max-width:100%}select{max-width:230px}button,.button{background:#125ea4;color:white;border:0;border-radius:6px;padding:11px 18px;cursor:pointer;display:inline-block;font:inherit}.scroll{overflow:auto;max-height:650px}table{width:100%;border-collapse:collapse}th,td{padding:10px 12px;border:1px solid #e2e8f0;text-align:left;font-size:13px}th{background:#eef3fa;position:sticky;top:0;z-index:1}td.level{text-align:center;font-weight:700;min-width:75px}.AD{background:#2563eb;color:#fff}.A{background:#d4f1dc;color:#145c31}.B{background:#fff0ad;color:#644e00}.C{background:#f9d3d6;color:#922337}.empty{background:#edf0f4;color:#586575}.legend{display:flex;gap:12px;flex-wrap:wrap}.legend span{padding:7px 12px;border-radius:5px}.notice{padding:15px;background:#fff1cc;border-left:4px solid #bc8a13;margin:16px 0}.success{background:#d4f1dc;padding:15px}.bars{display:flex;min-width:200px;height:24px}.bars span{display:block;min-width:0}.login{max-width:440px;margin:70px auto}.login input{width:100%;margin:8px 0 18px}textarea{width:100%;min-height:110px}header form button{background:#285881}h2{font-size:20px}p{line-height:1.6}.muted{color:#63758c}footer{padding:24px;text-align:center;color:#63758c;font-size:12px}@media print{header,nav,.filters,.no-print{display:none}.scroll{max-height:none;overflow:visible}main{padding:0}.panel{border:0;padding:0}}
.grises .AD{background:#ddd;color:#000}.grises .A{background:#e8e8e8;color:#000}.grises .B{background:#f0f0f0;color:#000}.grises .C{background:#f8f8f8;color:#000}.grises .empty{background:#fff;color:#000}
body:has(header h1:first-child,main a[href*="configuracion"]){background:#f6f8fc}body:has(header h1:first-child) header{background:linear-gradient(120deg,#102e50,#1d527e);padding:42px max(24px,calc((100% - 1240px)/2));min-height:138px}body:has(header h1:first-child) header h1{font-size:34px;letter-spacing:-.5px;margin:6px 0}body:has(header h1:first-child) header a{color:#fff;border:1px solid #7898b4;padding:11px 15px;border-radius:9px}body:has(header h1:first-child) main{max-width:1240px;margin:30px auto}body:has(header h1:first-child) .panel{padding:28px;margin:18px 0;box-shadow:0 5px 20px #173b5c0b}body:has(header h1:first-child) .panel h2{font-size:21px;margin-top:0;color:#19324d}body:has(header h1:first-child) .panel form.filters{background:#f8fafc;border:1px solid #e5ebf2;border-radius:10px;padding:18px;margin:14px 0;gap:16px}body:has(header h1:first-child) .panel form.filters label{flex:1;min-width:180px}body:has(header h1:first-child) .panel form.filters input,body:has(header h1:first-child) .panel form.filters select{display:block;width:100%;margin-top:7px;background:#fff}body:has(header h1:first-child) table{border:1px solid #e2e9f1;border-radius:9px;overflow:hidden}body:has(header h1:first-child) th{font-size:12px;text-transform:uppercase;letter-spacing:.35px;color:#61758a}body:has(header h1:first-child) .institution-logo{border:1px solid #dce6f0;border-radius:8px;padding:5px;background:#fff}body:has(header h1:first-child) textarea{width:100%;display:block;margin-top:7px}@media(max-width:700px){body:has(header h1:first-child) header{padding:30px 24px}body:has(header h1:first-child) header h1{font-size:28px}body:has(header h1:first-child) main{padding:0 14px}body:has(header h1:first-child) .panel{padding:20px 16px}}

.institution-logo{max-width:100px;max-height:80px;object-fit:contain}
 .import-confirm{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px 0 28px;padding:18px 20px;border:1px solid #c9dced;border-radius:12px;background:#eef6ff;box-shadow:0 4px 14px rgba(22,54,82,.08);position:sticky;top:12px;z-index:3}.import-confirm p{margin:5px 0 0}.import-confirm form{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}.import-confirm label{font-size:13px;font-weight:500}.import-confirm button{white-space:nowrap;font-weight:700}@media(max-width:700px){.import-confirm{align-items:stretch;flex-direction:column;top:0}.import-confirm form{justify-content:stretch}.import-confirm button{width:100%}}
.password-toggle{display:flex;align-items:center;gap:8px;margin:8px 0 14px;font-size:13px;font-weight:500}.password-toggle input{width:auto;margin:0}
