/* Generado por "python manage.py build_dark_css" desde app.css. No editar a mano. */
:root[data-theme=dark]{--navy:#0d1c2c;--navy-deep:#0a1622;--ink:#e3e9f0;--muted:#98a5b3;--line:#343c45;--blue:#6ea5ff;--blue-fill:#2f6fd8;--paper:#0e151e;--white:#181f26;--teal:#45b8a6;--amber:#e0a256;--shadow:0 3px 16px #0006;--age-0:#5b95e0;--age-1:#8a3a17;--age-2:#b44e21;--age-3:#dc6a33;--age-4:#f5926a;--age-5:#fdc1a8;--chart-open:#5b95e0;--chart-late:#c9744f;--chart-isr:#2fa290;--chart-paid:#45ad5c;--chart-grid:#262e37;--chart-axis:#47515c;--ok:#3a9a7e;--warn:#d9a24a;--crit:#e0625a}
:root[data-theme=dark] body{background:var(--paper);color:var(--ink)}
:root[data-theme=dark] a{color:var(--blue)}
:root[data-theme=dark] button:focus-visible,:root[data-theme=dark] a:focus-visible,:root[data-theme=dark] input:focus-visible,:root[data-theme=dark] select:focus-visible{outline:3px solid #73aaff}
:root[data-theme=dark] svg{fill:none;stroke:currentColor}
:root[data-theme=dark] .topbar{background:#181f26;border-bottom:1px solid var(--line)}
:root[data-theme=dark] .breadcrumb{color:var(--muted)}
:root[data-theme=dark] .breadcrumb span{color:#797f85}
:root[data-theme=dark] .breadcrumb strong{color:#adbfdc}
:root[data-theme=dark] .environment{color:#99c9be;background:#202926}
:root[data-theme=dark] .environment i,:root[data-theme=dark] .subtle-dot,:root[data-theme=dark] .demo-dot{background:#7d9dba}
:root[data-theme=dark] .environment i{background:#45a184}
:root[data-theme=dark] .environment.demo{color:#e0b772;background:#2a2519}
:root[data-theme=dark] .environment.demo i,:root[data-theme=dark] .demo-dot{background:#d5a24c}
:root[data-theme=dark] .top-divider{background:var(--line)}
:root[data-theme=dark] .avatar{background:#252d35;color:#a6c1de}
:root[data-theme=dark] .user-name small{color:var(--muted)}
:root[data-theme=dark] .eyebrow{color:#abbac8}
:root[data-theme=dark] h1>span{color:var(--blue)}
:root[data-theme=dark] .page-heading p{color:#adb9c9}
:root[data-theme=dark] .date-block{color:#aabaca}
:root[data-theme=dark] .demo-banner{background:#29251b;border:1px solid #473f2e;color:#d3ba91}
:root[data-theme=dark] .demo-banner strong{color:#d7b989}
:root[data-theme=dark] .overview-heading{color:#a9b9d1}
:root[data-theme=dark] .currency-label{color:#acb9cb}
:root[data-theme=dark] .currency-label select{border:1px solid var(--line);background:#181f26;color:#abc0d9}
:root[data-theme=dark] .metric{background:#181f26;border:1px solid var(--line);box-shadow:var(--shadow)}
:root[data-theme=dark] .metric-top{color:#a9bacc}
:root[data-theme=dark] .metric-icon.blue{background:#232a32;color:#97c0fb}
:root[data-theme=dark] .metric-icon.amber{background:#2d2619;color:#e3b570}
:root[data-theme=dark] .metric-icon.teal{background:#202c2a;color:#8cccc2}
:root[data-theme=dark] .metric-foot{color:#aeb9c6;border:0;background:none}
:root[data-theme=dark] .amber-text{color:#dab888}
:root[data-theme=dark] .panel{background:#181f26;border:1px solid var(--line);box-shadow:var(--shadow)}
:root[data-theme=dark] .panel-heading p{color:#adb9c8}
:root[data-theme=dark] .button.danger{background:#b3261e;color:#fff}
:root[data-theme=dark] .button.danger:hover:not(:disabled){background:#961f18}
:root[data-theme=dark] .void-label{color:#a6bad0}
:root[data-theme=dark] .void-label textarea{border:1px solid var(--line);color:var(--ink)}
:root[data-theme=dark] .void-tag{background:#372827;color:#fca396}
:root[data-theme=dark] .row-voided td{color:#aeb9c6}
:root[data-theme=dark] .void-button{color:#fca396}
:root[data-theme=dark] .void-button:hover{color:#fda294}
:root[data-theme=dark] .period-totals{border-bottom:1px solid var(--line);background:#1b222a;color:#aab6c6}
:root[data-theme=dark] .period-totals strong{color:var(--ink)}
:root[data-theme=dark] .period-totals .isr{color:var(--blue)}
:root[data-theme=dark] .icon-button{border:1px solid var(--line);background:#181f26;color:#a5b5c5}
:root[data-theme=dark] .icon-button:hover{background:#20282f;color:var(--blue)}
:root[data-theme=dark] .search-box{border:1px solid #373d44;background:#1b232a}
:root[data-theme=dark] .search-box svg{color:#a9bbca}
:root[data-theme=dark] .search-box input{background:none;border:0;outline:none;color:var(--ink)}
:root[data-theme=dark] .search-box input::placeholder{color:#aeb9c6}
:root[data-theme=dark] .search-box:focus-within{border-color:#83a8df;box-shadow:0 0 0 3px #333841}
:root[data-theme=dark] .search-box input:focus-visible{outline:0}
:root[data-theme=dark] .search-box kbd{color:#b0b9c4;border:1px solid #383f46}
:root[data-theme=dark] .button{border:1px solid transparent}
:root[data-theme=dark] .button.primary{background:var(--blue-fill);color:#fff;box-shadow:0 2px 3px #236adb18}
:root[data-theme=dark] .button.primary:hover:not(:disabled){background:#1b5fc9;box-shadow:0 4px 12px #236adb30}
:root[data-theme=dark] .button.secondary{border-color:var(--line);background:#181f26;color:#a4b6cd}
:root[data-theme=dark] .table-toolbar{border-bottom:1px solid var(--line)}
:root[data-theme=dark] .filter{border:0;background:none;color:#abbac8}
:root[data-theme=dark] .filter.active{color:#97bffe}
:root[data-theme=dark] .filter.active:after{background:var(--blue-fill)}
:root[data-theme=dark] .muted{color:#adb9c8}
:root[data-theme=dark] .invoice-table th{background:#1b2229;color:#a7b6c6;border-bottom:1px solid var(--line)}
:root[data-theme=dark] .invoice-table td{border-bottom:1px solid #333940}
:root[data-theme=dark] .invoice-table tbody tr:last-child td{border-bottom:0}
:root[data-theme=dark] .invoice-table tbody tr:hover{background:#1a2129}
:root[data-theme=dark] .invoice-table tr.selected{background:#21262e}
:root[data-theme=dark] .invoice-table tr.selected:hover{background:#212933}
:root[data-theme=dark] input[type=checkbox]{accent-color:var(--blue)}
:root[data-theme=dark] .vendor-avatar{background:#242c34;color:#aac0da}
:root[data-theme=dark] .vendor-avatar.v2{background:#252d35;color:#c4b89f}
:root[data-theme=dark] .vendor-avatar.v3{background:#242b33;color:#a6c7b7}
:root[data-theme=dark] .invoice-number{color:#a7c0df}
:root[data-theme=dark] .invoice-number small{color:#a9bacb}
:root[data-theme=dark] .invoice-supplier{color:#abbac8}
:root[data-theme=dark] .money-cell{color:#a7c0de}
:root[data-theme=dark] .money-cell small{color:#adb9c8}
:root[data-theme=dark] .date-cell{color:#aabac9}
:root[data-theme=dark] .status:before{background:currentColor}
:root[data-theme=dark] .status.paid{color:#85cfbb;background:#222b27}
:root[data-theme=dark] .status.open{color:#a8c0df;background:#232b33}
:root[data-theme=dark] .status.overdue{color:#e3b572;background:#2d2619}
:root[data-theme=dark] .issued-tag{color:#aac0db}
:root[data-theme=dark] .table-footer{border-top:1px solid var(--line);color:#acb9c6}
:root[data-theme=dark] .pagination button{border:1px solid var(--line);background:#181f26;color:#a1b6cc}
:root[data-theme=dark] .pagination span{color:#a5c0e3}
:root[data-theme=dark] .empty-cell{color:#a8bace}
:root[data-theme=dark] .selection-title{border-bottom:1px solid var(--line)}
:root[data-theme=dark] .count-pill{background:#25292f;color:#9ec1ea}
:root[data-theme=dark] .step-label{color:#95c2f5}
:root[data-theme=dark] .step-label span{color:#aabaca}
:root[data-theme=dark] .document-stack{border:1px dashed #414c58;color:#90a7c2;background:#1c242b}
:root[data-theme=dark] .selection-empty p{color:#abbac8}
:root[data-theme=dark] .selection-rule{border-top:1px dashed #363d44;color:#a8bacd}
:root[data-theme=dark] .selection-rule svg{color:#a1c2de}
:root[data-theme=dark] .selection-bottom{background:#1b222a;border-top:1px solid var(--line)}
:root[data-theme=dark] .selection-bottom p{color:#adb9c9}
:root[data-theme=dark] .selection-caption{color:#abbac7;border-top:1px solid var(--line)}
:root[data-theme=dark] .selection-caption .subtle-dot{background:#abc0d2}
:root[data-theme=dark] .selected-item{background:#1d252c}
:root[data-theme=dark] .selected-item small{color:#a8bace}
:root[data-theme=dark] .selected-item button{border:0;background:none;color:#abb9cf}
:root[data-theme=dark] .text-button{border:0;background:none;color:#a6c0e0}
:root[data-theme=dark] .text-button:hover{color:var(--blue)}
:root[data-theme=dark] .bottom-note{color:#acb9c6}
:root[data-theme=dark] .page-footer{border-top:1px solid var(--line);color:#aebac7}
:root[data-theme=dark] .page-footer b{color:#afb9c3}
:root[data-theme=dark] .error-banner{background:#30241e;border:1px solid #534237;color:#faa682}
:root[data-theme=dark] .review-dialog{border:0;background:#181f26;box-shadow:0 24px 100px #112b4350;color:var(--ink)}
:root[data-theme=dark] .review-dialog::backdrop{background:#142c4677}
:root[data-theme=dark] .review-provider{background:#1e262d}
:root[data-theme=dark] .review-provider small{color:#acb9ca}
:root[data-theme=dark] .review-total{border-top:1px solid var(--line)}
:root[data-theme=dark] .review-total span{color:#aabaca}
:root[data-theme=dark] .review-total>div:nth-child(2) strong{color:var(--blue)}
:root[data-theme=dark] .review-note{color:#a9bacb}
:root[data-theme=dark] .dialog-actions{border-top:1px solid var(--line)}
:root[data-theme=dark] .download-link{color:#91c2f8}
:root[data-theme=dark] .login-card{background:#181f26;box-shadow:0 25px 70px #0003}
:root[data-theme=dark] .login-card p{color:#acb9ca}
:root[data-theme=dark] .login-card label{color:#a6bad0}
:root[data-theme=dark] .login-card input{border:1px solid var(--line);color:var(--ink);background:#1b232a}
:root[data-theme=dark] .login-card>small{color:#aebac7}
:root[data-theme=dark] .aging-heading>span{color:#a9bacb}
:root[data-theme=dark] .aging-bar{background:#212830}
:root[data-theme=dark] .aging-bar>span{background:#7ea4ce}
:root[data-theme=dark] .aging-bar>span+span{background:#cfaa70}
:root[data-theme=dark] .aging-legend{color:#a9bacc}
:root[data-theme=dark] .aging-legend i{background:#7ea4ce}
:root[data-theme=dark] .aging-legend.overdue i{background:#cfaa70}
:root[data-theme=dark] .aging-legend strong{color:#aac1d9}
:root[data-theme=dark] .aging-panel>p{border-top:1px solid #333940;color:#acb9c6}
:root[data-theme=dark] .date-filter{border-bottom:1px solid var(--line);color:#abbac8}
:root[data-theme=dark] .date-filter input{border:1px solid var(--line);background:#1b232a;color:var(--ink)}
:root[data-theme=dark] .sort{border:0;background:none;color:inherit}
:root[data-theme=dark] .sort:hover,:root[data-theme=dark] .sort.active{color:var(--blue)}
:root[data-theme=dark] .page-size select{border:1px solid var(--line);background:#181f26;color:#abc0d9}
:root[data-theme=dark] #page-range{color:#acb9c6}
:root[data-theme=dark] .bl-cell .bl-number{color:var(--ink)}
:root[data-theme=dark] .bl-cell small{color:#abbac8}
:root[data-theme=dark] .aging-bar>.tone-0{background:var(--age-0)}
:root[data-theme=dark] .aging-bar>.tone-1{background:var(--age-1)}
:root[data-theme=dark] .aging-bar>.tone-2{background:var(--age-2)}
:root[data-theme=dark] .aging-bar>.tone-3{background:var(--age-3)}
:root[data-theme=dark] .aging-bar>.tone-4{background:var(--age-4)}
:root[data-theme=dark] .aging-bar>.tone-5{background:var(--age-5)}
:root[data-theme=dark] button.aging-legend{border:0;background:none;color:#a9bacc}
:root[data-theme=dark] button.aging-legend:hover:not(:disabled){background:#202830}
:root[data-theme=dark] button.aging-legend.active{background:#232a32;box-shadow:inset 2px 0 var(--blue);color:var(--ink)}
:root[data-theme=dark] .aging-legend.tone-0 i{background:var(--age-0)}
:root[data-theme=dark] .aging-legend.tone-1 i{background:var(--age-1)}
:root[data-theme=dark] .aging-legend.tone-2 i{background:var(--age-2)}
:root[data-theme=dark] .aging-legend.tone-3 i{background:var(--age-3)}
:root[data-theme=dark] .aging-legend.tone-4 i{background:var(--age-4)}
:root[data-theme=dark] .aging-legend.tone-5 i{background:var(--age-5)}
:root[data-theme=dark] .aging-legend strong small{color:#acb9c6}
:root[data-theme=dark] .upcoming-heading{border-top:1px solid #333940}
:root[data-theme=dark] .aging-chip{border:1px solid #3a4655;background:#232a32;color:#94c0fd}
:root[data-theme=dark] .aging-chip:hover{background:#273241}
:root[data-theme=dark] .chart-heading p{color:var(--muted)}
:root[data-theme=dark] .chart-y span{color:var(--muted)}
:root[data-theme=dark] .chart-lines i{border-top:1px solid var(--chart-grid)}
:root[data-theme=dark] .col:hover,:root[data-theme=dark] .col:focus-visible{background:#1e262d}
:root[data-theme=dark] .col-plot{border-bottom:1px solid var(--chart-axis)}
:root[data-theme=dark] .col-value{color:#aac0d9}
:root[data-theme=dark] .col-bar{background:var(--chart-open)}
:root[data-theme=dark] .column-chart.isr .col-bar{background:var(--chart-isr)}
:root[data-theme=dark] .col-bar.late{background:var(--chart-late)}
:root[data-theme=dark] .col-bar.invoiced{background:var(--chart-open)}
:root[data-theme=dark] .col-bar.paid{background:var(--chart-paid)}
:root[data-theme=dark] .col-label{color:var(--muted)}
:root[data-theme=dark] .chart-legend{color:var(--muted)}
:root[data-theme=dark] .key-open,:root[data-theme=dark] .key-invoiced{background:var(--chart-open)}
:root[data-theme=dark] .key-late{background:var(--chart-late)}
:root[data-theme=dark] .key-paid{background:var(--chart-paid)}
:root[data-theme=dark] .bar-row{border:0;background:none;color:var(--ink)}
:root[data-theme=dark] .bar-row:hover,:root[data-theme=dark] .bar-row:focus-visible{background:#202830}
:root[data-theme=dark] .seg-open{background:var(--chart-open)}
:root[data-theme=dark] .seg-late{background:var(--chart-late)}
:root[data-theme=dark] .bar-value small{color:#acb9c6}
:root[data-theme=dark] .chart-note{color:var(--muted)}
:root[data-theme=dark] .chart-table summary{color:var(--blue)}
@media(max-width:780px){:root[data-theme=dark] .selection-bar:not([hidden]){background:#181f26;border-top:1px solid var(--line);box-shadow:0 -8px 18px #12263b14}}
@media(max-width:520px){:root[data-theme=dark] .invoices-panel .invoice-table :is(th,:root[data-theme=dark] td):nth-child(-n+2){background:#181f26}:root[data-theme=dark] .invoices-panel .invoice-table th:nth-child(-n+2){background:#1b2229}:root[data-theme=dark] .invoices-panel .invoice-table :is(th,:root[data-theme=dark] td):nth-child(2){box-shadow:inset -1px 0 0 var(--line)}:root[data-theme=dark] .invoices-panel .invoice-table tr.selected td:nth-child(-n+2){background:#21262e}}
:root[data-theme=dark] .week-toggle,:root[data-theme=dark] .link-button{border:0;background:none;color:inherit}
:root[data-theme=dark] .week-toggle span{color:var(--muted)}
:root[data-theme=dark] .week-toggle small,:root[data-theme=dark] .link-button small{color:var(--muted)}
:root[data-theme=dark] .link-button{color:var(--blue)}
:root[data-theme=dark] .week-supplier small{color:var(--muted)}
:root[data-theme=dark] .due-state{color:var(--muted)}
:root[data-theme=dark] .due-state.soon{color:var(--amber)}
:root[data-theme=dark] .dash-filter .search-box{background:var(--#181f26)}
:root[data-theme=dark] .dash-filter .date-filter{border:0}
:root[data-theme=dark] .health-badge{background:#232b33;color:#aac0d8}
:root[data-theme=dark] .health-badge span{background:#7b8a9a;color:#fff}
:root[data-theme=dark] .health-badge.ok{background:#222b27;color:var(--ok)}
:root[data-theme=dark] .health-badge.ok span{background:var(--ok)}
:root[data-theme=dark] .health-badge.warn{background:#2d2619;color:var(--warn)}
:root[data-theme=dark] .health-badge.warn span{background:#b07a1f}
:root[data-theme=dark] .health-badge.crit{background:#372827;color:var(--crit)}
:root[data-theme=dark] .health-badge.crit span{background:var(--crit)}
:root[data-theme=dark] .health-summary{color:var(--ink)}
:root[data-theme=dark] .cash-need{border-top:1px solid var(--line)}
:root[data-theme=dark] .cash-need-top{color:#a9bacc}
:root[data-theme=dark] .cash-need-top strong{color:var(--ink)}
:root[data-theme=dark] .cash-bar{background:#232b32}
:root[data-theme=dark] .cash-legend{color:#a9bacc}
:root[data-theme=dark] .cash-legend b{color:var(--ink)}
:root[data-theme=dark] .health-item{border-bottom:1px solid #333940}
:root[data-theme=dark] .health-item:last-child{border-bottom:0}
:root[data-theme=dark] .health-dot{background:#8a97a5;color:#fff}
:root[data-theme=dark] .health-item.ok .health-dot{background:var(--ok)}
:root[data-theme=dark] .health-item.warn .health-dot{background:#b07a1f}
:root[data-theme=dark] .health-item.crit .health-dot{background:var(--crit)}
:root[data-theme=dark] .health-label{color:var(--ink)}
:root[data-theme=dark] .health-item small{color:var(--muted)}
:root[data-theme=dark] .health-value strong{color:var(--ink)}
:root[data-theme=dark] .health-item.ok .health-value small{color:var(--ok)}
:root[data-theme=dark] .health-item.warn .health-value small{color:var(--warn)}
:root[data-theme=dark] .health-item.crit .health-value small{color:var(--crit)}
:root[data-theme=dark] .aging-meter{background:#232b32}
:root[data-theme=dark] .aging-meter span{background:var(--age-0)}
:root[data-theme=dark] .aging-legend.tone-1 .aging-meter span{background:var(--age-1)}
:root[data-theme=dark] .aging-legend.tone-2 .aging-meter span{background:var(--age-2)}
:root[data-theme=dark] .aging-legend.tone-3 .aging-meter span{background:var(--age-3)}
:root[data-theme=dark] .aging-legend.tone-4 .aging-meter span{background:var(--age-4)}
:root[data-theme=dark] .aging-legend.tone-5 .aging-meter span{background:var(--age-5)}
:root[data-theme=dark] .overdue-callout{border:1px solid var(--line);background:#1b2229;color:#aebdce}
:root[data-theme=dark] .overdue-callout:hover{background:#202830}
:root[data-theme=dark] .overdue-callout strong{color:var(--ink)}
:root[data-theme=dark] .overdue-callout span{color:var(--blue)}
:root[data-theme=dark] .detail-panel:focus{outline:none}
:root[data-theme=dark] .detail-tabs button{border:1px solid var(--line);background:#181f26;color:#a9bcd1}
:root[data-theme=dark] .detail-tabs button:hover{background:#202830}
:root[data-theme=dark] .detail-tabs button[aria-pressed=true]{background:#232a32;border-color:#3a4655;color:#94c0fd}
:root[data-theme=dark] .detail-body{border:1px solid var(--line)}
:root[data-theme=dark] .detail-body thead th{background:#1d252c}
:root[data-theme=dark] .detail-body .late{color:var(--crit)}
:root[data-theme=dark] .detail-body .soon{color:var(--warn)}
:root[data-theme=dark] .detail-body .empty{color:var(--muted)}
:root[data-theme=dark] .copy-number{border:0;background:none;color:var(--ink)}
:root[data-theme=dark] .copy-number:hover{color:var(--blue)}
:root[data-theme=dark] .health-open{border:0;background:none;color:var(--blue)}
:root[data-theme=dark] .aging-card{color:var(--ink);background:#181f26;border:1px solid var(--line);box-shadow:var(--shadow)}
:root[data-theme=dark] .aging-card::before{background:var(--age-0)}
:root[data-theme=dark] .aging-card.tone-1::before{background:var(--age-1)}
:root[data-theme=dark] .aging-card.tone-2::before{background:var(--age-2)}
:root[data-theme=dark] .aging-card.tone-3::before{background:var(--age-3)}
:root[data-theme=dark] .aging-card.tone-4::before{background:var(--age-4)}
:root[data-theme=dark] .aging-card.tone-5::before{background:var(--age-5)}
:root[data-theme=dark] .aging-card:hover:not(:disabled){background:#1c242b}
:root[data-theme=dark] .aging-card:disabled strong{color:#b2bfcb}
:root[data-theme=dark] .aging-card span{color:#a9bacc}
:root[data-theme=dark] .aging-card small{color:#aeb9c6}
:root[data-theme=dark] .aging-card .aging-meter span{background:var(--age-0)}
:root[data-theme=dark] .aging-card.tone-1 .aging-meter span{background:var(--age-1)}
:root[data-theme=dark] .aging-card.tone-2 .aging-meter span{background:var(--age-2)}
:root[data-theme=dark] .aging-card.tone-3 .aging-meter span{background:var(--age-3)}
:root[data-theme=dark] .aging-card.tone-4 .aging-meter span{background:var(--age-4)}
:root[data-theme=dark] .aging-card.tone-5 .aging-meter span{background:var(--age-5)}
:root[data-theme=dark] .paid-select{color:#abbac8}
:root[data-theme=dark] .paid-select select{border:1px solid var(--line);background:#1b232a;color:var(--ink)}
:root[data-theme=dark] .bar-row.active{background:#232a32}
:root[data-theme=dark] .multi-toggle{border:1px solid var(--line);background:#1b232a;color:#abbac8}
:root[data-theme=dark] .multi-toggle strong{color:var(--ink)}
:root[data-theme=dark] .multi-toggle svg{fill:none;stroke:currentColor}
:root[data-theme=dark] .multi.active .multi-toggle{border-color:#9dbdf0;background:#232a32}
:root[data-theme=dark] .multi-menu{background:var(--#181f26);border:1px solid var(--line);box-shadow:0 8px 24px #18314d1f}
:root[data-theme=dark] .multi-option{color:var(--ink)}
:root[data-theme=dark] .multi-option:hover{background:#202830}
:root[data-theme=dark] .multi-option input{accent-color:var(--blue)}
:root[data-theme=dark] .multi-option:last-child{border-top:1px solid var(--line);color:#abbac8}
:root[data-theme=dark] .chip{border:1px solid var(--line);background:var(--#181f26);color:var(--ink)}
:root[data-theme=dark] .chip:hover{background:#202830}
:root[data-theme=dark] .chip.active{background:var(--blue-fill);border-color:var(--blue);color:#fff}
:root[data-theme=dark] .chip svg{fill:none;stroke:currentColor}
:root[data-theme=dark] .term-chip.cash{border-color:#495f58;background:#222b27;color:#85cfbb}
:root[data-theme=dark] .term-chip.credit{border-color:#5e5342;background:#2d2619;color:#e3b570}
:root[data-theme=dark] .term-chip.cash.active{background:#2f7b69;border-color:#559f8c;color:#fff}
:root[data-theme=dark] .term-chip.credit.active{background:#92681f;border-color:#b28641;color:#fff}
:root[data-theme=dark] .metric-unit{color:#abbac8}
:root[data-theme=dark] .segmented{background:#252c34}
:root[data-theme=dark] .segmented button{border:0;background:none;color:#abbac8}
:root[data-theme=dark] .segmented button.active{background:var(--#181f26);color:var(--ink);box-shadow:0 1px 3px #18314d1a}
:root[data-theme=dark] .line-chart svg{stroke:none}
:root[data-theme=dark] .line-chart .grid{stroke:var(--chart-grid)}
:root[data-theme=dark] .line-chart .axis{fill:#abbac8}
:root[data-theme=dark] .line-chart .line{fill:none;stroke:var(--blue)}
:root[data-theme=dark] .line-chart .dot{fill:var(--blue)}
:root[data-theme=dark] .line-chart .pt rect{fill:transparent}
:root[data-theme=dark] .line-chart .pt circle{fill:var(--white);stroke:var(--blue)}
:root[data-theme=dark] .line-chart .pt .guide{stroke:var(--chart-axis)}
:root[data-theme=dark] .info-button{border:0;background:none;color:#abbac8}
:root[data-theme=dark] .info-button:hover{background:#232a32;color:var(--blue)}
:root[data-theme=dark] .invoice-drawer{border:0;background:#181f26;color:var(--ink);box-shadow:-18px 0 60px #112b4333}
:root[data-theme=dark] .invoice-drawer::backdrop{background:#142c4655}
:root[data-theme=dark] .drawer-head{border-bottom:1px solid var(--line)}
:root[data-theme=dark] .drawer-head p{color:#abbac8}
:root[data-theme=dark] .drawer-totals{background:#1e262d;border-bottom:1px solid var(--line)}
:root[data-theme=dark] .drawer-totals small{color:#abbac8}
:root[data-theme=dark] .drawer-totals .is-zero{color:#abbac8}
:root[data-theme=dark] .drawer-totals .is-paid{color:#85cfbb}
:root[data-theme=dark] .drawer-balance.open{background:#232b33;color:#a7c0df}
:root[data-theme=dark] .drawer-balance.overdue{background:#372827;color:#fca396}
:root[data-theme=dark] .drawer-balance.paid{background:#222b27;color:#85cfbb}
:root[data-theme=dark] .drawer-meta{color:#abbac8}
:root[data-theme=dark] .drawer-section h3{color:var(--blue)}
:root[data-theme=dark] .drawer-card{background:#1e262d;border:1px solid var(--line)}
:root[data-theme=dark] .drawer-card.plain{background:#1b232a}
:root[data-theme=dark] .drawer-field small{color:#abbac8}
:root[data-theme=dark] .drawer-card:not(.plain) .drawer-field strong{background:#181f26;border:1px solid var(--line)}
:root[data-theme=dark] .drawer-text{color:#a7c0df}
:root[data-theme=dark] .drawer-text small{color:#abbac8}
:root[data-theme=dark] .drawer-lines td small{color:#abbac8}
:root[data-theme=dark] .drawer-sum{border:1px solid var(--line);background:#1b232a}
:root[data-theme=dark] .drawer-sum>div{color:#abbac8;border-bottom:1px solid var(--line)}
:root[data-theme=dark] .drawer-sum>div:last-child{border-bottom:0}
:root[data-theme=dark] .drawer-sum strong{color:var(--ink)}
:root[data-theme=dark] .drawer-sum .total span,:root[data-theme=dark] .drawer-sum .total strong{color:var(--ink)}
:root[data-theme=dark] .drawer-sum .balance.overdue span{color:#fca396}
:root[data-theme=dark] .drawer-sum .balance.overdue strong{background:#372827;color:#fca396}
:root[data-theme=dark] .drawer-sum .balance.open span{color:#a7c0df}
:root[data-theme=dark] .drawer-sum .balance.paid span,:root[data-theme=dark] .drawer-sum .balance.paid strong{color:#85cfbb}
:root[data-theme=dark] .drawer-cert small{color:#abbac8}
:root[data-theme=dark] .drawer-cert.voided{color:#fca396}
:root[data-theme=dark] .key-on-time,:root[data-theme=dark] .stack-bar .key-on-time{background:var(--chart-paid)}
:root[data-theme=dark] .key-late-1,:root[data-theme=dark] .stack-bar .key-late-1{background:var(--age-1)}
:root[data-theme=dark] .key-late-2,:root[data-theme=dark] .stack-bar .key-late-2{background:var(--age-3)}
:root[data-theme=dark] .key-late-3,:root[data-theme=dark] .stack-bar .key-late-3{background:var(--age-5)}
:root[data-theme=dark] .discipline-heading small{color:#abbac8}
:root[data-theme=dark] .stack-col:hover .stack-bar,:root[data-theme=dark] .stack-col:focus-visible .stack-bar{box-shadow:0 0 0 2px #246fe433}
:root[data-theme=dark] .stack-value{color:#85cfbb}
:root[data-theme=dark] .stack-bar{background:var(--chart-grid)}
:root[data-theme=dark] .term-card{border:1px solid var(--line);background:#1b232a}
:root[data-theme=dark] .term-top{color:#abbac8}
:root[data-theme=dark] .term-top strong{color:var(--ink)}
:root[data-theme=dark] .term-meter{background:#523627}
:root[data-theme=dark] .term-meter span{background:var(--chart-paid)}
:root[data-theme=dark] .term-card dt{color:#abbac8}
:root[data-theme=dark] .exec-figures>div{border-left:3px solid var(--line)}
:root[data-theme=dark] .exec-figures dt{color:#abbac8}
:root[data-theme=dark] .exec-figures small{color:#abbac8}
:root[data-theme=dark] .exec-tile{background:#181f26;border:1px solid var(--line);border-top:4px solid #4a515a;box-shadow:var(--shadow)}
:root[data-theme=dark] .exec-tile.ok{border-top-color:var(--ok)}
:root[data-theme=dark] .exec-tile.warn{border-top-color:#ba832b}
:root[data-theme=dark] .exec-tile.crit{border-top-color:var(--crit)}
:root[data-theme=dark] .exec-tile.info{border-top-color:var(--blue)}
:root[data-theme=dark] .exec-tile-top{color:#b4c6d9}
:root[data-theme=dark] .exec-tile p{color:#abbac8}
:root[data-theme=dark] .exec-trend small{color:#abbac8}
:root[data-theme=dark] .spark{stroke:none}
:root[data-theme=dark] .spark polyline{fill:none}
:root[data-theme=dark] .spark .invoiced{stroke:var(--chart-open)}
:root[data-theme=dark] .spark .paid,:root[data-theme=dark] .spark .on-time{stroke:var(--chart-paid)}
:root[data-theme=dark] .exec-scale{color:#abbac8;border-top:1px dashed var(--line)}
:root[data-theme=dark] .exec-pill{background:#232b33;color:#aac0d8}
:root[data-theme=dark] .exec-pill.ok{background:#222b27;color:var(--ok)}
:root[data-theme=dark] .exec-pill.warn{background:#2d2619;color:var(--warn)}
:root[data-theme=dark] .exec-pill.crit{background:#372827;color:var(--crit)}
:root[data-theme=dark] .exec-pill.info{background:#232a32;color:#97bffd}
:root[data-theme=dark] .exec-actions li{border:1px solid var(--line);background:#1b232a}
:root[data-theme=dark] .exec-actions small{color:#abbac8}
:root[data-theme=dark] .col-bar.previous,:root[data-theme=dark] .key-previous{background:var(--chart-axis)}
:root[data-theme=dark] .section-heading small{color:#abbac8}
:root[data-theme=dark] .dependency-figures>div{border:1px solid var(--line);background:#1b232a}
:root[data-theme=dark] .dependency-figures dt{color:#abbac8}
:root[data-theme=dark] .spark .late{stroke:var(--chart-late)}
:root[data-theme=dark] .spark .previous{stroke:var(--chart-axis)}
:root[data-theme=dark] .control-card{background:#181f26;border:1px solid var(--line);box-shadow:var(--shadow);color:var(--ink)}
:root[data-theme=dark] .control-card:hover{background:#1c242b}
:root[data-theme=dark] .control-card.active{border-color:var(--blue);box-shadow:0 0 0 2px #246fe426}
:root[data-theme=dark] .control-card-top{color:#b4c6d9}
:root[data-theme=dark] .control-card small{color:#abbac8}
:root[data-theme=dark] .control-table .group-row td{background:#1e262d}
:root[data-theme=dark] .control-table .group-row small{color:#abbac8}
:root[data-theme=dark] .mono-cell{color:#b4c6d9}
:root[data-theme=dark] .role-tag{background:#232b33;color:#a6c0e1}
:root[data-theme=dark] .role-tag.role-emision{background:#222b36;color:#97c0fb}
:root[data-theme=dark] .role-tag.role-supervisor{background:#2e2a38;color:#c1b0ff}
:root[data-theme=dark] .role-tag.role-administrador{background:#19364f;color:#fff}
:root[data-theme=dark] .role-tag.role-personalizado,:root[data-theme=dark] .role-tag.role-sin_rol{background:#2d2619;color:#e1b579}
:root[data-theme=dark] .row-inactive td{color:#aeb9c6}
:root[data-theme=dark] .row-inactive .invoice-number{color:#aebccc}
:root[data-theme=dark] .user-dialog fieldset{border:0}
:root[data-theme=dark] .user-dialog legend{color:#adbfdc}
:root[data-theme=dark] .user-fields label{color:#a6bad0}
:root[data-theme=dark] .user-fields small{color:#adb9c8}
:root[data-theme=dark] .user-fields input{border:1px solid var(--line);color:var(--ink);background:#1b232a}
:root[data-theme=dark] .user-fields input[readonly]{background:#252c34;color:#b5c3d2}
:root[data-theme=dark] .role-option{border:1px solid var(--line)}
:root[data-theme=dark] .role-option:has(input:checked){border-color:var(--blue);background:#21262e}
:root[data-theme=dark] .role-option input{accent-color:var(--blue)}
:root[data-theme=dark] .role-option strong{color:var(--ink)}
:root[data-theme=dark] .role-option small{color:#aebccc}
:root[data-theme=dark] .user-active{color:#adbfdc}
:root[data-theme=dark] .user-active small{color:#aebccc}
:root[data-theme=dark]{color-scheme:dark}
/* El logo es un PNG pensado para fondo blanco: en el login conserva una placa clara. */
:root[data-theme=dark] .login-logo{background:#fff;border-radius:7px;padding:6px 10px;box-sizing:content-box}
