/* OREM360 — acabado visual del Super Administrador.
   Todo sigue siendo demostración local; no se introducen roles ni permisos reales. */
.admin-module{display:grid;gap:20px;align-content:start}
.admin-module>.page-heading{margin-bottom:1px}
.admin-module .page-heading h1{font-size:clamp(25px,2.5vw,32px)}
.admin-module .page-heading p{max-width:680px;line-height:1.65}
.admin-module-metrics{gap:15px}
.admin-module-metrics .metric{align-items:center;min-height:114px;padding:20px 18px}
.admin-module-metrics .metric-number{font-size:28px;letter-spacing:-.7px}
.admin-module-metrics .metric-label{font-size:11px}
.admin-module-metrics .metric-footer{font-size:10px;line-height:1.35}
.admin-module-table{min-width:0;overflow:hidden}
.admin-module-table .card-heading{padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:18px}
.admin-module-table .table-toolbar{margin-bottom:18px}
.admin-module-table .table-wrapper{margin:0 -22px -22px;max-width:calc(100% + 44px);width:calc(100% + 44px);overflow:auto}
.admin-module-table .data-table{min-width:760px}
.admin-module-table .data-table th{white-space:nowrap;font-size:10px;letter-spacing:.28px}
.admin-module-table .data-table td{vertical-align:middle;font-size:12px}
.admin-module-table .data-table td:last-child{white-space:nowrap}
.admin-module-table .data-table .button{white-space:nowrap}
.admin-module-hint{display:flex;align-items:center;gap:10px;color:var(--muted-strong);font-size:11px;padding:14px 17px;border:1px dashed var(--line);border-radius:12px;line-height:1.55;background:var(--panel2)}
.admin-module-hint svg{height:18px;width:18px;stroke:var(--purple);stroke-width:1.8;fill:none;flex:none}
.admin-info-grid{margin:0}
.admin-info-grid .info-panel{display:flex;flex-direction:column;justify-content:center;min-height:125px}
.admin-info-grid .info-panel strong{font-size:13px}
.admin-info-grid .info-panel p{font-size:11px;line-height:1.65}
.admin-report-grid{align-items:stretch}
.admin-report-grid>.card{min-width:0}
.admin-report-grid .chart-box{height:230px}
.admin-report-lines{display:grid;margin-top:9px}
.admin-report-lines>div{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:17px 1px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted-strong)}
.admin-report-lines>div:last-child{border:0}
.admin-report-lines strong{font-size:18px;color:var(--text)}
.admin-settings-grid{align-items:stretch}
.admin-settings-grid>.card{min-width:0}
.admin-settings-grid>.card>.button{margin-top:15px}
.admin-settings-feature{display:grid;gap:6px;padding:15px 0;border-bottom:1px solid var(--line)}
.admin-settings-feature:last-of-type{border:0}
.admin-settings-feature strong{font-size:12px;color:var(--text)}
.admin-settings-feature span{font-size:11px;line-height:1.6;color:var(--muted-strong)}
.admin-info-details{display:grid;gap:0}
.admin-info-details>div{display:grid;gap:6px;padding:13px 0;border-bottom:1px solid var(--line)}
.admin-info-details>div>span{font-size:10px;color:var(--muted);font-weight:800;letter-spacing:.2px}
.admin-info-details>div>strong{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.admin-preview-form .form-grid{gap:16px}
.admin-preview-form .field{font-size:12px;min-width:0}
.admin-preview-form input,.admin-preview-form select,.admin-preview-form textarea{min-width:0;max-width:100%;width:100%;font-weight:500}
.admin-preview-form input:focus-visible,.admin-preview-form select:focus-visible,.admin-preview-form textarea:focus-visible{outline:2px solid var(--purple);outline-offset:2px}
.admin-preview-form .dialog-note{margin-top:20px;line-height:1.65}
.admin-modal-features{margin-top:5px}
.admin-certificate-preview{text-align:center;background:var(--panel2);border:2px solid var(--line);border-radius:13px;padding:29px 17px;margin:7px 0}
.admin-certificate-icon{margin:17px auto;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:var(--purple-soft);color:var(--purple)}
.admin-certificate-icon svg{height:28px;width:28px;stroke:currentColor;fill:none}
.admin-certificate-preview h3{font-size:23px;font-weight:850;margin:9px 0 18px}
.admin-certificate-preview p{font-size:11px;color:var(--muted-strong);margin:15px 0 8px}
.admin-certificate-preview strong{font-size:22px;color:var(--text);line-height:1.45}
.admin-certificate-preview h4{font-size:16px;margin:7px 0 18px;color:var(--purple)}
.admin-certificate-preview small{display:block;color:var(--muted);font-size:10px}
@media(max-width:1280px){
 .admin-module .metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .admin-module .three-col{grid-template-columns:repeat(2,minmax(0,1fr))}
 .admin-report-grid,.admin-settings-grid{grid-template-columns:1fr}
}
@media(max-width:800px){
 .admin-module .three-col{grid-template-columns:1fr}
 .admin-info-grid{grid-template-columns:1fr}
 .admin-module>.page-heading{align-items:flex-start;flex-wrap:wrap}
 .admin-module .page-heading-actions{width:100%}
 .admin-module .page-heading-actions .button{min-width:175px}
 .admin-module-table .table-wrapper{margin:0 -17px -17px;width:calc(100% + 34px);max-width:calc(100% + 34px)}
 .admin-module-table{padding:17px}
}
@media(max-width:530px){
 .admin-module{gap:15px}
 .admin-module .metrics-grid{grid-template-columns:1fr}
 .admin-module .metric{min-height:94px}
 .admin-module .metric-number{font-size:25px}
 .admin-preview-form .form-grid{grid-template-columns:1fr}
 .admin-report-grid .chart-box{height:195px}
 .admin-module .page-heading-actions .button{width:100%}
 .admin-certificate-preview{padding:22px 14px}
 .admin-certificate-preview h3{font-size:20px}
}
@media(prefers-reduced-motion:reduce){
 .admin-module .button{transition:none!important}
}


/* Fichas de detalle: componentes del Super Administrador únicamente. */
.admin-detail-intro{
  margin:0 0 17px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-left:3px solid var(--purple);
  border-radius:11px;
  background:var(--panel2);
}
.admin-detail-intro strong{display:block;margin-bottom:7px;font-size:12px;color:var(--text)}
.admin-detail-intro p{margin:0;font-size:12px;line-height:1.65;color:var(--muted-strong);overflow-wrap:anywhere}
.admin-detail-section{margin-top:23px;border-top:1px solid var(--line);padding-top:19px}
.admin-detail-section h3{margin:0 0 5px;color:var(--text);font-size:14px;font-weight:800;line-height:1.35}
.admin-detail-section>p{color:var(--muted-strong);font-size:11px;line-height:1.6;margin:0 0 12px}
.admin-detail-list{
  display:grid;
  gap:0;
  padding:0;
  margin:0;
  list-style:none;
  border:1px solid var(--line);
  border-radius:11px;
  overflow:hidden;
}
.admin-detail-list li{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:6px 16px;
  padding:13px 15px;
  background:var(--panel);
  border-bottom:1px solid var(--line);
  line-height:1.5;
  overflow-wrap:anywhere
}
.admin-detail-list li:last-child{border:0}
.admin-detail-list strong{font-size:12px;color:var(--text);font-weight:750}
.admin-detail-list span{font-size:11px;color:var(--muted-strong)}
.admin-detail-empty{
  background:var(--panel2);
  border:1px dashed var(--line);
  padding:14px 16px;
  border-radius:10px;
  font-size:11px;
  line-height:1.65;
  color:var(--muted-strong)
}
.admin-proof-preview{
  display:flex;
  align-items:flex-start;
  gap:15px;
  padding:21px;
  margin:0 0 19px;
  border:1px dashed var(--line);
  border-radius:13px;
  background:var(--panel2);
  color:var(--text)
}
.admin-proof-preview>div:last-child{flex:1;min-width:0}
.admin-proof-icon{
  flex:none;
  display:grid;
  place-items:center;
  width:48px;
  height:58px;
  border-radius:10px;
  background:var(--purple-soft);
  color:var(--purple)
}
.admin-proof-icon svg{width:25px;height:25px;stroke:currentColor;fill:none}
.admin-proof-preview strong{font-size:13px;line-height:1.4}
.admin-proof-preview p{margin:8px 0 12px;font-size:11px;line-height:1.6;color:var(--muted-strong)}
.admin-proof-tag{
  display:inline-block;
  padding:6px 9px;
  font-size:9px;
  font-weight:800;
  border-radius:6px;
  border:1px solid var(--line);
  letter-spacing:.4px;
  color:var(--muted-strong);
  overflow-wrap:anywhere
}
.admin-checklist{display:grid;gap:9px}
.admin-checklist>span{
  display:block;
  padding:11px 13px;
  background:var(--panel2);
  border:1px solid var(--line);
  border-radius:9px;
  color:var(--muted-strong);
  font-size:11px;
  line-height:1.5
}
.admin-form-guide{
  display:grid;gap:6px;
  padding:13px 16px;
  margin-top:16px;
  border-radius:10px;
  background:var(--purple-soft);
  border:1px solid var(--line)
}
.admin-form-guide strong{color:var(--text);font-size:12px}
.admin-form-guide span{color:var(--muted-strong);font-size:11px;line-height:1.55}
.admin-report-grid .card-heading{align-items:flex-start;gap:12px;flex-wrap:wrap}
.admin-report-grid .segmented{flex:none}
.admin-report-grid .segmented button{min-height:34px;white-space:nowrap}
.admin-module-table .table-wrapper{scrollbar-width:thin}
.admin-module-table .data-table td{overflow-wrap:anywhere}
.admin-preview-form .field.full{grid-column:1/-1}
@media(max-width:530px){
  .admin-proof-preview{padding:15px;gap:10px}
  .admin-proof-icon{width:41px;height:49px}
  .admin-detail-list li{flex-direction:column;gap:4px}
  .admin-report-grid .segmented{width:100%;display:flex}
  .admin-report-grid .segmented button{flex:1}
  .admin-form-guide{padding:12px 13px}
}


/* Vistas finales de seguridad, configuración y revisión documental. */
.admin-bank-placeholder{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-bottom:17px
}
.admin-bank-placeholder>div{
  display:grid;
  gap:7px;
  min-width:0;
  padding:15px;
  border:1px solid var(--line);
  background:var(--panel2);
  border-radius:11px
}
.admin-bank-placeholder span{
  color:var(--muted-strong);
  font-size:10px;
  line-height:1.55;
  font-weight:700
}
.admin-bank-placeholder strong{
  color:var(--text);
  font-size:13px;
  line-height:1.4;
  font-weight:800;
  overflow-wrap:anywhere
}
.admin-audit-head{
  display:grid;
  grid-template-columns:1fr .9fr .95fr 1fr;
  gap:10px;
  padding:13px;
  border:1px solid var(--line);
  border-radius:10px 10px 0 0;
  background:var(--panel2);
  color:var(--muted-strong);
  font-size:10px;
  font-weight:800
}
.admin-audit-head+.admin-detail-empty{border-top:0;border-radius:0 0 10px 10px}
.admin-modal-features .table-wrapper{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:10px
}
.admin-modal-features .data-table{min-width:550px}
.admin-modal-features .data-table td,
.admin-modal-features .data-table th{padding:12px 10px;white-space:normal}
.admin-modal-features .admin-checklist{margin-top:14px}
.admin-modal-features .admin-preview-form{margin:8px 0}
.admin-settings-grid .admin-settings-feature+.button{
  margin-top:7px;
  margin-bottom:9px;
  max-width:100%;
  white-space:normal;
  text-align:center
}
@media(max-width:530px){
  .admin-bank-placeholder{grid-template-columns:1fr}
  .admin-audit-head{grid-template-columns:1fr 1fr;gap:9px;font-size:9px}
  .admin-modal-features .data-table{min-width:500px}
}


/* Vistas ilustrativas de asistencia y libro de calificaciones dentro de fichas. */
.admin-detail-section .table-wrapper{
  width:100%;
  min-width:0;
  max-width:100%;
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:11px;
  scrollbar-width:thin
}
.admin-detail-section .data-table{min-width:560px}
.admin-detail-section .data-table th,
.admin-detail-section .data-table td{padding:11px 12px}
.admin-detail-section .data-table td{
  white-space:normal;
  overflow-wrap:anywhere;
  line-height:1.5
}
.admin-detail-section .empty-state{padding:24px 15px}
@media(max-width:530px){
 .admin-detail-section .data-table{min-width:510px}
 .admin-detail-section .data-table th,
 .admin-detail-section .data-table td{padding:10px 9px}
}


/* OREM360 manual cromático 2026: reglas limitadas al panel, nunca al login.
   Fondo 60 %, verde 25 %, grafito 10 %, dorado 5 % (proporción visual objetivo).
   Tipografía: Inter para texto y Montserrat si está instalada para títulos. */
#panelShell{
  --bg:#F5F7F3;
  --panel:#FFFFFF;
  --panel2:#F0F5EF;
  --text:#171A1C;
  --muted:#627468;
  --muted-strong:#3B5144;
  --line:#DCE9DE;
  --purple:#176B32;
  --purple-soft:#E5F3E8;
  --green:#176B32;
  --green-soft:#E5F3E8;
  --orange:#926A13;
  --orange-soft:#FFF3D6;
  --blue:#176B32;
  --blue-soft:#DCE9DE;
  --nav:#103D27;
  --nav-muted:#C4D8C6;
  --shadow:0 7px 24px rgba(16,61,39,.045);
  color:var(--text);
  background:var(--bg);
}
body[data-theme="dark"] #panelShell{
  --bg:#111D16;
  --panel:#1A2C20;
  --panel2:#24382B;
  --text:#F4F7F1;
  --muted:#ADBDAD;
  --muted-strong:#D7E3D6;
  --line:#3C5742;
  --purple:#5BC77A;
  --purple-soft:#284D35;
  --green:#5BC77A;
  --green-soft:#284D35;
  --orange:#E3BE67;
  --orange-soft:#46371C;
  --blue:#82D69A;
  --blue-soft:#264A36;
  --nav:#0D2618;
  --shadow:0 7px 24px rgba(0,0,0,.20);
}
#panelShell .sidebar{background:linear-gradient(180deg,#103D27,#0C2E1E)}
#panelShell .workspace-label{background:#164631;border-color:#36654C}
#panelShell .workspace-chip{background:#C69A3C;color:#172619}
#panelShell .nav-item{color:#D9E6DC}
#panelShell .nav-item.active{
  background:#176B32;
  border-color:#388952;
  box-shadow:inset 3px 0 #C69A3C;
  color:#fff
}
#panelShell .nav-item:hover{background:#1B5638;color:#fff}
#panelShell .nav-item .count{background:#C69A3C;color:#102C1C}
#panelShell .help-card{background:linear-gradient(130deg,#1B5638,#17402B);border-color:#397752}
#panelShell .help-spark{color:#DAB557}
#panelShell .main-area{background:var(--bg)}
#panelShell .page-heading h1,
#panelShell .admin-module .page-heading h1,
#panelShell .card-heading h2,
#panelShell .inst-axis-card h2,
#panelShell .dialog-header h2{
  font-family:Montserrat,Inter,"Segoe UI",Arial,sans-serif;
  letter-spacing:-.5px
}
#panelShell .button.primary{background:#176B32;border-color:#176B32;color:#fff}
#panelShell .button.primary:hover{background:#103D27;border-color:#103D27}
#panelShell .button:focus-visible,
#panelShell .nav-item:focus-visible,
#dialogLayer .button:focus-visible{outline-color:#C69A3C}
#panelShell .topbar{background:var(--panel);border-color:var(--line)}
#panelShell .sandbox-tag{color:#176B32;background:#E5F3E8;border-color:#B9DCC4}
#panelShell .metric-symbol{background:var(--purple-soft);color:var(--purple)}
#panelShell .bar{background:linear-gradient(180deg,#C69A3C,#176B32)}
#panelShell .page-footer{color:var(--muted)}
#panelShell .inst-sidebar-heading{
  font-size:9px;font-weight:900;letter-spacing:1.3px;
  color:#E2C57F;padding:26px 12px 11px;
  margin-top:7px;border-top:1px solid rgba(231,231,213,.17)
}
#panelShell .inst-page .page-heading{min-width:0}
#panelShell .inst-page .visual-only{
  color:#1B5A37;
  background:#E3F1E6;
  border:1px solid #C5E1C9;
  letter-spacing:.3px
}
body[data-theme="dark"] #panelShell .inst-page .visual-only{
  color:#BEEDCB;background:#284D35;border-color:#3A7450
}
#panelShell .inst-axes-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px
}
#panelShell .inst-axis-card{
  display:flex;flex-direction:column;min-width:0;gap:13px;
  background:var(--panel);
  padding:22px;
  border:1px solid var(--line);
  border-radius:17px;
  box-shadow:var(--shadow);
  border-top:3px solid #176B32
}
#panelShell .inst-axis-card:nth-child(3n+2){border-top-color:#C69A3C}
#panelShell .inst-axis-card:nth-child(3n+3){border-top-color:#103D27}
#panelShell .inst-axis-card-top{display:flex;align-items:center;justify-content:space-between;gap:9px}
#panelShell .inst-axis-mark{
  flex:none;display:grid;place-items:center;width:46px;height:46px;
  background:var(--purple-soft);color:var(--purple);border-radius:12px
}
#panelShell .inst-axis-mark svg{width:23px;height:23px;stroke:currentColor;fill:none}
#panelShell .inst-axis-number{font-size:10px;color:var(--muted);font-weight:800;letter-spacing:1px}
#panelShell .inst-axis-card h2{
  font-size:16px;line-height:1.3;margin:0;
  min-height:40px;overflow-wrap:anywhere
}
#panelShell .inst-axis-card p{
  margin:0;color:var(--muted-strong);font-size:12px;line-height:1.62;
  flex:1
}
#panelShell .inst-axis-counts{
  display:flex;gap:12px 20px;flex-wrap:wrap;
  padding:13px 0;border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  color:var(--muted-strong);font-size:11px
}
#panelShell .inst-axis-counts strong{font-weight:900;color:var(--text);font-size:14px}
#panelShell .inst-axis-actions{display:flex;gap:7px;flex-wrap:wrap}
#panelShell .inst-axis-actions>.button{flex:1;min-width:80px;white-space:normal;line-height:1.35}
#panelShell .inst-axis-tags,
#dialogLayer .inst-axis-tags{
  display:flex;gap:6px;flex-wrap:wrap;max-width:100%;
}
#panelShell .inst-axis-tag,
#dialogLayer .inst-axis-tag{
  display:inline-block;
  max-width:100%;
  padding:5px 8px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--purple-soft);
  color:var(--purple);
  font-size:10px;
  font-weight:750;
  line-height:1.38;
  overflow-wrap:anywhere
}
#panelShell .inst-axis-tag{font-size:9px}
#panelShell .inst-impact-bars{display:grid;gap:20px;margin:24px 0 5px}
#panelShell .inst-impact-row{display:grid;gap:8px}
#panelShell .inst-impact-row>div:first-child{
  display:flex;gap:12px;justify-content:space-between;
  color:var(--muted-strong);font-size:11px;line-height:1.45
}
#panelShell .inst-impact-row strong{color:var(--text);font-size:12px}
#panelShell .inst-progress-track{
  width:100%;height:9px;border-radius:20px;overflow:hidden;
  background:var(--purple-soft)
}
#panelShell .inst-progress-track i{
  height:100%;display:block;border-radius:20px;
  background:linear-gradient(90deg,#176B32,#C69A3C)
}
#panelShell .inst-iso-note p{
  color:var(--muted-strong);
  font-size:12px;line-height:1.65;margin:0 0 17px
}
#dialogLayer .inst-form-readonly{
  display:grid;gap:6px;
  grid-column:1/-1;
  background:var(--panel2);
  border:1px solid var(--line);
  border-left:3px solid #C69A3C;
  padding:14px 16px;border-radius:9px
}
#dialogLayer .inst-form-readonly strong{font-weight:850;color:var(--text)}
#dialogLayer .inst-form-readonly span{font-size:11px;line-height:1.5;color:var(--muted-strong)}
#dialogLayer .inst-axis-tags{margin-top:9px}
#dialogLayer .admin-detail-section .inst-axis-tags{margin-bottom:11px}
#panelShell .inst-page .table-wrapper{scrollbar-width:thin}
#panelShell .inst-page .data-table td{overflow-wrap:anywhere;vertical-align:middle}
@media(max-width:1200px){
  #panelShell .inst-axes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  #panelShell .inst-axes-grid{grid-template-columns:minmax(0,1fr)}
  #panelShell .inst-axis-card{padding:19px}
  #panelShell .inst-axis-card h2{min-height:0}
  #panelShell .inst-axis-actions>.button{min-width:90px}
}
@media(prefers-reduced-motion:reduce){
  #panelShell .inst-progress-track i{transition:none}
}


