/* ===========================================================================
   ADTIS 2.0 · ACOMPANHAMENTO EMPRESARIAL — DASHBOARD ÚNICO
   Scope deliberately restricted to the company portfolio + company 360 profiles.
   Keep all data, tab handlers, operational queues and DISEC calculations intact.
   =========================================================================== */
:root{--adtis-main:#0E3A34;--adtis-accent:#087F6B;--adtis-ink:#173D35;--adtis-border:#DCE7E1}
html{scroll-behavior:smooth;scroll-padding-top:24px}
body{font-feature-settings:'tnum' 1}
#generalView>.hero-banner{padding:22px 25px!important;min-height:108px!important;align-items:center!important;gap:14px!important}
#generalView>.hero-banner h1{font-size:clamp(25px,2.3vw,32px)!important;line-height:1.18!important;letter-spacing:-.025em!important}
#generalView>.hero-banner p{font-size:14px!important;max-width:740px!important;line-height:1.55!important}
#generalView .hero-actions.adtis-local-actions{display:flex!important;align-items:center!important;gap:9px!important;flex-wrap:wrap!important;justify-content:flex-end!important;margin-top:0!important}
#generalView .hero-actions .hero-btn,#generalView .hero-actions .adtis-local-more>summary{display:inline-flex!important;justify-content:center!important;align-items:center!important;min-height:42px!important;padding:10px 14px!important;white-space:nowrap!important;font-weight:750!important;font-size:13.5px!important;border-radius:8px!important;text-decoration:none!important;cursor:pointer!important}
#generalView .hero-actions .adtis-to-companies{background:#E2F3EC!important;color:#104A3F!important;border:1px solid #E2F3EC!important}
#generalView .hero-actions .adtis-to-companies:hover{background:#C5E8D9!important}
.adtis-local-more{position:relative;z-index:11}
.adtis-local-more>summary{list-style:none;border:1px solid #649286!important;background:transparent!important;color:#fff!important}
.adtis-local-more>summary::-webkit-details-marker{display:none}
.adtis-local-more>summary::after{content:' ▾';margin-left:5px;font-size:13px}
.adtis-local-more[open]>summary{background:#22564B!important}
.adtis-local-more-content{position:absolute;right:0;top:calc(100% + 8px);width:min(268px,90vw);padding:8px;background:#fff;border:1px solid #DFE8E2;border-radius:9px;box-shadow:0 14px 35px #0E3A341A;display:grid;gap:4px}
.adtis-local-more-content button{display:block;text-align:left;background:transparent;border:0;border-radius:6px;color:#173D35;padding:12px 11px;font-size:13px;font-weight:650;cursor:pointer}
.adtis-local-more-content button:hover,.adtis-local-more-content button:focus-visible{background:#EBF4EF}
.adtis-local-more-content .adtis-warning-action{color:#A5463F}
#generalView .adtis-executive{margin:14px 0 12px!important}
#generalView .adtis-executive-cell{padding:14px 17px!important}
#generalView .adtis-executive-cell strong{font-size:34px!important;letter-spacing:-.03em!important}
#generalView .adtis-executive-label{font-size:13px!important;line-height:1.35!important}
#generalView .adtis-executive-cell small{font-size:12px!important;line-height:1.4!important}
#generalView .adtis-quick-nav{margin:0 0 13px!important}
#generalView .adtis-quick-nav a{font-size:13.5px!important;min-height:42px!important;padding:10px 14px!important}
#companiesSection .table-head{padding:16px 21px!important}
#companiesSection .table-head h2{font-size:23px!important}
#companiesSection .table-head p{font-size:13px!important;line-height:1.45!important}
#companiesSection .stage-strip{padding:12px 19px!important}
#companiesSection .stage-card{min-height:55px!important}
#companiesSection .companies-filters{margin:0 15px 14px!important}
#companiesSection input,#companiesSection select,#companiesSection button{font-size:13px}
#companiesSection table td{font-size:13.5px!important;line-height:1.5!important}
#companiesSection table th{font-size:12px!important;line-height:1.4!important}
#companiesSection table td strong{font-size:14px!important}
#companiesSection table td small{font-size:12px!important}
#generalView .main-charts .panel h3{font-size:18px!important}
#generalView .main-charts .panel .panel-desc{font-size:13px!important}
#generalView .adtis-manage-section h2{font-size:21px!important}
#generalView .adtis-manage-section p{font-size:13px!important;line-height:1.5!important}
#detailView .adtis-profile-utility{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:0 0 10px}
#detailView .adtis-profile-utility .page-return{margin:0!important;font-size:14px!important;min-height:40px!important}
#detailView .adtis-company-switch-label{font-size:12px;color:#59746A;font-weight:700;display:flex;align-items:center;gap:10px}
#detailView .adtis-company-switch-label select{border:1px solid var(--adtis-border);background:#fff;border-radius:8px;padding:10px 12px;min-height:42px;color:var(--adtis-ink);font-size:13.5px;font-weight:700;min-width:220px;max-width:340px}
#detailView .profile-hero-grid{gap:15px!important}
#detailView .adtis-group-nav button{font-size:13.5px!important}
#detailView .adtis-secondary-nav button{font-size:13.5px!important}
#detailView button:focus-visible,#generalView button:focus-visible,#detailView a:focus-visible,#generalView a:focus-visible,#detailView select:focus-visible,#generalView select:focus-visible{outline:3px solid #3A95A8!important;outline-offset:3px!important}
@media(max-width:1000px){
  #generalView>.hero-banner{align-items:flex-start!important}
  #generalView .hero-actions.adtis-local-actions{justify-content:flex-start!important;margin-top:9px!important}
  #generalView .adtis-executive-cell{padding:12px!important}
}
@media(max-width:760px){
  #generalView>.hero-banner{padding:17px!important}
  #generalView>.hero-banner h1{font-size:23px!important}
  #generalView>.hero-banner p{font-size:13px!important}
  #generalView .hero-actions.adtis-local-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%;gap:8px!important}
  #generalView .hero-actions .hero-btn{min-height:43px!important;font-size:12px!important;padding:9px 11px!important}
  #generalView .hero-actions .adtis-local-more{grid-column:1/-1;width:100%}
  #generalView .hero-actions .adtis-local-more>summary{width:100%;min-height:40px!important;font-size:12.5px!important}
  .adtis-local-more-content{left:0;right:auto;width:100%}
  #generalView .adtis-quick-nav a{font-size:12.5px!important;padding:10px 12px!important}
  #generalView .adtis-executive-cell strong{font-size:29px!important}
  #companiesSection .table-head{padding:15px!important}
  #companiesSection .table-head h2{font-size:20px!important}
  #detailView .adtis-profile-utility{flex-wrap:wrap;gap:8px}
  #detailView .adtis-company-switch-label{width:100%;justify-content:space-between}
  #detailView .adtis-company-switch-label select{width:100%;max-width:260px;min-width:0}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Indicadores do próprio acompanhamento: leitura horizontal no celular. */
@media(max-width:760px){
  #generalView .adtis-executive{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;gap:0!important;scroll-snap-type:x proximity!important;overscroll-behavior-x:contain!important;-webkit-overflow-scrolling:touch;scrollbar-width:thin!important;max-width:100%!important}
  #generalView .adtis-executive-cell{flex:0 0 180px!important;width:180px!important;min-width:180px!important;border-top:0!important;border-right:1px solid #DEE9E3!important;scroll-snap-align:start;min-height:113px!important;padding:12px 13px!important}
  #generalView .adtis-executive-label{font-size:12.5px!important}
  #generalView .adtis-executive-cell strong{font-size:31px!important}
  #generalView .adtis-executive-cell small{font-size:12px!important}
}

/* Ajuste contextual de densidade: o dashboard fica dentro da barra lateral
   institucional, mas mantém cinco KPIs em uma linha em notebooks maiores. */
@media (min-width:1181px){
  #generalView .kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
}
