/* TAI-TEI 1.0.9c — lenguaje visual compartido entre dashboards administrativos. */
:root{--tai-admin-bg:#fff;--tai-admin-sidebar:#f6f6f6;--tai-admin-text:#161616;--tai-admin-border:#e3e3e3;--tai-admin-muted:#666;--tai-admin-accent:#171717}
body:has(.shell) .sidebar,body.admin-shell .sidebar{background:var(--tai-admin-sidebar)!important;color:var(--tai-admin-text)!important;border-right:1px solid var(--tai-admin-border)!important;box-shadow:none!important}
body:has(.shell) .sidebar a,body.admin-shell .sidebar nav a,body.admin-shell .sidebar .brand{color:var(--tai-admin-text)!important}
body:has(.shell) .sidebar a.menu.active,body.admin-shell .sidebar nav a.active{background:#e5e5e5!important;color:#111!important;border-radius:8px!important}
body:has(.shell) .main,body.admin-shell .main{background:#fff!important;color:var(--tai-admin-text)!important}
body:has(.shell) .top,body.admin-shell .topbar{background:#fff!important;color:#171717!important;box-shadow:none!important;border-bottom:1px solid var(--tai-admin-border)!important}
body:has(.shell) .top h1,body.admin-shell .main h1,body.admin-shell .main h2{color:#111!important}
body:has(.shell) .top .sub,body.admin-shell .main .lead{color:var(--tai-admin-muted)!important}
body:has(.shell) .panel,body.admin-shell .main .panel{background:#fff!important;color:#161616!important;border:1px solid var(--tai-admin-border)!important;box-shadow:none!important;border-radius:12px!important}
body:has(.shell) input:not([type=checkbox]):not([type=radio]),body:has(.shell) select,body:has(.shell) textarea,body.admin-shell .main input:not([type=checkbox]):not([type=radio]),body.admin-shell .main select{background:#fff!important;color:#161616!important;border:1px solid #ccc!important;border-radius:8px!important}
/* Selectores de permisos de miembros: compactos, aptos para muchas actividades/niveles. */
body.admin-shell .member-access-panel{margin-top:20px!important}
body.admin-shell .access-picker{border:1px solid #ddd;border-radius:10px;background:#fff;margin-top:14px;overflow:hidden}
body.admin-shell .access-picker>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 16px;background:#f7f7f7;color:#191919;font-weight:700;cursor:pointer}
body.admin-shell .access-picker>summary::marker{color:#555}
body.admin-shell .access-count{font-size:12px;font-weight:600;color:#444;background:#e9e9e9;padding:4px 9px;border-radius:15px;white-space:nowrap}
body.admin-shell .access-picker-inner{padding:14px}
body.admin-shell .access-search{display:block;width:100%;max-width:460px;margin:0 0 12px;padding:10px 12px}
body.admin-shell .access-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:250px;overflow-y:auto;gap:8px;align-content:start}
body.admin-shell .access-option{display:flex!important;gap:10px;align-items:center;padding:11px 12px;background:#fff;border:1px solid #e3e3e3;border-radius:8px;cursor:pointer;min-width:0}
body.admin-shell .access-option:has(input:checked){background:#f3f3f3;border-color:#999}
body.admin-shell .access-option[hidden]{display:none!important}
body.admin-shell .access-option input{margin:0!important;flex:none;width:17px;height:17px;accent-color:#222}
body.admin-shell .access-option span{min-width:0;display:flex;flex-direction:column;gap:3px}
body.admin-shell .access-option strong{font-size:14px;overflow-wrap:anywhere;color:#161616}
body.admin-shell .access-option small{color:#666;font-size:12px}
body.admin-shell .access-enable{display:flex!important;align-items:center;gap:10px}
body.admin-shell .access-enable input{margin:0!important;width:18px;height:18px;accent-color:#222}
@media(max-width:700px){body.admin-shell .access-options{grid-template-columns:1fr;max-height:270px}body.admin-shell .access-picker>summary{padding:12px;flex-wrap:wrap}}

/* TAI–TEI 1.0.10a: apariencia coherente con el dashboard institucional.
   Exclusivo de Gestión de alumnos. No afecta la PWA ni las vistas públicas. */
body.admin-shell{background:#fff!important;color:#111!important;font-family:Inter,Arial,Helvetica,sans-serif!important}
body.admin-shell .sidebar{width:240px!important;padding:26px 15px!important;background:#f7f7f7!important;border-right:1px solid #e5e5e5!important;box-shadow:none!important}
body.admin-shell .sidebar .brand{min-height:0!important;padding:0 12px 22px!important;margin:0 0 10px!important;letter-spacing:.02em!important;font-size:15px!important;border-bottom:1px solid #e6e6e6!important;color:#111!important}
body.admin-shell .sidebar nav{gap:2px!important}
body.admin-shell .sidebar nav a,body.admin-shell .sidebar .logout{font-size:13px!important;font-weight:600!important;color:#343434!important;padding:10px 12px!important;border-radius:7px!important;transform:none!important;transition:background .12s ease!important}
body.admin-shell .sidebar nav a:hover,body.admin-shell .sidebar nav a.active{background:#e8e8e8!important;color:#080808!important;box-shadow:none!important}
body.admin-shell .sidebar .logout{background:transparent!important;margin-top:auto!important}
body.admin-shell .main{margin-left:240px!important;min-width:0!important;min-height:100vh!important;background:#fff!important}
body.admin-shell .topbar{height:65px!important;min-height:65px!important;width:100%!important;padding:0 clamp(20px,4vw,64px)!important;background:#fff!important;color:#111!important;border-bottom:1px solid #e5e5e5!important;box-shadow:none!important;font-size:13px!important}
body.admin-shell .topbar a{color:#333!important;font-weight:600!important}
body.admin-shell .wrap{max-width:1600px!important;width:100%!important;margin:0 auto!important;padding:32px clamp(20px,4vw,64px)!important;color:#111!important}
body.admin-shell .main h1{font-size:29px!important;font-weight:750!important;letter-spacing:-.035em!important}
body.admin-shell .main h2{font-size:20px!important;color:#111!important}
body.admin-shell .main .lead,body.admin-shell .main .muted{color:#777!important}
body.admin-shell .dashboard-hero{padding:22px 26px!important;border:1px solid #e6e6e6!important;border-radius:10px!important;background:#f7f7f7!important;box-shadow:none!important}
body.admin-shell .main .panel,body.admin-shell .main .stat,body.admin-shell .main .stats>div{border:1px solid #e6e6e6!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important;color:#111!important}
body.admin-shell .main .btn{min-height:40px!important;background:#161616!important;border:1px solid #161616!important;border-radius:6px!important;color:#fff!important;font-size:13px!important;font-weight:650!important;box-shadow:none!important}
body.admin-shell .main .btn.secondary{background:#fff!important;color:#161616!important;border:1px solid #d8d8d8!important}
body.admin-shell .main input:not([type=checkbox]):not([type=radio]),body.admin-shell .main select,body.admin-shell .main textarea{background:#fff!important;color:#111!important;border:1px solid #d6d6d6!important;border-radius:6px!important;padding:11px 12px!important;box-shadow:none!important}
body.admin-shell .main input:focus-visible,body.admin-shell .main select:focus-visible,body.admin-shell .main textarea:focus-visible{outline:2px solid #444!important;outline-offset:1px!important}
body.admin-shell .main table{width:100%!important;border-collapse:collapse!important}
body.admin-shell .main th{background:#f7f7f7!important;color:#777!important;text-transform:uppercase!important;font-size:11px!important;letter-spacing:.055em!important}
body.admin-shell .main td{color:#222!important;border-color:#ebebeb!important}
body.admin-shell .main th,body.admin-shell .main td{padding:13px 12px!important}
body.admin-shell .main .tablewrap{max-width:100%!important;overflow-x:auto!important}
body.admin-shell .main .flash{background:#f1f6f0!important;border-color:#d7e9d4!important;color:#245228!important}
/* Mantener espacios y tarjetas compactos en los selectores de ficha. */
body.admin-shell .access-picker{border-radius:8px!important}
body.admin-shell .access-picker>summary{background:#f7f7f7!important;border-radius:7px!important}
body.admin-shell .access-option{border-radius:6px!important}
@media(max-width:800px){
 body.admin-shell .sidebar{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:0!important;padding:12px!important}
 body.admin-shell .main{margin-left:0!important;width:100%!important}
 body.admin-shell .topbar{height:auto!important;min-height:58px!important;padding:12px 18px!important}
 body.admin-shell .wrap{padding:22px 16px 36px!important}
 body.admin-shell .sidebar nav{gap:5px!important}
}
@media(max-width:520px){body.admin-shell .main th,body.admin-shell .main td{padding:10px 8px!important}}
