body[data-theme=peach]{--bg:#fbefe6;--panel:#fff7f0;--edge:#d8c0b1;--text:#342b28;--muted:#665950;--purple:#a54d28;--positive:#246b53;--negative:#ab3744;--soft-head:#f0ded1;--button-ink:#fff7f0;--orange:#a54d28;--gold:#a54d28;--series-current:#a54d28;--series-base:#246b53;color-scheme:light}
body[data-theme=paper]{--bg:#f1f0eb;--panel:#fdfcf7;--edge:#c8c5ba;--text:#30332f;--muted:#62645d;--purple:#546b82;--positive:#25664c;--negative:#a03c44;--soft-head:#e7e7df;--button-ink:#fdfcf7;--orange:#546b82;--gold:#546b82;--series-current:#546b82;--series-base:#25664c;color-scheme:light}
body[data-theme=sage]{--bg:#eaf0e9;--panel:#f7faf5;--edge:#becdbd;--text:#293a30;--muted:#58695e;--purple:#3d715c;--positive:#276045;--negative:#9e3c47;--soft-head:#dce7dc;--button-ink:#f7faf5;--orange:#3d715c;--gold:#3d715c;--series-current:#3d715c;--series-base:#276045;color-scheme:light}
body[data-theme=mist]{--bg:#eaf0f4;--panel:#f8fbfd;--edge:#bccbd5;--text:#2c3e4b;--muted:#5c6e7a;--purple:#446b88;--positive:#26624f;--negative:#a33546;--soft-head:#dbe5ec;--button-ink:#f8fbfd;--orange:#446b88;--gold:#446b88;--series-current:#446b88;--series-base:#26624f;color-scheme:light}
body[data-theme=slate-soft]{--bg:#202a32;--panel:#2a343d;--edge:#4e606c;--text:#e5eaf0;--muted:#b1bec8;--purple:#95b6ca;--positive:#9ed3bb;--negative:#f1b3b9;--soft-head:#34414b;--button-ink:#1c2b35;--orange:#95b6ca;--gold:#95b6ca;--series-current:#95b6ca;--series-base:#9ed3bb;color-scheme:dark}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .panel,body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .kpi,body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .sidebar,body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .page-head{background:var(--panel);border-color:var(--edge);box-shadow:none}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) button,body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) select,body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) input,body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) summary{box-shadow:none;text-shadow:none}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) button,body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .quiet,body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .tabs button{background:var(--panel);color:var(--text);border-color:var(--edge)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .primary,body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .tabs button.active{background:var(--purple);color:var(--button-ink);border-color:var(--purple);box-shadow:none}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .sidebar nav a{color:var(--text)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .sidebar nav a.active{background:var(--soft-head);color:var(--text);border-color:var(--purple);box-shadow:inset 3px 0 var(--purple)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) th{background:var(--soft-head);color:var(--text);border-color:var(--edge)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) td{border-color:var(--edge)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) input,body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) select{background:var(--panel);color:var(--text);border-color:var(--edge)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .matrix-allocation{box-shadow:none;background:color-mix(in srgb,var(--store-color) 3%,var(--panel))}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .matrix-store-cell{background:var(--panel)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .matrix-store-head{background:color-mix(in srgb,var(--store-color) 9%,var(--panel))!important;color:var(--text)!important}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .matrix-store-totals article{background:color-mix(in srgb,var(--store-color) 5%,var(--panel));box-shadow:none}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .matrix-entered,body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .matrix-store-totals article>b{color:var(--text)!important}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .matrix-source-head,body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .matrix-source-cell,body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) tfoot .matrix-source-summary{background:color-mix(in srgb,#cf8a51 7%,var(--panel))!important}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .matrix-day{color:var(--text);border-bottom-color:var(--edge)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .matrix-week{color:var(--negative);background:color-mix(in srgb,var(--negative) 5%,var(--panel));border-color:color-mix(in srgb,var(--negative) 45%,var(--edge))}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .matrix-sales,body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .matrix-receipt,body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .matrix-receipt>small{color:var(--negative)!important}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .matrix-receipt.pending,body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .matrix-receipt.none{color:var(--muted)!important}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .matrix-control{color:var(--text)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .matrix-control.has-error{color:var(--negative)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .order-sub-popup,body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .order-receiver-menu{box-shadow:0 8px 18px #0002;border-color:var(--edge)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .source-chip{color:var(--muted);border-color:var(--edge)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .source-chip.good{color:var(--positive)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .source-chip.bad{color:var(--negative)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]) .matrix-source-head,body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]) .matrix-source-cell,body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]) tfoot .matrix-source-summary,body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]) .matrix-source-used{color:#81502e!important}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .hero{background:linear-gradient(120deg,var(--soft-head),var(--panel));color:var(--text)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .hero h2{color:var(--text)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) .hero p{color:var(--muted)}body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]){background:var(--bg);color:var(--text);background-image:none;transition:none}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) :is(h1,h2,h3,.kpi strong,.panel-head h2,td){color:var(--text)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist],[data-theme=slate-soft]) :is(.order-help,.eyebrow,.field>label,.kpi>small,.page-head>div>p,.context,footer){color:var(--muted)}

/* Readable light matrix and UYDA peach accents. */
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]){--text:#211b18;--muted:#51453e}
body[data-theme=peach]{--bg:#f9eee7;--panel:#fffaf6;--edge:#ceaa94;--soft-head:#f1c5a7;--purple:#f29b60;--button-ink:#24170e;--orange:#bd4c13;--gold:#bd4c13}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]) .orders-main :is(.matrix-summary-label,.matrix-source-summary){background:var(--soft-head)!important;color:var(--text)!important;box-shadow:none}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]) .orders-main :is(.matrix-summary-label,.matrix-source-summary) :is(b,small,span){color:var(--text)!important}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]) .orders-main :is(.matrix-stock,.matrix-stock>small,.matrix-shelf,.matrix-unavailable,.matrix-product-line>div>small,.matrix-store-head>small,.matrix-store-totals article>span,.order-help,.order-table-tools label){color:var(--text)!important}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]) .orders-main :is(.matrix-summary-label,.matrix-source-summary,.matrix-store-totals article){font-size:13px;font-weight:600}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]) .orders-main :is(button,.order-tabs button){background:color-mix(in srgb,var(--purple) 24%,var(--panel));color:var(--text);border-color:var(--purple);font-weight:650}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]) .orders-main :is(button.primary,.order-tabs button.active){background:var(--purple);color:var(--button-ink);border-color:var(--purple)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]) .orders-main button:hover{background:color-mix(in srgb,var(--purple) 50%,var(--panel));color:var(--text)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]) .product-photo,body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]) .product-photo small{background:#edb18a!important;color:#2b1c13!important;border-color:#bc7952;font-weight:600}
body[data-theme=peach] .matrix-store-totals article{background:#f7dbc7!important;color:#211b18!important}
body[data-theme=peach] .matrix-source-cell{background:#f6ddca!important;color:#211b18!important}

body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]) :is(.order-flow strong,.order-flow>b,#subtitle,.nav-caption,.side-foot,.side-foot small,.eyebrow){color:var(--muted)!important}

/* Document review is a body-level dialog: reset inherited dark sticky columns. */
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]) .order-document-dialog .doc-review-scroll :is(tbody,tr,td,td:first-child){background:var(--panel)!important;color:var(--text)!important}
body[data-theme=peach] .order-document-dialog{background:#f6ddca;color:#21170f;border-color:#b9774f}
body[data-theme=peach] .order-document-dialog .doc-review-scroll :is(tbody,tr,td,td:first-child){background:#edb58f!important;color:#21170f!important;border-color:#b67c56}
body[data-theme=peach] .order-document-dialog .doc-review-scroll tbody tr:nth-child(even)>td{background:#f2c5a6!important;color:#21170f!important}
body[data-theme=peach] .order-document-dialog .doc-review-scroll th{background:#d99469!important;color:#21170f!important;border-color:#b67c56}
body[data-theme=peach] .order-document-dialog .doc-review-scroll td:first-child{font-weight:650;font-size:14px;line-height:1.5}
body[data-theme=peach] .order-document-dialog :is(input,select){background:#fff5ec;color:#21170f;border-color:#bf845d}
body[data-theme=peach] .order-document-dialog button{background:#efb187;color:#21170f;border-color:#b9774f;font-weight:650}
body[data-theme=peach] .order-document-dialog button.primary{background:#ed985f;color:#21170f}
body[data-theme=peach] .order-document-dialog button:hover{background:#e9a16f;color:#21170f}

/* Complete light palettes also set the shared dashboard surface tokens. */
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]){--surface:var(--panel);--surface2:var(--soft-head);--control:var(--soft-head);--ink:var(--text);--subtle:var(--muted);--line:var(--edge);--accent2:var(--purple)}
body[data-theme=slate-soft]{--surface:var(--panel);--surface2:var(--soft-head);--control:var(--soft-head);--ink:var(--text);--subtle:var(--muted);--line:var(--edge);--accent2:var(--purple)}
body[data-theme=peach]{--bg:#f8e7da;--panel:#fff4eb;--soft-head:#efbd9b;--edge:#ce9975;--text:#24180f;--muted:#624331;--purple:#ef985f;--button-ink:#24180f}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]) :is(th:first-child,td:first-child){background:var(--surface);color:var(--text)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]) tfoot td{background:var(--surface2)!important;color:var(--text)!important}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]) :is(.alert-item,.alert-item:nth-child(2),.alert-item:nth-child(3),.pill,.tag,.chip,.demo-badge,.avatar){background:var(--surface2);border-color:var(--edge);color:var(--text)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]) :is(.alert-item h3,.alert-item p,.segment-summary,.segment-total,.segment-total b,.table-foot,.hint,.source-status,.source-status details,.source-status small){color:var(--text)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]) :is(.charttip,dialog,#toast,#orderToast){background:var(--surface);color:var(--text);border-color:var(--edge)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]) svg text{fill:var(--muted)}
body:is([data-theme=peach],[data-theme=paper],[data-theme=sage],[data-theme=mist]) tbody tr:hover td{background:var(--surface2)}
body[data-theme=peach] :is(.primary,.tabs button.active){background:#ef985f;color:#24180f;border-color:#ba6d3c}
body[data-theme=peach] :is(.progress,.margin-bar){background:#e1b18f}
body[data-theme=peach] .progress i{background:linear-gradient(90deg,#ff5000,#eea36e)}
body[data-theme=peach] dialog::backdrop{background:#9a5a3340}
/* Original UYDA image, split into its exact symbol and word for gentle motion. */
.brand .brand-art{display:block;position:relative;flex:0 0 136px;width:136px;aspect-ratio:1968/668}
.brand .brand-mark,.brand .brand-word{position:absolute;inset:0;display:block}
.brand .brand-mark{clip-path:inset(0 65% 0 0)}
.brand .brand-word{clip-path:inset(0 0 0 35%);animation:uyda-word-float 4s ease-in-out infinite;will-change:transform}
.brand .brand-art img{position:absolute;left:0;top:0;width:136px;height:100%;max-height:none;object-fit:contain}
@keyframes uyda-word-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
/* Non-interactive, faint watermark; it never changes layout or captures clicks. */
body::before{content:'';position:fixed;top:0;right:0;bottom:0;left:190px;z-index:4;pointer-events:none;background:url('assets/brand-orange.png') center 43%/min(72vw,1050px) auto no-repeat;opacity:.028;animation:uyda-watermark-drift 26s ease-in-out infinite;will-change:transform}
@keyframes uyda-watermark-drift{0%,100%{transform:translate(-7px,5px) scale(.985)}50%{transform:translate(7px,-5px) scale(1.015)}}
@media(max-width:720px){body::before{left:0;bottom:65px;background-size:86vw auto}}
@media(prefers-reduced-motion:reduce){.brand .brand-word,body::before{animation:none;will-change:auto}}

/* UYDA orange identifies the selected item; hover stays a lighter peach. */
body[data-theme=peach] .sidebar nav a:not(.active):hover,body[data-theme=peach] .sidebar nav a:not(.active):focus-visible{background:#f9c9a7;color:#24180f;border-color:#eea16b;box-shadow:none}
body[data-theme=peach] .sidebar nav a.active{background:#ff5000;color:#21170f;border-color:#cc4207;box-shadow:inset 3px 0 #b83900;font-weight:700}
body[data-theme=peach] .sidebar nav a.active span{color:#21170f}
body[data-theme=peach] :is(button.primary,.tabs button.active,.order-tabs button.active){background:#ff5000;color:#21170f;border-color:#cc4207;font-weight:700}
body[data-theme=peach] button:not(:disabled):hover{background:#f9c9a7;color:#24180f;border-color:#eea16b;box-shadow:none}
