/* Full-screen Stock Taking; saved valuation rates do not automatically change POS prices. */
#stock-taking-page{position:fixed!important;inset:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;color:#17364b;background:#fff;font:14px Arial,sans-serif;overflow:hidden}#stock-taking-page[open]{display:flex;flex-direction:column}#stock-taking-page::backdrop{background:#0f172abb}#stock-taking-page *{box-sizing:border-box}#stock-taking-page header{background:#0f172a;color:white;display:flex;gap:12px;align-items:center;padding:10px 16px;flex-shrink:0}#stock-taking-page h2{margin:0;font-size:21px}#stock-taking-page header small{color:#67e8f9;flex:1}#stock-taking-page nav,.st-bar{display:flex;gap:8px;align-items:end;flex-wrap:wrap;padding:8px 12px;border-bottom:1px solid #cbd5e1;background:#f8fafc;flex-shrink:0}#stock-taking-page button,#stock-taking-page select,#stock-taking-page input{font:inherit;min-height:32px;border:1px solid #cbd5e1;border-radius:5px;padding:6px 9px;color:#17364b;background:white;max-width:100%}#stock-taking-page button{cursor:pointer;font-weight:600;white-space:nowrap}#stock-taking-page button:disabled{opacity:.45;cursor:default}#stock-taking-page button.st-primary{background:#0d9488;border-color:#0d9488;color:white}#stock-taking-page nav button[aria-current=true]{background:#e0f2fe;color:#0369a1}#stock-taking-page label{display:flex;flex-direction:column;gap:3px;font-size:12px}#stock-taking-page label.st-grow{flex:1;min-width:220px}#stock-taking-page main{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden}#stock-taking-page .st-grid{flex:1;min-height:0;overflow:auto}#stock-taking-page table{border-collapse:separate;border-spacing:0;width:100%;min-width:1100px;font-size:13px;table-layout:fixed}#stock-taking-page th{position:sticky;top:0;z-index:2;background:#e8eff5;text-align:left}#stock-taking-page th,#stock-taking-page td{padding:8px;border-right:1px solid #d5e0eb;border-bottom:1px solid #d5e0eb;vertical-align:top;overflow-wrap:anywhere}#stock-taking-page tbody tr:nth-child(even){background:#f8fafc}#stock-taking-page th:first-child{width:38px}#stock-taking-page th:nth-child(2){width:24%}#stock-taking-page td small{display:block;color:#64748b;margin-top:3px}#stock-taking-page td input{width:100%;min-width:60px;padding:4px}#stock-taking-page .st-negative{color:#dc2626;font-weight:bold}#stock-taking-page .st-positive{color:#047857;font-weight:bold}#stock-taking-page footer{padding:9px 12px;display:flex;gap:8px;align-items:center;background:#f1f5f9;border-top:1px solid #cbd5e1;flex-shrink:0}#stock-taking-page footer span{flex:1}#stock-taking-page [role=status]{margin:0;padding:7px 12px;background:#eff6ff;color:#334155;font-size:13px;flex-shrink:0}#stock-taking-page .st-search{position:relative}#stock-taking-page .st-results{position:absolute;top:100%;left:0;right:0;z-index:9;max-height:300px;overflow:auto;background:white;box-shadow:0 6px 18px #0f172a33}#stock-taking-page .st-results button{display:block;width:100%;text-align:left;border-radius:0;white-space:normal}#stock-taking-page .st-results small{display:block;font-weight:normal;color:#64748b}#stock-taking-page .st-note{padding:7px 12px;background:#f0fdfa;color:#0f766e;font-size:12px;flex-shrink:0}#stock-taking-page .st-review{display:flex;gap:8px;padding:8px 12px;align-items:center;background:#fff7ed;flex-shrink:0}#stock-taking-page .st-review input{flex:1}#stock-taking-page .st-empty{padding:24px;color:#64748b}@media(max-width:700px){#stock-taking-page header{padding-top:max(10px,env(safe-area-inset-top));flex-wrap:wrap;gap:6px}#stock-taking-page h2{font-size:18px}#stock-taking-page header small{min-width:45%}#stock-taking-page .st-bar{gap:5px;padding:6px}#stock-taking-page .st-bar label{flex:1;min-width:125px}#stock-taking-page footer{padding-bottom:max(9px,env(safe-area-inset-bottom));flex-wrap:wrap}#stock-taking-page footer span{width:100%;flex-basis:100%}#stock-taking-page .st-review{flex-wrap:wrap}#stock-taking-page .st-review input{flex-basis:100%}}
#stock-taking-page table.st-report{min-width:2200px}#stock-taking-page table.st-report th{width:140px}#stock-taking-page table.st-report th:first-child{width:110px}#stock-taking-page table.st-report th:nth-child(2){width:150px}#stock-taking-page table.st-report th:nth-child(5){width:220px}#stock-taking-page table.st-report th:nth-child(7){width:220px}
/* Variance results remain separate: extra and shortage units never hide each other. */
#stock-taking-page .st-summary{display:flex;flex-wrap:wrap;gap:8px;padding:7px 12px;background:white;border-bottom:1px solid #cbd5e1;flex-shrink:0}#stock-taking-page .st-result{display:inline-block;border-radius:4px;padding:3px 7px;font-size:12px;font-weight:600;white-space:nowrap}#stock-taking-page .st-matched{color:#166534;background:#dcfce7}#stock-taking-page .st-extra{color:#1d4ed8;background:#dbeafe}#stock-taking-page .st-shortage{color:#b91c1c;background:#fee2e2}#stock-taking-page .st-pending{color:#64748b;background:#f1f5f9}#stock-taking-page .st-value{font-weight:700;font-variant-numeric:tabular-nums}#stock-taking-page .st-value.st-matched{background:#f0fdf4}#stock-taking-page .st-value.st-extra{background:#eff6ff}#stock-taking-page .st-value.st-shortage{background:#fff1f2}#stock-taking-page th small{display:block;font-size:11px;font-weight:400;color:#64748b}#stock-taking-page table:not(.st-report){min-width:1250px}#stock-taking-page table.st-report{min-width:2350px}

