/* Appearance affects screens only: report paper retains its original colours. */
@media screen {
 .appearance-control{display:flex;align-items:center;gap:8px;padding:8px 12px;flex-shrink:0;color:#163e56;background:#f0f5f9;border:1px solid #ccd9e5;border-radius:10px;margin:8px}
 .appearance-control select{min-height:44px;min-width:0;width:100%;font:inherit;color:inherit;background:transparent;border:0;cursor:pointer}
 .appearance-control select:focus-visible{outline:3px solid #168895;outline-offset:2px}
 .appearance-floating{position:fixed;inset-inline-end:12px;bottom:12px;z-index:900;max-width:190px;box-shadow:0 4px 20px #0003}
 .wn-collapsed .appearance-control{padding:4px;margin:4px;gap:0}.wn-collapsed .appearance-control>span{display:none}
 html[data-theme=dark]{color-scheme:dark;--ink:#e3edf8;--muted:#b0bfd0;--line:#3c5068;--bg:#101923;--card:#192635;--surface:#192635}
 html[data-theme=dark] body{background:#101923!important;color:#e3edf8!important}
 html[data-theme=dark] :is(.panel,.surface,.card,.quick-card,.module-card,.analytics-card,.analytics-filters,.currency-card,.filters,.total,.compact-actionbar,.toolbar,.dx-widget,.dx-overlay-content,dialog,.search-popup,.account-tree-dialog,.attachment-panel,.device-drafts,.appearance-control,.wn-mobile-bar){background-color:#192635!important;color:#e3edf8!important;border-color:#3c5068!important}
 html[data-theme=dark] :is(.hero,.welcome,.wn-sidebar){background:#142c40!important;color:#edf5ff!important}
 html[data-theme=dark] :is(h1,h2,h3,h4,label,legend,.section-heading,.chart-row-title,.dx-field-item-label-text,.dx-form-group-caption){color:#e3edf8!important}
 html[data-theme=dark] :is(.hint,.muted,small,.chart-legend,.entry-keyboard-help,.account-tree-account>span,.dx-placeholder){color:#b0bfd0!important}
 html[data-theme=dark] a{color:#80cbff}
 html[data-theme=dark] :is(input,select,textarea,.dx-texteditor,.dx-texteditor-input,.dx-button,.btn,button:not(.wn-backdrop),.account-tree-choice){background-color:#223448!important;color:#edf5ff!important;border-color:#506782!important}
 html[data-theme=dark] :is(input,textarea)::placeholder{color:#aebed0!important;opacity:1}
 html[data-theme=dark] :is(input,button,select,textarea):disabled{opacity:.6}
 html[data-theme=dark] :is(.btn.primary,.btn-primary,button[type=submit],.dx-button-default){background-color:#14687a!important;color:#fff!important}
 html[data-theme=dark] :is(.dx-datagrid,.dx-datagrid-headers,.dx-datagrid-rowsview,.dx-datagrid-pager,.dx-treelist,.dx-treelist-headers,.dx-treelist-rowsview,.dx-popup-title,.dx-popup-bottom,.dx-toolbar,.dx-list,.dx-menu,.dx-calendar,.dx-tab,.dx-tabs,.dx-dropdowneditor-overlay,.entry-table,.financial-entry #entries tr){background-color:#192635!important;color:#e3edf8!important;border-color:#3c5068!important}
 html[data-theme=dark] :is(th,td,.dx-datagrid-borders>div,.account-tree-children){border-color:#3c5068!important}
 html[data-theme=dark] :is(th,.dx-header-row,.dx-row-alt>td,.dx-datagrid-filter-row>td,.dx-treelist-filter-row>td){background-color:#223448!important;color:#e3edf8!important}
 html[data-theme=dark] :is(.dx-state-hover,.dx-row-focused>td,.dx-selection>td,.dx-list-item-selected,.dx-tab-selected,.search-option:hover,.account-tree-choice:hover){background-color:#2b5267!important;color:#fff!important}
 html[data-theme=dark] :is(.dx-icon,.dx-datagrid-sort,.dx-header-filter,.dx-treeview-toggle-item-visibility){color:#bed2e7!important}
 html[data-theme=dark] .financial-entry #totals{background:#101923!important}
 html[data-theme=dark] .financial-entry #entries td::before{color:#b0bfd0!important}
 html[data-theme=dark] :is(.currency-card.selected,[aria-current=page]){background-color:#23465a!important;border-color:#72cce2!important}
 html[data-theme=dark] :focus-visible{outline:3px solid #7dd3fc!important;outline-offset:2px}
 html[data-theme=dark] .dx-invalid .dx-texteditor-input{border-color:#ff9d9d!important}
 html[data-theme=dark] :is(.dx-invalid-message-content,.field-error){color:#ffb8b8!important;background:#482b35!important}
 /* Do not recolour report canvases, logos, currency flags, images or charts. */
}
@media screen {
 html[data-theme=dark] :is(.report-section,.report-link,.currency-report,.currency-card-wrap,.currency-card-link,.dashboard-admin-actions a,.date-chip,.search-box,.empty,.report-block-editor,.report-drop,.report-tool,.attachment-card,.dx-item,.dx-list-item-content,.dx-treeview-item,.dx-popup-content,.dx-scrollable-content){background-color:#192635!important;color:#e3edf8!important;border-color:#405871!important}
 html[data-theme=dark] :is(.report-link:hover,.currency-card-link:hover,.dashboard-admin-actions a:hover,.dx-list-item.dx-state-focused,.dx-treeview-item.dx-state-focused){background-color:#2b5267!important;color:#fff!important}
 html[data-theme=dark] :is(.currency-report tbody tr,.currency-report td,.dx-data-row>td){background-color:#192635!important;color:#e3edf8!important}
 html[data-theme=dark] :is(.currency-report tbody tr:nth-child(even) td,.dx-row-alt>td){background-color:#223448!important}
 html[data-theme=dark] :is(.currency-report th,#portalSummary th){background:#293f55!important;color:#f0f6ff!important}
 html[data-theme=dark] :is(.currency-report h2,#portalSummary h2,.caption,.report-note,.report-link span,.report-tool,.dx-list-item,.dx-treeview-item,.dx-item-content,.dx-button-text){color:#e3edf8!important}
 html[data-theme=dark] :is(.search-popup button,.search-popup [role=option],option){background:#223448!important;color:#edf5ff!important}
 html[data-theme=dark] :is(.search-popup [aria-selected=true],.dx-list-item-selected,.dx-state-focused:not(input)){background-color:#2b5267!important;color:#fff!important}
 html[data-theme=dark] .dx-row-focused>td,html[data-theme=dark] .dx-selection>td{background:#2b5267!important;color:#fff!important}
 .wn-children{display:flex;flex-direction:column;gap:3px}.wn-children a{display:block!important;white-space:normal;padding:9px 12px!important;line-height:1.6}
 .wn-children a[hidden]{display:none!important}
 html[data-theme=dark] #designer details>summary{background:#223448!important;color:#edf5ff!important;border-color:#506782!important}
 html[data-theme=dark] #designerStatus{color:#b8d9f2}
}
.currency-report th:first-child,.currency-report td:first-child{width:48px!important;min-width:48px;text-align:center;white-space:nowrap}
.ui-action-icon{display:inline-block;width:16px;height:16px;vertical-align:middle;margin-inline-end:6px;flex-shrink:0;color:inherit}
.report-logo-settings{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;padding:16px;border:1px solid #71869b;border-radius:12px;margin-top:14px}.report-logo-settings label{display:grid;gap:7px}.report-logo-settings img{background:#fff;border:1px dashed #71869b;padding:4px}.report-logo-settings p{grid-column:1/-1}.report-logo-settings input,.report-logo-settings select{min-height:44px;width:100%;box-sizing:border-box}
@media screen {
 /* Notifications outrank navigation, sticky actions and DevExtreme overlays. */
 #alert.alert{z-index:2147483000!important;top:max(16px,env(safe-area-inset-top))!important;left:16px!important;right:auto!important;box-sizing:border-box;width:max-content;max-width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 100px);overflow:auto;line-height:1.7;border:1px solid #b9cbdc;border-inline-start:5px solid #247bba;box-shadow:0 12px 36px #0004}
 #alert .message{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}#alert button{flex:0 0 32px;min-height:32px}
 #alert.alert.success{border-inline-start-color:#087f5b}#alert.alert.error{border-inline-start-color:#bd3030}#alert.alert.warning{border-inline-start-color:#a16a13}
 .dx-overlay-wrapper:has(.dx-toast-content),.dx-toast-wrapper{z-index:2147483000!important}
 .dx-toast-content{max-width:calc(100vw - 32px)!important;box-sizing:border-box;border-radius:12px!important;box-shadow:0 12px 36px #0004!important}
 .dx-toast-message{white-space:pre-wrap!important;overflow-wrap:anywhere;line-height:1.7!important}
 html[data-theme=dark] #alert.alert{background:#223448!important;color:#edf5ff!important;border-color:#7db5df}
 html[data-theme=dark] #alert.alert.success{border-inline-start-color:#64d8b0}
 html[data-theme=dark] #alert.alert.error{border-inline-start-color:#ffa2a2}
 html[data-theme=dark] #alert.alert.warning{border-inline-start-color:#f5cb77}
 html[data-theme=dark] .dx-toast-content.dx-toast-success{background:#174d40!important;color:#effff8!important}
 html[data-theme=dark] .dx-toast-content.dx-toast-error{background:#642d3a!important;color:#fff1f3!important}
 html[data-theme=dark] .dx-toast-content.dx-toast-warning{background:#59451c!important;color:#fff6df!important}
 html[data-theme=dark] .dx-toast-content.dx-toast-info{background:#234a6b!important;color:#eff8ff!important}
 html[data-theme=dark] :is(.dx-switch-container,.dx-switch-off){background:#33485f!important;color:#d9e7f5!important;border-color:#7890a8!important}
 html[data-theme=dark] :is(.dx-switch-on,.dx-switch.dx-switch-on-value .dx-switch-container){background:#176f66!important;color:#fff!important}
 html[data-theme=dark] .dx-switch-handle::before{background:#c9dced!important;border:1px solid #8db0cd!important;box-shadow:0 1px 4px #0006}
 html[data-theme=dark] :is(.dx-checkbox-icon,.dx-radiobutton-icon::before){background:#223448!important;border-color:#8ba5bf!important}
 html[data-theme=dark] :is(.dx-checkbox-checked .dx-checkbox-icon,.dx-checkbox-indeterminate .dx-checkbox-icon){background:#176f66!important;color:#fff!important;border-color:#64d8b0!important}
 html[data-theme=dark] .dx-radiobutton-checked .dx-radiobutton-icon-dot{background:#64d8b0!important}
 html[data-theme=dark] :is(.dx-button.dx-button-mode-outlined,.dx-button.dx-button-mode-text,.dx-buttongroup .dx-button){background:#223448!important;color:#edf5ff!important;border-color:#506782!important}
 html[data-theme=dark] :is(.dx-button.dx-item-selected,button[aria-pressed=true],.dx-tab-selected){background:#28596a!important;color:#fff!important;border-color:#83d1dc!important;box-shadow:inset 0 -3px #83d1dc}
 html[data-theme=dark] .migrate-switch{background:#203c3d!important;color:#edf5ff!important}
 html[data-theme=dark] .migrate-switch input[type=checkbox]{background:#50647a!important;border:1px solid #8ba5bf!important}
 html[data-theme=dark] .migrate-switch input[type=checkbox]:checked{background:#177b68!important;border-color:#64d8b0!important}
 html[data-theme=dark] .migrate-switch input[type=checkbox]::before{background:#d1e6f2!important}
 html[data-theme=dark] :is(.dx-state-disabled,.dx-button:disabled){opacity:.55!important}
 .compact-actionbar,.portal-actions{box-shadow:0 4px 16px #102b441a}
 html[data-theme=dark] :is(.compact-actionbar,.portal-actions){box-shadow:0 4px 20px #0005}
 @media(max-width:900px){body.wn-layout #alert.alert{top:calc(70px + env(safe-area-inset-top))!important}body.embedded-voucher #alert.alert{top:12px!important}}
}
@media screen {
 .device-drafts>label>.clear-control{flex-basis:100%;width:100%;max-width:560px}
 .device-drafts>.clear-control{width:100%;max-width:560px;margin:12px 0}
 .device-drafts .clear-control>input,.device-drafts .clear-control>select{display:block;width:100%;max-width:none!important;min-height:44px;box-sizing:border-box;margin:0!important;padding:10px 12px;padding-inline-end:58px;border:1px solid #c5d6e0;border-radius:8px;font:inherit}
 .device-drafts .clear-control>.clear-input{inset-inline-end:6px;inset-inline-start:auto;width:32px;height:32px;min-height:32px;padding:0!important}
 .device-drafts .clear-control:has(select)>.clear-input{inset-inline-end:26px}
 .device-drafts [role=status]{color:#23455f}
 .attachment-drop{color:#23455f;line-height:1.7;min-height:64px;box-sizing:border-box}
 html[data-theme=dark] :is(.device-drafts [role=status],.attachment-panel>summary,.attachment-drop,.attachment-thumb,.voice-input-bar){background:#223448!important;color:#edf5ff!important;border-color:#7890a8!important}
 html[data-theme=dark] .attachment-drop.dragging{background:#20534c!important;color:#f1fff9!important;border-color:#64d8b0!important}
 html[data-theme=dark] .attachment-panel>summary:hover{background:#2b5267!important}
 html[data-theme=dark] .attachment-gallery li{background:#192635!important;color:#edf5ff!important;border-color:#506782!important}
 html[data-theme=dark] :is(.attachment-gallery small,.attachment-gallery p,.device-drafts .hint){color:#b9cce0!important}
 html[data-theme=dark] .attachment-actions a{background:#223448!important;color:#edf5ff!important;border-color:#7890a8!important}
 html[data-theme=dark] input[type=file]::file-selector-button{background:#28475e;color:#edf5ff;border:1px solid #7890a8;border-radius:6px;padding:8px 12px;margin-inline-end:10px;cursor:pointer}
 html[data-theme=dark] .attachment-gallery progress{accent-color:#64d8b0}
 html[data-theme=dark] .attachment-gallery progress::-webkit-progress-bar{background:#33485f;border-radius:5px}
 html[data-theme=dark] .attachment-gallery progress::-webkit-progress-value{background:#64d8b0;border-radius:5px}
 html[data-theme=dark] .attachment-gallery progress::-moz-progress-bar{background:#64d8b0}
 html[data-theme=dark] #history .event{background:#192635!important;color:#edf5ff!important;border-color:#506782!important}
 html[data-theme=dark] #history .event :is(time,.location,summary){color:#b9cce0!important}
 html[data-theme=dark] #history .event td:nth-child(2){background:#422e38!important;color:#ffe2e7!important}
 html[data-theme=dark] #history .event td:nth-child(3){background:#203e38!important;color:#dbfff0!important}
 .location-notice{font-size:12px;line-height:1.7;color:#526c80}
 html[data-theme=dark] .location-notice{color:#b9cce0}
}
@media print{.appearance-control,#alert.alert,.dx-toast-wrapper,.dx-overlay-wrapper:has(.dx-toast-content){display:none!important}}
