.tenant-brand{display:flex;align-items:center;justify-content:space-between;min-height:48px}.tenant-logo{display:block;max-width:170px;max-height:48px;object-fit:contain;object-position:left center}.tenant-wordmark{display:flex;align-items:center;gap:10px;min-width:0}.tenant-wordmark span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#00bce8;color:#061a3a;font-weight:800}.tenant-wordmark strong{overflow:hidden;text-overflow:ellipsis;font-size:13px}.mobile-menu,.mobile-close,.menu-backdrop{display:none}.brand-settings{margin-bottom:18px}.brand-settings .panel-head{margin-bottom:12px}.brand-settings .panel-head img{max-width:150px;max-height:54px;object-fit:contain}.brand-upload{display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:12px;align-items:end}.brand-upload label{font-size:11px;font-weight:700}.brand-upload input{display:block;width:100%;margin-top:7px;padding:10px;border:1px solid var(--line);border-radius:9px;background:#fff}.brand-upload small{grid-column:1/-1;color:var(--muted)}
@media(max-width:1000px){.main{padding-left:24px;padding-right:24px}.topbar{height:auto;min-height:100px;gap:16px}.top-actions{flex-wrap:wrap;justify-content:flex-end}.tenant-switcher select{max-width:190px}.organization-grid{grid-template-columns:1fr}.report-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){body.menu-open{overflow:hidden}.app-shell{display:block}.sidebar{position:fixed;z-index:1002;inset:0 auto 0 0;width:min(86vw,320px);height:100dvh;padding:22px;transform:translateX(-105%);transition:transform .22s ease;overflow-y:auto}.menu-open .sidebar{transform:translateX(0)}.sidebar nav{display:grid;grid-template-columns:1fr;margin-top:28px;overflow:visible}.nav-link{font-size:14px;justify-content:flex-start}.sidebar-foot{display:block;margin-top:32px}.powered-by{display:flex}.mobile-close{display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:9px;background:rgba(255,255,255,.1);color:#fff;font-size:26px}.menu-backdrop{position:fixed;z-index:1001;inset:0;border:0;background:rgba(6,26,58,.55)}.menu-open .menu-backdrop{display:block}.mobile-menu{display:grid;gap:4px;flex:0 0 42px;width:42px;height:42px;padding:11px;border:1px solid #dbe3ec;border-radius:10px;background:#fff}.mobile-menu span{display:block;height:2px;background:#061a3a;border-radius:2px}.topbar{justify-content:flex-start;min-height:88px}.topbar-title{min-width:0}.topbar-title h1{font-size:23px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-actions{margin-left:auto}.tenant-switcher label{font-size:0}.tenant-switcher select{max-width:135px;font-size:11px}.role-pill,.date{display:none}.main{padding:0 14px 32px}.panel,.table-panel{padding:18px}.hero-row,.report-hero,.plan-hero,.platform-intro{padding:22px}.summary-strip{grid-template-columns:1fr}.summary-strip div{border-right:0;border-bottom:1px solid #284753}.subscription-summary{padding:19px}.brand-upload{grid-template-columns:1fr}.brand-upload small{grid-column:auto}.report-grid,.metric-boxes{grid-template-columns:1fr}.organization-metrics{grid-template-columns:1fr 1fr}.organization-card{padding:17px}.inline-actions,.destructive-actions{flex-wrap:wrap}.destructive-actions{justify-content:flex-start}.destructive-actions form{width:100%}.destructive-actions .button{width:100%}.login-story{min-height:34vh;padding:24px}.story-copy h1{font-size:32px}.login-panel{padding:28px 20px}.login-card h2{font-size:30px}}
@media(max-width:420px){.top-actions{display:none}.kpi-card>strong{font-size:26px}.organization-metrics{grid-template-columns:1fr}.project-row{grid-template-columns:1fr}.user-item summary{align-items:flex-start;flex-wrap:wrap}.user-item summary p{width:calc(100% - 54px)}.role{margin-left:50px}.table-panel{padding:14px}}

.form-stack input[type=checkbox]{width:auto;margin-right:8px}.form-stack fieldset{border:1px solid var(--line);border-radius:10px;padding:16px;display:grid;gap:10px}.form-stack legend{font-weight:700}.plan-hero{flex-wrap:wrap;gap:20px}.inline-actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:760px){.tenant-switcher{display:block}.top-actions{display:flex}.login-shell{display:flex;flex-direction:column}.login-story,.login-panel{width:100%;min-width:0}.login-story{min-height:260px}.login-card{width:100%;max-width:430px}.story-copy h1{overflow-wrap:anywhere}.topbar{flex-wrap:wrap}.top-actions{width:100%;margin-bottom:12px;justify-content:flex-start}.tenant-switcher select{max-width:calc(100vw - 60px)}}
[hidden]{display:none!important}

.series-chart{width:100%;height:auto;max-height:280px;overflow:visible}.series-chart text{font-size:12px;fill:currentColor}fieldset{min-width:0}summary{cursor:pointer;padding:10px 0}main>article.panel,main>section.panel{margin-bottom:18px}.table-wrap{max-width:100%}.inline-actions input{max-width:100%}.sidebar nav{overflow-y:auto;min-height:0}.sidebar-foot{flex-shrink:0}.pagination a{width:auto;min-width:32px;padding:8px}.alert{overflow-wrap:anywhere}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Estándar tipográfico para todos los módulos, controles y gráficos. */
html,body,body *,body *::before,body *::after{font-family:Montserrat,Arial,sans-serif!important}
/* Espacio entre Nueva empresa, filtros y tarjetas. */
.platform-new-company{margin-bottom:24px}.organization-grid{margin-top:24px}
/* Separación entre estado (Trial) e identificador de empresa. */
.organization-card-head .organization-identifier{display:block;margin-top:10px;margin-bottom:10px;line-height:1.5}
.current-plan{background:#0078d4;color:#fff;cursor:default}.plan-table .current-plan-column{background:#e5f3ff;color:#064b83}.plan-table thead .current-plan-column{background:#0078d4;color:#fff}
.plan-table th:not(.current-plan-column),.plan-table td:not(.current-plan-column){background:transparent;color:inherit}
.component-table{grid-column:1/-1;border-top:4px solid #0078a8}.period-table{min-width:620px;font-variant-numeric:tabular-nums}.period-table caption{text-align:left;padding:12px 0;font-weight:700}.period-table thead th{background:#eef6fc;white-space:normal}.period-table td:not(:first-child){text-align:right}.period-table th small{display:block;font-size:10px;color:#59728b;margin-top:5px}.period-table tr.period-latest{background:#eaf8fc}.component-card.component-table .period-table strong{font-size:14px;line-height:1.4;letter-spacing:normal;color:#061a3a}.component-target{font-size:12px;color:#53647d}.form-grid label small{font-size:11px;font-weight:400;line-height:1.6;text-transform:none;letter-spacing:normal}.dataset-reset{margin-top:24px;border-left:4px solid #d64a55}.kpi-card>strong,.component-card>strong,.report-card>strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-size:clamp(22px,2.4vw,32px)}
