/* Central MAQ v699: ajustes verificados de responsividade, sem alterar a impressão. */
html body [hidden]:not([hidden="until-found"]){display:none!important}
@media screen{
:root{--maq-control-size:40px;--maq-touch-size:44px;--maq-layout-border:#b8c4d0;--maq-layout-surface:#fbfcfd}
:where(.panel,.view,.card,.field,.row,.bar)>*{min-width:0}
:where(input,select,textarea){box-sizing:border-box;max-width:100%}
:where(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid #a64600;outline-offset:3px}
body:has(main.wrap.content):not(.home-standard-active) .nav{background:transparent!important;border:0!important;padding:8px 14px!important;position:relative!important}
body:has(main.wrap.content):not(.home-standard-active) .mainnav.maq-line-one{background:var(--maq-layout-surface)!important;border:1px solid var(--maq-layout-border)!important;border-radius:14px!important;box-shadow:0 2px 7px #26364814!important;padding:8px 10px!important;min-height:60px!important}
body:has(main.wrap.content):not(.home-standard-active) .panel.active>.maq-line-two{background:var(--maq-layout-surface)!important;border:1px solid var(--maq-layout-border)!important;border-radius:14px!important;padding:8px!important;margin:0 0 10px!important;min-height:56px!important}
body:has(#cadastro-clientes.active) #cadastro-clientes .client-registry-summary .asset-summary-box,
body:has(#ged.active) #ged .ged-summary .asset-summary-box{align-items:center!important;text-align:center!important;height:auto!important;min-height:56px!important;max-height:none!important;padding:7px!important;overflow-wrap:anywhere!important;white-space:normal!important}
body:has(#cadastro-clientes.active) #cadastro-clientes .client-registry-summary .asset-summary-box span,
body:has(#ged.active) #ged .ged-summary .asset-summary-box span{font-size:13px!important;line-height:1.25!important;white-space:normal!important;max-width:100%!important}
body:has(#ged.active) #ged .ged-summary{grid-template-columns:repeat(6,minmax(0,1fr))!important}
.panel.active .tablewrap,.panel.active .crm-tablewrap,.panel.active .table-wrap{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;overscroll-behavior-x:contain}
.maq-content-card-row>span{overflow-wrap:anywhere}
.maq-content-toolbar [data-view].gray{background:#eef0f3;color:#172033}
.maq-action-dialog-box,.modalbox,.modal-box{max-height:calc(100dvh - 24px);overflow-y:auto}
.maq-more-menu,.maq-info-content{max-height:calc(100dvh - 160px);overflow-y:auto;overscroll-behavior:contain}
button.card{height:auto!important;min-height:44px!important;max-height:none!important;white-space:normal!important;overflow:visible!important}
}
@media screen and (max-width:760px){
:root{--maq-action-height:44px}
body:has(main.wrap.content) header>.wrap.top{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;flex-wrap:wrap!important}
body:has(main.wrap.content) header>.wrap.top>div:last-child{max-width:100%!important;min-width:0!important;display:flex!important;flex-wrap:wrap!important;gap:6px!important}
body:has(main.wrap.content) header .brand{flex-shrink:1!important;min-width:0!important}
body:has(main.wrap.content) header .brand h1{font-size:20px!important}
body:has(main.wrap.content) header .brand .sub{font-size:13px!important}
body:has(main.wrap.content) header .btn{height:44px!important;min-height:44px!important;max-height:44px!important;padding:0 10px!important}
body:has(#ged.active) #ged .ged-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#cadastro-clientes .client-registry-summary{max-width:100%!important}
body:has(#ged.active) #ged[data-ged-view="blocks"] .ged-mobile-list{grid-template-columns:minmax(0,1fr)!important}
.form :is(.span2,.span3,.span4){grid-column:1/-1}
:where(.field,label) :is(input,select,textarea),.maq-action-dialog-input{font-size:16px!important;min-height:44px}
.maq-action-dialog-box{max-height:calc(100dvh - 16px)}
body:has(main.wrap.content) .maq-nav-title{max-width:calc(100% - 96px)!important}
body:has(main.wrap.content):not(.home-standard-active) .mainnav.maq-line-one .maq-title-back{width:40px!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:0!important;background:#dfe5eb!important;border:1px solid #b8c2cd!important;border-radius:9px!important}
body:has(main.wrap.content):not(.home-standard-active) .mainnav.maq-line-one .maq-nav-title{flex:1;max-width:calc(100% - 140px)!important}
body:has(main.wrap.content) .maq-nav-switch>summary,.maq-more>summary{height:44px!important;min-height:44px!important;max-height:44px!important}
body:has(.proc) .bar.actions{flex-wrap:wrap!important;overflow:visible!important}
body:has(.proc) .bar.actions button{flex:1 1 140px!important;white-space:normal!important;min-height:44px!important}
body:has(#items) .panel.row{flex-wrap:wrap}
body:has(#items) .item .row{align-items:flex-start;flex-wrap:wrap}
body:has(#items) .item{overflow-wrap:anywhere}
body:has(#assetId) label{display:grid;gap:6px}
body:has(#assetId) #assetId{width:100%}
body:has(#assetId) main>button{margin-top:8px;min-height:44px}
}
@media screen and (max-width:360px){
#cadastro-clientes .client-registry-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.maq-content-card-row{grid-template-columns:minmax(70px,.4fr) minmax(0,1fr)}
}
@media screen{
body:has(#cadastro-clientes.panel.active) #cadastro-clientes .client-registry-summary .asset-summary-box span,
body:has(#ged.panel.active) #ged .ged-summary .asset-summary-box span{font-size:13px!important;line-height:1.25!important;overflow-wrap:normal!important;word-break:normal!important}
body #financeiro .kpis{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;min-width:0!important;height:auto!important;max-height:none!important}
body:has(#ged.panel.active) #ged .ged-summary{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;height:auto!important;max-height:none!important;overflow:visible!important}
body:has(#ged.panel.active) #ged .ged-summary>*{width:100%!important;min-width:0!important;max-width:100%!important}
}
@media screen and (max-width:1100px){body #financeiro .kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media screen and (max-width:760px){
body #financeiro .kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body:has(#ged.panel.active) #ged .ged-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media screen and (max-width:760px){
html body :is(#locacao,#planos-acao) .maq-inline-indicators{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;height:auto!important;max-height:none!important;overflow:visible!important;width:100%!important;min-width:0!important}
html body :is(#locacao,#planos-acao) .maq-inline-indicators>*{width:100%!important;min-width:0!important;max-width:100%!important;white-space:normal!important}
html body :is(#locacao,#planos-acao) .maq-inline-indicators span{white-space:normal!important;overflow-wrap:anywhere!important}
body:has(#home.view) header.central-top>.central-wrap{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
body:has(#home.view) header.central-top .central-brand{flex:1 1 175px!important;min-width:0!important;gap:8px!important}
body:has(#home.view) header.central-top .central-brand b{font-size:18px!important;white-space:nowrap!important}
body:has(#home.view) header.central-top .central-brand span{font-size:12px!important;white-space:nowrap!important}
body:has(#home.view) header.central-top .central-meta{flex:0 1 auto!important;gap:8px!important;min-width:0!important;max-width:100%!important}
body:has(#home.view) header.central-top .central-meta>button{height:44px!important;min-height:44px!important;max-height:44px!important}
}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
/* Codex 07: barra de Tarefas com um único preenchimento, também no iPhone. */
@media screen{html body #home .task-crm-bar.task-ui-actions{padding:8px!important;min-height:60px!important;height:auto!important;box-sizing:border-box!important}html body #home .task-crm-bar.task-ui-actions>.task-top-actions{padding:0!important;min-height:44px!important;height:auto!important;box-sizing:border-box!important}}
@media print{#maq-update-open,#maq-update-dialog{display:none!important}}