/* El diálogo y el centro de avisos son hermanos del panel; la paleta de diseño
   se aplica solo si el modo visual de Super Administrador está abierto. */
body[data-panel-role="admin"] #dialogLayer,
body[data-panel-role="admin"] #notificationDrawer,
body[data-panel-role="admin"] #toast{
  --bg:#F5F7F3;--panel:#FFFFFF;--panel2:#F0F5EF;
  --text:#171A1C;--muted:#627468;--muted-strong:#3B5144;
  --line:#DCE9DE;--purple:#176B32;--purple-soft:#E5F3E8;
  --green:#176B32;--green-soft:#E5F3E8;
  --orange:#926A13;--orange-soft:#FFF3D6;
  --blue:#176B32;--blue-soft:#DCE9DE
}
body[data-theme="dark"][data-panel-role="admin"] #dialogLayer,
body[data-theme="dark"][data-panel-role="admin"] #notificationDrawer,
body[data-theme="dark"][data-panel-role="admin"] #toast{
  --bg:#111D16;--panel:#1A2C20;--panel2:#24382B;
  --text:#F4F7F1;--muted:#ADBDAD;--muted-strong:#D7E3D6;
  --line:#3C5742;--purple:#5BC77A;--purple-soft:#284D35;
  --green:#5BC77A;--green-soft:#284D35;
  --orange:#E3BE67;--orange-soft:#46371C;
  --blue:#82D69A;--blue-soft:#264A36
}
body[data-panel-role="admin"] #dialogLayer .button.primary{
  background:#176B32;border-color:#176B32;color:#FFFFFF
}
body[data-panel-role="admin"] #dialogLayer .button.primary:hover{
  background:#103D27;border-color:#103D27
}
body[data-panel-role="admin"] #dialogLayer .admin-proof-preview,
body[data-panel-role="admin"] #dialogLayer .admin-detail-empty{
  background:var(--panel2)
}
body[data-panel-role="admin"] #dialogLayer .inst-axis-tag{
  color:var(--purple);background:var(--purple-soft);border-color:var(--line)
}
body[data-panel-role="admin"] #dialogLayer .field textarea,
body[data-panel-role="admin"] #dialogLayer .field input,
body[data-panel-role="admin"] #dialogLayer .field select{
  background:var(--panel);color:var(--text);border-color:var(--line)
}


