/* QA 2026-11-01: sb-v2 compat (footer offset + franja oscura). El footer fijo hereda el margin-left de cn-sidebar-v2 (igual que .content-wrapper). */
html.cn-sala-espera-active body.sb-v2.cn-sala-espera-active .main-footer { left: 0 !important; }
body.sb-v2.cn-sala-espera-active .content-wrapper { height: calc(100vh - var(--cn-sala-footer-h)) !important; max-height: calc(100vh - var(--cn-sala-footer-h)) !important; }
/* QA 2026-11-01: contenedor de tablas legacy (borde rojo inline) */
#cuerpo section.content > .row[style*="750f1b"] { border: 1px solid #e2e8f0 !important; border-radius: 12px; background: #fff; margin-left: 0 !important; margin-right: 0 !important; }
/* QA 2026-11-01: header movil (menu derecho caia a segunda fila sobre el contenido) */
@media (max-width: 767px) {
  body.sb-v2 .main-header { display: flex !important; align-items: center; height: 58px; max-height: 58px; }
  body.sb-v2 .main-header .logo { flex: 0 1 auto; width: auto !important; max-width: 128px; min-width: 0; overflow: hidden; float: none !important; }
  body.sb-v2 .main-header .logo .logo-lg { transform: scale(.78); transform-origin: left center; }
  body.sb-v2 .main-header .navbar { flex: 1 1 auto; min-width: 0; margin: 0 !important; width: auto !important; display: flex !important; align-items: center; background: transparent !important; }
  body.sb-v2 .main-header .navbar .sidebar-toggle { float: none !important; flex: 0 0 auto; }
  body.sb-v2 .main-header .navbar-custom-menu .navbar-nav > li > a { padding-left: 4px !important; padding-right: 4px !important; }
  body.sb-v2 .main-header .navbar-custom-menu { position: static !important; float: none !important; margin-left: auto !important; height: auto !important; min-width: 0; top: auto !important; }
}
