.profit-report .profit-sale{background:#dcf5da;color:#185927}.profit-report .profit-net{background:#dfedff;color:#16427a}.profit-report .profit-cost{background:#fff3ba;color:#694e00}.profit-report .profit-return{background:#ffe0bf;color:#873b00}.profit-report .profit-bonus{background:#ffe0e0;color:#802424}.profit-report .profit-negative{color:#a02020;font-weight:700;background:#ffe3e3}.profit-report .profit-positive{color:#087449;font-weight:700}.profit-report .profit-warning{padding:12px;background:#fff4d8;border-left:4px solid #d59619;line-height:1.5}.profit-report .profit-cards{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.profit-report .profit-cards>div{flex:1;min-width:160px;padding:14px;border:1px solid #cbd7dd;border-radius:8px;display:grid;gap:8px}.profit-report .profit-cards strong{font-size:22px}.profit-report .profit-legend{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.profit-report .profit-legend span{padding:6px 10px;border-radius:5px}.profit-report .profit-detail>td{text-align:left;white-space:normal;background:#f5f8fb}.profit-report .profit-composition{max-width:850px;margin:10px 0}.profit-report details{margin:16px 0}.profit-report summary{cursor:pointer;font-weight:700}.profit-report .profit-name{display:flex;align-items:center}.profit-report .profit-detail p{line-height:1.5}.profit-report .profit-products{overflow:auto}.profit-report .profit-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:12px 0}.profit-report .profit-tools input,.profit-report .profit-tools select{height:40px;padding:8px;border:1px solid #b8ced8;border-radius:6px}.profit-report button{border-radius:6px;padding:10px 16px}.profit-report #profit-load{background:#087f73;color:white;border:0}.profit-report .profit-tools label{display:flex;gap:8px;align-items:center}.profit-report tfoot th,.profit-report tfoot td{font-weight:700;background:#e9eef4}.profit-report .profit-composition th{min-width:220px}.profit-report .profit-note{font-size:13px;color:#526976}@media print{.profit-report .profit-tools,.profit-report .profit-products-load{display:none!important}.profit-report .dre-scroll{overflow:visible;max-height:none}.profit-report *{print-color-adjust:exact}.profit-report .profit-detail{break-inside:avoid}}
.profit-report .profit-detail thead th{position:static}.profit-report .profit-detail table th{white-space:normal}.profit-report .profit-tools input:not([type=checkbox]){flex:1;min-width:180px;width:auto}.profit-report .profit-tools select{width:auto;min-width:180px}
.profit-report .profit-tools input[type=checkbox]{width:18px;height:18px;min-width:18px;flex:0 0 18px;margin:0;padding:0}.profit-report .profit-tools label{width:auto;max-width:none;white-space:normal}
.profit-report table thead th.profit-two-line{white-space:pre;line-height:1.35;min-width:0}
.profit-report .profit-main-grid{table-layout:fixed;min-width:940px;font-size:12px}
.profit-report .profit-main-grid>thead>tr>th,.profit-report .profit-main-grid>tbody>tr:not(.profit-detail)>th,.profit-report .profit-main-grid>tbody>tr:not(.profit-detail)>td,.profit-report .profit-main-grid>tfoot>tr>*{padding:8px 5px}
.profit-report .profit-main-grid>thead>tr>th{width:10%;white-space:pre-line;line-height:1.3;overflow-wrap:normal}
.profit-report .profit-main-grid>thead>tr>th:first-child{width:23%;min-width:0;max-width:none}
.profit-report .profit-main-grid>thead>tr>th:last-child{width:7%}
.profit-report .profit-main-grid>tbody>tr:not(.profit-detail)>th:first-child,.profit-report .profit-main-grid>tfoot>tr>th:first-child{min-width:0;max-width:none;overflow-wrap:anywhere}
.profit-report .profit-main-grid .profit-name .dre-expand{width:24px;height:24px;min-height:24px;margin-right:6px;font-size:18px}
@media screen and (min-width:1000px) and (max-width:1500px){.profit-report{padding:18px}}
@media print{.profit-report .profit-main-grid{min-width:0;font-size:9px}}

.profit-report .profit-network-detail>td{padding:8px;border-left:3px solid #80a6aa}.profit-report .profit-network-detail .profit-main-grid{min-width:900px}.profit-report .profit-network-detail .profit-main-grid>thead>tr>th{position:static}

.profit-report tr.profit-cost-over-sale>td,.profit-report tr.profit-cost-over-sale>th{background:#fde4e3;color:#962c28}.profit-report .profit-products-back{margin:10px 0}@media print{.profit-report .profit-products-back{display:none!important}}

/* Filtros compactos sem sobreposicao, inclusive com o seletor de periodo. */
.profit-report #profit-form{--nx-control-height:34px;display:grid;grid-template-columns:minmax(140px,180px) minmax(140px,180px) minmax(150px,1fr) auto auto auto;align-items:end;gap:8px;margin:12px 0}
.profit-report #profit-form>label{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;gap:4px;min-width:0;max-width:100%;margin:0;font-size:12px;line-height:17px;white-space:normal}
.profit-report #profit-form input,.profit-report #profit-form select{box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin:0;padding:4px 7px;font-size:13px}
.profit-report #profit-form>button{width:100%;max-width:100%;min-width:0;padding:4px 9px;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #b8ced8;background:#fff;color:#173f50;line-height:18px}
.profit-report #profit-form>#profit-load{background:#087f73;color:#fff;border-color:#087f73}.profit-report #profit-form>#profit-load:hover{background:#06685e}
.profit-report #profit-form>label:has(input[type=date]){padding-top:22px}.profit-report #profit-form .nx-period-open{position:absolute;top:0;right:0;font-size:11px}
.profit-report #profit-form>button:disabled{opacity:.5;cursor:default}
@media(max-width:1000px){.profit-report #profit-form{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.profit-report{padding:12px;min-width:0;box-sizing:border-box}.profit-report #profit-form{--nx-control-height:38px;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.profit-report #profit-form>label{min-width:0;font-size:12px}.profit-report #profit-form>label:nth-of-type(3){grid-column:1/-1}.profit-report #profit-form input,.profit-report #profit-form select{font-size:14px}.profit-report #profit-form>button{font-size:12px;padding:4px 6px}.profit-report .profit-tools{gap:8px;font-size:12px}.profit-report .profit-tools label{min-width:0}.profit-report .profit-cards{gap:6px;margin:10px 0}.profit-report .profit-cards>div{min-width:120px;padding:9px}.profit-report .profit-cards strong{font-size:18px}#home-view .workspace:has(>.profit-report:not([hidden]))>.workspace-footer{position:static;width:100%;margin-top:12px;inset:auto}}
@media print{.profit-report #profit-form{display:none!important}}