/* Auditoría final de legibilidad y navegación (solo Super Administrador). */
#panelShell .sidebar{
  scrollbar-width:auto;
  scrollbar-color:#86AD8E #103D27;
  padding-top:18px
}
#panelShell .sidebar::-webkit-scrollbar{width:9px}
#panelShell .sidebar::-webkit-scrollbar-thumb{background:#86AD8E;border-radius:20px}
#panelShell .sidebar::-webkit-scrollbar-track{background:#103D27}
#panelShell .sidebar .sidebar-brand{margin-bottom:15px}
#panelShell .sidebar .workspace-label{margin-bottom:16px}
#panelShell .sidebar #primaryNavigation{gap:4px}
#panelShell .sidebar .nav-item{
  min-height:46px;
  font-size:12px;
  line-height:1.4;
  padding:11px 12px;
  scroll-margin-block:14px
}
#panelShell .sidebar .inst-sidebar-heading{
  font-size:11px;
  line-height:1.45;
  letter-spacing:.8px;
  padding:16px 12px 9px;
  margin:8px 0 2px;
  color:#E4C77D
}
#panelShell .sidebar #primaryNavigation>.inst-sidebar-heading:first-child{
  margin-top:0;border-top:0;padding-top:8px
}
#panelShell .sidebar .sidebar-brand-subtitle{
  font-size:11px;
  letter-spacing:.5px;
  line-height:1.45;
  text-transform:none
}
#panelShell .sidebar .workspace-label{font-size:11px;line-height:1.4}
#panelShell .sidebar .workspace-chip{font-size:10px}
#panelShell .sidebar .account-name small{font-size:11px}
#panelShell .sidebar .help-card p{font-size:12px}
#panelShell .admin-module .page-heading p,
#panelShell .inst-page .page-heading p{font-size:13px}
#panelShell .admin-module .metric-label,
#panelShell .admin-module .metric-footer{
  font-size:12px;
  line-height:1.5
}
#panelShell .admin-module-table .data-table th{
  font-size:12px;
  line-height:1.4;
  letter-spacing:.1px
}
#panelShell .admin-module-table .data-table td{
  font-size:13px;
  line-height:1.55
}
#panelShell .admin-module-hint,
#panelShell .admin-info-grid .info-panel p,
#panelShell .admin-settings-feature span,
#panelShell .admin-form-guide span,
#panelShell .admin-report-lines>div{
  font-size:12px;
  line-height:1.6
}
#panelShell .inst-axis-card p,
#panelShell .inst-axis-counts,
#panelShell .inst-axis-tag,
#panelShell .inst-axis-number{font-size:12px}
#panelShell .inst-axis-card .inst-axis-number{letter-spacing:.4px}
#panelShell .inst-page .inst-impact-row>div:first-child{font-size:12px}
body[data-panel-role="admin"] #dialogLayer .dialog-note,
body[data-panel-role="admin"] #dialogLayer .admin-detail-list span,
body[data-panel-role="admin"] #dialogLayer .admin-detail-intro p,
body[data-panel-role="admin"] #dialogLayer .admin-checklist span,
body[data-panel-role="admin"] #dialogLayer .admin-detail-empty,
body[data-panel-role="admin"] #dialogLayer .admin-detail-section>p,
body[data-panel-role="admin"] #dialogLayer .admin-proof-preview p{
  font-size:12px;
  line-height:1.65
}
body[data-panel-role="admin"] #dialogLayer .dialog-header p{font-size:13px;line-height:1.55}
body[data-panel-role="admin"] #dialogLayer .detail-list dt{font-size:12px}
#panelShell .table-scroll-hint,
body[data-panel-role="admin"] #dialogLayer .table-scroll-hint{
  display:none;
  margin:12px 0 10px;
  padding:10px 12px;
  background:var(--purple-soft);
  color:var(--muted-strong);
  border:1px solid var(--line);
  border-radius:9px;
  font-size:12px;
  font-weight:750;
  line-height:1.45
}
#panelShell .table-wrapper,
body[data-panel-role="admin"] #dialogLayer .table-wrapper{
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
  scroll-behavior:smooth
}
#panelShell .table-wrapper:focus-visible,
body[data-panel-role="admin"] #dialogLayer .table-wrapper:focus-visible{
  outline:2px solid #C69A3C;
  outline-offset:-2px
}
#panelShell .admin-institutional-overview{min-width:0}
#panelShell .admin-institutional-overview .card-heading{gap:16px;flex-wrap:wrap}
#panelShell .admin-institutional-pulse{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:16px
}
#panelShell .admin-institutional-pulse-card{
  display:grid;
  align-content:start;
  gap:9px;
  min-height:133px;
  padding:17px 16px;
  border:1px solid var(--line);
  border-top:3px solid #C69A3C;
  border-radius:13px;
  background:var(--panel2);
  text-align:left;
  color:var(--text);
  transition:transform .15s ease,border-color .15s ease
}
#panelShell .admin-institutional-pulse-card:hover{
  border-color:var(--purple);
  transform:translateY(-1px)
}
#panelShell .admin-institutional-pulse-card:focus-visible{
  outline:2px solid #C69A3C;outline-offset:2px
}
#panelShell .admin-institutional-pulse-card .admin-pulse-count{
  font-size:27px;
  font-weight:900;
  line-height:1.1;
  color:var(--purple)
}
#panelShell .admin-institutional-pulse-card strong{
  font-size:13px;
  line-height:1.4;
  overflow-wrap:anywhere
}
#panelShell .admin-institutional-pulse-card small{
  font-size:12px;
  line-height:1.45;
  color:var(--muted-strong)
}
#panelShell .admin-institutional-note{
  font-size:12px;
  color:var(--muted-strong);
  margin:12px 0 0
}
@media(max-width:1250px){
  #panelShell .admin-institutional-pulse{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:970px){
  #panelShell .table-scroll-hint,
  body[data-panel-role="admin"] #dialogLayer .table-scroll-hint{display:block}
  #panelShell .admin-module-table .table-wrapper{
    overflow-x:auto;
    scrollbar-width:auto;
    scrollbar-color:var(--purple) var(--panel2)
  }
  #panelShell .admin-module-table .data-table{min-width:730px}
  #panelShell .admin-module-table .data-table td:last-child .button{
    min-height:40px;
    padding-inline:12px
  }
}
@media(max-width:620px){
  #panelShell .admin-institutional-pulse{grid-template-columns:1fr}
  #panelShell .admin-institutional-pulse-card{min-height:104px}
  #panelShell .admin-dashboard .card-padding{min-width:0}
  #panelShell .sidebar .sidebar-brand{margin-bottom:11px}
}
@media(max-height:730px) and (min-width:971px){
  #panelShell .sidebar{padding-top:12px;padding-bottom:9px}
  #panelShell .sidebar .sidebar-brand{margin-bottom:9px}
  #panelShell .sidebar .sidebar-brand-art{padding:4px}
  #panelShell .sidebar .workspace-label{margin-bottom:12px}
  #panelShell .sidebar .help-card{margin-bottom:12px;padding:13px}
}
@media(prefers-reduced-motion:reduce){
  #panelShell .admin-institutional-pulse-card{transition:none}
  #panelShell .table-wrapper{scroll-behavior:auto}
}

/* OREM360 Inicio inteligente — estilos aislados, sin modificar la identidad. */
#panelShell .admin-dashboard .admin-overview-metrics{
  grid-template-columns:repeat(3,minmax(0,1fr))
}
#panelShell .admin-dashboard-metric-link{
  display:flex;width:100%;min-width:0;height:100%;min-height:119px;
  align-items:flex-start;padding:21px 20px;
  color:var(--text);font:inherit;text-align:left;cursor:pointer;
  transition:transform .16s ease,border-color .16s ease
}
#panelShell .admin-dashboard-metric-link:hover{
  transform:translateY(-2px);border-color:var(--purple)
}
#panelShell .admin-dashboard-metric-link:focus-visible,
#panelShell .admin-dashboard-shortcut:focus-visible{
  outline:3px solid #C69A3C;outline-offset:3px
}
#panelShell .admin-dashboard-updated{
  margin:-4px 0 17px;
  font-size:12px;color:var(--muted-strong);font-weight:600
}
#panelShell .admin-dashboard-priorities{margin-bottom:19px}
#panelShell .admin-dashboard-live,
#panelShell .admin-dashboard-pending,
#panelShell .admin-dashboard-quick{
  min-width:0
}
#panelShell .admin-dashboard-live-total{
  display:flex;align-items:baseline;gap:12px;margin:10px 0
}
#panelShell .admin-dashboard-live-total strong{
  color:var(--purple);font-size:32px;line-height:1;font-weight:900
}
#panelShell .admin-dashboard-live-total span{
  font-size:13px;color:var(--muted-strong)
}
#panelShell .admin-dashboard-live-row{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:7px 12px;padding:10px 0;border-top:1px solid var(--line);
  font-size:12px
}
#panelShell .admin-dashboard-live-row strong{
  font-weight:800;color:var(--text)
}
#panelShell .admin-dashboard-live-row small{
  color:var(--muted-strong);font-size:12px
}
#panelShell .admin-dashboard-platform{margin:18px 0}
#panelShell .admin-dashboard-platform-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;margin:14px 0
}
#panelShell .admin-dashboard-platform-grid>div{
  display:flex;flex-direction:column;gap:8px;min-width:0;
  background:var(--panel2);border:1px solid var(--line);
  border-radius:12px;padding:14px
}
#panelShell .admin-dashboard-platform-grid strong{
  font-size:12px;font-weight:800;color:var(--text)
}
#panelShell .admin-dashboard-platform-grid span{
  font-size:12px;color:var(--muted-strong);overflow-wrap:anywhere
}
#panelShell .admin-dashboard-quick-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;margin-top:13px
}
#panelShell .admin-dashboard-shortcut{
  display:flex;align-items:center;gap:10px;min-height:52px;
  padding:12px;border:1px solid var(--line);border-radius:12px;
  background:var(--panel2);color:var(--text);font:inherit;
  font-size:12px;font-weight:800;text-align:left;cursor:pointer;
  transition:border-color .16s ease,transform .16s ease
}
#panelShell .admin-dashboard-shortcut:hover{
  border-color:var(--purple);transform:translateY(-2px)
}
#panelShell .admin-dashboard-shortcut svg{
  width:19px;height:19px;flex:0 0 auto;color:var(--purple)
}
#panelShell .admin-institutional-pulse-card .admin-pulse-count svg{
  width:24px;height:24px
}
@media(max-width:1250px){
  #panelShell .admin-dashboard-platform-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}
@media(max-width:970px){
  #panelShell .admin-dashboard .admin-overview-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}
@media(max-width:620px){
  #panelShell .admin-dashboard .admin-overview-metrics,
  #panelShell .admin-dashboard-platform-grid,
  #panelShell .admin-dashboard-quick-grid{
    grid-template-columns:1fr
  }
  #panelShell .admin-dashboard-live-row{
    align-items:flex-start;flex-direction:column;gap:4px
  }
}
@media(prefers-reduced-motion:reduce){
  #panelShell .admin-dashboard-metric-link,
  #panelShell .admin-dashboard-shortcut{transition:none}
  #panelShell .admin-dashboard-metric-link:hover,
  #panelShell .admin-dashboard-shortcut:hover{transform:none}
}

/* OREM360 — Profesores: refinamiento del directorio sin alterar marca */
#panelShell .admin-teachers .teacher-directory-toolbar{display:grid;gap:12px}
#panelShell .admin-teachers .teacher-extra-filters{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px
}
#panelShell .admin-teachers .teacher-extra-filters label{
  display:flex;flex-direction:column;min-width:0;gap:5px;
  color:var(--muted-strong);font-size:11px;font-weight:700
}
#panelShell .admin-teachers .teacher-extra-filters select{
  width:100%;min-width:0;max-width:100%;
  border:1px solid var(--line);border-radius:11px;
  padding:10px 12px;background:var(--panel2);color:var(--text);
  font:inherit;font-size:12px
}
#panelShell .admin-teachers .teacher-extra-filters select:focus-visible{
  outline:2px solid var(--purple);outline-offset:2px
}
#panelShell .admin-teachers .teacher-summary-note{
  margin:-4px 25px 14px;color:var(--muted-strong);
  font-size:11px;line-height:1.5
}
#panelShell .admin-teachers-directory .table-wrapper{
  overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch
}
#panelShell .admin-teachers-directory .data-table{min-width:900px}
#panelShell .admin-teachers-directory .data-table th,
#panelShell .admin-teachers-directory .data-table td{
  padding:13px 14px;vertical-align:middle
}
#panelShell .admin-teachers .teacher-specialty{
  display:block;max-width:210px;overflow-wrap:anywhere;line-height:1.5
}
#panelShell .admin-teachers .teacher-identity{
  min-width:180px;max-width:260px
}
#panelShell .admin-teachers .teacher-identity strong{
  overflow-wrap:anywhere;line-height:1.45
}
#panelShell .admin-teachers .teacher-compact-actions{
  display:flex;align-items:center;gap:6px;white-space:nowrap
}
#panelShell .admin-teachers .teacher-compact-actions .button{
  padding:9px 11px;min-height:35px
}
#panelShell .admin-teachers .teacher-number-caption,
#panelShell .admin-teachers .teacher-status-caption{
  display:block;margin-top:4px;font-size:10px;line-height:1.4;
  color:var(--muted-strong);white-space:normal
}
#panelShell .teacher-detail-heading{
  display:flex;align-items:center;gap:15px;padding:5px 0 16px
}
#panelShell .teacher-detail-heading>div{display:grid;gap:6px;min-width:0}
#panelShell .teacher-detail-heading strong{
  font-size:15px;color:var(--text);overflow-wrap:anywhere
}
#panelShell .teacher-detail-heading span{
  font-size:12px;color:var(--muted-strong);overflow-wrap:anywhere
}
#panelShell .teacher-detail-photo{
  width:72px;height:72px;flex:none;border-radius:17px;
  object-fit:cover;border:1px solid var(--line);
  background:var(--purple-soft)
}
#panelShell .teacher-detail-performance{margin:17px 0}
#panelShell .teacher-detail-performance h3{
  color:var(--text);font-weight:800;margin:0 0 12px
}
#panelShell .teacher-performance-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px
}
#panelShell .teacher-performance-grid>div{
  display:grid;gap:6px;padding:12px;border:1px solid var(--line);
  border-radius:12px;background:var(--panel2)
}
#panelShell .teacher-performance-grid strong{
  color:var(--purple);font-size:22px;font-weight:900
}
#panelShell .teacher-performance-grid span{
  color:var(--muted-strong);font-size:11px;line-height:1.45
}
/* El menu "Opciones" esta dentro de #dialogLayer, NO de #panelShell.
   La regla anterior no lo alcanzaba y los botones se pegaban entre si. */
