/* ZUREX · marco común (barra lateral del Panel principal) para pantallas de oficina. Ver zurex-shell.js. */
html.zx-shell body{padding-left:248px!important;box-sizing:border-box}
aside.sidebar.zx-shell-side{position:fixed!important;left:0;top:0;bottom:0;width:248px;z-index:900;display:flex!important;flex-direction:column;gap:6px;
  padding:18px 12px 14px;overflow-y:auto;background:var(--zx-surface,#fff)!important;border-right:1px solid var(--zx-line,#E4E7EB)!important;border-bottom:0!important;font-family:var(--zx-font,Inter,system-ui,sans-serif)}
.zx-shell-logo{display:flex;justify-content:center;padding:4px 6px 2px}
.zx-shell-logo img{width:180px;max-width:100%;height:auto}
.zx-shell-tag{margin:6px 8px 8px;padding-bottom:12px;border-bottom:1px solid var(--zx-line,#E4E7EB);font-size:12.5px;line-height:1.45;color:var(--zx-muted,#677381)}
aside.sidebar.zx-shell-side nav.zx-shell-nav{display:flex!important;flex-direction:column;gap:2px!important;overflow:visible;grid-auto-flow:row!important}
aside.sidebar.zx-shell-side nav a,.zx-shell-head{display:flex!important;flex-direction:row!important;align-items:center;justify-content:flex-start!important;gap:10px!important;min-height:38px;
  padding:8px 10px!important;border-radius:8px;font-size:14px!important;font-weight:500!important;color:#3B4652!important;text-decoration:none;text-align:left!important;white-space:normal!important;background:transparent!important;border:0;width:100%;cursor:pointer}
aside.sidebar.zx-shell-side nav a:hover,.zx-shell-head:hover{background:var(--zx-hover,#F1F3F6)!important;color:var(--zx-ink,#16202B)!important}
aside.sidebar.zx-shell-side nav a.active{background:var(--zx-accent-soft,#EDF1F7)!important;color:var(--zx-navy,#0B2D5B)!important}
aside.sidebar.zx-shell-side nav a .zx-i,.zx-shell-head .zx-i{width:18px;height:18px;flex:0 0 18px;color:var(--zx-faint,#98A2AE)}
aside.sidebar.zx-shell-side nav a.active .zx-i{color:var(--zx-navy,#0B2D5B)}
.zx-shell-sub{display:none;margin:0 0 4px 22px;padding-left:8px;border-left:1px solid var(--zx-line,#E4E7EB)}
.zx-shell-group.open>.zx-shell-sub{display:flex;flex-direction:column;gap:2px}
aside.sidebar.zx-shell-side .zx-shell-sub a{min-height:34px;font-size:13px!important;color:var(--zx-muted,#677381)!important}
.zx-shell-user{margin-top:auto;display:grid;grid-template-columns:36px 1fr;gap:4px 10px;align-items:center;padding:12px 6px 4px;border-top:1px solid var(--zx-line,#E4E7EB)}
.zx-shell-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--zx-accent-soft,#EDF1F7);color:var(--zx-navy,#0B2D5B);font-weight:700;font-size:13px}
.zx-shell-user b{display:block;font-size:13px;color:var(--zx-ink,#16202B);line-height:1.25}
.zx-shell-user small{display:block;font-size:12px;color:var(--zx-muted,#677381)}
.zx-shell-out{grid-column:1/-1;min-height:38px;border:1px solid var(--zx-line-2,#D4D9DF)!important;border-radius:8px;background:#fff!important;color:var(--zx-ink,#16202B)!important;font-weight:600;cursor:pointer}
.zx-shell-human{padding:10px 6px 0;font-size:11.5px;line-height:1.45;color:var(--zx-muted,#677381)}
.zx-shell-human b{display:block;color:var(--zx-ink,#16202B);font-size:12px}
.zx-shell-toggle,.zx-shell-backdrop{display:none}
/* El logotipo ya está en la barra lateral: no repetirlo en la cabecera de la pantalla. */
html.zx-shell header .zx-logo{display:none!important}
@media(max-width:900px){
  html.zx-shell body{padding-left:0!important}
  aside.sidebar.zx-shell-side{width:min(300px,86vw);transform:translateX(-102%);transition:transform .2s ease;box-shadow:0 0 40px rgba(7,29,45,.25)!important}
  html.zx-shell-open aside.sidebar.zx-shell-side{transform:none}
  .zx-shell-toggle{display:inline-flex;align-items:center;gap:6px;position:fixed;left:12px;bottom:14px;z-index:901;min-height:44px;padding:10px 14px;border-radius:999px;
    border:1px solid var(--zx-line-2,#D4D9DF);background:#fff;color:var(--zx-navy,#0B2D5B);font-weight:700;box-shadow:0 6px 18px rgba(7,29,45,.15)}
  .zx-shell-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:899;background:rgba(5,21,32,.45)}
}
@media print{aside.sidebar.zx-shell-side,.zx-shell-toggle,.zx-shell-backdrop{display:none!important}html.zx-shell body{padding-left:0!important}}
/* Blindaje: los estilos propios de cada pantalla (p, small, button, a) no deben cambiar el marco. */
aside.sidebar.zx-shell-side *{box-sizing:border-box;letter-spacing:normal;text-transform:none}
aside.sidebar.zx-shell-side p.zx-shell-tag{font-size:12.5px!important;line-height:1.45!important;margin:6px 8px 8px!important;color:var(--zx-muted,#677381)!important;max-width:none}
aside.sidebar.zx-shell-side nav a,aside.sidebar.zx-shell-side .zx-shell-head{margin:0!important;min-height:38px!important;height:auto!important;line-height:1.3!important;box-shadow:none!important;transform:none!important}
aside.sidebar.zx-shell-side .zx-shell-user b{font-size:13px!important;font-weight:600!important}
aside.sidebar.zx-shell-side .zx-shell-user small{font-size:12px!important;line-height:1.3!important}
aside.sidebar.zx-shell-side .zx-shell-out{font-size:13px!important;padding:8px 10px!important;min-height:38px!important;height:auto!important;margin:6px 0 0!important;width:100%;box-shadow:none!important}
aside.sidebar.zx-shell-side .zx-shell-human{font-size:11.5px!important}
aside.sidebar.zx-shell-side .zx-shell-human b{font-size:12px!important}
/* Cabecera de cada pantalla: blanca, como la barra superior del Panel principal; sin repetir el logotipo. */
html.zx-shell body > header,html.zx-shell body > .top,html.zx-shell body > .topbar{background:var(--zx-surface,#fff)!important;color:var(--zx-ink,#16202B)!important;border-bottom:1px solid var(--zx-line,#E4E7EB)!important;box-shadow:none!important}
html.zx-shell body > header :is(strong,b,h1,h2,span,div),html.zx-shell body > .top :is(strong,b,span,div){color:var(--zx-ink,#16202B)!important}
html.zx-shell body > header small,html.zx-shell body > .top small{color:var(--zx-muted,#677381)!important}
html.zx-shell body > header img[src*="zurex-logotipo"],html.zx-shell body > header img[src*="zurex-logo"],html.zx-shell body > .top img[src*="zurex-logotipo"]{display:none!important}
/* ap1 (29-11-2026, «autorizo arreglos de pantalla»): el menú mide 248 px en todas las pantallas (antes, donde la pantalla no fija box-sizing, medía 273 y tapaba
   el borde del contenido) y los títulos de grupo del menú no toman bordes de los botones de cada pantalla. */
aside.sidebar.zx-shell-side{box-sizing:border-box!important}
aside.sidebar.zx-shell-side .zx-shell-head{border:0!important;box-shadow:none!important;font-family:inherit!important}

/* mc1 (29-11-2026): en teléfono el botón «☰ Menú» (fijo abajo) no tapa el final del contenido. */
@media(max-width:900px){html.zx-shell body{padding-bottom:76px}}
