.stock-dashboard,.sd-dialog { --sd-line:var(--line); --sd-muted:var(--muted); --sd-ink:var(--ink); --sd-blue:var(--blue); --sd-green:#28846a; --sd-amber:#b86d22; --sd-expected:#757d79; }
.stock-dashboard { container-type:inline-size; color:var(--sd-ink); }
.stock-dashboard button,.stock-dashboard input,.stock-dashboard select { font:inherit; }
.sd-heading { display:flex; justify-content:space-between; align-items:center; gap:24px; margin:4px 0 26px; }
.sd-heading h1 { font-size:29px; letter-spacing:-1px; line-height:1.2; margin:7px 0 10px; }
.sd-heading p { margin:0; font-size:13px; color:var(--sd-muted); }.sd-heading p span { padding:0 6px; }
.sd-eyebrow { font-size:10px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--sd-muted); }
.sd-actions { display:flex; gap:9px; align-items:center; flex-wrap:wrap; }
.sd-actions button { white-space:nowrap; font-size:12px; padding:11px 14px; }
.sd-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid var(--sd-line); border-radius:17px; background:var(--surface); margin-bottom:24px; overflow:hidden; }
.sd-metrics>button,.sd-metrics>div { min-width:0; display:flex; flex-direction:column; align-items:flex-start; padding:21px 23px; gap:7px; background:transparent; border:0; border-radius:0; border-right:1px solid var(--sd-line); text-align:left; color:var(--sd-ink); box-shadow:none; }
.sd-metrics>:last-child { border-right:0; }#workspace .sd-metrics>button:hover { background:var(--blue-soft); }
.sd-metrics>*>span { color:var(--sd-muted); font-size:12px; font-weight:600; }.sd-metrics strong { font-size:32px; font-weight:650; letter-spacing:-1px; line-height:1.25; display:flex; align-items:center; gap:13px; }
.sd-metrics small { color:var(--sd-muted); font-size:10px; font-weight:400; }.sd-metric-total { font-size:18px!important; letter-spacing:0; }
.sd-dot { width:8px; height:8px; border-radius:50%; display:inline-block; }.sd-dot.amber { background:#e2a257; }.sd-dot.blue { background:#7596e1; }.sd-dot.violet { background:#a292ce; }
.sd-layout { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr); gap:22px; align-items:start; }.sd-main,.sd-sidebar { display:grid; gap:22px; min-width:0; }
.sd-card { background:var(--surface); border:1px solid var(--sd-line); border-radius:17px; overflow:hidden; }
.sd-card-head { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:21px 23px 15px; }.sd-card h2 { font-size:18px; letter-spacing:-.45px; margin:5px 0 0; display:flex; align-items:center; gap:9px; }.sd-soft-label { white-space:nowrap; background:var(--canvas); color:var(--sd-muted); font-size:10px; padding:6px 9px; border-radius:7px; }
.sd-trend-controls { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:2px 23px 6px; }.sd-trend-controls select { max-width:62%; width:240px; border:1px solid var(--sd-line); background:var(--surface); padding:8px 10px; border-radius:8px; font-size:11px; color:var(--sd-ink); }.sd-trend-controls>div { text-align:right; }.sd-trend-controls strong { display:block; font-size:24px; font-weight:650; line-height:1.2; }.sd-trend-controls span { display:block; font-size:9px; color:var(--sd-muted); max-width:180px; margin-top:4px; }
.sd-trend-svg { display:block; width:100%; height:auto; padding:4px 12px 0; overflow:visible; box-sizing:border-box; }.sd-gridline { stroke:var(--sd-line); stroke-width:1; }.sd-chart-label { fill:var(--sd-muted); font-family:inherit; font-size:10px; }.sd-trend-line { fill:none; stroke:var(--sd-blue); stroke-width:2.8; stroke-linejoin:round; stroke-linecap:round; }.sd-trend-point { fill:var(--surface); stroke:var(--sd-blue); stroke-width:2.5; }
.sd-caption { font-size:10px; line-height:1.6; color:var(--sd-muted); padding:0 23px; margin:8px 0 18px; }
.sd-text-button { border:0; background:transparent; box-shadow:none; padding:4px 0; font-size:10px!important; color:var(--sd-blue); font-weight:600; white-space:nowrap; }.sd-text-button:hover { text-decoration:underline; background:transparent; }
.sd-filter-bar { display:flex; flex-wrap:wrap; align-items:center; gap:12px; justify-content:space-between; padding:0 23px 16px; }.sd-segments { display:flex; gap:2px; padding:3px; border-radius:8px; background:var(--canvas); }.sd-segments button { border:0; box-shadow:none; background:transparent; padding:7px 9px; color:var(--sd-muted); font-size:10px; border-radius:6px; white-space:nowrap; }#workspace .sd-segments button.active { background:var(--blue-soft); color:var(--sd-blue); box-shadow:0 1px 3px #1b29400b; }.sd-segments button span { margin-left:4px; color:var(--sd-amber); }.sd-filter-bar input { flex:1; min-width:130px; max-width:200px; font-size:11px; padding:8px 10px; border:1px solid var(--sd-line); border-radius:8px; background:var(--surface); }
.stock-dashboard .sd-table-wrap { overflow:auto; max-height:420px; max-block-size:420px; overscroll-behavior:contain; }.sd-table { width:100%; border-collapse:collapse; font-size:11px; text-align:left; }.sd-table th { padding:10px 18px; color:var(--sd-muted); font-size:9px; font-weight:600; border-top:1px solid var(--sd-line); border-bottom:1px solid var(--sd-line); background:var(--canvas); position:sticky; top:0; z-index:1; }.sd-table th:first-child,.sd-table td:first-child { padding-left:23px; }.sd-table td { padding:13px 18px; border-bottom:1px solid var(--sd-line); vertical-align:middle; }.sd-table tr:last-child td { border-bottom:0; }.sd-table td strong { display:block; font-size:11px; font-weight:600; }.sd-table td small { display:block; margin-top:4px; color:var(--sd-muted); font-size:9px; line-height:1.4; }.sd-table td:first-child { min-width:160px; }.sd-table td:nth-child(3) { min-width:120px; }.sd-table td:nth-child(4) { padding-left:0; padding-right:15px; }
.sd-status { font-size:10px; font-weight:500; white-space:nowrap; }.sd-status.low { color:var(--sd-amber); }.sd-status.healthy { color:var(--sd-green); }.sd-status.muted { color:var(--sd-muted); }.sd-level-track { height:3px; background:#eaf0ee; border-radius:3px; margin-top:7px; max-width:110px; overflow:hidden; }.sd-level-track>span { height:100%; display:block; border-radius:3px; background:#72b49c; }.sd-level-track>span.low { background:#e5af6c; }.sd-row-actions { display:flex; align-items:center; gap:4px; justify-content:flex-end; }.sd-row-actions>button { font-size:10px; padding:6px 8px; border-radius:7px; white-space:nowrap; }.sd-row-actions>button:disabled { opacity:.6; }
.stock-dashboard .sd-icon-button { min-width:28px; width:28px; height:28px; padding:0; border:0; background:transparent; color:var(--sd-muted); font-size:19px; box-shadow:none; display:inline-grid; place-items:center; border-radius:7px; }.stock-dashboard .sd-icon-button:hover { background:var(--blue-soft); }
.sd-count-badge { display:inline-grid; place-items:center; min-width:21px; height:21px; font-size:10px; background:var(--blue-soft); border-radius:6px; color:var(--sd-blue); letter-spacing:0; }
#workspace .sd-add-suggested { display:flex; justify-content:space-between; align-items:center; width:calc(100% - 46px); margin:0 23px 15px; border:1px solid var(--sd-line); background:var(--blue-soft); padding:11px 12px; font-size:11px!important; color:var(--blue); border-radius:9px; box-shadow:none; }
.sd-supplier-group { padding:0 23px; }.sd-supplier-group h3 { display:flex; justify-content:space-between; color:var(--sd-muted); text-transform:uppercase; font-size:9px; letter-spacing:.8px; font-weight:650; margin:18px 0 4px; }.sd-supplier-group h3 span { color:var(--sd-muted); font-weight:400; }.sd-shopping-row { display:flex; gap:8px; align-items:center; padding:13px 0; border-bottom:1px solid var(--sd-line); }.sd-shopping-row:last-child { border-bottom:0; }.sd-shopping-row label { display:flex; align-items:center; gap:10px; flex:1; min-width:0; margin:0; font-size:11px; }.sd-shopping-row input[type=checkbox] { appearance:auto; accent-color:var(--blue); width:16px; height:16px; min-width:16px; margin:0; }.sd-shopping-row strong { display:block; font-weight:550; font-size:11px; line-height:1.4; }.sd-shopping-row small { display:block; margin-top:3px; color:var(--sd-muted); font-size:9px; }.sd-shopping-row.checked strong { text-decoration:line-through; color:var(--sd-muted); }.sd-checked-items { margin:8px 23px 18px; border-top:1px solid var(--sd-line); padding-top:13px; }.sd-checked-items summary { color:var(--sd-muted); font-size:10px; cursor:pointer; }
.sd-empty,.sd-chart-empty { padding:27px 23px; text-align:center; color:var(--sd-muted); }.sd-empty>strong,.sd-chart-empty>strong { display:block; font-size:12px; color:var(--sd-ink); font-weight:550; }.sd-empty p,.sd-chart-empty p { font-size:11px; line-height:1.65; margin:8px auto 0; max-width:290px; }.sd-empty>span,.sd-chart-empty>span { display:block; color:var(--sd-muted); font-size:32px; line-height:1.3; margin-bottom:12px; }.sd-chart-empty { min-height:160px; display:flex; flex-direction:column; justify-content:center; }.sd-shopping-empty { padding:28px 23px 37px; }.sd-variance-empty { padding:25px 23px 28px; }
.sd-chart-legend { display:flex; justify-content:flex-end; padding:0 23px 10px; gap:15px; color:var(--sd-muted); font-size:10px; }.sd-chart-legend span { display:flex; align-items:center; gap:5px; }.sd-chart-legend i { width:7px; height:7px; border-radius:2px; }.sd-chart-legend .expected { background:var(--sd-expected); }.sd-chart-legend .counted { background:var(--sd-blue); }
.sd-variance-list { padding:0 23px; }.sd-variance-list article { display:grid; grid-template-columns:minmax(120px,1.1fr) minmax(100px,1.4fr) 40px; column-gap:18px; align-items:center; padding:13px 0; border-top:1px solid var(--sd-line); }.sd-variance-name strong { font-size:11px; font-weight:550; }.sd-variance-name small { display:block; color:var(--sd-muted); font-size:9px; margin-top:3px; }.sd-variance-bars { display:grid; gap:5px; padding-right:27px; }.sd-variance-bars>div { display:flex; align-items:center; gap:6px; height:9px; }.sd-variance-bars span { display:block; min-width:1px; height:6px; border-radius:3px; }.sd-variance-bars .expected { background:var(--sd-expected); }.sd-variance-bars .counted { background:var(--sd-blue); }.sd-variance-bars small { font-size:9px; color:var(--sd-muted); flex:none; }.sd-variance-delta { text-align:right; font-size:13px; font-weight:600; }.sd-variance-delta.negative { color:#ba7350; }.sd-variance-delta.positive { color:#3e7e6a; }.sd-variance-delta.matched { color:var(--sd-muted); }.sd-variance-delta small { display:block; font-size:8px; color:var(--sd-muted); font-weight:400; }.sd-variance-source { grid-column:1/-1; color:var(--sd-muted); font-size:9px; margin:8px 0 0; }
.sd-assistant-card { border:1px solid var(--sd-line); border-radius:17px; background:linear-gradient(125deg,var(--blue-soft),var(--canvas)); padding:23px; }.sd-assistant-mark { width:29px; height:29px; }.sd-assistant-mark .snapstock-logo { display:block; width:29px; height:29px; }.sd-assistant-card h3 { font-size:16px; letter-spacing:-.4px; margin:12px 0 8px; }.sd-assistant-card p { font-size:12px; color:var(--sd-muted); line-height:1.6; max-width:280px; margin:0; }.sd-assistant-card button { display:flex; align-items:center; justify-content:space-between; width:100%; border:1px solid var(--sd-line); background:var(--surface); border-radius:9px; font-size:11px; margin-top:18px; padding:11px 13px; }
.sd-count-note { display:flex; gap:13px; padding:4px 9px; color:var(--sd-muted); }.sd-count-note>span { font-size:23px; color:var(--sd-muted); }.sd-count-note strong { font-size:11px; font-weight:550; color:var(--sd-ink); }.sd-count-note p { font-size:10px; line-height:1.6; margin:5px 0 7px; }.sd-count-note button { padding:0; border:0; background:transparent; color:var(--blue); box-shadow:none; font-size:10px; }
.sd-error { background:#fff3f0; border:1px solid #f0d5cb; border-radius:9px; padding:12px 14px; font-size:12px; color:#8c4a39; }.sd-notice { color:#43735e; background:#f1f8f4; border:1px solid #dcece3; border-radius:9px; padding:11px 14px; font-size:11px; margin:0 0 18px; }.sd-sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.sd-dialog { width:min(510px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); padding:0; border:1px solid var(--sd-line); border-radius:18px; box-shadow:0 24px 90px #14223c33; color:var(--sd-ink); background:var(--surface); }.sd-dialog::backdrop { background:#14223745; backdrop-filter:blur(4px); }.sd-dialog form { margin:0; }.sd-dialog header { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:23px 25px; border-bottom:1px solid var(--sd-line); }.sd-dialog h2 { margin:5px 0 0; font-size:22px; letter-spacing:-.6px; }.sd-dialog-body { padding:22px 25px; }.sd-dialog label { display:flex; flex-direction:column; gap:7px; color:var(--sd-muted); font-size:11px; font-weight:550; margin-bottom:17px; }.sd-dialog input,.sd-dialog select { width:100%; box-sizing:border-box; border:1px solid var(--sd-line); border-radius:8px; background:var(--surface); padding:10px 12px; color:var(--sd-ink); font-size:13px; font-weight:400; }.sd-dialog input:disabled { background:var(--canvas); color:var(--sd-muted); }.sd-dialog input:focus,.sd-dialog select:focus { outline:2px solid var(--blue); outline-offset:1px; }.sd-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }.sd-help { font-size:11px; color:var(--sd-muted); line-height:1.6; margin:0 0 17px; }.sd-expected-editor { border-top:1px solid var(--sd-line); padding-top:16px; margin:3px 0 18px; }.sd-expected-editor summary { font-size:11px; color:var(--blue); cursor:pointer; margin-bottom:14px; }.sd-dialog footer { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:17px 25px; border-top:1px solid var(--sd-line); background:var(--canvas); }.sd-dialog footer>div { display:flex; gap:9px; }.sd-dialog footer button { padding:10px 14px; font-size:11px; }.sd-dialog .sd-remove { color:#a75f53; border:0; background:transparent; padding-left:0; }
@container(max-width:1000px) { .sd-layout { grid-template-columns:minmax(0,1fr) minmax(270px,.85fr); gap:17px; }.sd-metrics>button,.sd-metrics>div { padding:18px 17px; }.sd-heading { align-items:flex-start; }.sd-heading h1 { font-size:25px; }.sd-actions { justify-content:flex-end; }.sd-table td,.sd-table th { padding-left:12px; padding-right:12px; }.sd-table td:first-child { min-width:130px; }.sd-table td:nth-child(3) { min-width:105px; }.sd-trend-controls { align-items:flex-start; }.sd-trend-controls select { max-width:62%; font-size:10px; }.sd-variance-list article { grid-template-columns:minmax(95px,1fr) minmax(80px,1.2fr) 35px; gap:12px; } }
@container(max-width:790px) { .sd-heading { display:block; }.sd-actions { justify-content:flex-start; margin-top:17px; }.sd-layout { grid-template-columns:1fr; }.sd-sidebar { grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; }.sd-shopping { grid-row:span 2; }.sd-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }.sd-metrics>:nth-child(2) { border-right:0; }.sd-metrics>:nth-child(-n+2) { border-bottom:1px solid var(--sd-line); }.sd-metrics>button,.sd-metrics>div { padding:17px 21px; }.sd-table td:first-child { min-width:160px; } }
@container(max-width:520px) { .sd-sidebar { grid-template-columns:1fr; }.sd-heading h1 { font-size:25px; }.sd-actions { flex-wrap:wrap; }.sd-card-head { padding:18px 17px 14px; }.sd-card-head h2 { font-size:17px; }.sd-card-head .sd-text-button { white-space:normal; text-align:right; max-width:95px; }.sd-filter-bar { padding:0 17px 15px; }.sd-filter-bar input { max-width:none; }.sd-table td:first-child,.sd-table th:first-child { padding-left:17px; }.sd-trend-controls { padding-left:17px; padding-right:17px; }.sd-trend-controls select { max-width:60%; }.sd-trend-controls strong { font-size:22px; }.sd-caption { padding:0 17px; }.sd-variance-list { padding:0 17px; }.sd-metrics strong { font-size:28px; }.sd-metrics>*>span { font-size:11px; }.sd-metrics small { font-size:9px; } }
@media(prefers-reduced-motion:reduce) { .stock-dashboard * { scroll-behavior:auto!important; } }

.sd-loading { display:grid; align-content:start; gap:14px; padding:27px; min-height:215px; border:1px solid var(--sd-line); border-radius:17px; background:var(--surface); color:var(--sd-muted); font-size:12px; }
.sd-loading>span { display:block; height:11px; border-radius:6px; background:var(--sd-line); width:84%; max-width:600px; }
.sd-loading>span:first-child { margin-top:15px; }.sd-loading>span:nth-child(2) { width:66%; }.sd-loading>span:nth-child(3) { width:44%; }
@media(prefers-reduced-motion:no-preference) { .sd-loading>span { background:linear-gradient(100deg,var(--sd-line) 30%,var(--canvas) 48%,var(--sd-line) 66%); background-size:220% 100%; animation:stock-overview-loading 2.2s ease-in-out infinite; } }
@keyframes stock-overview-loading { from { background-position:110% 0; } to { background-position:-110% 0; } }

/* POS reconciliation keeps the original shopping/count controls intact. */
.sd-pos { margin-bottom:24px; }
.sd-pos-head { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px 25px 20px; }
.sd-pos-head h2 { font-size:23px; letter-spacing:-.65px; margin:6px 0 8px; }
.sd-pos-head p { margin:0; color:var(--sd-muted); font-size:12px; line-height:1.6; max-width:600px; }
.sd-pos-head label { display:grid; gap:7px; flex:none; font-size:10px; color:var(--sd-muted); margin:0; }
.sd-pos-head select { background:var(--surface); color:var(--sd-ink); border:1px solid var(--sd-line); border-radius:9px; padding:10px 12px; min-width:190px; font-size:12px; }
.sd-pos-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:0 25px; border:1px solid var(--sd-line); border-radius:12px; background:var(--canvas); overflow:hidden; }
.sd-pos-summary>button,.sd-pos-summary>div { display:grid; align-content:start; gap:5px; text-align:left; min-width:0; border:0; border-radius:0; border-right:1px solid var(--sd-line); background:transparent; box-shadow:none; padding:16px 18px; color:var(--sd-ink); }
.sd-pos-summary>:last-child { border-right:0; }#workspace .sd-pos-summary>button:hover,#workspace .sd-pos-summary>button.active { background:var(--blue-soft); }
.sd-pos-summary span { font-size:11px; color:var(--sd-muted); }.sd-pos-summary strong { font-size:27px; letter-spacing:-.7px; font-weight:650; }.sd-pos-summary small { font-size:9px; line-height:1.5; color:var(--sd-muted); }
.sd-pos-body { display:grid; grid-template-columns:minmax(260px,.85fr) minmax(330px,1.15fr); gap:0; padding:24px 25px; }
.sd-pos-products { min-width:0; max-height:660px; overflow:auto; padding-right:23px; border-right:1px solid var(--sd-line); overscroll-behavior:contain; }
.sd-pos-products-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:14px; }
.sd-pos-products-heading strong { font-size:12px; }.sd-pos-products-heading>span { font-size:10px; color:var(--sd-muted); }
.sd-pos-products .sd-chart-legend { padding:0 0 12px; justify-content:flex-start; }
.stock-dashboard .sd-pos-product { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px 12px; width:100%; text-align:left; border:1px solid transparent; border-bottom-color:var(--sd-line); background:transparent; border-radius:9px; padding:13px 11px; margin:0 0 3px; box-shadow:none; color:var(--sd-ink); }
#workspace .stock-dashboard .sd-pos-product.selected { background:var(--blue-soft); border-color:var(--blue); }#workspace .stock-dashboard .sd-pos-product:not(.selected):hover { background:var(--canvas); }
.sd-pos-product-name strong { display:block; font-size:12px; font-weight:600; }.sd-pos-product-name small { display:block; color:var(--sd-muted); font-size:10px; margin-top:4px; }
.sd-pos-product-delta { font-size:11px; font-weight:550; color:var(--sd-muted); align-self:center; }.sd-pos-product-delta.short { color:#b56844; }.sd-pos-product-delta.surplus { color:#337d67; }
.sd-pos-bars { display:grid; gap:6px; grid-column:1/-1; padding:3px 50px 2px 0; }
.sd-pos-bars>span { display:flex; align-items:center; gap:7px; height:9px; }.sd-pos-bars i { display:block; height:6px; border-radius:3px; flex:none; min-width:1px; }.sd-pos-bars i.expected { background:var(--sd-expected); }.sd-pos-bars i.counted { background:var(--sd-blue); }.sd-pos-bars small { font-size:9px; color:var(--sd-muted); white-space:nowrap; }.sd-pos-bars .sd-pos-unknown { font-size:9px; color:#9b7c4c; height:14px; }
.sd-pos-detail { min-width:0; padding-left:25px; }.sd-pos-detail-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }.sd-pos-detail h3 { font-size:21px; letter-spacing:-.5px; margin:5px 0; }.sd-pos-detail-heading p { font-size:11px; color:var(--sd-muted); margin:0; }
.sd-pos-equation { border:1px solid var(--sd-line); border-radius:12px; padding:7px 15px; background:var(--surface); }.sd-pos-equation>div { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:8px 0; font-size:11px; }.sd-pos-equation>div>span { color:var(--sd-muted); }.sd-pos-equation strong { font-size:12px; font-variant-numeric:tabular-nums; font-weight:550; }.sd-pos-equation .expected { border-top:1px solid var(--sd-line); padding-top:12px; }.sd-pos-equation .expected>span { color:var(--sd-ink); font-weight:550; }.sd-pos-equation .sd-pos-result { border-top:1px solid var(--sd-line); margin-top:3px; padding-top:12px; padding-bottom:10px; }.sd-pos-equation .sd-pos-result strong { font-weight:650; font-size:15px; }.sd-pos-result.short strong { color:#b56844; }
.sd-pos-trend-heading { display:flex; justify-content:space-between; gap:10px; margin:22px 0 4px; font-size:11px; }.sd-pos-trend-heading span { font-size:10px; color:var(--sd-muted); }.sd-pos-trend { display:block; width:100%; height:auto; overflow:visible; }.sd-pos-trend-expected,.sd-pos-trend-counted { fill:none; stroke-width:2.5; stroke-linejoin:round; stroke-linecap:round; }.sd-pos-trend-expected { stroke:var(--sd-expected); stroke-dasharray:5 4; }.sd-pos-trend-counted { stroke:var(--sd-blue); }.sd-pos-dot-expected { fill:var(--surface); stroke:var(--sd-expected); stroke-width:2; }.sd-pos-dot-counted { fill:var(--surface); stroke:var(--sd-blue); stroke-width:2.5; }.sd-pos-trend g { cursor:pointer; }.sd-pos-trend g:hover circle,.sd-pos-trend g:focus circle { stroke-width:4; }.sd-pos-hover { color:var(--sd-muted); background:var(--canvas); border-radius:7px; font-size:10px; line-height:1.5; padding:9px 11px; margin:7px 0 15px; }.sd-trend>#sd-history-detail { margin-left:23px; margin-right:23px; }
.sd-pos-issues { background:#fff8ed; border:1px solid #f0dfbf; border-radius:9px; padding:10px 13px; margin-top:12px; font-size:11px; color:#966b39; line-height:1.6; }.sd-pos-issues p { margin:0; }
.sd-pos-evidence { border-top:1px solid var(--sd-line); padding-top:15px; margin-top:15px; }.sd-pos-evidence summary { font-size:11px; color:var(--blue); font-weight:550; cursor:pointer; }.sd-pos-evidence summary span { font-weight:400; color:var(--sd-muted); margin-left:8px; }.sd-pos-evidence>p { color:var(--sd-muted); font-size:10px; line-height:1.6; }.sd-pos-evidence-scroll { max-height:280px; overflow:auto; }.sd-pos-evidence table { width:100%; border-collapse:collapse; font-size:10px; }.sd-pos-evidence th { background:var(--canvas); position:sticky; top:0; text-align:left; padding:9px 7px; color:var(--sd-muted); border-bottom:1px solid var(--sd-line); }.sd-pos-evidence td { padding:10px 7px; vertical-align:top; border-bottom:1px solid var(--sd-line); }.sd-pos-evidence td strong { font-size:10px; font-weight:550; }.sd-pos-evidence td small { display:block; overflow-wrap:anywhere; font-size:8px; color:var(--sd-muted); margin-top:3px; }.sd-pos-document-links { display:flex; gap:7px; flex-wrap:wrap; margin:10px 0; }.sd-pos-document-links button { font-size:9px; padding:7px 9px; }
.stock-dashboard [data-sd-count-point] { cursor:pointer; }.stock-dashboard [data-sd-count-point]:hover,.stock-dashboard [data-sd-count-point]:focus { stroke-width:4; }.stock-dashboard [role=button]:focus-visible,.stock-dashboard button:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
@container(max-width:950px) { .sd-pos-head { align-items:flex-start; }.sd-pos-body { grid-template-columns:minmax(210px,.85fr) minmax(260px,1.15fr); padding:20px; }.sd-pos-products { padding-right:16px; }.sd-pos-detail { padding-left:18px; }.sd-pos-summary { margin:0 20px; }.sd-pos-summary>button,.sd-pos-summary>div { padding:14px 12px; }.sd-pos-summary span { font-size:10px; }.sd-pos-product-delta { font-size:10px; } }
@container(max-width:700px) { .sd-pos-head { flex-direction:column; gap:14px; padding:21px; }.sd-pos-head label { width:100%; }.sd-pos-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }.sd-pos-summary>:nth-child(2) { border-right:0; }.sd-pos-summary>:nth-child(-n+2) { border-bottom:1px solid var(--sd-line); }.sd-pos-body { grid-template-columns:1fr; }.sd-pos-products { max-height:325px; border-right:0; border-bottom:1px solid var(--sd-line); padding:0 0 18px; }.sd-pos-detail { padding:23px 0 0; }.sd-pos-product { grid-template-columns:1fr auto; }.sd-pos-bars { max-width:85%; } }

/* A saved native count is separate from the original imported closing count. */
.sd-pos-count-note{padding:16px 22px;background:var(--blue-soft);border-bottom:1px solid var(--sd-line);color:var(--sd-ink)}.sd-pos-count-note p{margin:5px 0;font-size:13px;line-height:1.5}.sd-pos-count-note small{color:var(--sd-muted)}
.sd-till-dialog { width:min(700px,calc(100vw - 32px)); }
.sd-pos-head h2[tabindex="-1"]:focus { outline:0; }
.sd-pos-till-summary { grid-template-columns:repeat(3,minmax(0,1fr)); }
@container(max-width:520px) {
 .sd-pos-till-summary { grid-template-columns:1fr; }
 .sd-pos-till-summary > button { border-right:0; }
}
.sd-till-saved { margin:0 0 16px; }
.sd-till-saved label { display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-size:13px; font-weight:600; }
.sd-till-saved select { max-width:min(100%,400px); padding:7px 10px; border:1px solid var(--sd-line); border-radius:8px; background:var(--surface); }
.sd-till-fields { display:grid; gap:14px; min-width:0; padding:0; border:0; margin:0; }
.sd-till-fields > p, .sd-till-product details p, .sd-till-review p { margin:0; color:var(--sd-muted); font-size:13px; }
.sd-till-product { display:grid; gap:12px; padding:14px; border:1px solid var(--sd-line); border-radius:12px; }
.sd-till-product-heading, .sd-till-sales, .sd-till-product-actions { display:flex; align-items:end; gap:8px; flex-wrap:wrap; }
.sd-till-product-heading > label, .sd-till-sales > label { flex:1 1 155px; min-width:0; }
.sd-till-sales > label:first-child { flex:2 1 210px; }
.sd-till-product details[open] { display:grid; gap:10px; }
.sd-till-product details[open] > :not(summary) { margin-top:10px; }
.sd-till-product summary { cursor:pointer; color:var(--blue); font-weight:600; }
.sd-till-dialog .sd-till-product-actions label, .sd-till-dialog .sd-till-review label { display:flex; align-items:baseline; gap:8px; font-weight:500; }
.sd-till-dialog input[type=checkbox] { width:auto; margin:0; }
.sd-till-review { display:grid; gap:10px; padding:12px; border-radius:10px; background:var(--canvas); }
.sd-till-mappings { display:grid; gap:8px; justify-items:start; padding:12px; border-radius:10px; background:var(--canvas); }
.sd-till-mappings p { margin:0; color:var(--sd-muted); font-size:13px; }

/* Show the working shopping list before the comparison and source records. */
#workspace #content:has(>.stock-dashboard) { padding: 12px clamp(12px,2.6vw,28px) 24px; }
#workspace .stock-dashboard .sd-heading { gap: 10px 16px; margin: 0 0 12px; }
#workspace .stock-dashboard .sd-heading h1 { margin: 0 0 4px; }
#workspace .stock-dashboard .sd-actions { gap: 6px; margin-block-start: 0; }
#workspace .stock-dashboard .sd-actions button { padding: 6px 10px; }
#workspace .stock-dashboard .sd-notice { margin: 0 0 10px; padding: 7px 10px; }
#workspace .stock-dashboard .sd-metrics { border-radius: 12px; margin-bottom: 12px; }
#workspace .stock-dashboard .sd-metrics>* { padding: 10px 12px; gap: 3px; }
#workspace .stock-dashboard .sd-metrics strong { font-size: 25px; }
#workspace .stock-dashboard .sd-layout { grid-template-columns: minmax(240px,.95fr) minmax(0,1.65fr); gap: 12px; margin-bottom: 12px; }
#workspace .stock-dashboard :is(.sd-main,.sd-sidebar) { gap: 12px; }
#workspace .stock-dashboard :is(.sd-card,.sd-assistant-card) { border-radius: 12px; }
#workspace .stock-dashboard .sd-card-head { padding: 11px 13px 8px; gap: 7px; }
#workspace .stock-dashboard .sd-card-head h2 { margin: 0; }
#workspace .stock-dashboard :is(.sd-trend-controls,.sd-filter-bar,.sd-supplier-group,.sd-caption,.sd-variance-list) { padding-inline: 13px; }
#workspace .stock-dashboard .sd-filter-bar { gap: 6px; padding-bottom: 9px; }
#workspace .stock-dashboard .sd-caption { margin-block: 5px 10px; }
#workspace .stock-dashboard .sd-shopping-row { padding-block: 8px; }
#workspace .stock-dashboard .sd-supplier-group h3 { margin-top: 10px; }
#workspace .stock-dashboard .sd-add-suggested { margin: 0 13px 7px; width: calc(100% - 26px); }
#workspace .stock-dashboard .sd-assistant-card { padding: 13px; }
#workspace .stock-dashboard .sd-assistant-card h3 { margin: 7px 0 3px; }
#workspace .stock-dashboard .sd-assistant-card button { margin-top: 10px; }
#workspace .stock-dashboard .sd-pos { margin-bottom: 12px; }
#workspace .stock-dashboard :is(#sd-shopping,#sd-levels,#sd-pos,#sd-variance) { scroll-margin-top: calc(var(--navigation-height,64px) + 8px); }
#workspace .stock-dashboard .sd-pos-head { padding: 11px 13px 8px; gap: 8px 12px; }
#workspace .stock-dashboard .sd-pos-summary { margin-inline: 13px; }
#workspace .stock-dashboard .sd-pos-summary>* { padding: 8px 10px; }
#workspace .stock-dashboard .sd-pos-body { padding: 12px 13px; }
#workspace .stock-dashboard .sd-pos-detail-heading { margin-bottom: 9px; }
#workspace .stock-dashboard .sd-pos-evidence { margin-top: 9px; padding-top: 9px; }
#workspace .stock-dashboard .sd-table :is(th,td) { padding-block: 7px; }
@container (max-width:790px) {
  #workspace .stock-dashboard .sd-layout { grid-template-columns: minmax(0,1fr); }
  #workspace .stock-dashboard .sd-sidebar { grid-template-columns: minmax(0,1fr); }
  #workspace .stock-dashboard .sd-heading { display: grid; grid-template-columns: minmax(0,1fr); }
}
@container (max-width:520px) {
  #workspace .stock-dashboard .sd-actions button { flex: 1 1 135px; white-space: normal; }
  #workspace .stock-dashboard .sd-metrics>* { padding: 8px 10px; }
}
