/* DuxSuite · Identidad 2026 — símbolo editorial D/S.
   Carga posterior a app.css y duxsuite-shell.css; no afecta navegación ni formularios. */
.brand-logo.dux-brand-mark{display:inline-flex!important;align-items:center;justify-content:center;flex:none;overflow:visible}
.brand-logo.dux-brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
.login-brand-big .brand-logo.dux-brand-mark{width:58px;height:58px;margin:0}
.login-brand-big .dux-login-wordmark{display:block;letter-spacing:-.035em;line-height:1.14}
.login-brand-big .dux-login-wordmark .dux-brand-accent{display:inline!important;font-size:inherit!important;line-height:inherit!important;margin:0!important;color:#b480ff!important}
.login-brand-big .dux-brand-caption{color:#b5bfd2;font-size:12px;margin-top:4px}
.login-card-head .mini-logo .brand-logo.dux-brand-mark{width:40px;height:40px}
.login-card-head .mini-logo .dux-brand-accent{color:#7c3aed}
.brand-block .brand-logo.dux-brand-mark{width:42px!important;height:42px!important}
.brand-block .brand-name{line-height:1.1;white-space:nowrap}
.brand-block .brand-name .dux-brand-accent{color:#7628da}
.brand-block .brand-sub{white-space:nowrap}
@media(min-width:821px){
  body.dux-menu-collapsed .brand-block .brand-logo.dux-brand-mark{width:44px!important;height:44px!important}
}
@media(max-width:720px){
  .login-card-head .mini-logo{display:flex;align-items:center;gap:10px}
}

/* DuxSuite — Menú institucional del equipo editorial · noviembre 2026
   Capa exclusivamente visual. No afecta el portal de autores, las rutas,
   los permisos, las acciones ni la distribución del contenido. */

body.app-body:not([data-area="author"]) .sidebar {
  background:
    radial-gradient(circle at 88% 86%, rgba(133, 44, 229, .25), transparent 44%),
    linear-gradient(163deg, #160d3a 0%, #211852 48%, #130e34 100%) !important;
  color: #f7f3ff !important;
  border-right: 1px solid rgba(213, 189, 255, .13) !important;
  box-shadow: 5px 0 24px rgba(19, 12, 50, .12) !important;
}

body.app-body:not([data-area="author"]) .sidebar .brand-block {
  border-bottom: 1px solid rgba(224, 210, 255, .18) !important;
  padding-bottom: 19px !important;
}
body.app-body:not([data-area="author"]) .sidebar .brand-logo {
  filter: drop-shadow(0 3px 8px rgba(160, 94, 255, .17));
}
body.app-body:not([data-area="author"]) .sidebar .brand-name {
  color: #ffffff !important;
  font-size: 19px !important;
  letter-spacing: -.04em !important;
}
body.app-body:not([data-area="author"]) .sidebar .brand-name .dux-brand-accent {
  color: #d2a0ff !important;
}
body.app-body:not([data-area="author"]) .sidebar .brand-sub {
  color: #c0b5dc !important;
  font-size: 10px !important;
}
body.app-body:not([data-area="author"]) .sidebar .sidebar-collapse {
  background: #fff !important;
  border-color: #e6e0f4 !important;
  color: #6d38ae !important;
}
body.app-body:not([data-area="author"]) .sidebar .sidebar-collapse:hover,
body.app-body:not([data-area="author"]) .sidebar .sidebar-collapse:focus-visible {
  background: #f4eaff !important;
  color: #592398 !important;
}

body.app-body:not([data-area="author"]) .sidebar .sidebar-user {
  margin: 12px 0 11px;
  padding: 12px 10px !important;
  border: 1px solid rgba(219, 201, 255, .12);
  border-radius: 13px;
  background: rgba(255, 255, 255, .055);
  gap: 10px !important;
  min-width: 0;
}
body.app-body:not([data-area="author"]) .sidebar .sidebar-avatar {
  flex: 0 0 40px;
  width: 40px !important;
  height: 40px !important;
  border: 2px solid rgba(234, 215, 255, .58) !important;
  background: linear-gradient(135deg, #7441dc, #b26cff) !important;
  color: #fff !important;
}
body.app-body:not([data-area="author"]) .sidebar .sidebar-user-copy strong {
  color: #fff !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
}
body.app-body:not([data-area="author"]) .sidebar .sidebar-user-copy > span {
  color: #cbbde7 !important;
  font-size: 10px !important;
}
body.app-body:not([data-area="author"]) .sidebar .sidebar-user-copy small {
  color: #b7b0d3 !important;
  font-size: 9.5px !important;
}
body.app-body:not([data-area="author"]) .sidebar .sidebar-user-copy small i {
  background: #41dc99 !important;
  box-shadow: 0 0 0 3px rgba(65, 220, 153, .12) !important;
}

body.app-body:not([data-area="author"]) .sidebar .nav-list {
  gap: 3px !important;
  padding-top: 5px !important;
  scrollbar-color: rgba(192, 164, 236, .42) transparent !important;
  scrollbar-width: thin;
}
body.app-body:not([data-area="author"]) .sidebar .nav-list::-webkit-scrollbar {
  width: 5px;
}
body.app-body:not([data-area="author"]) .sidebar .nav-list::-webkit-scrollbar-thumb {
  background: rgba(192, 164, 236, .42);
  border-radius: 8px;
}
body.app-body:not([data-area="author"]) .sidebar .nav-section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 17px 10px 7px !important;
  color: #bdafd9 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: .09em !important;
  white-space: nowrap;
}
body.app-body:not([data-area="author"]) .sidebar .nav-section-label::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: rgba(218, 198, 255, .2);
}

body.app-body:not([data-area="author"]) .sidebar .nav-item {
  min-height: 39px;
  padding: 9px 11px !important;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px !important;
  color: #e3daef !important;
  background: transparent !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  line-height: 1.35;
  box-shadow: none !important;
  transition: background .18s ease, color .18s ease,
    border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
body.app-body:not([data-area="author"]) .sidebar .nav-item:hover:not(.active) {
  color: #fff !important;
  background: linear-gradient(95deg, rgba(156, 95, 242, .28), rgba(121, 75, 201, .16)) !important;
  border-color: rgba(209, 174, 255, .16) !important;
  box-shadow: inset 3px 0 0 #b58bff, 0 5px 14px rgba(8, 5, 27, .13) !important;
  transform: translateX(2px);
}
body.app-body:not([data-area="author"]) .sidebar .nav-item.active {
  color: #fff !important;
  background: linear-gradient(105deg, #7124d8 0%, #9d31ed 100%) !important;
  border-color: rgba(221, 190, 255, .3) !important;
  box-shadow: 0 7px 17px rgba(91, 31, 162, .28) !important;
  font-weight: 750 !important;
}
body.app-body:not([data-area="author"]) .sidebar .nav-item.active:hover {
  background: linear-gradient(105deg, #8231e7 0%, #ad40f5 100%) !important;
}
body.app-body:not([data-area="author"]) .sidebar .nav-item:focus-visible {
  outline: 2px solid #d3b1ff !important;
  outline-offset: 2px;
  color: #fff !important;
}
body.app-body:not([data-area="author"]) .sidebar .nav-icon,
body.app-body:not([data-area="author"]) .sidebar .nav-icon svg {
  width: 18px !important;
  height: 18px !important;
}
body.app-body:not([data-area="author"]) .sidebar .nav-icon {
  flex: 0 0 18px !important;
}

body.app-body:not([data-area="author"]) .sidebar #print-pending-dot {
  box-shadow: 0 0 0 2px #2b1758 !important;
}
body.app-body:not([data-area="author"]) .sidebar #print-pending-count:not([hidden]) {
  color: #fff !important;
  background: #ee4569;
  min-width: 18px;
  border-radius: 999px;
  padding: 2px 5px;
  text-align: center;
  line-height: 1.15;
}

body.app-body:not([data-area="author"]) .sidebar .sidebar-bottom {
  border-top: 1px solid rgba(221, 204, 255, .17) !important;
  padding-top: 10px !important;
}
body.app-body:not([data-area="author"]) .sidebar .logout-link {
  color: #c9bcdf !important;
}
body.app-body:not([data-area="author"]) .sidebar .logout-link:hover {
  color: #fff !important;
  background: rgba(227, 74, 119, .18) !important;
  box-shadow: inset 3px 0 0 #ef7294 !important;
}

@media (min-width: 821px) {
  body.app-body.dux-menu-collapsed:not([data-area="author"]) .sidebar .sidebar-user {
    justify-content: center;
    padding: 9px 0 !important;
    background: transparent;
    border-color: transparent;
  }
  body.app-body.dux-menu-collapsed:not([data-area="author"]) .sidebar .nav-item {
    justify-content: center;
    padding: 9px 7px !important;
    gap: 0;
    transform: none;
  }
  body.app-body.dux-menu-collapsed:not([data-area="author"]) .sidebar .nav-item > span:not(.nav-icon) {
    display: none !important;
  }
  body.app-body.dux-menu-collapsed:not([data-area="author"]) .sidebar .nav-section-label {
    display: none !important;
  }
}
@media (max-width: 820px) {
  /* En móvil, desplazar el panel completo hasta el último enlace.
     El menú permanece fijo horizontalmente, pero no bloquea el gesto vertical. */
  body.app-body:not([data-area="author"]) .sidebar {
    box-shadow: 10px 0 34px rgba(12, 7, 36, .25) !important;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0 !important;
    box-sizing: border-box;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }
  body.app-body:not([data-area="author"]) .sidebar .nav-list {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  body.app-body:not([data-area="author"]) .sidebar .sidebar-bottom {
    margin-top: 12px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.app-body:not([data-area="author"]) .sidebar .nav-item {
    transition: none;
  }
}
