.purchase-cost-report .pc-note{padding:12px;background:#e8f3ef;line-height:1.5}.purchase-cost-report .pc-warning{padding:12px;background:#fff1dd;color:#884f10}.purchase-cost-report details{margin:12px 0;border:1px solid #c4d6de;border-radius:6px;padding:12px}.purchase-cost-report summary{cursor:pointer;font-weight:700}.purchase-cost-report .pc-actions{display:flex;gap:10px}.purchase-cost-report button{border-radius:6px;padding:10px 16px}.purchase-cost-report #pc-load{background:#087f73;color:white;border:0}.purchase-cost-report .dre-scroll{margin:12px 0}.purchase-cost-report td:first-child,.purchase-cost-report td:last-child,.purchase-cost-report td:nth-child(3){white-space:normal;text-align:left;min-width:130px}.purchase-cost-report th:first-child{min-width:120px}.purchase-cost-report details td:nth-child(3){min-width:230px}.purchase-cost-report h3{margin-top:24px}.purchase-cost-report .dre-tools input{max-width:240px}@media print{.purchase-cost-report .pc-actions{display:none}.purchase-cost-report details{border:0;padding:0}.purchase-cost-report thead{display:table-header-group}.purchase-cost-report tr{break-inside:avoid}.purchase-cost-report .dre-scroll{overflow:visible;max-height:none}}

.purchase-cost-report table td.pc-number,.purchase-cost-report table th.pc-number{text-align:right;white-space:nowrap;min-width:0;font-variant-numeric:tabular-nums}

.purchase-cost-report table thead th,.purchase-cost-report table thead th.pc-number{white-space:pre-line;line-height:1.3;padding:9px 8px;vertical-align:middle}.purchase-cost-report table td{padding-left:8px;padding-right:8px}

.purchase-cost-report tr.pc-product-gray>td{background:#edeff1}.purchase-cost-report tr.pc-product-white>td{background:#fff}@media print{.purchase-cost-report .pc-product-gray>td,.purchase-cost-report .pc-product-white>td{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

/* Filtros compactos com colunas que respeitam a largura disponível. */
.purchase-cost-report #pc-form{display:grid;grid-template-columns:minmax(155px,1fr) minmax(155px,1fr) minmax(180px,2fr) auto auto auto;align-items:end;gap:10px;margin:12px 0}
.purchase-cost-report #pc-form>label{display:flex;flex-direction:column;position:relative;gap:5px;min-width:0;width:100%;margin:0;font-size:12px;line-height:18px}
.purchase-cost-report #pc-form input{width:100%;min-width:0;max-width:100%;height:34px;padding:4px 8px}
.purchase-cost-report #pc-form>button{height:34px;min-height:34px;margin:0;padding:5px 10px;white-space:nowrap;font-size:12px}
.purchase-cost-report #pc-form .nx-period-open{position:static;align-self:flex-start;height:22px!important;min-height:22px!important;line-height:22px;margin:0!important;padding:0 4px!important}
@media screen and (max-width:1200px){.purchase-cost-report #pc-form{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media screen and (max-width:760px){
 .purchase-cost-report{min-width:0;width:100%;padding:12px}
 .purchase-cost-report header h2{font-size:22px;line-height:1.2}
 .purchase-cost-report header>p{font-size:13px;line-height:1.4;margin:8px 0}
 .purchase-cost-report #pc-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:end}
 .purchase-cost-report #pc-form>label:nth-of-type(3){grid-column:1/-1}
 .purchase-cost-report #pc-form>button{width:100%;min-width:0;white-space:normal;height:auto;min-height:34px;line-height:18px}
 .purchase-cost-report #pc-form>label{font-size:12px;min-height:78px;justify-content:flex-end}
 .purchase-cost-report #pc-form>label:nth-of-type(3){min-height:0}
 .purchase-cost-report #pc-form input{font-size:14px}
 .purchase-cost-report .pc-actions{flex-wrap:wrap;gap:6px}
 .purchase-cost-report .pc-actions button{font-size:12px;padding:6px 8px}
 #home-view .workspace:has(>.purchase-cost-report:not([hidden]))>.workspace-footer{position:static;width:100%;margin-top:16px;inset:auto}
}
/* O atalho de período tem uma linha própria, sem deslocar a data inicial. */
.purchase-cost-report #pc-form>label:has(input[type=date]){padding-top:22px}
.purchase-cost-report #pc-form .nx-period-open{position:absolute;top:0;right:0}
