
/* StoreFlow v1.5 pilot shell only. Original Inventory v0.5.0 CSS remains frozen. */
.wf-top{position:sticky;top:0;z-index:9;min-height:63px;box-shadow:0 1px 8px rgba(14,48,46,.09);padding:9px 12px}
.wf-headleft,.wf-headright{display:flex;align-items:center;gap:7px;min-width:0}
.wf-headleft .brand{font-size:14px}
.wf-headright{justify-content:flex-end}
.wf-headright button{white-space:nowrap}
.wf-nav{position:fixed!important;bottom:0;z-index:8}
.wf-nav-inner{grid-template-columns:repeat(5,minmax(0,1fr));gap:0}
.wf-nav button{font-size:9px;line-height:1.3;padding:4px 0;min-width:0;white-space:nowrap}
.wf-nav button span{font-size:20px}
.wf-body{padding-bottom:40px}
.wf-shell{padding-bottom:102px}
.wf-tabs{display:flex;gap:5px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;margin:-1px 0 15px;padding-bottom:4px;position:sticky;top:63px;z-index:5;background:#f5f8f7}
.wf-tabs::-webkit-scrollbar{display:none}
.wf-tabs button{flex:none;white-space:nowrap;border:1px solid #d1e0de;background:white;color:#476a69;padding:9px 11px;border-radius:11px;font-weight:750;font-size:12px}
.wf-tabs button.active{background:#176c65;color:white;border-color:#176c65}
.wf-dot{display:inline-grid;place-items:center;border-radius:50%;width:29px;height:29px;min-width:29px;font-size:12px;font-weight:800;color:#18383a;margin-right:4px}
.wf-dot-0{background:#f5d5bb}.wf-dot-1{background:#d1e8f2}.wf-dot-2{background:#ead6ed}.wf-dot-3{background:#dcf0c5}.wf-dot-4{background:#ffdec4}
.wf-dot-5{background:#d6d9fa}.wf-dot-6{background:#f7eab2}.wf-dot-7{background:#bbe6de}.wf-dot-8{background:#ecd4c4}.wf-dot-9{background:#d5e9fd}
.wf-important{font-size:11px;color:#a95318;background:#fff1dd;border-radius:8px;padding:4px 6px;font-weight:800}
.wf-order{margin-bottom:10px}
.wf-order .progress{margin-top:9px}
.wf-manage{padding:0 3px 12px;margin-top:-10px}
.wf-item{display:flex;gap:10px;align-items:center;min-height:79px;padding:11px 0;border-bottom:1px solid #e3ecea}
.wf-item:last-child{border-bottom:0}
.wf-itemtext{flex:1;min-width:0}
.wf-itemtext strong{font-size:13px;line-height:1.3;display:block}
.wf-miniimg{width:52px;height:58px;min-width:52px;display:grid;place-items:center;background:#f0f4f4;border-radius:9px;overflow:hidden;cursor:pointer;border:1px solid #e4eeee}
.wf-img{width:100%;height:100%;object-fit:contain}
.wf-noimg{color:#9cb6b6;font-size:27px}
.wf-check{width:28px;height:28px;display:grid;place-items:center;background:#d9f3e6;color:#227a54;border-radius:50%;font-size:17px;font-weight:900}
.wf-done{opacity:.7}
.wf-actions{display:flex;gap:7px;flex-wrap:wrap;padding:7px 0 10px 61px;border-bottom:1px solid #e3ecea}
.wf-actions button{font-size:12px}
.wf-results{max-height:220px;overflow:auto;border:1px solid #e3eeee;border-radius:12px;margin:10px 0;background:#fff}
.wf-result{display:flex;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid #e8eeee}
.wf-result>div:nth-child(2){flex:1;min-width:0}
.wf-result p{margin:3px 0}
.wf-result strong{font-size:12px;line-height:1.2;display:block}
.wf-cart{margin:12px 0}
.wf-stack{display:flex;flex-direction:column;gap:5px}
.wf-stack button{padding:5px!important}
.wf-camera{height:88px;border:1px dashed #8cadab;background:#f1f5f5;border-radius:11px;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#688280;font-size:12px}
.wf-camera.open{height:145px;display:block}
.wf-camera video{object-fit:cover;max-height:145px!important}
.wf-scan-form{display:flex;gap:8px;margin-top:9px}
.wf-scan-form input{flex:1;min-width:0}
.wf-scan-form button{white-space:nowrap}
.wf-aisle-cam{height:240px;overflow:hidden}
.wf-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.wf-filters .field{font-size:10px}
.wf-filters select{padding:8px 5px;font-size:11px}
.wf-checkrow{display:flex;align-items:center;gap:9px;margin:15px 0}
.wf-checkrow input{width:auto}
.wf-detailhero{min-height:112px;display:grid;place-items:center;background:#f4f8f7;border-radius:12px}
.wf-detailhero img{width:112px;height:112px;object-fit:contain}
.wf-fullitem h3{margin:17px 0 4px;color:#1b6561;font-size:14px}
.wf-detail{padding:7px 0;border-bottom:1px solid #eef1f0;align-items:flex-start}
.wf-detail span{font-size:12px;color:#728488;flex:1}
.wf-detail strong{font-size:12px;text-align:right;max-width:61%;overflow-wrap:anywhere}
.wf-inventoryhelp{padding:11px 6px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.wf-inventoryhelp strong{font-size:12px}
@media(max-width:420px){.wf-headright .test{display:none}.wf-tabs{top:60px}.wf-headleft .brand{letter-spacing:.02em}.wf-nav button{font-size:8.5px}.wf-body{padding:12px}.wf-inventoryhelp{flex-wrap:wrap}}

/* v1.5.1: Replenish landing screen; Store and Warehouse are cards, not tabs. */
.wf-entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:8px 0 20px}
.wf-entry-card{appearance:none;text-align:left;background:#fff;color:#18383a;border:1px solid #d7e6e2;border-radius:19px;padding:22px 17px;min-height:215px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;box-shadow:0 3px 12px rgba(17,63,57,.04);transition:border-color .12s,transform .12s}
.wf-entry-card:active{transform:scale(.985)}
.wf-entry-card:focus-visible{outline:3px solid #3c9990;outline-offset:2px}
.wf-entry-icon{display:grid;place-items:center;width:49px;height:49px;border-radius:13px;background:#e5f3ef;color:#176c65;font-size:29px}
.wf-entry-card:nth-child(2) .wf-entry-icon{background:#e8effa;color:#355d93}
.wf-entry-card>strong{font-size:22px;letter-spacing:-.025em;line-height:1.15}
.wf-entry-description{font-size:13px;line-height:1.35;color:#617a79}
.wf-entry-meta{margin-top:auto;font-size:12px;font-weight:800;color:#176c65;display:flex;gap:8px;justify-content:space-between;width:100%}
.wf-entry-card:nth-child(2) .wf-entry-meta{color:#355d93}
@media(max-width:520px){.wf-entry-grid{grid-template-columns:1fr;gap:12px}.wf-entry-card{min-height:0;padding:18px;gap:9px}.wf-entry-description{font-size:13px}}

/* v1.5.2: unmistakable selected-section tunnel / raised arch in fixed bottom navigation. */
.wf-nav{overflow:visible}
.wf-nav-inner{align-items:stretch}
.wf-nav button{position:relative;isolation:isolate;min-height:58px;margin:0 3px 0;padding:7px 2px 6px;border:1px solid transparent;border-radius:17px 17px 12px 12px;transform:translateY(0);transition:color .14s,background-color .14s,transform .14s,box-shadow .14s}
.wf-nav button.active,.wf-nav button[aria-current="page"]{
  color:#095c56;
  background:linear-gradient(180deg,#d9f3e9 0%,#eaf8f2 100%);
  border-color:#addbcd;
  box-shadow:0 -5px 17px rgba(21,101,88,.19), inset 0 2px 0 rgba(255,255,255,.85);
  transform:translateY(-8px);
  font-weight:850;
}
.wf-nav button.active::before,.wf-nav button[aria-current="page"]::before{
  content:"";position:absolute;top:-3px;left:22%;right:22%;height:5px;border-radius:0 0 7px 7px;background:#16877d;
}
.wf-nav button.active span,.wf-nav button[aria-current="page"] span{color:#08776b;filter:drop-shadow(0 1px 0 #fff)}
.wf-nav button:focus-visible{outline:2px solid #16877d;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.wf-nav button{transition:none}}

/* v1.5.3: parent-level fixed product action strip while viewing frozen Inventory details. */
.wf-inventory-actions{
 position:fixed;z-index:7;bottom:calc(73px + env(safe-area-inset-bottom));
 left:50%;transform:translateX(-50%);display:grid;grid-template-columns:1fr 1fr;gap:10px;
 width:min(calc(100% - 20px),690px);padding:10px 12px;
 border:1px solid #cfdfda;border-radius:16px;
 background:rgba(255,255,255,.97);box-shadow:0 -5px 24px rgba(14,56,51,.16);
 backdrop-filter:blur(12px)
}
.wf-inventory-actions button{min-height:43px;border-radius:11px;font-size:13px;font-weight:800}
.wf-inventory-actions button.primary{background:#196c63;color:white}
.wf-inventory-actions button.outline{border:1px solid #b3d4cc;background:#f5faf8;color:#1c635c}
/* Camera opens directly from a product's Pick Item control; plus only activates after verification. */
.wf-scan-target{font-size:13px;font-weight:850;color:#176b65;background:#e2f3ed;padding:8px 10px;border-radius:9px;margin:8px 0}
.wf-actions{align-items:center;gap:7px;flex-wrap:wrap}
.wf-actions .wf-plus{
 appearance:none;flex:none;display:inline-grid;place-items:center;border-radius:10px;
 width:42px;min-width:42px;height:37px;padding:0;
 border:1px solid #196c63;background:#196c63;color:#fff;
 font-size:25px;font-weight:750;line-height:1;box-shadow:0 2px 5px rgba(23,105,90,.15)
}
.wf-actions .wf-plus:disabled{background:#edf1f0;color:#829b98;border-color:#d5e0dd;box-shadow:none;opacity:.8}
@media(max-width:420px){
 .wf-inventory-actions{bottom:calc(75px + env(safe-area-inset-bottom));padding:8px;gap:7px}
 .wf-inventory-actions button{font-size:12px;min-height:42px}
 .wf-actions{padding-left:0}
}

/* v1.5.4: Account-level scanning policy selector and disabled/enabled quick pick. */
#wf-policy-form select{width:100%;font-size:13px;line-height:1.45;padding:11px;border:1px solid #d4e2de;border-radius:11px;background:#fff;color:#254f4a}
#wf-policy-form select:focus-visible{outline:2px solid #16877d;outline-offset:2px}
#wf-policy-form .field{margin-top:8px;margin-bottom:7px}
.wf-actions .wf-plus:not(:disabled){touch-action:manipulation}

/* v1.5.5: Order turnaround timeline. All dates are persisted server milestones. */
.wf-timeline{padding:17px 15px}
.wf-timeline-title{align-items:center;gap:9px;margin-bottom:13px}
.wf-timeline-title h2{margin:0}
.wf-timeline-title .muted{text-align:right;line-height:1.2}
.wf-time-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:20px}
.wf-time-metrics>div{display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:0;padding:12px 8px;background:#f1f8f6;border:1px solid #e0eeea;border-radius:12px}
.wf-time-metrics small{font-size:10px;color:#607b78;line-height:1.25;font-weight:650}
.wf-elapsed{font-size:14px;line-height:1.25;font-weight:850;color:#176961;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.wf-time-metrics .muted{font-size:12px}
.wf-metric-status{font-size:10px;line-height:1.25;color:#718682}
.wf-timeline-steps{border-left:2px solid #d9e9e4;margin-left:9px;padding-left:17px;display:flex;flex-direction:column;gap:17px}
.wf-milestone{position:relative;display:flex;gap:12px}
.wf-milestone-dot{position:absolute;left:-29px;top:-1px;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;font-size:12px;font-weight:800;background:#22796e;color:#fff;border:2px solid #fff;box-shadow:0 0 0 1px #c8e2d8}
.wf-milestone-future .wf-milestone-dot{background:#eef3f2;color:#9aadab;box-shadow:0 0 0 1px #dde7e5}
.wf-milestone-content{display:flex;flex-direction:column;min-width:0;gap:3px}
.wf-milestone-content>strong{font-size:13px;font-weight:800;color:#28484b}
.wf-milestone-content>time{font-size:12px;color:#4f6d70;font-variant-numeric:tabular-nums}
.wf-waiting{font-size:12px;color:#819396}
.wf-milestone-sub{font-size:11px;color:#718589}
.wf-milestone-detail{font-size:11px;color:#417269}
.wf-milestone-detail .wf-elapsed{font-size:11px}
.wf-order-times{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid #e6eeeb;margin-top:10px;padding-top:9px;color:#607d79;font-size:11px}
.wf-order-times>span{display:flex;gap:5px;align-items:baseline}
.wf-order-times .wf-elapsed{font-size:11px;font-weight:850}
@media(max-width:420px){
 .wf-time-metrics{gap:5px}
 .wf-time-metrics>div{padding:10px 7px}
 .wf-time-metrics small,.wf-metric-status{font-size:9px}
 .wf-time-metrics .wf-elapsed{font-size:12px}
 .wf-order-times{flex-direction:column;gap:4px}
}

/* v1.5.6: Store camera-first entry, instant cart, and order action menus */
.wf-store-scan-controls{display:flex;gap:8px;align-items:center;margin:11px 0 8px;flex-wrap:wrap}
.wf-store-scan-controls button{min-height:39px;flex:1}
.wf-store-camera{border:1px dashed #9ebbb5;border-radius:11px;min-height:52px;background:#edf5f3;display:grid;place-items:center;text-align:center;color:#5d7774;font-size:12px;padding:7px;overflow:hidden}
.wf-store-camera.open{height:135px;min-height:135px;padding:0}
.wf-store-camera video{object-fit:cover;max-height:135px!important}
.wf-store-camera[hidden],.wf-store-code-form[hidden]{display:none!important}
.wf-store-code-form{display:flex;gap:8px;margin:9px 0;align-items:center}
.wf-store-code-form input{min-width:0;flex:1}
.wf-store-code-form button{flex:none}
.wf-itemtext{flex:1;min-width:0}
.wf-draft-line{align-items:center;gap:9px}
.wf-draft-line .wf-miniimg{flex:none}
.wf-img-button{appearance:none;border:0;padding:0;cursor:pointer;overflow:hidden}
.wf-qty-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:7px 0 0}
.wf-qty-tools button{appearance:none;display:grid;place-items:center;border-radius:9px;width:34px;height:34px;border:1px solid #b7d9d0;background:#f1f8f5;color:#176e61;font-weight:850;font-size:20px;line-height:1}
.wf-qty-tools strong{min-width:24px;text-align:center;font-size:16px;font-variant-numeric:tabular-nums}
.wf-qty-tools select{padding:6px 7px;border:1px solid #d5e1de;border-radius:8px;min-height:34px;font-size:12px;background:white;max-width:100px}
.wf-submit-order{width:100%;margin-top:14px;min-height:44px}
.wf-results .wf-result{gap:10px}
.wf-result .wf-itemtext strong{font-size:13px}
.wf-order{position:relative}
.wf-order:has(.wf-order-dropdown){z-index:7}
.wf-order-top-right{display:flex;align-items:center;gap:6px}
.wf-order-menu{position:relative;flex:none}
.wf-order-ellipsis{appearance:none;border:1px solid #d2e3de;background:#f5f9f7;color:#26675f;border-radius:10px;font-weight:850;font-size:24px;line-height:1;width:36px;height:35px;display:grid;place-items:center}
.wf-order-ellipsis[aria-expanded="true"]{background:#deeee9;border-color:#72b8a7}
.wf-order-dropdown{position:absolute;right:0;top:calc(100% + 6px);z-index:35;width:220px;max-width:85vw;display:flex;flex-direction:column;gap:3px;padding:7px;background:white;border:1px solid #d6e2df;border-radius:12px;box-shadow:0 8px 24px rgba(17,61,54,.2)}
.wf-order-dropdown .wf-menu-item{appearance:none;display:block;width:100%;text-align:left;padding:10px;font-size:13px;border:0;border-radius:8px;background:#fff;color:#205f59;font-weight:750;min-height:39px}
.wf-order-dropdown .wf-menu-item:active{background:#e7f3ef}
.wf-order-dropdown .wf-menu-close{color:#a23e35;background:#fff4f1}
.wf-order-menu-caption{color:#7a8b8e;padding:9px;font-size:12px;line-height:1.35}
.wf-schedule-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}
.wf-schedule-controls button{min-height:42px}
.wf-timeline .wf-milestone-content>strong:has(+time){color:#17695c}
@media(max-width:420px){.wf-draft-line{gap:6px}.wf-draft-line .wf-miniimg{width:40px;height:40px}.wf-qty-tools{gap:5px}.wf-qty-tools button{width:31px;height:33px}.wf-qty-tools select{max-width:86px;font-size:11px}.wf-order-ellipsis{width:34px;height:33px}}

/* StoreFlow 1.6.0: supervisor-wide drafts, threaded follow-ups and activity reports. */
.wf-inventory-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;z-index:8}
.wf-inventory-actions button{min-width:0;font-size:11px;padding:8px 4px;white-space:normal;line-height:1.15}
.wf-draft-home .row,.wf-draft-summary{align-items:center}
.wf-draft-summary{display:flex;justify-content:space-between;gap:10px;padding:11px 0;border-top:1px solid #e5eeeb}
.wf-draft-summary>div:first-child{min-width:0;flex:1}
.wf-draft-summary>div:first-child strong{font-size:13px}
.wf-draft-summary p{margin:3px 0}
.wf-builder-head{position:sticky;top:62px;z-index:5;background:#f5f8f7;padding:6px 0}
.wf-builder{padding-bottom:140px}
.wf-builder:has(.wf-submit-order){padding-bottom:180px}
.wf-submit-order{position:fixed;z-index:8;bottom:calc(80px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(calc(100% - 24px),680px);min-height:48px;border-radius:12px;box-shadow:0 -5px 18px rgba(8,72,60,.26);font-size:14px;font-weight:850}
.wf-draft-choices{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.wf-draft-choice{appearance:none;border:1px solid #d0e1dc;background:#f6faf8;color:#145b52;padding:13px 10px;border-radius:11px;text-align:left;font-weight:750;min-height:48px}
.wf-draft-choice:active{background:#deefe9}
.wf-pick-sticky{position:sticky;top:63px;z-index:7;background:#e5f5ed;border:1px solid #a9d8c5;box-shadow:0 3px 11px rgba(26,82,65,.15);padding:11px 12px;border-radius:13px;margin:8px 0}
.wf-pick-sticky .row{align-items:center;gap:8px;flex-wrap:wrap}
.wf-pick-sticky strong{font-size:14px}
.wf-pick-summary-count{font-size:11px;color:#38665e;margin-top:5px;justify-content:space-between}
.wf-msg-page-head{position:sticky;top:63px;z-index:6;background:#f5f8f7;padding:10px 0;gap:8px;justify-content:space-between}
.wf-msg-summary{padding:12px 14px}
.wf-msg-summary p{margin:8px 0}
.wf-msg-summary.wf-msg-done p{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:12px}
.wf-msg-row-actions,.wf-msg-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.wf-thread{padding:14px}
.wf-thread-entry{padding:12px 0;border-bottom:1px solid #e6efec}
.wf-thread-entry:last-child{border-bottom:0}
.wf-thread-entry p{margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}
.wf-thread-entry .row{align-items:baseline;gap:8px;flex-wrap:wrap}
#wf-thread-reply textarea{width:100%;min-height:86px;max-height:240px;resize:vertical;margin:9px 0}
#wf-thread-reply select{width:100%;padding:10px}
.wf-msg-mini{border-top:1px solid #e3eae7;padding:9px 0;line-height:1.5;font-size:12px}
.wf-msg-mini button{margin-left:5px}
.wf-home-search input,.wf-inventory-tools input{width:100%;font-size:15px;min-height:40px;margin:9px 0}
.wf-home-search .row,.wf-inventory-tools .row{align-items:center;gap:8px}
.wf-home-search .wf-results{max-height:360px;overflow-y:auto}
.wf-vendor-list{max-height:315px;overflow:auto}
.wf-dashboard-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0}
.wf-dashboard-stats>span{background:#eff8f4;border:1px solid #dcece5;border-radius:11px;padding:10px 6px;text-align:center;display:flex;flex-direction:column;gap:3px}
.wf-dashboard-stats strong{font-size:22px;color:#126b5d;font-variant-numeric:tabular-nums}
.wf-dashboard-stats small{font-size:10px;color:#647d73}
.wf-kpi-small{min-width:74px;display:grid;grid-template-columns:1fr 1fr;gap:3px;text-align:center}
.wf-kpi-small strong{font-size:14px}
.wf-kpi-small small{font-size:9px;color:#748480}
#wf-delivery-sort{width:100%;padding:10px;border-radius:10px;border:1px solid #d5e4df}
@media(max-width:420px){
 .wf-inventory-actions{width:calc(100% - 12px);gap:3px;padding:7px 5px}
 .wf-inventory-actions button{font-size:10px;padding:7px 2px}
 .wf-pick-sticky{top:62px}
 .wf-dashboard-stats strong{font-size:19px}
 .wf-builder{padding-bottom:185px}
}

/* v1.6.1: explicit cloud-save status. IndexedDB is used only for pending mutations. */
.wf-sync-state{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:750;line-height:1.2;padding:6px 8px;white-space:normal;border-radius:10px;background:#e6f5ee;color:#1a6757;border:1px solid #b5dfcf}
.wf-sync-syncing{background:#eff4f6;color:#49626e;border-color:#d3e1e8}
.wf-sync-offline{background:#fff1da;color:#885811;border-color:#f0d3a5}
.wf-sync-attention{background:#fff0ed;color:#96392c;border-color:#e8afa6}
.wf-headright{flex-wrap:wrap;row-gap:5px}
@media(max-width:420px){.wf-sync-state{font-size:9px;padding:5px 7px;max-width:115px}.wf-headright{gap:4px}}

/* 1.6.2: Single first-party Inventory module; no embedded project or second header. */
.wf-integrated-inventory{position:relative;min-width:0;padding-bottom:90px}
#sf-inventory-mount{display:block;min-width:0}
.wf-integrated-inventory .wf-store-camera{margin:6px 0 12px;max-height:200px;background:#f0f7f4;border-radius:13px;overflow:hidden}
.wf-integrated-inventory .wf-store-camera.open{height:185px;max-height:185px}
.wf-integrated-inventory .wf-store-camera video{height:185px!important;max-height:185px!important;object-fit:cover}
.wf-inventory-actions{grid-template-columns:repeat(3,minmax(0,1fr));z-index:9}
.wf-inventory-actions button{font-size:11px;min-width:0;padding:9px 5px}
@media(max-width:420px){.wf-inventory-actions button{font-size:10px;line-height:1.2}}


/* v1.6.3: one reusable, privacy-bounded Inventory camera session. */
.wf-inventory-scanner-overlay[hidden]{display:none!important}
.wf-inventory-scanner-overlay{position:fixed;inset:0;z-index:75;display:flex;align-items:flex-end;justify-content:center;background:rgba(12,39,38,.65);padding-top:env(safe-area-inset-top)}
.wf-inventory-scanner-panel{background:#fff;color:#153e3b;border-radius:19px 19px 0 0;box-shadow:0 -8px 26px #07282333;width:min(100%,680px);padding:18px 14px calc(19px + env(safe-area-inset-bottom))}
.wf-inventory-scanner-panel>.row{gap:12px;margin-bottom:5px}
.wf-inventory-scanner-panel>.row strong{font-size:15px}
.wf-inventory-scanner-panel>.row button{flex:none}
.wf-inventory-scanner-panel p{font-size:12px;margin:4px 0 11px}
.wf-inventory-scanner-video{height:200px;min-height:200px;width:100%;overflow:hidden;background:#eff5f2;border-radius:12px;display:grid;place-items:center;font-size:12px;color:#58726a}
.wf-inventory-scanner-video video{width:100%!important;max-width:100%;height:200px!important;object-fit:cover}
#wf-inventory-scanner-close{width:100%;margin-top:10px;min-height:44px}

/* v1.6.4 — four-stage replenishment and compact header */
.wf-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.wf-entry-section{min-height:0;display:flex;flex-direction:column;padding:10px!important;gap:9px}
.wf-entry-section:active{transform:none!important}
.wf-entry-main{display:flex;align-items:center;gap:10px;text-align:left;width:100%;background:transparent;border:0;color:#1d4644;border-radius:11px;padding:9px 7px;min-height:82px}
.wf-entry-main:active{background:#eef7f4}
.wf-entry-copy{display:flex;flex-direction:column;min-width:0;flex:1;gap:3px}
.wf-entry-copy strong{font-size:18px;font-weight:850}
.wf-entry-copy .wf-entry-description{font-size:11px;line-height:1.35;color:#607c77}
.wf-entry-main .wf-entry-icon{width:42px;height:42px;min-width:42px;font-size:22px}
.wf-stage-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%;margin-top:auto}
.wf-stage-shortcut{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:57px;border-radius:10px;border:1px solid #d6e8e2;background:#f0f8f5;color:#235a51;padding:6px 3px;cursor:pointer}
.wf-stage-shortcut:active{background:#d8ede5}
.wf-stage-shortcut strong{font-size:19px;font-variant-numeric:tabular-nums;line-height:1.1}
.wf-stage-shortcut small{font-size:10px;font-weight:760;white-space:normal;line-height:1.1;text-align:center}
.wf-stage-badge{display:inline-block;border-radius:9px;padding:5px 7px;font-size:10px;font-weight:850;white-space:nowrap;background:#edf3f3;color:#416c68}
.wf-stage-pending{background:#fff1df;color:#8b6428}
.wf-stage-progress{background:#e8f0ff;color:#3b6096}
.wf-stage-assigned{background:#e9efff;color:#505798}
.wf-stage-delivered{background:#e4f5e8;color:#31774d}
.wf-stage-draft{background:#e5f4f3;color:#246963}
.wf-stage-closed{background:#ffe5e1;color:#9e3428;border:1px solid #e5a7a0}
.wf-scheduled-drafts{border-top:1px solid #d9e7e0;margin-top:15px;padding-top:12px}
.wf-scheduled-drafts h3{font-size:15px;margin:0 0 5px}
.wf-top .wf-headright{position:relative;flex:0 0 auto;flex-wrap:nowrap;gap:5px}
.wf-top .wf-headleft{flex:1;min-width:0}
.wf-connection-badge{display:grid;place-items:center;width:29px;min-width:29px;height:29px;padding:0;border-radius:8px;border:1px solid #a4d6c0;font-weight:900;font-size:13px;background:#dff5e7;color:#14623e;cursor:pointer}
.wf-connection-badge.wf-offline{background:#ffe4e0;color:#a2352c;border-color:#eab7b0}
.wf-user-badge{display:block;max-width:104px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:7px 8px;border:1px solid #cde0d9;background:#f5faf7;color:#21584f;border-radius:9px;font-weight:750;font-size:11px;line-height:1.2}
.wf-header-popover-slot{position:absolute;right:0;top:100%;z-index:25;max-width:calc(100vw - 24px)}
.wf-header-popover{margin-top:7px;width:min(270px,calc(100vw - 24px));padding:14px;background:white;border:1px solid #d4e4de;border-radius:13px;box-shadow:0 7px 24px #113b3333;font-size:13px;color:#284844;line-height:1.45}
.wf-header-popover strong{font-size:13px;display:block;margin-bottom:6px}
.wf-header-popover p{font-size:12px;color:#5e7772;margin:0}
@media(max-width:540px){
 .wf-entry-grid{grid-template-columns:1fr}
 .wf-entry-main{min-height:69px}
 .wf-stage-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr))}
 .wf-stage-shortcut{min-height:60px}
 .wf-top .wf-headleft .crumb{font-size:10px}
 .wf-user-badge{max-width:79px}
 .wf-stage-badge{white-space:normal}
}
@media(max-width:380px){.wf-user-badge{max-width:58px;font-size:10px}.wf-stage-shortcut small{font-size:9px}}


/* StoreFlow 1.6.5 — Staff are managed by role, not physical work area. */
.sf-staff-role-row{padding:13px 0;border-bottom:1px solid #e4eeeb}
.sf-staff-role-row:last-child{border-bottom:none}
.sf-staff-role-row>.row{gap:9px;flex-wrap:wrap;margin-bottom:8px}
.sf-staff-role-row>.row strong{font-size:13px}
.sf-staff-role-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.sf-staff-role-tools select{min-width:0;width:100%;border:1px solid #cbded8;border-radius:10px;padding:10px 12px;background:#fff;color:#224942;font-size:14px}
.sf-staff-role-tools button{min-width:95px;min-height:42px}
#create-staff-form>select[name="role"]{display:block;width:100%;padding:12px 10px;border-radius:10px;border:1px solid #cbded8}
@media(max-width:390px){.sf-staff-role-tools button{min-width:80px;padding:8px 10px}}

/* StoreFlow v1.6.8 — clean multi-status warehouse and picking behavior. */
.wf-multi-stages{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 17px}
.wf-stage-toggle{border:1px solid #c5d8d4;border-radius:11px;padding:9px 12px;background:white;color:#315452;font-size:13px;font-weight:750;cursor:pointer}
.wf-stage-toggle small{display:inline-block;margin-left:5px;padding:2px 5px;background:#eef4f1;border-radius:6px}
.wf-stage-toggle.active{background:#175f59;color:white;border-color:#175f59}
.wf-stage-toggle.active small{background:#398178;color:white}
.wf-compact-order{padding:14px!important;margin:0 0 10px}
.wf-compact-order .wf-order-times,.wf-compact-order .progress,.wf-compact-order .wf-manage{display:none!important}
.wf-compact-order>p{margin:9px 0 12px}
.wf-card-footer{gap:9px;align-items:center}
.wf-card-priority{color:#587574;font-size:12px;font-weight:750}
.wf-active-pick{border:2px solid #35786d!important;background:#f0f8f4;border-radius:13px;padding:8px;margin:-2px -8px 8px}
.wf-pick-unit{margin-bottom:8px;scroll-margin-top:83px}
.wf-pick-unit .wf-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:8px}
.wf-pick-unit .wf-plus{min-width:100px;border-radius:11px;padding:9px 10px}
.wf-pick-submit .primary,.wf-ready-compact .primary{width:100%;font-size:16px;padding:13px}
.wf-ready-compact{border:1px solid #9bcab0;background:#edf9f2}
.wf-timeline-collapse>summary,.wf-login-help-summary>summary{cursor:pointer;font-weight:800;padding:3px 1px}
.wf-timeline-collapse>.wf-timeline{box-shadow:none;margin-top:11px;border:0;padding:7px 0}
.wf-filter-prompt{margin:9px 0 2px;border:1px solid #b9d9cf;background:#f1faf6;padding:12px;border-radius:12px;animation:wf-prompt-in .12s ease-out}
.wf-filter-prompt>p{margin:4px 0 10px}
@keyframes wf-prompt-in{from{opacity:.3;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}

.wf-ready-button{background:#148251!important;color:white!important;border-color:#148251!important;font-weight:800!important}
.wf-card-footer>.row{gap:7px;flex-wrap:wrap}

/* v1.6.9 Manager/Admin Excel catalog importer */
.sf-import-template-line{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f2f8f5;border:1px solid #d8e7e1;border-radius:12px;padding:12px;margin:11px 0}
.sf-import-template-line>div{min-width:0;flex:1}
.sf-import-template-line strong{color:#174c48}
.sf-import-template-line p{margin:4px 0 0}
.sf-import-template-line button{flex:none;max-width:47%}
#sf-import-file{display:block;width:100%;margin:6px 0 12px;padding:9px;border:1px dashed #9dbbb1;background:#fff;border-radius:9px}
.sf-import-stock-check{display:flex;gap:8px;align-items:flex-start;font-size:13px;font-weight:750;color:#3a534f}
.sf-import-stock-check input{margin-top:3px;min-width:17px;height:17px}
.sf-import-buttons{display:flex;gap:9px;flex-wrap:wrap;margin:13px 0}
.sf-import-buttons button{flex:1;min-width:100px}
.sf-import-status{padding:10px 11px;border-radius:9px;background:#eaf5f2;font-size:13px;color:#214f47;margin:9px 0}
.sf-import-status.sf-import-error{background:#fceae8;color:#902c2c}
.sf-import-preview{font-size:12px;overflow:hidden}
.sf-import-summary{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center;margin-bottom:8px}
.sf-import-summary span{color:#617b75;overflow-wrap:anywhere;max-width:70%}
.sf-import-ready{padding:10px;background:#edf9ef;color:#1c6840;border:1px solid #b7dec0;border-radius:9px;margin:10px 0}
.sf-import-warning{color:#9d6110;font-weight:750;cursor:pointer}
.sf-import-scroll{overflow-x:auto;max-width:100%}
.sf-import-scroll table{width:100%;min-width:460px;border-collapse:collapse;font-size:12px}
.sf-import-scroll th,.sf-import-scroll td{padding:8px;text-align:left;border-bottom:1px solid #e3ece8;white-space:nowrap;max-width:200px;overflow:hidden;text-overflow:ellipsis}
.sf-import-scroll th{background:#f3f8f6;color:#42615d;font-weight:800}
@media(max-width:510px){.sf-import-template-line{flex-direction:column;align-items:stretch}.sf-import-template-line button{max-width:none;width:100%}}
