/* Mobile palette on desktop screens only. No dimensions, layout, field order, visibility or print rules change. */
@layer desktopPalette {
@media screen {
html[data-desktop-palette=mobile]{
 --desktop-ink:#20243e;--desktop-muted:#5e6479;--desktop-brand:#4345a0;--desktop-brand-strong:#323680;
 --desktop-surface:#ffffff;--desktop-canvas:#f3f4f9;--desktop-line:#cdd2e2;--desktop-soft:#e9eafd;--desktop-alternate:#eef0fa;--desktop-table-alternate:var(--desktop-alternate);--desktop-focus:#fff4c9;
 --win-headingColor:var(--desktop-soft)!important;--win-headingText:var(--desktop-ink)!important;--win-captionColor:var(--desktop-brand)!important;--win-captionText:#fff!important;
 --win-pageColor:var(--desktop-canvas)!important;--win-surfaceColor:var(--desktop-surface)!important;--win-textColor:var(--desktop-ink)!important;--win-rowColor:var(--desktop-alternate)!important;
 --win-accentColor:var(--desktop-brand)!important;--win-buttonColor:var(--desktop-soft)!important;--win-buttonText:var(--desktop-ink)!important;--win-inputColor:var(--desktop-surface)!important;--win-borderColor:var(--desktop-line)!important;--win-sidebarColor:var(--desktop-brand)!important;
 --formal-ink:var(--desktop-ink)!important;--formal-muted:var(--desktop-muted)!important;--formal-line:var(--desktop-line)!important;--formal-accent:var(--desktop-brand)!important;--formal-row:var(--desktop-alternate)!important;--formal-surface:var(--desktop-surface)!important;
 --ink:var(--desktop-ink)!important;--muted:var(--desktop-muted)!important;--brand:var(--desktop-brand)!important;--accent:var(--desktop-brand)!important;--line:var(--desktop-line)!important;
}
html[data-desktop-palette=mobile] body{background-color:var(--desktop-canvas)!important;color:var(--desktop-ink)!important}
html[data-desktop-palette=mobile] :is(.main-shell,.topbar,#content,#modal,#modalBody,#modalBody>.modal-content,#modalBody>.ve-window,.vp-workspace,.vp-sidebar,.inc-workspace,.fv,.ve-window,.vp-invoice-form,.ve-form,.owner-inapp-shell){background-color:var(--desktop-canvas)!important;border-color:var(--desktop-line)!important;color:var(--desktop-ink)!important}
html[data-desktop-palette=mobile] :is(.sidebar,#mainNav,.owner-header,.design-header){background-color:var(--desktop-brand)!important;background-image:none!important;color:#fff!important}
html[data-desktop-palette=mobile] :is(.sidebar .brand,.sidebar .brand-title,.sidebar .brand-subtitle,.sidebar .brand small,#mainNav>details>summary,#mainNav .nav-group>summary){color:#fff!important}
html[data-desktop-palette=mobile] #mainNav :is(.vx-dropdown,.vn-submenu){background-color:var(--desktop-brand-strong)!important;border-color:#7577b9!important}
html[data-desktop-palette=mobile] #mainNav :is(button,a,.vx-menu-item,.nav-group[open]>summary){color:#fff!important}
html[data-desktop-palette=mobile] #mainNav :is(button,a){background-color:transparent!important;border-color:transparent!important}
html[data-desktop-palette=mobile] #mainNav :is(button,a,summary):hover{background-color:#5558ad!important}
html[data-desktop-palette=mobile] :is(#desktopToolbar,#openScreens,.screen-tabs,.vn-toolbar,.ref-toolbar,.owner-save){background-color:var(--desktop-surface)!important;border-color:var(--desktop-line)!important}
html[data-desktop-palette=mobile] :is(#desktopStatus,.desktop-status,.workspace-breadcrumb,.vn-context-tabs){background-color:var(--desktop-soft)!important;border-color:var(--desktop-line)!important;color:var(--desktop-muted)!important}
html[data-desktop-palette=mobile] :is(.card,.kpi-card,.kpi,.metric,.stat,.dashboard-grid>article,.card-header,.fv-card,.fv-kpis article,.inc-kpis article,.owner-card,.owner-grid,.f5-readiness,.f5-identity>div,.f5-ready-steps li,.table-wrap,.fv-table,.inc-table-wrap,.appearance-colors,#appearanceSample){background-color:var(--desktop-surface)!important;border-color:var(--desktop-line)!important;color:var(--desktop-ink)!important}
html[data-desktop-palette=mobile] :is(.f5-team-nav,.fv-filters,.business-filter,.sales-register-side,.cd-sidebar,.cd-filters,.vp-filter,.inc-toolbar,.f5-help,.f5-empty,.fv-empty,.inc-empty,.empty){background-color:var(--desktop-alternate)!important;border-color:var(--desktop-line)!important;color:var(--desktop-muted)!important}
html[data-desktop-palette=mobile] :is(#modalBody form,#tradeForm>.form-grid,.ve-header,.ref-header,.vx-form-grid,.trade-tax-treatment,.ir-extra-header,.vp-invoice-cash,.ve-cash-box,.vp-invoice-totals,.ve-totals,.ir-account-strip,.ir-payment-footer,.invoice-bottom-46,.ve-bottom,fieldset){background-color:var(--desktop-surface)!important;border-color:var(--desktop-line)!important;color:var(--desktop-ink)!important}
html[data-desktop-palette=mobile] :is(h1,h2,h3,.page-head p,.muted,.eyebrow,.kpi-note,.card-header p,.f5-help,.owner-note){color:var(--desktop-ink)!important}
html[data-desktop-palette=mobile] :is(.muted,.eyebrow,.kpi-note,.card-header p,.f5-help,.owner-note,.form-group>label,label,legend){color:var(--desktop-muted)!important}
html[data-desktop-palette=mobile] :is(.rwc-caption,.vr-caption,.page-head,.inc-header,.fv>header,.modal-content>h2,.ve-window>h2,.ref-picker>header,dialog>header,.owner-inapp-head){background-color:var(--desktop-brand)!important;background-image:none!important;border-color:var(--desktop-brand-strong)!important;color:#fff!important}
html[data-desktop-palette=mobile] :is(.rwc-caption,.vr-caption,.page-head,.inc-header,.fv>header,.owner-header,.design-header,.owner-inapp-head) :is(h1,h2,h3,p,small,.muted,.eyebrow,strong,span){color:#fff!important}
html[data-desktop-palette=mobile] :is(button,.btn,summary.ref-command,.ux-tile,.vx-shortcut>button,.master-arrow){background-color:var(--desktop-soft)!important;background-image:none!important;border-color:var(--desktop-line)!important;color:var(--desktop-ink)!important;text-shadow:none!important}
html[data-desktop-palette=mobile] :is(button,.btn,.ux-tile):hover:not(:disabled){background-color:#dcdff9!important;border-color:#a2a7d6!important;color:var(--desktop-ink)!important}
html[data-desktop-palette=mobile] :is(.btn-primary,button.primary,button[type=submit],[data-command=save],.inc-primary,.fv button.primary){background-color:var(--desktop-brand)!important;border-color:var(--desktop-brand)!important;color:#fff!important}
html[data-desktop-palette=mobile] :is(.btn-primary,button.primary,button[type=submit],[data-command=save],.inc-primary):hover:not(:disabled){background-color:var(--desktop-brand-strong)!important;color:#fff!important}
html[data-desktop-palette=mobile] :is(.rwc-caption,.vr-caption,.page-head) :is(.rwc-close,.window-minimize-46,.window-size-control>button,.rwc-pin){background-color:#ffffff20!important;border-color:#ffffff40!important;color:#fff!important}
html[data-desktop-palette=mobile] :is(.rwc-close,.modal-close):hover{background-color:#a53b3b!important;color:#fff!important}
html[data-desktop-palette=mobile] :is(input,select,textarea,.master-combo){background-color:var(--desktop-surface)!important;border-color:var(--desktop-line)!important;color:var(--desktop-ink)!important;caret-color:var(--desktop-brand-strong)!important;accent-color:var(--desktop-brand)!important}
html[data-desktop-palette=mobile] :is(input,textarea)::placeholder{color:var(--desktop-muted)!important}
html[data-desktop-palette=mobile] input[readonly]{background-color:var(--desktop-alternate)!important;color:var(--desktop-muted)!important}
html[data-desktop-palette=mobile] :is(input,select,textarea):focus{background-color:var(--desktop-focus)!important;color:var(--desktop-ink)!important;outline-color:var(--desktop-brand)!important}
html[data-desktop-palette=mobile] :is(button,a,summary,input,select,textarea):focus-visible{outline:2px solid var(--desktop-brand)!important;outline-offset:1px!important}
html[data-desktop-palette=mobile] #mainNav :is(button,a,summary):focus-visible{outline-color:#fff!important}
html[data-desktop-palette=mobile] :is(.master-options,.ref-picker,.ve-picker-box,.ve-account-dialog,dialog,.window-size-menu,.vx-dropdown,.reference-menu){background-color:var(--desktop-surface)!important;border-color:var(--desktop-line)!important;color:var(--desktop-ink)!important}
html[data-desktop-palette=mobile] table{border-color:#e3e2ef!important;color:var(--desktop-ink)!important}
html[data-desktop-palette=mobile] :is(th,table thead td){background-color:var(--desktop-soft)!important;color:var(--desktop-ink)!important;border-color:#e3e2ef!important}
html[data-desktop-palette=mobile] tbody tr>:is(td,th){background-color:var(--desktop-surface)!important;color:var(--desktop-ink)!important;border-color:#e3e2ef!important}
/* The active mobile scheme always stripes data; previous theme preferences remain stored for revert. */
html[data-desktop-palette=mobile] tbody tr:nth-child(even)>:is(td,th){background-color:var(--desktop-table-alternate)!important}
html[data-desktop-palette=mobile] tbody tr:hover>:is(td,th){background-color:var(--desktop-soft)!important}
html[data-desktop-palette=mobile] table td :is(input,select,textarea,.master-search,.master-combo,output){background-color:transparent!important;color:inherit!important}
html[data-desktop-palette=mobile] :is(.report-top-totals,.report-totals,.sales-commission-total,.rt-summary,.month-total>td,.period-total>td,tfoot td,tfoot th,[data-report-summary]>td){background-color:var(--desktop-soft)!important;color:var(--desktop-ink)!important;border-color:var(--desktop-line)!important}
html[data-desktop-palette=mobile] tbody tr:is(.month-total,.period-total,.rt-summary,[data-report-summary])>:is(td,th){background-color:var(--desktop-soft)!important;border-color:#e3e2ef!important}
html[data-desktop-palette=mobile] :is(.vp-invoice-totals,.ve-totals,.ir-payment-footer) :is(input,output,label,span){background-color:transparent!important;color:var(--desktop-ink)!important;border-color:var(--desktop-line)!important}
html[data-desktop-palette=mobile] :is(.master-option[aria-selected=true],[role=option][aria-selected=true],.vp-tree [aria-selected=true]>.vp-tree-label,.fv-tabs .active,.inc-tabs .inc-active,.f5-team-nav [aria-current=true],button.active,[role=tab][aria-selected=true]){background-color:var(--desktop-brand)!important;color:#fff!important;border-color:var(--desktop-brand)!important}
html[data-desktop-palette=mobile] tbody tr:is(.rwc-selected,.vx-selected,.ve-active,.vr-selected,.wu-current-row,.selected,[aria-selected=true])>td{background-color:var(--desktop-soft)!important}
html[data-desktop-palette=mobile] tbody tr>td:is(.rwc-selected,.people-cell,.ve-selected,.vr-selected,[aria-selected=true],:focus-within){background-color:var(--desktop-focus)!important;outline:2px solid var(--desktop-brand)!important;outline-offset:-2px!important}
html[data-desktop-palette=mobile] :is(td.rwc-selected,td.people-cell,td.ve-selected,td.vr-selected,td[aria-selected=true],td:focus-within) :is(input,select,textarea,.master-search,.master-combo){background-color:transparent!important}
html[data-desktop-palette=mobile] body.wu-modal-open #content :is(.people-cell,.rwc-selected){outline:none!important}
/* Semantic states remain distinct from branding and remain legible on selected rows. */
html[data-desktop-palette=mobile] body :is(.negative,.numeric-negative,.numeric-negative *,.cd-negative,.cd-overdue-count,.danger-text,.error-text,.ref-warning,.chart-negative){color:#a52d35!important}
html[data-desktop-palette=mobile] .cd-table tbody tr.cd-overdue td:is([data-cd-key=name],[data-cd-key=is_overdue],[data-cd-key=overdue]){background-color:#fff0ed!important;color:#9f3037!important}
html[data-desktop-palette=mobile] body :is(.positive,.success-text,.numeric-positive){color:#1c6a4d!important}
html[data-desktop-palette=mobile] :is(.warning,.owner-warning,.inc-warning,.fv-alert,.alert-warning){background-color:#fff4d8!important;color:#795719!important;border-color:#d3ae62!important}
html[data-desktop-palette=mobile] :is(.error,.danger,.alert-danger,.inc-alert,.owner-error){background-color:#fff0ed!important;color:#9f3037!important;border-color:#dcaaa9!important}
html[data-desktop-palette=mobile] :is(.success,.alert-success,.inc-success,.fv-badge.completed){background-color:#e3f4eb!important;color:#216849!important;border-color:#9ac9af!important}
html[data-desktop-palette=mobile] :is(.btn-danger,button.danger,[data-command=delete],#deleteTrade){background-color:#fff0ed!important;color:#9f3037!important;border-color:#cf9698!important}
html[data-desktop-palette=mobile] :is(.btn-danger,button.danger,[data-command=delete],#deleteTrade):hover{background-color:#9f3037!important;color:#fff!important}
}
}
/* Settings controls are the only new UI; no business-screen layout changes. */
.desktop-palette-choice{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0;padding:12px;border:1px solid #cdd2e2;border-radius:6px}
.desktop-palette-choice label{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.desktop-palette-choice select{min-height:32px;max-width:100%}.desktop-palette-choice p{flex-basis:100%;margin:3px 0;line-height:1.7}
@media print{.desktop-palette-choice{display:none!important}}
