/* NCR Gestão v0.11 — afinação visual e regras transversais */
:root{--ncr:#153f59;--ncr-soft:#edf4f8;--edit:#fff8df;--edit-border:#d6a72f}
.brand{height:70px;display:flex;align-items:center}.brand img{width:155px;max-height:62px;object-fit:contain;filter:brightness(0) invert(1)}
aside nav{margin-top:14px}aside nav a{display:flex;align-items:center;gap:10px}aside nav a>span{display:inline-grid;place-items:center;width:20px;min-width:20px;font-weight:700}
/* Listagens compactas */
.table th,.table td{padding:7px 8px;line-height:1.18}.table th{font-size:12px}.table td{font-size:14px}.table td small{font-size:11px}.card.table-wrap,.tarefas-card{padding-top:8px;padding-bottom:8px}
.table .num,.table td.num,.table th.num{text-align:right!important;font-variant-numeric:tabular-nums}
/* classes automáticas para colunas numéricas frequentes */
.money,.number{text-align:right!important;font-variant-numeric:tabular-nums;white-space:nowrap}
.order-control{display:inline-flex;align-items:center;gap:7px;margin-left:auto}.order-control select{width:auto;padding:7px 9px}.order-control a{white-space:nowrap;border:1px solid #cbd2d8;border-radius:7px;padding:7px 10px;background:#fff}
/* Ficha cliente */
.client-assuntos-section{border-top:1px solid #cbd5dc;margin-top:24px;padding-top:18px}
/* Ficha assunto mais compacta */
.assunto-grid-v11{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:14px;margin-top:14px}.assunto-grid-v11 .card{margin-top:0;padding:16px 18px}.assunto-grid-v11 h3{margin:0 0 12px}.assunto-grid-v11 p{margin:7px 0}.posicao-financeira{padding:16px 20px}.posicao-financeira h3{margin:0 0 12px}.finance-cards>div{padding:12px 16px!important}.finance-cards strong{font-size:24px!important}
/* modo edição */
.editing-form{border:2px solid var(--edit-border)!important;background:#fffdf4!important}.editing-form input,.editing-form select,.editing-form textarea{background:var(--edit)!important;border-color:#cfae58!important}.editing-badge{display:inline-block;background:#fff0b8;color:#6c5100;border:1px solid #e0bd4f;border-radius:999px;padding:6px 11px;font-size:12px;font-weight:700;margin-left:10px;vertical-align:middle}
/* NH mais compacta horizontalmente */
.notas-table{table-layout:auto}.notas-table th,.notas-table td{padding-left:6px;padding-right:6px}.notas-table th:nth-child(4),.notas-table td:nth-child(4),.notas-table th:nth-child(5),.notas-table td:nth-child(5),.notas-table th:nth-child(6),.notas-table td:nth-child(6){text-align:right;white-space:nowrap}.notas-table td:nth-child(2){white-space:normal;min-width:260px}.acoes-nota{display:flex;gap:5px;align-items:center;white-space:nowrap}.acoes-nota button{padding:6px 8px}.acoes-nota a{white-space:nowrap}
/* relatórios */
.report-logo{display:block;width:150px;height:auto;margin:0 0 18px}.report-table th:not(:first-child),.report-table td.num{text-align:right}.report-table.compact-report{font-size:12px}.report-table.compact-report th,.report-table.compact-report td{padding:7px 8px}.tempo-report th:nth-child(2),.tempo-report td:nth-child(2){width:90px;text-align:right}.tempo-report th:nth-child(3),.tempo-report td:nth-child(3){width:40%}.tempo-report th:nth-child(4),.tempo-report td:nth-child(4){width:25%}.tempo-report th:nth-child(5),.tempo-report td:nth-child(5){width:25%}
@media(max-width:1000px){.assunto-grid-v11{grid-template-columns:1fr 1fr}.assunto-grid-v11 .gestao-card{grid-column:1/-1}}
@media print{
 .report-logo{display:block;width:165px;height:auto;margin:0 0 12mm}.printable-report{font-size:9pt}.printable-report .report-title{margin-bottom:5mm}.printable-report .report-summary{margin:5mm 0}.printable-report .table th,.printable-report .table td{padding:2.2mm 2mm}.printable-report .num{text-align:right!important}
}
.searchbar{grid-template-columns:1fr auto auto auto}.assuntos-search{grid-template-columns:280px 1fr auto auto auto}.filtros-tarefas{grid-template-columns:1.4fr 1.5fr 1.5fr 1fr .9fr 125px 125px 145px auto auto}.list-tools{display:flex;justify-content:flex-end;margin:12px 0 0}.list-tools a{border:1px solid #cbd2d8;background:#fff;padding:7px 10px;border-radius:7px}
@media(max-width:950px){.searchbar,.assuntos-search,.filtros-tarefas{grid-template-columns:1fr 1fr}}
.printable-report .report-title{border-bottom:2px solid #d7e0e6;padding-bottom:12px;margin-bottom:14px}.printable-report .report-title h2{margin:0 0 5px}.printable-report .report-title p{margin:0;color:#5e6e79}.printable-report .report-summary{grid-template-columns:repeat(2,minmax(150px,220px));margin:12px 0 18px}.printable-report .report-summary>div{padding:12px 14px}.printable-report .report-summary strong{font-size:1.25rem}.printable-report table{font-variant-numeric:tabular-nums}
