.monitor-filters{display:grid;grid-template-columns:2fr 1.5fr 1fr 1fr;gap:16px;align-items:end}.monitor-filters .field input,.monitor-filters .field select{width:100%;min-height:44px}.monitor-filters button{width:max-content}.monitor-warning{display:block;color:#8c4d08;font-size:.86rem;margin-top:6px;font-weight:600}.monitor-table td{min-width:145px;vertical-align:top}.monitor-table td:first-child{min-width:235px}.monitor-items td{min-width:90px;vertical-align:top}.monitor-items td:first-child{min-width:230px}.monitor-items .sub{max-width:220px}.monitor-help{margin-top:24px}.monitor-help h2{font-size:1.1rem}.monitor-help p{margin-bottom:12px}.monitor-dialog{width:min(1400px,96vw);max-width:96vw}.monitor-detail{border:1px solid var(--line,#dbe4ed);border-radius:8px;padding:12px;margin:12px 0}.monitor-detail summary{cursor:pointer;font-weight:600}.monitor-summary{padding:12px 0}.monitor-dialog h3{margin:24px 0 12px}#monitor-results[aria-busy=true]{opacity:.55;pointer-events:none}#monitor-results>.stats{margin:24px 0}@media(max-width:900px){.monitor-filters{grid-template-columns:1fr 1fr}}@media(max-width:560px){.monitor-filters{grid-template-columns:1fr}.monitor-filters button{width:100%}.monitor-dialog{width:96vw}.monitor-dialog .detail-body{padding:16px}}

#monitor-error:empty{display:none}#monitor-results>.stats{grid-template-columns:repeat(4,minmax(0,1fr))}#monitor-results .stat{min-width:0}#monitor-results .stat-label{min-height:42px}#monitor-results .catalog-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px}#monitor-results .catalog-pagination>div{display:flex;gap:8px}@media(max-width:1100px){#monitor-results>.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){#monitor-results>.stats{grid-template-columns:1fr}#monitor-results .catalog-pagination{flex-wrap:wrap}}
@media(max-width:720px){#monitor-results .stat{display:grid!important}#monitor-results .stat-label{min-height:0}.monitor-table,.monitor-table tbody,.monitor-items,.monitor-items tbody{display:block;min-width:0;width:100%}.monitor-table thead,.monitor-items thead{display:none}.monitor-table tr,.monitor-items tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:18px;border-bottom:1px solid var(--border)}.monitor-table td,.monitor-items td{display:block;padding:0;border:0;min-width:0!important;overflow-wrap:anywhere}.monitor-table td:first-child,.monitor-table td:last-child,.monitor-items td:first-child{grid-column:1/-1}.monitor-table td:nth-child(3)::before{content:'Próxima previsão';display:block;font-size:.75rem;color:var(--muted)}.monitor-table td:nth-child(4)::before{content:'Atenção';display:block;font-size:.75rem;color:var(--muted)}.monitor-items td::before{display:block;font-size:.75rem;color:var(--muted);font-weight:600}.monitor-items td:nth-child(2)::before{content:'Pedido'}.monitor-items td:nth-child(3)::before{content:'Confirmado'}.monitor-items td:nth-child(4)::before{content:'Expedido'}.monitor-items td:nth-child(5)::before{content:'Faturado'}.monitor-items td:nth-child(6)::before{content:'A expedir'}.monitor-items td:nth-child(7)::before{content:'A faturar'}.monitor-items td:nth-child(8)::before{content:'Estoque físico'}.monitor-items td:nth-child(9)::before{content:'Previsão do saldo'}}

.monitor-invoices td{vertical-align:top}.monitor-invoices [data-nfe-file]{margin:3px 0;min-height:40px}
.billed-table td:last-child .btn{display:block;margin:4px 0;min-height:40px}.billed-table td:nth-child(3) .sub{margin-top:3px}@media(max-width:720px){.billed-table td:nth-child(3)::before{content:'Notas fiscais / série'}.billed-table td:nth-child(4)::before{content:'Última emissão no filtro'}.billed-table td:last-child{display:flex;flex-wrap:wrap;gap:8px}}
@media(max-width:720px){.monitor-invoices,.monitor-invoices tbody{display:block;min-width:0;width:100%}.monitor-invoices thead{display:none}.monitor-invoices tr{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 0;border-bottom:1px solid var(--border)}.monitor-invoices td{display:block;min-width:0;padding:0;border:0;white-space:normal}.monitor-invoices td:first-child{font-weight:700;grid-column:1/-1}.monitor-invoices td:last-child{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}.monitor-invoices td::before{display:block;font-size:.75rem;color:var(--muted);font-weight:400}.monitor-invoices td:first-child::before{content:'NF / série'}.monitor-invoices td:nth-child(2)::before{content:'Emissão'}.monitor-invoices td:nth-child(3)::before{content:'Autorização registrada'}.monitor-invoices td:nth-child(4)::before{content:'Situação'}}