/* 2.10.68: saved count prices and counted values, with compact product shortcuts. */
#stock-taking-page .st-rate-entry{flex:0 1 135px;min-width:105px}#stock-taking-page .st-rate-entry input{width:100%}#stock-taking-page table:not(.st-report){min-width:1750px}#stock-taking-page table:not(.st-report) th:nth-child(2){width:260px}#stock-taking-page table:not(.st-report) th:nth-child(3){width:130px}#stock-taking-page table:not(.st-report) th:nth-child(5),#stock-taking-page table:not(.st-report) th:nth-child(6),#stock-taking-page table:not(.st-report) th:nth-child(7){width:115px}#stock-taking-page table:not(.st-report) th:nth-child(8),#stock-taking-page table:not(.st-report) th:nth-child(9){width:140px}#stock-taking-page table:not(.st-report) th:last-child{width:120px}#stock-taking-page td[data-row-cost-value],#stock-taking-page td[data-row-retail-value]{font-variant-numeric:tabular-nums;text-align:right;font-weight:650}#stock-taking-page input[readonly]{background:#f1f5f9;color:#475569}#stock-taking-page .st-actions button{display:block;font-size:12px;min-height:27px;padding:4px 6px;margin-bottom:4px}#stock-taking-page [data-total]{display:flex;flex:1;flex-wrap:wrap;align-items:center;gap:5px 18px;font-size:12px;min-width:250px}#stock-taking-page [data-total]>span{flex-basis:100%}#stock-taking-page [data-total]>strong{font-weight:700;color:#0f766e}#stock-taking-page table.st-report{min-width:2900px}
#stock-taking-product-editor{padding:0;margin:auto;border:1px solid #cbd5e1;border-radius:8px;max-width:calc(100vw - 20px);width:650px;max-height:calc(100dvh - 24px);overflow:auto;background:#fff;color:#17364b;box-shadow:0 20px 80px #0f172a55;font:14px Arial,sans-serif}#stock-taking-product-editor::backdrop{background:#0f172a88}#stock-taking-product-editor header{display:flex;align-items:center;justify-content:space-between;padding:12px 15px;background:#0f172a;color:#fff}#stock-taking-product-editor h3{margin:0;font-size:18px}#stock-taking-product-editor button,#stock-taking-product-editor input,#stock-taking-product-editor select{box-sizing:border-box;min-height:34px;padding:6px 9px;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#17364b;font:inherit}#stock-taking-product-editor button{cursor:pointer}#stock-taking-product-editor button:disabled{opacity:.5;cursor:wait}#stock-taking-product-editor header button{background:transparent;color:#fff}#stock-taking-product-editor .st-editor-note{font-size:12px;line-height:1.5;background:#f0fdfa;color:#0f766e;margin:0;padding:10px 15px}#stock-taking-product-editor form{padding:14px 15px}#stock-taking-product-editor .st-editor-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}#stock-taking-product-editor label{display:flex;flex-direction:column;gap:5px;font-size:12px}#stock-taking-product-editor .st-editor-wide{grid-column:1/-1;margin:0}#stock-taking-product-editor .st-editor-check{display:flex;flex-direction:row;align-items:center}#stock-taking-product-editor input[type=checkbox]{min-height:0;width:auto}#stock-taking-product-editor [role=status]{color:#b91c1c;white-space:pre-wrap;font-size:12px}#stock-taking-product-editor footer{display:flex;justify-content:flex-end;gap:7px;padding-top:10px}#stock-taking-product-editor .st-primary{background:#0d9488;border-color:#0d9488;color:#fff;font-weight:700}@media(max-width:700px){#stock-taking-product-editor .st-editor-fields{grid-template-columns:1fr}#stock-taking-product-editor input,#stock-taking-product-editor select{font-size:16px}#stock-taking-page [data-total]{min-width:0;width:100%}#stock-taking-page .st-rate-entry{flex:1 1 120px}}

