.theme-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;width:auto!important;min-height:42px;margin:6px 0;padding:9px 14px!important;border:1px solid #adc4ce!important;border-radius:10px;background:#eff5f7!important;color:#183d4b!important;font:13px Tahoma,Arial,sans-serif!important;cursor:pointer;white-space:nowrap}.theme-toggle:focus-visible{outline:3px solid #558cf0;outline-offset:3px}
@media screen{
html[data-theme=dark]{color-scheme:dark;background:#101821;--canvas:#101821!important;--ink:#edf3f8!important;--accent:#226b63!important;--soft:#253946!important;--line:#415362!important;color:#edf3f8}
html[data-theme=dark] body{background:#101821!important;color:#edf3f8!important}
html[data-theme=dark] .form-footer{background:#1b2835!important;border-color:#415362!important;color:#edf3f8!important}
html[data-theme=dark] :is(body>header,.sidebar,.design-lab,.toolbar,.stats article,.form-card,.job-card,.empty-state,.report-filters,.followup-controls,.manager-panels>article,.access-user,.system-issues article,.login,dialog,.sheet,main:not([id]):not(.page):not(:has(#home))){background:#1b2835!important;color:#edf3f8!important;border-color:#415362!important}
html[data-theme=dark] :is(h1,h2,h3,h4,label,legend,summary,.job-top b,.job-customer b,.job-device b,.section-title,.design-heading b,.system-grid p,.system-grid li,.partner-box p,#partnerForm>p,.activity-item strong,.receipt-grid b,.field strong){color:#edf3f8!important}
html[data-theme=dark] :is(small,.help,.muted,.account-help,.dashboard-scope,.activity-meta,.activity-item i,.design-heading span,.design-lab p,.welcome p,.side-brand small,.sidebar>p,.card-stage>span,.card-notes label,.quick-fields td label,.manager-stats em,.customer-note-editor p,.support p,.footer,.field small,.status span){color:#b8c9d7!important}
html[data-theme=dark] :is(button,.file,input,textarea,select,.report-filter-grid input,.report-filter-grid select,.report-sort select,.comm-tools button,.btn.call){background:#243544!important;color:#edf3f8!important;border-color:#566d80!important}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#afc2d1!important;opacity:1}
html[data-theme=dark] :is(input,select,textarea){caret-color:#fff;accent-color:#6ee0c5}
html[data-theme=dark] :is(button,.file):hover{background:#344c5f!important}
html[data-theme=dark] :is(button,input,select,textarea,a):focus-visible{outline:3px solid #8ec4ff!important;outline-offset:2px}
html[data-theme=dark] button:disabled{opacity:1!important;background:#293540!important;color:#a6b6c4!important;border-color:#4b5b69!important;cursor:not-allowed}
html[data-theme=dark] :is(.primary,.action-deliver,.btn.wa,.comm-wa,.sidebar nav button.active,.design-options button[aria-pressed=true],.login form button){background:#226b63!important;color:#fff!important;border-color:#57ac9c!important}
html[data-theme=dark] :is(.primary,.action-deliver,.btn.wa,.comm-wa):hover{background:#2d8175!important}
html[data-theme=dark] :is(.action-copy,.partner-tag,.access-badge,.system-ok,.state.paid,.card-stage.paid select){background:#203f39!important;color:#a2f0cf!important;border-color:#4b8978!important}
html[data-theme=dark] :is(.test,.quote-line,.profit,.due-warning,.system-warn,.followup-badge,.followup-home-alert,.release-ui-reminder,.action-invoice,.btn.download,.state){background:#49391c!important;color:#ffdda1!important;border-color:#a88342!important}
html[data-theme=dark] :is(.followup-installment,.followup-balance,.money-help-error){background:#4a2b2d!important;color:#ffc3bc!important;border-color:#995b56!important}
html[data-theme=dark] :is(.followup-stale,.followup-contact){background:#34344e!important;color:#dbd6ff!important}
html[data-theme=dark] :is(.job-number b,.side-brand b,body>header b,.stats strong,.manager-panels h3,#message,.status b){color:#85e1d0!important}
html[data-theme=dark] :is(#newStatus,#readyStatus,#accountStatus,#partnerStatus,.access-status,.report-filter-error,[role=alert],.system-issues b,.partner-warning){color:#ffcf9d!important}
html[data-theme=dark] :is(.card-notes,.quick-fields,.account-help,.partner-box,#installmentFields,.report-actions,.activity-item,.customer-note-public,.customer-note,.comm-tools,.comm-choices,.money-help,.support,.job-device){background:#202f3b!important;border-color:#455d6c!important;color:#e2edf4!important}
html[data-theme=dark] .card-notes td,html[data-theme=dark] .quick-fields td{background:transparent!important;color:#e2edf4!important;border-color:#455d6c!important}
html[data-theme=dark] .card-notes td[data-field=customerNote]{background:#203c38!important;border-color:#4b8978!important}
html[data-theme=dark] :is(.card-notes .cell,.quick-fields .cell){background:transparent!important;color:#e2edf4!important}
html[data-theme=dark] :is(.customer-note-public b,.customer-note>b,.money-help b){color:#a2f0cf!important}
html[data-theme=dark] :is(.table-wrap,.report-table-wrap){background:#1b2835!important;border-color:#455d6c!important}
html[data-theme=dark] :is(th,th:first-child){background:#293d4d!important;color:#eaf1f7!important;border-color:#4a6172!important}
html[data-theme=dark] :is(td,td:first-child,.report-table tr:nth-child(even)){background:#1b2835!important;color:#eaf1f7!important;border-color:#3d5262!important}
html[data-theme=dark] td .cell{background:transparent!important;color:#eaf1f7!important}
html[data-theme=dark] td .cell:hover{background:#304b59!important;box-shadow:inset 0 0 0 1px #719cb2!important}
html[data-theme=dark] td.editing{background:#203c38!important}
html[data-theme=dark] :is(.activity-item p span,.activity-item p span:last-child){background:#2c4250!important;color:#eaf1f7!important}
html[data-theme=dark] .manager-panels p>i{background:#435866!important}
html[data-theme=dark] .manager-panels p>i b{background:#80d9bd!important}
html[data-theme=dark] .nav-count{background:#993e30;color:#fff}
html[data-theme=dark] a{color:#9dccff}
html[data-theme=dark] .theme-toggle{background:#f3db9b!important;color:#28323b!important;border-color:#f3db9b!important}
html[data-theme=dark] dialog::backdrop{background:#000b}
html[data-theme=dark] :is(.field,.status){background:#202f3b!important;border-color:#455d6c!important}
html[data-theme=dark] .hero{background:#16313d!important}
html[data-theme=dark] .sheet .footer b{color:#edf3f8!important}
html[data-theme=dark] .invoice .footer{background:#edf3f4!important;color:#203a43!important}
html[data-theme=dark] .tools .btn.back{background:#243544!important;color:#edf3f8!important;border-color:#566d80!important}
html[data-theme=dark] .rating input:checked+span{background:#e1c26f!important;color:#172630!important}
/* Documents remain white paper, including their dark text and table cells. */
html[data-theme=dark] :is(.print-document,.invoice){background:#fff!important;color:#203a43!important;color-scheme:light}
html[data-theme=dark] :is(.print-document,.invoice) :is(div,p,span,b,strong,small,td,th,h1,h2,h3,label,footer,section){color:#203a43!important;border-color:#cddde2!important}
html[data-theme=dark] :is(.print-document,.invoice) :is(td,th,.receipt-grid>div){background:#fff!important}
html[data-theme=dark] :is(.print-document,.invoice) .customer-note-public{background:#f0f9f5!important;color:#24493d!important}
html[data-theme=dark] .invoice .brandbar{background:#e9f3f2!important}
html[data-theme=dark] .invoice .stamp,html[data-theme=dark] .invoice .stamp *{color:#9e3535!important;border-color:#9e3535!important}
html[data-theme=dark] body :is(#details .print-document,.invoice) *{color:#203a43!important}
html[data-theme=dark] body :is(#details .print-document,.invoice) .stamp,html[data-theme=dark] body :is(#details .print-document,.invoice) .stamp *{color:#9e3535!important;border-color:#9e3535!important}
}
@media print{html[data-theme]{color-scheme:light;background:#fff!important;color:#203a43!important}.theme-toggle{display:none!important}}
