
/* Smart Fin Reports — Sales & Electronic Invoicing Management extension */
.sfr-einv-document-launcher{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 0 18px}.sfr-einv-document-launcher button{border:1px solid var(--sfr-border,#d8e1ec);border-radius:18px;padding:16px;text-align:right;background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(244,248,253,.96));color:inherit;cursor:pointer;box-shadow:0 8px 24px rgba(18,49,88,.08);transition:.2s transform,.2s box-shadow,.2s border-color}.sfr-einv-document-launcher button:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(18,49,88,.14);border-color:#3778c2}.sfr-einv-document-launcher span{display:inline-flex;padding:4px 9px;border-radius:999px;background:#e8f1ff;color:#174b86;font-size:12px;font-weight:800}.sfr-einv-document-launcher strong,.sfr-einv-document-launcher small{display:block}.sfr-einv-document-launcher strong{font-size:17px;margin:10px 0 3px}.sfr-einv-document-launcher small{opacity:.72;line-height:1.5}.sfr-einv-setup-progress{margin:0 0 18px;padding:16px;border:1px solid var(--sfr-border,#d8e1ec);border-radius:18px;background:rgba(34,93,160,.06)}.setup-progress-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:12px}.setup-progress-head span{font-size:13px;opacity:.75}.setup-progress-steps{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.setup-progress-steps article{display:flex;align-items:center;gap:8px;padding:9px;border-radius:12px;background:rgba(120,130,145,.08);font-size:12px}.setup-progress-steps i{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#cbd5e1;font-style:normal;font-weight:900}.setup-progress-steps article.ok i{background:#1f9d68;color:#fff}.sfr-einv-logo-preview{margin-top:12px}.company-logo-card{display:flex;align-items:center;gap:12px;padding:12px;border:1px dashed var(--sfr-border,#ccd6e2);border-radius:14px}.company-logo-card img{width:72px;height:72px;object-fit:contain;border-radius:10px;background:#fff}.company-logo-card button{margin-inline-start:auto}.company-logo-card.empty{opacity:.65}.category-table input{min-width:86px;width:100%}.sfr-einv-customer-editor{margin:16px 0;padding:16px;border-radius:16px;background:rgba(31,91,156,.06);border:1px solid var(--sfr-border,#d7e0eb)}.customer-editor-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.customer-editor-grid label span{display:block;font-size:12px;font-weight:800;margin-bottom:5px}.customer-editor-grid .span-2{grid-column:span 2}.customer-editor-grid .span-4{grid-column:1/-1}.editor-actions{display:flex;justify-content:flex-end;gap:10px}.sfr-einv-customer-policy{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:14px}.sfr-einv-customer-policy article,.policy-empty{padding:11px;border-radius:13px;background:rgba(23,75,134,.06);border:1px solid rgba(23,75,134,.12)}.sfr-einv-customer-policy span,.sfr-einv-customer-policy small,.sfr-einv-customer-policy strong{display:block}.sfr-einv-customer-policy span{font-size:11px;opacity:.7}.sfr-einv-customer-policy strong{margin:4px 0}.policy-empty{grid-column:1/-1;opacity:.7}.compact-actions{margin-top:10px}.sfr-einv-sequence-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:15px}.sfr-einv-sequence-strip article{padding:14px;border-radius:15px;border:1px solid var(--sfr-border,#d8e1ec);background:rgba(255,255,255,.7)}.sfr-einv-sequence-strip span,.sfr-einv-sequence-strip strong{display:block}.sfr-einv-sequence-strip span{font-size:12px;opacity:.65}.sfr-einv-sequence-strip strong{margin-top:6px}.return-invoice-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:15px}.return-invoice-list label{display:flex;gap:10px;padding:13px;border:1px solid var(--sfr-border,#d8e1ec);border-radius:14px;cursor:pointer}.return-invoice-list b,.return-invoice-list small{display:block}.sfr-einv-analysis-charts{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:14px 0}.native-chart article{display:grid;grid-template-columns:minmax(90px,1.2fr) 3fr auto;gap:10px;align-items:center;margin:10px 0}.native-chart article>div{height:12px;background:rgba(120,130,145,.14);border-radius:999px;overflow:hidden}.native-chart i{display:block;width:var(--w);height:100%;background:linear-gradient(90deg,#1e5da5,#4f94df);border-radius:inherit}.native-chart small{grid-column:2/4;font-size:11px;opacity:.7}.cash-credit-visual{display:flex;align-items:center;gap:25px}.donut{--cash:50;width:150px;height:150px;border-radius:50%;background:conic-gradient(#2376c9 calc(var(--cash)*1%),#d7e6f6 0);display:grid;place-content:center;position:relative}.donut:before{content:"";position:absolute;inset:20px;background:var(--sfr-card,#fff);border-radius:50%}.donut strong,.donut span{position:relative;z-index:1;text-align:center}.donut strong{font-size:24px}.cash-credit-visual dl{flex:1}.cash-credit-visual dl div{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--sfr-border,#e1e7ef)}.rebate-row{padding:10px 0;border-bottom:1px solid var(--sfr-border,#e1e7ef)}.rebate-row>div{display:flex;justify-content:space-between;gap:10px}.rebate-row progress{width:100%;height:8px}.rebate-row.eligible b{color:#15835a}.insight-list,.strategic-document ol{padding-right:20px}.insight-list li{display:flex;justify-content:space-between;gap:15px;padding:8px 0;border-bottom:1px solid var(--sfr-border,#e1e7ef)}.smart-alert{padding:12px;border-radius:12px;margin:8px 0;border-right:4px solid #3780c8;background:rgba(55,128,200,.08)}.smart-alert.warn{border-color:#d78b13;background:rgba(215,139,19,.09)}.smart-alert.danger{border-color:#c83a4d;background:rgba(200,58,77,.09)}.smart-alert b,.smart-alert span{display:block}.smart-alert span{font-size:12px;margin-top:4px;opacity:.78}.strategic-document{background:#fff;color:#172033;border-radius:18px;padding:24px;box-shadow:0 12px 35px rgba(19,47,82,.09)}.strategic-document header{border-bottom:3px solid #1d5d9d;padding-bottom:14px}.strategic-document header span{font-size:12px;color:#1d5d9d;font-weight:900}.strategic-document section{padding:12px 0;border-bottom:1px solid #e5eaf0}.strategic-document h2,.strategic-document h3{color:#173f70}.strategic-document footer{margin-top:18px;font-size:12px;color:#5d6877}.tax-export-result{display:flex;justify-content:space-between;gap:12px;margin-top:12px;padding:12px;border-radius:12px;background:rgba(24,142,94,.08)}.positive{color:#16845a}.negative{color:#be3448}
[data-theme="dark"] .sfr-einv-document-launcher button,[data-theme="dark"] .sfr-einv-sequence-strip article{background:linear-gradient(145deg,rgba(25,39,57,.97),rgba(18,29,44,.97))}[data-theme="dark"] .strategic-document{background:#fff;color:#172033}[data-theme="dark"] .donut:before{background:#152538}
@media(max-width:1100px){.sfr-einv-document-launcher{grid-template-columns:repeat(3,1fr)}.setup-progress-steps{grid-template-columns:repeat(3,1fr)}.sfr-einv-customer-policy{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.sfr-einv-document-launcher,.sfr-einv-analysis-charts,.return-invoice-list{grid-template-columns:1fr}.setup-progress-head{display:block}.setup-progress-steps,.sfr-einv-sequence-strip,.customer-editor-grid,.sfr-einv-customer-policy{grid-template-columns:1fr}.customer-editor-grid .span-2,.customer-editor-grid .span-4{grid-column:auto}.cash-credit-visual{display:block}.donut{margin:0 auto 20px}.native-chart article{grid-template-columns:1fr}.native-chart article>div,.native-chart small{grid-column:auto}}

/* Collection receipts and customer overrides */
.customer-custom-terms{display:flex!important;align-items:center;gap:12px;padding:12px;border:1px solid var(--sfr-einv-border,#d6dce5);border-radius:14px;background:rgba(31,78,121,.05)}
.customer-custom-terms input{width:auto!important}.customer-custom-terms span{display:grid;gap:3px}.customer-custom-terms small{opacity:.75}
.sfr-einv-collection-dialog{width:min(820px,calc(100vw - 24px));border:0;border-radius:22px;padding:0;background:var(--sfr-einv-surface,#fff);color:inherit;box-shadow:0 28px 80px rgba(0,0,0,.28)}
.sfr-einv-collection-dialog::backdrop{background:rgba(4,13,26,.7);backdrop-filter:blur(3px)}
.sfr-einv-collection-dialog form{padding:24px}.sfr-einv-collection-dialog header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.sfr-einv-collection-dialog header h2{margin:3px 0 0}.sfr-einv-collection-dialog header>button{border:0;background:transparent;color:inherit;font-size:28px;cursor:pointer}
.sfr-einv-collections-register table td,.sfr-einv-collections-register table th{white-space:nowrap}
@media(max-width:700px){.sfr-einv-collection-dialog .cols-4{grid-template-columns:1fr}.sfr-einv-collection-dialog .span-4{grid-column:auto}}

/* 5.4.15.1 — settings tabs, exact registers and strict theme separation */
.sfr-einv-settings-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:0 0 16px;padding:8px;border:1px solid var(--ei-line,#d8e1ec);border-radius:18px;background:var(--ei-card,#fff);box-shadow:0 8px 24px rgba(15,23,42,.045)}
.sfr-einv-settings-tabs button{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:12px 13px;border:1px solid transparent;border-radius:13px;background:transparent;color:var(--ei-muted,#64748b);font-weight:850;cursor:pointer}
.sfr-einv-settings-tabs button i{flex:0 0 27px;width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:#e2e8f0;color:#475569;font-style:normal;font-size:12px}
.sfr-einv-settings-tabs button.is-complete i{background:#059669;color:#fff}.sfr-einv-settings-tabs button.is-active{background:#1e3a8a;color:#fff;border-color:#3b82f6;box-shadow:0 7px 18px rgba(30,58,138,.22)}.sfr-einv-settings-tabs button.is-active i{background:#fff;color:#1e3a8a}
.sfr-einv-settings-panel{display:none}.sfr-einv-settings-panel.is-active{display:grid;gap:15px}.sfr-einv-settings-panel>.sfr-einv-panel{margin:0}
.setup-progress-steps button{display:flex;align-items:center;gap:8px;padding:9px;border:0;border-radius:12px;background:rgba(120,130,145,.08);color:inherit;font-size:12px;text-align:right;cursor:pointer}.setup-progress-steps button:hover{background:rgba(59,130,246,.1)}.setup-progress-steps button i{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#cbd5e1;font-style:normal;font-weight:900}.setup-progress-steps button.ok i{background:#1f9d68;color:#fff}
.sfr-einv-term-help{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 15px}.sfr-einv-term-help article{padding:12px;border:1px solid var(--ei-line,#d8e1ec);border-radius:13px;background:var(--ei-bg,#f8fafc)}.sfr-einv-term-help b,.sfr-einv-term-help span{display:block}.sfr-einv-term-help span{margin-top:5px;color:var(--ei-muted,#64748b);font-size:12px;line-height:1.6}.sfr-einv-inline-explanation{margin-top:10px;padding:11px 13px;border-radius:12px;background:rgba(59,130,246,.08);border:1px solid rgba(59,130,246,.2);font-size:12px;line-height:1.7}
.customer-editor-group{padding:15px;border:1px solid var(--ei-line,#d8e1ec);border-radius:15px;background:var(--ei-card,#fff)}.customer-editor-group>header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:13px;padding-bottom:10px;border-bottom:1px solid var(--ei-line,#d8e1ec)}.customer-editor-group>header b,.customer-editor-group>header small{display:block}.customer-editor-group>header small{color:var(--ei-muted,#64748b);font-size:11px}.customer-editor-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.customer-editor-fields label{display:grid;gap:5px}.customer-editor-fields label>span{font-size:12px;font-weight:800}.customer-editor-fields label>small{color:var(--ei-muted,#64748b);font-size:10.5px;line-height:1.45}.customer-editor-fields input,.customer-editor-fields select{width:100%;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;padding:10px 11px}.customer-editor-fields .span-2{grid-column:span 2}
.sfr-einv-register-tabs{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:0 0 14px}.sfr-einv-register-tabs button{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border:1px solid var(--ei-line,#d8e1ec);border-radius:14px;background:var(--ei-bg,#f8fafc);color:var(--ei-text,#0f172a);text-align:right}.sfr-einv-register-tabs button b,.sfr-einv-register-tabs button small{display:block}.sfr-einv-register-tabs button small{color:var(--ei-muted,#64748b)}.sfr-einv-register-tabs button.is-active{background:#1e3a8a;color:#fff;border-color:#3b82f6}.sfr-einv-register-tabs button.is-active small{color:#dbeafe}.sfr-einv-register-panel{display:none}.sfr-einv-register-panel.is-active{display:block}.sfr-einv-reference-chip{display:inline-flex;margin:2px;padding:3px 7px;border-radius:999px;background:#dbeafe;color:#1e3a8a;font-weight:800;font-size:11px}.sfr-einv-quotation-log{margin-top:13px;border:1px dashed var(--ei-line,#d8e1ec);border-radius:13px;padding:11px}.sfr-einv-quotation-log summary{cursor:pointer;font-weight:800}.sfr-einv-quotation-log article{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:9px;align-items:center;padding:9px 0;border-bottom:1px solid var(--ei-line,#d8e1ec)}.sfr-einv-quotation-log button,.sfr-einv-category-delete{border:1px solid var(--ei-line,#d8e1ec);border-radius:8px;background:var(--ei-card,#fff);color:#1d4ed8;padding:6px 9px;font-weight:800}.sfr-einv-category-delete{color:#b91c1c}
.sfr-einv-notice-identity .sfr-einv-return-invoices{margin-top:15px}
.sfr-einv-remove{display:grid!important;place-items:center!important;background:#fee2e2!important;color:#991b1b!important;border:1px solid #fecaca!important;font-size:18px!important;line-height:1!important}.sfr-einv-remove:hover,.sfr-einv-remove:focus{background:#dc2626!important;color:#fff!important;border-color:#f87171!important;outline:3px solid rgba(248,113,113,.25)!important}

/* Strict dark mode: every screen surface stays dark; light mode remains unchanged. */
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing{--ei-bg:#081321;--ei-card:#101f33;--ei-text:#f8fafc;--ei-muted:#b6c4d7;--ei-line:#334a66;--ei-soft:#142a47;background:#081321!important;color:#f8fafc!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-view,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-data-panel,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-settings-panel{background:#081321!important;color:#f8fafc!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-page-head,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-panel,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-settings-tabs,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-stepper-shell,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-kpis article,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-register-summary article,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-sequence-strip article{background:#101f33!important;color:#f8fafc!important;border-color:#334a66!important;box-shadow:0 10px 28px rgba(0,0,0,.2)!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-page-head{background:linear-gradient(135deg,#11233a,#0b192a)!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing h1,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing h2,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing h3,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing strong,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing label>span{color:#f8fafc!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing p,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing small,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-panel-copy{color:#b6c4d7!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing input,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing select,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing textarea{background:#071525!important;color:#f8fafc!important;border-color:#43617f!important;caret-color:#fff!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing input::placeholder,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing textarea::placeholder{color:#8295ad!important;opacity:1!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing input[type="date"]::-webkit-calendar-picker-indicator{filter:invert(1) brightness(1.6)!important;opacity:.9!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-table-wrap{background:#0b192a!important;border-color:#334a66!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing table{background:#0b192a!important;color:#eef5ff!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing th{background:#162b45!important;color:#eaf2ff!important;border-color:#334a66!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing td{background:#0f2035!important;color:#eef5ff!important;border-color:#2e4661!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing tr:nth-child(even) td{background:#0c1b2e!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-register-tabs button,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-term-help article,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .customer-editor-group,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .return-invoice-list label{background:#0d1d31!important;color:#f8fafc!important;border-color:#38526e!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-register-tabs button.is-active,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-settings-tabs button.is-active{background:#1d5fbf!important;color:#fff!important;border-color:#60a5fa!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-autocomplete{background:#09182a!important;color:#f8fafc!important;border:2px solid #60a5fa!important;box-shadow:0 18px 45px rgba(0,0,0,.5)!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-autocomplete button{background:#09182a!important;color:#f8fafc!important;border-bottom-color:#294765!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-autocomplete button b{color:#fff!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-autocomplete button small{color:#b7c8dc!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-autocomplete button em{color:#93c5fd!important;background:#102d50!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-autocomplete button:hover,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-autocomplete button.is-active{background:#1e4f83!important;color:#fff!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-remove{background:#4a1520!important;color:#fecdd3!important;border-color:#9f3348!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-remove:hover,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-remove:focus{background:#dc2626!important;color:#fff!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .strategic-document{background:#0d1d31!important;color:#eef5ff!important;border:1px solid #38526e!important;box-shadow:none!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .strategic-document h2,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .strategic-document h3{color:#93c5fd!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .strategic-document section{border-color:#334a66!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-report-paper{background:#0d1d31!important;color:#eef5ff!important;border-color:#486583!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-report-paper *{color:inherit!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-report-paper .report-meta article,
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-report-paper .report-note{background:#10243b!important;border-color:#486583!important}
:is(#sfr-platform-root[data-theme="dark"],html[data-theme="dark"],body[data-theme="dark"],body.dark-platform,.dark) #sfrElectronicInvoicing .sfr-einv-report-paper th{background:#1d5fbf!important;color:#fff!important}
@media print{.sfr-einv-report-paper,.sfr-einv-report-paper *{color:#0f172a!important}.sfr-einv-report-paper{background:#fff!important;border-color:#cbd5e1!important}.sfr-einv-report-paper th{background:#1e3a8a!important;color:#fff!important}.sfr-einv-report-paper .report-meta article,.sfr-einv-report-paper .report-note{background:#f8fafc!important}}

@media(max-width:1050px){.sfr-einv-settings-tabs{grid-template-columns:repeat(3,1fr)}.sfr-einv-term-help{grid-template-columns:repeat(2,1fr)}.customer-editor-fields{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.sfr-einv-settings-tabs,.sfr-einv-register-tabs,.sfr-einv-term-help,.customer-editor-fields{grid-template-columns:1fr}.customer-editor-fields .span-2{grid-column:auto}.sfr-einv-quotation-log article{grid-template-columns:1fr}.sfr-einv-settings-tabs button{min-height:48px}}


/* 5.4.15.2 contract preserved in 5.4.15.3 — exact settings stepper, minimal invoice register, and permanently light invoice document. */
.sfr-einv-settings-stepper-shell{margin-bottom:18px}
.sfr-einv-data-tabs.sfr-einv-stepper.sfr-einv-settings-stepper{grid-template-columns:repeat(6,minmax(0,1fr))}
.sfr-einv-settings-stepper .sfr-einv-step-copy{min-width:0}
.sfr-einv-settings-stepper .sfr-einv-step-copy b,.sfr-einv-settings-stepper .sfr-einv-step-copy small{display:block;overflow:hidden;text-overflow:ellipsis}
.sfr-einv-settings-stepper .sfr-einv-step-copy small{margin-top:3px;font-size:10px;color:inherit;opacity:.75;white-space:nowrap}
.sfr-einv-register-page-head>div:first-child{display:flex;align-items:center;min-height:44px}
.sfr-einv-register-page-head h2{margin:0;font-size:clamp(24px,3cqi,34px)}
.sfr-einv-register-tabs button{justify-content:center;text-align:center}
.sfr-einv-register-tabs button b{font-size:14px}
.sfr-einv-invoice-paper-host{color-scheme:light;display:block;padding:18px;border-radius:18px;background:#e8edf4;border:1px solid #cbd5e1;overflow:auto}

/* The actual invoice sheet is always a light document, regardless of the platform theme. */
#sfr-platform-root #sfrElectronicInvoicing[data-sfr-module-root] [data-einv-view="invoice-report"] .sfr-einv-report-paper,
body.dark-platform #sfr-platform-root #sfrElectronicInvoicing[data-sfr-module-root] [data-einv-view="invoice-report"] .sfr-einv-report-paper,
html[data-theme="dark"] #sfr-platform-root #sfrElectronicInvoicing[data-sfr-module-root] [data-einv-view="invoice-report"] .sfr-einv-report-paper,
#sfr-platform-root[data-theme="dark"] #sfrElectronicInvoicing[data-sfr-module-root] [data-einv-view="invoice-report"] .sfr-einv-report-paper{
  color-scheme:light!important;background:#fff!important;color:#0f172a!important;border-color:#94a3b8!important;box-shadow:0 14px 42px rgba(15,23,42,.16)!important
}
#sfr-platform-root #sfrElectronicInvoicing[data-sfr-module-root] [data-einv-view="invoice-report"] .sfr-einv-report-paper :is(h1,h2,h3,h4,p,span,b,strong,td,dt,dd,li),
body.dark-platform #sfr-platform-root #sfrElectronicInvoicing[data-sfr-module-root] [data-einv-view="invoice-report"] .sfr-einv-report-paper :is(h1,h2,h3,h4,p,span,b,strong,td,dt,dd,li){color:#0f172a!important}
#sfr-platform-root #sfrElectronicInvoicing[data-sfr-module-root] [data-einv-view="invoice-report"] .sfr-einv-report-paper table,
body.dark-platform #sfr-platform-root #sfrElectronicInvoicing[data-sfr-module-root] [data-einv-view="invoice-report"] .sfr-einv-report-paper table{background:#fff!important;color:#0f172a!important}
#sfr-platform-root #sfrElectronicInvoicing[data-sfr-module-root] [data-einv-view="invoice-report"] .sfr-einv-report-paper td,
body.dark-platform #sfr-platform-root #sfrElectronicInvoicing[data-sfr-module-root] [data-einv-view="invoice-report"] .sfr-einv-report-paper td{background:#fff!important;color:#0f172a!important;border-color:#94a3b8!important}
#sfr-platform-root #sfrElectronicInvoicing[data-sfr-module-root] [data-einv-view="invoice-report"] .sfr-einv-report-paper th,
#sfr-platform-root #sfrElectronicInvoicing[data-sfr-module-root] [data-einv-view="invoice-report"] .sfr-einv-report-paper th *,
body.dark-platform #sfr-platform-root #sfrElectronicInvoicing[data-sfr-module-root] [data-einv-view="invoice-report"] .sfr-einv-report-paper th,
body.dark-platform #sfr-platform-root #sfrElectronicInvoicing[data-sfr-module-root] [data-einv-view="invoice-report"] .sfr-einv-report-paper th *{background:#1e3a8a!important;color:#fff!important;border-color:#94a3b8!important}
#sfr-platform-root #sfrElectronicInvoicing[data-sfr-module-root] [data-einv-view="invoice-report"] .sfr-einv-report-paper :is(.report-meta article,.report-note,.report-parties article),
body.dark-platform #sfr-platform-root #sfrElectronicInvoicing[data-sfr-module-root] [data-einv-view="invoice-report"] .sfr-einv-report-paper :is(.report-meta article,.report-note,.report-parties article){background:#f8fafc!important;color:#0f172a!important;border-color:#cbd5e1!important}
#sfr-platform-root #sfrElectronicInvoicing[data-sfr-module-root] [data-einv-view="invoice-report"] .sfr-einv-report-paper :is(.report-head p,.report-number span,.report-meta span,.report-footer,.report-footer p,.qr-wrap,.qr-wrap small),
body.dark-platform #sfr-platform-root #sfrElectronicInvoicing[data-sfr-module-root] [data-einv-view="invoice-report"] .sfr-einv-report-paper :is(.report-head p,.report-number span,.report-meta span,.report-footer,.report-footer p,.qr-wrap,.qr-wrap small){color:#475569!important}
#sfr-platform-root #sfrElectronicInvoicing[data-sfr-module-root] [data-einv-view="invoice-report"] .sfr-einv-report-paper :is(.report-totals .total,.report-totals .total *,.report-logo,.report-logo *),
body.dark-platform #sfr-platform-root #sfrElectronicInvoicing[data-sfr-module-root] [data-einv-view="invoice-report"] .sfr-einv-report-paper :is(.report-totals .total,.report-totals .total *,.report-logo,.report-logo *){background:#1e3a8a!important;color:#fff!important}
#sfr-platform-root #sfrElectronicInvoicing[data-sfr-module-root] [data-einv-view="invoice-report"] .sfr-einv-report-paper :is(.sfr-einv-qr-image,.sfr-einv-qr-svg,.sfr-einv-qr-error),
body.dark-platform #sfr-platform-root #sfrElectronicInvoicing[data-sfr-module-root] [data-einv-view="invoice-report"] .sfr-einv-report-paper :is(.sfr-einv-qr-image,.sfr-einv-qr-svg,.sfr-einv-qr-error){background:#fff!important;color:#0f172a!important}

@media(max-width:1200px){.sfr-einv-data-tabs.sfr-einv-stepper.sfr-einv-settings-stepper{grid-template-columns:repeat(3,minmax(0,1fr))}.sfr-einv-settings-stepper button:nth-child(3):after,.sfr-einv-settings-stepper button:nth-child(6):after{display:none}}
@media(max-width:700px){.sfr-einv-data-tabs.sfr-einv-stepper.sfr-einv-settings-stepper{grid-template-columns:1fr}.sfr-einv-settings-stepper button:after{display:none!important}.sfr-einv-invoice-paper-host{padding:8px}}
@media print{.sfr-einv-invoice-paper-host{padding:0!important;background:#fff!important;border:0!important;overflow:visible!important}}