body[data-panel-role="admin"] #dialogLayer .teacher-action-menu{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  align-items:stretch;
  width:100%;
  max-width:100%;
  min-width:0;
  margin:20px 0 4px;
}
body[data-panel-role="admin"] #dialogLayer .teacher-action-menu .button{
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  min-width:0;
  min-height:49px;
  margin:0;
  padding:11px 13px;
  border-radius:11px;
  font-family:var(--orem-font-body,Inter,"Segoe UI",sans-serif);
  font-size:13px;
  font-weight:700;
  line-height:1.45;
  text-align:center;
  white-space:normal;
  overflow-wrap:anywhere;
}
body[data-panel-role="admin"] #dialogLayer .teacher-action-menu .button.secondary{
  background:var(--panel);
  border:1px solid var(--line);
  color:var(--text);
}
body[data-panel-role="admin"] #dialogLayer .teacher-action-menu .button.secondary:hover:not(:disabled){
  background:var(--panel2);
  border-color:#85B293;
}
body[data-panel-role="admin"] #dialogLayer .teacher-action-menu .button:focus-visible{
  outline:3px solid #C69A3C;
  outline-offset:2px;
}
body[data-theme="dark"][data-panel-role="admin"] #dialogLayer .teacher-action-menu .button.secondary{
  background:var(--panel);
  color:var(--text);
  border-color:var(--line);
}
body[data-theme="dark"][data-panel-role="admin"] #dialogLayer .teacher-action-menu .button.secondary:hover:not(:disabled){
  background:var(--panel2);
  border-color:#85B293;
}
@media(max-width:1100px){
  #panelShell .admin-teachers .teacher-extra-filters{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}
@media(max-width:600px){
  #panelShell .admin-teachers .teacher-directory-toolbar{padding:0 14px 16px}
  #panelShell .admin-teachers .teacher-extra-filters,
  #panelShell .teacher-performance-grid{
    grid-template-columns:1fr
  }
  body[data-panel-role="admin"] #dialogLayer .teacher-action-menu{
    grid-template-columns:minmax(0,1fr);
    gap:9px;
  }
  #panelShell .teacher-detail-photo{width:58px;height:58px}
}


/* OREM360 · Directorio equilibrado y expediente docente de pantalla completa.
   Solo afecta Profesores; preserva identidad, acceso y paneles existentes. */
#panelShell .admin-teachers-directory .data-table{
  min-width:920px;
  table-layout:fixed
}
#panelShell .admin-teachers-directory .data-table th:nth-child(1){width:24%}
#panelShell .admin-teachers-directory .data-table th:nth-child(2){width:20%}
#panelShell .admin-teachers-directory .data-table th:nth-child(3){width:10%}
#panelShell .admin-teachers-directory .data-table th:nth-child(4){width:13%}
#panelShell .admin-teachers-directory .data-table th:nth-child(5){width:13%}
#panelShell .admin-teachers-directory .data-table th:nth-child(6){width:20%}
#panelShell .admin-teachers-directory .data-table td{
  overflow-wrap:break-word;
  line-height:1.45
}
#panelShell .admin-teachers-directory .data-table td:last-child{
  white-space:normal
}
#panelShell .admin-teachers .teacher-identity{min-width:0;max-width:100%}
#panelShell .admin-teachers .teacher-specialty{max-width:100%;overflow-wrap:break-word}
#panelShell .admin-teachers .teacher-compact-actions{
  display:flex;flex-wrap:wrap;justify-content:flex-end;
  gap:6px;min-width:0;white-space:normal
}
#panelShell .admin-teachers .teacher-compact-actions .button{
  max-width:100%;padding:8px 10px;min-height:36px;
  font-size:11px
}
#panelShell .teacher-profile-page{display:grid;gap:16px;max-width:1280px;margin:0 auto}
#panelShell .teacher-profile-topbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
#panelShell .teacher-profile-hero{
  display:grid;grid-template-columns:80px minmax(0,1fr) auto;
  gap:18px;align-items:center;padding:24px
}
#panelShell .teacher-profile-picture{
  width:80px;height:80px;border-radius:18px;object-fit:cover;
  background:var(--purple-soft);border:1px solid var(--line)
}
#panelShell .teacher-profile-title{min-width:0}
#panelShell .teacher-profile-title h1{
  font-size:clamp(19px,2vw,27px);line-height:1.22;margin:0 0 7px;
  overflow-wrap:break-word;color:var(--text)
}
#panelShell .teacher-profile-title p{
  color:var(--muted-strong);font-size:13px;margin:0 0 7px;line-height:1.45
}
#panelShell .teacher-profile-title small{color:var(--muted-strong)}
#panelShell .teacher-profile-hero-actions{
  display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap
}
#panelShell .teacher-profile-metrics{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px
}
#panelShell .teacher-profile-metric{
  padding:17px 18px;display:grid;align-content:space-between;gap:9px
}
#panelShell .teacher-profile-metric span{font-size:11px;font-weight:700;color:var(--muted-strong)}
#panelShell .teacher-profile-metric strong{
  color:var(--text);font-size:clamp(16px,2vw,23px);
  line-height:1.25;overflow-wrap:break-word
}
#panelShell .teacher-profile-tabs{
  display:flex;gap:6px;padding:5px;border:1px solid var(--line);
  border-radius:14px;background:var(--panel2);min-width:0;max-width:100%;
  overflow-x:auto;scrollbar-width:thin
}
#panelShell .teacher-profile-tabs button{
  appearance:none;border:1px solid transparent;border-radius:9px;
  background:transparent;color:var(--muted-strong);font-weight:800;
  padding:11px 17px;min-height:42px;flex:none
}
#panelShell .teacher-profile-tabs button.active{
  color:var(--text);background:var(--panel);border-color:var(--line);
  box-shadow:var(--shadow)
}
#panelShell .teacher-profile-tabs button:focus-visible{outline:2px solid #C69A3C}
#panelShell .teacher-profile-body{min-width:0}
#panelShell .teacher-profile-columns{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px
}
#panelShell .teacher-profile-card{padding:23px;min-width:0}
#panelShell .teacher-profile-wide{grid-column:1/-1}
#panelShell .teacher-profile-card h2{font-size:17px;margin:0 0 16px;color:var(--text)}
#panelShell .teacher-profile-card h3{font-size:14px;margin:17px 0 9px}
#panelShell .teacher-profile-card p{color:var(--muted-strong);font-size:12px;line-height:1.6}
#panelShell .teacher-profile-card dl{margin:0;min-width:0}
#panelShell .teacher-profile-field{
  display:flex;justify-content:space-between;align-items:flex-start;
  gap:16px;border-bottom:1px solid var(--line);padding:12px 0
}
#panelShell .teacher-profile-field:last-child{border-bottom:0}
#panelShell .teacher-profile-field dt{
  color:var(--muted-strong);font-size:12px;max-width:42%
}
#panelShell .teacher-profile-field dd{
  margin:0;text-align:right;color:var(--text);font-size:12px;
  font-weight:750;max-width:58%;min-width:0;overflow-wrap:anywhere
}
#panelShell .teacher-profile-section-top{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap
}
#panelShell .teacher-profile-section-top h2{margin-bottom:2px}
#panelShell .teacher-profile-filterbar{
  display:grid;grid-template-columns:minmax(0,2fr) minmax(160px,1fr);
  gap:10px;margin:15px 0
}
#panelShell .teacher-profile-filterbar input,
#panelShell .teacher-profile-filterbar select{
  width:100%;min-width:0;min-height:42px;border:1px solid var(--line);
  border-radius:10px;background:var(--panel2);padding:9px 12px;color:var(--text)
}
#panelShell .teacher-profile-course-list{display:grid}
#panelShell .teacher-profile-course-row{
  display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) auto;
  align-items:center;gap:16px;border-bottom:1px solid var(--line);padding:15px 0
}
#panelShell .teacher-profile-course-row:last-child{border-bottom:0}
#panelShell .teacher-profile-course-row>div{display:grid;gap:5px;min-width:0}
#panelShell .teacher-profile-course-row strong{
  font-size:12px;color:var(--text);overflow-wrap:anywhere
}
#panelShell .teacher-profile-course-row small{
  color:var(--muted-strong);font-size:11px;overflow-wrap:anywhere
}
#panelShell .teacher-profile-course-row span{
  font-size:12px;color:var(--text);font-weight:700
}
#panelShell .teacher-profile-empty{padding:24px;text-align:center}
#panelShell .teacher-profile-performance{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px
}
#panelShell .teacher-profile-performance>div{
  display:grid;gap:8px;padding:16px;border:1px solid var(--line);
  border-radius:12px;background:var(--panel2)
}
#panelShell .teacher-profile-performance strong{font-size:25px;color:var(--purple)}
#panelShell .teacher-profile-performance span{font-size:11px;color:var(--muted-strong)}
#panelShell .teacher-profile-history{display:grid;gap:8px;padding-left:18px}
#panelShell .teacher-profile-history li{padding:10px 0;border-bottom:1px solid var(--line)}
#panelShell .teacher-profile-history li strong,
#panelShell .teacher-profile-history li span{display:block}
#panelShell .teacher-profile-history li span{color:var(--muted-strong);font-size:11px;margin-top:5px}
#panelShell .teacher-profile-form-group[hidden]{display:none!important}
#panelShell .teacher-profile-form-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px
}
#panelShell .teacher-profile-form-span{grid-column:1/-1}
#panelShell .teacher-profile-form-grid .field{min-width:0}
#panelShell .teacher-profile-form-grid .field input,
#panelShell .teacher-profile-form-grid .field select,
#panelShell .teacher-profile-form-grid .field textarea{
  background:var(--panel2);width:100%;max-width:100%;min-width:0
}
#panelShell .teacher-profile-photo-editor{
  display:flex;gap:18px;align-items:flex-start;min-width:0;margin:13px 0 22px
}
#panelShell .teacher-profile-photo-editor img{
  height:80px;width:80px;flex:none;object-fit:cover;
  border-radius:16px;border:1px solid var(--line)
}
#panelShell .teacher-profile-photo-editor>div{min-width:0;flex:1}
#panelShell .teacher-profile-photo-actions,
#panelShell .teacher-profile-security-actions{
  display:flex;gap:8px;flex-wrap:wrap;margin-top:11px
}
#panelShell .teacher-profile-form-actions{
  display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;
  margin-top:22px;padding-top:18px;border-top:1px solid var(--line)
}
#panelShell .teacher-profile-note,
#panelShell .teacher-profile-counter{
  color:var(--muted-strong);font-size:11px;line-height:1.5
}
#panelShell .teacher-profile-counter{text-align:right}
@media(max-width:1250px){
  #panelShell .teacher-profile-hero{
    grid-template-columns:75px minmax(0,1fr)
  }
  #panelShell .teacher-profile-hero-actions{grid-column:1/-1;justify-content:flex-start}
  #panelShell .teacher-profile-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px){
  #panelShell .teacher-profile-columns{grid-template-columns:minmax(0,1fr)}
  #panelShell .teacher-profile-card{padding:17px}
  #panelShell .teacher-profile-performance{grid-template-columns:repeat(2,minmax(0,1fr))}
  #panelShell .teacher-profile-course-row{
    grid-template-columns:minmax(0,1fr) auto
  }
  #panelShell .teacher-profile-course-row>div:nth-child(2){grid-column:1}
  #panelShell .teacher-profile-course-row>.button{grid-row:1/3;grid-column:2}
}
@media(max-width:500px){
  #panelShell .teacher-profile-hero{grid-template-columns:58px minmax(0,1fr);padding:15px;gap:11px}
  #panelShell .teacher-profile-picture{width:58px;height:58px}
  #panelShell .teacher-profile-title h1{font-size:18px}
  #panelShell .teacher-profile-metrics{gap:8px}
  #panelShell .teacher-profile-metric{padding:12px}
  #panelShell .teacher-profile-course-row{grid-template-columns:1fr}
  #panelShell .teacher-profile-course-row>div:nth-child(2),
  #panelShell .teacher-profile-course-row>.button{grid-column:auto;grid-row:auto}
  #panelShell .teacher-profile-course-row>.button{justify-self:start}
  #panelShell .teacher-profile-filterbar,
  #panelShell .teacher-profile-form-grid,
  #panelShell .teacher-profile-performance{grid-template-columns:minmax(0,1fr)}
  #panelShell .teacher-profile-form-span{grid-column:1}
  #panelShell .teacher-profile-photo-editor{flex-direction:column}
  #panelShell .teacher-profile-field dt{max-width:40%}
  #panelShell .teacher-profile-field dd{max-width:60%}
}


