/* Contexto administrativo de uma empresa: isolado dos menus gerais. */
.company-active #sideMenu{display:none!important}
.company-sidebar{background:#0867ca}
.company-sidebar .nav{height:135px}
.company-sidebar .nav:nth-child(2),.company-sidebar .nav:nth-child(3){height:145px}
.company-active #companySideMenu{display:flex!important}
.company-active .workspace>.breadcrumb{display:none}
.company-active .identity small{color:#8b97a8}
.company-active .identity strong{font-size:12px;max-width:280px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.top-company-back{border:0;background:#eaf3ff;color:#0871cf;border-radius:4px;cursor:pointer;padding:9px 12px;font-size:11px;font-weight:600}
.top-company-back:hover{background:#d9ebfc}
.company-panel{color:#364457}
.company-breadcrumb{display:flex;align-items:center;border-bottom:1px solid #d8dce5;gap:20px;padding:0 0 16px;margin:2px 0 12px}
.company-breadcrumb h1{font-size:21px;font-weight:400;margin:0}
.company-breadcrumb>span{font-size:12px;color:#8e99a8;border-left:1px solid #dce0e6;padding-left:20px}
.company-breadcrumb b{padding:0 10px;font-weight:400}
.company-admin-context{display:flex;justify-content:space-between;align-items:center;margin:0 0 14px;gap:12px;font-size:11px;color:#74859b}
.company-admin-context strong{font-weight:600;color:#3b5c83}
.company-admin-context button{background:none;color:#0868c9;border:0;cursor:pointer;font-size:11px;text-decoration:underline}
.company-dashboard-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:21px;margin:0 0 14px}
.company-dashboard-card{height:87px;display:flex;align-items:center;gap:15px;background:#fff;border:1px solid #f0f1f5;padding:15px 16px 14px 20px;box-shadow:0 2px 6px #27374508}
.company-card-icon{width:54px;height:55px;flex:0 0 54px;position:relative;display:grid;place-items:center;color:#006ee0}
.company-card-icon .icon-svg{height:51px;width:51px;stroke-width:1.25}
.company-card-icon em{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);font-size:11px;font-weight:800;font-style:normal;color:#0669ca;background:white;line-height:1}
.company-card-summary{display:flex;flex-direction:column;min-width:0;gap:4px;flex:1;white-space:nowrap}
.company-card-summary>span{font-size:13px;color:#99a3b1;overflow:hidden;text-overflow:ellipsis}
.company-card-summary strong{font-size:20px;color:#0870d8;font-weight:600;line-height:1.1}
.company-dashboard-card>button{border:1px solid #b7bbc1;background:#fff;color:#9299a4;padding:6px 10px;border-radius:3px;font-size:11px;white-space:nowrap;align-self:flex-end;cursor:pointer}
.company-dashboard-card>button:hover{border-color:#0873d5;color:#0873d5}
.company-dashboard-bottom{display:grid;grid-template-columns:1fr 1fr;gap:21px}
.company-monthly-block,.company-latest-block{height:375px;padding:17px 20px}
.company-dashboard-bottom h2{font-size:17px;margin:0 0 16px;font-weight:400;color:#354357}
#companyMonthlyChart{height:305px}
#companyMonthlyChart svg{display:block;height:100%;width:100%;overflow:visible}
.company-latest-scroll{height:310px;overflow:auto}
.company-latest-block table{min-width:590px}
.company-latest-block th{padding:13px 11px;font-size:12px}
.company-latest-block td{padding:12px 11px;font-size:11px;white-space:nowrap}
.company-latest-block td:nth-child(3){max-width:255px;text-overflow:ellipsis;overflow:hidden}
.company-document-eye{border:0;background:transparent;color:#8994a4;padding:4px 7px;cursor:pointer}
.company-document-eye .icon-svg{width:15px;height:15px}
.company-document-eye:hover{color:#006dcc}
.company-empty-module{min-height:360px;text-align:center;padding:55px 30px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px}
.company-empty-module>span .icon-svg{height:43px;width:43px;color:#338ee2}
.company-empty-module h2{font-size:20px;font-weight:500;margin:0}
.company-empty-module p{max-width:540px;color:#8493a4;line-height:1.6;margin:0 0 10px}
#companyDocDetails{font-size:13px;color:#536178}
#companyDocDetails p{border-bottom:1px solid #eef0f4;padding-bottom:10px}
#companyDocDetails strong{color:#334054}
@media(max-width:1480px){
.company-dashboard-cards{gap:12px}
.company-dashboard-card{padding:13px 11px;gap:9px}
.company-card-icon{width:43px;flex-basis:43px}
.company-card-icon .icon-svg{width:43px;height:47px}
.company-card-summary>span{font-size:12px}
.company-dashboard-card>button{font-size:10px;padding:5px 7px}
}
@media(max-width:1120px){.company-dashboard-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.company-dashboard-bottom{grid-template-columns:1fr}}
@media(max-width:680px){
.company-dashboard-cards{grid-template-columns:1fr}
.company-dashboard-card{height:83px}
.company-breadcrumb{margin-bottom:13px}
.company-admin-context{flex-direction:column;align-items:flex-start;gap:8px}
.top-company-back{font-size:10px;padding:5px}
.company-monthly-block,.company-latest-block{padding:12px;min-height:360px;height:auto}
.company-active .identity strong{max-width:140px}
}

/* Empresa identificada no topo; retirar barra redundante das demais paginas. */
.company-active .company-admin-context{display:none!important}
.company-active #companyPanel:has(.reg-workspace)>.company-breadcrumb{display:none!important}

/* Cabeçalho seguindo o seletor da referência fornecida pelo usuário.
   Sair da empresa usa a rota de saída do contexto; Sair do usuário encerra login. */
.topbar{z-index:35!important}
.top-left{gap:21px!important;min-width:0!important}
.identity{min-width:0;position:relative;align-items:flex-start;gap:3px!important}
.identity #topContextLabel{font-size:11px!important;letter-spacing:0!important;font-weight:400!important;
 color:#9298a1!important;text-transform:none!important}
.company-context-wrap,.user-context-wrap{position:relative;min-width:0}
.company-context-select{display:flex;align-items:center;justify-content:space-between;
 background:transparent;border:0;color:#425268;padding:5px 7px 5px 0;min-height:30px;
 min-width:0;max-width:min(310px,43vw);gap:10px;border-radius:3px;cursor:pointer;text-align:left}
.company-active .company-context-select{border:1px solid #cdd5df;background:#e0e5ea!important;
 padding:7px 12px!important;min-height:36px;min-width:min(290px,38vw);color:#303943!important}
.company-context-select:disabled{opacity:1;cursor:default}
.company-context-select>strong{min-width:0;max-width:100%!important;
 font-size:14px!important;line-height:1.35!important;font-weight:500!important;
 text-overflow:ellipsis;overflow:hidden;white-space:nowrap!important;color:inherit!important;
 background:none!important;padding:0!important;border:0!important}
.company-active .company-context-select>strong{font-size:14px!important}
.header-chevron{display:inline-block;width:0;height:0;flex-shrink:0;border-left:5px solid transparent;
 border-right:5px solid transparent;border-top:6px solid currentColor}
.company-context-select:disabled .header-chevron{display:none}
.header-dropdown{position:absolute;top:calc(100% + 3px);background:#fff;border:1px solid #e0e5ea;
 box-shadow:0 10px 24px #101e321f;z-index:80;border-radius:2px;
 min-width:190px;padding:5px 0;overflow:visible}
.header-dropdown button{display:flex;gap:13px;align-items:center;width:100%;border:0!important;
 background:#fff!important;color:#323a44!important;padding:11px 18px!important;
 text-align:left!important;font-size:14px!important;font-weight:400!important;cursor:pointer}
.header-dropdown button:hover,.header-dropdown button:focus-visible{background:#f2f6fa!important}
.header-dropdown button:disabled{opacity:.6;cursor:wait}
.header-dropdown button .icon-svg{width:21px!important;height:21px!important;stroke-width:1.5!important}
.company-header-dropdown{left:auto;right:0}
.user-context-toggle{border:0!important;background:transparent!important;display:flex!important;
 gap:9px;align-items:center;color:#006bd2!important;font-weight:600!important;min-height:36px;
 padding:7px 3px!important;font-size:13px!important;white-space:nowrap}
.user-header-dropdown{right:0;min-width:238px}
.header-dropdown-separator{height:1px;background:#e1e4e9;margin:5px 0}
.header-profile-info{color:#8893a2;font-size:12px;margin:0}
.company-active .identity{display:flex!important}
@media(max-width:850px){
 .company-active .top-left{gap:8px!important;max-width:64%!important;min-width:0!important}
 .company-active .company-context-select{min-width:0!important;max-width:min(240px,39vw)!important}
 .company-active .identity #topContextLabel{font-size:10px!important}
 .company-active .company-context-select>strong{font-size:11px!important}
 .user-context-toggle{font-size:11px!important}
 .user-header-dropdown{min-width:208px}
}
@media(max-width:520px){
 .logo{display:none!important}
 .topbar{padding:0 8px!important}
 .company-active .company-context-select{max-width:43vw!important;padding:6px 7px!important}
 .company-header-dropdown{min-width:158px}
 .user-header-dropdown{min-width:180px}
 .header-dropdown button{font-size:12px!important;padding:10px 12px!important}
}

/* Especificidade maior que as regras gerais carregadas depois deste CSS. */
.company-active .topbar .identity{display:flex!important}
.company-active .topbar .identity .company-context-select>strong{
  background:transparent!important;border:0!important;padding:0!important;
  font-weight:500!important;color:#303943!important;max-width:100%!important;
}
.company-active .topbar .top-left{min-width:0!important}
@media(max-width:850px){
 .company-active .topbar .identity{display:flex!important}
 .company-active .topbar .company-context-select>strong{max-width:100%!important}
}
