body:has(#dashboard:not([hidden])) main{padding:0 32px 24px;max-width:1920px}
body:has(#dashboard:not([hidden])) #sidebar{width:222px;padding:28px 14px 18px;background:var(--panel);border-right:1px solid var(--line)}
body:has(#dashboard:not([hidden])) main{margin-left:222px;width:calc(100% - 222px)}
body:has(#dashboard:not([hidden])) .brand{padding:0 14px 23px;border-bottom:1px solid var(--line)}
body:has(#dashboard:not([hidden])) .brand img{width:164px}
body:has(#dashboard:not([hidden])) .brand small{margin:8px 0 0;font-size:12px}
body:has(#dashboard:not([hidden])) .nav-label{display:none}
body:has(#dashboard:not([hidden])) #main-nav{margin-top:15px;gap:3px}
body:has(#dashboard:not([hidden])) .nav-group{padding:19px 13px 6px;color:var(--ink-3);font-size:12px;font-weight:400;letter-spacing:0;text-transform:none}
body:has(#dashboard:not([hidden])) #main-nav a{min-height:40px;padding:9px 13px;border-radius:var(--r-s);font-size:12px;border:1px solid transparent;position:relative}
body:has(#dashboard:not([hidden])) #main-nav a.selected{background:var(--sel-on);border-color:transparent;color:var(--ink)}
body:has(#dashboard:not([hidden])) .portal-tools{height:72px;margin:0 -32px;padding:0 32px;background:var(--panel);border-bottom:1px solid var(--line);gap:18px}
body:has(#dashboard:not([hidden])) .global-search{max-width:480px}
body:has(#dashboard:not([hidden])) .global-search input{background:var(--panel-2);border-color:transparent;min-height:36px}
body:has(#dashboard:not([hidden])) #logout{min-height:32px;padding:6px 12px;font-size:12px;border-left:1px solid var(--line);border-radius:var(--r-xs)}
body:has(#dashboard:not([hidden])) header{margin:27px 0 23px;align-items:center}
/* Visual novo: titulo de 20/24 px (era 27 px, peso 650). Esta regra vence a casca por ter dois IDs. */
body:has(#dashboard:not([hidden])) #page-title{font-size:20px;line-height:24px;font-weight:500;letter-spacing:0;margin-top:4px}
body:has(#dashboard:not([hidden])) #breadcrumbs{font-size:12px;letter-spacing:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap;text-transform:none}
body:has(#dashboard:not([hidden])) #breadcrumbs a{color:var(--ink-3);text-decoration:none}
body:has(#dashboard:not([hidden])) #breadcrumbs a:hover{color:var(--acc);text-decoration:underline}
body:has(#dashboard:not([hidden])) .crumb-separator{color:var(--ink-3)}
body:has(#dashboard:not([hidden])) .card{padding:22px;border-radius:var(--r);box-shadow:none}
body:has(#dashboard:not([hidden])) .card>h2{font-size:16px}
body:has(#dashboard:not([hidden])) .card>p{font-size:12px;max-width:85ch}
body:has(#dashboard:not([hidden])) #page-devices>.card,body:has(#dashboard:not([hidden])) #page-companies>.card:first-child,body:has(#dashboard:not([hidden])) #page-tasks>.card{display:flow-root}
body:has(#dashboard:not([hidden])) #page-devices>.card>p:first-of-type,body:has(#dashboard:not([hidden])) #page-companies>.card:first-child>p:first-of-type{float:left;margin:8px 0 20px;max-width:65%}
body:has(#dashboard:not([hidden])) #page-devices>.card>a.primary,body:has(#dashboard:not([hidden])) #page-companies>.card:first-child>a.primary{float:right;margin:0 0 20px}
body:has(#dashboard:not([hidden])) .filter-bar{clear:both;display:flex;align-items:flex-end;gap:8px;margin:0 0 16px;padding:0;background:none;border:0;border-radius:0}
body:has(#dashboard:not([hidden])) .filter-field{display:flex;flex-direction:column;gap:4px;margin:0;min-width:130px;flex:1;font-size:12px;line-height:16px;font-weight:500;color:var(--ink-2)}
body:has(#dashboard:not([hidden])) .filter-field:has(input[type=search]){flex:2;min-width:210px}
body:has(#dashboard:not([hidden])) .filter-field input,body:has(#dashboard:not([hidden])) .filter-field select{margin:0;width:100%;min-width:0;max-width:100%;background-color:var(--panel);font-size:14px;font-weight:400;min-height:var(--ctl-h)}
body:has(#dashboard:not([hidden])) .table-wrap{border-radius:var(--r);margin-top:12px}
body:has(#dashboard:not([hidden])) .table-wrap th{font-size:12px;letter-spacing:0;text-align:left;padding:8px 16px}
body:has(#dashboard:not([hidden])) .table-wrap td{padding:10px 16px;font-size:14px;line-height:20px;vertical-align:middle}
body:has(#dashboard:not([hidden])) .table-wrap td small{font-size:12px;line-height:1.5}
body:has(#dashboard:not([hidden])) .table-wrap td:first-child a{font-weight:500}
body:has(#dashboard:not([hidden])) .table-wrap tr:last-child td{border-bottom:0}
body:has(#dashboard:not([hidden])) .table-wrap td:last-child{white-space:nowrap}
body:has(#dashboard:not([hidden])) .table-wrap td button.danger{background:transparent;border-color:transparent}
body:has(#dashboard:not([hidden])) .table-wrap input[type=checkbox]{width:16px;height:16px;vertical-align:middle}
body:has(#dashboard:not([hidden])) .entity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body:has(#dashboard:not([hidden])) .entity-grid .card{margin:0;min-height:175px;padding:22px}
body:has(#dashboard:not([hidden])) .entity-grid h2{font-size:16px}
body:has(#dashboard:not([hidden])) .entity-grid .facts{gap:12px}
body:has(#dashboard:not([hidden])) .entity-grid a.button-link{margin-top:10px}
body:has(#dashboard:not([hidden])) #page-overview{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);gap:18px}
body:has(#dashboard:not([hidden])) #page-overview[hidden]{display:none}
body:has(#dashboard:not([hidden])) #page-overview>.overview-status,body:has(#dashboard:not([hidden])) #page-overview>.operational-metrics,body:has(#dashboard:not([hidden])) #page-overview>#overview-metrics,body:has(#dashboard:not([hidden])) #page-overview>#overview-intro,body:has(#dashboard:not([hidden])) #page-overview>#server-performance{grid-column:1 / -1}
/* M11 (revisao de 2026-09-27): a legenda de contagem (portal-ui.js) e a
   faixa "Seu último acesso" (attention.js) ficam juntas num continer so,
   sem o gap de 18px da grade entre elas -- contexto e acoes da tela foram
   para o head-act (heading()), no padrao das outras telas. */
body:has(#dashboard:not([hidden])) #page-overview>.overview-status{margin:0 0 4px;display:flex;flex-direction:column;gap:4px}
/* M10/T9 (transicao.css: ".overview-caption{color:var(--ink-2)}") nunca
   vencia aqui: esta regra, com :has(#id), tem mais especificidade e ainda
   pintava --ink-3 -- 4,43:1, medido na captura desta revisao. Corrigido
   junto por tocar o mesmo bloco. */
body:has(#dashboard:not([hidden])) #page-overview>.overview-status .overview-caption{margin:0;color:var(--ink-2);font-size:12px}
body:has(#dashboard:not([hidden])) #page-overview>.overview-status .ultimo-acesso{margin:0}
body:has(#dashboard:not([hidden])) #page-overview>.card{margin:0}
body:has(#dashboard:not([hidden])) #overview-queue{grid-column:1}
body:has(#dashboard:not([hidden])) #activity{grid-column:2;align-self:start}
body:has(#dashboard:not([hidden])) #events{padding-left:18px;font-size:12px}
body:has(#dashboard:not([hidden])) #events li{padding:10px 0;border-bottom:1px solid var(--line)}
body:has(#dashboard:not([hidden])) .operational-metrics{margin:0}
body:has(#dashboard:not([hidden])) .operational-metrics strong{font-size:30px}
body:has(#dashboard:not([hidden])) .attention-row{gap:10px}
body:has(#dashboard:not([hidden])) .attention-row .button-link{font-size:12px;min-height:30px}
body:has(#dashboard:not([hidden])) .attention-row p{line-height:1.65}
body:has(#dashboard:not([hidden])) .fields{gap:18px 24px}
body:has(#dashboard:not([hidden])) .fields label{font-size:12px;font-weight:500}
/* O seletor de secao (.context-switch) tem altura e respiro proprios em context-navigation.css. */
body:has(#dashboard:not([hidden])) details:not(.context-switch)>summary{cursor:pointer;font-size:13px;font-weight:600;padding:10px 0}
body:has(#dashboard:not([hidden])) details:not(.context-switch)[open]>summary{margin-bottom:12px}
@media(max-width:640px){body:has(#dashboard:not([hidden])) details:not(.context-switch)>summary{padding-block:12px;min-height:44px;box-sizing:border-box}}
body:has(#dashboard:not([hidden])) .ho-step{margin:12px 0}
body:has(#dashboard:not([hidden])) .ho-step>summary{padding:18px 20px}
body:has(#dashboard:not([hidden])) .ho-step[open]>summary{margin-bottom:0}
body:has(#dashboard:not([hidden])) .ho-number{width:35px;height:35px;font-size:16px}
body:has(#dashboard:not([hidden])) .setting-link{padding:18px}
body:has(#dashboard:not([hidden])) .task-row{padding:16px 0}
body:has(#dashboard:not([hidden])) .facts dt{font-size:13px;font-weight:400;letter-spacing:0;text-transform:none;color:var(--ink-2)}
body:has(#dashboard:not([hidden])) .facts dd{margin-top:5px}
body:has(#dashboard:not([hidden])) footer{font-size:12px;margin-top:32px;padding-top:16px}
body:has(#dashboard:not([hidden])) .aside-bottom{font-size:12px}
body:has(#dashboard:not([hidden])) .badge{padding:4px 8px;white-space:nowrap}
body:has(#dashboard:not([hidden])) .catalog-actions{gap:8px}
body:has(#dashboard:not([hidden])) .card button+button,body:has(#dashboard:not([hidden])) .card button+.button-link{margin-left:0}
/* Altura de controle pelo token (32 px; 44 em toque). As linhas da arvore do AD tem altura propria em directory.css. */
body:has(#dashboard:not([hidden])) button:not(.ad-object-button),body:has(#dashboard:not([hidden])) .button-link{transition:background-color .12s,color .12s;min-height:var(--ctl-h)}
@media(max-width:640px){body:has(#dashboard:not([hidden])) button,body:has(#dashboard:not([hidden])) .button-link{min-height:44px}}
body:has(#dashboard:not([hidden])) .primary{font-weight:500}
@media(max-width:1200px){body:has(#dashboard:not([hidden])) .entity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body:has(#dashboard:not([hidden])) #page-overview{grid-template-columns:1fr}body:has(#dashboard:not([hidden])) #activity,body:has(#dashboard:not([hidden])) #overview-queue{grid-column:1}}
@media(max-width:800px){body:has(#dashboard:not([hidden])) main{margin:0;width:100%;padding:0 18px 20px}body:has(#dashboard:not([hidden])) .portal-tools{margin:0 -18px;padding:12px 18px;height:auto;min-height:64px;gap:8px}body:has(#dashboard:not([hidden])) .global-search{min-width:150px}body:has(#dashboard:not([hidden])) header{margin:22px 0}body:has(#dashboard:not([hidden])) .filter-bar{flex-wrap:wrap}body:has(#dashboard:not([hidden])) .filter-field{flex:1 1 140px}body:has(#dashboard:not([hidden])) .subnav{flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px}body:has(#dashboard:not([hidden])) .subnav a{white-space:nowrap}body:has(#dashboard:not([hidden])) .entity-grid{grid-template-columns:1fr}body:has(#dashboard:not([hidden])) .table-wrap{overflow-x:auto}body:has(#dashboard:not([hidden])) .table-wrap table{min-width:680px}body:has(#dashboard:not([hidden])) #logout{margin-left:auto}body:has(#dashboard:not([hidden])) #page-devices>.card>p:first-of-type,body:has(#dashboard:not([hidden])) #page-companies>.card:first-child>p:first-of-type{float:none;max-width:100%;margin:0 0 14px}body:has(#dashboard:not([hidden])) #page-devices>.card>a.primary,body:has(#dashboard:not([hidden])) #page-companies>.card:first-child>a.primary{float:none;margin-bottom:16px}}
@media(prefers-reduced-motion:reduce){body:has(#dashboard:not([hidden])) button,body:has(#dashboard:not([hidden])) .button-link{transition:none}}

body:has(#dashboard:not([hidden])) #page-devices>.card,body:has(#dashboard:not([hidden])) #page-companies>.card:first-child,body:has(#dashboard:not([hidden])) #page-tasks>.card,body:has(#dashboard:not([hidden])) #page-overview>.hero{padding:0}
body:has(#dashboard:not([hidden])) #page-overview>section{grid-column:1 / -1}
body:has(#dashboard:not([hidden])) #page-overview>#overview-queue{grid-column:1;grid-row:4}
body:has(#dashboard:not([hidden])) #page-overview>#activity{grid-column:2;grid-row:4}
body:has(#dashboard:not([hidden])) #page-overview>#overview-metrics{grid-row:5}
@media(max-width:1200px){body:has(#dashboard:not([hidden])) #page-overview>#overview-queue,body:has(#dashboard:not([hidden])) #page-overview>#activity,body:has(#dashboard:not([hidden])) #page-overview>#overview-metrics{grid-column:1;grid-row:auto}}

body:has(#dashboard:not([hidden])) .secondary-device-actions{flex-basis:100%;border-top:1px solid var(--line);margin-top:12px;padding-top:4px}body:has(#dashboard:not([hidden])) .secondary-device-actions>summary{font-size:12px;color:var(--ink-2);font-weight:500}body:has(#dashboard:not([hidden])) .secondary-device-actions .catalog-actions{padding:4px 0 10px}
body:has(#dashboard:not([hidden])) header{padding-bottom:0;border-color:var(--line)}
body:has(#dashboard:not([hidden])) #events:empty{padding:0}body:has(#dashboard:not([hidden])) #events:empty:after{content:'Nenhuma atividade recente registrada.';color:var(--ink-3);font-size:12px}