/* Retail selling price is the selected valuation basis. */
#stock-taking-page table:not(.st-report){min-width:1550px}#stock-taking-page table:not(.st-report) th:nth-child(5),#stock-taking-page table:not(.st-report) th:nth-child(6){width:120px}#stock-taking-page table:not(.st-report) th:nth-child(7){width:150px}#stock-taking-page table:not(.st-report) th:nth-child(8){width:100px}#stock-taking-page table:not(.st-report) th:nth-child(9){width:110px}

/* 2.10.69: compact audit dashboard, one Close action and no Excel coordinate row. */
#stock-taking-page{overflow:hidden!important}#stock-taking-page th[data-sheet-column]::before{display:none!important;content:none!important}#stock-taking-page .sheet-table tbody>tr>td:first-child{padding-left:8px!important}#stock-taking-page .sheet-table tbody>tr>td:first-child::before{display:none!important}#stock-taking-page nav{align-items:center;padding:6px 12px;gap:5px}#stock-taking-page nav button,#stock-taking-page nav select{font-size:12px;min-height:30px;padding:5px 8px}#stock-taking-page header{padding:9px 14px}#stock-taking-page header small{min-width:120px}#stock-taking-page .st-status-badge{border-radius:16px;background:#fef3c7;color:#92400e;padding:5px 12px;font-size:12px;font-weight:700;white-space:nowrap}#stock-taking-page .st-status-badge[data-state=Approved],#stock-taking-page .st-status-badge[data-state=Adjusted]{background:#d1fae5;color:#065f46}#stock-taking-page .st-status-badge[data-state=Submitted]{background:#dbeafe;color:#1e40af}#stock-taking-page .st-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:8px 12px}#stock-taking-page .st-card{border:1px solid #dce5ed;border-radius:6px;padding:7px 11px;display:flex;flex-direction:column;gap:3px;min-width:0}#stock-taking-page .st-card small{font-size:11px;font-weight:650}#stock-taking-page .st-card b{font-size:18px;line-height:1.2;font-variant-numeric:tabular-nums}#stock-taking-page .st-card span{font-size:12px}#stock-taking-page .st-card.st-pending{background:#fff7ed;color:#9a5800}#stock-taking-page .st-cost-impact{grid-column:1/-1;font-size:11px;color:#64748b}#stock-taking-page .st-live-team{flex:1;max-width:370px;font-size:11px;color:#0f766e}#stock-taking-page .st-rapid-toggle{display:flex;flex-direction:row;align-items:center;align-self:center;padding:6px 9px;background:#f0fdfa;border:1px solid #99d5cc;border-radius:5px;white-space:nowrap}#stock-taking-page .st-rapid-toggle input{min-height:0;accent-color:#0d9488}#stock-taking-page .st-bar{padding:6px 12px}#stock-taking-page .st-note{font-size:11px;padding:5px 12px}#stock-taking-page table:not(.st-report){min-width:2040px}#stock-taking-page table:not(.st-report) th:nth-child(12){width:235px}#stock-taking-page table:not(.st-report) th:nth-child(13){width:240px}#stock-taking-page select[data-row-reason]{width:100%;font-size:12px;white-space:normal}#stock-taking-page table.st-report{min-width:3650px}#stock-taking-page footer{gap:7px;padding:8px 12px}#stock-taking-page footer button{font-size:12px}
#stock-audit-tools,#stock-audit-leave{box-sizing:border-box;margin:auto;padding:0;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#17364b;font:14px Arial;max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px);overflow:auto;box-shadow:0 16px 60px #0f172a55}#stock-audit-tools{width:1100px}#stock-audit-leave{width:510px;padding:24px}#stock-audit-tools::backdrop,#stock-audit-leave::backdrop{background:#0f172a88}#stock-audit-tools header{padding:12px 16px;display:flex;align-items:center;justify-content:space-between;background:#0f172a;color:#fff;position:sticky;top:0;z-index:2}#stock-audit-tools h3,#stock-audit-leave h3{font-size:21px;margin:0 0 8px}#stock-audit-tools main{padding:14px 16px}#stock-audit-tools p,#stock-audit-leave p{font-size:13px;line-height:1.5}#stock-audit-tools button,#stock-audit-leave button,#stock-audit-tools input,#stock-audit-tools select{box-sizing:border-box;padding:7px 10px;min-height:33px;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#17364b;font:inherit}#stock-audit-tools button,#stock-audit-leave button{cursor:pointer;margin:5px 5px 5px 0;font-weight:650}#stock-audit-tools button:disabled,#stock-audit-leave button:disabled{opacity:.45;cursor:default}#stock-audit-tools header button{background:transparent;color:white}#stock-audit-tools [role=status]{color:#b91c1c;margin:0;padding:0 16px 12px;white-space:pre-wrap}#stock-audit-tools .st-tool-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}#stock-audit-tools label{display:flex;flex-direction:column;gap:4px;font-size:12px}#stock-audit-tools label:has(input[type=checkbox]){flex-direction:row;align-items:center;gap:6px;margin:8px 0}#stock-audit-tools input[type=checkbox]{min-height:0;width:auto;accent-color:#0d9488}#stock-audit-tools .st-tool-grid{max-height:50dvh;overflow:auto;border:1px solid #d8e2ec;margin:12px 0}#stock-audit-tools table{border-collapse:collapse;width:100%;min-width:650px;font-size:12px}#stock-audit-tools th{position:sticky;top:0;background:#e8eff5;text-align:left}#stock-audit-tools th,#stock-audit-tools td{padding:8px;border:1px solid #d8e2ec;vertical-align:top;overflow-wrap:anywhere}#stock-audit-tools td input:not([type=checkbox]){width:100%;min-width:100px}#stock-audit-tools button[data-apply-import],#stock-audit-tools button[data-save-team],#stock-audit-leave button[data-leave-save]{background:#0d9488;border-color:#0d9488;color:#fff}#stock-audit-leave button{display:block;width:100%;margin:10px 0 0}#stock-audit-leave button[data-leave-discard]{color:#be123c;border-color:transparent}#stock-audit-leave [role=status]{color:#be123c}@media(max-width:700px){#stock-taking-page .st-summary{grid-template-columns:repeat(2,minmax(0,1fr));padding:5px;gap:5px}#stock-taking-page .st-card b{font-size:15px}#stock-taking-page nav{max-height:85px;overflow:auto}#stock-taking-page .st-live-team{max-width:none;flex-basis:100%}#stock-audit-tools .st-tool-fields{grid-template-columns:1fr}#stock-audit-tools input,#stock-audit-tools select{font-size:16px}}