#panelShell .teacher-profile-initials{
  display:grid;place-items:center;
  font-size:21px;letter-spacing:.03em;font-weight:900;
  color:var(--purple);background:var(--purple-soft)
}
#panelShell .teacher-profile-photo-editor .teacher-profile-picture{
  height:80px;width:80px;flex:none;border-radius:16px;
  border:1px solid var(--line)
}


/* OREM360 - Listados administrativos acotados: paginador único por directorio. */
#panelShell .orem-pagination{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:12px;padding:16px 18px;
  border-top:1px solid var(--line);background:var(--panel);
  border-radius:0 0 15px 15px;max-width:100%;
}
#panelShell .orem-pagination-description{
  color:var(--muted-strong);font-family:var(--orem-font-body,Inter,sans-serif);
  font-size:12px;line-height:1.5;font-weight:650;
}
#panelShell .orem-paging-size-label{
  display:inline-flex;align-items:center;gap:8px;
  font-size:12px;font-weight:700;color:var(--muted-strong);
}
#panelShell .orem-paging-size-label select{
  background:var(--panel2);color:var(--text);
  border:1px solid var(--line);border-radius:9px;
  padding:8px 26px 8px 9px;min-height:40px;
}
#panelShell .orem-paging-buttons{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
#panelShell .orem-paging-buttons button{
  appearance:none;min-height:40px;min-width:40px;padding:7px 11px;
  border:1px solid var(--line);border-radius:10px;
  background:var(--panel2);color:var(--text);
  font:700 12px var(--orem-font-body,Inter,sans-serif);
  cursor:pointer;transition:background-color .14s,border-color .14s;
}
#panelShell .orem-paging-buttons button:hover:not([disabled]){
  border-color:#619775;background:var(--green-soft);
}
#panelShell .orem-paging-buttons button.active{
  color:#fff;background:#176B32;border-color:#176B32;
}
#panelShell .orem-paging-buttons button[disabled]{opacity:.45;cursor:default}
#panelShell .orem-paging-buttons button:focus-visible,
#panelShell .orem-paging-size-label select:focus-visible{
  outline:2px solid #C69A3C;outline-offset:2px;
}
@media(max-width:768px){
  #panelShell .orem-pagination{padding:14px;justify-content:center}
  #panelShell .orem-pagination-description{flex-basis:100%;text-align:center}
  #panelShell .orem-paging-buttons{justify-content:center}
}
@media(max-width:390px){
  #panelShell .orem-paging-buttons button{min-width:35px;padding:8px}
  #panelShell .orem-pagination{gap:9px}
}



/* OREM360 — Auditoria de controles del expediente docente (lectura y edicion).
   Solo se aplica dentro de Profesores; no redisenia las otras secciones.
   Los cinco botones de la ficha y los cuatro de edicion se ven como acciones
   reales, con estados visibles, accesibilidad y ancho adaptable. */
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  align-items:stretch;
  gap:9px;
  padding:9px;
  width:100%;
  max-width:100%;
  overflow:visible;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--panel2);
}
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs[data-mode="edit"]{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs button{
  appearance:none;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  min-height:48px;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel);
  color:var(--text);
  font-family:var(--orem-font-body,Inter,"Segoe UI",sans-serif);
  font-size:13px;
  font-weight:700;
  line-height:1.4;
  letter-spacing:0;
  text-align:center;
  white-space:normal;
  overflow-wrap:break-word;
  box-shadow:0 1px 2px rgba(14,37,24,.04);
  transition:background-color .15s ease,border-color .15s ease,
    color .15s ease,box-shadow .15s ease;
}
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs button:hover:not(.active){
  background:var(--green-soft);
  border-color:#81ad8e;
  color:var(--text);
}
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs button.active,
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs button[aria-current="page"]{
  background:#176B32;
  border-color:#176B32;
  color:#fff;
  box-shadow:0 2px 7px rgba(20,79,39,.15);
}
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs button.active:hover{
  background:#125527;
  border-color:#125527;
}
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs button:focus-visible{
  outline:3px solid #C69A3C;
  outline-offset:3px;
  position:relative;
  z-index:1;
}
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs button:active{
  transform:translateY(1px);
}
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-topbar .button,
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-hero-actions .button,
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-photo-actions .button,
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-security-actions .button,
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-form-actions .button{
  min-height:44px;
  padding:10px 16px;
  border-radius:10px;
  font-family:var(--orem-font-body,Inter,"Segoe UI",sans-serif);
  font-size:13px;
  font-weight:700;
  line-height:1.4;
  text-align:center;
  white-space:normal;
  overflow-wrap:break-word;
}
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-hero-actions{
  gap:10px;
  justify-content:flex-end;
  min-width:0;
}
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-photo-actions,
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-security-actions{
  display:flex;
  align-items:stretch;
  justify-content:flex-start;
  gap:10px;
  flex-wrap:wrap;
  min-width:0;
}
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-photo-actions .button{
  flex:0 1 auto;
  min-width:148px;
}
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-security-actions .button{
  flex:1 1 155px;
}
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-form-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:25px;
  padding-top:18px;
  border-top:1px solid var(--line);
}
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-form-actions .button{
  min-height:46px;
  min-width:164px;
}
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-form-actions .button.primary,
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-hero-actions .button.primary{
  background:#176B32;
  border-color:#176B32;
  color:#fff;
}
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-form-actions .button.primary:hover,
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-hero-actions .button.primary:hover{
  background:#125527;
  border-color:#125527;
}
body[data-theme="dark"][data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs button{
  border-color:var(--line);
  background:var(--panel);
  color:var(--text);
}
body[data-theme="dark"][data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs button:hover:not(.active){
  background:var(--green-soft);
  border-color:#7cad83;
}
body[data-theme="dark"][data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs button.active,
body[data-theme="dark"][data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs button[aria-current="page"]{
  background:#176B32;
  border-color:#489b60;
  color:#fff;
}
@media(max-width:1100px){
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs[data-mode="edit"]{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs[data-mode="view"] button:last-child{
    grid-column:span 2;
  }
}
@media(max-width:700px){
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs,
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs[data-mode="edit"]{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    padding:7px;
  }
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs button{
    min-height:46px;
    padding:9px 8px;
    font-size:12px;
  }
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-hero-actions{
    justify-content:flex-start;
  }
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-photo-actions .button,
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-security-actions .button{
    flex:1 1 155px;
  }
}
@media(max-width:480px){
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-form-actions{
    display:grid;
    grid-template-columns:minmax(0,1fr);
  }
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-form-actions .button,
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-hero-actions .button,
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-photo-actions .button,
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-security-actions .button{
    width:100%;
    min-width:0;
  }
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-hero-actions .button{
    flex:1 1 165px;
  }
}
@media(prefers-reduced-motion:reduce){
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs button{
    transition:none;
    transform:none;
  }
}

/* Directorios y fichas: controles legibles y consistentes en cualquier ancho. */
body[data-panel-role="admin"] #panelShell .admin-module-table .data-table .button{
  display:inline-flex;align-items:center;justify-content:center;
  vertical-align:middle;min-height:38px;margin:3px 2px;
  padding:8px 12px;line-height:1.35;white-space:normal;
  text-align:center;overflow-wrap:anywhere;
}
body[data-panel-role="admin"] #dialogLayer .form-actions{
  display:flex;justify-content:flex-end;align-items:stretch;
  flex-wrap:wrap;gap:10px;min-width:0;
}
body[data-panel-role="admin"] #dialogLayer .form-actions .button{
  display:inline-flex;align-items:center;justify-content:center;
  flex:0 1 auto;min-height:44px;max-width:100%;
  margin:0;padding:10px 14px;
  line-height:1.4;white-space:normal;text-align:center;
  overflow-wrap:anywhere;
}
body[data-panel-role="admin"] #dialogLayer .student-profile-summary{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;margin:16px 0;
}
body[data-panel-role="admin"] #dialogLayer .student-profile-summary>div{
  min-width:0;padding:15px;background:var(--panel2);
  border:1px solid var(--line);border-radius:12px;
}
body[data-panel-role="admin"] #dialogLayer .student-profile-summary strong{
  display:block;font-size:19px;line-height:1.25;color:var(--text);
  overflow-wrap:anywhere;
}
body[data-panel-role="admin"] #dialogLayer .student-profile-summary span{
  display:block;margin-top:6px;font-size:12px;color:var(--muted-strong);
}
body[data-panel-role="admin"] #dialogLayer .student-profile-detail .detail-list dd{
  max-width:65%;overflow-wrap:anywhere;
}
body[data-panel-role="admin"] #panelShell .teacher-profile-tabs button{
  min-height:42px;line-height:1.4;overflow-wrap:anywhere;
}
@media(max-width:700px){
  body[data-panel-role="admin"] #dialogLayer .form-actions .button{
    flex:1 1 170px;
  }
  body[data-panel-role="admin"] #dialogLayer .student-profile-summary{
    grid-template-columns:minmax(0,1fr);
  }
  body[data-panel-role="admin"] #dialogLayer .student-profile-detail .detail-list dd{
    max-width:100%;
  }
}

/* Cierre visual: fichas y acciones uniformes, sin pestañas deformadas. */
body[data-panel-role="admin"] #dialogLayer .student-profile-status{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  margin:12px 0 16px;font:700 13px/1.5 var(--orem-font-body,Inter,sans-serif);
  color:var(--text);
}
body[data-panel-role="admin"] #dialogLayer .student-profile-detail{
  min-width:0;
}
body[data-panel-role="admin"] #dialogLayer .student-profile-detail .form-actions{
  border-top:1px solid var(--line);padding-top:18px;
}
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs button,
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-topbar .button,
body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-form-actions .button{
  font-family:var(--orem-font-body,Inter,"Segoe UI",sans-serif);
  font-size:13px;line-height:1.45;
}
@media(max-width:1100px){
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs,
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs[data-mode="edit"]{
    display:flex;flex-wrap:nowrap;overflow-x:auto;
    gap:8px;scrollbar-width:thin;scroll-snap-type:x proximity;
    overscroll-behavior-x:contain;
  }
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs button{
    flex:0 0 145px;min-width:145px;max-width:190px;
    scroll-snap-align:start;
  }
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs[data-mode="edit"] button{
    flex-basis:188px;min-width:188px;
  }
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs[data-mode="view"] button:last-child{
    grid-column:auto;
  }
}
@media(max-width:600px){
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs button{
    flex-basis:125px;min-width:125px;padding:10px;
  }
  body[data-panel-role="admin"] #panelShell .teacher-profile-page .teacher-profile-tabs[data-mode="edit"] button{
    flex-basis:172px;min-width:172px;
  }
}

