/* Monfer 2.0 — Fase 3: camada removível e restrita à Reposição Inteligente. */
#pageReposicaoInteligente .page-header{align-items:flex-start;gap:14px}
#pageReposicaoInteligente .page-header .actions{justify-content:flex-end}
#pageReposicaoInteligente #repResumo .data-card{min-width:170px;flex:1 1 170px}
#pageReposicaoInteligente .rep-tablecard{overflow:auto;overscroll-behavior:contain}
#pageReposicaoInteligente .rep-tablecard>.data-table{min-width:1120px}
#pageReposicaoInteligente #repRodape{backdrop-filter:blur(10px)}
#pageReposicaoInteligente :is(button,input,select):focus-visible{outline:3px solid color-mix(in srgb,var(--primary) 55%,transparent);outline-offset:2px}
@media(max-width:900px){#pageReposicaoInteligente .page-header{flex-direction:column}#pageReposicaoInteligente .page-header .actions{width:100%;justify-content:flex-start}#pageReposicaoInteligente #repRodape>div:last-child{width:100%;margin-left:0!important}}
@media(max-width:600px){#pageReposicaoInteligente .page-header .actions>*{flex:1 1 140px;max-width:none!important}#pageReposicaoInteligente .page-header .actions>label{flex:0 0 100%}#pageReposicaoInteligente #repResumo .data-card{min-width:145px;padding:10px 12px!important}#pageReposicaoInteligente #repRodape{bottom:max(0px,env(safe-area-inset-bottom))!important;padding:10px!important}#pageReposicaoInteligente #repRodape .btn-primary{width:100%;justify-content:center;min-height:42px}}
@media(prefers-reduced-motion:reduce){#pageReposicaoInteligente *{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* Segundo bloco: Pedidos de Compra, sem alterar a montagem dinâmica da grade. */
#pagePedidosCompra .page-header{align-items:flex-start;gap:14px}
#pagePedidosCompra .data-card{min-width:0}
#pagePedidosCompra .data-card-header{gap:12px;align-items:flex-start}
#pagePedidosCompra .data-card-header>h2{flex:0 0 auto;white-space:nowrap}
#pagePedidosCompra .search-bar{min-width:0}
#pagePedidosCompra #pedidosCompraTableWrapper{overflow:auto;overscroll-behavior:contain}
#pagePedidosCompra #pedidosCompraTableWrapper>.pc-orders-table{min-width:1040px}
#pagePedidosCompra :is(button,input,select):focus-visible{outline:3px solid color-mix(in srgb,var(--primary) 55%,transparent);outline-offset:2px}
.pc-detail-shell,.pc-return-shell,.pc-receive-shell,.pc-repricing-shell{min-width:0}
.pc-detail-shell .modal-header,.pc-receive-shell .modal-header{gap:12px;align-items:flex-start}
.pc-detail-shell .modal-header>div{flex-wrap:wrap;justify-content:flex-end}
.pc-detail-shell :is(button,input,select):focus-visible,.pc-return-shell :is(button,input,select):focus-visible,.pc-receive-shell :is(button,input,select):focus-visible,.pc-repricing-shell :is(button,input,select):focus-visible{outline:3px solid color-mix(in srgb,var(--primary) 55%,transparent);outline-offset:2px}
@media(max-width:1280px){#pagePedidosCompra #pedidosCompraTableWrapper>.pc-orders-table{min-width:820px}#pagePedidosCompra .pc-orders-table .pc-secondary{display:none}}
@media(max-width:900px){#pagePedidosCompra .data-card-header{flex-direction:column}#pagePedidosCompra .search-bar{width:100%}#pagePedidosCompra .search-bar>*{flex:1 1 150px}#pagePedidosCompra .search-bar>div{flex:1 1 100%}}
@media(max-width:600px){#pagePedidosCompra .page-header{flex-direction:column}#pagePedidosCompra .page-header .btn-primary{width:100%;justify-content:center;min-height:42px}#pagePedidosCompra .search-bar :is(input,select){width:100%!important}#pagePedidosCompra #pcBulkBar{align-items:stretch;flex-direction:column}#pagePedidosCompra #pcBulkBar .btn{width:100%;justify-content:center}.pc-detail-shell .modal-header,.pc-receive-shell .modal-header{flex-direction:column}.pc-detail-shell .modal-header>div{justify-content:flex-start}.pc-detail-shell .detail-grid,.pc-detail-shell .pc-totais-grid{grid-template-columns:1fr!important}.pc-detail-shell .detail-item{grid-column:auto!important}.pc-return-shell .btn,.pc-receive-shell .btn{min-height:40px}}

/* Quarto bloco: histórico e detalhe das notas de entrada. */
#pageNotasEntrada .data-card-header{gap:12px;align-items:flex-start}
#pageNotasEntrada .search-bar{min-width:0}
#pageNotasEntrada #notasEntradaTableWrapper{overflow:auto;overscroll-behavior:contain}
#pageNotasEntrada #notasEntradaTableWrapper>.ne-orders-table{min-width:860px}
#pageNotasEntrada :is(button,input,select):focus-visible,.ne-detail-shell :is(button,input,select):focus-visible{outline:3px solid color-mix(in srgb,var(--primary) 55%,transparent);outline-offset:2px}
.ne-detail-shell{min-width:0}.ne-detail-shell .modal-header{gap:12px;align-items:flex-start}.ne-detail-shell .modal-header>div{display:flex;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:900px){#pageNotasEntrada .data-card-header{flex-direction:column}#pageNotasEntrada .search-bar{width:100%}#pageNotasEntrada .search-bar>*{flex:1 1 145px}.ne-detail-shell #notaEntradaDadosGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){#pageNotasEntrada .search-bar :is(input,select){width:100%!important}.ne-detail-shell .modal-header{flex-direction:column}.ne-detail-shell .modal-header>div{justify-content:flex-start}.ne-detail-shell #notaEntradaDadosGrid{grid-template-columns:1fr!important}.ne-detail-shell .detail-item{grid-column:auto!important}}

/* Quinto bloco: cotações de fornecedores e importação. */
#pageCotacoesFornecedor .page-header{align-items:flex-start;gap:14px}
#pageCotacoesFornecedor #cotFornTabs{overflow-x:auto;overscroll-behavior:contain}
#pageCotacoesFornecedor #cotFornTabs .tab{white-space:nowrap}
#pageCotacoesFornecedor #cotFornTabs .tab:not(.active){color:var(--text)!important;opacity:.82}
#pageCotacoesFornecedor #cotFornListWrapper,#pageCotacoesFornecedor #cotFornImportItensWrapper,#pageCotacoesFornecedor #cotFornCompareWrapper{overscroll-behavior:contain}
#pageCotacoesFornecedor #cotFornListWrapper>.cot-forn-table{width:100%;table-layout:fixed;min-width:1120px}
#pageCotacoesFornecedor .cot-forn-columns .cot-forn-col-select{width:40px}
#pageCotacoesFornecedor .cot-forn-columns .cot-forn-col-supplier{width:310px}
#pageCotacoesFornecedor .cot-forn-columns .cot-forn-col-number{width:115px}
#pageCotacoesFornecedor .cot-forn-columns :is(.cot-forn-col-date,.cot-forn-col-validity){width:105px}
#pageCotacoesFornecedor .cot-forn-columns .cot-forn-col-payment{width:190px}
#pageCotacoesFornecedor .cot-forn-columns .cot-forn-col-items{width:70px}
#pageCotacoesFornecedor .cot-forn-columns .cot-forn-col-value{width:125px}
#pageCotacoesFornecedor .cot-forn-columns .cot-forn-col-status{width:100px}
#pageCotacoesFornecedor .cot-forn-columns .cot-forn-col-actions{width:110px}
#pageCotacoesFornecedor .cot-forn-table :is(th,td):nth-child(2){overflow:hidden;text-overflow:ellipsis}
#pageCotacoesFornecedor .cot-forn-table :is(th,td):last-child{position:sticky;right:0;z-index:3;background:var(--bg-card);box-shadow:-8px 0 12px -12px rgba(0,0,0,.8)}
#pageCotacoesFornecedor :is(button,input,select,[role="button"]):focus-visible{outline:3px solid color-mix(in srgb,var(--primary) 55%,transparent);outline-offset:2px}
@media(max-width:760px){#pageCotacoesFornecedor .page-header{flex-direction:column}#pageCotacoesFornecedor .page-header .actions{width:100%;flex-wrap:wrap!important}#pageCotacoesFornecedor .page-header .actions .btn{flex:1 1 180px;justify-content:center}#pageCotacoesFornecedor .data-card-header{align-items:flex-start;flex-direction:column}#pageCotacoesFornecedor .data-card-header>div{width:100%;flex-wrap:wrap!important}#pageCotacoesFornecedor .data-card-header :is(input,select){width:100%!important}#pageCotacoesFornecedor #cotFornDropZone{padding:24px 14px!important}}

/* Sexto bloco: Importador XML IA. */
#pageImportadorXml .page-header{align-items:flex-start;gap:14px}
#pageImportadorXml>.dre-tabs{overflow-x:auto;overscroll-behavior:contain}
#pageImportadorXml>.dre-tabs .dre-tab{white-space:nowrap}
#pageImportadorXml :is(#xmlImpEntradaContent,#xmlImpHistContent,#xmlImpCteContent,#xmlImpMonitorContent,#dfeSefazTable){overflow:auto;overscroll-behavior:contain}
#pageImportadorXml :is(button,input,select,[role="button"]):focus-visible{outline:3px solid color-mix(in srgb,var(--primary) 55%,transparent);outline-offset:2px}
@media(max-width:760px){#pageImportadorXml .page-header{flex-direction:column}#pageImportadorXml .data-card-header{align-items:flex-start;flex-direction:column}#pageImportadorXml .data-card-header>.search-bar{width:100%}#pageImportadorXml .data-card-header>.search-bar :is(input,select,button){width:100%!important}#pageImportadorXml #xmlImpDropZone{padding:24px 14px!important}#pageImportadorXml #xmlNavBar>*{flex:1 1 150px}}
