/* Shared color preference. Typography and original brand geometry remain unchanged. */
.vendra-theme-control{display:inline-flex;align-items:center;gap:7px;flex-shrink:0;font-size:11px;color:var(--muted,var(--text-2));line-height:1.4}.vendra-theme-control select{font:inherit;font-size:12px;font-weight:600;min-height:38px;max-width:110px;min-width:92px;padding:8px 9px;border:1px solid var(--line);border-radius:5px;background:var(--white,var(--surface));color:var(--ink,var(--text));cursor:pointer}.vendra-theme-control select:focus-visible{outline:3px solid var(--green,var(--verde));outline-offset:3px}
html[data-vendra-theme=light]{color-scheme:light;--bg:#f5f4f0;--surface:#fff;--surface-2:#f1f2ec;--elev:#fff;--text:#141918;--text-2:#59635e;--text-3:#67716b;--line:#d6ded4;--line-2:#c6ccc3;--coral:#b74439;--verde:#0e9f6e;--verde-2:#08724f;--verde-bg:#e5f2e9;--coral-bg:#fff0ec;--amber:#87651d;--amber-bg:#f5edd9;--full:#176486;--full-bg:#e3f0f5}
html[data-vendra-theme=dark]{color-scheme:dark;--ink:#e8eee8;--muted:#a8b5ac;--paper:#111815;--white:#19231e;--line:#344239;--green:#27ba87;--green-dark:#6bdfb1;--negative:#ff9b89;--bg:#111815;--surface:#19231e;--surface-2:#223028;--elev:#25352c;--line-2:#4b5c50;--text:#e8eee8;--text-2:#b2c0b6;--text-3:#9eafa3;--verde:#27ba87;--verde-2:#75dfb5;--verde-bg:#173c2d;--coral:#ff9b89;--coral-bg:#402720;--amber:#ebcb85;--amber-bg:#3a3322;--full:#8acde8;--full-bg:#1c3540}
html[data-vendra-theme=dark] body.workbench{background:var(--paper);color:var(--ink)}
html[data-vendra-theme=dark] .sidebar,html[data-vendra-theme=dark] .utility{background:#151f1a;border-color:var(--line)}
html[data-vendra-theme=dark] .brand span{color:#edf3ee}
html[data-vendra-theme=dark] #nav button{color:#afbeb3}html[data-vendra-theme=dark] #nav button.active{background:#204334;color:#8de9be}html[data-vendra-theme=dark] #nav button:hover,html[data-vendra-theme=dark] .icon-button:hover,html[data-vendra-theme=dark] .operation-grid button:hover{background:#283a2e;color:#f1f6f1}
html[data-vendra-theme=dark] .panel,html[data-vendra-theme=dark] .data-table,html[data-vendra-theme=dark] .detail-metrics,html[data-vendra-theme=dark] .settings-card,html[data-vendra-theme=dark] .period-control,html[data-vendra-theme=dark] .page-actions .button,html[data-vendra-theme=dark] .refresh,html[data-vendra-theme=dark] .filter-bar label{background:var(--white);color:var(--ink);border-color:var(--line)}
html[data-vendra-theme=dark] .data-table th,html[data-vendra-theme=dark] .table-note,html[data-vendra-theme=dark] .table-wrap:before{background:#1e2c23;color:#b5c3b8;border-color:var(--line)}html[data-vendra-theme=dark] .data-table td,html[data-vendra-theme=dark] .detail-list li,html[data-vendra-theme=dark] .chart-bottom{border-color:var(--line)}html[data-vendra-theme=dark] .data-table tbody tr:hover{background:#24362b}
html[data-vendra-theme=dark] .product-initial{background:#293b2e;border-color:#435445;color:#b8cdbb}
html[data-vendra-theme=dark] .chart-key,html[data-vendra-theme=dark] .chart-key button,html[data-vendra-theme=dark] .chart-unit,html[data-vendra-theme=dark] .receipt-intro,html[data-vendra-theme=dark] .receipt-note,html[data-vendra-theme=dark] .product-sub,html[data-vendra-theme=dark] .section-index,html[data-vendra-theme=dark] .nav-label,html[data-vendra-theme=dark] .chart-bottom,html[data-vendra-theme=dark] .chart-bottom button,html[data-vendra-theme=dark] .date-edges,html[data-vendra-theme=dark] .text-button,html[data-vendra-theme=dark] .operation-label,html[data-vendra-theme=dark] .operation-grid small,html[data-vendra-theme=dark] .cost-state,html[data-vendra-theme=dark] .app-footer{color:#aebfb2}
html[data-vendra-theme=dark] .chart-mode{background:#13231a;border-color:#405145}html[data-vendra-theme=dark] .chart-mode button{color:#b3c4b9}html[data-vendra-theme=dark] .chart-mode button[aria-pressed=true]{background:#355742;color:#f1fff5}
html[data-vendra-theme=dark] .chart-svg text{fill:#b3c2b7}html[data-vendra-theme=dark] .chart-grid{stroke:#34463a}html[data-vendra-theme=dark] .chart-zero{stroke:#6c8271}html[data-vendra-theme=dark] .chart-path{stroke:#5ed6a4}html[data-vendra-theme=dark] .chart-sales{stroke:#a7c6b1}html[data-vendra-theme=dark] .chart-dot{fill:#19231e;stroke:#5ed6a4}html[data-vendra-theme=dark] .chart-negative{stroke:#ff9b89}html[data-vendra-theme=dark] .chart-point.inspected circle{fill:#5ed6a4;stroke:#e3ffee}html[data-vendra-theme=dark] .chart-svg rect[fill="#be3c36"]{fill:#ff9b89}
html[data-vendra-theme=dark] .receipt{background:#223126;border-color:#42523f}html[data-vendra-theme=dark] .receipt:after{background:linear-gradient(135deg,#223126 25%,transparent 25%) -4px 0/8px 8px,linear-gradient(225deg,#223126 25%,transparent 25%) -4px 0/8px 8px}html[data-vendra-theme=dark] .receipt-row span{color:#bfccba}html[data-vendra-theme=dark] .receipt-total strong,html[data-vendra-theme=dark] .positive{color:#75dfb5}html[data-vendra-theme=dark] .receipt-top,html[data-vendra-theme=dark] .receipt-total,html[data-vendra-theme=dark] .receipt-row.income{border-color:#617159}
html[data-vendra-theme=dark] .review-strip{background:#3a3322;border-color:#c5a25f;color:#f0dfb9}html[data-vendra-theme=dark] .review-strip svg{color:#e4c37f}html[data-vendra-theme=dark] .review-strip button{color:#f0dfb9}html[data-vendra-theme=dark] .scope-note{background:#253a2a;border-color:#6d986d;color:#c5d9c2}
html[data-vendra-theme=dark] .workbench input,html[data-vendra-theme=dark] .workbench select,html[data-vendra-theme=dark] .workbench textarea,html[data-vendra-theme=dark] dialog select{background:#16221a;color:#e8eee8;border-color:#56694f}html[data-vendra-theme=dark] input::placeholder,html[data-vendra-theme=dark] textarea::placeholder{color:#9aad99}html[data-vendra-theme=dark] .cost-input[aria-invalid=true]{background:#422923;color:#ffbdaf;border-color:#ff9b89}html[data-vendra-theme=dark] .workbench input:disabled{color:#a4b5a5;background:#243029}
html[data-vendra-theme=dark] dialog{background:#19231e;color:#e8eee8;border-color:#4a5c4c}html[data-vendra-theme=dark] dialog p{color:#afc0b3}html[data-vendra-theme=dark] .button:not(.primary):hover{background:#2c4232;color:#f0fff3}html[data-vendra-theme=dark] .button.primary{background:#147854;border-color:#388e6b;color:#fff}html[data-vendra-theme=dark] .button.primary:hover{background:#1a9065}
/* The original real-client shell uses the same preference through its tokens. */
html[data-vendra-theme=light] .side,html[data-vendra-theme=light] .topbar{background:var(--surface);color:var(--text)}html[data-vendra-theme=light] .btn-ghost{color:var(--text);border-color:var(--line-2)}html[data-vendra-theme=light] .tb-logo,html[data-vendra-theme=light] .side .brand{color:var(--text)}html[data-vendra-theme=light] .nav a{color:var(--text-2)}html[data-vendra-theme=light] .nav a.on{color:var(--verde-2)}
#informe-print{color-scheme:light;--ink:#17221c;--paper:#fff;--white:#fff;--line:#d8dfd6;--muted:#59635e;background:#fff;color:#17221c}
@media(max-width:620px){.workbench .utility{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 8px;min-height:72px;height:auto;padding-block:8px}.workbench .utility-left{grid-column:1;grid-row:1;min-width:0}.workbench .utility-right{display:contents}.workbench .vendra-theme-control{grid-column:2;grid-row:1;gap:0}.workbench .vendra-theme-control>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.workbench .vendra-theme-control select{min-width:87px;max-width:95px;min-height:38px;font-size:12px}.workbench .demo-label{grid-column:1/-1;grid-row:2;justify-self:end;font-size:10px;padding:3px 0 0}.tb-headrow .vendra-theme-control>span{display:none}.tb-headrow .vendra-theme-control select{min-width:85px;max-width:100px}}
@media(prefers-reduced-motion:reduce){.vendra-theme-control,.vendra-theme-control select{transition:none!important}}
@media print{.vendra-theme-control{display:none!important}html[data-vendra-theme]{color-scheme:light;--ink:#17221c;--paper:#fff;--white:#fff;--line:#d8dfd6;--muted:#59635e}#informe-print{background:#fff!important;color:#17221c!important}}