body[data-panel-role="admin"] #dialogLayer .student-profile-hero{
  display:flex;align-items:center;gap:14px;
  min-width:0;padding:16px;margin:6px 0 18px;
  background:var(--panel2);border:1px solid var(--line);border-radius:14px;
}
body[data-panel-role="admin"] #dialogLayer .student-profile-avatar{
  width:54px;height:54px;display:grid;place-items:center;flex:none;
  border-radius:15px;background:var(--green-soft);color:var(--green);
  font:800 18px/1 var(--orem-font-body,Inter,sans-serif);
}
body[data-panel-role="admin"] #dialogLayer .student-profile-hero>div{
  display:grid;min-width:0;gap:3px;
}
body[data-panel-role="admin"] #dialogLayer .student-profile-hero strong{
  color:var(--text);font:700 17px/1.35 var(--orem-font-heading,Montserrat,sans-serif);
  overflow-wrap:anywhere;
}
body[data-panel-role="admin"] #dialogLayer .student-profile-hero span,
body[data-panel-role="admin"] #dialogLayer .student-profile-hero small{
  color:var(--muted-strong);font:500 12px/1.5 var(--orem-font-body,Inter,sans-serif);
  overflow-wrap:anywhere;
}
@media(max-width:500px){
  body[data-panel-role="admin"] #dialogLayer .student-profile-hero{
    align-items:flex-start;padding:13px;
  }
  body[data-panel-role="admin"] #dialogLayer .student-profile-avatar{
    width:44px;height:44px;
  }
}

/* Alumnos y Profesores comparten componentes, métricas y jerarquía visual. */
body[data-panel-role="admin"] #panelShell .admin-students .teacher-directory-toolbar{
  display:grid;gap:12px;
}
body[data-panel-role="admin"] #panelShell .admin-students .teacher-identity{
  min-width:0;max-width:100%;
}
body[data-panel-role="admin"] #panelShell .admin-students .teacher-identity strong,
body[data-panel-role="admin"] #panelShell .admin-students .teacher-specialty{
  overflow-wrap:anywhere;
}
body[data-panel-role="admin"] #panelShell .admin-students .teacher-compact-actions{
  display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;
  min-width:0;white-space:normal;
}
body[data-panel-role="admin"] #panelShell .admin-students .teacher-compact-actions .button{
  min-height:38px;padding:8px 11px;max-width:100%;
}
body[data-panel-role="admin"] #panelShell .admin-students .teacher-profile-course-row{
  grid-template-columns:minmax(0,1fr) auto;
}
body[data-panel-role="admin"] #panelShell .student-profile-page .teacher-profile-hero-actions{
  justify-content:flex-end;
}
body[data-panel-role="admin"] #panelShell .student-profile-page .teacher-profile-picture.teacher-profile-initials{
  display:grid;place-items:center;flex:none;
  background:var(--green-soft);color:var(--green);
  font:800 24px/1 var(--orem-font-body,Inter,sans-serif);
}
body[data-panel-role="admin"] #panelShell .student-profile-page .teacher-profile-card{
  min-width:0;
}
body[data-panel-role="admin"] #panelShell .student-profile-page .teacher-profile-security-actions{
  display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;
}
body[data-panel-role="admin"] #panelShell .student-profile-page .teacher-profile-security-actions .button{
  flex:1 1 180px;white-space:normal;
}
@media(max-width:900px){
  body[data-panel-role="admin"] #panelShell .student-profile-page .teacher-profile-hero{
    grid-template-columns:64px minmax(0,1fr);
  }
  body[data-panel-role="admin"] #panelShell .student-profile-page .teacher-profile-picture{
    width:64px;height:64px;
  }
  body[data-panel-role="admin"] #panelShell .student-profile-page .teacher-profile-hero-actions{
    grid-column:1/-1;justify-content:flex-start;
  }
}
@media(max-width:600px){
  body[data-panel-role="admin"] #panelShell .student-profile-page .teacher-profile-hero{
    padding:17px;gap:12px;
  }
  body[data-panel-role="admin"] #panelShell .student-profile-page .teacher-profile-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body[data-panel-role="admin"] #panelShell .admin-students .teacher-compact-actions .button{
    flex:1 1 100px;
  }
}
@media(max-width:390px){
  body[data-panel-role="admin"] #panelShell .student-profile-page .teacher-profile-metrics{
    grid-template-columns:minmax(0,1fr);
  }
}

/* Directorios 360: filtros colapsables, legibles en ambas experiencias. */
body[data-panel-role="admin"] #panelShell .orem-directory-filters{
  min-width:0;border:1px solid var(--line);border-radius:12px;
  background:var(--panel2);padding:0 14px;
}
body[data-panel-role="admin"] #panelShell .orem-directory-filters summary{
  cursor:pointer;display:list-item;min-height:44px;padding:13px 0;
  color:var(--text);font:700 13px/1.4 var(--orem-font-body,Inter,sans-serif);
}
body[data-panel-role="admin"] #panelShell .orem-directory-filters summary:focus-visible{
  outline:2px solid #C69A3C;outline-offset:2px;
}
body[data-panel-role="admin"] #panelShell .orem-directory-filters .teacher-extra-filters{
  padding:4px 0 15px;margin:0;
}
body[data-panel-role="admin"] #panelShell .orem-directory-filters small{
  display:block;padding:0 0 12px;color:var(--muted-strong);line-height:1.5;
}
body[data-panel-role="admin"] #panelShell .student-profile-page .student-record-paging{
  display:flex;justify-content:flex-end;align-items:center;gap:10px;
  flex-wrap:wrap;padding:16px 0 0;color:var(--muted-strong);
  font:600 12px/1.5 var(--orem-font-body,Inter,sans-serif);
}
body[data-panel-role="admin"] #panelShell .student-profile-page .student-photo-actions{
  display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;
  border-top:1px solid var(--line);padding-top:20px;margin-top:22px;
}
body[data-panel-role="admin"] #panelShell .student-profile-page .student-photo-actions label{
  flex:1 1 200px;min-width:0;
}
body[data-panel-role="admin"] #panelShell .student-profile-page .student-photo-actions input{
  width:100%;max-width:100%;
}
body[data-panel-role="admin"] #panelShell .student-profile-page .teacher-profile-metrics{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
body[data-panel-role="admin"] #panelShell .student-profile-page .teacher-profile-performance{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;
  margin:15px 0 20px;
}
body[data-panel-role="admin"] #panelShell .student-profile-page .teacher-profile-performance>div{
  min-width:0;
}
@media(max-width:960px){
  body[data-panel-role="admin"] #panelShell .student-profile-page .teacher-profile-metrics,
  body[data-panel-role="admin"] #panelShell .student-profile-page .teacher-profile-performance{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:600px){
  body[data-panel-role="admin"] #panelShell .student-profile-page .teacher-profile-metrics,
  body[data-panel-role="admin"] #panelShell .student-profile-page .teacher-profile-performance{
    grid-template-columns:minmax(0,1fr);
  }
  body[data-panel-role="admin"] #panelShell .orem-directory-filters .teacher-extra-filters{
    grid-template-columns:minmax(0,1fr);
  }
}
@media(prefers-reduced-motion:reduce){
  body[data-panel-role="admin"] #panelShell .orem-directory-filters summary{
    scroll-behavior:auto;
  }
}

/* Profesores: cuatro secciones después de retirar Historial.
   Alumnos conserva sus cinco pestañas y su distribución original. */
body[data-panel-role="admin"] #panelShell
.teacher-profile-page:not(.student-profile-page) .teacher-profile-tabs[data-mode="view"]{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

/* Reportes: histórico central, buscable y paginado sin ventanas emergentes. */
body[data-panel-role="admin"] #panelShell .admin-report-history{
  display:grid;gap:14px;min-width:0;margin:18px 0;
}
body[data-panel-role="admin"] #panelShell .admin-report-history .teacher-directory-head{
  margin:0;
}
body[data-panel-role="admin"] #panelShell .admin-history-tabs{
  display:flex;flex-wrap:wrap;gap:10px;
}
body[data-panel-role="admin"] #panelShell .admin-history-tabs .button{
  min-height:43px;padding:9px 15px;white-space:normal;
}
body[data-panel-role="admin"] #panelShell .admin-history-filters{
  display:grid;grid-template-columns:minmax(180px,2fr) repeat(2,minmax(120px,1fr)) auto;
  align-items:end;gap:12px;min-width:0;
}
body[data-panel-role="admin"] #panelShell .admin-history-filters label{
  display:grid;gap:6px;min-width:0;color:var(--muted-strong);
  font:700 12px/1.45 var(--orem-font-body,Inter,sans-serif);
}
body[data-panel-role="admin"] #panelShell .admin-history-filters input,
body[data-panel-role="admin"] #panelShell .admin-history-filters select{
  width:100%;min-width:0;min-height:43px;padding:9px 11px;
  background:var(--panel);border:1px solid var(--line);border-radius:10px;
  color:var(--text);font:500 13px/1.4 var(--orem-font-body,Inter,sans-serif);
}
body[data-panel-role="admin"] #panelShell .admin-history-paging{
  display:flex;align-items:center;justify-content:flex-end;
  flex-wrap:wrap;gap:10px;color:var(--muted-strong);
  font:600 12px/1.4 var(--orem-font-body,Inter,sans-serif);
}
body[data-panel-role="admin"] #panelShell .admin-history-filters input:focus-visible,
body[data-panel-role="admin"] #panelShell .admin-history-filters select:focus-visible{
  outline:2px solid #C69A3C;outline-offset:2px;
}
@media(max-width:880px){
  body[data-panel-role="admin"] #panelShell .admin-history-filters{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body[data-panel-role="admin"] #panelShell .admin-history-filters label:first-child{
    grid-column:1/-1;
  }
}
@media(max-width:520px){
  body[data-panel-role="admin"] #panelShell .admin-history-filters{
    grid-template-columns:minmax(0,1fr);
  }
  body[data-panel-role="admin"] #panelShell .admin-history-filters label:first-child{
    grid-column:auto;
  }
  body[data-panel-role="admin"] #panelShell .admin-history-filters .button{
    width:100%;
  }
}

/* OREM360 | Cursos usa las mismas tarjetas, directorio y botones de Profesores/Alumnos. */
#panelShell .academic-courses .teacher-directory-toolbar{
  display:grid;gap:12px;
}
#panelShell .academic-courses .teacher-extra-filters{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
  max-width:700px;
}
#panelShell .academic-courses .teacher-extra-filters label{
  display:flex;flex-direction:column;gap:6px;min-width:0;
  color:var(--muted-strong);font-size:11px;font-weight:700;
}
#panelShell .academic-courses .teacher-extra-filters select{
  width:100%;min-width:0;border:1px solid var(--line);
  border-radius:11px;padding:10px 12px;
  color:var(--text);background:var(--panel2);
  font:inherit;font-size:12px;
}
#panelShell .academic-courses .teacher-extra-filters select:focus-visible{
  outline:2px solid var(--purple);outline-offset:2px;
}
#panelShell .academic-courses .data-table{
  min-width:870px;table-layout:fixed;
}
#panelShell .academic-courses .data-table th:nth-child(1){width:26%}
#panelShell .academic-courses .data-table th:nth-child(2){width:18%}
#panelShell .academic-courses .data-table th:nth-child(3){width:15%}
#panelShell .academic-courses .data-table th:nth-child(4){width:17%}
#panelShell .academic-courses .data-table th:nth-child(5){width:10%}
#panelShell .academic-courses .data-table th:nth-child(6){width:14%}

#panelShell .academic-courses .data-table td{
  overflow-wrap:anywhere;
}
#panelShell .academic-courses .data-table td:last-child{
  white-space:normal;
}
#panelShell .academic-courses .teacher-identity{
  max-width:100%;min-width:0;
}
#panelShell .academic-courses .teacher-avatar svg,
#panelShell .academic-course-profile .course-profile-icon svg{
  width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.8;
}
#panelShell .academic-courses .teacher-specialty{
  max-width:100%;overflow-wrap:anywhere;
}
#panelShell .academic-courses .teacher-compact-actions{
  display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;
  white-space:normal;
}
#panelShell .academic-courses .teacher-compact-actions .button{
  padding:8px 9px;min-height:36px;max-width:100%;font-size:11px;
}
#panelShell .academic-courses-notice{
  align-items:center;flex-wrap:wrap;
}
#panelShell .academic-courses-notice>div:nth-child(2){
  min-width:220px;flex:1;
}
#panelShell .academic-courses-quick{
  display:flex;flex-wrap:wrap;gap:8px;
}
#panelShell .academic-courses-quick .button{
  white-space:normal;min-height:38px;
}
@media(max-width:800px){
  #panelShell .academic-courses .teacher-extra-filters{
    grid-template-columns:minmax(0,1fr);
  }
  #panelShell .academic-courses-quick{
    width:100%;
  }
  #panelShell .academic-courses-quick .button{
    flex:1 1 160px;
  }
}

