/* Expansão 360º — estilos aditivos. Não substitui portal.css nem identidade visual. */
.headline h1>.icon,.headline h1 .icon{width:25px;height:25px;color:var(--olive);vertical-align:-4px;margin-right:7px}
.ui-iconified{display:flex!important;align-items:center;gap:8px}.ui-iconified>.icon{width:18px;height:18px;color:var(--olive);flex:0 0 auto}.btn.ui-iconified>.icon{width:14px;height:14px;margin-right:2px}.card h2.ui-iconified{gap:7px}.card h2.ui-iconified>.icon{width:17px;height:17px}
.office360-card{padding:0;overflow:hidden}.office360-card>.card-head{padding:18px 20px;margin:0;border-bottom:1px solid var(--line);align-items:end}.office360-search{margin:0;min-width:260px}.office360-table{padding:0 14px 16px}.office360-table table{min-width:1180px}.office360-table td{vertical-align:middle}.office360-table td:first-child{min-width:210px}.domain-status{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px;align-items:center;min-width:118px;padding:7px 8px;border-radius:10px;border:1px solid var(--line);background:#fff}.domain-status>span{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:10px;font-weight:900}.domain-status small{font-size:8px;line-height:1.25;color:var(--muted)}.domain-status.ok>span{background:#e7f1df;color:var(--ok)}.domain-status.warn>span{background:#fff2d8;color:var(--warn)}.domain-status.bad>span{background:#ffedeb;color:var(--bad)}.domain-status:hover{background:var(--mint)}.health-state{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:900;text-transform:uppercase}.health-state.ok{background:#e7f1df;color:var(--ok)}.health-state.warn{background:#fff2d8;color:var(--warn)}.health-state.bad{background:#ffedeb;color:var(--bad)}
.ops-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.ops-check{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:13px;padding:14px}.ops-check-icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center}.ops-check-icon .icon{width:19px;height:19px}.ops-check div{display:grid;gap:3px}.ops-check b{font-size:11px}.ops-check small{font-size:8px;color:var(--muted);overflow-wrap:anywhere}.ops-check.ok .ops-check-icon{background:#e7f1df;color:var(--ok)}.ops-check.bad .ops-check-icon{background:#ffedeb;color:var(--bad)}
.sidebar nav a[href*="page=office360"] .icon,.sidebar nav a[href*="page=corporate"] .icon,.sidebar nav a[href*="page=operations"] .icon{color:var(--olive)}
@media(max-width:1100px){.ops-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.office360-search{min-width:180px}}
@media(max-width:700px){.ops-grid{grid-template-columns:1fr}.office360-card>.card-head{display:grid}.office360-search{min-width:0;width:100%}.headline h1>.icon,.headline h1 .icon{width:22px;height:22px}}

/* Ajuste responsivo do seletor global de cliente. */
.company-switch{min-width:0;max-width:min(100%,460px)}
.company-switch label{min-width:0;max-width:100%}
.company-switch select{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;text-overflow:ellipsis}
@media(max-width:900px){.company-switch{max-width:360px}}
@media(max-width:700px){.topbar{min-width:0}.company-switch{width:100%;max-width:100%}.company-switch label,.company-switch select{width:100%;max-width:100%}}

/* Menu lateral fixo no viewport, com rolagem própria no desktop. */
@media(min-width:901px){
  .sidebar{
    position:sticky;
    top:0;
    align-self:flex-start;
    height:100vh;
    height:100dvh;
    max-height:100vh;
    max-height:100dvh;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    overscroll-behavior:contain;
  }
  .sidebar .brand,.sidebar .sidebar-foot{flex:0 0 auto}
  .sidebar nav{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
  }
}


/* Acesso profissional: Cliente | Contador | Colaborador. */
.auth-card.auth-choice-card{width:min(680px,calc(100vw - 32px));max-width:680px}
.simple-access.three-access{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.simple-access.three-access .access-card{min-width:0}
@media(max-width:700px){
  .auth-card.auth-choice-card{width:min(460px,calc(100vw - 24px))}
  .simple-access.three-access{grid-template-columns:1fr}
}

/* Área de trabalho com painéis internos multitarefa. */
.workspace-dock{position:sticky;top:42px;z-index:17;display:flex;align-items:center;gap:8px;min-height:48px;padding:7px 34px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);box-shadow:0 4px 14px rgba(52,69,31,.04);overflow-x:auto}
.workspace-dock strong{flex:0 0 auto;font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin-right:3px}
.workspace-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;border:1px solid #cbd7bc;background:#fff;color:var(--deep);border-radius:8px;padding:7px 10px;font-size:10px;font-weight:850;white-space:nowrap}
.workspace-chip:hover{background:var(--mint);border-color:#afbf99}
.workspace-chip .icon{width:15px;height:15px;color:var(--olive)}
.workspace-stage{position:fixed;inset:0;z-index:85;pointer-events:none}
.workspace-window{position:fixed;width:min(860px,calc(100vw - 30px));height:min(640px,calc(100vh - 110px));min-width:360px;min-height:260px;display:flex;flex-direction:column;background:#fff;border:1px solid #c7d3b8;border-radius:8px;box-shadow:0 24px 80px rgba(32,43,21,.24);resize:both;overflow:hidden;pointer-events:auto}
.workspace-window-head{height:40px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 8px 0 13px;background:#f5f8f1;border-bottom:1px solid var(--line);cursor:move;user-select:none}
.workspace-window-head strong{font-size:11px;color:var(--deep);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-window-controls{display:flex;align-items:center;gap:4px}
.workspace-window-controls button{width:28px;height:28px;display:grid;place-items:center;border:1px solid #cbd7bc;background:#fff;color:var(--deep);border-radius:7px;font-size:14px;font-weight:900;line-height:1}
.workspace-window-controls button:hover{background:#eaf1df}
.workspace-window iframe{display:block;flex:1 1 auto;width:100%;height:100%;border:0;background:var(--canvas)}
.workspace-window.is-minimized{height:40px!important;min-height:40px;resize:none}
.workspace-window.is-minimized iframe{display:none}
.workspace-embed{background:var(--canvas)!important}
.workspace-embed .sidebar,.workspace-embed .topbar,.workspace-embed .market-strip,.workspace-embed .ticker,.workspace-embed .accessibility-bar,.workspace-embed .workspace-dock,.workspace-embed .tour-overlay{display:none!important}
.workspace-embed .app{display:block;min-height:100vh}
.workspace-embed .shell{background:transparent}
.workspace-embed .shell:before{display:none}
.workspace-embed .content{max-width:none;margin:0;padding:18px 18px 44px}
.workspace-embed .headline{margin-bottom:16px}
.workspace-embed .stat,.workspace-embed .card{box-shadow:none}
.mini-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
body.a11y-contrast .workspace-dock,body.a11y-contrast .workspace-chip,body.a11y-contrast .workspace-window,body.a11y-contrast .workspace-window-head,body.a11y-contrast .workspace-window-controls button{background:#000!important;color:#fff!important;border-color:#fff!important}
body.a11y-contrast .workspace-chip:hover,body.a11y-contrast .workspace-window-controls button:hover{background:#222!important;color:#ffe600!important}
@media(max-width:900px){.workspace-dock{top:0;padding-inline:14px}.workspace-window{inset:62px 10px 10px 10px!important;width:auto!important;height:auto!important;min-width:0;min-height:0;resize:none}.workspace-window.is-minimized{inset:auto 10px 10px 10px!important}.workspace-embed .content{padding:14px}.mini-stats{grid-template-columns:1fr}}
