html{color-scheme:light}.theme-control{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:11px;white-space:nowrap}.theme-control select{width:auto;margin:0;padding:7px 9px;font-size:11px}.card>.theme-control{display:flex;justify-content:flex-end;margin-bottom:20px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #258be8;outline-offset:3px}
@media screen{html[data-theme="dark"]{color-scheme:dark;background:#101722;color:#e7edf5}html[data-theme="dark"] body{background:#101722;color:#e7edf5}html[data-theme="dark"] :is(aside,header,.panel,.stat,.dialog,.card){background:#192330;border-color:#354254;color:#e7edf5}html[data-theme="dark"] :is(h1,h2,h3,header b,td strong,.empty h3){color:#e7edf5}html[data-theme="dark"] :is(p,small,label,td,.muted,.date,.workspace,.sidebar-foot p,.brand small,.setup-row,.empty,.bottom-note span,.customer small,.integration small,.delivery-row small){color:#b7c4d4}html[data-theme="dark"] :is(input,select,textarea,.secondary){background:#121c29;color:#e7edf5;border-color:#46566b}html[data-theme="dark"] :is(th,.invoice-summary,.ledger-cards>div,.ledger-statement tfoot td,.count,.stock-summary>div){background:#223143;color:#c8d5e4}html[data-theme="dark"] :is(td,th,.panel-head,.sidebar-foot,.customer-foot,.delivery-row,.setup-row,.connection-note,.payment-form,hr,.invoice-totals h3,.search,.bottom-note){border-color:#354254}html[data-theme="dark"] nav button{color:#bfccdc}html[data-theme="dark"] nav button.selected{background:#183e35;color:#a3eed2}html[data-theme="dark"] :is(.text,.secure,.eyebrow,.integration>svg){color:#80ddbb}html[data-theme="dark"] .success{background:#183e35;color:#b0eed5;border-color:#386758}html[data-theme="dark"] :is(.alert,.error){background:#492d24;color:#ffd2ba;border-color:#83553f}html[data-theme="dark"] .overlay{background:#030913b8}html[data-theme="dark"] .brand-logo{background:#fff}html[data-theme="dark"] .badge{background:#493d22;color:#f7d68d}html[data-theme="dark"] .badge.Paid{background:#1d4236;color:#a6e3c7}html[data-theme="dark"] .badge.Overdue{background:#4a2c32;color:#ffbbc0}html[data-theme="dark"] .badge.Partpaid{background:#253d5e;color:#bbd7ff}html[data-theme="dark"] .search input{background:transparent}html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#96a8bf}}
@media(max-width:700px){header>div{gap:8px}.theme-control>span{display:none}.theme-control select{max-width:100px}header .avatar{display:none}}@media print{.theme-control{display:none!important}html{color-scheme:light!important;background:white!important;color:black!important}}

@media screen{html[data-theme="dark"] .reference-invoice,html[data-theme="dark"] .reference-invoice :is(h2,h3,p,td,th,small,b,strong){color:#111!important}html[data-theme="dark"] .reference-invoice td{background:white}html[data-theme="dark"] .reference-invoice th{background:#e4e4e4}}

/* Document paper stays light regardless of the workspace appearance. */
html[data-theme] :is(.print-area,.reference-invoice,.sales-document,.receipt-document,.ledger-statement,.stock-ledger,.invoice-dialog){background:#fff!important;color:#111!important;color-scheme:light}
html[data-theme] :is(.print-area,.reference-invoice,.sales-document,.receipt-document,.ledger-statement,.stock-ledger,.invoice-dialog) :is(h1,h2,h3,p,small,label,td,th,b,strong,span){color:#111!important}
html[data-theme] :is(.print-area,.sales-document,.receipt-document,.ledger-statement,.stock-ledger,.invoice-dialog) :is(td,.ledger-cards>div,.document-signature){background:#fff!important;border-color:#d6dbe1!important}
html[data-theme] :is(.print-area,.sales-document,.receipt-document,.ledger-statement,.stock-ledger,.invoice-dialog) :is(th,tfoot td){background:#f2f3f5!important;color:#111!important;border-color:#d6dbe1!important}
html[data-theme] :is(.print-area,.sales-document,.receipt-document,.ledger-statement,.stock-ledger,.invoice-dialog) :is(input,select,textarea,.secondary){background:#fff!important;color:#263344!important;border-color:#cbd2da!important}
html[data-theme] :is(.print-area,.sales-document,.receipt-document,.ledger-statement,.stock-ledger,.invoice-dialog) .badge{background:#eef1f4!important;color:#111!important}
html[data-theme] :is(.print-area,.sales-document,.receipt-document,.ledger-statement,.stock-ledger,.invoice-dialog) .alert{background:#fff3e9!important;color:#653d20!important;border-color:#e3c3a8!important}
html[data-theme] :is(.print-area,.sales-document,.receipt-document,.ledger-statement,.stock-ledger,.invoice-dialog) .text{color:#12684f!important}