#panelShell .academic-course-profile .teacher-profile-hero{
  min-width:0;
}
#panelShell .academic-course-profile .teacher-profile-title h1{
  overflow-wrap:anywhere;
}
#panelShell .academic-course-profile .course-profile-icon{
  color:var(--green);background:var(--green-soft);
}
#panelShell .academic-course-profile .academic-course-links{
  min-width:0;
}
#panelShell .academic-course-profile .academic-course-links .teacher-profile-section-top{
  align-items:center;
}
#panelShell .academic-course-profile .academic-course-links h2{
  font-size:16px;color:var(--text);margin:0;
}
#panelShell .academic-course-profile .academic-course-links .form-actions{
  margin-top:0;justify-content:flex-start;
}
#panelShell .academic-course-profile .academic-course-columns{
  min-width:0;
}
@media(max-width:800px){
  #panelShell .academic-course-profile .academic-course-links .teacher-profile-section-top{
    align-items:flex-start;flex-direction:column;
  }
  #panelShell .academic-course-profile .academic-course-links .form-actions{
    width:100%;
  }
}

/* Ficha de Cursos: mismos componentes reales que los expedientes docente y estudiantil. */
body[data-panel-role="admin"] #panelShell .academic-course-profile.teacher-profile-page:not(.student-profile-page) .teacher-profile-tabs[data-mode="view"]{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  width:100%;overflow:visible;
}
body[data-panel-role="admin"] #panelShell .academic-course-profile.teacher-profile-page:not(.student-profile-page) .teacher-profile-tabs[data-mode="view"] button{
  min-width:0;max-width:none;width:100%;grid-column:auto;
}
body[data-panel-role="admin"] #panelShell .academic-course-profile .teacher-profile-metrics{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
body[data-panel-role="admin"] #panelShell .academic-course-profile .teacher-profile-metric{
  min-width:0;overflow-wrap:anywhere;
}
body[data-panel-role="admin"] #panelShell .academic-course-profile .teacher-profile-body{
  display:grid;gap:15px;min-width:0;
}
body[data-panel-role="admin"] #panelShell .academic-course-profile .academic-course-links{
  padding:23px;
}
body[data-panel-role="admin"] #panelShell .academic-course-profile .academic-course-links p{
  margin:9px 0 15px;
}
body[data-panel-role="admin"] #panelShell .academic-course-profile .academic-course-link-actions{
  display:flex;flex-wrap:wrap;align-items:stretch;gap:10px;
}
body[data-panel-role="admin"] #panelShell .academic-course-profile .academic-course-link-actions .button{
  display:inline-flex;justify-content:center;align-items:center;
  min-height:44px;padding:9px 13px;white-space:normal;
  font:700 13px/1.4 var(--orem-font-body,Inter,"Segoe UI",sans-serif);
}
body[data-panel-role="admin"] #panelShell .academic-course-profile .academic-course-resource-number{
  color:var(--green);font-size:clamp(24px,3vw,34px);
  line-height:1.2;font-weight:850;margin:14px 0;
}
body[data-panel-role="admin"] #panelShell .academic-course-profile .teacher-profile-note{
  line-height:1.6;
}
body[data-panel-role="admin"] #panelShell .academic-courses .teacher-directory-head,
body[data-panel-role="admin"] #panelShell .academic-courses .teacher-directory-toolbar,
body[data-panel-role="admin"] #panelShell .academic-courses .teacher-profile-note{
  font-family:var(--orem-font-body,Inter,"Segoe UI",sans-serif);
}
@media(max-width:1200px){
  body[data-panel-role="admin"] #panelShell .academic-course-profile .teacher-profile-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:700px){
  body[data-panel-role="admin"] #panelShell .academic-course-profile.teacher-profile-page:not(.student-profile-page) .teacher-profile-tabs[data-mode="view"]{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body[data-panel-role="admin"] #panelShell .academic-course-profile .academic-course-link-actions .button{
    flex:1 1 150px;
  }
  body[data-panel-role="admin"] #panelShell .academic-course-profile .academic-course-links{
    padding:17px;
  }
}
@media(max-width:420px){
  body[data-panel-role="admin"] #panelShell .academic-course-profile.teacher-profile-page:not(.student-profile-page) .teacher-profile-tabs[data-mode="view"]{
    grid-template-columns:minmax(0,1fr);
  }
  body[data-panel-role="admin"] #panelShell .academic-course-profile .teacher-profile-metrics{
    grid-template-columns:minmax(0,1fr);
  }
}

/* Crear/Editar Cursos: pasos discretos y tipografía compartida con Alumnos y Profesores. */
body[data-panel-role="admin"] #dialogLayer .academic-course-form .form-grid{
  gap:13px;
}
body[data-panel-role="admin"] #dialogLayer .academic-course-form .academic-course-form-step{
  display:flex;align-items:center;gap:13px;min-width:0;
  padding:13px 14px;border:1px solid var(--line);border-radius:12px;
  background:var(--panel2);margin-top:8px;
}
body[data-panel-role="admin"] #dialogLayer .academic-course-form .academic-course-form-step>span{
  display:grid;place-items:center;width:36px;height:36px;flex:none;
  background:var(--green-soft);color:var(--green);
  border-radius:10px;font:800 12px/1 var(--orem-font-body,Inter,sans-serif);
}
body[data-panel-role="admin"] #dialogLayer .academic-course-form .academic-course-form-step>div{
  min-width:0;
}
body[data-panel-role="admin"] #dialogLayer .academic-course-form .academic-course-form-step strong{
  color:var(--text);font:800 13px/1.4 var(--orem-font-heading,Montserrat,sans-serif);
}
body[data-panel-role="admin"] #dialogLayer .academic-course-form .academic-course-form-step p{
  font:500 11px/1.5 var(--orem-font-body,Inter,sans-serif);
  color:var(--muted-strong);margin:4px 0 0;
}
body[data-panel-role="admin"] #dialogLayer .academic-course-form .field input,
body[data-panel-role="admin"] #dialogLayer .academic-course-form .field select{
  min-height:44px;font:500 13px/1.45 var(--orem-font-body,Inter,sans-serif);
}


/* OREM360 | Grupos: misma identidad visual que Profesores, Alumnos y Cursos. */
body[data-panel-role="admin"] #panelShell .admin-groups .teacher-directory-toolbar{
  display:grid;gap:12px;
}
body[data-panel-role="admin"] #panelShell .admin-groups .teacher-extra-filters{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;min-width:0;
}
body[data-panel-role="admin"] #panelShell .admin-groups .teacher-extra-filters label{
  display:grid;gap:6px;min-width:0;color:var(--muted-strong);
  font:700 11px/1.4 var(--orem-font-body,Inter,"Segoe UI",sans-serif);
}
body[data-panel-role="admin"] #panelShell .admin-groups .teacher-extra-filters select{
  width:100%;min-width:0;min-height:43px;padding:10px 12px;
  border:1px solid var(--line);border-radius:11px;
  color:var(--text);background:var(--panel2);
  font:500 12px/1.45 var(--orem-font-body,Inter,"Segoe UI",sans-serif);
}
body[data-panel-role="admin"] #panelShell .admin-groups .teacher-extra-filters select:focus-visible{
  outline:3px solid #C69A3C;outline-offset:2px;
}
body[data-panel-role="admin"] #panelShell .admin-groups .data-table{
  min-width:890px;table-layout:fixed;
}
body[data-panel-role="admin"] #panelShell .admin-groups .data-table th:nth-child(1){width:23%}
body[data-panel-role="admin"] #panelShell .admin-groups .data-table th:nth-child(2){width:17%}
body[data-panel-role="admin"] #panelShell .admin-groups .data-table th:nth-child(3){width:18%}
body[data-panel-role="admin"] #panelShell .admin-groups .data-table th:nth-child(4){width:14%}
body[data-panel-role="admin"] #panelShell .admin-groups .data-table th:nth-child(5){width:10%}
body[data-panel-role="admin"] #panelShell .admin-groups .data-table th:nth-child(6){width:18%}
body[data-panel-role="admin"] #panelShell .admin-groups .data-table td{
  overflow-wrap:anywhere;vertical-align:middle;
}
body[data-panel-role="admin"] #panelShell .admin-groups .data-table td:last-child{
  white-space:normal;
}
body[data-panel-role="admin"] #panelShell .admin-groups .teacher-identity{
  min-width:0;max-width:100%;
}
body[data-panel-role="admin"] #panelShell .admin-groups .teacher-specialty{
  max-width:100%;overflow-wrap:anywhere;
}
body[data-panel-role="admin"] #panelShell .admin-groups .teacher-compact-actions{
  display:flex;justify-content:flex-end;flex-wrap:wrap;
  gap:7px;white-space:normal;
}
body[data-panel-role="admin"] #panelShell .admin-groups .teacher-compact-actions .button{
  min-height:38px;max-width:100%;padding:8px 11px;font-size:11px;
}
body[data-panel-role="admin"] #panelShell .admin-groups .teacher-avatar svg,
body[data-panel-role="admin"] #panelShell .admin-groups .group-profile-icon svg{
  width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;
}
body[data-panel-role="admin"] #panelShell .admin-groups .group-profile-icon{
  background:var(--green-soft);color:var(--green);
}
body[data-panel-role="admin"] #panelShell .admin-groups.teacher-profile-page .teacher-profile-tabs[data-mode="view"]{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  width:100%;max-width:100%;overflow:visible;
}
body[data-panel-role="admin"] #panelShell .admin-groups.teacher-profile-page .teacher-profile-tabs[data-mode="view"] button{
  flex:auto;max-width:none;min-width:0;width:100%;grid-column:auto;
}
body[data-panel-role="admin"] #panelShell .admin-groups.teacher-profile-page .teacher-profile-metrics{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
body[data-panel-role="admin"] #panelShell .admin-groups.teacher-profile-page .teacher-profile-metric strong{
  overflow-wrap:anywhere;
}
body[data-panel-role="admin"] #panelShell .admin-groups.teacher-profile-page .teacher-profile-body{
  display:grid;gap:15px;min-width:0;
}
body[data-panel-role="admin"] #panelShell .admin-groups .group-profile-links{
  display:flex;gap:10px;flex-wrap:wrap;align-items:stretch;
  margin-top:12px;
}
body[data-panel-role="admin"] #panelShell .admin-groups .group-profile-links .button{
  min-height:44px;padding:10px 13px;white-space:normal;
  font:700 13px/1.4 var(--orem-font-body,Inter,"Segoe UI",sans-serif);
}
body[data-panel-role="admin"] #panelShell .admin-groups .group-directory-note{
  min-width:0;
}
@media(max-width:1150px){
  body[data-panel-role="admin"] #panelShell .admin-groups .teacher-extra-filters{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body[data-panel-role="admin"] #panelShell .admin-groups.teacher-profile-page .teacher-profile-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:700px){
  body[data-panel-role="admin"] #panelShell .admin-groups .teacher-extra-filters{
    grid-template-columns:minmax(0,1fr);
  }
  body[data-panel-role="admin"] #panelShell .admin-groups .teacher-directory-toolbar{
    padding:0 14px 16px;
  }
  body[data-panel-role="admin"] #panelShell .admin-groups.teacher-profile-page .teacher-profile-tabs[data-mode="view"]{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body[data-panel-role="admin"] #panelShell .admin-groups .group-profile-links .button{
    flex:1 1 160px;
  }
}
@media(max-width:420px){
  body[data-panel-role="admin"] #panelShell .admin-groups.teacher-profile-page .teacher-profile-metrics,
  body[data-panel-role="admin"] #panelShell .admin-groups.teacher-profile-page .teacher-profile-tabs[data-mode="view"]{
    grid-template-columns:minmax(0,1fr);
  }
}


