/* TERNIN Stock Check — operator-first workspace
   Scoped to stock-check components: no global dashboard or outbound styling. */
.wh-stock-check-landing,.wh-stock-check-sku,.wh-sc-workspace{max-width:1220px;margin:0 auto;display:grid;gap:20px}
.wh-sc-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:30px 34px;border-radius:22px;background:linear-gradient(120deg,#123c34 0%,#1d5146 70%,#23685a 100%);color:#fff;position:relative;overflow:hidden}
.wh-sc-hero:after{content:"";position:absolute;width:340px;height:340px;right:-145px;bottom:-255px;border:1px solid rgba(255,255,255,.18);border-radius:50%;box-shadow:0 0 0 62px rgba(255,255,255,.035),0 0 0 125px rgba(255,255,255,.025);pointer-events:none}
.wh-sc-hero h2{font-size:clamp(23px,2.2vw,32px);line-height:1.3;color:#fff;margin:8px 0}
.wh-sc-hero p{margin:0;color:#d7ebe5;font-size:14px;line-height:1.65;max-width:640px}
.wh-sc-eyebrow{font-size:11px;font-weight:850;letter-spacing:.17em;text-transform:uppercase;color:#9cdbcd}
.wh-sc-hero-mark{font-size:82px;line-height:1;opacity:.2;flex:none}
.wh-sc-stepper{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:18px 22px;background:#fff;border:1px solid #e3e9e4;border-radius:18px;box-shadow:0 8px 30px rgba(17,48,40,.035)}
.wh-sc-step{display:flex;align-items:center;gap:10px;min-width:0;position:relative;color:#84918c;font-size:13px;font-weight:750}
.wh-sc-step:not(:last-child):after{content:"";flex:1;min-width:10px;height:2px;background:#e2eae5;margin:0 6px}
.wh-sc-step--done{color:#317765}.wh-sc-step--done:after{background:#a2d8c1}
.wh-sc-step--current{color:#143c33}
.wh-sc-step-number{width:33px;height:33px;border-radius:50%;display:grid;place-items:center;flex:none;font-size:13px;background:#f1f4f2;color:#81918a;border:1px solid #e2eae5}
.wh-sc-step--done .wh-sc-step-number{background:#dff3ea;border-color:#c4e8d6;color:#207855}
.wh-sc-step--current .wh-sc-step-number{background:#f26a3d;border-color:#f26a3d;color:#fff;box-shadow:0 0 0 5px rgba(242,106,61,.13)}
.wh-sc-step-label{white-space:normal;line-height:1.35}
.wh-sc-section-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-end;padding:4px 2px 0}
.wh-sc-section-head small,.wh-sc-panel-title small{font-size:11px;letter-spacing:.12em;color:#db643c;font-weight:850}
.wh-sc-section-head h3,.wh-sc-panel-title h3{margin:5px 0;font-size:21px;color:#183d34}
.wh-sc-section-hint{color:#83948c;font-size:12px}
.wh-stock-check-landing .wh-stock-check-mode-grid{gap:14px}
.wh-stock-check-landing .wh-stock-check-mode-card{min-height:175px;display:flex;align-items:flex-start;gap:16px;padding:23px;border:1px solid #e2e9e4;border-radius:19px;background:#fff;box-shadow:0 6px 18px rgba(19,53,42,.035);transition:border-color .12s,box-shadow .12s,transform .12s}
.wh-stock-check-landing .wh-stock-check-mode-card:hover{border-color:#a4cbbc;box-shadow:0 12px 28px rgba(20,66,48,.1);transform:translateY(-1px)}
.wh-stock-check-landing .wh-stock-check-mode-card.is-active{border:2px solid #247c65;background:#f5fbf7;padding:22px;box-shadow:0 8px 26px rgba(35,124,101,.08)}
.wh-sc-choice-icon{width:49px;height:49px;border-radius:14px;background:#e8f5ef;color:#287962;font-size:29px;display:grid;place-items:center;flex:none}
.wh-stock-check-mode-card.is-active .wh-sc-choice-icon{background:#1b644f;color:white}
.wh-sc-choice-body{display:flex;flex:1;flex-direction:column;gap:9px;text-align:left}
.wh-stock-check-landing .wh-stock-check-mode-card .wh-sc-choice-body strong{font-size:20px;line-height:1.25;color:#1b3c34}
.wh-stock-check-landing .wh-stock-check-mode-card .wh-sc-choice-body>span{font-size:13px;font-weight:500;line-height:1.55;color:#61796e}
.wh-stock-check-landing .wh-stock-check-mode-card .wh-sc-choice-body small{font-weight:750;color:#23765e;font-size:11px}
.wh-sc-choice-arrow{color:#4c8774;font-size:22px}
.wh-stock-check-landing .wh-stock-check-mode-panel{border-radius:19px;border:1px solid #e1e9e5;box-shadow:0 8px 22px rgba(17,48,40,.035);padding:25px 28px}
.wh-stock-check-mode-panel .wh-panel-head h2{font-size:21px}
.wh-stock-check-mode-panel .wh-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:end}
.wh-stock-check-mode-panel .wh-form label{min-width:0}
.wh-stock-check-mode-panel .wh-form label:nth-child(3){grid-column:1/-1}
.wh-stock-check-mode-panel .wh-form .wh-sc-start-btn{grid-column:1/-1;min-height:52px;justify-self:start;padding:0 26px}
.wh-sc-help{display:flex;align-items:flex-start;gap:13px;padding:18px 22px;border:1px solid #e5e7da;background:#fbfcf6;border-radius:16px}
.wh-sc-help-icon{font-size:15px;font-weight:850;width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#e3ecd5;color:#5f7747;flex:none}
.wh-sc-help strong{color:#24463a}.wh-sc-help p{margin:6px 0 0;color:#647971;font-size:13px;line-height:1.6}
.wh-sc-work-head{margin:0;padding:12px 4px 0}
.wh-sc-work-head h2{font-size:clamp(21px,2vw,29px)}
.wh-sc-next-action{display:flex;align-items:center;gap:16px;padding:20px 23px;background:#153e34;border:1px solid #214f42;color:#fff;border-radius:18px}
.wh-sc-next-action-icon{width:50px;height:50px;display:grid;place-items:center;flex:none;border-radius:14px;background:#2b6b57;color:#dcf6e9;font-size:24px}
.wh-sc-next-action small{color:#9fceb9;font-size:11px;letter-spacing:.12em;font-weight:850}
.wh-sc-next-action strong{display:block;color:#fff;margin:4px 0;font-size:18px}
.wh-sc-next-action p{margin:0;color:#d1e4da;font-size:13px;line-height:1.5}
.wh-sc-scan-panel,.wh-sc-results,.wh-sc-review-panel,.wh-stock-check-adjustment{border:1px solid #e2e9e4;border-radius:18px;box-shadow:0 8px 25px rgba(19,52,41,.04)}
.wh-sc-scan-panel{border-top:4px solid #ed7149}
.wh-sc-panel-title{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 18px}
.wh-sc-panel-title p{margin:5px 0 0;font-size:13px;color:#779086}
.wh-sc-live{font-size:12px;font-weight:800;border-radius:50px;padding:8px 13px;background:#eaf6ef;color:#20835b;white-space:nowrap}
.wh-sc-scan-panel #stock-check-barcode{min-height:55px;font-size:20px;font-weight:750;border:2px solid #b5d9c8}
.wh-sc-scan-panel #stock-check-quantity{min-height:55px;font-size:20px}
.wh-sc-scan-panel .wh-sc-scan-submit{min-height:55px}
.wh-sc-sync-indicator{padding:10px 12px;background:#f4f8f5;border-radius:9px;color:#466759;opacity:1}
.wh-sc-results .wh-table thead{background:#f5f8f6}
.wh-sc-results .wh-table th{color:#5b7769;letter-spacing:.025em}
.wh-sc-results .wh-table td{vertical-align:middle}
.wh-sc-table-legend{display:flex;flex-wrap:wrap;gap:10px;color:#688073;font-weight:700;font-size:11px}
.wh-sc-table-legend span:first-child{color:#1e815c}
.wh-sc-table-legend span:nth-child(2){color:#b66a25}
.wh-sc-diff,.wh-sc-row-status{display:inline-block;padding:6px 10px;border-radius:8px;font-weight:850;font-variant-numeric:tabular-nums;white-space:nowrap}
.wh-sc-diff.is-match,.wh-sc-row-status.is-match{color:#167454;background:#eaf7ed}
.wh-sc-diff.is-variance,.wh-sc-row-status.is-variance{color:#985b19;background:#fff1dc}
.wh-sc-diff.is-unchecked,.wh-sc-row-status.is-unchecked{color:#70827a;background:#f0f3f0}
.wh-sc-review-panel{border-top:4px solid #227d65}
.wh-sc-safety-note{display:inline-flex;align-items:center;border-radius:9px;padding:10px 12px;background:#f2f5ee;color:#566f60;font-size:12px;font-weight:750}
.wh-stock-check-adjustment{border-top:4px solid #236d5a}
.wh-stock-check-adjustment .wh-stock-check-audit{display:grid;gap:8px;margin:14px 0;padding:15px 18px;border-radius:12px;background:#f6f9f7;color:#344e41;font-size:13px}
.wh-stock-check-adjustment .wh-stock-check-audit p{margin:0}
@media(max-width:900px){.wh-sc-stepper{padding:14px 12px;gap:3px}.wh-sc-step{gap:6px;font-size:11px}.wh-sc-step:not(:last-child):after{margin:0 2px}.wh-sc-step-number{width:28px;height:28px}.wh-sc-hero{padding:24px}.wh-sc-hero-mark{font-size:60px}}
@media(max-width:640px){.wh-sc-stepper{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:13px 8px}.wh-sc-step{flex-direction:column;text-align:center;gap:7px}.wh-sc-step:not(:last-child):after{display:none}.wh-sc-step-label{font-size:10px}.wh-sc-section-hint,.wh-sc-hero-mark{display:none}.wh-sc-hero{padding:23px 20px}.wh-stock-check-landing .wh-stock-check-mode-card{min-height:130px}.wh-stock-check-mode-panel .wh-form{grid-template-columns:1fr}.wh-stock-check-mode-panel .wh-form label:nth-child(3){grid-column:auto}.wh-stock-check-mode-panel .wh-form .wh-sc-start-btn{grid-column:auto;width:100%}.wh-sc-next-action{align-items:flex-start;padding:17px}.wh-sc-scan-panel .wh-receive-form{grid-template-columns:1fr}.wh-sc-panel-title{align-items:flex-start;flex-direction:column}.wh-sc-table-legend{margin-top:8px}}
@media(prefers-reduced-motion:reduce){.wh-stock-check-mode-card{transition:none!important;transform:none!important}}

/* Cycle count operator UX: lightweight progress and one-click result filters. */
.wh-sc-rack-progress{background:#fff;border:1px solid #dce9e2;border-radius:16px;padding:18px 20px;display:grid;gap:10px}
.wh-sc-rack-progress-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:baseline;color:#163c32}
.wh-sc-rack-progress-head strong{font-size:16px}
.wh-sc-rack-progress-head span{font-size:15px;font-weight:800;font-variant-numeric:tabular-nums}
.wh-sc-rack-progress-track{height:12px;border-radius:99px;background:#edf2ef;overflow:hidden}
.wh-sc-rack-progress-track>span{display:block;height:100%;background:#23856b;border-radius:99px;transition:width .16s ease}
.wh-sc-rack-progress p{margin:0;color:#5b746a;font-size:13px}
.wh-sc-table-filter{display:flex;justify-content:space-between;flex-wrap:wrap;align-items:center;gap:10px;padding:14px 18px 5px}
.wh-sc-table-filter-label{font-size:13px;font-weight:800;color:#36594e}
.wh-sc-table-filter-actions{display:flex;flex-wrap:wrap;gap:8px}
.wh-sc-table-filter-actions button{border:1px solid #d6e4dc;background:#fff;border-radius:10px;padding:9px 14px;min-height:42px;color:#34594b;font:inherit;font-size:13px;font-weight:750;cursor:pointer}
.wh-sc-table-filter-actions button[aria-pressed="true"]{background:#1d6754;color:white;border-color:#1d6754}
.wh-sc-table-filter-actions button:focus-visible{outline:3px solid #eba47a;outline-offset:2px}
.wh-sc-results tbody tr[hidden]{display:none!important}
@media(max-width:640px){.wh-sc-rack-progress{padding:15px}.wh-sc-table-filter{padding:12px 12px 4px}.wh-sc-table-filter-actions{width:100%}.wh-sc-table-filter-actions button{flex:1;padding:8px 5px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.wh-sc-rack-progress-track>span{transition:none!important}}
