/* Compact layout 2026-10-05: smaller page headers, guides on demand, grouped sidebar. Visual only. */

/* Page headers: same content, less height */
body .sa-main-hero,body .sa-section-hero,body .sa-page-banner,body .gd-hero,body .hbo-hero,body .ml-hero,body .chek-hero,body .dma-hero{min-height:0!important;padding:14px 20px!important;margin-bottom:14px!important;gap:14px!important;border-radius:16px!important}
body .sa-main-hero h1,body .sa-main-hero h2,body .sa-section-hero h2,body .sa-page-banner h2,body .gd-hero h1,body .hbo-hero h2,body .ml-hero h2,body .chek-hero h2,body .dma-hero h2{font-size:22px!important;line-height:1.15!important;margin:3px 0 0!important}
body .sa-main-hero p,body .sa-section-hero p,body .sa-page-banner p,body .gd-hero p,body .hbo-hero p,body .ml-hero-copy p,body .chek-hero-copy>p,body .dma-hero p{display:none!important}
body .sa-hero-orbit{display:none!important}
body .hbo-hero{flex-direction:row!important;align-items:center!important}
body .hbo-hero .hbo-logo{transform:scale(.8)}
body .gd-hero small{display:block;margin-top:4px}
body .sa-section-icon,body .sa-page-icon,body .dma-hero-logo,body .ml-mark{transform:scale(.8);transform-origin:center}

/* "Cómo..." guides: hidden until opened with the ? button in the top bar */
body .ui-guide:not([open]){display:none!important}

/* Accounts table pager */
.account-more{display:flex;align-items:center;justify-content:center;gap:10px;padding:14px;color:var(--txt2);font-size:12px;flex-wrap:wrap}
.account-more-row td{background:transparent!important}

/* Sidebar: flat groups */
.nav-flat>summary{display:none!important}
.nav-flat{border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;margin:0!important}
.nav-flat>.workspace-module-list{padding:0!important;margin:0!important;border:0!important;background:transparent!important}
.nav-group-label{display:block;margin:14px 10px 6px;font-size:10px;font-weight:750;letter-spacing:.12em;text-transform:uppercase;color:var(--txt3,#7d8aa5)}
.nav-group-label[hidden]{display:none!important}

/* Platform picker in 2 columns instead of 6 tall rows */
.workspace-streaming .sb-sect{display:grid!important;grid-template-columns:1fr 1fr;gap:4px}
.workspace-streaming .sb-sect .sb-lbl{grid-column:1/-1}
.workspace-streaming .sb-plat{min-height:0!important;padding:6px 8px!important;font-size:12px!important;gap:6px!important;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace-streaming .sb-plat .sb-pico{width:22px!important;height:22px!important;min-width:22px;font-size:9px!important;border-radius:7px!important}

/* Sidebar counters hidden until real data arrives */
body:not(.inventory-loaded) .workspace-streaming .sbb{visibility:hidden}

/* Usage: "Lo que más usás" + team report */
.usage-quick{margin:0 0 16px;padding:14px 16px;border:1px solid #2c4560;border-radius:16px;background:linear-gradient(110deg,#11213a,#0f1d2b)}
.usage-quick header{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.usage-quick h3{font-size:14px;margin:0}.usage-quick small{color:var(--txt2,#9fb0c8);font-size:11px}
.usage-open{margin-left:auto;padding:6px 12px;border-radius:10px;border:1px solid #3c5a7d;background:#16304d;color:#d6e9ff;font-size:12px;cursor:pointer}
.usage-chips{display:flex;flex-wrap:wrap;gap:8px}
.usage-chips a{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:150px;padding:9px 12px;border-radius:12px;border:1px solid #31507a;background:#132842;color:#eaf3ff;cursor:pointer;text-align:left;text-decoration:none}
.usage-chips a:hover{border-color:#5fa8ff;background:#173257}
.usage-chips strong{font-size:13px}.usage-chips span{font-size:11px;color:#9fb6d3}
.usage-empty{font-size:12px;color:var(--txt2,#9fb0c8)}
.usage-report{width:min(860px,94vw);max-height:86vh;padding:0;border:1px solid #34506f;border-radius:18px;background:#0e1a2b;color:#e6eefb}
.usage-report::backdrop{background:rgba(3,8,18,.7)}
.usage-report header{position:sticky;top:0;display:flex;gap:8px;align-items:center;padding:14px 18px;background:#0e1a2b;border-bottom:1px solid #22364f}
.usage-report h3{margin:0 auto 0 0;font-size:16px}
.usage-report select,.usage-report header button{padding:6px 10px;border-radius:9px;border:1px solid #34506f;background:#15263c;color:#e6eefb}
.usage-body{padding:6px 18px 18px;font-size:13px}.usage-body h4{margin:16px 0 8px;font-size:13px;color:#9fd0ff}
.usage-note{color:#9fb0c8;font-size:12px}
.usage-bars>div,.usage-table>div{display:grid;grid-template-columns:minmax(0,1.4fr) 1fr 48px;gap:10px;align-items:center;padding:4px 0;border-bottom:1px solid #18283d}
.usage-table>div{grid-template-columns:1fr 60px}
.usage-bars span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.usage-bars small{color:#8aa0bd;margin-left:6px}
.usage-bars i{display:block;height:8px;border-radius:6px;background:linear-gradient(90deg,#3b82f6,#22d3ee)}
.usage-bars b,.usage-table b{text-align:right}

/* ---- Module dashboards 2026-10-05 ---- */
/* Mercado Libre: only the active tab is shown (the operator form was leaking into every tab) */
#pg-ml .ml-pane:not(.on){display:none!important}
/* Mercado Libre: "Acciones rápidas" repeated the tabs right above it */
#pg-ml .ml-actions-card{display:none!important}
#pg-ml .ml-command-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)!important}
/* Inventory dashboard: actions as one slim toolbar; resellers stay in the menu */
#pg-dash .quick-actions{display:flex!important;flex-wrap:wrap;gap:8px!important;margin-bottom:14px!important}
#pg-dash .quick-action{flex:0 0 auto!important;min-height:0!important;padding:8px 14px!important;gap:8px!important;border-radius:12px!important}
#pg-dash .quick-action span{display:none!important}
#pg-dash .quick-action strong{font-size:13px!important}
#pg-dash .quick-action i{font-size:16px!important;width:auto!important;height:auto!important;background:none!important}
#pg-dash .quick-action[onclick*="'rs'"],#pg-dash .quick-action.admin-only{display:none!important}
/* HBO: hidden clients toggle */
.hbo-idle-toggle{margin-top:10px}
.hbo-client-row[hidden]{display:none!important}
