/* Theme colors are scoped to the application, never to invoice documents. */
.theme-toggle{display:inline-grid;place-items:center;width:42px;height:42px;min-width:42px;border:1px solid #b9c7d0;background:transparent;color:#344e5e;border-radius:12px;cursor:pointer;flex-shrink:0}.theme-toggle svg{width:21px;height:21px;grid-area:1/1}.theme-sun{display:none}.auth-theme{position:absolute;top:32px;left:32px}.auth-main{position:relative}.theme-toggle:hover{background:#7895a215}.theme-toggle:focus-visible{outline:3px solid #557daf;outline-offset:3px}
html[data-theme=dark]{color-scheme:dark;--ink:#edf2f7;--muted:#bccbd7;--text-secondary:#bccbd7;--paper:#1c2b39;--bg:#121d28;--line:#425464;--blue:#9cc8ff;--navy:#1c2b39}
[data-theme=dark] body{background:#121d28;color:#edf2f7}[data-theme=dark] .theme-toggle{color:#e7edf4;border-color:#647889}[data-theme=dark] .theme-moon{display:none}[data-theme=dark] .theme-sun{display:block}
[data-theme=dark] :is(.panel,.stat-card,.summary-strip,.topbar,.modal,.auth-main,.recovery-main,.m-header,.m-mobile-nav,.s-post,.s-feed-item,.s-price-card,.m-role-sheet,.s-receipt,.ticket-stat,.ticket-message,.invoice-selection){background:#1c2b39;color:#edf2f7;border-color:#425464}
[data-theme=dark] :is(input,textarea,select){background-color:#13212e;color:#edf2f7;border-color:#647889}[data-theme=dark] :is(input,textarea)::placeholder{color:#b5c5d3}[data-theme=dark] :is(.list-toolbar,th,.notice,.welcome-strip,.context-panel,.s-feature-band,.s-workflow,.s-final,.s-pricing-notes,.s-security-principles,.s-security-note){background:#233747;color:#edf2f7;border-color:#425464}
[data-theme=dark] :is(.page-description,.eyebrow,.auth-description,.auth-switch,.auth-local-note,.auth-main>footer,.recovery-description,.recovery-help,.recovery-privacy p,.recovery-footer,.recovery-footer a,.recovery-back,.recovery-eyebrow,.recovery-header .brand small,.notice p,.welcome-strip p,.welcome-label,.context-panel p,.tabs a,.tabs a span,th,th small,.product-cell small,.ticket-stat>span,.admin-user-name){color:#c4d2df}
[data-theme=dark] .btn-white{background:#243c50;color:#edf2f7;border-color:#6b8496}[data-theme=dark] :is(.btn-dark,.s-button,.m-button-ink){background:#d8d5f1;color:#202b3c;border-color:#d8d5f1}[data-theme=dark] .btn-primary{background:#a4c9f5;color:#152b40;border-color:#a4c9f5}[data-theme=dark] .m-site :is(h1,h2,h3,.m-brand,.m-nav a,.m-login,.s-link,.s-post-caption strong,.s-post header strong){color:#edf2f7}[data-theme=dark] .m-site :is(p,dd,small,.s-hero-note,.s-post header small,.s-order-note small,.s-receipt b,.s-receipt>span,.m-role-sheet>p,.m-role-sheet-top>span:first-child,.m-role-permissions>div>span,.s-price small,.s-price-card>p,.s-price-note){color:#c4d2df}
[data-theme=dark] .s-order-note{background:#233747;color:#edf2f7}[data-theme=dark] .s-context-strip{background:#233747;color:#edf2f7}[data-theme=dark] .s-hero h1 em,[data-theme=dark] .s-page-intro h1 em{color:#eab29c}[data-theme=dark] .recovery-local p{color:#ebc89d}[data-theme=dark] .auth-local-note a{color:#b8d7ff}[data-theme=dark] .auth-main>footer a{color:#c4d2df}
@media(max-width:640px){.theme-toggle{width:36px;height:36px;min-width:36px}.m-social .m-header-inner{gap:8px}.m-social .m-account{gap:7px}.m-social .m-account .m-login{display:none}.auth-theme{top:26px;left:22px}}

[data-theme=dark] .m-site :is(.s-kicker,.s-post-menu,.s-highlights strong,.s-context-strip strong,.s-context-strip span){color:#d6c4c9}[data-theme=dark] .m-site .s-receipt strong{color:#edf2f7}[data-theme=dark] .m-site .s-faq-section{background:#192b3a}[data-theme=dark] .m-site .permission-value{color:#c4d2df}[data-theme=dark] .m-site .permission-value.allowed{color:#a2d7b9}[data-theme=dark] .breadcrumb strong{color:#edf2f7}[data-theme=dark] .cell-title{color:#b4d7ff}[data-theme=dark] .stock-count{color:#ecc78f}

[data-theme=dark] .m-site :is(.s-feature-order-art>div,.s-person){background:#233747;color:#edf2f7;border-color:#647889}[data-theme=dark] :is(.invoice-template-card,.invoice-template-card label,.invoice-theme-toggle label){background:#233747;color:#edf2f7;border-color:#647889}[data-theme=dark] .transfer-tabs button[aria-selected=true]{color:#b8d7ff}[data-theme=dark] .ticket-stat>strong{color:#b8d7ff}[data-theme=dark] .ticket-priority.high{color:#ecc78f}[data-theme=dark] .ticket-priority.urgent{color:#f0b2b6}

[data-theme=dark] :is(.m-menu-button,.icon-button){color:#d4e2ed}

/* Shared workspace surfaces, controls, feedback and interaction states. */
html[data-theme=dark]{--surface-alt:#233747;--panel:#1c2b39;--green:#a7dec2;--text-accent:#f1b49c;--primary:#b8d7ff}
[data-theme=dark] :is(.search-form,.totals-box,.invoice-selection-panel,.invoice-shipping-panel,.security-code,.error-page){background:#1c2b39;color:#edf2f7;border-color:#526779}
[data-theme=dark] :is(.section-icon,.empty-icon,.dashboard-subscription-icon,.avatar-initial,.user-avatar,.user-avatar.soft,.user-avatar.account-avatar,.pb-plan-symbol){background:#2b4054;color:#d5e4f2;border-color:#526779}
[data-theme=dark] .collaboration-status{background:#1d3934;color:#c4e1d4;border-color:#496f62}
[data-theme=dark] .collaboration-dot{background:#9ed6b8}
[data-theme=dark] :is(.collaboration-status[data-state=offline],.collaboration-form-warning){background:#443722;color:#f4d7a4;border-color:#8d7445}
[data-theme=dark] .collaboration-status[data-state=offline] .collaboration-dot{background:#e9bb6c}
[data-theme=dark] .collaboration-status a{color:#b8d7ff}
[data-theme=dark] .alert.success{background:#1e3c32;color:#c0e9d0;border-color:#507b64}
[data-theme=dark] .alert.error{background:#472c33;color:#ffd1d5;border-color:#98616c}
[data-theme=dark] :is(.badge,.ticket-status,.mini-badge){background:#2d4052;color:#d7e0ec;border-color:#526779}
[data-theme=dark] :is(.badge.pending,.ticket-status.waiting_support,.mini-badge.amber,.task-icon.amber){background:#493922;color:#f1d3a1}
[data-theme=dark] :is(.badge.packing,.ticket-status.in_progress,.task-icon.blue){background:#263e59;color:#c1dcff}
[data-theme=dark] :is(.badge.shipped,.task-icon.rose){background:#263f49;color:#b5e0e4}
[data-theme=dark] :is(.badge.completed,.ticket-status.waiting_store,.mini-badge.green){background:#204234;color:#bce7ce}
[data-theme=dark] :is(.badge.cancelled,.ticket-priority.urgent){background:#492d36;color:#ffd0d6}
[data-theme=dark] .ticket-status.closed{background:#35414b;color:#d2dbe5}
[data-theme=dark] :is(.product-initial,.product-initial.tone-0){background:#423b32;color:#eddbbf}
[data-theme=dark] .product-initial.tone-1{background:#2a413f;color:#c1dfda}
[data-theme=dark] .product-initial.tone-2{background:#483631;color:#f1d3c4}
[data-theme=dark] .product-initial.tone-3{background:#2c4055;color:#caddf2}
[data-theme=dark] :is(.tabs a span,.payment-progress){background:#2d4357;color:#d5e4f2}
[data-theme=dark] :is(.tabs a.selected,.ops-tabs a.active){color:#c3ddff;border-bottom-color:#9cc8ff}
[data-theme=dark] .check-field:has(input:checked){background:#253f54;border-color:#7b9dba;color:#edf2f7}
[data-theme=dark] .avatar-option>input:checked+.avatar-choice{background:#2d435a;color:#edf2f7;border-color:#a8caed}
[data-theme=dark] .invoice-theme-toggle label:has(input:checked){background:#2d435a;color:#edf2f7;border-color:#a8caed}
[data-theme=dark] .invoice-template-card>a{background:#243b4f;color:#c4ddff;border-color:#526779}
[data-theme=dark] .invoice-template-card:has(input:checked){border-color:#b3cfff;box-shadow:0 0 0 2px #9cc8ff44}
[data-theme=dark] .invoice-view-controls [aria-pressed=true]{background:#2d435a;color:#edf2f7;border-color:#a8caed}
[data-theme=dark] :is(.invoice-default-label,.invoice-selection-footer button:disabled){background:#244536;color:#c0e5d0;border-color:#597e67}
[data-theme=dark] :is(.ticket-stat:hover,.ticket-stat.selected,.ticket-message.from-support){background:#233b4d;border-color:#698ba2}
[data-theme=dark] .ticket-message.internal{background:#3c3428;border-color:#9b835b}
[data-theme=dark] :is(.ticket-message-body,.ticket-definition dd){color:#d6e0ea}
[data-theme=dark] :is(.ticket-thread-heading p,.ticket-message>header small,.ticket-message>header time,.ticket-definition dt,.ticket-help,.ticket-file-field small,.ticket-file-preview span,.ticket-attachments small,.support-status-note,.subscription-row small,.subscription-row>span,.inline-check,.summary-label){color:#bdcddd}
[data-theme=dark] :is(.ticket-attachments>a,.ticket-file-field input,.ticket-update-notice,.ticket-unread){background:#263f53;color:#c8e3f5;border-color:#5e809a}
[data-theme=dark] .ticket-update-notice a{color:#c4ddff}
[data-theme=dark] .platform-admin-label{background:#473b2f;color:#f3d8ba;border-color:#8d755e}
[data-theme=dark] :is(.text-green){color:#b5e3ca}
[data-theme=dark] :is(.text-rose,.transfer-error){color:#ffb8be}
[data-theme=dark] :is(.text-amber,.stock-count){color:#f2d19b}
[data-theme=dark] :is(.btn-primary:hover,.btn-primary:focus-visible){background:#c4dfff;color:#122a3f;border-color:#c4dfff}
[data-theme=dark] :is(.btn-white:hover,.btn-white:focus-visible,.icon-button:hover,.task-row:hover){background:#304a60;color:#edf2f7;border-color:#88a2b6}
[data-theme=dark] :is(.btn-dark:hover,.s-button:hover){background:#ede7ff;color:#202b3c;border-color:#ede7ff}
[data-theme=dark] tbody tr:hover{background:#263b4c}
[data-theme=dark] :is(input,select,textarea):focus{border-color:#b5d6ff;box-shadow:0 0 0 3px #9cc8ff33}
[data-theme=dark] .chart-plot{border-color:#526779}
[data-theme=dark] .chart-bar{background:#9cc8ff}
[data-theme=dark] :is(.chart-scale,.bar-label,.bar-value){color:#c4d5e5}
[data-theme=dark] .jalali-calendar{background:#1c2b39;color:#edf2f7;border-color:#647889}
[data-theme=dark] .jalali-calendar button:hover:not(:disabled){background:#304a60}
[data-theme=dark] .jalali-days button[aria-pressed=true]{background:#9cc8ff!important;color:#14283c}
[data-theme=dark] .jalali-days button.is-today{box-shadow:inset 0 0 0 1px #a8caed}
[data-theme=dark] :is(.check-field,.avatar-choice,.subscription-amounts>div,.session-device,.account-security-card){border-color:#526779}
[data-theme=dark] dialog::backdrop{background:#07121bd9;backdrop-filter:blur(4px)}

[data-theme=dark] :is(.invoice-template-tag,.invoice-template-card p,.invoice-selection-title p,.invoice-selection-footer p,.invoice-shipping-panel span,.invoice-view-controls>span,.invoice-caption){color:#c3d3e2}
[data-theme=dark] .invoice-selection-footer a{color:#bfdcff}
[data-theme=dark] :is(.totals-box strong,.totals-box .final-total span,.receipt-line strong,.receipt-total span){color:#edf2f7}
[data-theme=dark] .desk-body main td small{color:#bccbd7}

[data-theme=dark] .summary-strip strong small{color:#c3d3e2}
[data-registration-coupon][hidden]{display:none!important}

html[data-theme] body.commerce-print-body .commerce-print-sheet :is(th,td){background:#fff;color:#193342;border-color:#c8d3dc}
