@media screen {
html[data-nuvile-theme="dark"]{color-scheme:dark;--nuvile-primary:#256792;--nuvile-primary-hover:#307ca9;--nuvile-ink:#e6edf5;--nuvile-muted:#bacbdd;--nuvile-border:#40515f;--nuvile-paper:#121a21;--nuvile-surface:#1c262f;--nuvile-soft:#223344;--nuvile-focus:#83c9cf;--nuvile-accent-soft:#173b55;background:#121a21;color:#e6edf5}
html[data-nuvile-theme="dark"] body,html[data-nuvile-theme="dark"] #workspace{background:#121a21;color:#e6edf5}
html[data-nuvile-theme="dark"] :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),textarea,select){background-color:#e2edf4!important;color:#182f40!important;border-color:#879fac!important;caret-color:#fff}
html[data-nuvile-theme="dark"] :is(input,textarea)::placeholder{color:#adbed0!important;opacity:1}
html[data-nuvile-theme="dark"] :is(input,textarea,select):disabled{color:#acb9c8!important;background-color:#25313d!important;opacity:1}
html[data-nuvile-theme="dark"] :is(button,a,input,textarea,select):focus-visible{outline:2px solid #83c9cf!important;outline-offset:2px}
html[data-nuvile-theme="dark"] :is(input[type=checkbox],input[type=radio]){accent-color:#64d5bd}
html[data-nuvile-theme="dark"] :is(button,.button).primary{background:#245d85!important;color:#fff!important;border-color:#80b5d9!important}
html[data-nuvile-theme="dark"] :is(button,.button).outline{background:#192c3c!important;color:#d5ecff!important;border-color:#506473!important}
html[data-nuvile-theme="dark"] button:disabled{opacity:.65}
html[data-nuvile-theme="dark"] :is(svg[stroke],svg path[stroke]){stroke:currentColor}
/* Use the original inverse artwork: white letters, original green connector. */
html[data-nuvile-theme="dark"] img[src*="nuvile-wordmark.svg"]{content:url("/static/nuvile-wordmark-inverse.svg");filter:none}
html[data-nuvile-theme="dark"] img[src*="nuvile-wordmark-inverse.svg"],html[data-nuvile-theme="dark"] img[src*="nuvile-symbol.svg"]{filter:none}
html[data-nuvile-theme="dark"] [style*="color:"]:not(svg):not(path):not(canvas){color:#e6edf5!important}
html[data-nuvile-theme="dark"] [style*="background-color:"]:not(canvas){background-color:#223344!important}
html[data-nuvile-theme="dark"] :is(.error,[role=alert]){color:#ffb4bc}
html[data-nuvile-theme="dark"] :is(.nv-entry-transition,.nv-entry-halo){background:#121a21!important}
html[data-nuvile-theme="dark"] .nv-entry-center p{color:#bacbdd!important}
html[data-nuvile-theme="dark"] ::selection{background:#356b8c;color:#fff}
}
@media screen {
html[data-nuvile-theme="dark"] [style*="background:"]:not(svg):not(path):not(canvas){background-color:#223344!important}
html[data-nuvile-theme="dark"] :is(svg,path)[fill="black"],html[data-nuvile-theme="dark"] :is(svg,path)[fill="#000"],html[data-nuvile-theme="dark"] :is(svg,path)[fill="#000000"]{fill:currentColor}
html[data-nuvile-theme="dark"] :is(button,a)[aria-selected="true"],html[data-nuvile-theme="dark"] .menu-link.selected{background:#285675!important;color:#fff!important;border-color:#83c9cf!important}
}

@media screen {
/* Search controls remain visibly distinct from ordinary editable amounts. */
html[data-nuvile-theme="dark"] body input:is(#nv-home-query,[type="search"],[data-search],[id*="search"],[id="nv-home-query"],[placeholder^="Buscar"],[placeholder^="Nombre,"],[placeholder^="Nombre o código"]):not(:disabled){background:#e2edf4!important;color:#182f40!important;border-color:#879fac!important;caret-color:#fff;color-scheme:dark}
html[data-nuvile-theme="dark"] body input:is(#nv-home-query,[type="search"],[data-search],[id*="search"],[id="nv-home-query"],[placeholder^="Buscar"],[placeholder^="Nombre,"],[placeholder^="Nombre o código"])::placeholder{color:#a9bac7!important;opacity:1}
html[data-nuvile-theme="dark"] .sales-window{--nv-document-panel:#223344;--nv-document-grid:#1c262f;--nv-document-heading:#293e50;--nv-document-border:#40515f;--nv-document-background:#1c262f}
html[data-nuvile-theme="dark"] .sales-window :is(.article-wide-button,.line-article-search button,.table-footer,.edit-table tfoot){color:#dce5ec!important}
}

@media screen {
html[data-nuvile-theme="dark"] :is(dialog,[role="dialog"]){color:#e6edf5;background-color:#1c262f;border-color:#506473}
html[data-nuvile-theme="dark"] :is(dialog,[role="dialog"]) :is(.modal-content,.confirmation-content,.dialog-body){background-color:#1c262f;color:#e6edf5}
html[data-nuvile-theme="dark"] :is(input,textarea,select):read-only{border-color:#506473}
html[data-nuvile-theme="dark"] :is(button,a):focus-visible{outline:2px solid #83c9cf!important;outline-offset:2px}
html[data-nuvile-theme="dark"] :is(.error,.modal-errors,[role="alert"]){color:#ffb4bc!important}
html[data-nuvile-theme="dark"] :is(.success,.status-success){color:#86e3bc}
}

@media screen {
html[data-nuvile-theme="dark"] #window-tasks button{background:#293e50!important;color:#e6edf5!important;border-color:#506473!important}
html[data-nuvile-theme="dark"] #window-tasks button.window-task-active{background:#285675!important;color:#fff!important;border-color:#83c9cf!important}
}

@media screen {
/* Neutral text and restrained teal accents keep the start page calm in dark mode. */
html[data-nuvile-theme="dark"] body #nv-ai-dock #nv-home-query,
html[data-nuvile-theme="dark"] body #nv-home-query{background:#e2edf4!important;color:#182f40!important;border-color:#879fac!important;caret-color:#fff;color-scheme:dark}
html[data-nuvile-theme="dark"] body #nv-ai-dock #nv-home-query::placeholder,
html[data-nuvile-theme="dark"] body #nv-home-query::placeholder{color:#a9bac7!important;opacity:1}
html[data-nuvile-theme="dark"] body :is(.nv-home,.nv-home-main,.nv-home-ai-search){color:#e6edf3}
html[data-nuvile-theme="dark"] body .nv-home :is(h1,h2,h3){color:#edf2f6!important}
html[data-nuvile-theme="dark"] body .nv-home :is(.nv-home-foot,.nv-home-cardhead>small){color:#a9b9c6!important}
html[data-nuvile-theme="dark"] body .nv-home :is(.nv-home-link,.nv-home-ideas>a){color:#91c9cd!important}
html[data-nuvile-theme="dark"] body .nv-home-quick button{background:#244450!important;border-color:#41636e!important;color:#f2f7fa!important}
html[data-nuvile-theme="dark"] body .nv-home-quick button:hover{background:#2c5662!important;border-color:#79b7bd!important}
html[data-nuvile-theme="dark"] body .nv-home-quick button span{background:#315865!important;color:#c8eaf0!important}
html[data-nuvile-theme="dark"] body .nv-home-quick button b{color:#f2f7fa!important}
html[data-nuvile-theme="dark"] body :is(.nv-home-ai-search,#nv-ai-dock) button[type=submit]{background:#2b626d!important;border-color:#4d8993!important;color:#fff!important}
}

@media screen {
/* Editable surfaces stand apart from panels; read-only and disabled data stay subdued. */
html[data-nuvile-theme="dark"] body :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),textarea,select):not(:disabled):not([readonly]){background-color:#e2edf4!important;color:#182f40!important;border-color:#879fac!important;box-shadow:inset 0 1px 2px #00000024}
html[data-nuvile-theme="dark"] body :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),textarea,select):is([readonly],:disabled){background-color:#202c36!important;color:#b5c2cc!important;border-color:#4a5b68!important;box-shadow:none}
html[data-nuvile-theme="dark"] body :is(input,textarea,select):not(:disabled):not([readonly]):focus{border-color:#a2d7dc!important;outline:2px solid #83c9cf!important;outline-offset:2px}
}

@media screen {
/* Report charts keep readable labels and distinct current/comparison series. */
html[data-nuvile-theme="dark"] :is(.sales-analysis-window,.nv-chart-zoom) svg text{fill:#b7c3cd}
html[data-nuvile-theme="dark"] :is(.sales-analysis-window,.nv-chart-zoom) svg path[stroke="#1c7386"]{stroke:#77c8d2}
html[data-nuvile-theme="dark"] :is(.sales-analysis-window,.nv-chart-zoom) svg path[stroke="#9aabb5"]{stroke:#a3b3bf}
html[data-nuvile-theme="dark"] :is(.sales-analysis-window,.nv-chart-zoom) svg line:is([stroke="#e6ebef"],[stroke="#e3e8ed"]){stroke:#40515f}
html[data-nuvile-theme="dark"] :is(.sales-analysis-window,.nv-chart-zoom) svg rect[fill="#367e91"]{fill:#64a7b8}
}

/* Shared workspace palette: service boards retain their state accents. */
@media screen {
html[data-nuvile-theme="dark"]{--nuvile-primary:#39c8b0;--nuvile-primary-hover:#68ddc8;--nuvile-border:#587183;--nuvile-paper:#14222d;--nuvile-surface:#1c2d3a;--nuvile-soft:#2b4050}
html[data-nuvile-theme="dark"] #workspace{background:#14222d!important}
html[data-nuvile-theme="dark"] :is(.sales-window,dialog){background-color:#14222d!important;color:#f3f7fa}
html[data-nuvile-theme="dark"] :is(.sales-window,dialog) :is(.window-title,.dialog-head){background:#165264!important;color:#f3f7fa!important}
html[data-nuvile-theme="dark"] .sales-window{--nv-document-panel:#1c2d3a;--nv-document-grid:#2b4050;--nv-document-heading:#365568;--nv-document-border:#587183;--nv-document-background:#14222d}
html[data-nuvile-theme="dark"] :is(.sales-window,dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not(:disabled),select:not(:disabled),textarea:not(:disabled)){background-color:#e2edf4!important;color:#182f40!important;border-color:#95b8ce!important;caret-color:#182f40;color-scheme:light}
html[data-nuvile-theme="dark"] :is(.sales-window,dialog) :is(input,textarea)::placeholder{color:#496173!important}
html[data-nuvile-theme="dark"] :is(.sales-window,dialog) :is(button,.button).primary{background:#39c8b0!important;color:#102831!important;border-color:#39c8b0!important}
html[data-nuvile-theme="dark"] :is(.sales-window,dialog) :is(.card,.tx-card,.account-card,.customer-card,.report-filters){background-color:#1c2d3a!important;border-color:#587183!important}
html[data-nuvile-theme="dark"] :is(.sales-window,dialog) table :is(th,td){border-color:#587183}
html[data-nuvile-theme="dark"] :is(.sales-window,dialog) table th{background:#365568!important;color:#f3f7fa!important}
html[data-nuvile-theme="dark"] :is(.sales-window,dialog) table tbody td{background-color:#2b4050;color:#f3f7fa}
html[data-nuvile-theme="dark"] :is(.sales-window,dialog) table input:not(:disabled){background:#e2edf4!important;color:#182f40!important}
html[data-nuvile-theme="dark"] #main-sidebar{background:#14222d!important;border-color:#587183!important}
html[data-nuvile-theme="dark"] #main-sidebar :is(.menu-link.selected,.menu-link:hover){background:#205359!important;color:#f3f7fa!important}
html[data-nuvile-theme="dark"] :is(.home-access-card,.home-resume-card,.smart-home-access,.home-shortcut){background:#2b4050!important;color:#f3f7fa!important;border-color:#587183!important}
}

@media screen{
html[data-nuvile-theme="dark"] body #nv-ai-dock #nv-home-query,html[data-nuvile-theme="dark"] body #nv-home-query,html[data-nuvile-theme="dark"] body input[type=search]{background:#e2edf4!important;color:#182f40!important;caret-color:#182f40;color-scheme:light}
html[data-nuvile-theme="dark"] body #nv-ai-dock #nv-home-query::placeholder,html[data-nuvile-theme="dark"] body #nv-home-query::placeholder{color:#496173!important}
html[data-nuvile-theme="dark"] :is(.nv-home-access,.nv-home-resume,.nv-home-shortcut){background:#2b4050!important;color:#f3f7fa!important;border-color:#587183!important}
}

@media screen{html[data-nuvile-theme="dark"] body #workspace #nv-home-query,html[data-nuvile-theme="dark"] body #workspace #nv-ai-dock #nv-home-query{background:#e2edf4!important;color:#182f40!important;caret-color:#182f40;color-scheme:light}}

@media screen{html[data-nuvile-theme="dark"] body main input[data-search]:not(:disabled),html[data-nuvile-theme="dark"] body main input[type=search]:not(:disabled){background:#e2edf4!important;color:#182f40!important;border-color:#95b8ce!important;color-scheme:light}}