/* Grupos | Crear y editar: jerarquía por pasos igual a Cursos. */
body[data-panel-role="admin"] #dialogLayer .group-management-form .form-grid{
  gap:13px;
}
body[data-panel-role="admin"] #dialogLayer .group-management-form .group-form-section{
  display:flex;align-items:center;gap:13px;min-width:0;
  padding:13px 14px;margin-top:8px;
  border:1px solid var(--line);border-radius:12px;
  background:var(--panel2);
}
body[data-panel-role="admin"] #dialogLayer .group-management-form .group-form-section>span{
  display:grid;place-items:center;flex:none;width:36px;height:36px;
  border-radius:10px;background:var(--green-soft);color:var(--green);
  font:800 12px/1 var(--orem-font-body,Inter,"Segoe UI",sans-serif);
}
body[data-panel-role="admin"] #dialogLayer .group-management-form .group-form-section>div{
  min-width:0;
}
body[data-panel-role="admin"] #dialogLayer .group-management-form .group-form-section strong{
  font:800 13px/1.45 var(--orem-font-heading,Montserrat,sans-serif);
  color:var(--text);
}
body[data-panel-role="admin"] #dialogLayer .group-management-form .group-form-section p{
  font:500 11px/1.5 var(--orem-font-body,Inter,"Segoe UI",sans-serif);
  margin:4px 0 0;color:var(--muted-strong);
}
body[data-panel-role="admin"] #dialogLayer .group-management-form .field input,
body[data-panel-role="admin"] #dialogLayer .group-management-form .field select{
  min-height:44px;font:500 13px/1.45 var(--orem-font-body,Inter,"Segoe UI",sans-serif);
}
body[data-panel-role="admin"] #dialogLayer .group-management-form [readonly]{
  background:var(--panel2);color:var(--muted-strong);
}


/* OREM360 | Clases en vivo: directorio, calendarios y expediente académico unificados. */
body[data-panel-role="admin"] #panelShell .admin-sessions .teacher-directory-toolbar{
  display:grid;gap:12px;
}
body[data-panel-role="admin"] #panelShell .admin-sessions .teacher-extra-filters{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;
}
body[data-panel-role="admin"] #panelShell .admin-sessions .teacher-extra-filters label{
  display:grid;gap:6px;min-width:0;
  font:700 11px/1.4 var(--orem-font-body,Inter,"Segoe UI",sans-serif);
  color:var(--muted-strong);
}
body[data-panel-role="admin"] #panelShell .admin-sessions .teacher-extra-filters select{
  width:100%;min-height:42px;min-width:0;
  padding:9px 12px;border:1px solid var(--line);border-radius:11px;
  color:var(--text);background:var(--panel2);
  font:500 12px/1.4 var(--orem-font-body,Inter,"Segoe UI",sans-serif);
}
body[data-panel-role="admin"] #panelShell .admin-sessions .teacher-extra-filters select:focus-visible,
body[data-panel-role="admin"] #panelShell .admin-sessions .session-view-switch .button:focus-visible{
  outline:2px solid var(--green);outline-offset:2px;
}
body[data-panel-role="admin"] #panelShell .admin-sessions .session-view-switch{
  display:flex;flex-wrap:wrap;gap:8px;
}
body[data-panel-role="admin"] #panelShell .admin-sessions .session-view-switch .button{
  min-height:38px;min-width:68px;
}
body[data-panel-role="admin"] #panelShell .admin-sessions .session-view-switch .button.active{
  border-color:var(--green);background:var(--green-soft);color:var(--green);
  font-weight:800;
}
body[data-panel-role="admin"] #panelShell .admin-sessions .data-table{
  min-width:940px;table-layout:fixed;
}
body[data-panel-role="admin"] #panelShell .admin-sessions .data-table th:nth-child(1){width:22%}
body[data-panel-role="admin"] #panelShell .admin-sessions .data-table th:nth-child(2){width:18%}
body[data-panel-role="admin"] #panelShell .admin-sessions .data-table th:nth-child(3){width:17%}
body[data-panel-role="admin"] #panelShell .admin-sessions .data-table th:nth-child(4){width:17%}
body[data-panel-role="admin"] #panelShell .admin-sessions .data-table th:nth-child(5){width:10%}
body[data-panel-role="admin"] #panelShell .admin-sessions .data-table th:nth-child(6){width:16%}
body[data-panel-role="admin"] #panelShell .admin-sessions .data-table td{
  vertical-align:middle;overflow-wrap:anywhere;
}
body[data-panel-role="admin"] #panelShell .admin-sessions .data-table td:last-child{
  white-space:normal;
}
body[data-panel-role="admin"] #panelShell .admin-sessions .teacher-identity{
  max-width:100%;min-width:0;
}
body[data-panel-role="admin"] #panelShell .admin-sessions .teacher-compact-actions{
  display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap;
  white-space:normal;
}
body[data-panel-role="admin"] #panelShell .admin-sessions .teacher-compact-actions .button{
  padding:8px 10px;min-height:38px;max-width:100%;font-size:11px;
}
body[data-panel-role="admin"] #panelShell .admin-sessions .teacher-avatar svg,
body[data-panel-role="admin"] #panelShell .admin-sessions .session-profile-icon svg{
  width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.8;
}
body[data-panel-role="admin"] #panelShell .admin-sessions .session-profile-icon{
  background:var(--green-soft);color:var(--green);
}
body[data-panel-role="admin"] #panelShell .session-profile-page .teacher-profile-tabs[data-mode="view"]{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  width:100%;max-width:100%;overflow:visible;
}
body[data-panel-role="admin"] #panelShell .session-profile-page .teacher-profile-tabs[data-mode="view"] button{
  flex:auto;max-width:none;width:100%;min-width:0;grid-column:auto;
}
body[data-panel-role="admin"] #panelShell .session-profile-page .teacher-profile-metrics{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
}
body[data-panel-role="admin"] #panelShell .session-profile-page .teacher-profile-metric strong{
  overflow-wrap:anywhere;
}
body[data-panel-role="admin"] #panelShell .session-profile-page .teacher-profile-body{
  display:grid;gap:15px;min-width:0;
}
body[data-panel-role="admin"] #panelShell .session-profile-page .session-profile-links{
  display:flex;flex-wrap:wrap;align-items:stretch;gap:10px;margin-top:14px;
}
body[data-panel-role="admin"] #panelShell .session-profile-page .session-profile-links .button{
  display:inline-flex;align-items:center;justify-content:center;
  padding:9px 13px;min-height:43px;white-space:normal;
  font:700 13px/1.45 var(--orem-font-body,Inter,"Segoe UI",sans-serif);
}
body[data-panel-role="admin"] #panelShell .admin-sessions .session-calendar{
  padding:14px 18px 20px;min-width:0;
}
body[data-panel-role="admin"] #panelShell .admin-sessions .session-calendar-head{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;
  margin-bottom:12px;
}
body[data-panel-role="admin"] #panelShell .admin-sessions .session-calendar-head strong{
  font:800 15px/1.4 var(--orem-font-heading,Montserrat,sans-serif);
  color:var(--text);
}
body[data-panel-role="admin"] #panelShell .admin-sessions .session-calendar-controls{
  display:flex;align-items:center;gap:7px;flex-wrap:wrap;
}
body[data-panel-role="admin"] #panelShell .admin-sessions .session-calendar-grid{
  display:grid;grid-template-columns:repeat(7,minmax(0,1fr));
  gap:8px;min-width:0;
}
body[data-panel-role="admin"] #panelShell .admin-sessions .session-day-grid{
  grid-template-columns:minmax(0,1fr);
}
body[data-panel-role="admin"] #panelShell .admin-sessions .session-calendar-day{
  min-height:124px;min-width:0;padding:9px;
  border:1px solid var(--line);border-radius:12px;
  background:var(--panel2);
}
body[data-panel-role="admin"] #panelShell .admin-sessions .session-calendar-day.today{
  border-color:var(--green);
}
body[data-panel-role="admin"] #panelShell .admin-sessions .session-calendar-day.outside{
  opacity:.55;
}
body[data-panel-role="admin"] #panelShell .admin-sessions .session-calendar-day-title{
  display:flex;gap:5px;flex-wrap:wrap;justify-content:space-between;
  align-items:center;margin-bottom:8px;
  color:var(--text);
}
body[data-panel-role="admin"] #panelShell .admin-sessions .session-calendar-day-title small{
  color:var(--muted-strong);font-size:10px;
}
body[data-panel-role="admin"] #panelShell .admin-sessions .session-calendar-event{
  width:100%;display:grid;gap:3px;min-width:0;
  margin:5px 0;padding:7px 8px;border:1px solid var(--line);
  border-left:3px solid var(--green);border-radius:8px;
  background:var(--panel);color:var(--text);text-align:left;
  cursor:pointer;
}
body[data-panel-role="admin"] #panelShell .admin-sessions .session-calendar-event strong{
  font-size:11px;line-height:1.45;overflow-wrap:anywhere;
}
body[data-panel-role="admin"] #panelShell .admin-sessions .session-calendar-event small,
body[data-panel-role="admin"] #panelShell .admin-sessions .session-calendar-more{
  font-size:10px;line-height:1.45;color:var(--muted-strong);
  overflow-wrap:anywhere;
}
body[data-panel-role="admin"] #panelShell .admin-sessions .session-calendar-event:focus-visible{
  outline:2px solid var(--green);outline-offset:2px;
}
@media(max-width:1100px){
  body[data-panel-role="admin"] #panelShell .admin-sessions .session-calendar-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  body[data-panel-role="admin"] #panelShell .admin-sessions .teacher-extra-filters{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body[data-panel-role="admin"] #panelShell .session-profile-page .teacher-profile-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:700px){
  body[data-panel-role="admin"] #panelShell .admin-sessions .session-calendar-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body[data-panel-role="admin"] #panelShell .admin-sessions .session-calendar{
    padding:12px;
  }
  body[data-panel-role="admin"] #panelShell .admin-sessions .teacher-extra-filters{
    grid-template-columns:minmax(0,1fr);
  }
  body[data-panel-role="admin"] #panelShell .session-profile-page .teacher-profile-tabs[data-mode="view"]{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body[data-panel-role="admin"] #panelShell .session-profile-page .session-profile-links .button{
    flex:1 1 160px;
  }
}
@media(max-width:420px){
  body[data-panel-role="admin"] #panelShell .session-profile-page .teacher-profile-metrics,
  body[data-panel-role="admin"] #panelShell .session-profile-page .teacher-profile-tabs[data-mode="view"]{
    grid-template-columns:minmax(0,1fr);
  }
}


/* Clases en vivo | pasos de programación, mismos controles premium de Cursos y Grupos. */
body[data-panel-role="admin"] #dialogLayer .session-management-form .form-grid{
  gap:13px;
}
body[data-panel-role="admin"] #dialogLayer .session-management-form .session-form-step{
  display:flex;align-items:center;gap:13px;min-width:0;
  margin-top:8px;padding:13px 14px;
  background:var(--panel2);border:1px solid var(--line);border-radius:12px;
}
body[data-panel-role="admin"] #dialogLayer .session-management-form .session-form-step>span{
  display:grid;place-items:center;width:36px;height:36px;flex:none;
  border-radius:10px;background:var(--green-soft);color:var(--green);
  font:800 12px/1 var(--orem-font-body,Inter,"Segoe UI",sans-serif);
}
body[data-panel-role="admin"] #dialogLayer .session-management-form .session-form-step>div{
  min-width:0;
}
body[data-panel-role="admin"] #dialogLayer .session-management-form .session-form-step strong{
  color:var(--text);font:800 13px/1.4 var(--orem-font-heading,Montserrat,sans-serif);
}
body[data-panel-role="admin"] #dialogLayer .session-management-form .session-form-step p{
  color:var(--muted-strong);margin:4px 0 0;
  font:500 11px/1.5 var(--orem-font-body,Inter,"Segoe UI",sans-serif);
}
body[data-panel-role="admin"] #dialogLayer .session-management-form .field select,
body[data-panel-role="admin"] #dialogLayer .session-management-form .field input{
  min-height:44px;font:500 13px/1.45 var(--orem-font-body,Inter,"Segoe UI",sans-serif);
}
body[data-panel-role="admin"] #dialogLayer .session-management-form input[readonly]{
  color:var(--muted-strong);background:var(--panel2);
}
