/* Gestão da Frota */
.cus-page{max-width:1560px;margin:0 auto}.cus-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:20px}.cus-head h2{font-weight:800;color:#0f172a;margin:0}.cus-head p{color:#64748b;margin:5px 0 0}.cus-actions{display:flex;gap:8px;flex-wrap:wrap}.cus-filter{background:#fff;border:1px solid #dbe3ef;border-radius:8px;padding:16px;margin-bottom:18px;box-shadow:0 3px 14px rgba(15,23,42,.05)}.cus-filter-grid{display:grid;grid-template-columns:1.3fr repeat(5,1fr);gap:10px}.cus-periods{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px}.cus-periods button{border:1px solid #cbd5e1;background:#fff;color:#475569;border-radius:6px;padding:5px 11px;font-weight:700;font-size:.72rem}.cus-periods button:hover{background:#eff6ff;color:#1d4ed8;border-color:#93c5fd}.cus-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:14px}.cus-kpi{background:#fff;border:1px solid #e2e8f0;border-top:3px solid #3b82f6;border-radius:8px;padding:16px;box-shadow:0 3px 12px rgba(15,23,42,.05)}.cus-kpi:nth-child(2){border-top-color:#0f766e}.cus-kpi:nth-child(3){border-top-color:#64748b}.cus-kpi:nth-child(4){border-top-color:#f59e0b}.cus-kpi:nth-child(5){border-top-color:#10b981}.cus-kpi:nth-child(6){border-top-color:#8b5cf6}.cus-kpi span{display:block;color:#64748b;font-size:.68rem;font-weight:800;text-transform:uppercase}.cus-kpi strong{display:block;color:#0f172a;font-size:1.45rem;margin-top:7px}.cus-kpi small{display:block;color:#94a3b8;font-size:.65rem;margin-top:4px}.cus-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:16px;margin-bottom:18px}.cus-panel{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:18px;box-shadow:0 3px 12px rgba(15,23,42,.05);margin-bottom:16px}.cus-panel h5{font-weight:800;color:#0f172a;margin-bottom:14px}.cus-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.cus-form-grid .span-2{grid-column:span 2}.cus-form-grid .span-4{grid-column:span 4}.cus-form-grid label{font-size:.69rem;font-weight:800;color:#64748b;text-transform:uppercase;margin:0 0 4px}.cus-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.cus-table-wrap{overflow:auto}.cus-table{min-width:1050px}.cus-table th{font-size:.68rem;text-transform:uppercase;color:#64748b;white-space:nowrap}.cus-table td{vertical-align:middle}.cus-badge{display:inline-flex;padding:3px 7px;border-radius:999px;font-size:.65rem;font-weight:800}.cus-badge.fix{background:#e2e8f0;color:#334155}.cus-badge.var{background:#fef3c7;color:#92400e}.cus-badge.ind{background:#fce7f3;color:#9d174d}.cus-badge.auto{background:#dcfce7;color:#166534}.cus-badge.manual{background:#dbeafe;color:#1d4ed8}.cus-empty{text-align:center;color:#64748b;padding:34px!important}.cus-chart{height:270px;position:relative}.cus-note{font-size:.72rem;color:#64748b}.cus-tabs{display:flex;gap:6px;border-bottom:1px solid #e2e8f0;margin-bottom:16px;overflow:auto}.cus-tab{border:0;background:transparent;padding:9px 12px;font-weight:800;color:#64748b;border-bottom:3px solid transparent;white-space:nowrap}.cus-tab.active{color:#2563eb;border-bottom-color:#2563eb}.cus-pane.hidden{display:none!important}.cus-status-alert{color:#b45309;font-size:.73rem;font-weight:700;margin-top:5px}.cus-rec-row{display:grid;grid-template-columns:1.3fr .7fr .8fr .7fr auto;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid #edf2f7}.cus-rec-row:last-child{border:0}.cus-mini{font-size:.72rem;color:#64748b}.cus-progress{height:7px;background:#e2e8f0;border-radius:99px;overflow:hidden;margin-top:5px}.cus-progress i{display:block;height:100%;background:#3b82f6;border-radius:99px}.cus-pendencias{display:none;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:8px;padding:10px 14px;margin-bottom:14px;font-size:.78rem;font-weight:700}.cus-pendencias.show{display:block}.cus-step{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#0f172a;color:#fff;font-size:.72rem;font-weight:800;margin-right:7px}.cus-upload{border:2px dashed #94a3b8;border-radius:8px;min-height:140px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;background:#f8fafc;color:#334155}.cus-upload:hover{border-color:#2563eb;background:#eff6ff}.cus-upload span,.cus-pdf-status{font-size:.72rem;color:#64748b}.cus-pdf-status{margin-top:10px}.cus-import-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.cus-import-stats div{border-left:3px solid #cbd5e1;padding:8px 10px;background:#f8fafc}.cus-import-stats span{display:block;color:#64748b;font-size:.65rem;text-transform:uppercase;font-weight:800}.cus-import-stats strong{font-size:1.35rem;color:#0f172a}.cus-confidence{font-size:.68rem;font-weight:800}.cus-confidence.ok{color:#166534}.cus-confidence.warn{color:#b45309}.cus-row-warn{background:#fffbeb}.cus-history{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #e2e8f0}.cus-check{width:18px;height:18px}.cus-inline-select{min-width:155px}.cus-inline-input{min-width:130px}.cus-source-note{display:block;font-size:.62rem;color:#64748b;margin-top:3px}@media(max-width:1150px){.cus-filter-grid{grid-template-columns:repeat(3,1fr)}.cus-kpis{grid-template-columns:repeat(3,1fr)}.cus-grid{grid-template-columns:1fr}.cus-form-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.cus-head{display:block}.cus-actions{margin-top:12px}.cus-filter-grid,.cus-kpis,.cus-form-grid{grid-template-columns:1fr}.cus-form-grid .span-2,.cus-form-grid .span-4{grid-column:span 1}.cus-kpi strong{font-size:1.25rem}.cus-rec-row{grid-template-columns:1fr 1fr}.cus-rec-row>*:first-child{grid-column:1/-1}.cus-import-stats{grid-template-columns:1fr 1fr}}
@media print{.sidebar,.sb-mobile-toggle,.cus-actions,.cus-filter,.cus-form-wrap,.cus-tabs{display:none!important}.main{margin:0!important;padding:10px!important}.cus-grid{grid-template-columns:1fr 1fr}.cus-panel{box-shadow:none}.cus-table{min-width:0;font-size:10px}}
.res-mode{display:flex;justify-content:flex-end;gap:4px;margin-bottom:12px}.res-mode button{border:1px solid #cbd5e1;background:#fff;color:#475569;padding:6px 12px;font-size:.72rem;font-weight:800}.res-mode button:first-child{border-radius:6px 0 0 6px}.res-mode button:last-child{border-radius:0 6px 6px 0}.res-mode button.active{background:#0f172a;color:#fff;border-color:#0f172a}.res-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px}.res-kpis>div{background:#fff;border:1px solid #e2e8f0;border-left:4px solid #0f766e;border-radius:6px;padding:15px;box-shadow:0 3px 12px rgba(15,23,42,.05)}.res-kpis>div:nth-child(2){border-left-color:#64748b}.res-kpis>div:nth-child(3){border-left-color:#2563eb}.res-kpis>div:nth-child(4){border-left-color:#d97706}.res-kpis>div:nth-child(5){border-left-color:#7c3aed}.res-kpis span{display:block;color:#64748b;font-size:.66rem;font-weight:800;text-transform:uppercase}.res-kpis strong{display:block;color:#0f172a;font-size:1.35rem;margin-top:6px}.res-pos{color:#047857}.res-neg{color:#b91c1c}.res-table{min-width:1480px}@media(max-width:1150px){.res-kpis{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){.res-kpis{grid-template-columns:1fr 1fr}.res-kpis strong{font-size:1.08rem}.res-mode{justify-content:stretch}.res-mode button{flex:1}}

.cus-import-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.cus-import-head .cus-form-actions{margin:0}.cus-pedagio-table{min-width:760px}.cus-history-table{min-width:980px}.cus-history-actions{display:flex;gap:6px;white-space:nowrap}.cus-history-actions .btn-edit,.cus-history-actions .btn-del{width:auto;height:auto;min-height:30px;padding:5px 10px;line-height:1.25;font-size:.72rem;margin:0;white-space:nowrap}.res-depreciacao-table{min-width:1080px}.cus-pane .paginacao-global{margin-top:12px}@media(max-width:700px){.cus-import-head{align-items:stretch;flex-direction:column}.cus-import-head .cus-form-actions{justify-content:stretch}.cus-import-head .cus-form-actions button{flex:1}.cus-history-actions{flex-direction:column}}
.res-dep-monthly{font-weight:800;color:#047857;background:#f0fdf4}.res-depreciacao-table{min-width:1240px}.rel-vehicle-table{min-width:1420px}
.cus-filter-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.cus-filter-actions .btn{min-width:112px;font-weight:800;text-transform:uppercase}@media(max-width:700px){.cus-filter-actions{display:grid;grid-template-columns:1fr 1fr}.cus-filter-actions .btn{width:100%}}
.cus-page .cus-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.cus-payroll-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cus-payroll-total{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;padding:13px 15px;border:1px solid #bfdbfe;border-left:4px solid #2563eb;border-radius:6px;background:#eff6ff}.cus-payroll-total span{color:#475569;font-size:.72rem;font-weight:800;text-transform:uppercase}.cus-payroll-total strong{color:#0f172a;font-size:1.35rem}.cus-payroll .cus-form-actions button{min-height:40px}@media(max-width:1150px){.cus-page .cus-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.cus-page .cus-kpis,.cus-payroll-grid{grid-template-columns:1fr}.cus-payroll-total{align-items:flex-start;flex-direction:column;gap:4px}.cus-payroll .cus-form-actions{display:grid;grid-template-columns:1fr 1fr}.cus-payroll .cus-form-actions button{width:100%}}
.cus-filter-summary{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;border-left:4px solid #0f766e;background:#f0fdfa;padding:12px 16px;margin-bottom:14px;border-radius:4px}.cus-filter-summary span{display:block;color:#475569;font-size:.7rem;font-weight:800;text-transform:uppercase}.cus-filter-summary strong{display:block;color:#0f172a;font-size:1.35rem;line-height:1.3;margin-top:2px}.cus-filter-summary small{color:#475569;font-size:.75rem;overflow-wrap:anywhere}

.cus-detail-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:4px 0 14px;padding:12px 14px;border:1px solid #cbd5e1;border-left:4px solid #0f766e;border-radius:6px;background:#f8fafc}.cus-detail-head span,.cus-detail-head small{display:block;color:#64748b;font-size:.68rem;font-weight:700}.cus-detail-head h4{margin:2px 0;color:#0f172a;font-weight:800}.res-pneu-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}.res-pneu-table{min-width:1220px}@media(max-width:900px){.res-pneu-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.cus-detail-head{align-items:flex-start}.res-pneu-kpis{grid-template-columns:1fr}}
.pneu-workspace{--pneu:#0f766e;--pneu-soft:#ecfdf5}.pneu-fleet-panel{border-top:4px solid var(--pneu)}.pneu-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.pneu-section-head h5{margin:0}.pneu-kicker{display:block;color:#0f766e;font-size:.63rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;margin-bottom:3px}.pneu-fleet-table th{background:#f8fafc;color:#475569;font-size:.66rem;text-transform:uppercase;white-space:nowrap}.pneu-fleet-table td{vertical-align:middle}.pneu-detail-grid{display:grid;grid-template-columns:minmax(360px,.85fr) minmax(520px,1.15fr);gap:16px}.pneu-entry{border-top:3px solid #2563eb}.pneu-history{border-top:3px solid #64748b}.pneu-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:.65rem;font-weight:900;white-space:nowrap}.pneu-status.ok{background:#dcfce7;color:#166534}.pneu-status.warn{background:#fef3c7;color:#92400e}.pneu-status.danger{background:#fee2e2;color:#991b1b}.pneu-status.muted{background:#e2e8f0;color:#475569}.pneu-life{width:92px;height:7px;border-radius:99px;background:#e2e8f0;overflow:hidden;margin-bottom:3px}.pneu-life i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#10b981,#f59e0b,#dc2626)}.pneu-evento{display:inline-flex;padding:3px 7px;border-radius:5px;background:#eff6ff;color:#1d4ed8;font-size:.68rem;font-weight:800}.pneu-field-muted{opacity:.5}.pneu-field-muted input{background:#f1f5f9}.pneu-workspace .cus-pendencias{margin-top:-4px}.pneu-workspace .res-pneu-kpis>div{background:linear-gradient(145deg,#fff,#f8fafc)}@media(max-width:1100px){.pneu-detail-grid{grid-template-columns:1fr}}@media(max-width:700px){.pneu-section-head{align-items:flex-start}.pneu-fleet-table{min-width:720px}.pneu-life{width:70px}}
.cus-kpi-link{cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.cus-kpi-link:hover,.cus-kpi-link:focus-visible{transform:translateY(-2px);border-color:#93c5fd;box-shadow:0 7px 18px rgba(15,23,42,.1);outline:2px solid #bfdbfe;outline-offset:2px}.rel-report-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:16px;padding:18px;border-left:4px solid #0f766e;background:#f8fafc}.rel-report-head h4{margin:2px 0 4px;color:#0f172a;font-weight:800}.rel-report-head p{margin:0;color:#64748b;font-size:.78rem}.rel-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.rel-kpis>div{background:#fff;border:1px solid #e2e8f0;border-top:3px solid #2563eb;border-radius:6px;padding:16px;box-shadow:0 3px 12px rgba(15,23,42,.05)}.rel-kpis>div:nth-child(2){border-top-color:#0f766e}.rel-kpis>div:nth-child(3){border-top-color:#d97706}.rel-kpis>div:nth-child(4){border-top-color:#7c3aed}.rel-kpis span{display:block;color:#64748b;font-size:.66rem;font-weight:800;text-transform:uppercase}.rel-kpis strong{display:block;color:#0f172a;font-size:1.35rem;margin-top:6px}.rel-table{min-width:1320px}.rel-vehicle-table{min-width:1460px}@media(max-width:900px){.rel-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.rel-report-head{align-items:stretch;flex-direction:column}.rel-report-head .btn{width:100%}.rel-kpis{grid-template-columns:1fr}.cus-kpi-link:hover{transform:none}}

.dep-highlight{background:#fff;border:1px solid #e2e8f0;border-top:3px solid #dc2626;border-radius:8px;padding:18px;margin-bottom:16px;box-shadow:0 3px 12px rgba(15,23,42,.05)}.dep-highlight-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:14px}.dep-highlight-head span,.dep-highlight-grid span{display:block;color:#64748b;font-size:.66rem;font-weight:800;text-transform:uppercase}.dep-highlight-head h4{margin:3px 0 0;color:#0f172a;font-weight:800}.dep-highlight-head>strong{color:#b91c1c;font-size:1.7rem}.dep-highlight-grid{display:grid;grid-template-columns:1.15fr repeat(5,minmax(0,1fr));gap:10px}.dep-highlight-grid>div{border-left:3px solid #cbd5e1;background:#f8fafc;padding:12px 13px}.dep-highlight-grid .dep-highlight-primary{border-left-color:#dc2626;background:#fef2f2}.dep-highlight-grid strong{display:block;color:#0f172a;font-size:1rem;margin-top:5px;overflow-wrap:anywhere}.dep-highlight-empty{margin:0;color:#64748b;font-size:.78rem}@media(max-width:1150px){.dep-highlight-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.dep-highlight-head{align-items:flex-start}.dep-highlight-grid{grid-template-columns:1fr 1fr}.dep-highlight-head>strong{font-size:1.35rem}}@media(max-width:430px){.dep-highlight-grid{grid-template-columns:1fr}}
.cus-pre-panel{border-top:4px solid #d97706}.cus-pre-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px}.cus-pre-head h5{display:flex;align-items:center;gap:8px;margin:2px 0 4px}.cus-pre-head p{margin:0;color:#64748b;font-size:.76rem}.cus-pre-head .cus-form-actions{margin:0}.cus-pre-count{display:inline-grid;place-items:center;min-width:25px;height:25px;padding:0 7px;border-radius:99px;background:#fef3c7;color:#92400e;font-size:.72rem}.cus-pre-table{min-width:1280px}.cus-pre-table input,.cus-pre-table select{min-width:120px;font-size:.75rem}.cus-pre-table .cus-pre-desc{min-width:230px}.cus-pre-table .cus-pre-value{min-width:125px}.cus-pre-origin{display:block;color:#64748b;font-size:.66rem;margin-top:3px}.cus-pre-row-invalid{background:#fff7ed}.cus-pre-row-invalid td{border-color:#fed7aa}@media(max-width:700px){.cus-pre-head{align-items:stretch;flex-direction:column}.cus-pre-head .cus-form-actions{display:grid;grid-template-columns:1fr 1fr}.cus-pre-head .cus-form-actions button{width:100%}}

/* Pendências detalhadas */
.cus-pendencias .cus-pend-msg{font-weight:700}
.cus-pend-bloco{margin-top:8px}
.cus-pend-tit{font-size:11px;letter-spacing:.06em;text-transform:uppercase;opacity:.75;margin-bottom:4px}
.cus-pend-item{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:6px 8px;margin-bottom:4px;background:rgba(255,255,255,.55);border:1px solid rgba(0,0,0,.08);border-radius:8px;font-size:12px}
.cus-pend-item strong{margin-left:auto}
.cus-pend-btn{border:0;background:#1d4ed8;color:#fff;border-radius:6px;padding:4px 10px;font-size:11px;font-weight:700;cursor:pointer}
.cus-pend-btn:hover{background:#1e40af}
.cus-status-select{width:auto;min-width:15ch;max-width:none;height:32px;padding:4px 30px 4px 8px;border-width:1px;font-size:.72rem;font-weight:700;white-space:nowrap;text-overflow:clip;overflow:visible;field-sizing:content;transition:background-color .15s ease,border-color .15s ease,color .15s ease}.cus-status-select:disabled{cursor:wait;opacity:.65}.cus-status-readonly{display:inline-block;padding:5px 9px;border:1px solid transparent;border-radius:5px;font-size:.72rem;font-weight:700}.cus-status-pago{background:#eefbf3!important;border-color:#b9e5c9!important;color:#24613c!important}.cus-status-realizado{background:#eef7fd!important;border-color:#bedcf0!important;color:#285d7c!important}.cus-status-pendente{background:#fff9e8!important;border-color:#eadca8!important;color:#795f1f!important}.cus-status-provisionado{background:#f4f1fa!important;border-color:#d9cdea!important;color:#5f4d7c!important}
.btn-transfer{width:auto;height:auto;min-height:30px;padding:5px 10px;border:1px solid #b9e5c9;border-radius:5px;background:#eefbf3;color:#24613c;font-size:.72rem;font-weight:700;line-height:1.25;white-space:nowrap}.btn-transfer:hover{background:#dcfce7}.res-depreciacao-table{min-width:1380px}
.cus-rec-table{min-width:980px}.cus-rec-table td{font-size:.8rem;white-space:nowrap}.cus-rec-table td:first-child{white-space:normal}.cus-rec-table .cus-history-actions{display:inline-flex;gap:6px;justify-content:flex-end}

/* Only the recurring-cost form: use the available panel width without oversized fields. */
#cusPane-recorrentes .cus-grid>.cus-panel:first-child{container:cus-rec-form / inline-size}
#cusPane-recorrentes .cus-rec-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 10px}
#cusPane-recorrentes .cus-rec-form-grid>div{min-width:0}
#cusPane-recorrentes .cus-rec-form-grid :is(.form-control,.form-select){min-width:0;width:100%}
#cusPane-recorrentes .cus-rec-form-grid #cusRecModoGrupo{grid-column:span 2}
@container cus-rec-form (max-width:470px){#cusPane-recorrentes .cus-rec-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#cusPane-recorrentes .cus-rec-form-grid #cusRecModoGrupo{grid-column:span 1}}
@container cus-rec-form (max-width:390px){#cusPane-recorrentes .cus-rec-form-grid{grid-template-columns:1fr}#cusPane-recorrentes .cus-rec-form-grid .span-2{grid-column:span 1}}

/* Produção e receitas: ações completas, sem texto saindo dos botões ou da coluna. */
#cusPane-producao .cus-table{min-width:1320px}
#cusPane-producao .cus-table th:last-child,
#cusPane-producao .cus-table td:last-child{min-width:176px;white-space:nowrap}
#cusPane-producao .cus-table td:last-child .btn-edit,
#cusPane-producao .cus-table td:last-child .btn-del{width:auto;min-width:70px;height:32px;padding:5px 9px;margin-right:6px;white-space:nowrap;font-size:.72rem;font-weight:700;line-height:1.2}
#cusPane-producao .cus-table td:last-child .btn-del{margin-right:0}

/* Folha: resumo alinhado com os valores manuais. */
.cus-payroll-summary{margin:14px 0 0;padding:0}
.cus-payroll-summary>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(125px,auto);gap:10px;padding:7px 0;border-bottom:1px solid var(--bs-border-color)}
.cus-payroll-summary dt{font-size:.8rem;font-weight:700;overflow-wrap:anywhere}
.cus-payroll-summary dd{margin:0;text-align:right;font-size:.85rem;font-weight:800;font-variant-numeric:tabular-nums}
.cus-payroll-summary>div:nth-last-child(-n+3){color:var(--bs-primary)}
.cus-payroll-grid>div{min-width:0}

.fm-folha-detalhe>td{background:var(--bs-tertiary-bg,#f8fafc);font-size:.92em}
.fm-folha-detalhe>td:first-child{padding-left:28px}
tr.fm-folha-detalhe{display:none!important}
tr.fm-folha-detalhe.fm-folha-aberta{display:table-row!important}
.fm-folha-acoes-td{white-space:nowrap;min-width:126px}
.fm-folha-acoes{display:inline-flex;gap:6px;justify-content:flex-end;flex-wrap:nowrap}
.fm-folha-acoes .btn-edit,.fm-folha-acoes .btn-del{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;min-width:32px;height:32px;padding:0;margin:0;line-height:1;font-size:1rem;white-space:nowrap}
#cusFolhaLista tr[hidden]{display:none!important}

.cus-planilha{margin-top:16px}.cus-planilha summary{cursor:pointer;font-weight:800;margin-bottom:14px}.cus-planilha .cus-table input.form-control{min-width:140px}
.folha-import-table{min-width:1060px;table-layout:fixed}
.folha-import-table th:nth-child(1){width:110px}
.folha-import-table th:nth-child(2){width:220px}
.folha-import-table th:nth-child(3){width:210px}
.folha-import-table th:nth-child(4){width:140px}
.folha-import-table th:nth-child(5){width:210px}
.folha-import-table th:nth-child(6){width:110px}
.folha-import-table th:nth-child(7){width:170px}
#cusPane-folha .folha-import-table th,#cusPane-folha .folha-import-table td{white-space:normal!important;overflow-wrap:anywhere;letter-spacing:0}
.folha-import-table .cus-history-actions{display:flex;gap:6px;flex-wrap:nowrap}
.folha-import-editor{width:min(780px,calc(100% - 24px));max-height:90vh;overflow:auto;border:1px solid var(--bs-border-color);border-radius:8px;padding:24px;background:var(--bs-body-bg);color:var(--bs-body-color)}
.folha-import-editor::backdrop{background:var(--bs-secondary-bg);opacity:.7}
.folha-import-editor .cus-payroll-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
@media(max-width:600px){.folha-import-editor .cus-payroll-grid{grid-template-columns:minmax(0,1fr)}}
