.sd-sort-button{border:0!important;background:transparent!important;color:inherit;font:inherit;font-weight:600;padding:0!important;min-height:28px!important;display:inline-flex;align-items:center;gap:5px;cursor:pointer;text-align:right}.sd-sort-button>span{font-size:12px;opacity:.45}.sd-sort-button[aria-pressed=true]{color:#00889a}.sd-sort-button[aria-pressed=true]>span{opacity:1}.sd-sort-button:focus-visible{outline:2px solid #00889a;outline-offset:3px}
@media(min-width:1151px){
 body.sd-dashboard{--sd-dash-sidebar:clamp(200px,14vw,232px);margin:0;height:100dvh;overflow:hidden;background:#f5f7fa;color:#10283f;font-family:ItzikHeebo,Arial,sans-serif}
 body.sd-dashboard .test-banner{height:18px;box-sizing:border-box;padding:1px 12px;font-size:10px;line-height:16px;background:#eef2f6}
 body.sd-dashboard #app{margin:0 var(--sd-dash-sidebar) 0 0!important;padding:10px 24px 8px!important;max-width:none;height:calc(100dvh - 18px);box-sizing:border-box;display:flex;flex-direction:column;gap:0;min-height:0}
 body.sd-dashboard #app>.top,body.sd-dashboard #app>.lead,body.sd-dashboard .sd-count-note{display:none}
 body.sd-dashboard .sd-dashboard-header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;margin-bottom:5px;flex-shrink:0}
 body.sd-dashboard .sd-dashboard-titles{min-width:190px}
 body.sd-dashboard .sd-dashboard-titles h1{font-size:26px;line-height:1.2;margin:0;font-weight:800;letter-spacing:-.4px;color:#10283f}
 body.sd-dashboard .sd-dashboard-titles p{font-size:12px;color:#6b7e95;margin:3px 0 0}
 body.sd-dashboard .sd-dashboard-header .sd-actions{display:flex;gap:8px;margin:0;flex-shrink:0}
 body.sd-dashboard .sd-actions button{font-size:13px;min-height:36px;padding:5px 12px;border-radius:6px;white-space:nowrap}
 body.sd-dashboard .sd-actions .sd-primary{background:#00889a;border-color:#00889a;color:#fff;box-shadow:0 2px 5px #00889a18}
 body.sd-dashboard .sd-actions .sd-service{color:#8952bd;border-color:#b38bd5;background:#fff}
 body.sd-dashboard .sd-actions .sd-refresh{margin:0}
 body.sd-dashboard #sd-navigation-bar{min-height:29px;padding:1px 6px;margin:0 0 8px;border:1px solid #e2e9f0;border-radius:6px;background:#ffffffa8;flex-shrink:0;gap:8px}
 body.sd-dashboard #sd-navigation-bar button{min-height:25px;padding:1px 9px;font-size:11px;border-radius:5px}
 body.sd-dashboard #sd-navigation-bar [data-sd-navigation-title]{font-size:12px}
 body.sd-dashboard #sd-navigation-bar [role=status]{font-size:10px}
 body.sd-dashboard .sd-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 8px;flex-shrink:0}
 body.sd-dashboard .sd-metric{width:100%;min-height:74px;height:74px;box-sizing:border-box;padding:10px 14px;border:1px solid #dce5ed;border-top:2px solid currentColor;border-radius:7px;background:#fff;box-shadow:0 2px 8px #16304c03;display:flex;justify-content:space-between;align-items:center}
 body.sd-dashboard .sd-metric>span{font-size:13px}
 body.sd-dashboard .sd-metric b{font-size:25px;line-height:1.1;margin-top:3px;color:#10283f}
 body.sd-dashboard .sd-metric small{display:none}
 body.sd-dashboard .sd-metric>svg{width:38px;height:38px;padding:9px}
 body.sd-dashboard .sd-metric.sd-wait>svg{background:#fff5e5}
 body.sd-dashboard .sd-metric.sd-ready>svg{background:#e5f5ef}
 body.sd-dashboard .sd-metric.sd-domain>svg{background:#f4eaff}
 body.sd-dashboard .sd-production-metric{position:relative;min-height:104px;height:auto;border:1px solid #dce5ed;border-top:2px solid #1765b4;border-radius:7px;overflow:hidden;background:#fff}
 body.sd-dashboard .sd-production-metric .sd-metric{align-items:flex-start;padding-top:7px;min-height:52px;height:auto;flex:1;border:0}
 body.sd-dashboard .sd-production-metric .sd-metric>svg{align-self:center}
 body.sd-dashboard .sd-production-chips{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;background:transparent;border:0;margin:0;padding:0 8px 8px}body.sd-dashboard .sd-production-chips .sd-approved-waiting{grid-column:1/-1}body.sd-dashboard .sd-metrics>.sd-metric{height:100%;min-height:104px}
 body.sd-dashboard .sd-production-chips button{padding:1px 5px;min-height:20px;font-size:10px;border:1px solid #d5e6ee;border-radius:5px;background:#f0f7fa;line-height:1.4}
 body.sd-dashboard .sd-attention{height:32px;min-height:32px;box-sizing:border-box;padding:3px 10px;margin:0 0 8px;border-radius:6px;border-color:#f1d39a;background:#fff8e9;flex-shrink:0}
 body.sd-dashboard .sd-attention strong{font-size:13px}.sd-dashboard .sd-attention small{font-size:11px}
 body.sd-dashboard .sd-attention button{font-size:11px;min-height:24px}
 body.sd-dashboard .sd-table-card{display:flex;flex-direction:column;flex:1;min-height:0;box-sizing:border-box;padding:8px 10px 5px;border-radius:10px;border:1px solid #dce5ed;box-shadow:0 2px 8px #16304c03}
 body.sd-dashboard .sd-table-title{display:flex;align-items:center;gap:10px;min-height:34px;flex-shrink:0;flex-wrap:nowrap}
 body.sd-dashboard .sd-table-title h2{font-size:17px;white-space:nowrap;font-weight:700;margin:0}
 body.sd-dashboard .sd-tabs{display:flex;gap:2px;margin-inline:auto}
 body.sd-dashboard .sd-tabs button{padding:3px 10px;min-height:30px;font-size:12px;border-bottom-width:2px;white-space:nowrap}
 body.sd-dashboard .sd-tabs button.selected{color:#00889a;border-bottom-color:#00889a}
 body.sd-dashboard .sd-delivery-scopes{display:flex;align-items:center;flex-wrap:nowrap;gap:5px;margin:0;padding:0}
 body.sd-dashboard .sd-delivery-scopes button{padding:3px 8px;min-height:29px;font-size:11px;white-space:nowrap;border-radius:5px}
 body.sd-dashboard .sd-delivery-scopes button[aria-pressed=true]{background:#ecf8f4;color:#167b62;border-color:#50a88b}
 body.sd-dashboard .sd-delivery-scopes small{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
 body.sd-dashboard .sd-filters.toolbar{display:flex;flex-wrap:nowrap;gap:6px;align-items:center;margin:6px 0 7px;flex-shrink:0}
 body.sd-dashboard .sd-filters #search{flex:2.5 1 280px;min-width:180px;min-height:32px;height:32px;padding:4px 9px;font-size:12px;border-radius:5px}
 body.sd-dashboard .sd-filters select{flex:1 1 100px;min-width:85px;max-width:175px;min-height:32px;height:32px;font-size:12px;padding:3px 7px;border-radius:5px}
 body.sd-dashboard .sd-more-filter>summary{padding:5px 8px;min-height:32px;box-sizing:border-box;font-size:11px;border-radius:5px;white-space:nowrap}
 body.sd-dashboard .sd-attention-toggle{font-size:11px;margin:0}
 body.sd-dashboard .sd-table-scroll{flex:1;min-height:0;max-height:none!important;height:auto;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
 body.sd-dashboard .sd-columns{grid-template-columns:minmax(200px,2.2fr) minmax(65px,.65fr) minmax(90px,.9fr) minmax(145px,1.6fr) minmax(85px,.85fr) minmax(95px,1fr) minmax(160px,1.6fr);gap:8px;min-width:1000px}
 body.sd-dashboard .sd-table-head{padding:4px 9px;min-height:31px;box-sizing:border-box;position:sticky;top:0;z-index:2;background:#edf3f9;color:#6479a0;border-radius:5px;font-size:12px}
 body.sd-dashboard .sd-row.order-row:nth-child(even){background:#f3f7fb}
 body.sd-dashboard .sd-row>summary{height:52px;min-height:52px;box-sizing:border-box;padding:5px 9px!important;font-size:12px;line-height:1.3}
 body.sd-dashboard .sd-row>summary:hover{background:#eaf3fb!important}
 body.sd-dashboard .sd-client strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.sd-dashboard .sd-row small{font-size:10px;margin-top:2px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.sd-dashboard .sd-client small{display:block;-webkit-line-clamp:unset}
 body.sd-dashboard .sd-pill{padding:2px 7px;gap:3px;font-size:11px;max-width:100%;box-sizing:border-box;white-space:nowrap}
 body.sd-dashboard .sd-pill>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
 body.sd-dashboard .sd-pill svg{width:12px;height:12px}
 body.sd-dashboard .sd-balance{font-size:12px}
 body.sd-dashboard .sd-next .sd-pill{padding:3px 7px;min-height:25px;border-radius:5px}
 body.sd-dashboard .sd-next>small{display:none}
 body.sd-dashboard .sd-table-footer{padding-top:5px;min-height:26px;font-size:10px;flex-shrink:0;gap:8px}
 body.sd-dashboard .sd-pages{gap:7px}.sd-dashboard .sd-pages button{min-height:23px;padding:1px 8px;font-size:11px}
 body.sd-dashboard .sd-legend{font-size:10px}
 body.sd-dashboard #sd-sidebar{width:var(--sd-dash-sidebar);box-sizing:border-box;padding:24px 14px 18px;background:linear-gradient(155deg,#0d2841,#0a1e34);border-left:1px solid #1b354d;color:#f1f5fa}
 body.sd-dashboard #sd-sidebar .sd-brand{font-size:clamp(20px,1.43vw,24px);margin-bottom:27px}
 body.sd-dashboard #sd-sidebar .sd-brand small{font-size:12px;color:#b5c6db;margin-top:6px}
 body.sd-dashboard #sd-sidebar nav{gap:5px}
 body.sd-dashboard #sd-sidebar button{font-size:15px;min-height:44px;padding:10px 12px;margin-bottom:3px;gap:12px;border-radius:6px;color:#f1f5fa}
 body.sd-dashboard #sd-sidebar button.selected{background:#07536c;color:#fff}
 body.sd-dashboard #sd-sidebar [data-open-knowledge]{background:transparent}
 body.sd-dashboard #sd-sidebar hr{margin:8px 0;border-color:#294258}
 body.sd-dashboard #sd-sidebar .sd-sidebar-bottom{gap:12px}
 body.sd-dashboard #sd-sidebar .sd-sidebar-bottom small{color:#b5c6db}
 body.sd-dashboard #sd-sidebar svg{width:20px;height:20px}
 body.sd-dashboard #sd-sidebar .crm-nav-badge{background:#07536c!important;color:#d0f2ff!important}
}
@media(min-width:1151px) and (max-width:1399px){body.sd-dashboard #app{padding-inline:14px!important}body.sd-dashboard .sd-dashboard-titles h1{font-size:23px}body.sd-dashboard .sd-dashboard-titles{min-width:155px}body.sd-dashboard .sd-actions button{font-size:12px;padding-inline:9px}body.sd-dashboard .sd-table-title{gap:5px}body.sd-dashboard .sd-table-title h2{font-size:15px}body.sd-dashboard .sd-tabs button{padding-inline:7px}body.sd-dashboard .sd-delivery-scopes button{padding-inline:6px;font-size:10px}}
/* Owner-approved dashboard, 2026-11-08. Scoped; retain ItzikHeebo. */
body.sd-shop{--sd-bg:#f3f5f8;--sd-surface:#fff;--sd-text:#143044;--sd-muted:#5b6f82;--sd-line:#d9e1ea;--sd-brand:#0c7a86;--sd-brand-soft:#e7f5f6;--sd-warn:#c47b0a;--sd-ok:#1a7a54;--sd-alert:#c0392b;--sd-service:#5b4ea3;--sd-ship:#215f86;--sd-factory:#3d5a73}
body.sd-shop .sd-kpi-block{flex-shrink:0;margin:0 0 8px;font-family:ItzikHeebo,Arial,sans-serif}
body.sd-shop .sd-kpi-block>h2{display:flex;justify-content:space-between;align-items:center;margin:0 2px 5px;font-size:11px;font-weight:700;line-height:1.3;color:var(--sd-muted)}
body.sd-shop .sd-kpi-block>h2 small{font-size:11px;font-weight:500}
body.sd-shop .sd-approved-grid{display:grid;gap:8px}
body.sd-shop .sd-carpentry{grid-template-columns:repeat(7,minmax(0,1fr))}
body.sd-shop .sd-shipping{grid-template-columns:repeat(3,minmax(0,1fr))}
body.sd-shop .sd-action-row{grid-template-columns:1fr 1.2fr 1fr}
body.sd-shop .sd-approved-tile{--tile-accent:var(--sd-factory);--tile-bg:#f4f7fa;background:var(--tile-bg)!important;border:1px solid var(--sd-line)!important;border-top:3px solid var(--tile-accent)!important;border-radius:8px!important;min-height:82px;box-sizing:border-box;width:100%;padding:9px 12px 8px;text-align:right;display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:1px;box-shadow:0 1px 2px #14304408;color:var(--sd-text);font-family:ItzikHeebo,Arial,sans-serif;cursor:pointer;min-width:0}
body.sd-shop .sd-carpentry .sd-approved-tile{min-height:76px;padding:8px 10px}
body.sd-shop .sd-tile-ship{--tile-accent:var(--sd-ship);--tile-bg:#eef5fa}
body.sd-shop .sd-tile-warn{--tile-accent:var(--sd-warn);--tile-bg:#fff7eb}
body.sd-shop .sd-tile-ok{--tile-accent:var(--sd-ok);--tile-bg:#eef8f3}
body.sd-shop .sd-tile-service{--tile-accent:var(--sd-service);--tile-bg:#f4f1fb}
body.sd-shop .sd-approved-tile[aria-pressed=true],body.sd-shop .sd-approved-tile:focus-visible{border-color:var(--tile-accent)!important;box-shadow:0 0 0 2px var(--tile-accent)!important;outline:0}
body.sd-shop .sd-tile-top{display:flex;justify-content:space-between;align-items:flex-start;gap:7px}
body.sd-shop .sd-tile-label{font-size:13px;font-weight:600;line-height:1.25;color:#3d5563;min-width:0}
body.sd-shop .sd-approved-tile b{font-size:28px;font-weight:750;line-height:1;color:#143044!important;font-variant-numeric:tabular-nums;letter-spacing:-.4px}
body.sd-shop .sd-approved-tile small{display:block;color:var(--sd-muted);font-size:11px;font-weight:500;line-height:1.3;margin-top:2px}
body.sd-shop .sd-tile-icon{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#ffffffbb;color:var(--tile-accent);flex-shrink:0}
body.sd-shop .sd-tile-icon svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;fill:none}
body.sd-shop .sd-step{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid #d5dee8;color:var(--tile-accent);font-size:11px;font-weight:700;flex-shrink:0}
body.sd-shop .sd-record-search{position:relative;display:flex;align-items:center;flex:1 1 320px;min-width:220px;max-width:380px;margin:0}
body.sd-shop .sd-record-search input{height:38px;width:100%;border:1px solid var(--sd-line);border-radius:8px;background:#fff;padding:6px 35px 6px 32px;font:500 13px ItzikHeebo,Arial,sans-serif;color:var(--sd-text)}
body.sd-shop .sd-record-search>svg{position:absolute;right:11px;width:16px;height:16px;stroke:var(--sd-muted);stroke-width:1.75;fill:none;pointer-events:none}
body.sd-shop .sd-record-search>button{position:absolute;left:3px;min-height:28px!important;height:28px;padding:0 7px!important;border:0!important;background:transparent!important;color:var(--sd-muted)!important}
body.sd-shop .sd-actions>button{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--sd-line);color:var(--sd-text);border-radius:8px}
body.sd-shop .sd-actions>button.sd-primary{background:var(--sd-brand)!important;border-color:var(--sd-brand)!important;color:#fff!important}
body.sd-shop .sd-actions>button.sd-service{color:var(--sd-text);border-color:var(--sd-line);background:#fff}
body.sd-shop .sd-actions>button>svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
body.sd-shop .sd-filter-pill{display:inline-flex;border:1px solid #ead7a8;border-radius:20px;background:#fff7eb;color:#945900;padding:2px 8px;font-size:11px;font-weight:500}
body.sd-shop .sd-filter-banner{display:flex;align-items:center;gap:10px;background:#fff7eb;border:1px solid #ead7a8;color:#7a4a08;border-radius:7px;padding:5px 10px;font-size:12px;margin:0 0 7px;min-height:34px;flex-shrink:0}
body.sd-shop .sd-filter-banner button{margin-right:auto;border:1px solid var(--sd-line);background:#fff;border-radius:5px;min-height:28px;padding:2px 10px;font-size:12px;color:var(--sd-text)}
body.sd-shop .sd-source-error{font-size:12px;color:var(--sd-warn);margin:0 0 6px}
body.sd-shop .sd-date-overdue{color:var(--sd-alert);font-weight:700}
body.sd-shop .sd-service-row{min-height:54px;padding:6px 9px;border-bottom:1px solid #e7edf2;font-size:13px;font-weight:500}
body.sd-shop .sd-service-row:nth-child(even){background:#f6f8fb}
body.sd-shop .sd-service-row small{display:block;font-size:10px;color:var(--sd-muted)}
body.sd-shop .sd-service-row button{background:transparent;border:0;color:var(--sd-brand);font:inherit;text-align:right;padding:3px 0}
body.sd-shop .sd-inventory{background:#fff;border:1px solid var(--sd-line);border-radius:10px;padding:20px;font-family:ItzikHeebo,Arial,sans-serif;color:var(--sd-text)}
body.sd-shop .sd-inventory h2{font-size:26px;font-weight:800;margin:0}
body.sd-shop .sd-inventory header p{color:var(--sd-muted)}
body.sd-shop #sd-inventory-search{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
body.sd-shop #sd-inventory-q{flex:1;min-width:200px;max-width:600px;border:1px solid var(--sd-line);border-radius:8px;padding:10px}
body.sd-shop .sd-inventory-scroll{overflow:auto;max-height:65vh}
body.sd-shop .sd-inventory table{width:100%;border-collapse:collapse;text-align:right;font-size:13px}
body.sd-shop .sd-inventory th{background:#eef3f7;color:var(--sd-muted);position:sticky;top:0}
body.sd-shop .sd-inventory td,body.sd-shop .sd-inventory th{padding:10px;border-bottom:1px solid var(--sd-line)}
body.sd-shop .sd-picker-list{display:flex;flex-direction:column;gap:7px;margin:15px 0}
@media(min-width:1151px){
 body.sd-dashboard{background:var(--sd-bg);color:var(--sd-text)}
 body.sd-dashboard .test-banner{display:none}
 body.sd-dashboard #app{height:100dvh;padding:10px 22px 8px!important}
 body.sd-dashboard #sd-sidebar{background:linear-gradient(155deg,#0c2438,#081c2c)}
 body.sd-dashboard #sd-sidebar button.selected{background:#0a5463}
 body.sd-dashboard .sd-dashboard-titles h1{color:var(--sd-text);font-size:26px;font-weight:800}
 body.sd-dashboard .sd-dashboard-header{gap:14px;min-height:52px;margin-bottom:8px}
 body.sd-dashboard .sd-dashboard-header .sd-actions{flex:1;min-width:0;align-items:center;justify-content:flex-end;flex-shrink:1}
 body.sd-dashboard .sd-dashboard-titles{min-width:160px}
 body.sd-dashboard .sd-actions>button{font-size:13px;min-height:38px;padding:5px 12px}
 body.sd-dashboard .sd-row>summary{font-size:13px;font-weight:500}
 body.sd-dashboard .sd-pill{font-size:11px;font-weight:500}
 body.sd-dashboard .sd-table-title{flex-wrap:wrap}
}
@media(max-width:1150px){body.sd-shop .sd-actions{display:flex;flex-wrap:wrap;gap:8px}body.sd-shop .sd-record-search{order:-1;flex-basis:100%;max-width:none}body.sd-shop .sd-carpentry{grid-template-columns:repeat(4,minmax(0,1fr))}body.sd-shop .sd-tile-label{font-size:12px}body.sd-shop .sd-kpi-block>h2 small{display:none}}
@media(max-width:650px){body.sd-shop .sd-carpentry{grid-template-columns:repeat(2,minmax(0,1fr))}body.sd-shop .sd-shipping,body.sd-shop .sd-action-row{grid-template-columns:1fr}body.sd-shop .sd-approved-tile{min-height:80px}body.sd-shop .sd-filter-banner{flex-wrap:wrap}}

/* Home redesign 2026-11-10: warm paper + salon teal, Heebo (ItzikHeebo already self-hosted). Desktop shop only. */
body.sd-shop,body.sd-dashboard{
 --sd-bg:#f3eee6;--sd-surface:#fffcf7;--sd-text:#1c2430;--sd-muted:#6a6258;--sd-line:#e4dcd0;
 --sd-brand:#0f6e6a;--sd-brand-2:#14282c;--sd-accent:#c4a056;--sd-ok:#1e7a52;--sd-warn:#b7760b;
 --sd-alert:#b42318;--sd-service:#5b4ea3;--sd-ship:#215f86;--sd-factory:#3d5a73;
 --sd-sidebar:#14282c;--sd-sidebar-text:#f4efe6;--sd-sidebar-muted:#c9c0b0;
 background:var(--sd-bg);color:var(--sd-text);font-family:ItzikHeebo,Heebo,Arial,sans-serif
}
body.sd-shop .sd-sidebar,body.sd-dashboard #sd-sidebar{
 background:linear-gradient(165deg,#14282c,#0e1c20)!important;color:var(--sd-sidebar-text);border-left:1px solid #1f3a3d
}
body.sd-shop .sd-brand,body.sd-dashboard #sd-sidebar .sd-brand{color:#fff}
body.sd-shop .sd-brand span,body.sd-dashboard #sd-sidebar .sd-brand span{color:var(--sd-accent)}
body.sd-shop .sd-brand small,body.sd-dashboard #sd-sidebar .sd-brand small{color:var(--sd-sidebar-muted)!important}
body.sd-shop .sd-sidebar button,body.sd-dashboard #sd-sidebar button{color:var(--sd-sidebar-text)}
body.sd-shop .sd-sidebar button.selected,body.sd-dashboard #sd-sidebar button.selected{background:var(--sd-brand)!important;color:#fff}
body.sd-shop .sd-sidebar button:hover,body.sd-dashboard #sd-sidebar button:hover{background:#1b3c40}
body.sd-shop .sd-sidebar hr,body.sd-dashboard #sd-sidebar hr{border-color:#2a4a4e!important}
body.sd-shop .sd-sidebar-bottom small,body.sd-dashboard #sd-sidebar .sd-sidebar-bottom small{color:var(--sd-sidebar-muted)!important}
body.sd-shop .sd-actions .sd-primary,body.sd-dashboard .sd-actions .sd-primary,body.sd-shop .sd-actions>button.sd-primary{background:var(--sd-brand)!important;border-color:var(--sd-brand)!important}
body.sd-shop .sd-approved-tile{--tile-bg:#fffcf7;border-color:var(--sd-line)!important}
body.sd-shop .sd-table-card{background:var(--sd-surface);border-color:var(--sd-line)}
body.sd-dashboard .sd-table-head{background:#efe8db!important;color:var(--sd-muted)!important}
body.sd-dashboard .sd-row.order-row:nth-child(even){background:#f7f1e6}
body.sd-shop .sd-inventory{background:var(--sd-surface);border:1px solid var(--sd-line);border-radius:12px;padding:22px 24px 16px;flex:1;min-height:0;display:flex;flex-direction:column;box-shadow:0 1px 2px #14282c08}
body.sd-shop .sd-inventory header{margin-bottom:14px}
body.sd-shop .sd-inventory h2{font-size:28px;font-weight:800;margin:0;letter-spacing:-.4px}
body.sd-shop .sd-inventory header p{color:var(--sd-muted);margin:6px 0 0;font-size:14px}
body.sd-shop #sd-inventory-search{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
body.sd-shop #sd-inventory-search label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
body.sd-shop #sd-inventory-q{flex:1;min-width:280px;max-width:720px;height:46px;min-height:46px;border:1px solid var(--sd-line);border-radius:10px;padding:8px 14px;background:#fff;font:500 16px ItzikHeebo,Heebo,Arial,sans-serif;color:var(--sd-text)}
body.sd-shop #sd-inventory-q:focus{outline:3px solid #0f6e6a55;border-color:var(--sd-brand)}
body.sd-shop #sd-inventory-search button{background:var(--sd-brand);color:#fff;border-color:var(--sd-brand);min-height:46px;padding:8px 20px;font-weight:700}
body.sd-shop #sd-inventory-search small{color:var(--sd-muted);font-size:12px}
body.sd-shop #sd-inventory-results{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px}
body.sd-shop .sd-inventory-groups{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:8px}
body.sd-shop .sd-inventory-groups li{background:#f7f1e6;border:1px solid var(--sd-line);border-radius:8px;padding:10px 12px;font-size:13px}
body.sd-shop .sd-inventory-groups small{display:block;color:var(--sd-muted);margin-top:4px}
body.sd-shop .sd-inv-avail{color:var(--sd-ok);font-weight:700;margin-inline-start:8px}
body.sd-shop .sd-inv-reserved{color:var(--sd-warn);font-weight:600;margin-inline-start:8px}
body.sd-shop .sd-inventory-scroll{overflow:auto;flex:1;min-height:240px;max-height:none;border:1px solid var(--sd-line);border-radius:8px}
body.sd-shop .sd-inventory table{width:100%;border-collapse:collapse;text-align:right;font-size:13px}
body.sd-shop .sd-inventory th{background:#efe8db;color:var(--sd-muted);position:sticky;top:0;font-weight:600}
body.sd-shop .sd-inventory td,body.sd-shop .sd-inventory th{padding:9px 10px;border-bottom:1px solid var(--sd-line);vertical-align:top}
body.sd-shop .sd-inventory td small{display:block;color:var(--sd-muted);font-size:11px;margin-top:2px}
body.sd-shop .sd-inventory tr.sd-inv-held{background:#fff7eb}
body.sd-shop .sd-inventory tr.sd-inv-empty{background:#fbf6f4;color:var(--sd-muted)}
body.sd-shop .sd-inventory tr.is-active,body.sd-shop .sd-inventory tr[data-inv-row]:focus{outline:2px solid var(--sd-brand);outline-offset:-2px;background:#e8f4f2}
@media(min-width:1151px){
 body.sd-dashboard{background:var(--sd-bg);color:var(--sd-text)}
 body.sd-dashboard #sd-sidebar{background:linear-gradient(165deg,#14282c,#0e1c20)}
 body.sd-dashboard #sd-sidebar button.selected{background:var(--sd-brand)}
}

/* Inventory product images — desktop shop, 2026-11-10 */
body.sd-shop .sd-inv-group{display:flex;gap:12px;align-items:flex-start}
body.sd-shop .sd-inv-photo{width:88px;flex:0 0 88px;display:flex;flex-direction:column;gap:4px;align-items:stretch}
body.sd-shop .sd-inv-photo-cell{width:96px;vertical-align:middle}
body.sd-shop .sd-inv-thumb{position:relative;display:block;width:88px;height:88px;padding:0;border:1px solid var(--sd-line);border-radius:8px;overflow:hidden;background:#fff;cursor:zoom-in}
body.sd-shop .sd-inv-thumb img{width:100%;height:100%;object-fit:cover;display:block}
body.sd-shop .sd-inv-count{position:absolute;left:4px;bottom:4px;background:#14282ce6;color:#fff;border-radius:10px;font:700 10px ItzikHeebo,Arial;padding:1px 6px}
body.sd-shop .sd-inv-photo.is-empty{min-height:88px;border:1px dashed var(--sd-line);border-radius:8px;align-items:center;justify-content:center;color:var(--sd-muted);font-size:11px;padding:6px;text-align:center;background:#faf7f1}
body.sd-shop .sd-inv-photo small{color:var(--sd-muted);font-size:10px;line-height:1.2}
body.sd-shop .sd-inv-add{background:#fff;border:1px solid var(--sd-brand);color:var(--sd-brand);border-radius:6px;padding:3px 6px;font:600 11px ItzikHeebo,Arial;cursor:pointer}
body.sd-shop .sd-inv-add:hover{background:#e8f4f2}
#sd-inv-lightbox,#sd-inv-upload{position:fixed;inset:0;background:#14282ccc;display:flex;align-items:center;justify-content:center;z-index:80;padding:24px}
.sd-inv-lightbox-card,.sd-inv-upload-card{position:relative;background:var(--sd-surface,#fffcf7);color:var(--sd-text,#1c2430);border-radius:14px;padding:22px 24px 18px;max-width:720px;width:min(720px,100%);max-height:90vh;overflow:auto;box-shadow:0 16px 40px #14282c44;font-family:ItzikHeebo,Heebo,Arial,sans-serif}
.sd-inv-lightbox-card img,.sd-inv-preview{display:block;max-width:100%;max-height:62vh;margin:10px auto;border-radius:8px;background:#efe8db}
.sd-inv-close{position:absolute;top:10px;left:10px;width:36px;height:36px;border:0;border-radius:18px;background:#efe8db;font-size:22px;cursor:pointer}
.sd-inv-note{color:var(--sd-muted,#6a6258);font-size:13px}
.sd-inv-lightbox-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.sd-inv-lightbox-actions button,.sd-inv-upload-card button[type=submit]{min-height:40px;padding:6px 14px;border-radius:8px;border:1px solid var(--sd-line,#e4dcd0);background:#fff;font:600 13px ItzikHeebo,Arial;cursor:pointer}
.sd-inv-upload-card button[type=submit],.sd-inv-lightbox-actions .sd-primary{background:var(--sd-brand,#0f6e6a);border-color:var(--sd-brand,#0f6e6a);color:#fff}
.sd-inv-danger{color:#b42318;border-color:#e3b2ad!important}
.sd-inv-drop{display:flex;align-items:center;justify-content:center;min-height:120px;border:2px dashed var(--sd-line,#e4dcd0);border-radius:10px;background:#fff;margin:12px 0;cursor:pointer;font:600 14px ItzikHeebo,Arial;color:var(--sd-muted,#6a6258);text-align:center;padding:16px}
.sd-inv-drop.is-over{border-color:var(--sd-brand,#0f6e6a);background:#e8f4f2;color:var(--sd-brand,#0f6e6a)}
.sd-inv-upload-card{display:flex;flex-direction:column;align-items:stretch}
.sd-inv-primary-opt{display:flex;gap:8px;align-items:center;font-size:13px}
.sd-inv-primary-opt input{width:16px;height:16px;flex:0 0 16px;margin:0;accent-color:var(--sd-brand,#0f6e6a)}
.sd-inv-upload-card .error{color:#b42318;min-height:1.2em}

/* Inventory grouped rows — typography and collapsed product+warehouse rows, 2026-11-10 */
body.sd-shop .sd-inventory{font-size:16.5px}
body.sd-shop .sd-inventory header p{font-size:15px;line-height:1.45}
body.sd-shop #sd-inventory-search small{font-size:13px}
body.sd-shop #sd-inventory-q{font-size:17px;height:48px;min-height:48px}
body.sd-shop .sd-inv-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0 0 8px}
body.sd-shop .sd-inv-toolbar p{margin:0;font-size:15px}
body.sd-shop .sd-inv-expand-controls{display:flex;gap:8px}
body.sd-shop .sd-inv-expand-controls button{min-height:36px;padding:6px 12px;border:1px solid var(--sd-line);border-radius:8px;background:#fff;font:600 14px ItzikHeebo,Heebo,Arial,sans-serif;color:var(--sd-text);cursor:pointer}
body.sd-shop .sd-inv-expand-controls button:hover{background:#e8f4f2;border-color:var(--sd-brand)}
body.sd-shop .sd-inv-table{width:100%;border-collapse:collapse;text-align:right;font-size:16.5px}
body.sd-shop .sd-inv-table th{background:#efe8db;color:var(--sd-muted);position:sticky;top:0;z-index:1;font-weight:700;font-size:14px}
body.sd-shop .sd-inv-table td,body.sd-shop .sd-inv-table th{padding:14px 12px;border-bottom:1px solid var(--sd-line);vertical-align:middle}
body.sd-shop .sd-inv-group-row{cursor:pointer}
body.sd-shop .sd-inv-group-row:hover{background:#f4f1e8}
body.sd-shop .sd-inv-name{display:block;font-size:18px;font-weight:700;line-height:1.3;color:var(--sd-text)}
body.sd-shop .sd-inv-avail-cell,body.sd-shop .sd-inv-loc-avail{white-space:nowrap}
body.sd-shop .sd-inv-avail-strong{display:inline-block;font-size:24px;font-weight:800;line-height:1;color:var(--sd-ok);font-variant-numeric:tabular-nums;letter-spacing:-.3px}
body.sd-shop .sd-inv-avail-zero{display:inline-block;font-size:24px;font-weight:800;line-height:1;color:var(--sd-alert);opacity:.8;font-variant-numeric:tabular-nums}
body.sd-shop .sd-inv-locators .sd-inv-avail-strong,body.sd-shop .sd-inv-locators .sd-inv-avail-zero{font-size:20px}
body.sd-shop .sd-inv-loc-count{font-weight:600;white-space:nowrap;color:var(--sd-text)}
body.sd-shop .sd-inv-chevron{display:inline-block;color:var(--sd-brand);font-size:12px;margin-inline-end:4px}
body.sd-shop .sd-inv-date{font-variant-numeric:tabular-nums}
body.sd-shop .sd-inv-date.is-empty{color:var(--sd-muted)}
body.sd-shop .sd-inv-locator-block>td{padding:0;background:#f7f1e6}
body.sd-shop .sd-inv-locators{width:100%;border-collapse:collapse;text-align:right;font-size:16px;background:var(--sd-surface)}
body.sd-shop .sd-inv-locators caption{caption-side:top;text-align:right;padding:10px 14px 4px;font:700 14px ItzikHeebo,Heebo,Arial;color:var(--sd-muted)}
body.sd-shop .sd-inv-locators th{background:#efe8db;font-size:13px;padding:8px 12px;position:static}
body.sd-shop .sd-inv-locators td{padding:10px 12px}
body.sd-shop .sd-inv-photo{width:auto;flex:none;display:flex;flex-direction:column;gap:4px;align-items:flex-start}
body.sd-shop .sd-inv-photo-stack{display:flex;align-items:flex-start;gap:6px}
body.sd-shop .sd-inv-photo-cell{width:120px;vertical-align:middle}
body.sd-shop .sd-inv-add-icon{width:36px;height:36px;min-width:36px;min-height:36px;padding:0;display:inline-grid;place-items:center;border:1px solid var(--sd-brand);border-radius:8px;background:#fff;color:var(--sd-brand);cursor:pointer;flex:0 0 36px}
body.sd-shop .sd-inv-add-icon svg{width:20px;height:20px}
body.sd-shop .sd-inv-add-icon:hover{background:#e8f4f2}
body.sd-shop .sd-inv-photo.is-empty{min-height:88px;min-width:88px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;padding:8px;border:1px dashed var(--sd-line);border-radius:8px;background:#faf7f1;color:var(--sd-muted);font-size:12px}
body.sd-shop .sd-inventory tr.sd-inv-held{background:#fff7eb}
body.sd-shop .sd-inventory tr.sd-inv-empty{background:#fbf6f4}
body.sd-shop .sd-inventory tr.sd-inv-group-row.is-active,body.sd-shop .sd-inventory tr.sd-inv-group-row:focus{outline:2px solid var(--sd-brand);outline-offset:-2px;background:#e8f4f2}
