/* One palette for operational pages, hosted windows and dialogs. Print keeps original documents. */
@media screen {
html.appearance504{--a-base:#020b1d;--a-panel:#0a1d37;--a-soft:#102b4b;--a-text:#eef6ff;--a-muted:#b5cee8;--a-line:#3e638a;--a-head:#0c315f;--a-active:#15477e;--a-shadow:#000b;--ink:var(--a-text);--muted:var(--a-muted);--line:var(--a-line);--panel:var(--a-panel);--border:var(--a-line);--surface:var(--a-panel);--text:var(--a-text);color-scheme:dark;background:var(--a-base)}
html.appearance504[data-appearance=pearl]{--a-base:#eaf5ff;--a-panel:#f7fbff;--a-soft:#e4f0fd;--a-text:#102f50;--a-muted:#426383;--a-line:#abc5df;--a-head:#dfedfc;--a-active:#d3e6fa;--a-shadow:#255a8526;color-scheme:light}
html.appearance504 body{color:var(--a-text);background:radial-gradient(ellipse at 40% 0,#237bff22,transparent 60%),var(--a-base)}
.appearance504 body.m504-web:not(.m504-home) .main-container{background:transparent!important;padding:16px 24px}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(.view-section,.app-shell,.app,.page-shell,main){color:var(--a-text)}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(.inventory-compact main,.inventory-rail,.summary article,.catalog,.tools,.search,.inventory-pages,.filters-bar,.series-main,.step-card,.stage-card,.tab-content){background:var(--a-panel)!important;color:var(--a-text)!important;border-color:var(--a-line)!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(.modal-form,.shift-card,.shift-list,.shift-open-form,.shift-body,.dialog,.modal-content,.checkout-card,.form-body){background:var(--a-panel)!important;color:var(--a-text)!important;border-color:var(--a-line)!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(.page-head h1,.summary strong,.inventory-rail h2,.page-head p,.inventory-rail small){color:var(--a-text)!important}
.appearance504 .app-shell{background:transparent!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(.view-section,.sale-panel,.results,.card,.panel,.summary-card,.stat-card,.kpi,.kpis>article,.inventory-panel,.p66-window,.cons-window,.backup69-window,.modal-card,.dialog-card,.dialog-body,.modal-body,.checkout-body,.checkout-breakdown,.checkout-summary,.filters,.search-toolbar,.product-search-wrap,.client-wrap,.client-search,.product-search,.product-table-wrap,.cash-panel,.report-head,.report-body,.record-list,.window-body,.caja-window,.cot-workspace-window,.caja-window-body,.cot-workspace-body){color:var(--a-text)!important;background:var(--a-panel)!important;border-color:var(--a-line)!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(dialog,[role=dialog],.wm-surface,.product-modal,.p66-window,.cons-window,.backup69-window,.caja-window,.cot-workspace-window){color:var(--a-text)!important;background:var(--a-panel)!important;border-color:var(--a-line)!important;border-radius:22px!important;box-shadow:inset 0 1px 2px #aacfff55,0 16px 50px var(--a-shadow)!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(.topbar,.moduleHeader,.page-head,.results-head,.modal-head,.dialog-head,.checkout-head,.p66-window-head,.cons-window-head,.caja-window-heading,.cot-workspace-heading,.window-head,.head,.table-toolbar,.search-toolbar,.checkout-total){color:var(--a-text)!important;background:linear-gradient(140deg,#368bff24,transparent),var(--a-head)!important;border-color:var(--a-line)!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(.caja-window-heading,.cot-workspace-heading,.window-head,.modal-head,.dialog-head,.checkout-head,.p66-window-head){border-bottom:1px solid var(--a-line)!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(.card,.panel,.results,.sale-panel,.summary-card,.stat-card,.kpi){border-radius:20px!important;box-shadow:inset 0 1px 2px #aacfff33,0 5px 18px var(--a-shadow)}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea):not(.m504 *){color:var(--a-text)!important;background:var(--a-soft)!important;border-color:var(--a-line)!important;border-radius:12px}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(input,textarea)::placeholder{color:var(--a-muted)!important;opacity:1}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(input,select,textarea):focus-visible{outline:2px solid #54a9ff;outline-offset:2px}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(label,.field-label,.eyebrow,.empty-table,.empty-table strong,.record-copy,.user-copy,.user-copy small,.hint,.report-note,.muted,.subtle,.view-section h2,.view-section h3){color:var(--a-muted)!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(table,thead,tbody,td,th){border-color:var(--a-line)!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(td,tbody tr){color:var(--a-text)!important;background:var(--a-panel)!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(th,thead td){color:var(--a-text)!important;background:var(--a-head)!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(tr:hover td,tr.selected td,tr.active td){background:var(--a-active)!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(td small,.code-cell,.final-cell,.money-cell,.result-code){color:var(--a-text)!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(.table-scroll,.table-wrap,.product-table-wrap,.search-results,.client-list,.user-menu,.commercial-nav,.additional-reports,.caja-window-footer,.cot-workspace-footer,.window-footer,.frame-rail){background:var(--a-panel)!important;color:var(--a-text)!important;border-color:var(--a-line)!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(.search-results button,.client-list button,.record-item,.record-list button,.commercial-nav a,.additional-reports a,.user-menu button,.ghost,.secondary,.btn:not(.primary),.caja-window-controls button,.wm-expand){color:var(--a-text)!important;background:var(--a-soft)!important;border-color:var(--a-line)!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(button,.btn):not(.m504 *){border-radius:14px}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(.avatar,.mini-avatar,.frame-rail-icon,.action-icon,.module-icon,.headIcon){border-radius:50%!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(.primary,.btn.primary,.action-price,.action-discount,.checkout-button){background:linear-gradient(150deg,#2088f2,#104dae)!important;color:#fff!important;border-color:#5eacff!important;box-shadow:inset 0 1px 2px #b8dfff55,0 3px 12px #0054bb33}
.appearance504 button:disabled{opacity:.48;cursor:not-allowed}
.appearance504 button:focus-visible,.appearance504 a:focus-visible{outline:3px solid #56acff;outline-offset:3px}
.appearance504 dialog::backdrop{background:#000816a8;backdrop-filter:blur(5px)}
.appearance504 .m504-support{background:var(--a-panel)!important;color:var(--a-text)!important}
.appearance504 #module504-shell{min-height:0;overflow:visible}.appearance504 #module504-shell .m504-header{padding:16px 26px}.appearance504 #module504-shell .m504-band{margin-bottom:16px}
.appearance504 #module504-shell .m504-main,.appearance504 #module504-shell .m504-footer{display:none}
.appearance504 #module504-shell .m504-header .appearance504-controls{margin-left:12px}
/* Caja tools retain their original actions and guards, in a horizontal toolbar. */
.appearance504-module .workspace{grid-template-columns:minmax(0,1fr)!important}
.appearance504-module .frame-rail{position:static!important;width:auto!important;min-width:0!important;max-width:100%!important;height:auto!important;grid-column:1/-1;padding:8px 12px!important;border:1px solid var(--a-line);border-radius:18px}
.appearance504-module .frame-rail-inner{width:100%!important;max-width:100%!important;overflow:visible!important}.appearance504-module .frame-rail-nav{display:flex!important;flex-wrap:wrap;gap:7px}.appearance504-module .frame-rail-action{width:auto!important;min-height:40px!important;display:flex;gap:8px;padding:8px 12px!important;color:var(--a-text)!important;background:var(--a-soft)!important;border-radius:22px!important}.appearance504-module .frame-rail-action[hidden]{display:none!important}
.appearance504-module .frame-rail-head,.appearance504-module .frame-rail-toggle{display:none!important}
.appearance504-module .app-shell{min-height:0!important;height:auto!important;grid-template-rows:auto auto!important}.appearance504-module .topbar{min-height:60px!important}.appearance504-module .sale-panel{min-height:300px}.appearance504-module .brand-block{display:none!important}.appearance504-module .app-shell>.topbar{grid-template-columns:1fr!important}.appearance504-module .right-hub{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto!important;align-items:center}
.appearance504-module .frame-rail:has(.frame-rail-inner[hidden]) .frame-rail-inner{display:block!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) .frame-rail{display:block!important;grid-row:auto!important;grid-column:1/-1!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) .frame-rail-inner{display:block!important;height:auto!important;max-height:none!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) .frame-rail{height:auto!important;min-height:0!important;overflow:visible!important;margin:0 12px 10px!important;padding:8px 12px!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) .frame-rail-nav{height:auto!important;min-height:0!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;padding:0!important;gap:8px!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) .frame-rail-inner{position:static!important;width:100%!important;padding:0!important;visibility:visible!important;opacity:1!important;transform:none!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) .frame-rail-action{height:42px!important;min-height:42px!important;width:auto!important;margin:0!important;display:flex!important;padding:7px 12px!important;border-radius:22px!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) .frame-rail-action[hidden]{display:none!important}
:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(.hold-toolbar,.hold-draft-toolbar,.sale-hold-toolbar,.shift-scroll,.shift-options label,.checkout-totals,.checkout-line,.inventory-rail a,.inventory-rail [data-serial-repair],.client-search strong,.client-name){background:var(--a-soft)!important;color:var(--a-text)!important;border-color:var(--a-line)!important}
html.appearance504[data-appearance=oled] :is(.data-warning,.warning){background:#59410d!important;color:#ffe8a2!important;border-color:#bc9039!important}
html.appearance504[data-appearance=oled] :is(.error,.data-error,[role=alert]:not([hidden])){color:#ffbfc9}
@media(max-width:760px){.appearance504 #module504-shell .m504-header{padding:14px 16px;flex-wrap:wrap}.appearance504 #module504-shell .m504-header .appearance504-controls{margin-left:0}.appearance504-module .right-hub{display:flex;flex-direction:column}.appearance504-module .quick-nav{width:100%}.appearance504-module .frame-rail-nav{gap:5px}.appearance504-module .frame-rail-action{font-size:12px}.appearance504 body.m504-web:not(.m504-home) .main-container{padding:12px}}
@media(prefers-reduced-motion:no-preference){:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(.btn,.frame-rail-action,.quick-nav button):hover:not(:disabled){filter:brightness(1.08)}:is(html.appearance504,html.appearance504 #module504-shell#module504-shell) :is(.btn,.frame-rail-action):active:not(:disabled){transform:scale(.98)}}
}
@media print{#module504-shell,#main504-shell{display:none!important}}

/* Palette only. Keep the approved Caja layout, controls and semantic action colors. */
@media screen {
html.appearance504 body#pos504-approved#pos504-approved#pos504-approved#pos504-approved {
  color:var(--a-text)!important;background:var(--a-base)!important;
}
html.appearance504 body#pos504-approved#pos504-approved#pos504-approved#pos504-approved .app-shell {background:var(--a-base)!important}
html.appearance504 body#pos504-approved#pos504-approved#pos504-approved#pos504-approved :is(.pos-window-body,.modal-card,.credits-pos-card,.credits-pos-layout,.credits-customer-panel,.credit-payment-panel,.credit-selected-head,.credit-invoices,.credit-customer-list button,.sale-panel,.product-table-wrap,.product-table td,.client-search,.product-search,.search-results,.client-list,.user-menu,.shift-card,.modal-form,.checkout-card,.checkout-body,.checkout-corner,.checkout-breakdown,.checkout-breakdown>div,.checkout-total-row,.checkout-total,.frame-rail,.sale-item-tools) {
  background:var(--a-panel)!important;color:var(--a-text)!important;border-color:var(--a-line)!important;
}
html.appearance504 body#pos504-approved#pos504-approved#pos504-approved#pos504-approved :is(.topbar,.product-table th,.results-head,.checkout-head,.modal-head,.dialog-head) {
  background:var(--a-head)!important;color:var(--a-text)!important;border-color:var(--a-line)!important;
}
html.appearance504 body#pos504-approved#pos504-approved#pos504-approved#pos504-approved :is(.product-search-wrap,.client-wrap,.frame-rail-action,.pos504-settings,.product-table tr.selected td,.hold-toolbar,.sale-hold-toolbar) {
  background:var(--a-soft)!important;color:var(--a-text)!important;border-color:var(--a-line)!important;
}
html.appearance504 body#pos504-approved#pos504-approved#pos504-approved#pos504-approved :is(.credit-customer-list .empty-list,.credit-empty-selection,.credits-search span,.field-label,.checkout-breakdown span,.checkout-total>span,.user-copy small,.empty-table,.empty-table strong,.sale-item-tools) {color:var(--a-muted)!important}
html.appearance504 body#pos504-approved#pos504-approved#pos504-approved#pos504-approved :is(.checkout-breakdown strong,.checkout-total strong,.client-search strong,.product-table td,.product-table td small,.user-copy strong,.topbar h1,.topbar .module-title) {color:var(--a-text)!important}
html.appearance504 body#pos504-approved#pos504-approved#pos504-approved#pos504-approved :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {background:var(--a-soft)!important;color:var(--a-text)!important;border-color:var(--a-line)!important}
html.appearance504 body#pos504-approved#pos504-approved#pos504-approved#pos504-approved .product-table tr:hover td {background:var(--a-active)!important}
}
