/* Same workspace language as Mi cuenta. Access visibility is controlled by validated auth. */
#adminAccessView[hidden],#loginView[hidden],#adminView[hidden],#adminAccessRetry[hidden]{display:none!important}
.admin-access-view{padding-top:40px;padding-bottom:40px;min-height:260px}
.admin-access-view h1{font-size:32px;margin:0 0 16px}
.admin-access-view .actions{margin-top:24px}
.admin-workspace-shell{grid-template-columns:228px minmax(0,1fr);gap:28px;align-items:stretch;padding-top:24px;background:transparent}
.admin-workspace-shell [hidden],.admin-workspace-shell .hidden{display:none!important}
.admin-workspace-shell .sidebar{display:flex;flex-direction:column;align-items:stretch;gap:6px;background:transparent;padding:12px 16px 24px 0;border-right:1px solid var(--line);min-width:0;overflow-y:auto}
.admin-workspace-shell .admin-main{padding:4px 0 28px;min-width:0}
.admin-workspace-shell .admin-back-link{display:inline-flex;align-items:center;min-height:44px;margin:0 0 14px;font-size:12px}
.admin-workspace-shell .admin-person{display:flex;align-items:center;gap:12px;min-width:0;margin:0 0 18px;padding:10px 0;color:var(--text);text-decoration:none}
.admin-person-identity{min-width:0;margin:0}
.admin-person-identity strong{display:block;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.admin-person-identity small{display:block;color:var(--muted);font-size:11px;line-height:1.5;overflow-wrap:anywhere;margin-top:3px}
.admin-workspace-avatar{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;flex:0 0 42px;border-radius:50%;background:#2b3520;color:#e5efdb;font-size:14px;font-weight:700}
.admin-workspace-shell .sidebar button,.admin-workspace-shell .sidebar-link{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:46px;min-width:0;width:100%;padding:12px;margin:0;border:0;border-radius:10px;font-size:13px;font-weight:600;letter-spacing:0;line-height:1.4;text-transform:none;white-space:normal;text-align:left;color:var(--muted)}
.admin-workspace-shell .sidebar svg{flex:0 0 20px}
.admin-workspace-shell .sidebar button.active,.admin-workspace-shell .sidebar-link.active{background:#202d12;color:var(--accent)}
.admin-workspace-shell .sidebar-group{margin:0;min-width:0;border:0;background:transparent}
.admin-workspace-shell .sidebar-group-toggle::after{margin-left:auto;font-size:18px}
.admin-workspace-shell .sidebar-group-items{padding:0 0 6px;gap:4px}
.admin-workspace-shell .sidebar-group-items button,.admin-workspace-shell .sidebar-group-items .sidebar-link{padding-left:20px;font-size:12px}
.admin-workspace-shell .sidebar-group-items svg{width:16px;height:16px;flex-basis:16px}
.admin-workspace-shell .admin-workspace-footer{display:grid;gap:8px;border-top:1px solid var(--line);padding-top:16px;margin-top:auto}
.admin-workspace-shell .admin-workspace-footer .btn{width:auto;justify-self:start;min-height:44px;border:0;font-size:12px;text-transform:uppercase}
.admin-workspace-shell .admin-top,.admin-workspace-shell .ops-top{gap:16px;align-items:center;margin:0 0 24px}
.admin-workspace-shell .admin-top h1,.admin-workspace-shell .ops-top h1,.admin-workspace-shell .admin-visitor-heading h1{font-family:var(--visual-title);font-style:italic;font-size:28px;font-weight:800;line-height:1.2;text-transform:none;letter-spacing:-.4px;margin:0}
.admin-workspace-shell .admin-top-actions{width:auto}
.admin-workspace-shell .admin-event-context{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(180px,1fr);gap:10px 20px;align-items:center;margin:0 0 20px;padding:16px;min-width:0}
.admin-workspace-shell .admin-event-context[hidden],.admin-workspace-shell .admin-event-context.hidden,.admin-workspace-shell [data-admin-event-legacy][hidden],.admin-workspace-shell [data-admin-event-legacy].hidden{display:none!important}
.admin-workspace-shell .admin-event-context-selection,.admin-workspace-shell .admin-event-context-info{min-width:0}
.admin-workspace-shell .admin-event-context-selection select{min-width:0;min-height:44px;font-size:14px}
.admin-workspace-shell .admin-event-context-scope{margin:0;color:var(--text);font-size:13px;font-weight:600;line-height:1.5}
.admin-workspace-shell #adminEventMeta{margin:4px 0 0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.admin-workspace-shell #adminEventStatus{grid-column:1/-1;margin:0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.admin-workspace-mobile-head{display:none}
.admin-workspace-shell .admin-duplicate-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.admin-workspace-shell .admin-heading-label,.admin-workspace-shell .admin-heading-empty,.admin-workspace-shell .admin-panel>.section-head .eyebrow{display:none}
.admin-workspace-shell .admin-panel>.section-head{margin-top:0}
.admin-workspace-shell .admin-panel>.section-head:has(.admin-heading-label){justify-content:flex-end}
.admin-workspace-shell .admin-panel>.section-head p{font-size:13px;line-height:1.5}
.admin-workspace-shell .status-line:empty{display:none}
.admin-workspace-shell #dashboardStatus.ok-text{display:none}
.admin-workspace-shell [data-panel-id="overview"] .kpi{padding:16px;min-height:100px}
.admin-workspace-shell [data-panel-id="overview"] .kpi strong{font-size:28px}
.admin-workspace-shell .admin-overview-disclosure>summary{padding:13px 16px;grid-template-columns:minmax(0,1fr) auto}
.admin-workspace-shell .admin-overview-disclosure>summary small{grid-column:1}
.admin-workspace-shell .admin-overview-disclosure>summary::after{grid-column:2;grid-row:1/span 2}
.admin-workspace-shell .admin-overview-disclosure>summary strong{font-size:15px}
.admin-workspace-shell #adminModalitiesNav>h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.admin-workspace-shell .ops-context-card .section-head{margin-bottom:12px}
.admin-workspace-shell .ops-context-card .section-head h2{font-size:18px;margin:0}
.admin-workspace-shell .ops-top .eyebrow{display:none}
.admin-workspace-shell[data-admin-visitor]:not(.is-workspace-ready){grid-template-columns:minmax(0,1fr)}
.admin-visitor-heading{margin-bottom:22px}
.admin-visitor-heading p{color:var(--muted);font-size:13px;line-height:1.5;margin:10px 0 0}
.admin-workspace-shell .visitor-shell{width:auto;max-width:none;margin:0;padding:0}
@media(min-width:761px){.admin-workspace-shell .sidebar{position:sticky;top:82px;align-self:start;max-height:calc(100vh - 82px);min-height:540px}}
@media(max-width:760px){
  .admin-workspace-shell{display:block;padding-top:12px}
  .admin-workspace-shell .sidebar{display:none;position:static;border-right:0;border-bottom:1px solid var(--line);padding:0 0 20px;margin-bottom:24px;overflow:visible;max-height:none}
  .admin-workspace-shell .sidebar.is-workspace-open{display:flex}
  .admin-workspace-shell .admin-main{padding:0 0 24px}
  .admin-workspace-mobile-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:20px}
  .admin-workspace-mobile-head .btn{min-height:44px}
  .admin-workspace-mobile-head>span{font-size:13px;color:var(--muted)}
  .admin-workspace-shell .admin-top h1,.admin-workspace-shell .ops-top h1,.admin-workspace-shell .admin-visitor-heading h1{font-size:25px}
  .admin-workspace-shell .admin-top,.admin-workspace-shell .ops-top{flex-wrap:wrap;align-items:flex-start}
  .admin-workspace-shell .admin-event-context{grid-template-columns:minmax(0,1fr);gap:10px;margin-bottom:16px;padding:14px}
  .admin-workspace-shell [data-panel-id="overview"] .kpi{padding:12px;min-height:90px}
  .admin-workspace-shell [data-panel-id="overview"] .kpi strong{font-size:25px}
}
@media print{.admin-back-link,.admin-workspace-mobile-head,.admin-workspace-shell>.sidebar{display:none!important}.admin-workspace-shell{display:block!important;padding:0}.admin-workspace-shell .visitor-shell{max-width:80mm;padding:0;margin:0}}
