:root{
  --bg:#f5f2ed;
  --surface:#ffffff;
  --surface-2:#faf8f5;
  --text:#2c2724;
  --muted:#7e756f;
  --line:#e8e1da;
  --brand:#6f4e37;
  --brand-2:#9b7653;
  --brand-soft:#efe3d7;
  --success:#237a50;
  --success-soft:#e8f6ee;
  --warning:#a86712;
  --warning-soft:#fff2dd;
  --danger:#b84242;
  --danger-soft:#fdeaea;
  --info:#316ca8;
  --info-soft:#e9f2fb;
  --purple:#6d57a8;
  --purple-soft:#f0ecfb;
  --shadow:0 12px 32px rgba(62,43,31,.08);
  --radius:20px;
  --radius-sm:14px;
}

/* v0.4.06 receiving confirmation dialog */
.receive-review-modal-v0406[hidden]{display:none!important}.receive-review-modal-v0406{position:fixed;inset:0;z-index:1350;display:grid;place-items:center;padding:18px;background:rgba(22,37,47,.5);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.receive-review-card-v0406{width:min(560px,100%);max-height:min(86vh,720px);overflow:hidden;border-radius:22px;background:#fff;box-shadow:0 24px 70px rgba(15,31,40,.28);animation:receiveReviewIn0406 .18s ease-out}.receive-review-head-v0406{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:20px 20px 15px;border-bottom:1px solid var(--line)}.receive-review-head-v0406 small{display:block;color:var(--brand);font-size:11px;font-weight:900}.receive-review-head-v0406 h3{margin:5px 0 0;color:var(--text);font-size:20px;line-height:1.25}.receive-review-close-v0406{display:grid;place-items:center;flex:0 0 auto;width:38px;height:38px;border:0;border-radius:13px;background:var(--surface-2);color:var(--muted);font-size:25px;line-height:1;cursor:pointer}.receive-review-body-v0406{padding:16px 20px;overflow:auto}.receive-review-message-v0406{margin:0 0 12px;color:var(--muted);font-size:13px;line-height:1.55}.receive-review-list-v0406{display:grid;gap:7px;max-height:42vh;overflow:auto}.receive-review-item-v0406{display:flex;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2);font-size:12px}.receive-review-item-v0406 strong{color:var(--text);font-size:13px}.receive-review-item-v0406 span{color:var(--muted);text-align:right;white-space:nowrap}.receive-review-item-v0406.is-error{border-color:#f2b8bd;background:#fff5f5}.receive-review-error-v0406{margin-top:11px;padding:11px 12px;border:1px solid #f2b8bd;border-radius:12px;background:#fff1f2;color:#a9212d;font-size:12px;font-weight:750;line-height:1.55}.receive-review-actions-v0406{display:grid;grid-template-columns:1fr 1.25fr;gap:9px;padding:13px 20px 18px;border-top:1px solid var(--line)}.receive-review-actions-v0406 button{min-height:48px;border-radius:13px;font-weight:900}.receive-review-confirm-v0406{background:var(--brand)!important;border-color:var(--brand)!important;color:#fff!important}.receive-review-confirm-v0406[hidden]{display:none!important}.receive-form-v0406 .receive-submit-v0406{min-height:48px}@keyframes receiveReviewIn0406{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}@media(max-width:560px){.receive-review-modal-v0406{align-items:end;padding:0}.receive-review-card-v0406{width:100%;max-height:90vh;border-radius:22px 22px 0 0}.receive-review-head-v0406{padding:17px 16px 13px}.receive-review-body-v0406{padding:14px 16px}.receive-review-actions-v0406{padding:11px 16px calc(14px + env(safe-area-inset-bottom,0px))}.receive-review-head-v0406 h3{font-size:18px}}
*{box-sizing:border-box}
html{font-size:16px}
body{margin:0;font-family:Inter,"Noto Sans Thai",Tahoma,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.45}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.app-shell{min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:260px;background:#2f241f;color:#fff;padding:22px 18px;z-index:50;display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:12px;padding:4px 8px 22px}
.brand-mark{width:44px;height:44px;border-radius:16px;background:linear-gradient(145deg,#bd956d,#7b573e);display:grid;place-items:center;font-weight:900;font-size:20px;box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}
.brand-title{font-size:17px;font-weight:800}.brand-sub{font-size:12px;color:#cfc3bc}
.nav-section{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#a99b94;padding:14px 12px 7px}
.nav-link{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:13px;color:#e8dfda;margin:3px 0;font-size:14px;font-weight:650}
.nav-link:hover,.nav-link.active{background:rgba(255,255,255,.1);color:#fff}
.nav-icon{width:24px;text-align:center;font-size:18px}
.sidebar-footer{margin-top:auto;padding:14px 10px;border-top:1px solid rgba(255,255,255,.1)}
.user-name{font-weight:750}.user-role{font-size:12px;color:#bcaea7;margin-top:2px}
.main{margin-left:260px;min-height:100vh}
.topbar{height:76px;background:rgba(245,242,237,.92);backdrop-filter:blur(14px);position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:space-between;padding:0 30px;border-bottom:1px solid rgba(229,220,212,.8)}
.page-title{font-size:22px;font-weight:850;letter-spacing:-.02em}.page-subtitle{font-size:13px;color:var(--muted);margin-top:2px}
.top-actions{display:flex;gap:10px;align-items:center}
.content{padding:26px 30px 110px;max-width:1500px;margin:0 auto}
.grid{display:grid;gap:18px}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.card-pad{padding:20px}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:19px 20px 0}.card-title{font-weight:850;font-size:17px}.card-sub{color:var(--muted);font-size:13px;margin-top:3px}
.metric{padding:20px}.metric-label{color:var(--muted);font-size:13px;font-weight:700}.metric-value{font-size:30px;font-weight:900;margin-top:7px;letter-spacing:-.03em}.metric-foot{margin-top:9px;font-size:12px;color:var(--muted)}
.metric-icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;font-size:22px;background:var(--brand-soft)}
.metric-row{display:flex;justify-content:space-between;align-items:flex-start}
.section-space{margin-top:22px}
.btn{border:0;border-radius:13px;padding:11px 15px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;transition:.18s ease}
.btn:hover{transform:translateY(-1px)}.btn-primary{background:var(--brand);color:#fff}.btn-secondary{background:var(--brand-soft);color:#5a3d2b}.btn-light{background:#fff;border:1px solid var(--line);color:var(--text)}.btn-danger{background:var(--danger);color:#fff}.btn-success{background:var(--success);color:#fff}.btn-block{width:100%}.btn-sm{padding:8px 11px;min-height:36px;font-size:13px;border-radius:10px}
.fab{display:none}
.badge{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}.badge-muted{background:#eeeae6;color:#6e655f}.badge-info{background:var(--info-soft);color:var(--info)}.badge-primary{background:var(--brand-soft);color:var(--brand)}.badge-warning{background:var(--warning-soft);color:var(--warning)}.badge-success{background:var(--success-soft);color:var(--success)}.badge-danger{background:var(--danger-soft);color:var(--danger)}.badge-purple{background:var(--purple-soft);color:var(--purple)}
.table-wrap{overflow:auto;padding:6px 20px 18px}.table{width:100%;border-collapse:separate;border-spacing:0;min-width:760px}.table th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:14px 12px;border-bottom:1px solid var(--line)}.table td{padding:14px 12px;border-bottom:1px solid #f0ebe7;vertical-align:middle}.table tr:last-child td{border-bottom:0}.table tr:hover td{background:#fcfaf8}.text-right{text-align:right}.text-center{text-align:center}.muted{color:var(--muted)}.strong{font-weight:850}.nowrap{white-space:nowrap}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field{display:flex;flex-direction:column;gap:7px}.field label{font-weight:780;font-size:13px}.input,.select,.textarea{width:100%;border:1px solid #ddd5ce;background:#fff;border-radius:13px;padding:12px 13px;min-height:46px;color:var(--text);outline:none}.textarea{min-height:100px;resize:vertical}.input:focus,.select:focus,.textarea:focus{border-color:#a77b59;box-shadow:0 0 0 4px rgba(167,123,89,.12)}.field-help{font-size:12px;color:var(--muted)}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.toolbar-left,.toolbar-right{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.search{min-width:260px}
.flash{padding:14px 16px;border-radius:14px;margin-bottom:16px;font-weight:650}.flash-success{background:var(--success-soft);color:var(--success)}.flash-error{background:var(--danger-soft);color:var(--danger)}.flash-info{background:var(--info-soft);color:var(--info)}
.empty{padding:42px 20px;text-align:center}.empty-icon{font-size:40px}.empty-title{font-weight:850;font-size:17px;margin-top:8px}.empty-sub{color:var(--muted);font-size:13px;margin:6px auto 16px;max-width:440px}
.quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.quick-action{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:18px;min-height:122px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:var(--shadow)}.quick-action .icon{font-size:25px}.quick-action strong{font-size:15px}.quick-action span{font-size:12px;color:var(--muted)}
.mobile-cards{display:none}.mobile-item{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:0 7px 22px rgba(62,43,31,.06)}.mobile-item+.mobile-item{margin-top:12px}.mobile-item-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.mobile-item-title{font-weight:850;font-size:16px}.mobile-item-sub{font-size:12px;color:var(--muted);margin-top:3px}.mobile-item-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:14px}.mobile-kv{background:var(--surface-2);padding:10px;border-radius:12px}.mobile-kv span{display:block;color:var(--muted);font-size:11px}.mobile-kv strong{display:block;margin-top:3px;font-size:13px}.mobile-item-actions{display:flex;gap:8px;margin-top:14px}.mobile-item-actions .btn{flex:1}
.stepper{display:flex;align-items:flex-start;overflow:auto;padding:14px 0 4px}.step{min-width:105px;text-align:center;position:relative}.step:before{content:"";position:absolute;top:15px;left:-50%;right:50%;height:3px;background:#e2dcd6}.step:first-child:before{display:none}.step-dot{width:32px;height:32px;border-radius:50%;background:#e7e1dc;color:#8b817a;display:grid;place-items:center;margin:0 auto;font-size:12px;font-weight:900;position:relative;z-index:2}.step-label{font-size:11px;color:var(--muted);margin-top:7px}.step.done:before,.step.active:before{background:var(--brand)}.step.done .step-dot,.step.active .step-dot{background:var(--brand);color:#fff}.step.active .step-label{color:var(--brand);font-weight:850}
.item-editor{display:grid;grid-template-columns:1fr 140px 50px;gap:10px;align-items:end;padding:12px 0;border-bottom:1px dashed var(--line)}.item-editor:last-child{border-bottom:0}
.bottom-nav{display:none}
.login-page{min-height:100vh;display:grid;grid-template-columns:1.2fr .8fr;background:#2f241f}.login-hero{padding:7vw;display:flex;flex-direction:column;justify-content:space-between;color:#fff;background:radial-gradient(circle at 20% 10%,rgba(185,139,99,.33),transparent 30%),linear-gradient(145deg,#2f241f,#4d382c)}.login-hero h1{font-size:clamp(42px,6vw,82px);line-height:.98;letter-spacing:-.05em;margin:0;max-width:780px}.login-hero p{max-width:580px;color:#d4c6bd;font-size:18px}.login-tags{display:flex;gap:10px;flex-wrap:wrap}.login-tags span{border:1px solid rgba(255,255,255,.15);padding:9px 12px;border-radius:999px;font-size:13px}.login-panel{background:var(--bg);display:grid;place-items:center;padding:30px}.login-box{width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:28px;padding:30px;box-shadow:var(--shadow)}.login-box h2{font-size:27px;margin:0}.login-box .field{margin-top:16px}.login-brand-mobile{display:none}
@media(max-width:1180px){.grid-4{grid-template-columns:repeat(2,1fr)}.quick-actions{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1024px){
  .sidebar{display:none}.main{margin-left:0}.topbar{height:68px;padding:0 18px}.content{padding:18px 18px 105px}.page-title{font-size:19px}.page-subtitle{display:none}.top-actions .desktop-only{display:none}
  .bottom-nav{display:grid;position:fixed;left:10px;right:10px;bottom:9px;grid-template-columns:repeat(5,1fr);background:rgba(48,36,30,.96);backdrop-filter:blur(16px);border-radius:21px;padding:7px;z-index:100;box-shadow:0 14px 40px rgba(31,23,19,.28)}.bottom-nav a{color:#cdbfb8;text-align:center;padding:7px 3px;border-radius:14px;font-size:10px;font-weight:750}.bottom-nav a .bi{display:block;font-size:19px;line-height:1.1;margin-bottom:3px}.bottom-nav a.active{background:rgba(255,255,255,.12);color:#fff}
  .fab{display:grid;position:fixed;right:20px;bottom:90px;width:58px;height:58px;border-radius:20px;background:var(--brand);color:#fff;place-items:center;font-size:28px;box-shadow:0 15px 30px rgba(74,48,33,.3);z-index:90;border:0}
}
@media(max-width:760px){
  .grid-4,.grid-3,.grid-2{grid-template-columns:1fr}.metric-value{font-size:26px}.card{border-radius:18px}.card-pad{padding:16px}.card-head{padding:16px 16px 0}.content{padding-left:12px;padding-right:12px}.topbar{padding:0 14px}
  .form-grid{grid-template-columns:1fr}.toolbar{align-items:stretch}.toolbar-left,.toolbar-right{width:100%}.toolbar .search{min-width:0;width:100%}.toolbar-right .btn{flex:1}.desktop-table{display:none}.mobile-cards{display:block}.table-wrap{padding:0}.quick-actions{grid-template-columns:repeat(2,1fr);gap:10px}.quick-action{min-height:110px;padding:15px}.quick-action strong{font-size:14px}.item-editor{grid-template-columns:1fr 105px 46px}.login-page{display:block;background:var(--bg);padding:18px}.login-hero{display:none}.login-panel{padding:0;min-height:calc(100vh - 36px)}.login-box{padding:24px;border-radius:24px}.login-brand-mobile{display:flex;align-items:center;gap:10px;margin-bottom:26px}.login-brand-mobile .brand-mark{color:#fff}
}
@media(max-width:420px){.quick-actions{grid-template-columns:1fr 1fr}.quick-action span{display:none}.mobile-item-grid{grid-template-columns:1fr 1fr}.btn{padding-left:12px;padding-right:12px}}

/* === v0.1.1 Seashell Garnet Afternoon theme === */
:root{
  --sand:#F6C992;
  --coral:#F0525C;
  --mist:#ACC0D3;
  --rose:#D396A6;
  --teal:#09A1A1;
  --slate:#5484A4;
  --bg:#F4F8FA;
  --surface:#FFFFFF;
  --surface-2:#F0F5F8;
  --text:#24313A;
  --muted:#687985;
  --line:#DCE6ED;
  --brand:#09A1A1;
  --brand-strong:#087C7C;
  --brand-soft:#E6F7F7;
  --brand-ink:#06686A;
  --brand-rgb:9,161,161;
  --nav-bg:#315A70;
  --nav-bg-2:#426F87;
  --nav-text:#EFF7FA;
  --nav-muted:#BCD0DA;
  --success:#18745A;
  --success-soft:#EAF7F2;
  --warning:#9B5D13;
  --warning-soft:#FFF4E4;
  --danger:#C83F4A;
  --danger-soft:#FFF0F2;
  --info:#416F8F;
  --info-soft:#EDF4F8;
  --purple:#9A6074;
  --purple-soft:#F8EFF2;
  --shadow:0 12px 34px rgba(62,94,114,.09);
}
body.theme-central{
  --brand:#09A1A1;--brand-strong:#087C7C;--brand-soft:#E6F7F7;--brand-ink:#06686A;--brand-rgb:9,161,161;
  --nav-bg:#075D63;--nav-bg-2:#087C7C;--nav-text:#F0FFFF;--nav-muted:#B7DEDE;
}
body.theme-alltaste{
  --brand:#F0525C;--brand-strong:#C83F4A;--brand-soft:#FFF0F2;--brand-ink:#A72F39;--brand-rgb:240,82,92;
  --nav-bg:#633544;--nav-bg-2:#824B5B;--nav-text:#FFF4F5;--nav-muted:#E4BEC8;
}
body.theme-skyy9{
  --brand:#5484A4;--brand-strong:#416F8F;--brand-soft:#EDF4F8;--brand-ink:#355F7A;--brand-rgb:84,132,164;
  --nav-bg:#31566E;--nav-bg-2:#416F8F;--nav-text:#F2F8FC;--nav-muted:#BDD0DC;
}
body.theme-system{
  --brand:#09A1A1;--brand-strong:#087C7C;--brand-soft:#E6F7F7;--brand-ink:#06686A;--brand-rgb:9,161,161;
  --nav-bg:#315A70;--nav-bg-2:#426F87;--nav-text:#EFF7FA;--nav-muted:#BCD0DA;
}
body{background:linear-gradient(180deg,#F8FAFC 0,#F4F8FA 230px,var(--bg) 100%)}
.sidebar{background:linear-gradient(180deg,var(--nav-bg),var(--nav-bg-2));box-shadow:14px 0 38px rgba(31,63,81,.13)}
.brand-mark{background:linear-gradient(145deg,var(--sand),var(--brand));color:#203844;box-shadow:inset 0 1px 0 rgba(255,255,255,.48),0 8px 20px rgba(20,45,58,.18)}
.brand-sub,.user-role{color:var(--nav-muted)}
.nav-section{color:var(--nav-muted)}
.nav-link{color:var(--nav-text)}
.nav-link:hover{background:rgba(255,255,255,.09)}
.nav-link.active{background:rgba(255,255,255,.14);box-shadow:inset 3px 0 0 var(--sand);color:#fff}
.sidebar-footer{border-top-color:rgba(255,255,255,.14)}
.sidebar-location{display:flex;align-items:center;gap:11px;margin:0 4px 10px;padding:12px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);border-radius:15px}
.sidebar-location small,.current-location-chip small{display:block;font-size:10px;line-height:1.2;letter-spacing:.04em;color:inherit;opacity:.72}
.sidebar-location strong,.current-location-chip strong{display:block;font-size:13px;line-height:1.3;margin-top:2px}
.location-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 4px rgba(var(--brand-rgb),.18);flex:0 0 auto}
.sidebar .location-dot{background:var(--sand);box-shadow:0 0 0 4px rgba(246,201,146,.16)}
.topbar{height:80px;background:rgba(248,250,252,.92);border-bottom:1px solid rgba(172,192,211,.48);box-shadow:0 5px 22px rgba(62,94,114,.05)}
.topbar:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,var(--brand),var(--sand),var(--rose))}
.topbar-title{min-width:0;flex:1}.top-actions{flex-shrink:0}
.current-location-chip{display:flex;align-items:center;gap:10px;min-height:44px;padding:7px 12px;border:1px solid rgba(var(--brand-rgb),.22);background:var(--brand-soft);color:var(--brand-ink);border-radius:14px;max-width:230px}
.current-location-chip .chip-copy{min-width:0}
.current-location-chip strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card{border-color:var(--line);box-shadow:var(--shadow)}
.card:hover{border-color:rgba(var(--brand-rgb),.24)}
.metric{position:relative;overflow:hidden}
.metric:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:var(--brand)}
.metric-icon{background:var(--brand-soft);color:var(--brand-ink)}
.grid-4>.metric:nth-child(1) .metric-icon{background:#FFF0F2;color:#C83F4A}
.grid-4>.metric:nth-child(2) .metric-icon{background:#EDF4F8;color:#416F8F}
.grid-4>.metric:nth-child(3) .metric-icon{background:#E6F7F7;color:#087C7C}
.grid-4>.metric:nth-child(4) .metric-icon{background:#F8EFF2;color:#9A6074}
.btn-primary{background:var(--brand-strong);color:#fff;box-shadow:0 8px 20px rgba(var(--brand-rgb),.20)}
.btn-primary:hover{box-shadow:0 11px 25px rgba(var(--brand-rgb),.27)}
.btn-secondary{background:var(--brand-soft);color:var(--brand-ink)}
.btn-light{background:rgba(255,255,255,.92)}
.badge-primary{background:var(--brand-soft);color:var(--brand-ink)}
.input,.select,.textarea{border-color:#CFDCE5;background:#fff}
.input:focus,.select:focus,.textarea:focus{border-color:var(--brand);box-shadow:0 0 0 4px rgba(var(--brand-rgb),.13)}
.quick-action{position:relative;overflow:hidden}
.quick-action:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--brand)}
.quick-action .icon{color:var(--brand-ink)}
.quick-action:hover{border-color:rgba(var(--brand-rgb),.42);transform:translateY(-2px)}
.mobile-item{box-shadow:0 8px 24px rgba(62,94,114,.07)}
.mobile-kv{background:var(--surface-2)}
.step.done:before,.step.active:before{background:var(--brand)}
.step.done .step-dot,.step.active .step-dot{background:var(--brand-strong)}
.step.active .step-label{color:var(--brand-ink)}
.fab{background:var(--brand-strong);box-shadow:0 15px 30px rgba(var(--brand-rgb),.30)}
.bottom-nav{background:rgba(255,255,255,.96)!important;border:1px solid rgba(172,192,211,.58);box-shadow:0 14px 40px rgba(47,77,95,.18)!important}
.bottom-nav a{color:#718592!important}
.bottom-nav a.active{background:var(--brand-soft)!important;color:var(--brand-ink)!important}
.location-card{position:relative;overflow:hidden;border-top-width:4px}
.location-card.location-central{border-top-color:#09A1A1}.location-card.location-alltaste{border-top-color:#F0525C}.location-card.location-skyy9{border-top-color:#5484A4}.location-card.location-system{border-top-color:#ACC0D3}
.location-card.location-central .metric-icon{background:#E6F7F7;color:#087C7C}.location-card.location-alltaste .metric-icon{background:#FFF0F2;color:#C83F4A}.location-card.location-skyy9 .metric-icon{background:#EDF4F8;color:#416F8F}
.location-badge{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800}
.location-badge.location-central{background:#E6F7F7;color:#06686A}.location-badge.location-alltaste{background:#FFF0F2;color:#A72F39}.location-badge.location-skyy9{background:#EDF4F8;color:#355F7A}.location-badge.location-system{background:#F0F5F8;color:#607888}
.location-badge.location-central .location-dot{background:#09A1A1;box-shadow:none}.location-badge.location-alltaste .location-dot{background:#F0525C;box-shadow:none}.location-badge.location-skyy9 .location-dot{background:#5484A4;box-shadow:none}.location-badge.location-system .location-dot{background:#ACC0D3;box-shadow:none}
.login-page{background:#F4F8FA}
.login-hero{position:relative;overflow:hidden;background:radial-gradient(circle at 16% 10%,rgba(246,201,146,.42),transparent 31%),radial-gradient(circle at 85% 78%,rgba(211,150,166,.25),transparent 30%),linear-gradient(145deg,#315A70,#416F8F);color:#fff}
.login-hero:after{content:"";position:absolute;width:320px;height:320px;border-radius:50%;right:-130px;top:-90px;border:70px solid rgba(9,161,161,.18)}
.login-hero>*{position:relative;z-index:1}
.login-hero p{color:#E0EBF1}
.login-tags span{border:0;font-weight:800}
.login-tag-central{background:#09A1A1}.login-tag-alltaste{background:#F0525C}.login-tag-skyy9{background:#5484A4}
.login-palette{display:grid;grid-template-columns:repeat(6,1fr);height:12px;width:min(560px,100%);border-radius:999px;overflow:hidden;box-shadow:0 8px 20px rgba(16,40,54,.16)}
.login-palette span:nth-child(1){background:#F6C992}.login-palette span:nth-child(2){background:#F0525C}.login-palette span:nth-child(3){background:#ACC0D3}.login-palette span:nth-child(4){background:#D396A6}.login-palette span:nth-child(5){background:#09A1A1}.login-palette span:nth-child(6){background:#5484A4}
.login-panel{background:linear-gradient(160deg,#F8FAFC,#EDF4F8)}
.login-box{border-color:#DCE6ED;box-shadow:0 20px 55px rgba(62,94,114,.14)}
@media(max-width:1024px){
  .topbar{height:72px}.current-location-chip{max-width:180px;padding:7px 10px}.current-location-chip small{display:none}.current-location-chip strong{margin:0;font-size:12px}
}
@media(max-width:760px){
  .page-title{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-actions{gap:7px}.current-location-chip{max-width:128px;min-height:40px;border-radius:12px}.current-location-chip .location-dot{width:8px;height:8px}.top-request-btn{width:42px;min-height:42px;padding:0;border-radius:13px}.top-request-btn .btn-icon{font-size:22px;line-height:1}.top-request-btn .btn-label{display:none}.login-page{background:linear-gradient(160deg,#F8FAFC,#EDF4F8)}
}
@media(max-width:420px){.current-location-chip{max-width:112px}.page-title{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}


/* === v0.2 Daily closing / replenishment workflow === */
.compact-date{width:auto;min-width:155px}.compact-select{width:auto;min-width:220px}.soft-card{background:var(--surface-2);box-shadow:none}.form-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.mobile-cards-force{display:grid;gap:10px}.inline-form{display:flex;gap:8px}.inline-form .input{flex:1}.text-danger{color:var(--danger)}
.closing-summary{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 20px;border-radius:18px;background:linear-gradient(100deg,var(--brand-soft),#fff);border:1px solid rgba(var(--brand-rgb),.2)}.closing-summary strong{display:block;font-size:18px}.closing-summary span{color:var(--muted);font-size:13px}.closing-progress{font-weight:850;color:var(--brand-ink)}
.sales-entry-list{display:grid;gap:14px}.sales-entry{padding:15px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2)}.sales-entry-title{font-weight:900;margin-bottom:11px}.sales-total{margin-top:16px;padding:15px 18px;border-radius:15px;background:var(--brand-soft);display:flex;justify-content:space-between;align-items:center;color:var(--brand-ink)}.sales-total strong{font-size:24px}
.checklist-help{display:grid;gap:10px}.count-list{display:grid;gap:10px}.count-row{display:grid;grid-template-columns:minmax(190px,1fr) minmax(390px,1.7fr) 125px;gap:12px;align-items:end;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff}.count-product strong{display:block}.count-product span{display:block;color:var(--muted);font-size:12px;margin-top:4px}.count-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.count-recommend{padding:11px;border-radius:12px;background:var(--brand-soft);text-align:center}.count-recommend span{display:block;color:var(--brand-ink);font-size:11px}.count-recommend strong{display:block;color:var(--brand-ink);margin-top:4px}.count-note{grid-column:1/-1}.sticky-actions{position:sticky;bottom:84px;z-index:25;display:flex;justify-content:flex-end;gap:10px;padding:13px;margin:20px 0 0;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border:1px solid var(--line);border-radius:18px;box-shadow:0 15px 35px rgba(45,70,86,.15)}
.formula-box{padding:16px;border-radius:15px;background:linear-gradient(100deg,var(--sand),#fff3de);color:#6d491d}.source-legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:16px;font-size:12px}.source-legend span{display:flex;align-items:center;gap:6px}.source-dot{width:10px;height:10px;border-radius:50%;display:inline-block}.source-dot.stock{background:var(--teal)}.source-dot.buy{background:var(--sand)}.source-dot.produce{background:var(--coral)}
.plan-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:14px;border:1px solid var(--line);border-radius:18px;background:#fff}.plan-summary>div{padding:10px 12px;background:var(--surface-2);border-radius:13px}.plan-summary span{display:block;font-size:11px;color:var(--muted)}.plan-summary strong{display:block;margin-top:4px;font-size:16px}.mini-summary{grid-template-columns:repeat(2,minmax(0,1fr));padding:0;border:0}
.refill-list{display:grid;gap:10px}.refill-row{display:grid;grid-template-columns:minmax(180px,1.1fr) minmax(300px,1.5fr) minmax(310px,1.5fr);gap:12px;align-items:end;padding:14px;border:1px solid var(--line);border-radius:16px}.refill-product strong,.refill-product span{display:block}.refill-product span{font-size:12px;color:var(--muted);margin-top:4px}.refill-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.refill-stats>div{padding:9px;background:var(--surface-2);border-radius:10px;text-align:center}.refill-stats span{display:block;font-size:10px;color:var(--muted)}.refill-stats strong{font-size:13px}.recommend-value{color:var(--brand-ink)}.refill-controls{display:grid;grid-template-columns:1fr 1.3fr;gap:8px}.refill-row>.input{grid-column:1/-1}
.sync-plan-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.sync-plan{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border:1px solid var(--line);border-radius:14px}.sync-plan strong,.sync-plan span{display:block}.sync-plan span{font-size:12px;color:var(--muted)}
.purchase-list,.actual-purchase-list{display:grid;gap:10px}.purchase-row{display:grid;grid-template-columns:150px minmax(170px,1.3fr) 140px minmax(180px,1fr);gap:10px;align-items:end;padding:13px;border:1px solid var(--line);border-radius:15px}.purchase-product strong,.purchase-product span{display:block}.purchase-product span{font-size:12px;color:var(--muted)}.purchase-row>.input{grid-column:2/-1}.actual-purchase-row{display:grid;grid-template-columns:minmax(170px,1.2fr) 130px 130px minmax(170px,1fr) 95px;gap:10px;align-items:end;padding:13px;border-bottom:1px solid var(--line)}.actual-total{text-align:right;padding-bottom:12px}.actual-total span{display:block;font-size:11px;color:var(--muted)}
.need-chips{display:flex;gap:10px;overflow:auto;padding-bottom:3px}.need-chip{min-width:220px;padding:13px;border:1px solid var(--line);border-radius:14px;background:var(--brand-soft)}.need-chip strong,.need-chip span{display:block}.need-chip span{font-size:12px;color:var(--brand-ink);margin-top:4px}.process-example{display:flex;align-items:center;justify-content:center;gap:15px;padding:20px;border-radius:18px;background:linear-gradient(100deg,var(--mist),#edf5f8)}.process-example>div:not(.process-arrow){padding:13px;background:rgba(255,255,255,.75);border-radius:14px}.process-example span,.process-example strong{display:block}.process-example span{font-size:11px;color:var(--muted)}.process-arrow{font-size:25px;font-weight:900}.batch-list{display:grid;gap:12px}.batch-card{border:1px solid var(--line);border-radius:17px;padding:15px}.input-actual-list{display:grid;gap:8px}.actual-input{display:grid;grid-template-columns:1fr 160px;gap:10px;align-items:end;padding:10px;background:var(--surface-2);border-radius:13px}
.delivery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.delivery-card{overflow:hidden}.pick-list,.receive-list{display:grid;gap:9px}.pick-row{display:grid;grid-template-columns:32px 1fr 140px;align-items:end;gap:9px;padding:12px;border:1px solid var(--line);border-radius:14px}.pick-row.stock-short{border-color:var(--danger);background:var(--danger-soft)}.pick-check{font-size:22px;color:var(--brand)}.dispatch-summary-list{display:grid;gap:7px}.dispatch-summary-list>div{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}.receive-row{display:grid;grid-template-columns:minmax(170px,1fr) 120px minmax(180px,1fr);gap:9px;align-items:end;padding:12px;border:1px solid var(--line);border-radius:14px}.receive-note{grid-column:1/-1}.received-history{display:grid!important;grid-template-columns:1fr auto!important}.received-history small{grid-column:1/-1;text-align:right}
.supplier-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sales-point-list{display:grid;gap:7px}.sales-point-row{display:flex;align-items:center;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line)}.sales-point-row button{border:0}.branch-setting-list{display:grid;gap:12px}.branch-setting{padding:13px;border:1px solid var(--line);border-radius:15px;background:#fff}.branch-setting-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.toggle-label{font-size:12px;color:var(--muted)}
.report-line{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid var(--line)}.report-line span{display:block;color:var(--muted);font-size:12px}.accuracy-list{max-height:350px;overflow:auto}
@media(max-width:1200px){.refill-row{grid-template-columns:1fr 1.5fr}.refill-controls{grid-column:1/-1}.count-row{grid-template-columns:1fr 2fr}.count-recommend{grid-column:1/-1;text-align:left;display:flex;justify-content:space-between}.purchase-row{grid-template-columns:140px 1fr 130px}.purchase-row>.field:nth-of-type(2){grid-column:auto}.actual-purchase-row{grid-template-columns:1fr 120px 120px}.actual-purchase-row>.field:nth-of-type(3){grid-column:1/3}.actual-total{grid-column:3}}
@media(max-width:760px){.compact-date,.compact-select{width:100%;min-width:0}.form-grid-3{grid-template-columns:1fr}.closing-summary{align-items:flex-start}.count-row,.refill-row,.purchase-row,.actual-purchase-row,.receive-row{display:block}.count-fields,.refill-stats,.refill-controls{margin-top:10px}.count-fields{grid-template-columns:repeat(3,1fr)}.count-recommend,.count-note,.refill-row>.input,.purchase-row>.input,.receive-note{margin-top:10px}.refill-stats{grid-template-columns:repeat(2,1fr)}.refill-controls{grid-template-columns:1fr}.plan-summary{grid-template-columns:repeat(2,1fr)}.sticky-actions{bottom:82px}.sticky-actions .btn{flex:1}.sync-plan-list,.supplier-grid,.delivery-grid{grid-template-columns:1fr}.purchase-row>*{margin-top:9px}.actual-purchase-row>*{margin-top:9px}.actual-total{text-align:left}.actual-input,.pick-row{grid-template-columns:1fr}.pick-check{display:none}.receive-row>*{margin-top:9px}.process-example{flex-direction:column}.process-arrow{transform:rotate(90deg)}.branch-setting-head{align-items:flex-start;gap:8px}.sales-entry .form-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:480px){.count-fields,.sales-entry .form-grid{grid-template-columns:1fr}.refill-stats{grid-template-columns:1fr 1fr}.plan-summary{grid-template-columns:1fr 1fr}.closing-summary{display:block}.closing-progress{margin-top:8px}.source-legend{display:grid;grid-template-columns:1fr 1fr}.sticky-actions{padding:9px}.sticky-actions .btn{font-size:13px}.inline-form{display:grid}.actual-input{display:block}.actual-input .field{margin-top:8px}}

/* === v0.2.1 Branch UI / collaborative stock count === */
.sidebar{overflow:hidden}
.sidebar-nav-scroll{flex:1;min-height:0;overflow-y:auto;padding-right:4px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.25) transparent}
.sidebar-nav-scroll::-webkit-scrollbar{width:6px}.sidebar-nav-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22);border-radius:999px}
.sidebar-footer{margin-top:10px;flex:0 0 auto}
.mobile-account{display:none;align-items:center;gap:6px}.mobile-user-link{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:7px;min-width:0;width:min(42vw,185px);padding:6px 9px;border:1px solid rgba(var(--brand-rgb),.22);background:#fff;border-radius:13px;box-shadow:0 4px 14px rgba(var(--brand-rgb),.06)}.mobile-user-icon{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;color:var(--brand);font-size:9px;background:var(--brand-soft)}.mobile-user-copy{display:block;min-width:0;line-height:1.15}.mobile-user-name,.mobile-user-branch{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-user-name{font-size:12px;font-weight:900;color:var(--text)}.mobile-user-branch{font-size:10px;font-weight:750;color:var(--brand-ink);margin-top:3px}.mobile-logout{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--danger-soft);color:var(--danger);font-weight:900;font-size:19px;flex:0 0 auto}
.dashboard-alert{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 18px;border-radius:18px;border:1px solid rgba(var(--brand-rgb),.24);background:linear-gradient(100deg,var(--brand-soft),#fff);box-shadow:var(--shadow)}.dashboard-alert strong,.dashboard-alert span{display:block}.dashboard-alert span{font-size:12px;color:var(--muted);margin-top:4px}.alert-receiving{border-color:rgba(240,82,92,.3);background:linear-gradient(100deg,#FFF0F2,#fff)}.metric-status{font-size:23px!important}.request-summary-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.request-summary-list>div{display:flex;justify-content:space-between;gap:12px;padding:11px 13px;border-radius:13px;background:var(--surface-2)}.request-summary-list span{color:var(--text)}.request-summary-list strong{white-space:nowrap;color:var(--brand-ink)}
.count-card-list{display:grid;gap:12px}.inventory-count-card{padding:15px;border:1px solid var(--line);border-radius:17px;background:#fff;transition:.18s ease}.inventory-count-card.is-saved{border-color:rgba(9,161,161,.35);box-shadow:inset 4px 0 0 var(--brand)}.inventory-count-card.is-locked{border-color:rgba(168,103,18,.4);background:#FFFCF7}.inventory-count-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.inventory-count-head strong,.inventory-count-head span{display:block}.inventory-count-head span{font-size:12px;color:var(--muted);margin-top:3px}.count-lock-message{display:none;margin-top:10px;padding:10px 12px;border-radius:12px;background:var(--warning-soft);color:var(--warning);font-size:12px;font-weight:750}.count-lock-message.visible{display:block}.multi-unit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:13px}.request-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:9px}.count-note{margin-top:9px}.count-row-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}.counted-by-text{color:var(--muted);font-size:11px}.inventory-count-card.is-saving{opacity:.72;pointer-events:none}.inventory-count-card input:disabled,.inventory-count-card select:disabled{background:#f2f4f5;color:#7d8990}.count-unit-settings{display:grid;gap:8px}.count-unit-setting{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:10px;border-radius:13px;background:var(--surface-2)}
@media(max-width:1024px){.mobile-account{display:flex}.current-location-chip{display:none}}
@media(max-width:760px){.topbar{height:74px;padding:0 10px}.top-actions{gap:5px}.mobile-user-link{width:min(43vw,170px);padding:6px 7px}.mobile-user-name{font-size:11px}.mobile-user-branch{font-size:9px}.mobile-logout{width:38px;height:38px}.top-request-btn{display:none}.page-title{max-width:110px}.dashboard-alert{align-items:flex-start}.dashboard-alert .btn{flex:0 0 auto}.request-summary-list{grid-template-columns:1fr}.multi-unit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.request-grid{grid-template-columns:1fr 130px}.count-row-footer{align-items:flex-end}.count-row-footer .btn{min-width:130px}}
@media(max-width:480px){.mobile-user-link{grid-template-columns:minmax(0,1fr);width:min(45vw,155px);padding-left:8px;padding-right:8px}.mobile-user-icon{display:none}.page-title{max-width:82px;font-size:17px}.dashboard-alert{display:block}.dashboard-alert .btn{width:100%;margin-top:12px}.multi-unit-grid,.request-grid,.count-unit-setting{grid-template-columns:1fr}.count-row-footer{display:block}.count-row-footer .btn{width:100%;margin-top:9px}.sticky-actions{display:block}.sticky-actions .field{margin-bottom:9px}.request-summary-list>div{align-items:flex-start}}

/* === v0.2.3 Mobile stock count and dashboard closing === */
.count-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:12px;align-items:center}
.count-filter-chips{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding:2px 1px}.count-filter-chips::-webkit-scrollbar{display:none}
.count-filter-chip{border:1px solid var(--line);background:#fff;color:var(--muted);border-radius:999px;padding:9px 13px;font-size:12px;font-weight:850;white-space:nowrap;cursor:pointer}
.count-filter-chip.active{border-color:rgba(var(--brand-rgb),.28);background:var(--brand);color:#fff;box-shadow:0 7px 18px rgba(var(--brand-rgb),.18)}
.count-category-head{padding-top:15px;padding-bottom:12px}.count-card-list{gap:8px}
.inventory-count-card{padding:0;overflow:hidden}.inventory-count-card.is-saved{box-shadow:inset 4px 0 0 var(--brand)}
.count-card-toggle{width:100%;min-height:72px;border:0;background:transparent;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;padding:13px 14px;cursor:pointer;color:inherit}
.count-card-main{display:block;min-width:0;flex:1}.count-card-name{display:block;font-size:15px;font-weight:900;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.count-card-summary{display:block;margin-top:5px;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.count-card-meta{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex:0 0 auto}.count-card-meta .badge{font-size:10px;padding:6px 8px}.count-chevron{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--surface-2);font-size:18px;font-weight:900;transition:transform .18s ease}.inventory-count-card.is-expanded .count-chevron{transform:rotate(180deg)}
.count-card-body{padding:0 14px 15px;border-top:1px solid var(--line);background:linear-gradient(180deg,var(--surface-2),#fff 55px)}.count-card-body[hidden]{display:none!important}
.count-product-caption{padding-top:11px;color:var(--muted);font-size:11px}.count-unit-help{margin-top:10px;padding:9px 11px;border-radius:11px;background:rgba(var(--brand-rgb),.08);color:var(--brand-ink);font-size:11px;line-height:1.45}
.multi-unit-grid{grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:8px;margin-top:10px}.count-unit-field{position:relative}.count-unit-field label{font-size:12px;font-weight:850}.count-unit-field .input{font-size:18px;font-weight:850;text-align:center;min-height:48px}
.tomorrow-need-box{margin-top:12px;padding:12px;border:1px solid rgba(var(--brand-rgb),.17);background:#fff;border-radius:14px}.checkbox-line{display:flex;align-items:flex-start;gap:10px;cursor:pointer}.checkbox-line input{width:21px;height:21px;margin:1px 0 0;accent-color:var(--brand);flex:0 0 auto}.checkbox-line span{display:block}.checkbox-line strong,.checkbox-line small{display:block}.checkbox-line strong{font-size:13px}.checkbox-line small{font-size:11px;color:var(--muted);margin-top:3px}
.tomorrow-need-box .request-grid{margin-top:12px}.count-note-details{margin-top:10px;border-top:1px dashed var(--line);padding-top:9px}.count-note-details summary{cursor:pointer;color:var(--brand-ink);font-size:12px;font-weight:850;list-style:none}.count-note-details summary::-webkit-details-marker{display:none}.count-note-details summary:before{content:'＋';display:inline-block;margin-right:6px}.count-note-details[open] summary:before{content:'−'}.count-note-details summary span{color:var(--muted);font-weight:650;margin-left:4px}.count-note-details .count-note{margin-top:9px}
.count-finish-bar{position:static;display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:18px;margin-bottom:8px;padding:13px 15px;border:1px solid var(--line);background:#fff;border-radius:17px;box-shadow:0 8px 24px rgba(45,70,86,.09)}.count-finish-bar strong,.count-finish-bar span{display:block}.count-finish-bar strong{font-size:14px}.count-finish-bar span{font-size:11px;color:var(--muted);margin-top:3px}
.close-shop-panel .stepper{margin-top:18px}.close-shop-form{display:grid;gap:12px;margin-top:18px}.btn-close-shop{min-height:51px;font-size:16px}.label-optional{color:var(--muted);font-size:11px;font-weight:650}.closed-shop-result{display:grid;gap:12px;margin:18px 0}.closed-shop-result>div:first-child{padding:14px;border-radius:14px;background:var(--success-soft);color:var(--success)}.closed-shop-result strong,.closed-shop-result span{display:block}.closed-shop-result span{font-size:12px;margin-top:4px}.closing-note-view{padding:13px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2)}.closing-note-view span{font-size:11px;color:var(--muted)}.closing-note-view p{margin:6px 0 0;line-height:1.55}.needed-inline{display:inline-block;margin-left:7px;padding:4px 7px;border-radius:999px;background:var(--warning-soft);color:var(--warning);font-size:10px;font-style:normal;font-weight:850;vertical-align:middle}.request-summary-list>div>span{min-width:0}.request-summary-list>div>strong{white-space:nowrap}

@media(max-width:760px){
 .count-toolbar{grid-template-columns:1fr;gap:8px;position:sticky;top:74px;z-index:22;padding:9px;margin-left:-4px;margin-right:-4px;background:rgba(248,250,252,.95);backdrop-filter:blur(10px);border-radius:15px}
 .count-category{border-radius:16px}.count-category .card-pad{padding:8px}.count-category-head{padding:12px 13px 8px}.count-category-head .card-title{font-size:14px}
 .count-card-toggle{min-height:68px;padding:12px}.count-card-name{font-size:14px}.count-card-summary{font-size:11px}.count-card-meta .count-needed-badge{display:none}.count-card-meta{gap:5px}.count-card-meta .badge{font-size:9px}.count-card-body{padding-left:12px;padding-right:12px}
 .request-grid{grid-template-columns:minmax(0,1fr) 115px}.count-row-footer{display:flex;align-items:flex-end}.count-row-footer .btn{width:auto;min-width:130px;margin-top:0}
 .close-shop-panel{padding:15px}
}
@media(max-width:480px){
 .closing-summary{padding:13px 14px}.closing-progress{font-size:12px}
 .count-filter-chip{padding:8px 11px}.count-card-toggle{gap:8px}.count-card-meta .badge{padding:5px 7px}.count-chevron{width:23px;height:23px}
 .multi-unit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.count-unit-field .input{font-size:17px}
 .request-grid{grid-template-columns:1fr}.count-row-footer{display:block}.count-row-footer .btn{width:100%;margin-top:9px}.count-finish-bar{display:block;padding:11px}.count-finish-bar .btn{width:100%;margin-top:9px}
 .needed-inline{display:block;width:max-content;margin:5px 0 0}
}
@media(max-width:350px){.multi-unit-grid{grid-template-columns:1fr}.count-card-summary{max-width:150px}}

/* === v0.2.5 Continuous mobile stock count === */
.count-continuous-card{padding:14px 15px;overflow:visible;background:#fff}
.count-continuous-card.is-saved{box-shadow:inset 4px 0 0 var(--brand)}
.continuous-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.continuous-title-wrap{min-width:0;flex:1}
.continuous-product-name{display:block;font-size:18px;line-height:1.25;font-weight:950;color:var(--text)}
.continuous-product-meta{display:block;margin-top:4px;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.continuous-count-label{margin-top:13px;font-size:12px;font-weight:900;color:var(--brand-ink)}
.continuous-unit-grid{grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:8px;margin-top:7px}
.count-unit-box{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;padding:9px 10px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2)}
.count-unit-box>span{font-size:12px;font-weight:900;color:var(--text)}
.count-unit-box .input{min-height:47px;padding:8px 10px;background:#fff;text-align:center;font-size:19px;font-weight:900}
.count-unit-box:focus-within{border-color:rgba(var(--brand-rgb),.45);box-shadow:0 0 0 3px rgba(var(--brand-rgb),.08);background:#fff}
.request-toggle-box{margin-top:12px;padding:11px 12px;border:1px solid rgba(var(--brand-rgb),.18);border-radius:14px;background:#fff}
.request-checkbox-line strong{font-size:13px}.request-checkbox-line small{font-size:11px;color:var(--muted);margin-top:2px}
.request-fields{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:8px;margin-top:11px;padding-top:10px;border-top:1px dashed var(--line)}
.request-fields[hidden]{display:none!important}
.request-fields .field{margin:0}.request-fields label{font-size:11px}.request-fields .input,.request-fields .select{min-height:44px}
.count-continuous-card .count-note-details{margin-top:10px}
.continuous-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:24px;margin-top:11px;padding-top:9px;border-top:1px solid var(--line)}
.count-autosave-state{flex:0 0 auto;font-size:11px;font-weight:850;color:var(--muted)}
.count-autosave-state.is-waiting{color:var(--warning)}
.count-autosave-state.is-saving{color:var(--brand-ink)}
.count-autosave-state.is-saved{color:var(--success)}
.count-autosave-state.is-error{color:var(--danger)}
.count-continuous-card.is-saving{opacity:.82;pointer-events:none}
.count-continuous-card.is-locked{background:#fffcf7}
.count-continuous-card .count-lock-message{margin-top:10px}

@media(max-width:760px){
 .count-continuous-card{padding:13px 12px}
 .continuous-product-name{font-size:17px}
 .continuous-unit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .count-unit-box{padding:8px}
 .count-unit-box .input{min-height:46px;font-size:18px}
 .continuous-card-footer{align-items:flex-start}
 .counted-by-text{max-width:62%;line-height:1.4}
}
@media(max-width:430px){
 .request-fields{grid-template-columns:minmax(0,1fr) 105px}
 .continuous-product-name{font-size:16px}
 .continuous-product-meta{font-size:10px}
 .count-autosave-state{font-size:10px}
}
@media(max-width:350px){
 .continuous-unit-grid,.request-fields{grid-template-columns:1fr}
 .continuous-card-footer{display:block}
 .counted-by-text{display:block;max-width:none}
 .count-autosave-state{display:block;margin-top:5px}
}

/* === v0.2.6 Touch Numpad === */
.count-custom-numpad-input{cursor:pointer;caret-color:transparent;-webkit-user-select:none;user-select:none}
.count-custom-numpad-input.numpad-active-input{border-color:var(--brand)!important;box-shadow:0 0 0 3px rgba(var(--brand-rgb),.13)!important;background:#fff!important}
.count-unit-box.numpad-active-box{border-color:rgba(var(--brand-rgb),.55);background:#fff;box-shadow:0 0 0 3px rgba(var(--brand-rgb),.08)}
.count-numpad-backdrop{position:fixed;inset:0;z-index:1180;background:rgba(20,34,43,.32);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.count-numpad-backdrop[hidden],.count-numpad-sheet[hidden]{display:none!important}
.count-numpad-sheet{position:fixed;left:0;right:0;bottom:0;z-index:1190;width:100%;max-height:min(76vh,620px);overflow:auto;padding:8px max(14px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));border-radius:24px 24px 0 0;background:#fff;box-shadow:0 -18px 55px rgba(29,47,59,.22);animation:countNumpadIn .16s ease-out}
.count-numpad-handle{width:42px;height:5px;margin:0 auto 7px;border-radius:999px;background:#d9e0e5}
.count-numpad-head{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:520px;margin:0 auto}
.count-numpad-title-wrap{min-width:0}.count-numpad-product,.count-numpad-context{display:block}.count-numpad-product{font-size:16px;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.count-numpad-context{margin-top:2px;color:var(--muted);font-size:11px;font-weight:750}
.count-numpad-close{display:grid;place-items:center;flex:0 0 auto;width:36px;height:36px;border:0;border-radius:50%;background:var(--surface-2);color:var(--text);font-size:25px;line-height:1;cursor:pointer}
.count-numpad-display{max-width:520px;min-height:52px;margin:8px auto;padding:7px 13px;border:1px solid rgba(var(--brand-rgb),.22);border-radius:14px;background:rgba(var(--brand-rgb),.06);color:var(--text);font-size:30px;font-weight:950;line-height:36px;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}
.count-numpad-display.is-empty{color:#a7b1b8}
.count-numpad-keys{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-width:520px;margin:0 auto}
.count-numpad-keys button{min-height:51px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--text);font-size:23px;font-weight:900;box-shadow:0 2px 0 rgba(40,64,78,.05);touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.count-numpad-keys button:active{transform:translateY(1px);background:rgba(var(--brand-rgb),.09);border-color:rgba(var(--brand-rgb),.35)}
.count-numpad-keys .count-numpad-backspace{background:var(--surface-2);font-size:22px}.count-numpad-keys .count-numpad-decimal{font-weight:950}.count-numpad-keys .count-numpad-decimal.is-disabled{opacity:.28;background:var(--surface-2)}
.count-numpad-actions{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:7px;max-width:520px;margin:9px auto 0}.count-numpad-actions .btn{min-height:45px;padding:9px 10px;font-size:13px}
body.count-numpad-open{overscroll-behavior:none}
@keyframes countNumpadIn{from{transform:translateY(24px);opacity:.4}to{transform:translateY(0);opacity:1}}
@media(min-width:700px) and (pointer:coarse){
 .count-numpad-sheet{left:50%;right:auto;bottom:18px;width:min(560px,calc(100vw - 36px));border-radius:24px;transform:translateX(-50%);padding:10px 18px calc(14px + env(safe-area-inset-bottom));animation:countNumpadTabletIn .16s ease-out}
 @keyframes countNumpadTabletIn{from{transform:translate(-50%,24px);opacity:.4}to{transform:translate(-50%,0);opacity:1}}
}
@media(max-height:650px){
 .count-numpad-sheet{padding-top:5px}.count-numpad-handle{margin-bottom:4px}.count-numpad-display{min-height:43px;margin:5px auto;font-size:25px;line-height:29px}.count-numpad-keys button{min-height:43px}.count-numpad-actions{margin-top:6px}.count-numpad-actions .btn{min-height:40px}
}
.count-numpad-unit-row{display:grid;grid-template-columns:auto minmax(130px,220px);align-items:center;justify-content:space-between;gap:10px;max-width:520px;margin:7px auto 0;padding:7px 9px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.count-numpad-unit-row[hidden]{display:none!important}.count-numpad-unit-row label{font-size:12px;font-weight:850;color:var(--muted)}.count-numpad-unit-row .select{min-height:38px;padding-top:6px;padding-bottom:6px;background:#fff;font-weight:850}
@media(max-width:380px){.count-numpad-unit-row{grid-template-columns:1fr}.count-numpad-unit-row .select{width:100%}}

/* === v0.2.9 Compact responsive stock table === */
.stock-view-toolbar .toolbar-left{flex:1;min-width:0}.stock-view-search{width:min(420px,46vw)}
.stock-overview-summary{align-items:center}.stock-adjust-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;cursor:pointer;list-style:none}.stock-adjust-panel>summary::-webkit-details-marker{display:none}.stock-adjust-panel>summary span{color:var(--muted);font-size:12px;font-weight:650}.stock-adjust-panel[open]>summary{border-bottom:1px solid var(--line)}
.stock-count-source{font-size:12px}.stock-table-card{overflow:hidden}.stock-table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.stock-data-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.stock-data-table th{padding:12px 11px;border-bottom:1px solid var(--line);background:var(--surface-2);color:var(--muted);font-size:11px;font-weight:850;letter-spacing:.025em;text-align:left;white-space:nowrap}.stock-data-table td{padding:11px;border-bottom:1px solid #edf1f4;vertical-align:middle}.stock-data-table tbody:last-child tr:last-child td{border-bottom:0}
.stock-col-product{width:23%}.stock-col-category{width:12%}.stock-col-breakdown{width:26%}.stock-col-total{width:16%}.stock-col-updated{width:15%}.stock-col-status{width:8%;text-align:center}
.stock-table-category-row td{padding:9px 12px;background:rgba(var(--brand-rgb),.065);color:var(--brand-ink);border-bottom:1px solid rgba(var(--brand-rgb),.13)}.stock-table-category-row strong{font-size:13px;font-weight:950}.stock-table-category-row span{margin-left:8px;color:var(--muted);font-size:11px;font-weight:700}
.stock-table-item-row:hover td{background:#fbfdfe}.stock-table-item-row.is-low-stock td:first-child{box-shadow:inset 4px 0 0 var(--danger)}
.stock-row-toggle{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:0;padding:0;border:0;background:transparent;color:inherit;text-align:left}.stock-product-main{display:block;min-width:0}.stock-product-main strong{display:block;font-size:14px;font-weight:900;line-height:1.3;overflow:hidden;text-overflow:ellipsis}.stock-product-main small{display:block;margin-top:2px;color:var(--muted);font-size:10px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stock-row-chevron{display:none;flex:0 0 auto;color:var(--muted);font-size:17px;font-weight:900;transition:transform .15s ease}.stock-table-item-row[aria-expanded="true"] .stock-row-chevron{transform:rotate(180deg)}
.stock-category-text{display:block;color:var(--muted);font-size:12px;font-weight:750;overflow:hidden;text-overflow:ellipsis}.stock-qty-list{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.stock-qty-chip{display:inline-flex;align-items:baseline;gap:3px;padding:5px 7px;border:1px solid rgba(var(--brand-rgb),.14);border-radius:9px;background:rgba(var(--brand-rgb),.055);color:var(--brand-ink);font-size:11px;font-weight:750;white-space:nowrap}.stock-qty-chip strong{font-size:13px;font-weight:950;font-variant-numeric:tabular-nums}.stock-qty-chip.is-empty{border-color:var(--line);background:var(--surface-2);color:var(--muted)}
.stock-inline-warning,.stock-inline-muted{display:block;margin-top:5px;font-size:10px;font-weight:750}.stock-inline-warning{color:var(--warning)}.stock-inline-muted{color:var(--muted)}
.stock-system-total{display:block;color:var(--text);font-size:14px;font-weight:950;font-variant-numeric:tabular-nums}.stock-col-total small{display:block;margin-top:3px;color:var(--muted);font-size:10px}.stock-col-updated span{display:block;color:var(--muted);font-size:11px;font-weight:700;line-height:1.35}.stock-col-status .badge{padding:5px 8px;font-size:10px}
.stock-mobile-detail-row[hidden]{display:none!important}.stock-mobile-detail-row td{padding:0 10px 11px;background:#fbfdfe}.stock-mobile-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:9px;border:1px solid var(--line);border-radius:12px;background:#fff}.stock-mobile-detail-grid div{min-width:0}.stock-mobile-detail-grid span{display:block;color:var(--muted);font-size:10px;font-weight:700}.stock-mobile-detail-grid strong{display:block;margin-top:2px;font-size:12px;font-weight:850;overflow-wrap:anywhere}.stock-mobile-note{margin-top:7px;padding:7px 9px;border-radius:9px;background:var(--surface-2);color:var(--muted);font-size:10px;font-weight:750}.stock-mobile-note.warning{background:var(--warning-soft);color:var(--warning)}
@media(max-width:999px){
 .stock-col-category,.stock-col-updated{display:none}.stock-col-product{width:26%}.stock-col-breakdown{width:34%}.stock-col-total{width:26%}.stock-col-status{width:14%}.stock-row-chevron{display:inline-block}.stock-row-toggle{cursor:pointer}.stock-data-table th,.stock-data-table td{padding:10px 9px}
}
@media(min-width:1000px){.stock-mobile-detail-row{display:none!important}.stock-row-toggle{cursor:default}}
@media(max-width:760px){
 .stock-view-toolbar{align-items:stretch}.stock-view-toolbar .toolbar-left{display:grid;grid-template-columns:1fr;gap:8px;width:100%}.stock-view-toolbar .toolbar-right{align-self:flex-start}.stock-view-search,.stock-view-toolbar .compact-select{width:100%;max-width:none}.stock-overview-summary{align-items:flex-start}.stock-adjust-panel>summary{align-items:flex-start;padding:14px}.stock-adjust-panel>summary span{max-width:56%;text-align:right}
 .stock-table-card{border-radius:16px}.stock-table-scroll{overflow-x:hidden}.stock-data-table{table-layout:fixed}.stock-data-table thead th{padding:9px 7px;font-size:9px}.stock-data-table td{padding:9px 7px}.stock-col-product{width:38%}.stock-col-breakdown{width:44%}.stock-col-total{display:none}.stock-col-status{width:18%}.stock-table-category-row td{padding:8px 9px}.stock-product-main strong{font-size:13px}.stock-product-main small{font-size:9px}.stock-qty-list{display:grid;gap:3px}.stock-qty-chip{display:block;width:max-content;max-width:100%;padding:3px 5px;border:0;background:transparent;font-size:10px;overflow:hidden;text-overflow:ellipsis}.stock-qty-chip strong{font-size:12px}.stock-qty-chip.is-empty{background:transparent}.stock-inline-warning,.stock-inline-muted{font-size:9px}.stock-col-status .badge{max-width:100%;padding:4px 6px;font-size:9px}.stock-row-chevron{font-size:15px}
}
@media(max-width:420px){
 .stock-data-table thead th{padding-left:5px;padding-right:5px}.stock-data-table td{padding-left:5px;padding-right:5px}.stock-col-product{width:40%}.stock-col-breakdown{width:42%}.stock-col-status{width:18%}.stock-product-main strong{font-size:12px}.stock-qty-chip strong{font-size:11px}.stock-table-category-row td{padding-left:7px;padding-right:7px}.stock-mobile-detail-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:350px){.stock-adjust-panel>summary{display:block}.stock-adjust-panel>summary span{display:block;max-width:none;margin-top:4px;text-align:left}.stock-col-product{width:42%}.stock-col-breakdown{width:40%}.stock-col-status{width:18%}.stock-product-main small{display:none}.stock-qty-chip{font-size:9px}.stock-qty-chip strong{font-size:10px}}


/* === v0.2.10 Revenue entry by sales point === */
.revenue-toolbar{align-items:flex-start}.revenue-point-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.revenue-point-card{min-width:0}.revenue-point-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.revenue-method-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:16px}.revenue-method-field{display:block;min-width:0}.revenue-method-field>span{display:block;margin-bottom:6px;color:var(--muted);font-size:12px;font-weight:800}.revenue-money-input{position:relative}.revenue-money-input>b{position:absolute;left:13px;top:50%;z-index:2;transform:translateY(-50%);color:var(--muted);font-size:14px}.revenue-money-input .input{padding-left:32px;text-align:right;font-size:18px;font-weight:900;font-variant-numeric:tabular-nums}.revenue-note-details{margin-top:13px}.revenue-note-details>summary{display:inline-flex;align-items:center;gap:6px;color:var(--brand);font-size:12px;font-weight:850;cursor:pointer;list-style:none}.revenue-note-details>summary::-webkit-details-marker{display:none}.revenue-note-details[open]>summary{margin-bottom:8px}.revenue-submit-wrap{display:flex;justify-content:flex-end;margin-top:16px}.revenue-submit-btn{min-width:240px}.compact-empty{padding:18px 4px 4px}.compact-empty .empty-title{font-size:13px;color:var(--warning)}
.revenue-amount-input.numpad-active-input{border-color:var(--brand)!important;box-shadow:0 0 0 3px rgba(var(--brand-rgb),.13)!important}.revenue-numpad-sheet .count-numpad-context{font-weight:850;color:var(--brand)}
.sales-point-settings{padding:12px 0;border-bottom:1px solid var(--line)}.sales-point-settings:last-child{border-bottom:0}.sales-point-settings>.sales-point-row{padding:0}.payment-method-setting-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.payment-method-setting-row{display:inline-flex;align-items:center;gap:5px;padding:5px 6px 5px 9px;border:1px solid var(--line);border-radius:999px;background:var(--surface-2);font-size:11px;font-weight:800}.payment-method-setting-row .badge{border:0;padding:4px 7px}.payment-method-add{margin-top:9px}.payment-method-add .input{min-height:38px;padding:8px 10px;font-size:12px}
@media(max-width:1180px){.revenue-point-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.revenue-point-grid{grid-template-columns:1fr;gap:12px}.revenue-point-card{padding:15px}.revenue-method-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.revenue-money-input .input{min-height:50px;font-size:20px}.revenue-submit-wrap{position:sticky;bottom:80px;z-index:20;margin:14px -4px 0;padding:8px;border:1px solid rgba(var(--brand-rgb),.16);border-radius:16px;background:rgba(255,255,255,.94);box-shadow:0 10px 30px rgba(29,47,59,.12);backdrop-filter:blur(10px)}.revenue-submit-btn{width:100%;min-width:0}.revenue-toolbar .toolbar-right{width:100%;justify-content:space-between}.payment-method-add{display:grid;grid-template-columns:1fr auto}}
@media(max-width:380px){.revenue-method-grid{grid-template-columns:1fr}.revenue-submit-wrap{bottom:76px}}

/* === v0.2.11 Direct-unit purchase workflow === */
.purchase-row-multi-unit{grid-template-columns:minmax(135px,.8fr) minmax(180px,1.1fr) minmax(115px,.7fr) minmax(125px,.75fr) minmax(145px,.9fr) minmax(160px,1fr)}.purchase-note{align-self:end}.purchase-note>summary{padding:10px 0;color:var(--brand);font-size:11px;font-weight:850;cursor:pointer;list-style:none}.purchase-note>summary::-webkit-details-marker{display:none}.purchase-note[open]>summary{padding-bottom:6px}.actual-purchase-multi-unit{grid-template-columns:minmax(160px,1.15fr) minmax(100px,.65fr) minmax(150px,1fr) minmax(110px,.72fr) minmax(150px,1fr) minmax(100px,.65fr)}
@media(max-width:1180px){.purchase-row-multi-unit{grid-template-columns:repeat(3,minmax(0,1fr))}.purchase-note{grid-column:1/-1}.actual-purchase-multi-unit{grid-template-columns:repeat(3,minmax(0,1fr))}.actual-purchase-multi-unit>.actual-total{align-self:end}}
@media(max-width:760px){.purchase-row-multi-unit,.actual-purchase-multi-unit{grid-template-columns:1fr}.purchase-row-multi-unit .purchase-check,.purchase-row-multi-unit .purchase-product{grid-column:1}.purchase-note{grid-column:1}.actual-purchase-multi-unit>.actual-total{min-height:48px}}
.global-unit-add{border-top:1px solid rgba(var(--brand-rgb),.15);padding-top:12px}.global-unit-add>summary{color:var(--brand);font-size:12px;font-weight:850;cursor:pointer;list-style:none}.global-unit-add>summary::-webkit-details-marker{display:none}.unit-add-submit{align-self:end}
/* v0.2.12 product master import notice */
.alert.alert-warning{padding:15px 17px;border:1px solid rgba(246,201,146,.85);background:#FFF8E8;color:#7A5618;border-radius:16px}.alert.alert-warning .card-sub{color:#866B42;margin-top:5px}
.branch-unit-check.is-disabled{opacity:.55;cursor:not-allowed}.branch-unit-check.is-disabled input{pointer-events:none}

/* v0.2.13 — Branch product settings */
.product-list-actions{display:flex;align-items:center;gap:9px;min-width:0}.product-list-actions .search{width:min(340px,34vw)}
.branch-settings-shortcut .card-head{align-items:center}.branch-setting-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px}.branch-setting-tabs{display:flex;flex-wrap:wrap;gap:8px}.branch-setting-tab{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:9px 13px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--text);font-size:13px;font-weight:850;text-decoration:none}.branch-setting-tab.active{border-color:rgba(var(--brand-rgb),.28);background:rgba(var(--brand-rgb),.09);color:var(--brand);box-shadow:0 8px 22px rgba(var(--brand-rgb),.12)}.branch-setting-summary{display:flex;align-items:flex-end;gap:10px;text-align:right}.branch-setting-summary strong,.branch-setting-summary span{display:block}.branch-setting-summary strong{font-size:14px}.branch-setting-summary span{color:var(--muted);font-size:11px;font-weight:800}.branch-setting-summary b{color:var(--brand);font-size:18px}
.branch-product-toolbar{padding:14px}.branch-product-filter-grid{display:grid;grid-template-columns:minmax(240px,1.3fr) minmax(180px,.8fr) minmax(180px,.8fr);gap:10px}.branch-product-bulkbar{display:flex;align-items:center;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;font-weight:800}.branch-product-bulkbar .btn{margin-left:auto}.bulk-check{display:inline-flex;align-items:center;gap:8px;color:var(--text);font-weight:850;cursor:pointer}.bulk-check input{width:18px;height:18px;accent-color:var(--brand)}
.branch-product-list{display:grid;gap:8px;margin-top:12px}.branch-product-row{display:grid;grid-template-columns:68px minmax(220px,.9fr) minmax(300px,1.7fr);align-items:center;gap:12px;padding:11px 13px;border:1px solid var(--line);border-radius:14px;background:#fff;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}.branch-product-row.is-active{border-color:rgba(var(--brand-rgb),.22);background:linear-gradient(90deg,rgba(var(--brand-rgb),.045),#fff);box-shadow:0 6px 18px rgba(32,50,62,.045)}.branch-product-use-cell{display:flex;justify-content:center}.branch-product-switch{display:flex;align-items:center;gap:7px;cursor:pointer;font-size:11px;font-weight:900;color:var(--muted)}.branch-product-switch input{position:absolute;opacity:0;pointer-events:none}.switch-mark{position:relative;width:34px;height:20px;border-radius:999px;background:#dbe3e8;box-shadow:inset 0 0 0 1px rgba(31,48,59,.08);transition:.16s}.switch-mark:after{content:"";position:absolute;left:3px;top:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(20,33,42,.2);transition:.16s}.branch-product-switch input:checked+.switch-mark{background:var(--brand)}.branch-product-switch input:checked+.switch-mark:after{transform:translateX(14px)}.branch-product-name-cell{min-width:0}.branch-product-name-cell strong{display:block;font-size:14px;line-height:1.35}.branch-product-name-cell small{display:block;margin-top:3px;color:var(--muted);font-size:10px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.branch-product-unit-cell{display:flex;flex-wrap:wrap;gap:6px;min-width:0}.branch-unit-pill{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:6px 9px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);cursor:pointer;transition:.15s}.branch-unit-pill input{width:16px;height:16px;accent-color:var(--brand)}.branch-unit-pill span{display:block;min-width:0}.branch-unit-pill b,.branch-unit-pill small{display:block}.branch-unit-pill b{font-size:11px;line-height:1.2}.branch-unit-pill small{margin-top:1px;color:var(--muted);font-size:8px;font-weight:750}.branch-unit-pill:has(input:checked){border-color:rgba(var(--brand-rgb),.32);background:rgba(var(--brand-rgb),.08)}.branch-unit-pill.is-pending{opacity:.52;cursor:not-allowed}.branch-product-row:not(.is-active) .branch-unit-pill{opacity:.48}.branch-product-savebar{position:sticky;bottom:16px;z-index:35;display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px;padding:12px 14px;border:1px solid rgba(var(--brand-rgb),.2);border-radius:17px;background:rgba(255,255,255,.96);box-shadow:0 14px 34px rgba(31,48,59,.14);backdrop-filter:blur(12px)}.branch-product-savebar strong,.branch-product-savebar small{display:block}.branch-product-savebar strong{font-size:13px}.branch-product-savebar small{margin-top:2px;color:var(--muted);font-size:10px;font-weight:750}.branch-product-savebar .btn{min-width:220px}
@media(max-width:980px){.branch-product-row{grid-template-columns:62px minmax(180px,.8fr) minmax(260px,1.4fr)}.branch-product-filter-grid{grid-template-columns:1fr 1fr}.branch-product-filter-grid .field:first-child{grid-column:1/-1}}
@media(max-width:760px){.product-list-actions{width:100%;display:grid;grid-template-columns:1fr auto}.product-list-actions .search{width:100%;max-width:none}.branch-settings-shortcut .card-head{align-items:flex-start}.branch-settings-shortcut .btn{width:100%;margin-top:10px}.branch-setting-hero{display:block;padding:12px}.branch-setting-tabs{display:grid;grid-template-columns:1fr 1fr}.branch-setting-tab{justify-content:center}.branch-setting-summary{justify-content:space-between;align-items:center;margin-top:12px;padding-top:10px;border-top:1px solid var(--line);text-align:left}.branch-product-toolbar{padding:12px}.branch-product-filter-grid{grid-template-columns:1fr}.branch-product-filter-grid .field:first-child{grid-column:auto}.branch-product-bulkbar{display:grid;grid-template-columns:1fr auto;gap:8px}.branch-product-bulkbar .btn{grid-column:1/-1;width:100%;margin:0}.branch-product-row{grid-template-columns:52px minmax(0,1fr);gap:8px;padding:11px}.branch-product-use-cell{grid-row:1/3;align-self:start;padding-top:2px}.branch-product-unit-cell{grid-column:2}.branch-unit-pill{min-height:34px}.branch-product-savebar{bottom:82px;margin-left:-4px;margin-right:-4px;padding:10px}.branch-product-savebar .btn{min-width:0}.switch-copy{display:none}}
@media(max-width:430px){.branch-setting-tabs{grid-template-columns:1fr}.branch-product-bulkbar{grid-template-columns:1fr}.branch-product-savebar{display:block}.branch-product-savebar .btn{width:100%;margin-top:9px}.branch-product-unit-cell{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.branch-unit-pill{min-width:0}.branch-unit-pill span{overflow:hidden}.branch-unit-pill b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

/* v0.2.14 product master clarity + multiple suppliers */
.product-master-hero{overflow:hidden}.product-master-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px 14px}.product-master-title{min-width:0}.product-master-back{display:inline-block;margin-bottom:8px;color:var(--brand);font-size:11px;font-weight:900;text-decoration:none}.product-master-title .card-title{font-size:22px}.product-master-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line);background:var(--surface-2)}.product-master-tab{display:flex;align-items:center;justify-content:center;gap:8px;min-height:54px;padding:10px 14px;border-right:1px solid var(--line);color:var(--muted);font-size:12px;font-weight:900;text-decoration:none;transition:.16s}.product-master-tab:last-child{border-right:0}.product-master-tab>span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#fff;border:1px solid var(--line);font-size:10px}.product-master-tab>b{padding:2px 6px;border-radius:999px;background:#fff;font-size:9px}.product-master-tab.is-active{background:#fff;color:var(--brand);box-shadow:inset 0 -3px 0 var(--brand)}.product-master-tab.is-active>span{border-color:transparent;background:var(--brand);color:#fff}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.product-info-panel{width:100%;max-width:none;box-sizing:border-box}.product-panel-actions{display:flex;justify-content:flex-end;margin-top:16px}.product-panel-actions .btn{min-width:220px}.product-global-unit>summary{font-size:12px;font-weight:900;color:var(--brand);cursor:pointer}.product-list-card{overflow:hidden}.product-list-head{align-items:flex-start}.product-create-drawer{padding:15px 18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:rgba(var(--brand-rgb),.045)}.product-create-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px}.product-master-table td:first-child strong,.product-master-table td:first-child small,.product-master-table td:nth-child(5) strong,.product-master-table td:nth-child(5) small{display:block}.product-master-table td:first-child small,.product-master-table td:nth-child(5) small{margin-top:3px;color:var(--muted);font-size:9px;font-weight:750}.product-suppliers-card{overflow:hidden}.supplier-product-list{display:grid}.supplier-product-row{display:grid;grid-template-columns:72px minmax(190px,1fr) minmax(210px,1fr) 130px 120px;gap:12px;align-items:center;padding:11px 16px;border-top:1px solid var(--line);background:#fff;transition:.15s}.supplier-product-row.is-active{background:linear-gradient(90deg,rgba(var(--brand-rgb),.065),#fff)}.supplier-product-head{min-height:38px;padding-top:8px;padding-bottom:8px;background:var(--surface-2);color:var(--muted);font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.supplier-product-check label,.supplier-product-primary label{display:inline-flex;align-items:center;gap:7px;cursor:pointer;font-size:11px;font-weight:850}.supplier-product-check input,.supplier-product-primary input{width:18px;height:18px;accent-color:var(--brand)}.supplier-product-name{min-width:0}.supplier-product-name strong{font-size:13px}.supplier-product-name .badge{margin-left:6px}.supplier-product-unit label.mobile-only-label{display:none}.supplier-product-price{font-size:11px;font-weight:850;color:var(--muted);text-align:right}.product-supplier-save{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--line);background:var(--surface-2)}.product-supplier-save strong,.product-supplier-save small{display:block}.product-supplier-save small{margin-top:2px;color:var(--muted);font-size:9px;font-weight:750}.product-supplier-save .btn{min-width:210px}
@media(max-width:1050px){.supplier-product-row{grid-template-columns:62px minmax(160px,.9fr) minmax(190px,1fr) 115px}.supplier-product-price{display:none}}
@media(max-width:760px){.product-master-head{display:block;padding:14px}.product-master-head>.btn{width:100%;margin-top:12px}.product-master-title .card-title{font-size:19px}.product-master-tabs{grid-template-columns:1fr}.product-master-tab{justify-content:flex-start;min-height:44px;border-right:0;border-bottom:1px solid var(--line);padding:8px 13px}.product-master-tab:last-child{border-bottom:0}.product-master-tab.is-active{box-shadow:inset 4px 0 0 var(--brand)}.product-panel-actions .btn{width:100%;min-width:0}.product-list-head{display:block}.product-list-actions{display:grid;grid-template-columns:1fr 1fr;margin-top:12px}.product-list-actions .search{grid-column:1/-1}.product-list-actions .btn,.product-list-actions a{width:100%}.product-create-actions{display:grid;grid-template-columns:1fr 1fr}.product-master-table th:nth-child(2),.product-master-table td:nth-child(2),.product-master-table th:nth-child(6),.product-master-table td:nth-child(6){display:none}.supplier-product-head{display:none}.supplier-product-list{gap:9px;padding:12px}.supplier-product-row{grid-template-columns:48px minmax(0,1fr);gap:8px;padding:12px;border:1px solid var(--line);border-radius:14px}.supplier-product-check{grid-row:1/4;align-self:start}.supplier-product-check label span{display:none}.supplier-product-name{grid-column:2}.supplier-product-unit{grid-column:2}.supplier-product-unit label.mobile-only-label{display:block}.supplier-product-primary{grid-column:2}.supplier-product-price{display:block;grid-column:2;text-align:left}.product-supplier-save{display:block}.product-supplier-save .btn{width:100%;min-width:0;margin-top:10px}}
@media(max-width:430px){.product-master-table th:nth-child(3),.product-master-table td:nth-child(3),.product-master-table th:nth-child(5),.product-master-table td:nth-child(5){display:none}.product-list-actions{grid-template-columns:1fr}.product-list-actions .search{grid-column:auto}.product-create-actions{grid-template-columns:1fr}}

/* v0.2.15 product category master */
.category-page-grid{align-items:start}.category-create-action{grid-column:1/-1}.category-list-card{overflow:hidden}.category-table td:first-child strong{font-size:13px}.category-edit-modal[hidden]{display:none!important}.category-edit-modal{position:fixed;inset:0;z-index:140;display:grid;place-items:center;padding:18px;background:rgba(24,39,49,.48);backdrop-filter:blur(4px)}.category-modal-card{width:min(620px,100%);max-height:calc(100vh - 36px);overflow:auto;border-radius:20px;background:#fff;box-shadow:0 24px 70px rgba(19,34,44,.28)}.category-modal-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px}.category-toggle-form{padding:0 18px 18px;text-align:right}.category-create-card .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-info-panel .field a{color:var(--brand);font-weight:850;text-decoration:none}.product-master-table td:nth-child(3){font-size:11px;font-weight:800;color:var(--muted)}
@media(max-width:760px){.category-page-grid{grid-template-columns:1fr}.category-create-card .form-grid{grid-template-columns:1fr}.category-create-action{grid-column:auto}.category-table th:nth-child(3),.category-table td:nth-child(3),.category-table th:nth-child(4),.category-table td:nth-child(4){display:none}.category-modal-actions{display:grid;grid-template-columns:1fr 1fr}.category-toggle-form .btn{width:100%}}

/* v0.2.16 supplier table */
.supplier-list-card{overflow:hidden}.supplier-list-head{align-items:flex-start}.supplier-toolbar{display:flex;align-items:center;gap:8px}.supplier-toolbar .search{min-width:310px}.supplier-table-wrap{padding-bottom:10px}.supplier-table{min-width:860px}.supplier-table td:first-child strong{display:block;font-size:13px}.supplier-table td:first-child small{display:block;margin-top:5px}.supplier-edit-modal[hidden]{display:none!important}.supplier-edit-modal{position:fixed;inset:0;z-index:145;display:grid;place-items:center;padding:18px;background:rgba(24,39,49,.48);backdrop-filter:blur(4px)}.supplier-modal-card{width:min(640px,100%);max-height:calc(100vh - 36px);overflow:auto;border-radius:20px;background:#fff;box-shadow:0 24px 70px rgba(19,34,44,.28)}.supplier-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 20px;border-bottom:1px solid var(--line)}.supplier-modal-close{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:12px;background:var(--surface-2);color:var(--muted);font-size:24px;line-height:1;cursor:pointer}.supplier-modal-form{grid-template-columns:repeat(2,minmax(0,1fr))}.supplier-name-field,.supplier-note-field{grid-column:1/-1}.supplier-modal-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px}
@media(max-width:900px){.supplier-col-note,.supplier-col-updated{display:none}.supplier-table{min-width:620px}}
@media(max-width:760px){.supplier-list-head{display:block}.supplier-toolbar{display:grid;grid-template-columns:1fr;margin-top:12px}.supplier-toolbar .search{min-width:0;width:100%}.supplier-toolbar .btn{width:100%}.supplier-table-wrap{overflow-x:hidden}.supplier-table{min-width:0;table-layout:fixed}.supplier-table th,.supplier-table td{padding:10px 8px}.supplier-table th:nth-child(2),.supplier-table td:nth-child(2),.supplier-table th:nth-child(4),.supplier-table td:nth-child(4),.supplier-table th:nth-child(5),.supplier-table td:nth-child(5){display:none}.supplier-table th:nth-child(1){width:50%}.supplier-table th:nth-child(3){width:25%}.supplier-table th:nth-child(6){width:25%}.supplier-modal-form{grid-template-columns:1fr}.supplier-name-field,.supplier-note-field{grid-column:auto}.supplier-modal-actions{display:grid;grid-template-columns:1fr 1fr}.supplier-modal-actions .btn{width:100%}}

/* v0.2.17 ingredient type + multi usage groups */
.product-usage-group-field{grid-column:1/-1}.usage-group-picker{display:flex;flex-wrap:wrap;gap:8px;padding:11px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}.usage-group-picker.compact{max-height:170px;overflow:auto}.usage-group-option{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:7px 10px;border:1px solid var(--line);border-radius:11px;background:#fff;cursor:pointer;font-size:11px;font-weight:850}.usage-group-option input{width:17px;height:17px;accent-color:var(--brand)}.usage-group-option:has(input:checked){border-color:rgba(var(--brand-rgb),.35);background:rgba(var(--brand-rgb),.08);color:var(--brand-ink)}.usage-group-option.is-disabled{opacity:.5;cursor:not-allowed}.product-usage-groups-cell{max-width:260px;color:var(--muted);font-size:10px;font-weight:800;line-height:1.45}.branch-product-filter-grid{grid-template-columns:minmax(220px,1.25fr) minmax(160px,.8fr) minmax(160px,.8fr) minmax(160px,.8fr)}.branch-product-groups{color:var(--brand)!important}.category-help-card .btn+.btn{margin-top:8px}
@media(max-width:1100px){.product-master-table th:nth-child(4),.product-master-table td:nth-child(4){display:none}}
@media(max-width:760px){.usage-group-picker{display:grid;grid-template-columns:1fr 1fr}.product-usage-group-field{grid-column:auto}.branch-product-filter-grid{grid-template-columns:1fr}.product-master-table th:nth-child(2),.product-master-table td:nth-child(2),.product-master-table th:nth-child(4),.product-master-table td:nth-child(4),.product-master-table th:nth-child(7),.product-master-table td:nth-child(7){display:none}}
@media(max-width:430px){.usage-group-picker{grid-template-columns:1fr}.product-master-table th:nth-child(3),.product-master-table td:nth-child(3),.product-master-table th:nth-child(6),.product-master-table td:nth-child(6){display:none}}


/* v0.2.18 full-width product information card */
.product-info-panel{width:100%;max-width:none;box-sizing:border-box}


/* v0.2.19 Product filters and global ingredient order */
.product-filter-toolbar{display:grid;grid-template-columns:minmax(230px,1.2fr) repeat(3,minmax(170px,.75fr)) auto;gap:10px;align-items:end;padding:14px 18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--surface-2)}
.product-filter-reset{min-height:42px}.product-order-col{width:88px}.product-order-cell{width:88px}.product-order-input{width:76px;min-width:0;text-align:center;padding-left:8px;padding-right:8px}.product-order-input.is-dirty{border-color:var(--warning);box-shadow:0 0 0 3px rgba(246,201,146,.25)}
.product-order-savebar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 18px;border-top:1px solid var(--line);background:var(--surface-2)}.product-order-savebar strong,.product-order-savebar small{display:block}.product-order-savebar small{margin-top:3px;color:var(--muted);font-size:10px;font-weight:750}.product-order-savebar .btn{min-width:180px}
@media(max-width:1180px){.product-filter-toolbar{grid-template-columns:1fr 1fr 1fr}.product-filter-toolbar .field:first-child{grid-column:1/-1}.product-filter-reset{width:100%}}
@media(max-width:760px){.product-filter-toolbar{grid-template-columns:1fr;padding:12px}.product-filter-toolbar .field:first-child{grid-column:auto}.product-order-savebar{display:block}.product-order-savebar .btn{width:100%;min-width:0;margin-top:10px}.product-master-table th.product-order-col,.product-master-table td.product-order-cell{display:table-cell}.product-order-input{width:62px}.product-list-actions{grid-template-columns:1fr 1fr}}
@media(max-width:430px){.product-master-table th.product-order-col,.product-master-table td.product-order-cell{display:table-cell}.product-order-input{width:54px;padding-left:4px;padding-right:4px}}
/* Correct responsive columns after adding the global order column */
@media(max-width:1100px){
 .product-master-table th:nth-child(4),.product-master-table td:nth-child(4){display:table-cell}
 .product-master-table th:nth-child(5),.product-master-table td:nth-child(5){display:none}
}
@media(max-width:760px){
 .product-master-table th:nth-child(1),.product-master-table td:nth-child(1),
 .product-master-table th:nth-child(2),.product-master-table td:nth-child(2),
 .product-master-table th:nth-child(4),.product-master-table td:nth-child(4),
 .product-master-table th:nth-child(6),.product-master-table td:nth-child(6),
 .product-master-table th:nth-child(10),.product-master-table td:nth-child(10){display:table-cell}
 .product-master-table th:nth-child(3),.product-master-table td:nth-child(3),
 .product-master-table th:nth-child(5),.product-master-table td:nth-child(5),
 .product-master-table th:nth-child(7),.product-master-table td:nth-child(7),
 .product-master-table th:nth-child(8),.product-master-table td:nth-child(8),
 .product-master-table th:nth-child(9),.product-master-table td:nth-child(9){display:none}
}
@media(max-width:430px){
 .product-master-table th:nth-child(1),.product-master-table td:nth-child(1),
 .product-master-table th:nth-child(2),.product-master-table td:nth-child(2),
 .product-master-table th:nth-child(10),.product-master-table td:nth-child(10){display:table-cell}
 .product-master-table th:nth-child(3),.product-master-table td:nth-child(3),
 .product-master-table th:nth-child(4),.product-master-table td:nth-child(4),
 .product-master-table th:nth-child(5),.product-master-table td:nth-child(5),
 .product-master-table th:nth-child(6),.product-master-table td:nth-child(6),
 .product-master-table th:nth-child(7),.product-master-table td:nth-child(7),
 .product-master-table th:nth-child(8),.product-master-table td:nth-child(8),
 .product-master-table th:nth-child(9),.product-master-table td:nth-child(9){display:none}
}

/* v0.2.21 category and usage-group modal/table cleanup */
body.master-modal-open{overflow:hidden}
.master-data-list-card{overflow:hidden}
.master-data-list-head{align-items:flex-start}
.master-data-toolbar{display:flex;align-items:center;gap:10px}
.master-data-toolbar .search{min-width:320px}
.master-data-table-wrap{padding-bottom:10px}
.master-data-table{min-width:720px}
.master-data-table td:first-child strong{font-size:14px}
.master-data-count-link{display:inline-flex;align-items:center;gap:7px;color:var(--brand);font-weight:850}
.master-data-count-link span{font-size:11px;color:var(--muted);font-weight:750}
.master-data-count-link:hover span{color:var(--brand)}
.master-data-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;white-space:nowrap}
.master-data-row-actions form{display:inline-flex;margin:0}
.master-data-toggle-btn{color:var(--danger)}
.master-data-modal[hidden]{display:none!important}
.master-data-modal{position:fixed;inset:0;z-index:170;display:grid;place-items:center;padding:18px;background:rgba(21,34,43,.54);backdrop-filter:blur(5px)}
.master-data-modal-dialog{width:min(620px,100%);max-height:calc(100vh - 36px);overflow:auto;border:1px solid rgba(255,255,255,.45);border-radius:22px;background:#fff;box-shadow:0 28px 90px rgba(15,28,36,.34)}
.master-data-modal-header{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:19px 20px;border-bottom:1px solid var(--line);background:#fff}
.master-data-modal-close{flex:0 0 auto;display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--muted);font-size:24px;line-height:1}
.master-data-modal-close:hover{background:var(--danger-soft);border-color:rgba(184,66,66,.22);color:var(--danger)}
.master-data-modal-body{padding:20px;grid-template-columns:minmax(0,1.4fr) minmax(150px,.6fr)}
.master-data-name-field{min-width:0}
.master-data-modal-footer{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:9px;padding:14px 20px;border-top:1px solid var(--line);background:#fff}
@media(max-width:760px){
 .master-data-list-head{display:block}
 .master-data-toolbar{display:grid;grid-template-columns:1fr;margin-top:12px}
 .master-data-toolbar .search{min-width:0;width:100%}
 .master-data-toolbar .btn{width:100%}
 .master-data-table-wrap{overflow-x:hidden;padding-left:10px;padding-right:10px}
 .master-data-table{min-width:0;table-layout:fixed}
 .master-data-table th,.master-data-table td{padding:10px 7px}
 .master-data-table th:nth-child(3),.master-data-table td:nth-child(3),.master-data-table th:nth-child(4),.master-data-table td:nth-child(4){display:none}
 .master-data-table th:nth-child(1){width:34%}.master-data-table th:nth-child(2){width:24%}.master-data-table th:nth-child(5){width:42%}
 .master-data-row-actions{flex-wrap:wrap;gap:5px}
 .master-data-row-actions .btn{padding:7px 8px;min-height:34px;font-size:11px}
 .master-data-modal{padding:10px}
 .master-data-modal-dialog{max-height:calc(100vh - 20px);border-radius:18px}
 .master-data-modal-body{grid-template-columns:1fr;padding:16px}
 .master-data-modal-footer{display:grid;grid-template-columns:1fr 1fr;padding:12px 16px}
 .master-data-modal-footer .btn{width:100%}
}

/* v0.2.22 product table cleanup + supplier actions */
.btn-warning{background:#f6c992;color:#553816}.btn-warning:hover{filter:brightness(.98)}
.product-master-table-wrap{overflow-x:auto;padding-bottom:8px}.product-master-table-v2{min-width:1040px;table-layout:auto}.product-master-table-v2 th{white-space:nowrap}.product-master-table-v2 td{vertical-align:middle}.product-master-table-v2 .product-order-col,.product-master-table-v2 .product-order-cell{width:84px}.product-master-table-v2 .product-name-col{min-width:210px}.product-master-table-v2 .product-category-col{width:170px}.product-master-table-v2 .product-groups-col{min-width:250px}.product-master-table-v2 .product-unit-col{width:130px}.product-master-table-v2 .product-supplier-col{width:180px}.product-master-table-v2 .product-action-col{width:84px}.product-name-cell strong,.product-unit-cell strong,.product-supplier-cell strong{display:block}.product-unit-cell small,.product-supplier-cell small{display:block;margin-top:3px;color:var(--muted);font-size:10px;font-weight:750}.product-inline-warning{display:inline-flex;margin-top:7px;padding:3px 7px;border-radius:999px;background:rgba(246,201,146,.28);color:#7a531f;font-size:9px;font-weight:900}.product-category-chip{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;background:rgba(var(--brand-rgb),.09);color:var(--brand);font-size:10px;font-weight:900}.product-chip-list{display:flex;flex-wrap:wrap;gap:5px}.product-usage-chip{display:inline-flex;align-items:center;padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--text);font-size:9px;font-weight:850}.product-action-cell{text-align:right}.product-master-tabs .product-master-tab>b{display:none}
.supplier-product-link{display:inline-flex;align-items:center;gap:7px;color:inherit;text-decoration:none}.supplier-product-link small{color:var(--brand);font-size:9px;font-weight:900}.supplier-product-link:hover small{text-decoration:underline}.supplier-actions-cell{min-width:210px}.supplier-row-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}.supplier-row-actions .inline-form{display:inline-flex;gap:0}.supplier-modal-card{border:1px solid rgba(172,192,211,.65)}.supplier-modal-form{padding:20px}.supplier-modal-head .card-title{font-size:18px}
@media(max-width:1100px){
 .product-master-table-v2{min-width:820px}.product-master-table-v2 .product-supplier-col,.product-master-table-v2 .product-supplier-cell{display:none!important}
}
@media(max-width:760px){
 .product-master-table-wrap{overflow-x:hidden}.product-master-table-v2{min-width:0;width:100%;table-layout:fixed}.product-master-table-v2 th,.product-master-table-v2 td{padding:10px 7px}.product-master-table-v2 .product-order-col,.product-master-table-v2 .product-order-cell{display:table-cell!important;width:68px}.product-master-table-v2 .product-name-col,.product-master-table-v2 .product-name-cell{display:table-cell!important;width:auto}.product-master-table-v2 .product-category-col,.product-master-table-v2 .product-category-cell{display:table-cell!important;width:130px}.product-master-table-v2 .product-action-col,.product-master-table-v2 .product-action-cell{display:table-cell!important;width:76px}.product-master-table-v2 .product-groups-col,.product-master-table-v2 .product-groups-cell,.product-master-table-v2 .product-unit-col,.product-master-table-v2 .product-unit-cell,.product-master-table-v2 .product-supplier-col,.product-master-table-v2 .product-supplier-cell{display:none!important}.product-category-chip{white-space:normal;text-align:center}.supplier-actions-cell{min-width:0}.supplier-row-actions{justify-content:flex-end}.supplier-row-actions .btn{padding:7px 9px;min-height:34px;font-size:11px}
}
@media(max-width:430px){
 .product-master-table-v2 .product-category-col,.product-master-table-v2 .product-category-cell{display:none!important}.product-master-table-v2 .product-order-col,.product-master-table-v2 .product-order-cell{width:60px}.product-master-table-v2 .product-action-col,.product-master-table-v2 .product-action-cell{width:72px}.supplier-row-actions{display:grid;grid-template-columns:1fr}.supplier-row-actions .inline-form,.supplier-row-actions .btn{width:100%}
}

/* v0.2.23 Product images */
.product-image-editor{display:flex;align-items:center;gap:18px;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--surface-2)}
.product-image-preview{display:grid;place-items:center;flex:0 0 150px;width:150px;height:150px;overflow:hidden;border:1px dashed rgba(var(--brand-rgb),.34);border-radius:18px;background:#fff;color:var(--muted);font-size:12px;font-weight:850}
.product-image-preview img{width:100%;height:100%;object-fit:cover;display:block}
.product-image-controls{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}.product-image-controls>strong{font-size:15px}.product-image-controls>span,.product-image-controls>small{color:var(--muted);font-size:11px;font-weight:700}.product-image-upload-button{position:relative;overflow:hidden;cursor:pointer}.product-image-upload-button input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.product-image-remove{margin-top:2px}

.product-image-status{min-height:18px;font-size:11px;font-weight:800;color:var(--muted)}
.product-image-status[data-state="working"]{color:#8b6508}.product-image-status[data-state="ready"]{color:#18745a}.product-image-status[data-state="warning"],.product-image-status[data-state="error"]{color:#c83f4a}
.product-list-name-wrap{display:flex;align-items:center;gap:10px;min-width:0}.product-list-name-wrap>div{min-width:0}.product-list-thumb,.count-product-thumb,.stock-product-thumb{display:grid;place-items:center;flex:0 0 auto;overflow:hidden;border:1px solid var(--line);background:var(--surface-2);color:var(--muted);font-weight:900}.product-list-thumb{width:42px;height:42px;border-radius:12px}.count-product-thumb{width:52px;height:52px;border-radius:14px}.stock-product-thumb{width:40px;height:40px;border-radius:11px}.product-list-thumb img,.count-product-thumb img,.stock-product-thumb img{width:100%;height:100%;object-fit:cover;display:block}.count-product-title-with-image{display:flex!important;align-items:center;gap:11px;min-width:0}.count-product-title-text{display:block;min-width:0}.stock-product-with-image{display:flex;align-items:center;gap:9px;min-width:0}.stock-product-with-image .stock-product-main{min-width:0}
@media(max-width:720px){.product-image-editor{align-items:flex-start;gap:12px;padding:12px}.product-image-preview{flex-basis:104px;width:104px;height:104px;border-radius:15px}.product-image-controls{gap:6px}.product-image-controls>span{display:none}.product-image-upload-button{width:100%;text-align:center}.product-list-thumb{width:38px;height:38px}.count-product-thumb{width:46px;height:46px}.stock-product-thumb{width:36px;height:36px}.product-list-name-wrap{gap:7px}.count-product-title-with-image{gap:8px}}
@media(max-width:430px){.product-image-editor{display:grid;grid-template-columns:86px 1fr}.product-image-preview{width:86px;height:86px}.product-image-controls>small{display:none}.count-product-thumb{width:42px;height:42px}.stock-product-thumb{width:34px;height:34px}.product-list-thumb{width:34px;height:34px}}

/* v0.2.25 hidden initial product setup workspace */
body.setup-modal-open{overflow:hidden}
.setup-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;margin-bottom:16px;background:linear-gradient(135deg,rgba(var(--brand-rgb),.11),rgba(246,201,146,.18))}
.setup-hero h2{margin:4px 0 6px;font-size:22px}.setup-hero p{margin:0;max-width:760px;color:var(--muted);font-size:12px;font-weight:700}.setup-eyebrow{font-size:9px;letter-spacing:.16em;color:var(--brand);font-weight:950}
.setup-summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:16px}.setup-summary-card{appearance:none;border:1px solid var(--line);border-radius:16px;background:#fff;padding:14px 12px;text-align:left;color:var(--text);cursor:pointer;box-shadow:0 7px 20px rgba(24,43,55,.04)}.setup-summary-card strong{display:block;font-size:24px;line-height:1;color:var(--text)}.setup-summary-card span{display:block;margin-top:7px;color:var(--muted);font-size:10px;font-weight:850}.setup-summary-card:hover,.setup-summary-card.is-active{border-color:rgba(var(--brand-rgb),.46);box-shadow:0 10px 26px rgba(var(--brand-rgb),.11)}.setup-summary-card.is-active{background:rgba(var(--brand-rgb),.07)}.setup-summary-complete strong{color:#178062}
.setup-list-card{overflow:hidden}.setup-toolbar{display:grid;grid-template-columns:minmax(240px,1.35fr) repeat(3,minmax(160px,.75fr)) auto;gap:10px;align-items:end;padding:16px 18px;background:var(--surface-2);border-bottom:1px solid var(--line)}.setup-reset{margin-bottom:1px}.setup-list-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 18px;border-bottom:1px solid var(--line);color:var(--muted);font-size:10px;font-weight:750}.setup-list-meta strong{color:var(--text);font-size:12px}.setup-table-wrap{max-height:calc(100vh - 355px);overflow:auto}.setup-table{min-width:1040px}.setup-table thead th{position:sticky;top:0;z-index:2;background:#fff}.setup-table td{vertical-align:middle}.setup-product-cell{display:flex;align-items:center;gap:10px;min-width:230px}.setup-product-cell>div{min-width:0}.setup-product-cell strong{display:block;font-size:13px}.setup-product-cell small{display:block;margin-top:3px;color:var(--muted);font-size:9px;font-weight:750}.setup-product-thumb,.setup-modal-thumb{display:grid;place-items:center;overflow:hidden;flex:0 0 auto;border:1px solid var(--line);background:var(--surface-2);color:var(--muted);font-weight:900}.setup-product-thumb{width:42px;height:42px;border-radius:12px}.setup-product-thumb img,.setup-modal-thumb img{width:100%;height:100%;object-fit:cover}.setup-chip{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:900}.setup-chip-category{background:rgba(var(--brand-rgb),.1);color:var(--brand)}.setup-compact-text{display:block;max-width:290px;color:var(--text);font-size:10px;font-weight:750;line-height:1.5}.setup-missing{color:#b36d23;font-size:10px;font-weight:850}.setup-table td[data-cell-supplier] strong,.setup-table td[data-cell-supplier] small{display:block}.setup-table td[data-cell-supplier] small{margin-top:3px;color:var(--muted);font-size:9px}.setup-status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:900}.setup-status.is-complete{background:rgba(27,154,117,.12);color:#137259}.setup-status.is-incomplete{background:rgba(246,201,146,.32);color:#785019}.setup-action-cell{text-align:right}
.setup-modal[hidden]{display:none!important}.setup-modal{position:fixed;inset:0;z-index:190;display:grid;place-items:center;padding:18px;background:rgba(15,29,38,.62);backdrop-filter:blur(5px)}.setup-modal-dialog{width:min(920px,100%);max-height:calc(100vh - 36px);overflow:auto;border:1px solid rgba(255,255,255,.45);border-radius:22px;background:#fff;box-shadow:0 30px 100px rgba(10,25,35,.36)}.setup-modal-header{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--line);background:#fff}.setup-modal-product{display:flex;align-items:center;gap:12px}.setup-modal-product h3{margin:2px 0;font-size:19px}.setup-modal-product small,.setup-modal-product span{display:block;color:var(--muted);font-size:10px;font-weight:750}.setup-modal-thumb{width:54px;height:54px;border-radius:15px}.setup-modal-close{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--muted);font-size:24px;cursor:pointer}.setup-modal-body{display:grid;gap:14px;padding:18px 20px 22px}.setup-form-section{padding:16px;border:1px solid var(--line);border-radius:17px;background:#fff}.setup-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}.setup-section-head strong{font-size:13px}.setup-section-head span{color:var(--muted);font-size:9px;font-weight:750}.setup-option-grid{display:flex;flex-wrap:wrap;gap:7px}.setup-check-option{cursor:pointer}.setup-check-option input{position:absolute;opacity:0;pointer-events:none}.setup-check-option span{display:inline-flex;padding:8px 10px;border:1px solid var(--line);border-radius:11px;background:#fff;font-size:10px;font-weight:850}.setup-check-option input:checked+span{border-color:rgba(var(--brand-rgb),.42);background:rgba(var(--brand-rgb),.09);color:var(--brand)}.setup-supplier-list{display:grid;gap:8px}.setup-supplier-row{display:grid;grid-template-columns:minmax(190px,1fr) minmax(210px,.8fr) 74px;gap:10px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2);opacity:.66}.setup-supplier-row.is-active{background:#fff;opacity:1;border-color:rgba(var(--brand-rgb),.32)}.setup-supplier-check,.setup-primary-radio{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:850;cursor:pointer}.setup-supplier-check input,.setup-primary-radio input{width:18px;height:18px;accent-color:var(--brand)}.setup-primary-radio{justify-content:center}.setup-form-error{padding:11px 13px;border-radius:12px;background:var(--danger-soft);color:var(--danger);font-size:11px;font-weight:850}.setup-modal-footer{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:13px 20px;border-top:1px solid var(--line);background:#fff}.setup-save-status{margin-right:auto;color:#16765c;font-size:10px;font-weight:850}
@media(max-width:1180px){.setup-summary-grid{grid-template-columns:repeat(3,1fr)}.setup-toolbar{grid-template-columns:1fr 1fr 1fr}.setup-search-field{grid-column:span 2}.setup-reset{width:100%}}
@media(max-width:760px){.setup-hero{align-items:flex-start;padding:16px}.setup-hero .btn{display:none}.setup-summary-grid{grid-template-columns:repeat(3,1fr);gap:7px}.setup-summary-card{padding:11px 9px;border-radius:13px}.setup-summary-card strong{font-size:20px}.setup-toolbar{grid-template-columns:1fr;padding:12px}.setup-search-field{grid-column:auto}.setup-list-meta{align-items:flex-start;padding:10px 12px}.setup-list-meta span{display:none}.setup-table-wrap{max-height:none;overflow-x:hidden}.setup-table{min-width:0;width:100%;table-layout:fixed}.setup-table th,.setup-table td{padding:10px 7px}.setup-table th:nth-child(1),.setup-table td:nth-child(1){width:auto}.setup-table th:nth-child(5),.setup-table td:nth-child(5){width:84px}.setup-table th:nth-child(6),.setup-table td:nth-child(6){width:74px}.setup-table th:nth-child(2),.setup-table td:nth-child(2),.setup-table th:nth-child(3),.setup-table td:nth-child(3),.setup-table th:nth-child(4),.setup-table td:nth-child(4){display:none}.setup-product-cell{min-width:0}.setup-product-thumb{width:38px;height:38px}.setup-modal{padding:0}.setup-modal-dialog{width:100%;max-height:100vh;height:100vh;border-radius:0}.setup-modal-header{padding:13px 14px}.setup-modal-body{padding:12px 12px 88px}.setup-form-section{padding:13px}.setup-section-head{display:block}.setup-section-head span{margin-top:3px}.setup-supplier-row{grid-template-columns:1fr 72px}.setup-supplier-row .select{grid-column:1/-1;grid-row:2}.setup-primary-radio{grid-column:2;grid-row:1}.setup-modal-footer{position:fixed;left:0;right:0;bottom:0;display:grid;grid-template-columns:1fr 1fr;padding:10px 12px}.setup-save-status{display:none}.setup-modal-footer .btn{width:100%}.setup-modal-footer .btn[data-close-setup]{display:none}}
@media(max-width:430px){.setup-summary-grid{grid-template-columns:repeat(2,1fr)}.setup-product-thumb{display:none}.setup-product-cell strong{font-size:12px}.setup-modal-product h3{font-size:16px}.setup-modal-thumb{width:46px;height:46px}}

/* v0.3.1 — independent product units and responsive product settings */
.product-edit-toolbar,.product-list-toolbar,.product-order-savebar-v031,.product-savebar,.branch-product-list-head,.branch-savebar{display:flex;align-items:center;justify-content:space-between;gap:14px}
.product-edit-toolbar{min-height:42px}.product-edit-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;overflow:hidden;background:linear-gradient(135deg,rgba(var(--brand-rgb),.08),#fff 64%)}
.product-edit-identity{display:flex;align-items:center;gap:14px;min-width:0}.product-edit-thumb{display:grid;place-items:center;flex:0 0 68px;width:68px;height:68px;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:var(--surface-2);color:var(--muted);font-size:24px}.product-edit-thumb img{width:100%;height:100%;object-fit:cover}.product-edit-identity>div{min-width:0}.product-edit-identity small{display:block;color:var(--brand);font-size:9px;font-weight:950;letter-spacing:.11em}.product-edit-identity h2{margin:3px 0 2px;font-size:20px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-edit-identity p{margin:0;color:var(--muted);font-size:10px;font-weight:750}
.product-tabs-v031{flex:0 0 auto}.product-editor-form,.branch-settings-form{min-width:0}.product-editor-section{overflow:hidden}.product-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:22px;align-items:start}.product-editor-fields{min-width:0}.product-status-field{align-self:end}.toggle-card{display:flex;align-items:center;gap:10px;min-height:44px;padding:9px 11px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);cursor:pointer}.toggle-card input{width:18px;height:18px;accent-color:var(--brand)}.toggle-card span,.toggle-card strong,.toggle-card small{display:block}.toggle-card strong{font-size:11px}.toggle-card small{margin-top:2px;color:var(--muted);font-size:8px;font-weight:750}.product-usage-group-field{margin-top:14px}
.product-image-editor-v031{display:grid;gap:9px;justify-items:stretch}.product-image-preview-v031{display:grid;place-items:center;width:100%;aspect-ratio:1/1;overflow:hidden;border:1px dashed rgba(var(--brand-rgb),.28);border-radius:18px;background:var(--surface-2);color:var(--muted);font-size:11px;font-weight:800}.product-image-preview-v031 img{width:100%;height:100%;object-fit:cover}.product-image-upload-v031{position:relative;justify-content:center;overflow:hidden}.product-image-upload-v031 input{position:absolute;inset:0;opacity:0;cursor:pointer}.product-image-editor-v031>small{color:var(--muted);font-size:8px;font-weight:700;line-height:1.5;text-align:center}
.unit-section-head{align-items:center}.unit-setting-legend{display:grid;grid-template-columns:minmax(170px,1fr) 150px 140px 190px;gap:10px;padding:0 13px 7px;color:var(--muted);font-size:8px;font-weight:900;text-align:center}.unit-setting-legend span:first-child{text-align:left}.unit-setting-list{display:grid;gap:8px}.unit-setting-row{display:grid;grid-template-columns:minmax(170px,1fr) 150px 140px 190px;align-items:center;gap:10px;padding:12px 13px;border:1px solid var(--line);border-radius:14px;background:#fff;transition:border-color .16s,background .16s,box-shadow .16s}.unit-setting-row.is-active{border-color:rgba(var(--brand-rgb),.26);background:linear-gradient(90deg,rgba(var(--brand-rgb),.045),#fff);box-shadow:0 7px 20px rgba(31,48,59,.045)}.unit-setting-name strong,.unit-setting-name small{display:block}.unit-setting-name strong{font-size:13px}.unit-setting-name small{margin-top:2px;color:var(--muted);font-size:8px;font-weight:750}.unit-setting-toggle{display:flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:7px 9px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);font-size:9px;font-weight:850;cursor:pointer;text-align:center}.unit-setting-toggle input{width:17px;height:17px;accent-color:var(--brand)}.unit-setting-toggle.is-disabled,.unit-setting-toggle:has(input:disabled){opacity:.45;cursor:not-allowed}
.product-savebar,.branch-savebar,.product-order-savebar-v031{position:sticky;bottom:14px;z-index:35;margin-top:16px;padding:12px 14px;border:1px solid rgba(var(--brand-rgb),.2);border-radius:17px;background:rgba(255,255,255,.96);box-shadow:0 14px 34px rgba(31,48,59,.14);backdrop-filter:blur(12px)}.product-savebar strong,.product-savebar small,.branch-savebar strong,.branch-savebar small,.product-order-savebar-v031 strong,.product-order-savebar-v031 small{display:block}.product-savebar strong,.branch-savebar strong,.product-order-savebar-v031 strong{font-size:12px}.product-savebar small,.branch-savebar small,.product-order-savebar-v031 small{margin-top:2px;color:var(--muted);font-size:9px;font-weight:750}.product-savebar .btn,.branch-savebar .btn,.product-order-savebar-v031 .btn{min-width:190px}
.product-supplier-editor{overflow:visible}.supplier-setting-list{display:grid;gap:9px}.supplier-setting-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(190px,.7fr) 150px;align-items:end;gap:12px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}.supplier-enable{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}.supplier-enable input{width:18px;height:18px;accent-color:var(--brand)}.supplier-enable span,.supplier-enable strong,.supplier-enable small{display:block}.supplier-enable strong{font-size:12px}.supplier-enable small{margin-top:2px;color:var(--muted);font-size:8px;font-weight:750}.supplier-primary{display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:8px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);font-size:9px;font-weight:850;cursor:pointer}.supplier-primary input{accent-color:var(--brand)}
.product-list-filter-card,.branch-filter-card{padding:14px}.product-list-filter-grid,.branch-filter-grid-v031{display:grid;grid-template-columns:minmax(240px,1.25fr) repeat(4,minmax(150px,.7fr)) auto;gap:10px;align-items:end}.product-filter-actions{display:flex;align-items:center;gap:7px;white-space:nowrap}.product-list-toolbar{padding:0 2px}.product-list-toolbar>div strong,.product-list-toolbar>div span{display:block}.product-list-toolbar>div strong{font-size:13px}.product-list-toolbar>div span{margin-top:2px;color:var(--muted);font-size:9px;font-weight:750}.product-list-card{overflow:hidden}.product-catalog-table-wrap{overflow:auto}.product-catalog-table{min-width:1080px}.product-catalog-table th,.product-catalog-table td{vertical-align:middle}.product-catalog-table tbody tr:hover{background:rgba(var(--brand-rgb),.025)}.product-order-column{width:78px}.product-order-cell{width:78px}.product-order-input-v031{width:62px;min-width:62px;padding-left:8px;padding-right:8px;text-align:center}.product-catalog-name-cell{min-width:210px}.product-list-name-wrap{display:flex;align-items:center;gap:10px;min-width:0}.product-list-name-wrap>div{min-width:0}.product-list-name-wrap strong{display:block;font-size:12px;line-height:1.35}.product-list-thumb{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--muted);font-size:16px}.product-list-thumb img{width:100%;height:100%;object-fit:cover}.product-mobile-meta{display:none}.product-chip-list{display:flex;flex-wrap:wrap;gap:4px;max-width:240px}.product-category-chip,.product-usage-chip{display:inline-flex;padding:4px 7px;border-radius:999px;background:var(--surface-2);color:var(--muted);font-size:8px;font-weight:850}.product-catalog-action{white-space:nowrap}.product-order-savebar-v031{margin:14px}
.branch-settings-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;background:linear-gradient(135deg,rgba(var(--brand-rgb),.08),#fff 68%)}.branch-settings-location{display:flex;align-items:center;gap:16px;min-width:0}.branch-settings-location>div small,.branch-settings-location>div strong,.branch-settings-location>div span{display:block}.branch-settings-location>div small{color:var(--muted);font-size:8px;font-weight:850}.branch-settings-location>div strong{margin-top:2px;font-size:18px}.branch-settings-location>div span{margin-top:2px;color:var(--brand);font-size:9px;font-weight:850}.branch-settings-location .compact-select{width:190px}.branch-settings-summary{display:grid;grid-template-columns:repeat(3,minmax(90px,1fr));gap:8px}.branch-settings-summary>div{min-width:92px;padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.82);text-align:center}.branch-settings-summary strong,.branch-settings-summary span{display:block}.branch-settings-summary strong{font-size:17px;color:var(--brand)}.branch-settings-summary span{margin-top:1px;color:var(--muted);font-size:8px;font-weight:800}.branch-product-card{overflow:hidden}.branch-product-list-head{padding:14px 16px;border-bottom:1px solid var(--line)}.branch-product-list-head>div:first-child strong,.branch-product-list-head>div:first-child span{display:block}.branch-product-list-head>div:first-child strong{font-size:13px}.branch-product-list-head>div:first-child span{margin-top:2px;color:var(--muted);font-size:9px;font-weight:750}.branch-product-list-head>div:last-child{display:flex;gap:7px}.branch-product-list-v031{display:grid;gap:9px;padding:12px}.branch-product-row-v031{display:grid;grid-template-columns:minmax(300px,.95fr) minmax(420px,1.35fr);gap:16px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:16px;background:#fff;transition:border-color .16s,background .16s,box-shadow .16s}.branch-product-row-v031.is-enabled{border-color:rgba(var(--brand-rgb),.27);background:linear-gradient(90deg,rgba(var(--brand-rgb),.045),#fff);box-shadow:0 8px 23px rgba(31,48,59,.055)}.branch-product-main{display:flex;align-items:center;gap:11px;min-width:0}.branch-product-enable{position:relative;display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;cursor:pointer}.branch-product-enable input{position:absolute;opacity:0}.branch-product-checkmark{display:grid;place-items:center;width:25px;height:25px;border:2px solid var(--line);border-radius:8px;background:#fff}.branch-product-enable input:checked+.branch-product-checkmark{border-color:var(--brand);background:var(--brand)}.branch-product-enable input:checked+.branch-product-checkmark:after{content:'✓';color:#fff;font-size:14px;font-weight:950}.branch-product-copy{min-width:0}.branch-product-title-line{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.branch-product-title-line strong{font-size:13px;line-height:1.35}.branch-product-copy>small{display:block;margin-top:2px;color:var(--muted);font-size:9px;font-weight:750}.branch-product-meta{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.branch-product-meta span{padding:3px 6px;border-radius:999px;background:var(--surface-2);color:var(--muted);font-size:7px;font-weight:800}.branch-unit-area{min-width:0}.branch-unit-head{display:grid;grid-template-columns:1fr 112px;gap:9px;padding:0 8px 5px;color:var(--muted);font-size:8px;font-weight:900}.branch-unit-head span:last-child{text-align:center}.branch-unit-list{display:grid;gap:6px}.branch-unit-row{display:grid;grid-template-columns:minmax(190px,1fr) 112px;align-items:center;gap:9px;padding:7px 8px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.branch-unit-row.is-selected{border-color:rgba(var(--brand-rgb),.22);background:rgba(var(--brand-rgb),.05)}.branch-unit-enable{display:flex;align-items:center;gap:8px;min-width:0;cursor:pointer}.branch-unit-enable input{width:17px;height:17px;accent-color:var(--brand)}.branch-unit-enable span,.branch-unit-enable strong,.branch-unit-enable small{display:block}.branch-unit-enable strong{font-size:10px}.branch-unit-enable small{margin-top:1px;color:var(--muted);font-size:7px;font-weight:750}.branch-count-toggle{display:flex;align-items:center;justify-content:center;gap:5px;min-height:32px;padding:5px 7px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:8px;font-weight:850;cursor:pointer;text-align:center}.branch-count-toggle input{accent-color:var(--brand)}.branch-count-toggle.is-disabled{opacity:.45;cursor:not-allowed}.branch-no-unit{padding:12px;border:1px dashed var(--line);border-radius:12px;background:var(--surface-2);color:var(--muted);font-size:9px;font-weight:750;text-align:center}
@media(max-width:1250px){.product-list-filter-grid,.branch-filter-grid-v031{grid-template-columns:minmax(220px,1.2fr) repeat(2,minmax(150px,.8fr))}.product-filter-actions{grid-column:auto}.branch-product-row-v031{grid-template-columns:minmax(270px,.85fr) minmax(390px,1.15fr)}}
@media(max-width:980px){.product-editor-grid{grid-template-columns:minmax(0,1fr) 190px}.unit-setting-legend,.unit-setting-row{grid-template-columns:minmax(150px,1fr) 125px 115px 165px}.supplier-setting-row{grid-template-columns:1fr 1fr}.supplier-primary{grid-column:1/-1}.branch-settings-header{align-items:stretch;flex-direction:column}.branch-settings-summary{width:100%}.branch-product-row-v031{grid-template-columns:1fr;align-items:stretch}.branch-unit-area{padding-left:39px}}
@media(max-width:760px){.product-edit-toolbar{align-items:stretch;flex-direction:column}.product-edit-toolbar .badge{align-self:flex-start}.product-edit-hero{align-items:stretch;flex-direction:column;padding:14px}.product-tabs-v031{width:100%}.product-tabs-v031 a{flex:1;text-align:center}.product-editor-grid{grid-template-columns:1fr}.product-image-editor-v031{grid-template-columns:112px 1fr;align-items:center}.product-image-preview-v031{grid-row:1/4;width:112px}.product-image-editor-v031>small{text-align:left}.unit-setting-legend{display:none}.unit-setting-row{grid-template-columns:1fr 1fr;gap:7px}.unit-setting-name{grid-column:1/-1}.unit-setting-toggle{justify-content:flex-start}.unit-setting-toggle:last-child{grid-column:1/-1}.product-savebar,.branch-savebar,.product-order-savebar-v031{position:static;align-items:stretch;flex-direction:column}.product-savebar .btn,.branch-savebar .btn,.product-order-savebar-v031 .btn{width:100%;min-width:0}.supplier-setting-row{grid-template-columns:1fr}.supplier-primary{grid-column:auto}.product-list-filter-grid,.branch-filter-grid-v031{grid-template-columns:1fr}.product-filter-actions{display:grid;grid-template-columns:1fr 1fr}.product-list-toolbar{align-items:stretch;flex-direction:column}.product-list-toolbar .btn{width:100%}.product-list-card{background:transparent;border:0;box-shadow:none;overflow:visible}.product-catalog-table-wrap{overflow:visible}.product-catalog-table,.product-catalog-table tbody,.product-catalog-table tr,.product-catalog-table td{display:block;width:100%;min-width:0}.product-catalog-table thead{display:none}.product-catalog-table tbody{display:grid;gap:10px}.product-catalog-table tr{position:relative;padding:12px 12px 11px 68px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 8px 22px rgba(31,48,59,.055)}.product-catalog-table td{padding:3px 0!important;border:0!important}.product-catalog-table td:nth-child(3),.product-catalog-table td:nth-child(4),.product-catalog-table td:nth-child(5),.product-catalog-table td:nth-child(6){display:none}.product-order-cell{position:absolute;left:12px;top:12px;width:45px!important}.product-order-input-v031{width:45px;min-width:45px;height:42px}.product-catalog-name-cell{min-height:45px}.product-list-thumb{width:45px;height:45px;flex-basis:45px}.product-mobile-meta{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}.product-mobile-meta span{padding:3px 6px;border-radius:999px;background:var(--surface-2);color:var(--muted);font-size:7px;font-weight:800}.product-catalog-table td:nth-child(7){display:inline-block;width:auto!important;margin-top:6px}.product-catalog-action{position:absolute;right:11px;bottom:10px;width:auto!important}.product-order-savebar-v031{margin:12px 0 0}.branch-settings-location{align-items:stretch;flex-direction:column}.branch-settings-location .compact-select{width:100%}.branch-settings-summary{grid-template-columns:repeat(3,1fr)}.branch-settings-summary>div{min-width:0;padding:8px 4px}.branch-filter-card{padding:12px}.branch-product-list-head{align-items:stretch;flex-direction:column}.branch-product-list-head>div:last-child{display:grid;grid-template-columns:1fr 1fr}.branch-product-list-v031{padding:8px}.branch-product-row-v031{padding:11px}.branch-product-main{align-items:flex-start}.branch-product-main .product-list-thumb{width:44px;height:44px;flex-basis:44px}.branch-unit-area{padding-left:39px}.branch-unit-head{display:none}.branch-unit-row{grid-template-columns:1fr;gap:6px}.branch-count-toggle{justify-content:flex-start}.branch-savebar{margin-left:0;margin-right:0}}
@media(max-width:430px){.product-edit-identity{align-items:flex-start}.product-edit-thumb{width:56px;height:56px;flex-basis:56px;border-radius:15px}.product-edit-identity h2{font-size:17px}.product-image-editor-v031{grid-template-columns:88px 1fr}.product-image-preview-v031{width:88px}.unit-setting-row{grid-template-columns:1fr}.unit-setting-toggle:last-child,.unit-setting-name{grid-column:1}.product-filter-actions,.branch-product-list-head>div:last-child{grid-template-columns:1fr}.branch-settings-summary span{font-size:7px}.branch-product-row-v031{border-radius:14px}.branch-unit-area{padding-left:0;margin-top:4px}.branch-product-title-line{display:block}.branch-product-title-line .badge{margin-top:4px}}

/* === v0.3.2 Compact responsive branch stock-count table === */
.stock-count-page-toolbar-v032{margin-bottom:0}
.stock-count-overview-v032{display:grid;grid-template-columns:minmax(240px,1fr) 150px 130px;gap:10px;padding:12px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow)}
.stock-count-overview-v032>div{min-width:0;padding:12px 14px;border-radius:14px;background:var(--surface-2)}
.stock-count-overview-v032 span,.stock-count-overview-v032 small{display:block;color:var(--muted)}
.stock-count-overview-v032 span{font-size:11px;font-weight:800}
.stock-count-overview-v032 strong{display:block;margin-top:2px;font-size:18px;line-height:1.25;font-weight:950;color:var(--text)}
.stock-count-overview-v032 small{margin-top:3px;font-size:11px}
.stock-count-overview-metric-v032{text-align:center}
.stock-count-overview-metric-v032 strong{font-size:22px;color:var(--brand-ink)}
.count-instruction-v032{display:flex;align-items:center;gap:10px;padding:11px 14px;border:1px solid rgba(var(--brand-rgb),.18);border-radius:14px;background:var(--brand-soft)}
.count-instruction-icon-v032{display:grid;place-items:center;width:28px;height:28px;flex:0 0 auto;border-radius:50%;background:var(--brand);color:#fff;font-weight:950}
.count-instruction-v032 strong,.count-instruction-v032 small{display:block}
.count-instruction-v032 strong{font-size:13px}.count-instruction-v032 small{margin-top:2px;color:var(--muted);font-size:11px}
.count-toolbar-v032{grid-template-columns:minmax(260px,1fr) auto;padding:10px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(45,70,86,.06)}
.count-search-v032{position:relative;display:block}
.count-search-v032>span{position:absolute;left:13px;top:50%;z-index:1;transform:translateY(-50%);color:var(--muted);font-size:18px;pointer-events:none}
.count-search-v032 .input{padding-left:38px;min-height:42px}
.count-filter-chip{display:inline-flex;align-items:center;gap:6px;padding:8px 11px}
.count-filter-chip b{display:grid;place-items:center;min-width:21px;height:21px;padding:0 6px;border-radius:999px;background:var(--surface-2);color:var(--muted);font-size:10px}
.count-filter-chip.active b{background:rgba(255,255,255,.2);color:#fff}
.stock-count-categories-v032{display:grid;gap:14px}
.count-category-v032{overflow:hidden;border-radius:18px;box-shadow:0 9px 26px rgba(45,70,86,.07)}
.count-category-head-v032{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);background:linear-gradient(100deg,var(--surface-2),#fff)}
.count-category-head-v032 strong,.count-category-head-v032 span{display:block}
.count-category-head-v032 strong{font-size:15px;font-weight:950}.count-category-head-v032>div:first-child span{margin-top:2px;color:var(--muted);font-size:10px}
.count-category-progress-v032{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:850}
.count-category-progress-v032 span,.count-category-progress-v032 em{padding:5px 8px;border-radius:999px;font-style:normal}
.count-category-progress-v032 span{background:var(--surface-2);color:var(--muted)}
.count-category-progress-v032 em{background:var(--warning-soft);color:var(--warning)}
.stock-count-table-wrap-v032{overflow-x:auto}
.stock-count-table-v032{width:100%;min-width:900px;border-collapse:separate;border-spacing:0;table-layout:fixed}
.stock-count-table-v032 th{padding:9px 12px;border-bottom:1px solid var(--line);background:#fff;color:var(--muted);font-size:10px;font-weight:900;text-align:left;letter-spacing:.01em}
.stock-count-table-v032 td{padding:11px 12px;border-bottom:1px solid var(--line);vertical-align:top;background:#fff}
.stock-count-table-v032 tbody tr:last-child td{border-bottom:0}
.stock-count-table-v032 .stock-count-product-column-v032{width:24%}.stock-count-table-v032 .stock-count-extra-column-v032{width:25%}.stock-count-table-v032 .stock-count-status-column-v032{width:15%}
.stock-count-row-v032{transition:background .16s ease,opacity .16s ease}
.stock-count-row-v032:hover td{background:#fffdfb}
.stock-count-row-v032.is-saved td:first-child{box-shadow:inset 4px 0 0 var(--success)}
.stock-count-row-v032.is-saving td{opacity:.78;pointer-events:none}
.stock-count-row-v032.is-locked td{background:#fffcf7}
.stock-count-product-v032{display:flex;align-items:center;gap:10px;min-width:0}
.stock-count-product-v032>div{min-width:0}
.stock-count-product-v032 .count-product-thumb{width:44px;height:44px;flex-basis:44px;border-radius:12px}
.stock-count-product-v032 .continuous-product-name{font-size:16px;white-space:normal;overflow-wrap:anywhere}
.stock-count-unit-total-v032{display:block;margin-top:3px;color:var(--muted);font-size:10px;font-weight:700}
.stock-count-product-cell-v032 .count-lock-message{margin:8px 0 0;padding:7px 9px;font-size:10px}
.count-table-unit-grid-v032{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:7px}
.count-table-unit-v032{display:grid;grid-template-columns:minmax(0,1fr) minmax(72px,92px);align-items:center;gap:8px;min-height:42px;padding:6px 7px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2)}
.count-table-unit-name-v032{min-width:0;color:var(--text);font-size:11px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.count-table-unit-v032 .input{min-height:34px;height:34px;padding:5px 7px;border-radius:8px;background:#fff;text-align:center;font-size:16px;font-weight:950}
.count-table-unit-v032:focus-within{border-color:rgba(var(--brand-rgb),.45);box-shadow:0 0 0 3px rgba(var(--brand-rgb),.08);background:#fff}
.count-row-extras-v032{border:1px solid var(--line);border-radius:11px;background:#fff;overflow:hidden}
.count-row-extras-v032>summary{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:40px;padding:8px 10px;list-style:none;cursor:pointer;color:var(--brand-ink);font-size:11px;font-weight:900}
.count-row-extras-v032>summary::-webkit-details-marker{display:none}
.count-row-extras-v032>summary:after{content:'+';display:grid;place-items:center;width:20px;height:20px;flex:0 0 auto;border-radius:50%;background:var(--surface-2);color:var(--muted);font-size:14px}
.count-row-extras-v032[open]>summary:after{content:'−'}
.count-extra-flags-v032{display:flex;align-items:center;gap:4px;margin-left:auto}
.count-extra-flags-v032 em{display:none;padding:3px 6px;border-radius:999px;background:var(--surface-2);color:var(--muted);font-size:8px;font-style:normal;white-space:nowrap}
.count-extra-request-state-v032{display:inline-flex!important}
.count-extra-request-state-v032.is-active{background:var(--warning-soft);color:var(--warning)}
.count-extra-note-state-v032.is-active{display:inline-flex;background:var(--info-soft);color:var(--info)}
.count-extra-body-v032{padding:9px 10px 10px;border-top:1px solid var(--line);background:var(--surface-2)}
.request-toggle-v032{gap:8px;padding:0}
.request-toggle-v032 input{width:18px;height:18px;flex:0 0 auto;accent-color:var(--brand)}
.request-toggle-v032 span strong,.request-toggle-v032 span small{display:block}
.request-toggle-v032 span strong{font-size:11px}.request-toggle-v032 span small{margin-top:1px;color:var(--muted);font-size:9px}
.request-fields-v032{grid-template-columns:minmax(0,1fr) 92px;gap:6px;margin-top:8px;padding-top:8px}
.request-fields-v032 .input,.request-fields-v032 .select{min-height:37px;height:37px;padding:6px 8px;font-size:12px}
.count-note-field-v032{margin-top:8px}.count-note-field-v032 label,.request-fields-v032 label{font-size:9px}.count-note-field-v032 .input{min-height:37px;height:37px;padding:6px 8px;font-size:12px}
.stock-count-status-cell-v032{text-align:left}
.stock-count-status-cell-v032 .badge{display:inline-flex;font-size:9px}
.stock-count-status-cell-v032 .counted-by-text{display:block;max-width:none;margin-top:6px;line-height:1.35;font-size:9px}
.stock-count-status-cell-v032 .count-autosave-state{display:block;margin-top:4px;font-size:9px}
.count-submit-panel-v032{padding:16px}
.count-submit-panel-v032 form{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:14px;align-items:end}
.count-submit-copy-v032{display:grid;grid-template-columns:minmax(220px,.75fr) minmax(280px,1.25fr);gap:14px;align-items:end}
.count-submit-copy-v032>div:first-child strong,.count-submit-copy-v032>div:first-child span{display:block}
.count-submit-copy-v032>div:first-child strong{font-size:15px}.count-submit-copy-v032>div:first-child span{margin-top:3px;color:var(--muted);font-size:11px}
.count-submit-panel-v032 .field{margin:0}.count-submit-panel-v032 .textarea{min-height:56px}.count-submit-panel-v032 .btn{min-height:48px}

@media(max-width:1100px){
 .stock-count-table-v032{min-width:780px}.stock-count-table-v032 .stock-count-product-column-v032{width:25%}.stock-count-table-v032 .stock-count-extra-column-v032{width:27%}.stock-count-table-v032 .stock-count-status-column-v032{width:16%}
 .count-table-unit-grid-v032{grid-template-columns:1fr}.count-submit-panel-v032 form{grid-template-columns:1fr 180px}.count-submit-copy-v032{grid-template-columns:1fr 1.4fr}
}
@media(max-width:760px){
 .stock-count-page-toolbar-v032{align-items:stretch}.stock-count-page-toolbar-v032 .toolbar-left,.stock-count-page-toolbar-v032 .toolbar-right{width:100%}.stock-count-page-toolbar-v032 .toolbar-right{justify-content:space-between}
 .stock-count-overview-v032{grid-template-columns:minmax(0,1fr) repeat(2,76px);gap:7px;padding:8px}.stock-count-overview-v032>div{padding:9px 10px}.stock-count-overview-v032 strong{font-size:15px}.stock-count-overview-metric-v032 strong{font-size:18px}.stock-count-overview-v032 small{font-size:9px}
 .count-instruction-v032{padding:9px 11px}.count-instruction-icon-v032{width:24px;height:24px}.count-instruction-v032 strong{font-size:12px}.count-instruction-v032 small{font-size:9px}
 .count-toolbar-v032{position:sticky;top:74px;z-index:22;grid-template-columns:1fr;gap:7px;margin-left:-4px;margin-right:-4px;padding:8px;border-radius:14px;background:rgba(255,255,255,.96);backdrop-filter:blur(10px)}
 .count-search-v032 .input{min-height:39px}.count-filter-chip{padding:7px 9px;font-size:10px}.count-filter-chip b{height:18px;min-width:18px;padding:0 5px;font-size:8px}
 .stock-count-categories-v032{gap:10px}.count-category-v032{border-radius:15px;overflow:visible}.count-category-head-v032{padding:9px 11px;border-radius:15px 15px 0 0}.count-category-head-v032 strong{font-size:13px}.count-category-progress-v032{gap:4px}.count-category-progress-v032 span,.count-category-progress-v032 em{padding:4px 6px;font-size:8px}
 .stock-count-table-wrap-v032{overflow:visible}.stock-count-table-v032,.stock-count-table-v032 tbody{display:block;width:100%;min-width:0}.stock-count-table-v032 thead{display:none}
 .stock-count-table-v032 tbody{padding:0 7px 7px;background:#fff;border-radius:0 0 15px 15px}
 .stock-count-table-v032 tr.stock-count-row-v032{display:grid;width:100%;grid-template-columns:minmax(0,1fr) 82px;grid-template-areas:'product status' 'units units' 'extra extra';gap:8px;padding:10px 6px;border-bottom:1px solid var(--line)}
 .stock-count-table-v032 tbody tr:last-child{border-bottom:0}
 .stock-count-table-v032 td{display:block;width:auto;padding:0;border:0!important;background:transparent!important}
 .stock-count-row-v032.is-saved{box-shadow:inset 3px 0 0 var(--success)}
 .stock-count-product-cell-v032{grid-area:product;min-width:0}.stock-count-units-cell-v032{grid-area:units}.stock-count-extra-cell-v032{grid-area:extra}.stock-count-status-cell-v032{grid-area:status;text-align:right}
 .stock-count-product-v032{gap:8px}.stock-count-product-v032 .count-product-thumb{width:38px;height:38px;flex-basis:38px;border-radius:10px}.stock-count-product-v032 .continuous-product-name{font-size:16px;line-height:1.2}.stock-count-unit-total-v032{font-size:9px}
 .count-table-unit-grid-v032{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.count-table-unit-v032{grid-template-columns:minmax(0,1fr) 66px;min-height:39px;padding:5px 6px;border-radius:10px}.count-table-unit-name-v032{font-size:10px}.count-table-unit-v032 .input{height:32px;min-height:32px;padding:4px 5px;font-size:15px}
 .stock-count-status-cell-v032 .badge{font-size:8px;padding:5px 6px}.stock-count-status-cell-v032 .counted-by-text{display:none}.stock-count-status-cell-v032 .count-autosave-state{font-size:8px;line-height:1.2}
 .count-row-extras-v032>summary{min-height:36px;padding:7px 9px;font-size:10px}.count-row-extras-v032>summary:after{width:18px;height:18px;font-size:12px}.count-extra-flags-v032 em{font-size:7px}
 .count-extra-body-v032{padding:8px 9px 9px}.request-fields-v032{grid-template-columns:minmax(0,1fr) 92px}
 .count-submit-panel-v032{padding:12px}.count-submit-panel-v032 form,.count-submit-copy-v032{grid-template-columns:1fr}.count-submit-panel-v032 .btn{width:100%}
}
@media(max-width:390px){
 .stock-count-overview-v032{grid-template-columns:minmax(0,1fr) 68px 62px}.stock-count-overview-v032>div{padding:8px}.stock-count-overview-main-v032 strong{font-size:14px}.stock-count-overview-metric-v032 strong{font-size:16px}
 .count-table-unit-grid-v032{grid-template-columns:1fr}.count-table-unit-v032{grid-template-columns:minmax(0,1fr) 82px}.request-fields-v032{grid-template-columns:1fr}
 .count-extra-flags-v032 .count-extra-note-state-v032{display:none!important}
}

/* v0.3.4 — one-page product catalog, quick editor and bulk actions */
.product-list-filter-v034{position:relative;z-index:2}.product-list-toolbar-v034{align-items:flex-end}.product-list-card-v034{overflow:hidden}.product-catalog-table-wrap-v034{overflow:auto;padding:4px 14px 10px}.product-catalog-table-v034{min-width:1120px}.product-catalog-table-v034 th,.product-catalog-table-v034 td{vertical-align:middle}.product-catalog-table-v034 tbody tr{transition:background .16s,border-color .16s,box-shadow .16s,opacity .16s}.product-catalog-table-v034 tbody tr:hover td{background:rgba(var(--brand-rgb),.025)}.product-catalog-table-v034 tbody tr.is-selected td{background:rgba(var(--brand-rgb),.065)}.product-catalog-table-v034 tbody tr.is-dragging{opacity:.48}.product-select-column-v034,.product-select-cell-v034{width:42px;text-align:center}.product-row-check-v034{position:relative;display:inline-grid;place-items:center;width:26px;height:26px;cursor:pointer}.product-row-check-v034 input{position:absolute;opacity:0}.product-row-check-v034 span{display:grid;place-items:center;width:21px;height:21px;border:2px solid var(--line);border-radius:7px;background:#fff}.product-row-check-v034 input:checked+span{border-color:var(--brand);background:var(--brand)}.product-row-check-v034 input:checked+span:after{content:'✓';color:#fff;font-size:12px;font-weight:950}.product-row-check-v034 input:indeterminate+span{border-color:var(--brand);background:var(--brand)}.product-row-check-v034 input:indeterminate+span:after{content:'–';color:#fff;font-size:15px;font-weight:950}.product-order-column-v034,.product-order-cell-v034{width:82px;text-align:center}.product-order-cell-v034{white-space:nowrap}.product-drag-handle-v034{display:inline-grid;place-items:center;width:32px;height:34px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:var(--muted);font-size:17px;cursor:grab}.product-drag-handle-v034:active{cursor:grabbing}.product-order-buttons-v034{display:none;gap:4px}.product-order-buttons-v034 button{width:31px;height:31px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);font-weight:900}.product-catalog-name-cell-v034{min-width:210px}.product-list-name-wrap-v034{display:flex;align-items:center;gap:11px;min-width:0}.product-list-name-wrap-v034>div{min-width:0}.product-list-name-wrap-v034 strong{display:block;font-size:14px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}.product-list-name-wrap-v034 small{display:block;margin-top:3px;color:var(--muted);font-size:9px;font-weight:750}.product-meta-cell-v034{min-width:175px}.product-meta-cell-v034>.product-chip-list{margin-top:6px}.product-chip-list-v034{max-width:230px}.product-units-cell-v034{min-width:190px}.product-units-cell-v034>small{display:block;margin-top:6px;color:var(--muted);font-size:8px;font-weight:800}.product-supplier-cell-v034{min-width:170px}.product-supplier-summary-v034 span,.product-supplier-summary-v034 small{display:block}.product-supplier-summary-v034 span{font-size:10px;font-weight:800;line-height:1.45}.product-supplier-summary-v034 small{margin-top:3px;color:var(--muted);font-size:8px;font-weight:750}.product-status-cell-v034{width:105px}.product-action-cell-v034{min-width:190px;white-space:nowrap;text-align:right}.product-action-cell-v034 .btn+.btn{margin-left:5px}.product-order-savebar-v034{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 14px 14px;padding:10px 12px;border:1px solid var(--line);border-radius:15px;background:var(--surface-2)}.product-order-savebar-v034 strong,.product-order-savebar-v034 small{display:block}.product-order-savebar-v034 strong{font-size:11px}.product-order-savebar-v034 small{margin-top:2px;color:var(--muted);font-size:8px;font-weight:750}.product-order-savebar-v034.is-dirty{border-color:rgba(var(--brand-rgb),.35);background:rgba(var(--brand-rgb),.065)}.product-highlight-v034{animation:productHighlightV034 2.6s ease}.product-highlight-v034 td{background:var(--success-soft)!important}@keyframes productHighlightV034{0%,55%{box-shadow:inset 4px 0 0 var(--success)}100%{box-shadow:inset 0 0 0 transparent}}
.product-bulk-bar-v034[hidden]{display:none!important}.product-bulk-bar-v034{position:fixed;left:calc(260px + 30px);right:30px;bottom:20px;z-index:125;display:flex;align-items:center;justify-content:space-between;gap:14px;max-width:1440px;margin:0 auto;padding:12px 14px;border:1px solid rgba(var(--brand-rgb),.28);border-radius:18px;background:rgba(255,255,255,.97);box-shadow:0 18px 48px rgba(31,25,21,.2);backdrop-filter:blur(14px)}.product-bulk-bar-v034>div:first-child strong,.product-bulk-bar-v034>div:first-child small{display:block}.product-bulk-bar-v034>div:first-child strong{font-size:12px}.product-bulk-bar-v034>div:first-child small{margin-top:2px;color:var(--muted);font-size:8px;font-weight:750}.product-bulk-bar-v034>div:last-child{display:flex;gap:7px}
body.product-modal-open-v034{overflow:hidden}.product-work-modal-v034[hidden]{display:none!important}.product-work-modal-v034{position:fixed;inset:0;z-index:210;display:grid;place-items:center;padding:18px;background:rgba(20,27,31,.68);backdrop-filter:blur(5px)}.product-work-dialog-v034{width:min(1060px,100%);max-height:calc(100vh - 36px);overflow:hidden;border:1px solid rgba(255,255,255,.5);border-radius:24px;background:var(--bg);box-shadow:0 32px 100px rgba(8,18,24,.38)}.product-work-dialog-v034 form{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100vh - 36px)}.product-work-header-v034{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border-bottom:1px solid var(--line);background:#fff}.product-work-header-v034>div small,.product-work-header-v034>div h2,.product-work-header-v034>div span{display:block}.product-work-header-v034>div small{color:var(--brand);font-size:8px;font-weight:950;letter-spacing:.09em}.product-work-header-v034>div h2{margin:3px 0 1px;font-size:19px;line-height:1.25}.product-work-header-v034>div span{color:var(--muted);font-size:9px;font-weight:750}.product-editor-heading-v034{display:flex!important;align-items:center;gap:12px;min-width:0}.product-editor-heading-v034>div{min-width:0}.product-editor-modal-thumb-v034{display:grid!important;place-items:center;flex:0 0 52px;width:52px;height:52px;overflow:hidden;border:1px solid var(--line);border-radius:15px;background:var(--surface-2);color:var(--muted);font-size:20px}.product-editor-modal-thumb-v034 img{width:100%;height:100%;object-fit:cover}.product-work-close-v034{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--muted);font-size:24px}.product-work-body-v034{display:grid;gap:13px;overflow:auto;padding:14px}.product-work-section-v034{padding:15px;border:1px solid var(--line);border-radius:18px;background:#fff}.product-work-section-head-v034{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.product-work-section-head-v034 strong,.product-work-section-head-v034 span{display:block}.product-work-section-head-v034 strong{font-size:13px}.product-work-section-head-v034 span{margin-top:2px;color:var(--muted);font-size:8px;font-weight:750}.product-work-section-tools-v034{display:flex;align-items:center;gap:7px}.product-mini-search-v034{width:180px;min-height:38px;height:38px;padding:7px 10px;font-size:10px}.product-editor-basic-grid-v034{display:grid;grid-template-columns:minmax(260px,1.2fr) minmax(200px,.8fr) minmax(200px,.7fr);gap:12px;align-items:end}.product-editor-active-v034{display:flex;align-items:center;gap:9px;min-height:46px;padding:8px 10px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2);cursor:pointer}.product-editor-active-v034 input{width:18px;height:18px;accent-color:var(--brand)}.product-editor-active-v034 span,.product-editor-active-v034 strong,.product-editor-active-v034 small{display:block}.product-editor-active-v034 strong{font-size:10px}.product-editor-active-v034 small{margin-top:1px;color:var(--muted);font-size:7px;font-weight:750}.product-option-chip-grid-v034{display:flex;flex-wrap:wrap;gap:7px}.product-option-chip-v034{position:relative;cursor:pointer}.product-option-chip-v034 input{position:absolute;opacity:0;pointer-events:none}.product-option-chip-v034 span{display:inline-flex;align-items:center;min-height:34px;padding:7px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:9px;font-weight:850}.product-option-chip-v034 input:checked+span{border-color:rgba(var(--brand-rgb),.42);background:rgba(var(--brand-rgb),.1);color:var(--brand)}.product-advanced-details-v034{margin-top:13px;border:1px dashed var(--line);border-radius:13px;background:var(--surface-2)}.product-advanced-details-v034>summary{padding:10px 12px;color:var(--muted);font-size:9px;font-weight:850;cursor:pointer}.product-advanced-grid-v034{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:12px;padding:0 12px 12px}.product-image-field-v034 .input{padding:8px}.product-unit-editor-legend-v034,.product-unit-editor-row-v034{display:grid;grid-template-columns:minmax(180px,1fr) 110px 110px 150px;gap:8px;align-items:center}.product-unit-editor-legend-v034{padding:0 9px 6px;color:var(--muted);font-size:7px;font-weight:900;text-align:center}.product-unit-editor-legend-v034 span:first-child{text-align:left}.product-unit-editor-list-v034{display:grid;grid-template-columns:1fr 1fr;gap:7px}.product-unit-editor-row-v034{grid-template-columns:minmax(125px,1fr) 86px 82px 104px;padding:9px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);opacity:.7}.product-unit-editor-row-v034.is-active{border-color:rgba(var(--brand-rgb),.3);background:rgba(var(--brand-rgb),.045);opacity:1}.product-unit-editor-row-v034>div strong,.product-unit-editor-row-v034>div small{display:block}.product-unit-editor-row-v034>div strong{font-size:10px}.product-unit-editor-row-v034>div small{margin-top:1px;color:var(--muted);font-size:7px;font-weight:750}.product-unit-editor-row-v034>label{display:flex;align-items:center;justify-content:center;gap:5px;min-height:31px;padding:5px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:7px;font-weight:850;cursor:pointer;text-align:center}.product-unit-editor-row-v034>label input{width:16px;height:16px;accent-color:var(--brand)}.product-unit-editor-row-v034>label input:disabled+span{opacity:.42}.product-supplier-editor-list-v034{display:grid;gap:7px}.product-supplier-editor-row-v034{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,.7fr) 130px;gap:9px;align-items:center;padding:9px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);opacity:.65}.product-supplier-editor-row-v034.is-active{border-color:rgba(var(--brand-rgb),.28);background:#fff;opacity:1}.product-supplier-editor-check-v034{display:flex;align-items:center;gap:8px;cursor:pointer}.product-supplier-editor-check-v034 input,.product-supplier-primary-v034 input{width:17px;height:17px;accent-color:var(--brand)}.product-supplier-editor-check-v034 span,.product-supplier-editor-check-v034 strong,.product-supplier-editor-check-v034 small{display:block}.product-supplier-editor-check-v034 strong{font-size:10px}.product-supplier-editor-check-v034 small{margin-top:1px;color:var(--muted);font-size:7px;font-weight:750}.product-supplier-editor-row-v034 .select{min-height:38px;height:38px;padding:7px 9px;font-size:9px}.product-supplier-primary-v034{display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:6px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);font-size:8px;font-weight:850;cursor:pointer}.product-editor-empty-v034{padding:20px}.product-work-footer-v034{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:11px 14px;border-top:1px solid var(--line);background:#fff}.product-work-footer-v034>span{margin-right:auto;color:var(--muted);font-size:9px;font-weight:800}.product-work-footer-v034 [data-editor-validation-message]{color:var(--danger)}.product-bulk-dialog-v034{width:min(920px,100%)}.product-bulk-inline-v034{display:grid;grid-template-columns:1fr 1fr;gap:7px}.product-bulk-unit-grid-v034{max-height:170px;overflow:auto;padding:3px}.product-bulk-unit-flags-v034{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:11px}.product-bulk-warning-v034{margin-top:10px;padding:10px 12px;border-radius:11px;background:var(--warning-soft);color:var(--warning);font-size:9px;font-weight:850}.product-bulk-supplier-grid-v034{display:grid;grid-template-columns:1fr 1fr 1fr minmax(190px,.8fr);gap:10px;align-items:end}.product-bulk-primary-v034{min-height:46px}
@media(max-width:1180px){.product-unit-editor-list-v034{grid-template-columns:1fr}.product-bulk-supplier-grid-v034{grid-template-columns:1fr 1fr}.product-bulk-primary-v034{grid-column:1/-1}.product-bulk-bar-v034{left:18px;right:18px}}
@media(max-width:1024px){.product-bulk-bar-v034{left:12px;right:12px;bottom:86px}.product-editor-basic-grid-v034{grid-template-columns:1fr 1fr}.product-editor-active-v034{grid-column:1/-1}.product-advanced-grid-v034{grid-template-columns:1fr 1fr}.product-image-field-v034{grid-column:1/-1}}
@media(max-width:760px){
 .product-list-toolbar-v034{align-items:stretch;flex-direction:column}.product-list-toolbar-v034 .btn{width:100%}.product-list-card-v034{border:0;background:transparent;box-shadow:none;overflow:visible}.product-catalog-table-wrap-v034{overflow:visible;padding:0}.product-catalog-table-v034,.product-catalog-table-v034 tbody,.product-catalog-table-v034 tr,.product-catalog-table-v034 td{display:block;width:100%;min-width:0}.product-catalog-table-v034 thead{display:none}.product-catalog-table-v034 tbody{display:grid;gap:10px}.product-catalog-table-v034 tr.product-sortable-row-v034{position:relative;padding:12px 12px 12px 58px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:0 8px 22px rgba(31,48,59,.055)}.product-catalog-table-v034 tr.product-sortable-row-v034.is-selected{border-color:rgba(var(--brand-rgb),.38);background:rgba(var(--brand-rgb),.035)}.product-catalog-table-v034 td{padding:5px 0!important;border:0!important;background:transparent!important}.product-select-cell-v034{position:absolute;left:13px;top:15px;width:28px!important}.product-order-cell-v034{position:absolute;right:11px;top:10px;width:auto!important}.product-drag-handle-v034{display:none}.product-order-buttons-v034{display:flex}.product-catalog-name-cell-v034{padding-right:76px!important;min-height:48px}.product-list-name-wrap-v034{align-items:flex-start}.product-list-name-wrap-v034 strong{font-size:15px}.product-meta-cell-v034,.product-units-cell-v034,.product-supplier-cell-v034{position:relative;margin-top:5px;padding-left:88px!important;min-height:26px}.product-meta-cell-v034:before,.product-units-cell-v034:before,.product-supplier-cell-v034:before,.product-status-cell-v034:before{content:attr(data-label);position:absolute;left:0;top:7px;width:80px;color:var(--muted);font-size:8px;font-weight:900}.product-meta-cell-v034>.product-category-chip{margin-bottom:3px}.product-chip-list-v034{max-width:none}.product-status-cell-v034{position:relative;display:inline-block!important;width:auto!important;margin-top:5px;padding-left:88px!important;min-height:31px}.product-action-cell-v034{display:grid!important;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px;min-width:0}.product-action-cell-v034 .btn{width:100%}.product-order-savebar-v034{position:static;align-items:stretch;flex-direction:column;margin:10px 0 0}.product-order-savebar-v034 .btn{width:100%}.product-bulk-bar-v034{left:8px;right:8px;bottom:83px;align-items:stretch;flex-direction:column;padding:10px 11px}.product-bulk-bar-v034>div:last-child{display:grid;grid-template-columns:1fr 1fr}.product-bulk-bar-v034 .btn{width:100%}
 .product-work-modal-v034{padding:0;place-items:stretch}.product-work-dialog-v034{width:100%;max-height:100vh;height:100vh;border:0;border-radius:0}.product-work-dialog-v034 form{height:100vh;max-height:100vh}.product-work-header-v034{padding:11px 12px}.product-work-header-v034>div h2{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100vw - 90px)}.product-editor-modal-thumb-v034{width:44px;height:44px;flex-basis:44px;border-radius:12px}.product-work-close-v034{width:38px;height:38px;flex-basis:38px}.product-work-body-v034{padding:9px 9px 92px}.product-work-section-v034{padding:12px;border-radius:15px}.product-work-section-head-v034{align-items:stretch;flex-direction:column}.product-work-section-tools-v034{justify-content:space-between}.product-mini-search-v034{width:100%}.product-editor-basic-grid-v034,.product-advanced-grid-v034{grid-template-columns:1fr}.product-editor-active-v034,.product-image-field-v034{grid-column:auto}.product-unit-editor-legend-v034{display:none}.product-unit-editor-row-v034{grid-template-columns:minmax(0,1fr) 72px 72px;gap:6px}.product-unit-editor-row-v034>div{grid-column:1/-1}.product-unit-editor-row-v034>label:last-child{grid-column:1/-1}.product-supplier-editor-row-v034{grid-template-columns:minmax(0,1fr) 105px}.product-supplier-editor-row-v034 .select{grid-column:1/-1;grid-row:2}.product-supplier-primary-v034{grid-column:2;grid-row:1}.product-work-footer-v034{position:fixed;left:0;right:0;bottom:0;z-index:3;display:grid;grid-template-columns:1fr 1fr;padding:9px}.product-work-footer-v034>span{display:none}.product-work-footer-v034 [data-editor-detail-link]{display:none}.product-work-footer-v034 .btn{width:100%}.product-bulk-inline-v034,.product-bulk-unit-flags-v034,.product-bulk-supplier-grid-v034{grid-template-columns:1fr}.product-bulk-primary-v034{grid-column:auto}
}
@media(max-width:420px){.product-meta-cell-v034,.product-units-cell-v034,.product-supplier-cell-v034,.product-status-cell-v034{padding-left:0!important;padding-top:20px!important}.product-meta-cell-v034:before,.product-units-cell-v034:before,.product-supplier-cell-v034:before,.product-status-cell-v034:before{top:2px;width:auto}.product-action-cell-v034{grid-template-columns:1fr}.product-unit-editor-row-v034{grid-template-columns:1fr 1fr}.product-unit-editor-row-v034>label:last-child{grid-column:1/-1}.product-supplier-editor-row-v034{grid-template-columns:1fr}.product-supplier-primary-v034{grid-column:auto;grid-row:auto}.product-supplier-editor-row-v034 .select{grid-column:auto;grid-row:auto}}

.product-bulk-unit-flags-v034[hidden],.product-bulk-warning-v034[hidden]{display:none!important}

/* === v0.3.5 Combined product detail + Supplier pairing === */
#product-info-v035,#product-units-v035,#product-suppliers-v035{scroll-margin-top:92px}
.product-section-nav-v035{display:flex;align-items:center;flex-wrap:wrap;gap:7px;flex:0 0 auto}
.product-section-nav-v035 a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--text);font-size:9px;font-weight:900;text-decoration:none;transition:.15s}
.product-section-nav-v035 a:hover{border-color:rgba(var(--brand-rgb),.36);background:rgba(var(--brand-rgb),.06);color:var(--brand)}
.product-supplier-section-v035{overflow:hidden}
.product-supplier-head-v035{align-items:center}
.product-supplier-tools-v035{display:flex;align-items:center;gap:8px}
.product-supplier-tools-v035 .input{width:230px;min-height:38px;height:38px;padding:8px 10px;font-size:10px}
.product-supplier-note-v035{display:flex;align-items:center;gap:8px;margin-bottom:11px;padding:10px 12px;border:1px solid rgba(var(--brand-rgb),.16);border-radius:12px;background:rgba(var(--brand-rgb),.045)}
.product-supplier-note-v035 strong{flex:0 0 auto;color:var(--brand);font-size:9px}
.product-supplier-note-v035 span{min-width:0;color:var(--muted);font-size:9px;font-weight:750;line-height:1.45}
.product-supplier-pair-list-v035{max-height:520px;overflow:auto;padding-right:3px}
.product-supplier-pair-row-v035{opacity:.66;transition:.15s}
.product-supplier-pair-row-v035.is-active{border-color:rgba(var(--brand-rgb),.32);background:rgba(var(--brand-rgb),.035);opacity:1;box-shadow:0 6px 18px rgba(31,48,59,.045)}
.product-supplier-pair-row-v035 select:disabled,.product-supplier-pair-row-v035 input:disabled{opacity:.48;cursor:not-allowed}
.product-supplier-no-result-v035{margin-top:8px;padding:20px}
@media(max-width:980px){.product-edit-hero{align-items:flex-start;flex-direction:column}.product-section-nav-v035{width:100%}.product-section-nav-v035 a{flex:1}.product-supplier-head-v035{align-items:stretch;flex-direction:column}.product-supplier-tools-v035{width:100%}.product-supplier-tools-v035 .input{width:auto;flex:1}}
@media(max-width:760px){#product-info-v035,#product-units-v035,#product-suppliers-v035{scroll-margin-top:18px}.product-section-nav-v035{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.product-section-nav-v035 a{min-height:40px;padding:7px 5px;font-size:8px;text-align:center}.product-supplier-tools-v035{display:grid;grid-template-columns:auto 1fr}.product-supplier-pair-list-v035{max-height:none;overflow:visible}.product-supplier-note-v035{align-items:flex-start;flex-direction:column}.product-supplier-pair-row-v035{opacity:.78}.product-supplier-pair-row-v035.is-active{opacity:1}}
@media(max-width:430px){.product-section-nav-v035{grid-template-columns:1fr}.product-section-nav-v035 a{justify-content:flex-start;padding-left:12px}.product-supplier-tools-v035{grid-template-columns:1fr}.product-supplier-tools-v035 .badge{justify-self:start}.product-supplier-tools-v035 .input{width:100%}}

/* === v0.3.7 Back-office revenue and sales report === */
.revenue-filter-card-v037{padding-bottom:14px}
.revenue-filter-grid-v037{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:12px;align-items:end}
.revenue-filter-grid-v037 .field{gap:5px}.revenue-filter-grid-v037 .field>span{font-size:11px;font-weight:850;color:var(--muted)}
.revenue-filter-actions-v037{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.revenue-presets-v037{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.revenue-presets-v037 a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 11px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-size:10px;font-weight:850}
.revenue-presets-v037 a:hover,.revenue-presets-v037 a.active{border-color:rgba(var(--brand-rgb),.34);background:var(--brand-soft);color:var(--brand-ink)}
.revenue-report-toolbar-v037{padding:0 2px}.revenue-report-toolbar-v037 .muted{font-size:11px;font-weight:750}
.revenue-change-up-v037{color:var(--success)}.revenue-change-down-v037{color:var(--danger)}.revenue-change-neutral-v037{font-size:24px!important;color:var(--muted)}
.revenue-chart-card-v037{overflow:hidden}.revenue-chart-card-v037>.card-head>strong{font-size:17px;color:var(--brand-ink)}
.revenue-chart-scroll-v037{overflow-x:auto;padding:22px 18px 18px}
.revenue-chart-v037{display:flex;align-items:stretch;gap:8px;min-width:max-content;height:250px}
.revenue-chart-column-v037{display:grid;grid-template-rows:28px 1fr 25px;width:42px;min-width:42px;text-align:center}
.revenue-chart-v037.is-monthly .revenue-chart-column-v037{width:72px;min-width:72px}
.revenue-chart-value-v037{align-self:end;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:8px;font-weight:850}
.revenue-chart-track-v037{position:relative;display:flex;align-items:flex-end;justify-content:center;height:100%;border-bottom:1px solid var(--line);background:linear-gradient(180deg,transparent 24%,rgba(172,192,211,.2) 25%,transparent 26%,transparent 49%,rgba(172,192,211,.2) 50%,transparent 51%,transparent 74%,rgba(172,192,211,.2) 75%,transparent 76%)}
.revenue-chart-track-v037 span{display:block;width:74%;min-height:2px;border-radius:9px 9px 2px 2px;background:linear-gradient(180deg,var(--brand),var(--brand-strong));box-shadow:0 6px 14px rgba(var(--brand-rgb),.18)}
.revenue-chart-label-v037{align-self:end;color:var(--muted);font-size:8px;font-weight:800;white-space:nowrap}
.revenue-summary-card-v037{overflow:hidden}.revenue-ranking-list-v037{display:grid;gap:0;padding:8px 18px 18px}
.revenue-ranking-row-v037{display:block;padding:12px 2px;border-bottom:1px solid #eef2f5}.revenue-ranking-row-v037:last-child{border-bottom:0}.revenue-ranking-row-v037:hover strong{color:var(--brand-ink)}
.revenue-ranking-head-v037{display:flex;align-items:center;justify-content:space-between;gap:12px}.revenue-ranking-head-v037>span{display:flex;align-items:center;min-width:0;gap:9px}.revenue-ranking-head-v037 b,.revenue-point-summary-v037 b{display:grid;place-items:center;width:25px;height:25px;flex:0 0 25px;border-radius:9px;background:var(--surface-2);color:var(--muted);font-size:9px}.revenue-ranking-head-v037 strong{font-size:12px}.revenue-ranking-head-v037>strong{white-space:nowrap}
.revenue-ranking-track-v037{height:7px;margin:9px 0 6px;border-radius:999px;background:var(--surface-2);overflow:hidden}.revenue-ranking-track-v037 span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--brand),var(--sand))}
.revenue-ranking-row-v037 small{color:var(--muted);font-size:9px;font-weight:750}
.revenue-point-summary-v037{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.revenue-point-summary-v037>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #eef2f5}.revenue-point-summary-v037>div>span{display:flex;align-items:center;gap:10px;min-width:0}.revenue-point-summary-v037>div>span>span{display:grid;min-width:0}.revenue-point-summary-v037>div>span strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.revenue-point-summary-v037 small{color:var(--muted);font-size:9px}.revenue-point-summary-v037>div>strong{white-space:nowrap;font-size:12px}
.revenue-detail-table-v037 td:first-child small{display:block;margin-top:2px;color:var(--muted);font-size:9px}.revenue-mobile-note-v037{margin-top:10px;line-height:1.5}
.revenue-pagination-v037{display:flex;align-items:center;justify-content:center;gap:12px;padding:16px 20px 20px;border-top:1px solid var(--line)}.revenue-pagination-v037 span{color:var(--muted);font-size:11px;font-weight:800}.revenue-pagination-v037 .is-disabled{opacity:.42;pointer-events:none}
@media(max-width:1280px){.revenue-filter-grid-v037{grid-template-columns:repeat(3,minmax(0,1fr))}.revenue-filter-actions-v037{grid-column:span 1}.revenue-point-summary-v037{grid-template-columns:1fr}.bottom-nav.bottom-nav-central-v037{grid-template-columns:repeat(6,1fr)}}
@media(max-width:1024px){.bottom-nav.bottom-nav-central-v037{grid-template-columns:repeat(6,1fr)}.bottom-nav.bottom-nav-central-v037 a{font-size:9px;padding-left:1px;padding-right:1px}}
@media(max-width:760px){.revenue-filter-grid-v037{grid-template-columns:1fr 1fr}.revenue-filter-actions-v037{grid-column:1/-1}.revenue-report-toolbar-v037 .toolbar-right{display:grid;grid-template-columns:1fr 1fr}.revenue-report-toolbar-v037 .toolbar-right .btn{width:100%}.revenue-chart-scroll-v037{padding-left:12px;padding-right:12px}.revenue-chart-v037{height:220px}.revenue-chart-column-v037{width:35px;min-width:35px}.revenue-chart-value-v037{display:none}.revenue-ranking-list-v037{padding-left:14px;padding-right:14px}.revenue-point-summary-v037{padding:8px 14px 14px}.bottom-nav.bottom-nav-central-v037 a:nth-child(4){display:none}.bottom-nav.bottom-nav-central-v037{grid-template-columns:repeat(5,1fr)}}
@media(max-width:430px){.revenue-filter-grid-v037{grid-template-columns:1fr}.revenue-filter-actions-v037{grid-column:auto}.revenue-presets-v037{display:grid;grid-template-columns:repeat(3,1fr)}.revenue-presets-v037 a{padding-left:5px;padding-right:5px}.revenue-report-toolbar-v037 .toolbar-right{grid-template-columns:1fr}.revenue-ranking-head-v037{align-items:flex-start}.revenue-ranking-head-v037>span{align-items:flex-start}.revenue-pagination-v037{gap:7px}.revenue-pagination-v037 .btn{min-height:38px;padding:8px 10px}}
.central-quick-actions-v037{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:1280px){.central-quick-actions-v037{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.central-quick-actions-v037{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.central-quick-actions-v037{grid-template-columns:1fr 1fr}}

/* Revenue snapshot workflow v0.3.8 */
.revenue-snapshot-banner-v038{border-color:rgba(var(--brand-rgb),.22);background:linear-gradient(135deg,#fff,var(--brand-soft))}.revenue-snapshot-banner-v038.is-closed{border-color:rgba(30,142,103,.25);background:linear-gradient(135deg,#fff,#edf9f4)}
.revenue-snapshot-main-v038{display:flex;align-items:center;justify-content:space-between;gap:20px}.revenue-snapshot-total-v038{display:grid;justify-items:end;gap:3px;white-space:nowrap}.revenue-snapshot-total-v038 span{color:var(--muted);font-size:10px;font-weight:850}.revenue-snapshot-total-v038 strong{color:var(--brand-ink);font-size:28px;font-variant-numeric:tabular-nums}
.revenue-snapshot-rule-v038{margin-top:14px;padding-top:12px;border-top:1px solid rgba(var(--brand-rgb),.14);color:var(--muted);font-size:11px;line-height:1.55}.revenue-snapshot-rule-v038 b{color:var(--brand-ink)}
.revenue-submit-wrap{align-items:center;gap:14px}.revenue-submit-help-v038{margin-right:auto;color:var(--muted);font-size:10px;font-weight:750;line-height:1.45}.revenue-submit-btn:disabled,.revenue-amount-input:disabled{cursor:not-allowed;opacity:.62}
.revenue-revision-list-v038{display:grid;gap:8px}.revenue-revision-row-v038{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fff}.revenue-revision-row-v038.is-current{border-color:rgba(30,142,103,.25);background:#f3fbf7}.revenue-revision-row-v038>div{display:flex;align-items:center;gap:9px;min-width:0}.revenue-revision-row-v038 small{color:var(--muted);font-size:9px;font-weight:750}.revenue-revision-row-v038>strong{white-space:nowrap;font-size:13px}
.revenue-history-table-v038 .table td small{display:block;margin-top:3px;color:var(--muted);font-size:9px}.revenue-history-mobile-actions-v038{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}.revenue-history-total-v038{display:flex;align-items:center;justify-content:space-between;padding:14px 2px 2px;font-weight:850}.revenue-history-total-v038 strong{font-size:18px;color:var(--brand-ink)}
@media(max-width:760px){.revenue-snapshot-main-v038{align-items:flex-start}.revenue-snapshot-total-v038 strong{font-size:23px}.revenue-submit-wrap{display:grid;grid-template-columns:1fr}.revenue-submit-help-v038{text-align:center;margin:0}.revenue-revision-row-v038{align-items:flex-start}.revenue-revision-row-v038>div{display:grid;gap:5px}.revenue-revision-row-v038>div .badge{justify-self:start}}
@media(max-width:430px){.revenue-snapshot-main-v038{display:grid}.revenue-snapshot-total-v038{justify-items:start}.revenue-revision-row-v038{display:grid}.revenue-revision-row-v038>strong{justify-self:end}}

/* === v0.3.10 Product master import === */
.product-import-toolbar-v0310{align-items:center}.product-import-toolbar-v0310 .toolbar-right{display:flex;gap:8px;flex-wrap:wrap}.product-import-schema-warning-v0310{border-color:#f2c8ce;background:#fff7f8}.product-import-schema-warning-v0310 .card-pad{display:flex;align-items:flex-start;gap:14px}.product-import-schema-warning-v0310 p{margin:5px 0 0;color:var(--muted);line-height:1.55}.product-import-warning-icon-v0310{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:12px;background:#ffe5e8;color:#bd3542;font-weight:950;font-size:18px}
.product-import-hero-v0310{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(340px,.75fr);gap:18px;align-items:stretch}.product-import-hero-copy-v0310{padding:28px;border:1px solid rgba(var(--brand-rgb),.16);border-radius:22px;background:linear-gradient(135deg,#fff 0%,var(--brand-soft) 100%);box-shadow:var(--shadow)}.product-import-hero-copy-v0310 .eyebrow{display:block;color:var(--brand);font-size:9px;font-weight:950;letter-spacing:.14em}.product-import-hero-copy-v0310 h2{margin:8px 0 6px;font-size:27px;line-height:1.15;color:var(--brand-ink)}.product-import-hero-copy-v0310>p{margin:0;max-width:780px;color:var(--muted);line-height:1.65;font-size:12px;font-weight:700}.product-import-rule-grid-v0310{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:20px}.product-import-rule-grid-v0310>div{padding:12px;border:1px solid rgba(var(--brand-rgb),.12);border-radius:14px;background:rgba(255,255,255,.78)}.product-import-rule-grid-v0310 b,.product-import-rule-grid-v0310 span{display:block}.product-import-rule-grid-v0310 b{font-size:11px;color:var(--brand-ink)}.product-import-rule-grid-v0310 span{margin-top:4px;color:var(--muted);font-size:9px;line-height:1.45;font-weight:700}
.product-import-upload-v0310{display:grid;gap:12px;padding:18px}.product-import-dropzone-v0310{display:grid;place-items:center;align-content:center;gap:6px;min-height:215px;padding:20px;border:2px dashed rgba(var(--brand-rgb),.28);border-radius:18px;background:var(--surface-2);text-align:center;cursor:pointer;transition:.18s}.product-import-dropzone-v0310:hover,.product-import-dropzone-v0310.has-file{border-color:var(--brand);background:var(--brand-soft)}.product-import-dropzone-v0310 input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.product-import-dropzone-v0310 strong{font-size:14px;color:var(--brand-ink);overflow-wrap:anywhere}.product-import-dropzone-v0310 small{max-width:260px;color:var(--muted);font-size:9px;line-height:1.5}.product-import-drop-icon-v0310{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#fff;color:var(--brand);font-size:25px;box-shadow:0 8px 24px rgba(var(--brand-rgb),.12)}.product-import-upload-v0310 .btn{min-height:46px}
.product-import-format-v0310{overflow:hidden}.product-import-format-grid-v0310{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:4px 18px 18px}.product-import-format-grid-v0310 article{padding:15px;border-bottom:1px solid #edf1f3}.product-import-format-grid-v0310 article:nth-child(odd){border-right:1px solid #edf1f3}.product-import-format-grid-v0310 strong,.product-import-format-grid-v0310 code,.product-import-format-grid-v0310 span{display:block}.product-import-format-grid-v0310 strong{font-size:11px}.product-import-format-grid-v0310 code{margin:7px 0;padding:9px 10px;border-radius:9px;background:#f2f7f8;color:var(--brand-ink);font-family:Consolas,monospace;font-size:10px;white-space:normal;overflow-wrap:anywhere}.product-import-format-grid-v0310 span{color:var(--muted);font-size:9px;line-height:1.45;font-weight:700}
.product-import-preview-v0310{overflow:hidden}.product-import-preview-head-v0310{align-items:center}.product-import-preview-actions-v0310{display:flex;gap:8px}.product-import-preview-actions-v0310 form{margin:0}.product-import-kpis-v0310{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:16px 18px;border-bottom:1px solid var(--line);background:var(--surface-2)}.product-import-kpis-v0310>div{display:grid;grid-template-columns:1fr auto;align-items:end;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:#fff}.product-import-kpis-v0310 small{grid-column:1/-1;color:var(--muted);font-size:9px;font-weight:850}.product-import-kpis-v0310 strong{margin-top:4px;font-size:23px;color:var(--brand-ink)}.product-import-kpis-v0310 span{padding-bottom:3px;color:var(--muted);font-size:9px;font-weight:750}.product-import-kpis-v0310 .is-create{border-color:#cdebdc}.product-import-kpis-v0310 .is-update{border-color:#c9e2ef}.product-import-kpis-v0310 .is-error{border-color:#f1c4ca;background:#fff8f9}.product-import-kpis-v0310 .is-error strong{color:var(--danger)}.product-import-kpis-v0310 .is-ready{border-color:#cdebdc;background:#f6fcf9}.product-import-inline-alert-v0310{margin:14px 18px 0}.product-import-preview-table-wrap-v0310{max-height:650px;overflow:auto;padding:12px 16px 16px}.product-import-preview-table-v0310{min-width:1120px}.product-import-preview-table-v0310 thead{position:sticky;top:0;z-index:3;background:#fff}.product-import-preview-table-v0310 td{vertical-align:top}.product-import-preview-table-v0310 td strong,.product-import-preview-table-v0310 td small,.product-import-preview-table-v0310 td span{display:block}.product-import-preview-table-v0310 td small{margin-top:4px;color:var(--muted);font-size:8px;line-height:1.45}.product-import-preview-table-v0310 tr.has-error td{background:#fff8f9}.product-import-preview-table-v0310 tr.has-warning td{background:#fffcf3}.product-import-message-list-v0310{margin:0;padding-left:16px;font-size:9px;line-height:1.5}.product-import-message-list-v0310.is-error{color:var(--danger)}.product-import-message-list-v0310.is-warning{color:#a36a00}.product-import-ok-v0310{color:var(--success);font-size:10px;font-weight:900}
.product-import-result-strip-v0310{display:flex;gap:8px;flex-wrap:wrap;padding:14px 18px;border-bottom:1px solid var(--line);background:var(--surface-2)}.product-import-result-strip-v0310 span{padding:8px 10px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:9px;font-weight:800}.product-import-result-strip-v0310 b{color:var(--brand-ink);font-size:11px}.product-import-history-table-v0310 td small{display:block;margin-top:3px;color:var(--muted);font-size:8px}.product-import-history-table-v0310{min-width:900px}
@media(max-width:1100px){.product-import-hero-v0310{grid-template-columns:1fr}.product-import-upload-v0310{grid-template-columns:minmax(0,1fr) 220px;align-items:stretch}.product-import-dropzone-v0310{min-height:150px}.product-import-upload-v0310 .btn{height:100%}.product-import-rule-grid-v0310{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.product-import-toolbar-v0310{align-items:stretch}.product-import-toolbar-v0310 .toolbar-left,.product-import-toolbar-v0310 .toolbar-right{width:100%}.product-import-toolbar-v0310 .toolbar-right{display:grid;grid-template-columns:1fr 1fr}.product-import-hero-copy-v0310{padding:20px}.product-import-hero-copy-v0310 h2{font-size:23px}.product-import-rule-grid-v0310{grid-template-columns:1fr}.product-import-upload-v0310{grid-template-columns:1fr}.product-import-upload-v0310 .btn{height:auto}.product-import-format-grid-v0310{grid-template-columns:1fr;padding:4px 14px 14px}.product-import-format-grid-v0310 article:nth-child(odd){border-right:0}.product-import-preview-head-v0310{align-items:stretch}.product-import-preview-actions-v0310{display:grid;grid-template-columns:1fr 1fr}.product-import-preview-actions-v0310 .btn{width:100%}.product-import-kpis-v0310{grid-template-columns:1fr 1fr;padding:12px}.product-import-inline-alert-v0310{margin:12px}.product-import-preview-table-wrap-v0310{max-height:none;overflow:visible;padding:8px}.product-import-preview-table-v0310,.product-import-preview-table-v0310 tbody{display:block;min-width:0}.product-import-preview-table-v0310 thead{display:none}.product-import-preview-table-v0310 tr{display:grid;grid-template-columns:80px minmax(0,1fr);gap:7px;margin-bottom:9px;padding:10px;border:1px solid var(--line);border-radius:14px;background:#fff}.product-import-preview-table-v0310 td{display:block;padding:4px 0;border:0!important;background:transparent!important}.product-import-preview-table-v0310 td:before{content:attr(data-label);display:block;margin-bottom:3px;color:var(--muted);font-size:8px;font-weight:850}.product-import-preview-table-v0310 td:nth-child(3),.product-import-preview-table-v0310 td:nth-child(4),.product-import-preview-table-v0310 td:nth-child(5),.product-import-preview-table-v0310 td:nth-child(6),.product-import-preview-table-v0310 td:nth-child(7){grid-column:1/-1}.product-import-result-strip-v0310{padding:12px}.product-import-batch-detail-v0310 .table-wrap,.product-import-history-v0310 .table-wrap{overflow:auto}}
@media(max-width:430px){.product-import-toolbar-v0310 .toolbar-right{grid-template-columns:1fr}.product-import-preview-actions-v0310{grid-template-columns:1fr}.product-import-kpis-v0310{gap:7px}.product-import-kpis-v0310>div{padding:10px}.product-import-kpis-v0310 strong{font-size:20px}}
.product-import-preview-limit-v0310{margin:12px 18px 0;padding:9px 11px;border-radius:10px;background:#f3f7f8;color:var(--muted);font-size:9px;font-weight:800}

/* === v0.3.12 Separate back-office revenue entry page === */
.revenue-entry-toolbar-v0312{align-items:center}.revenue-entry-toolbar-v0312 .toolbar-right{display:flex;gap:8px;flex-wrap:wrap}
#revenue-entry-admin{scroll-margin-top:18px}
.revenue-admin-entry-v0311{overflow:hidden;border-color:rgba(var(--brand-rgb),.22);box-shadow:0 16px 42px rgba(31,48,59,.08)}
.revenue-admin-entry-head-v0311{align-items:flex-start;background:linear-gradient(135deg,#fff,var(--brand-soft))}
.revenue-admin-selector-v0311{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,.55fr) auto;gap:12px;align-items:end;padding:16px 18px;border-bottom:1px solid var(--line);background:#fff}
.revenue-admin-selector-v0311 .field{gap:5px}.revenue-admin-selector-v0311 .field>span{color:var(--muted);font-size:10px;font-weight:850}
.revenue-admin-selector-v0311 .btn{min-height:46px}
.revenue-admin-snapshot-v0311{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;background:var(--surface-2);border-bottom:1px solid var(--line)}
.revenue-admin-snapshot-v0311>div:first-child{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:5px 9px;min-width:0}.revenue-admin-snapshot-v0311>div:first-child .badge{grid-row:1/3}.revenue-admin-snapshot-v0311 strong,.revenue-admin-snapshot-v0311 small{display:block}.revenue-admin-snapshot-v0311>div:first-child>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--brand-ink);font-size:14px}.revenue-admin-snapshot-v0311 small{color:var(--muted);font-size:9px;font-weight:750}
.revenue-admin-snapshot-side-v0311{display:flex;align-items:center;gap:12px;white-space:nowrap}.revenue-admin-snapshot-side-v0311>strong{color:var(--brand-ink);font-size:25px;font-variant-numeric:tabular-nums}
.revenue-admin-rule-v0311{margin:14px 18px 0;padding:11px 13px;border:1px solid #f0d9a9;border-radius:12px;background:#fffaf0;color:#775c23;font-size:10px;line-height:1.55}.revenue-admin-rule-v0311 b{color:#65490b}
.revenue-admin-form-v0311{padding:16px 18px 18px}.revenue-admin-point-grid-v0311{grid-template-columns:repeat(2,minmax(0,1fr))}.revenue-admin-point-card-v0311{border-color:#e4ecef;box-shadow:none;background:#fff}.revenue-admin-submit-v0311{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
@media(max-width:980px){.revenue-admin-selector-v0311{grid-template-columns:1fr 1fr}.revenue-admin-selector-v0311 .btn{grid-column:1/-1}.revenue-admin-point-grid-v0311{grid-template-columns:1fr}}
@media(max-width:760px){.revenue-admin-entry-head-v0311{align-items:stretch}.revenue-admin-entry-head-v0311>.badge{align-self:flex-start}.revenue-admin-selector-v0311{grid-template-columns:1fr;padding:14px}.revenue-admin-selector-v0311 .btn{grid-column:auto;width:100%}.revenue-admin-snapshot-v0311{align-items:flex-start;flex-direction:column;padding:14px}.revenue-admin-snapshot-side-v0311{width:100%;justify-content:space-between}.revenue-admin-rule-v0311{margin:12px 14px 0}.revenue-admin-form-v0311{padding:14px}.revenue-admin-submit-v0311{position:sticky;bottom:80px;z-index:20;padding:9px;border:1px solid rgba(var(--brand-rgb),.16);border-radius:16px;background:rgba(255,255,255,.96);box-shadow:0 10px 30px rgba(29,47,59,.12);backdrop-filter:blur(10px)}.revenue-entry-toolbar-v0312 .toolbar-right{display:grid;grid-template-columns:1fr 1fr}}
@media(max-width:430px){.revenue-admin-snapshot-v0311>div:first-child{grid-template-columns:1fr}.revenue-admin-snapshot-v0311>div:first-child .badge{grid-row:auto;justify-self:start}.revenue-admin-snapshot-side-v0311{display:grid;gap:7px}.revenue-admin-snapshot-side-v0311>strong{font-size:22px}.revenue-admin-form-v0311{padding-left:10px;padding-right:10px}.revenue-entry-toolbar-v0312 .toolbar-right{grid-template-columns:1fr}}


/* v0.3.16 — employee accounts and activity history */
.force-password-banner{display:flex;align-items:flex-start;gap:14px;padding:18px 20px;margin-bottom:18px;border:1px solid #f0c46c;border-radius:20px;background:linear-gradient(120deg,#fff8e7,#fff);box-shadow:var(--shadow)}
.force-password-icon{flex:0 0 40px;width:40px;height:40px;border-radius:13px;display:flex;align-items:center;justify-content:center;background:#f5a623;color:#fff;font-size:24px;font-weight:900}
.force-password-banner strong,.force-password-banner span{display:block}.force-password-banner strong{font-size:17px}.force-password-banner span{margin-top:4px;color:var(--muted);line-height:1.55}.force-password-card{max-width:720px;width:100%;margin:0 auto}
.employee-metrics .metric{min-height:130px}.section-space-sm{margin-top:7px}.card-head-inline{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.employee-form{display:grid;gap:15px}.employee-password-row{align-items:end}.employee-generate-field{align-self:end}.employee-password-help{align-self:end;padding:12px 14px;border-radius:14px;background:var(--brand-soft);color:var(--brand-ink);font-size:12px;line-height:1.55}.employee-form-actions{display:flex;justify-content:flex-end}.employee-active-check{max-width:520px}.employee-filter{display:grid;grid-template-columns:minmax(240px,1fr) minmax(190px,.65fr) minmax(170px,.55fr) auto auto;gap:10px;align-items:center}.employee-table td:first-child strong{display:block;font-size:15px}.employee-mobile-list{padding:0 14px 16px}.employee-mobile-card{padding:15px;border:1px solid var(--line);border-radius:17px;background:#fff;margin-bottom:10px}.employee-mobile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.employee-mobile-head strong,.employee-mobile-head span{display:block}.employee-mobile-head strong{font-size:16px}.employee-mobile-head>div>span{font-size:12px;color:var(--muted);margin-top:3px}.employee-mobile-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:12px}.employee-mobile-warning{margin:10px 0 0;padding:9px 11px;font-size:12px}.employee-detail-head{align-items:flex-start}.employee-detail-actions{display:flex;gap:8px;flex-wrap:wrap}.back-link{font-size:12px;font-weight:850;color:var(--brand-ink)}.employee-account-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.employee-account-strip>div{padding:12px 13px;border-radius:14px;background:var(--surface-2)}.employee-account-strip span,.employee-account-strip strong{display:block}.employee-account-strip span{font-size:11px;color:var(--muted)}.employee-account-strip strong{font-size:13px;margin-top:5px;overflow-wrap:anywhere}.activity-timeline{position:relative;display:grid;gap:0}.activity-item{position:relative;display:grid;grid-template-columns:24px 1fr;gap:10px;padding:0 0 18px}.activity-item:not(:last-child):before{content:'';position:absolute;left:7px;top:18px;bottom:0;width:2px;background:var(--line)}.activity-dot{width:16px;height:16px;border-radius:50%;background:var(--brand);border:4px solid var(--brand-soft);box-shadow:0 0 0 1px rgba(var(--brand-rgb),.22);z-index:1}.activity-main{padding:0 0 2px}.activity-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.activity-title strong{font-size:14px}.activity-title span{font-size:11px;color:var(--muted);white-space:nowrap}.activity-description{margin-top:5px;line-height:1.5}.activity-meta{margin-top:5px;font-size:11px;color:var(--muted)}.pagination{display:flex;align-items:center;justify-content:space-between;gap:10px}.pagination>div{display:flex;gap:7px}.employee-modal-backdrop{position:fixed;inset:0;z-index:1300;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(19,31,38,.48);backdrop-filter:blur(4px)}.employee-modal-backdrop[hidden]{display:none}.employee-modal{width:min(520px,100%);max-height:calc(100vh - 36px);overflow:auto;border-radius:22px;background:#fff;border:1px solid var(--line);box-shadow:0 30px 80px rgba(16,34,43,.3);padding:20px}.employee-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:15px}.employee-modal-close{width:36px;height:36px;border:0;border-radius:12px;background:var(--surface-2);font-size:24px;cursor:pointer}.employee-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.modal-open{overflow:hidden}
@media(max-width:980px){.employee-filter{grid-template-columns:1fr 1fr}.employee-filter .search{grid-column:1/-1;width:100%}.employee-account-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.force-password-banner{padding:15px;border-radius:17px}.force-password-icon{width:36px;height:36px;flex-basis:36px}.employee-filter{grid-template-columns:1fr}.employee-filter .search{grid-column:auto}.employee-filter .btn{width:100%}.card-head-inline,.employee-detail-head{display:block}.card-head-inline>.btn,.employee-detail-actions{margin-top:12px}.employee-detail-actions .btn{flex:1}.employee-account-strip{grid-template-columns:1fr 1fr}.activity-title{display:block}.activity-title span{margin-top:3px;display:block}.employee-modal{padding:16px;border-radius:18px}.employee-modal-actions{display:grid;grid-template-columns:1fr 1fr}.employee-password-help{margin-top:4px}.employee-form-actions .btn{width:100%}}
@media(max-width:430px){.employee-account-strip{grid-template-columns:1fr}.employee-mobile-actions{grid-template-columns:1fr}.employee-detail-actions{display:grid;grid-template-columns:1fr}.employee-modal-actions{grid-template-columns:1fr}}
.check-option{display:flex;align-items:flex-start;gap:10px;padding:12px 13px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2);cursor:pointer}.check-option input{width:18px;height:18px;margin-top:2px;accent-color:var(--brand)}.check-option span,.check-option strong,.check-option small{display:block}.check-option small{margin-top:3px;color:var(--muted);line-height:1.45}.empty-state{padding:28px 18px;text-align:center;color:var(--muted)}.empty-state strong,.empty-state span{display:block}.empty-state strong{color:var(--text);font-size:16px}.empty-state span{margin-top:5px;line-height:1.55}


/* v0.3.17 login branding + favicon visuals */
.brand-mark-logo{padding:0;background:#fff;overflow:hidden;box-shadow:0 12px 30px rgba(10,122,70,.18),inset 0 1px 0 rgba(255,255,255,.7)}
.brand-mark-logo img{width:100%;height:100%;object-fit:cover;display:block}
.login-page-v0317{background:linear-gradient(135deg,#F8FAFC 0%,#EEF4F6 55%,#E9F2EE 100%)}
.login-hero-v0317{background:radial-gradient(circle at 12% 16%,rgba(255,155,45,.16),transparent 24%),radial-gradient(circle at 86% 18%,rgba(10,122,70,.16),transparent 25%),linear-gradient(145deg,#0B6B3F,#116A43 38%,#123F34 100%);position:relative;overflow:hidden}
.login-hero-v0317:after{content:"";position:absolute;right:-120px;bottom:-140px;width:360px;height:360px;border-radius:50%;background:rgba(255,255,255,.06);filter:blur(2px)}
.brand-hero-v0317{position:relative;z-index:2}.brand-hero-v0317 .brand-mark{width:56px;height:56px;border-radius:18px}.brand-hero-v0317 .brand-title{font-size:28px}.brand-hero-v0317 .brand-sub{color:rgba(255,255,255,.78)}
.login-hero-main{position:relative;z-index:2;display:flex;flex-direction:column;gap:18px}
.login-logo-full-v0317{width:min(560px,100%);height:auto;display:block;filter:drop-shadow(0 12px 30px rgba(0,0,0,.15))}
.login-feature-list-v0317{display:flex;flex-wrap:wrap;gap:10px}
.login-feature-list-v0317 span{padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.12);font-size:13px;font-weight:700}
.login-panel-v0317{background:transparent}
.login-box-v0317{backdrop-filter:blur(6px);border-radius:32px;box-shadow:0 24px 60px rgba(16,24,40,.12)}
.login-panel-logo-v0317{width:88px;height:88px;margin:0 auto 14px;border-radius:24px;overflow:hidden;box-shadow:0 12px 30px rgba(10,122,70,.16)}
.login-panel-logo-v0317 img{width:100%;height:100%;display:block;object-fit:cover}
.login-help-v0317{text-align:center;margin-top:14px;color:var(--muted)}
.metric-revenue-v0317 .metric-icon{color:#0A7A46}.metric-expense-v0317 .metric-icon{color:#FF7D22}
@media(max-width:1180px){.login-logo-full-v0317{width:min(420px,100%)}}
@media(max-width:900px){.login-panel-logo-v0317{display:none}.login-brand-mobile-v0317{display:flex!important}.brand-hero-v0317 .brand-title{font-size:24px}.login-hero-v0317 h1{font-size:clamp(34px,7vw,52px)}}
@media(max-width:760px){.login-page-v0317{padding:16px}.login-box-v0317{box-shadow:0 16px 40px rgba(16,24,40,.1)}.login-panel-logo-v0317{display:none}}


/* v0.3.18: refined login screen + sidebar brand logo */
.brand-sidebar-v0318{display:block;padding:0 4px 18px;text-decoration:none}
.sidebar-brand-card-v0318{display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.96);border-radius:20px;padding:14px 14px 12px;box-shadow:0 14px 32px rgba(12,30,48,.18),inset 0 1px 0 rgba(255,255,255,.65)}
.sidebar-brand-card-v0318 img{display:block;width:100%;max-width:180px;height:auto}
.brand-sub-v0318{padding:10px 8px 0;text-align:center;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--nav-muted)}
.login-page-v0318{position:relative;min-height:100vh;background:linear-gradient(135deg,#eef5f1 0%,#f7fafc 48%,#fff4ea 100%);padding:32px;overflow:hidden}
.login-shell-v0318{position:relative;z-index:2;max-width:1320px;min-height:calc(100vh - 64px);margin:0 auto;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(380px,.85fr);background:rgba(255,255,255,.76);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.6);border-radius:36px;box-shadow:0 24px 80px rgba(25,47,89,.12)}
.login-showcase-v0318{position:relative;padding:56px 58px 52px;background:linear-gradient(150deg,#0b7b46 0%,#0e6c53 40%,#173c4d 100%);border-radius:36px 0 0 36px;color:#fff;overflow:hidden}
.login-showcase-v0318:before,.login-showcase-v0318:after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.08)}
.login-showcase-v0318:before{width:320px;height:320px;top:-80px;right:-80px}
.login-showcase-v0318:after{width:260px;height:260px;left:-70px;bottom:-80px}
.login-showcase-brand-v0318,.login-showcase-copy-v0318,.login-showcase-grid-v0318,.login-showcase-chips-v0318{position:relative;z-index:2}
.login-showcase-logo-v0318{display:block;width:min(420px,100%);height:auto;background:rgba(255,255,255,.96);padding:16px 20px;border-radius:24px;box-shadow:0 18px 42px rgba(0,0,0,.16)}
.login-showcase-kicker-v0318{display:inline-flex;margin-top:18px;padding:9px 14px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);font-size:12px;letter-spacing:.08em;text-transform:uppercase}
.login-showcase-copy-v0318{margin-top:30px}.login-showcase-copy-v0318 h1{margin:0 0 14px;font-size:clamp(42px,5vw,68px);line-height:1.02;letter-spacing:-.04em}.login-showcase-copy-v0318 p{margin:0;max-width:650px;color:rgba(255,255,255,.82);font-size:18px;line-height:1.7}
.login-showcase-grid-v0318{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:34px}
.login-feature-card-v0318{padding:18px 18px 16px;border-radius:22px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(4px);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.login-feature-card-v0318 strong{display:block;font-size:18px;margin-bottom:8px}.login-feature-card-v0318 span{display:block;font-size:13px;line-height:1.65;color:rgba(255,255,255,.8)}
.login-showcase-chips-v0318{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.login-showcase-chips-v0318 span{padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.12);font-size:13px;font-weight:700}
.login-panel-v0318{display:flex;align-items:center;justify-content:center;padding:34px}
.login-box-v0318{width:min(460px,100%);padding:34px 32px 30px;border-radius:30px;background:rgba(255,255,255,.98);border:1px solid rgba(223,232,238,.95);box-shadow:0 18px 48px rgba(16,24,40,.08)}
.login-brand-mobile-v0318{display:none;margin-bottom:18px}.login-brand-mobile-v0318 img{display:block;width:min(240px,100%);height:auto;margin:0 auto}
.login-card-mark-v0318{width:86px;height:86px;margin:0 auto 18px;border-radius:28px;background:#fff;box-shadow:0 16px 36px rgba(10,122,70,.12);padding:8px}.login-card-mark-v0318 img{width:100%;height:100%;object-fit:contain;display:block}
.login-card-head-v0318{text-align:center;margin-bottom:18px}.login-card-head-v0318 h2{margin:0 0 8px;font-size:32px;line-height:1.1;color:#17324d}.login-card-head-v0318 p{margin:0;color:var(--muted);font-size:14px;line-height:1.6}
.login-box-v0318 .field{margin-top:16px}.login-box-v0318 .field label{display:block;margin-bottom:8px;font-weight:700;color:#18354d}.login-box-v0318 .input{min-height:52px;border-radius:16px;border:1px solid #dbe6ed;background:#fbfdfe;box-shadow:none}.login-box-v0318 .input:focus{border-color:rgba(var(--brand-rgb),.42);background:#fff;box-shadow:0 0 0 4px rgba(var(--brand-rgb),.12)}
.login-submit-v0318{margin-top:20px;min-height:54px;border-radius:16px;font-size:16px;font-weight:800}
.login-help-block-v0318{margin-top:18px;padding:16px 18px;border-radius:18px;background:linear-gradient(135deg,#f4faf7,#fff8f2);border:1px solid #e7eee9}.login-help-block-v0318 strong{display:block;color:#17324d;margin-bottom:6px}.login-help-block-v0318 span{display:block;color:var(--muted);font-size:13px;line-height:1.65}
.login-orb{position:absolute;border-radius:50%;filter:blur(8px);opacity:.28;z-index:1}.login-orb-a{width:220px;height:220px;left:-40px;top:90px;background:#ff8a1f}.login-orb-b{width:280px;height:280px;right:8%;bottom:20px;background:#0a7a46}
@media(max-width:1180px){.login-shell-v0318{grid-template-columns:1fr}.login-showcase-v0318{border-radius:36px 36px 0 0;padding:42px 42px 32px}.login-showcase-grid-v0318{grid-template-columns:1fr 1fr 1fr}.login-panel-v0318{padding:30px}.login-showcase-copy-v0318 h1{font-size:clamp(36px,6vw,54px)}}
@media(max-width:900px){.login-page-v0318{padding:18px}.login-shell-v0318{min-height:auto;border-radius:28px}.login-showcase-v0318{display:none}.login-panel-v0318{padding:18px}.login-box-v0318{padding:28px 22px 24px;border-radius:26px}.login-brand-mobile-v0318{display:block}.login-card-mark-v0318{width:78px;height:78px;border-radius:24px}.sidebar-brand-card-v0318 img{max-width:170px}}
@media(max-width:480px){.login-page-v0318{padding:12px}.login-panel-v0318{padding:12px}.login-box-v0318{padding:24px 18px 20px;border-radius:22px}.login-card-head-v0318 h2{font-size:28px}.brand-sidebar-v0318{padding-bottom:16px}.sidebar-brand-card-v0318{border-radius:18px;padding:12px}.sidebar-brand-card-v0318 img{max-width:158px}}


/* v0.3.19: login layout balance, compact sidebar logo, future expense state */
.login-page.login-page-v0319{display:flex!important;grid-template-columns:none!important;align-items:center;justify-content:center;width:100%;min-height:100vh;padding:28px;background:linear-gradient(135deg,#edf5f1 0%,#f8fafc 52%,#fff4e9 100%)}
.login-shell-v0319{width:min(1420px,calc(100vw - 56px));height:min(860px,calc(100vh - 56px));min-height:700px;max-height:860px;margin:0;grid-template-columns:minmax(0,58fr) minmax(390px,42fr);overflow:hidden}
.login-showcase-v0319{padding:38px 46px 34px;display:flex;flex-direction:column;justify-content:center}
.login-showcase-v0319 .login-showcase-logo-v0318{width:min(360px,76%);padding:12px 16px;border-radius:20px}
.login-showcase-v0319 .login-showcase-kicker-v0318{margin-top:13px;padding:7px 12px}
.login-showcase-v0319 .login-showcase-copy-v0318{margin-top:24px}
.login-showcase-v0319 .login-showcase-copy-v0318 h1{font-size:clamp(40px,4.2vw,62px);margin-bottom:12px}
.login-showcase-v0319 .login-showcase-copy-v0318 p{font-size:16px;line-height:1.65}
.login-showcase-v0319 .login-showcase-grid-v0318{gap:12px;margin-top:25px}
.login-showcase-v0319 .login-feature-card-v0318{padding:15px 15px 14px;border-radius:18px}
.login-showcase-v0319 .login-feature-card-v0318 strong{font-size:16px;margin-bottom:5px}
.login-showcase-v0319 .login-feature-card-v0318 span{font-size:12px;line-height:1.5}
.login-showcase-v0319 .login-showcase-chips-v0318{margin-top:18px;gap:8px}
.login-showcase-v0319 .login-showcase-chips-v0318 span{padding:8px 11px;font-size:12px}
.login-panel-v0319{padding:30px;min-width:0}
.login-box-v0319{width:min(440px,100%);padding:30px 30px 26px}
.login-box-v0319 .login-card-mark-v0319{width:74px;height:74px;margin-bottom:14px;border-radius:23px}
.login-box-v0319 .login-card-head-v0318{margin-bottom:14px}
.login-box-v0319 .login-card-head-v0318 h2{font-size:29px}
.login-box-v0319 .login-help-block-v0318{padding:13px 15px;margin-top:15px}
.brand-sidebar-v0319{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:6px 8px 15px;gap:2px}
.sidebar-logo-v0319{display:block;width:min(184px,100%);height:auto;max-height:72px;object-fit:contain;filter:drop-shadow(0 1px 0 rgba(255,255,255,.55)) drop-shadow(0 5px 12px rgba(0,0,0,.15))}
.brand-sub-v0319{padding:3px 0 0;font-size:10px;letter-spacing:.14em;color:rgba(255,255,255,.68)}
.metric-disabled-v0319{position:relative;background:linear-gradient(145deg,#f7f9fb,#eef2f5);border-style:dashed;box-shadow:none;opacity:.76}
.metric-disabled-v0319:before{background:#9aa9b4!important}
.metric-soon-badge-v0319{position:absolute;right:14px;top:13px;font-size:10px}
.metric-disabled-v0319 .metric-value{font-size:30px;color:#789}
.metric-expense-icon-v0319{filter:grayscale(1);opacity:.55}
.revenue-currency-icon-v0319{font-family:Tahoma,"Noto Sans Thai",Arial,sans-serif;font-weight:900}
@media(max-height:790px) and (min-width:901px){.login-shell-v0319{height:calc(100vh - 32px);min-height:620px}.login-page.login-page-v0319{padding:16px}.login-showcase-v0319{padding:28px 38px 25px}.login-showcase-v0319 .login-showcase-copy-v0318{margin-top:18px}.login-showcase-v0319 .login-showcase-copy-v0318 h1{font-size:42px}.login-showcase-v0319 .login-showcase-grid-v0318{margin-top:18px}.login-showcase-v0319 .login-showcase-chips-v0318{margin-top:12px}.login-box-v0319{padding:24px 26px 22px}.login-box-v0319 .field{margin-top:12px}.login-box-v0319 .login-help-block-v0318{margin-top:12px}.login-box-v0319 .login-card-mark-v0319{width:64px;height:64px}}
@media(max-width:1180px){.login-shell-v0319{height:auto;max-height:none;min-height:calc(100vh - 44px);grid-template-columns:1fr}.login-showcase-v0319{border-radius:30px 30px 0 0;padding:34px 38px}.login-showcase-v0319 .login-showcase-grid-v0318{grid-template-columns:repeat(3,minmax(0,1fr))}.login-panel-v0319{padding:24px}}
@media(max-width:900px){.login-page.login-page-v0319{display:flex!important;padding:12px;min-height:100vh}.login-shell-v0319{display:block;width:100%;min-height:auto;border-radius:26px}.login-panel-v0319{padding:12px}.login-box-v0319{padding:24px 18px 20px}.login-brand-mobile-v0319{display:block;margin:0 auto 14px}.login-brand-mobile-v0319 img{width:min(220px,72vw)}.login-card-mark-v0319{display:none!important}.login-box-v0319 .login-card-head-v0318 h2{font-size:27px}.login-box-v0319 .input{min-height:50px}.login-box-v0319 .login-help-block-v0318{padding:11px 13px}.login-box-v0319 .login-help-block-v0318 span{font-size:12px;line-height:1.5}.sidebar-logo-v0319{max-height:66px;width:174px}}
@media(max-width:480px){.login-page.login-page-v0319{padding:8px}.login-panel-v0319{padding:8px}.login-box-v0319{border-radius:22px}.login-brand-mobile-v0319 img{width:min(205px,70vw)}.brand-sub-v0319{font-size:9px}}


/* v0.3.20: mobile login shows only the login card */
@media(max-width:900px){
 .login-page.login-page-v0319{display:flex!important;align-items:center!important;justify-content:center!important;min-height:100vh!important;padding:14px!important}
 .login-shell-v0319{display:block!important;width:100%!important;max-width:460px!important;min-height:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important;overflow:visible!important}
 .login-showcase-v0318,.login-showcase-v0319{display:none!important}
 .login-panel-v0319{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:calc(100vh - 28px)!important;padding:0!important;background:transparent!important}
 .login-box-v0319{width:100%!important;max-width:430px!important;margin:0 auto!important;padding:28px 22px 24px!important}
 .login-brand-mobile-v0318,.login-brand-mobile-v0319{display:none!important}
 .login-card-mark-v0318.login-card-mark-v0319{display:block!important;width:76px!important;height:76px!important;margin:0 auto 16px!important;border-radius:24px!important}
 .login-orb-a{left:-90px!important;top:10%!important}
 .login-orb-b{right:-110px!important;bottom:4%!important}
}
@media(max-width:480px){
 .login-page.login-page-v0319{padding:10px!important}
 .login-panel-v0319{min-height:calc(100vh - 20px)!important}
 .login-box-v0319{padding:24px 18px 20px!important;border-radius:22px!important}
 .login-card-mark-v0318.login-card-mark-v0319{width:68px!important;height:68px!important;border-radius:21px!important;margin-bottom:14px!important}
 .login-help-block-v0318{margin-top:14px!important}
}


/* v0.3.21 payment report groups */
.sales-point-settings-v0321{padding:16px 0}.sales-point-settings-v0321>.sales-point-row>div>small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.payment-method-setting-list-v0321{display:grid;gap:9px;margin-top:12px}.payment-method-setting-card-v0321{padding:12px;border:1px solid var(--line);border-radius:15px;background:var(--surface-2)}
.payment-method-setting-title-v0321{display:flex;align-items:center;justify-content:space-between;gap:10px}.payment-method-setting-title-v0321 form{margin:0}
.payment-group-form-v0321{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:8px;margin-top:10px}.payment-group-form-v0321 label>span{display:block;color:var(--muted);font-size:10px;font-weight:800;margin-bottom:5px}.payment-group-form-v0321 .select,.payment-group-form-v0321 .input{min-height:38px;font-size:12px;padding:8px 10px}
.payment-group-custom-v0321[hidden]{display:none!important}.payment-method-add-v0321{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr) minmax(0,.9fr) auto;gap:8px;align-items:center;margin-top:12px}.payment-method-add-v0321 .input,.payment-method-add-v0321 .select{min-height:40px;font-size:12px}
@media(max-width:1280px){.locations-grid-v0321{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.locations-grid-v0321{grid-template-columns:1fr}.payment-group-form-v0321,.payment-method-add-v0321{grid-template-columns:1fr}.payment-group-form-v0321 .btn,.payment-method-add-v0321 .btn{width:100%}}

/* v0.3.26: product setup workspace for initial bulk configuration */
.product-setup-head-v0326{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(135deg,var(--surface),var(--brand-soft));box-shadow:var(--shadow)}
.product-setup-head-v0326 h2{margin:9px 0 6px;font-size:25px;line-height:1.2}.product-setup-head-v0326 p{margin:0;color:var(--muted);font-size:13px}.product-setup-head-v0326 .toolbar-right{flex-wrap:wrap;justify-content:flex-end}
.product-setup-metrics-v0326{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.product-setup-metrics-v0326 a{display:flex;flex-direction:column;gap:7px;padding:15px 16px;border:1px solid var(--line);border-radius:17px;background:var(--surface);box-shadow:var(--shadow);transition:.18s ease}.product-setup-metrics-v0326 a:hover{transform:translateY(-2px);border-color:rgba(var(--brand-rgb),.35)}.product-setup-metrics-v0326 span{font-size:11px;color:var(--muted);font-weight:700}.product-setup-metrics-v0326 strong{font-size:25px;color:var(--text)}.product-setup-metrics-v0326 .is-good{background:linear-gradient(135deg,#effbf5,#fff)}.product-setup-metrics-v0326 .is-good strong{color:#087247}
.product-setup-filter-grid-v0326{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(190px,1fr) minmax(190px,1fr) minmax(150px,.7fr) auto;gap:9px}.product-setup-filter-v0326{padding:15px}
.product-setup-selection-v0326{position:sticky;top:86px;z-index:35;display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px;padding:13px 16px;border:1px solid rgba(var(--brand-rgb),.3);border-radius:17px;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);box-shadow:0 12px 35px rgba(26,48,70,.14)}.product-setup-selection-v0326[hidden]{display:none!important}.product-setup-selection-v0326 strong,.product-setup-selection-v0326 span{display:block}.product-setup-selection-v0326 span{font-size:11px;color:var(--muted);margin-top:3px}.product-setup-selection-v0326>div:last-child{display:flex;gap:8px}
.product-setup-card-v0326{overflow:visible}.product-setup-table-head-v0326{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 18px;border-bottom:1px solid var(--line)}.product-setup-table-head-v0326 strong,.product-setup-table-head-v0326 span{display:block}.product-setup-table-head-v0326 span{font-size:11px;color:var(--muted);margin-top:2px}.product-setup-table-head-v0326 label{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700}
.product-setup-table-v0326{min-width:1460px}.product-setup-table-v0326 th{position:sticky;top:0;z-index:3;background:var(--surface);font-size:11px;white-space:nowrap}.product-setup-table-v0326 td{vertical-align:top;padding:13px 10px}.product-setup-table-v0326 tbody tr{transition:.16s ease}.product-setup-table-v0326 tbody tr.is-dirty{background:linear-gradient(90deg,rgba(var(--brand-rgb),.07),transparent)}.product-setup-table-v0326 tbody tr.is-dirty td:first-child{box-shadow:inset 4px 0 0 var(--brand)}.product-setup-table-v0326 tbody tr.is-complete .setup-status-hint-v0326{color:#07814f}.product-setup-table-v0326 tbody tr.is-incomplete .setup-status-hint-v0326{color:#bf6810}.setup-check-col{width:34px;text-align:center}
.product-setup-name-v0326{display:grid;grid-template-columns:44px minmax(170px,1fr);gap:9px;align-items:start}.product-setup-thumb-v0326{width:44px;height:44px;border-radius:12px}.setup-inline-name-v0326,.setup-inline-sku-v0326{display:block;width:100%;border:0;background:transparent;padding:0;color:var(--text);font-family:inherit}.setup-inline-name-v0326{font-size:13px;font-weight:850;line-height:1.35}.setup-inline-sku-v0326{font-size:10px;color:var(--muted);margin-top:4px}.setup-inline-name-v0326:focus,.setup-inline-sku-v0326:focus{outline:0;background:var(--surface-2);border-radius:6px;padding:3px 5px}.setup-status-hint-v0326{display:block;font-size:9px;font-weight:800;margin-top:5px}
.setup-compact-control-v0326{min-width:170px;min-height:39px;font-size:11px;padding:8px 9px}.setup-supplier-fields-v0326{display:grid;gap:6px}.setup-supplier-fields-v0326 .select{min-width:170px}
.setup-picker-v0326{position:relative;min-width:170px}.setup-picker-v0326>summary{list-style:none;cursor:pointer;min-height:39px;display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border:1px solid var(--line);border-radius:11px;background:var(--surface);font-size:11px;font-weight:750}.setup-picker-v0326>summary::-webkit-details-marker{display:none}.setup-picker-v0326>summary:after{content:'⌄';font-size:14px;color:var(--muted)}.setup-picker-v0326[open]>summary{border-color:rgba(var(--brand-rgb),.45);box-shadow:0 0 0 3px rgba(var(--brand-rgb),.08)}.setup-picker-panel-v0326{position:absolute;left:0;top:calc(100% + 6px);z-index:20;width:300px;max-height:330px;overflow:auto;padding:10px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 18px 45px rgba(26,48,70,.18)}.setup-picker-panel-v0326>label{display:flex;align-items:center;gap:8px;padding:8px 7px;border-radius:9px;font-size:11px}.setup-picker-panel-v0326>label:hover{background:var(--surface-2)}.setup-picker-title-v0326{padding:4px 7px 8px;color:var(--muted);font-size:10px;font-weight:800}
.setup-unit-panel-v0326{width:430px}.setup-unit-legend-v0326,.setup-unit-option-v0326{display:grid;grid-template-columns:minmax(130px,1fr) 88px 130px;align-items:center;gap:8px}.setup-unit-legend-v0326{padding:4px 7px 7px;font-size:9px;color:var(--muted);font-weight:800}.setup-unit-option-v0326{padding:7px;border-radius:9px;border-top:1px solid var(--line)}.setup-unit-option-v0326:first-of-type{border-top:0}.setup-unit-option-v0326>label{display:flex;align-items:center;gap:6px;font-size:10px}.setup-unit-option-v0326>label:first-child{font-size:11px;font-weight:750}.setup-unit-option-v0326 input:disabled{opacity:.35}
.setup-switch-v0326{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:750;white-space:nowrap}.setup-row-action-v0326{min-width:105px}.setup-row-action-v0326 .btn{width:100%;font-size:10px}.setup-detail-link-v0326{display:block;text-align:center;margin-top:7px;font-size:10px;color:var(--brand-ink);font-weight:750}
.product-setup-savebar-v0326{position:sticky;bottom:18px;z-index:34;display:flex;align-items:center;justify-content:space-between;gap:14px;margin:16px auto 0;max-width:760px;padding:13px 15px;border:1px solid rgba(var(--brand-rgb),.28);border-radius:17px;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);box-shadow:0 18px 42px rgba(26,48,70,.2)}.product-setup-savebar-v0326[hidden]{display:none!important}.product-setup-savebar-v0326 strong,.product-setup-savebar-v0326 span{display:block}.product-setup-savebar-v0326 span{font-size:10px;color:var(--muted);margin-top:2px}
.product-setup-bulk-dialog-v0326{max-width:1000px}.setup-copy-section-v0326{background:linear-gradient(135deg,var(--brand-soft),#fff)}.setup-copy-checks-v0326{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.setup-copy-checks-v0326 label{display:flex;align-items:center;gap:6px;padding:9px 11px;border:1px solid var(--line);border-radius:11px;background:var(--surface);font-size:11px;font-weight:750}.setup-bulk-inline-v0326{display:grid;grid-template-columns:150px minmax(0,1fr);gap:8px}.setup-bulk-unit-list-v0326{border:1px solid var(--line);border-radius:14px;padding:8px;max-height:340px;overflow:auto}.product-setup-supplier-bulk-grid-v0326{display:grid;grid-template-columns:180px minmax(0,1fr) minmax(0,1fr);gap:9px}
@media(max-width:1400px){.product-setup-metrics-v0326{grid-template-columns:repeat(3,minmax(0,1fr))}.product-setup-filter-grid-v0326{grid-template-columns:repeat(2,minmax(0,1fr))}.product-setup-filter-grid-v0326 .btn{grid-column:span 2}}
@media(max-width:900px){.product-setup-head-v0326{display:block;padding:18px}.product-setup-head-v0326 .toolbar-right{margin-top:14px;justify-content:flex-start}.product-setup-head-v0326 .toolbar-right .btn{flex:1}.product-setup-metrics-v0326{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product-setup-filter-grid-v0326{grid-template-columns:1fr}.product-setup-filter-grid-v0326 .btn{grid-column:auto}.product-setup-selection-v0326{top:76px;display:block}.product-setup-selection-v0326>div:last-child{margin-top:10px}.product-setup-selection-v0326 .btn{flex:1}.product-setup-table-v0326{min-width:0}.product-setup-table-v0326 thead{display:none}.product-setup-table-v0326,.product-setup-table-v0326 tbody,.product-setup-table-v0326 tr,.product-setup-table-v0326 td{display:block;width:100%}.product-setup-table-v0326 tbody{padding:10px}.product-setup-table-v0326 tbody tr{position:relative;margin-bottom:12px;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}.product-setup-table-v0326 tbody tr.is-dirty{border-color:rgba(var(--brand-rgb),.42)}.product-setup-table-v0326 tbody tr.is-dirty td:first-child{box-shadow:none}.product-setup-table-v0326 td{display:grid;grid-template-columns:105px minmax(0,1fr);gap:8px;padding:8px 0;border:0}.product-setup-table-v0326 td:before{content:attr(data-label);font-size:10px;color:var(--muted);font-weight:800;padding-top:9px}.product-setup-table-v0326 td.setup-check-col{position:absolute;right:12px;top:12px;display:block;width:auto;padding:0;z-index:2}.product-setup-table-v0326 td.setup-check-col:before,.product-setup-table-v0326 td.setup-row-action-v0326:before{display:none}.product-setup-table-v0326 td.setup-row-action-v0326{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:12px;border-top:1px solid var(--line)}.setup-detail-link-v0326{display:flex;align-items:center;justify-content:center;margin:0;border:1px solid var(--line);border-radius:11px}.product-setup-name-v0326{padding-right:30px}.setup-compact-control-v0326,.setup-supplier-fields-v0326 .select,.setup-picker-v0326{min-width:0;width:100%}.setup-picker-panel-v0326{position:relative;top:auto;width:100%;max-height:280px;margin-top:6px;box-shadow:none}.setup-unit-panel-v0326{width:100%}.product-setup-savebar-v0326{bottom:90px}.product-setup-supplier-bulk-grid-v0326,.setup-bulk-inline-v0326{grid-template-columns:1fr}.product-setup-table-head-v0326{align-items:flex-start}}
@media(max-width:480px){.product-setup-metrics-v0326{grid-template-columns:1fr 1fr}.product-setup-metrics-v0326 a{padding:12px}.product-setup-metrics-v0326 strong{font-size:21px}.product-setup-table-v0326 td{grid-template-columns:88px minmax(0,1fr)}.setup-unit-legend-v0326,.setup-unit-option-v0326{grid-template-columns:minmax(100px,1fr) 65px 80px}.product-setup-savebar-v0326{display:block;bottom:82px}.product-setup-savebar-v0326 .btn{width:100%;margin-top:10px}}

/* === v0.3.28 Branch long session and safe stock-count recovery === */
#session-keepalive-config{display:none!important}
.session-expired-overlay-v0328{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(15,23,42,.68);backdrop-filter:blur(6px)}
.session-expired-card-v0328{width:min(420px,100%);padding:30px;border-radius:24px;background:#fff;box-shadow:0 28px 80px rgba(15,23,42,.32);text-align:center}
.session-expired-card-v0328 h2{margin:10px 0 8px;font-size:25px;color:#172033}
.session-expired-card-v0328 p{margin:0 0 22px;color:#64748b;line-height:1.65}
.session-expired-icon-v0328{display:grid;place-items:center;width:62px;height:62px;margin:0 auto;border-radius:20px;background:#fff7ed;color:#c2410c;font-size:30px}
.count-draft-notice-v0328{display:flex;align-items:flex-start;gap:8px;margin:14px 0;padding:13px 16px;border:1px solid #86efac;border-radius:14px;background:#f0fdf4;color:#166534}
.count-draft-notice-v0328[hidden]{display:none!important}
.count-draft-notice-v0328 strong{white-space:nowrap}
.count-draft-notice-v0328 span{color:#3f684e;line-height:1.45}
.btn-close-shop:disabled{cursor:wait;opacity:.78}
@media(max-width:720px){
 .session-expired-card-v0328{padding:24px 20px;border-radius:20px}
 .count-draft-notice-v0328{display:block}
 .count-draft-notice-v0328 strong,.count-draft-notice-v0328 span{display:block}
 .count-draft-notice-v0328 span{margin-top:4px}
}

/* === v0.3.30 Stock Count continuous list === */
.count-list-card-v0330{overflow:hidden;border-radius:18px;box-shadow:0 9px 26px rgba(45,70,86,.07)}
.stock-count-product-meta-v0330{display:block;margin-top:3px;color:var(--muted);font-size:9px;font-weight:750}
@media(max-width:760px){.count-list-card-v0330{overflow:visible;border-radius:15px}.stock-count-product-meta-v0330{font-size:8px}.count-filter-empty-v0330{padding:18px 12px}}

/* === v0.3.31 Simplified stock-count UI === */
.stock-count-summary-v0331{padding:14px 16px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:0 8px 24px rgba(45,70,86,.06)}
.stock-count-summary-top-v0331{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.stock-count-summary-label-v0331{display:block;color:var(--muted);font-size:10px;font-weight:850}
.stock-count-summary-top-v0331 strong{display:block;margin-top:2px;color:var(--text);font-size:20px;line-height:1.2;font-weight:950}
.stock-count-summary-side-v0331{display:flex;align-items:center;gap:10px;text-align:right}
.stock-count-summary-side-v0331 small{color:var(--muted);font-size:10px;font-weight:800;white-space:nowrap}
.stock-count-summary-side-v0331 small b{color:var(--brand-ink);font-size:14px}
.stock-count-progress-track-v0331{height:6px;margin-top:11px;overflow:hidden;border-radius:999px;background:var(--surface-2)}
.stock-count-progress-track-v0331>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--brand),#78b59a);transition:width .25s ease}
.stock-count-summary-help-v0331{display:block;margin-top:7px;color:var(--muted);font-size:9px;font-weight:750}
.count-toolbar-v0331{margin-top:10px}
.count-extra-request-state-v032:not(.is-active){display:none!important}
.count-extra-title-v0331{white-space:nowrap}
.count-list-card-v0330{overflow:hidden}

@media(max-width:760px){
 .stock-count-admin-toolbar-v0331{margin-bottom:8px}
 .stock-count-summary-v0331{margin-top:0;padding:11px 12px;border-radius:14px}
 .stock-count-summary-top-v0331{align-items:center;gap:10px}
 .stock-count-summary-label-v0331{font-size:8px}
 .stock-count-summary-top-v0331 strong{font-size:17px}
 .stock-count-summary-side-v0331{gap:7px}
 .stock-count-summary-side-v0331 .badge{padding:5px 7px;font-size:8px}
 .stock-count-summary-side-v0331 small{font-size:8px}
 .stock-count-summary-side-v0331 small b{font-size:12px}
 .stock-count-progress-track-v0331{height:5px;margin-top:8px}
 .stock-count-summary-help-v0331{margin-top:5px;font-size:8px}
 .count-toolbar-v0331{top:68px;margin-top:8px;margin-bottom:8px;padding:7px;border-radius:13px;box-shadow:0 6px 18px rgba(45,70,86,.07)}
 .count-toolbar-v0331 .count-search-v032 .input{height:38px;min-height:38px;border-radius:11px}
 .count-toolbar-v0331 .count-filter-chips{gap:5px;padding:0}
 .count-toolbar-v0331 .count-filter-chip{padding:6px 8px;font-size:9px}
 .count-toolbar-v0331 .count-filter-chip b{min-width:17px;height:17px;padding:0 4px;font-size:7px}
 .count-list-card-v0330{border-radius:14px;box-shadow:0 7px 20px rgba(45,70,86,.06)}
 .stock-count-table-v032 tbody{padding:0;background:#fff;border-radius:14px}
 .stock-count-table-v032 tr.stock-count-row-v032{grid-template-columns:1fr;grid-template-areas:'product' 'units' 'extra' 'status';gap:6px;padding:12px 10px}
 .stock-count-product-cell-v032{padding-right:0}
 .stock-count-product-v032{gap:9px}
 .stock-count-product-v032 .count-product-thumb{width:36px;height:36px;flex-basis:36px;border-radius:10px}
 .stock-count-product-v032 .continuous-product-name{font-size:15px;line-height:1.25}
 .count-table-unit-grid-v032{gap:6px}
 .count-table-unit-v032{min-height:40px;padding:5px 6px;background:#f5f8fa}
 .count-table-unit-name-v032{font-size:10px}
 .count-table-unit-v032 .input{height:32px;min-height:32px;font-size:15px}
 .stock-count-status-cell-v032{display:flex!important;align-items:center;justify-content:flex-end;gap:7px;min-height:0;text-align:right}
 .stock-count-status-cell-v032 .badge-muted{display:none!important}
 .stock-count-status-cell-v032 .badge{margin:0;font-size:8px;padding:4px 6px}
 .stock-count-status-cell-v032 .count-autosave-state{margin:0;font-size:8px}
 .stock-count-status-cell-v032 .count-autosave-state:empty{display:none}
 .count-row-extras-v032{border:0;border-radius:10px;background:transparent}
 .count-row-extras-v032>summary{min-height:30px;padding:4px 2px;color:var(--brand);font-size:9px}
 .count-row-extras-v032>summary:after{width:18px;height:18px;margin-left:auto;background:rgba(var(--brand-rgb),.08);color:var(--brand)}
 .count-row-extras-v032[open]{border:1px solid var(--line);background:#fff}
 .count-row-extras-v032[open]>summary{padding:7px 9px}
 .count-extra-body-v032{padding:8px 9px 9px}
 .count-extra-flags-v032{margin-left:4px}
 .count-extra-flags-v032 em{font-size:7px}
 .count-submit-panel-v032{border-radius:14px}
}

@media(max-width:390px){
 .stock-count-summary-side-v0331 .badge{display:none}
 .stock-count-summary-top-v0331 strong{font-size:16px}
 .count-toolbar-v0331 .count-filter-chip{padding:6px 7px}
}

/* === v0.3.32 Collaborative stock count === */
.stock-count-admin-toolbar-v0332{margin-bottom:12px}
.stock-count-live-summary-v0332{position:sticky;top:68px;z-index:32;margin:0 0 14px;padding:12px 14px;border:1px solid #dce7ef;border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 10px 28px rgba(30,52,72,.12);backdrop-filter:blur(12px)}
.stock-count-live-main-v0332{display:grid;grid-template-columns:1.4fr .9fr .9fr;gap:8px}
.stock-count-live-main-v0332>div{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:12px;background:#f5f8fa}
.stock-count-live-main-v0332 span{font-size:12px;color:#66798a}.stock-count-live-main-v0332 strong{font-size:18px;color:#17324a}
.stock-count-live-main-v0332>div:first-child{background:#eef8f4}.stock-count-live-main-v0332>div:first-child strong{color:#08764c}
.stock-count-progress-track-v0332{height:7px;margin-top:9px;border-radius:99px;background:#edf2f5;overflow:hidden}.stock-count-progress-track-v0332 span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#13a58e,#66c09e);transition:width .25s ease}
.stock-count-live-foot-v0332{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:8px;font-size:11px;color:#6a7e8e}.stock-count-active-users-v0332{display:flex;align-items:center;gap:7px;min-width:0}.stock-count-active-users-v0332 b{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#24435c}
.count-toolbar-v0332{display:grid;grid-template-columns:minmax(240px,1fr) 230px;gap:10px;padding:12px;border:1px solid #dce7ef;border-radius:18px;background:#fff;box-shadow:0 6px 18px rgba(40,61,78,.06)}
.count-search-v0332{position:relative;display:block}.count-search-v0332>span{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#8295a4}.count-search-v0332 .input{padding-left:38px}
.count-filter-chips-v0332{grid-column:1/-1;display:flex;gap:7px;overflow:auto;padding-bottom:1px}.count-filter-chips-v0332 button{flex:0 0 auto;border:1px solid #dce7ef;background:#f7fafb;color:#5d7182;border-radius:99px;padding:7px 11px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.count-filter-chips-v0332 button.active{border-color:#ff6f79;background:#ffeff1;color:#c43d4c}.count-filter-chips-v0332 b{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;margin-left:4px;border-radius:99px;background:rgba(255,255,255,.8)}
.stock-count-groups-v0332{display:grid;gap:16px}.stock-count-group-card-v0332{border:1px solid #dce7ef;border-radius:20px;background:#fff;box-shadow:0 6px 20px rgba(39,62,80,.06);overflow:hidden}.stock-count-group-card-v0332>header{display:flex;align-items:center;justify-content:space-between;padding:13px 15px;border-bottom:1px solid #e9eff3;background:#f7fafb}.stock-count-group-card-v0332>header span{display:block;font-size:10px;color:#7c8f9e;text-transform:uppercase;letter-spacing:.06em}.stock-count-group-card-v0332>header h2{margin:2px 0 0;font-size:17px;color:#18354c}.stock-count-group-card-v0332>header>b{padding:5px 9px;border-radius:99px;background:#eaf1f5;color:#546b7d;font-size:11px}
.stock-count-product-list-v0332{display:grid}.stock-count-product-v0332{padding:13px 14px;border-bottom:1px solid #e9eff3;background:#fff;transition:background .15s,border-color .15s}.stock-count-product-v0332:last-child{border-bottom:0}.stock-count-product-v0332.status-enough{border-left:4px solid #4aa3df}.stock-count-product-v0332.status-counted{border-left:4px solid #18a574}.stock-count-product-v0332.status-zero{border-left:4px solid #7a8994}.stock-count-product-v0332.status-issue{border-left:4px solid #e05a64}.stock-count-product-v0332.is-locked{background:#f7f9fb;opacity:.82}
.stock-count-product-head-v0332{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center}.stock-count-product-head-v0332 .count-product-thumb{width:42px;height:42px;border-radius:11px}.stock-count-product-name-v0332{min-width:0}.stock-count-product-name-v0332 strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;color:#142f46}.stock-count-product-name-v0332 small{display:block;margin-top:2px;font-size:10px;color:#78909f}.count-status-v0332{display:inline-flex;align-items:center;justify-content:center;border-radius:99px;padding:5px 8px;font-size:10px;font-weight:800;white-space:nowrap}.count-status-v0332.status-pending{background:#f0f3f5;color:#6e7e89}.count-status-v0332.status-enough{background:#eaf5fc;color:#1973a8}.count-status-v0332.status-counted{background:#e8f8f1;color:#08764c}.count-status-v0332.status-zero{background:#eef1f3;color:#4e5d67}.count-status-v0332.status-issue{background:#fff0f1;color:#bd3341}
.count-lock-message-v0332{margin:8px 0 0;padding:7px 9px;border-radius:10px;background:#eef5fb;color:#27658e;font-size:11px;font-weight:700}.stock-count-unit-grid-v0332{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin-top:10px}.stock-count-unit-v0332{display:grid;grid-template-columns:minmax(0,1fr) 84px;align-items:center;gap:8px;padding:7px 8px;border:1px solid #dce7ef;border-radius:12px;background:#f8fbfc}.stock-count-unit-v0332 span{min-width:0}.stock-count-unit-v0332 strong,.stock-count-unit-v0332 small{display:block}.stock-count-unit-v0332 strong{font-size:12px;color:#243f55}.stock-count-unit-v0332 small{margin-top:1px;font-size:9px;color:#8495a2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stock-count-unit-v0332 .input{height:38px;padding:7px 9px;text-align:right;font-size:16px;font-weight:800;background:#fff}
.stock-count-actions-v0332{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:10px}.stock-count-actions-v0332 button{min-height:38px;border:1px solid #d7e3ea;border-radius:11px;background:#fff;color:#425c70;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.stock-count-actions-v0332 button:hover{background:#f5f9fb}.stock-count-actions-v0332 button.active[data-review-action="ENOUGH"]{border-color:#88c5eb;background:#edf8ff;color:#1973a8}.stock-count-actions-v0332 button.active[data-review-action="COUNTED"]{border-color:#73cdaa;background:#eaf9f2;color:#08764c}.stock-count-actions-v0332 button.active[data-review-action="ZERO"]{border-color:#adb9c1;background:#eff2f4;color:#46555f}.stock-count-actions-v0332 button.active[data-review-action="ISSUE"]{border-color:#ef9da4;background:#fff1f2;color:#bd3341}.stock-count-actions-v0332 button:disabled{cursor:not-allowed;opacity:.55}
.stock-count-extra-v0332{margin-top:9px;border:1px solid #e0e9ee;border-radius:12px;background:#fbfcfd}.stock-count-extra-v0332 summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;cursor:pointer;color:#50677a;font-size:11px;font-weight:800;list-style:none}.stock-count-extra-v0332 summary::-webkit-details-marker{display:none}.stock-count-extra-v0332 summary b{font-size:10px;color:#d2525e}.stock-count-extra-body-v0332{display:grid;gap:10px;padding:0 11px 11px;border-top:1px solid #e8eef2}.stock-count-extra-body-v0332>.check-line{margin-top:10px}.request-fields-v0332{display:grid;grid-template-columns:1fr 1fr;gap:8px}.request-fields-v0332 label,.stock-count-note-v0332{display:grid;gap:4px;font-size:10px;color:#6b7f8f}.count-save-state-v0332{min-height:16px;margin-top:7px;font-size:10px;color:#718492}.count-save-state-v0332.is-saving{color:#2676a5}.count-save-state-v0332.is-success{color:#0b8055}.count-save-state-v0332.is-warning{color:#a66c09}.count-save-state-v0332.is-error{color:#c03947}
.count-submit-panel-v0332 form{display:grid;gap:12px}.count-submit-panel-v0332 form>div:first-child strong,.count-submit-panel-v0332 form>div:first-child span{display:block}.count-submit-panel-v0332 form>div:first-child span{margin-top:4px;color:#6b7e8e;font-size:12px}.count-submit-panel-v0332 [data-close-help]{display:block;text-align:center;color:#6b7e8e}
.count-group-admin-v0332,.count-group-products-v0332{overflow:visible}.count-group-editor-v0332{display:grid;gap:8px;margin:12px 0}.count-group-editor-row-v0332{display:grid;grid-template-columns:minmax(220px,1fr) 100px 120px 90px;gap:8px;align-items:center}.count-group-editor-row-v0332.is-new{padding-top:10px;border-top:1px dashed #d8e3e9}.count-group-filter-v0332{display:grid;grid-template-columns:minmax(220px,1fr) 220px auto;gap:8px;margin:12px 0}.count-group-bulk-v0332{display:flex;align-items:center;gap:8px;padding:10px;border-radius:12px;background:#f5f8fa}.count-group-bulk-v0332 .select{max-width:240px}.count-group-product-list-v0332{display:grid;margin-top:10px;border:1px solid #e0e8ed;border-radius:14px;overflow:hidden}.count-group-product-row-v0332{display:grid;grid-template-columns:minmax(240px,1fr) 230px 95px;gap:10px;align-items:center;padding:9px 11px;border-bottom:1px solid #e7edf1}.count-group-product-row-v0332:last-child{border-bottom:0}.count-group-product-select-v0332{display:grid;grid-template-columns:20px 42px minmax(0,1fr);gap:8px;align-items:center}.count-group-product-select-v0332 strong,.count-group-product-select-v0332 small{display:block}.count-group-product-select-v0332 small{color:#7b8d99}.count-group-order-input-v0332{text-align:center}.branch-settings-actions-v0332{margin-top:12px}
.login-device-takeover-v0332{text-align:center}.login-device-icon-v0332{display:flex;align-items:center;justify-content:center;width:56px;height:56px;margin:0 auto 12px;border-radius:17px;background:#fff0f2;color:#cf4352;font-size:28px;font-weight:900}.login-device-takeover-v0332 h2{margin:0 0 8px}.login-device-takeover-v0332 p{line-height:1.6;color:#536a7d}.login-device-help-v0332{padding:10px;border-radius:12px;background:#f4f8fa;font-size:12px}.login-device-takeover-v0332 .btn+.btn{margin-top:8px}
@media(max-width:760px){
 .stock-count-live-summary-v0332{top:64px;margin-left:-4px;margin-right:-4px;padding:9px 10px;border-radius:14px}.stock-count-live-main-v0332{gap:5px}.stock-count-live-main-v0332>div{display:block;padding:6px 8px}.stock-count-live-main-v0332 span{display:block;font-size:9px}.stock-count-live-main-v0332 strong{font-size:15px}.stock-count-live-foot-v0332{display:block}.stock-count-active-users-v0332{margin-top:4px}.stock-count-active-users-v0332 b{max-width:100%;font-size:10px}
 .count-toolbar-v0332{grid-template-columns:1fr;padding:9px}.count-filter-chips-v0332{grid-column:1}.count-group-filter-v0332{width:100%}
 .stock-count-groups-v0332{gap:12px}.stock-count-group-card-v0332{border-radius:16px}.stock-count-group-card-v0332>header{padding:10px 12px}.stock-count-group-card-v0332>header h2{font-size:15px}.stock-count-product-v0332{padding:11px 10px}.stock-count-product-head-v0332{grid-template-columns:38px minmax(0,1fr) auto;gap:8px}.stock-count-product-head-v0332 .count-product-thumb{width:38px;height:38px}.stock-count-product-name-v0332 strong{font-size:14px}.count-status-v0332{max-width:92px;overflow:hidden;text-overflow:ellipsis}.stock-count-unit-grid-v0332{grid-template-columns:1fr 1fr;gap:6px}.stock-count-unit-v0332{grid-template-columns:minmax(0,1fr) 67px;padding:6px}.stock-count-unit-v0332 .input{height:36px;font-size:15px;padding:5px 6px}.stock-count-unit-v0332 small{font-size:8px}.stock-count-actions-v0332{grid-template-columns:1fr 1fr}.stock-count-actions-v0332 button{font-size:11px}.request-fields-v0332{grid-template-columns:1fr 1fr}
 .count-group-editor-row-v0332{grid-template-columns:1fr 80px}.count-group-editor-row-v0332 .check-line,.count-group-editor-row-v0332 .badge{grid-column:auto}.count-group-filter-v0332{grid-template-columns:1fr}.count-group-bulk-v0332{align-items:stretch;flex-direction:column}.count-group-bulk-v0332 .select{max-width:none}.count-group-product-row-v0332{grid-template-columns:1fr 1fr;padding:10px}.count-group-product-select-v0332{grid-column:1/-1}.count-group-order-input-v0332{width:100%}
}
@media(max-width:390px){.stock-count-unit-grid-v0332{grid-template-columns:1fr}.stock-count-live-main-v0332 strong{font-size:14px}.count-status-v0332{max-width:76px}.stock-count-actions-v0332 button{padding:6px 4px;font-size:10px}}

/* v0.3.33: simplified branch stock-count actions and visible refill request */
.stock-count-product-list-v0332{gap:12px;padding:12px;background:#f4f7f9}
.stock-count-product-v0332{border:1px solid #dce6ec!important;border-radius:15px;padding:16px 16px 14px;box-shadow:0 3px 10px rgba(31,55,72,.04)}
.stock-count-product-v0332:last-child{border-bottom:1px solid #dce6ec!important}
.stock-count-product-name-v0332 strong{font-size:18px;line-height:1.3;white-space:normal;overflow:visible;text-overflow:clip;color:#102c42;font-weight:900}
.stock-count-product-name-v0332 small{margin-top:4px;font-size:11px}
.stock-count-unit-reference-v0333{background:#f5f8fa}
.stock-count-unit-reference-v0333 .input[readonly]{background:#eef3f6;color:#27465d;border-color:#d8e3e9;cursor:default}
.stock-count-actions-v0333{grid-template-columns:1fr 1fr;gap:10px;margin-top:13px}
.stock-count-actions-v0333 button{min-height:44px;font-size:13px}
.stock-count-request-v0333{display:grid;gap:9px;margin-top:12px;padding:12px;border:1px solid #dce7ed;border-radius:14px;background:#fbfcfd;transition:border-color .15s,box-shadow .15s}
.stock-count-request-v0333.is-required{border-color:#e77883;box-shadow:0 0 0 3px rgba(224,90,100,.12)}
.stock-count-request-head-v0333{display:flex;align-items:center;justify-content:space-between;gap:10px}
.stock-count-request-head-v0333 strong,.stock-count-request-head-v0333 span{display:block}
.stock-count-request-head-v0333 strong{font-size:13px;color:#1d3c52}
.stock-count-request-head-v0333 span{margin-top:2px;font-size:10px;color:#7a8d9a}
.stock-count-request-head-v0333>b{font-size:10px;color:#c84c58;background:#fff0f1;border-radius:99px;padding:4px 8px;white-space:nowrap}
.request-fields-v0333{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.request-fields-v0333 label{display:grid;gap:4px;font-size:10px;color:#667e8f}
.stock-count-note-details-v0333{border-top:1px dashed #dce5ea;padding-top:8px}
.stock-count-note-details-v0333 summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;list-style:none;font-size:11px;font-weight:800;color:#536b7d}
.stock-count-note-details-v0333 summary::-webkit-details-marker{display:none}
.stock-count-note-details-v0333 summary b{font-size:10px;color:#7b8f9d}
.stock-count-note-details-v0333 .stock-count-note-v0332{margin-top:9px}
.stock-count-save-request-v0333{justify-self:start}
.branch-settings-actions-v0332{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.branch-settings-actions-v0332 small{color:#6f8493;line-height:1.5;max-width:620px}
@media(max-width:760px){
 .stock-count-product-list-v0332{gap:10px;padding:9px}
 .stock-count-product-v0332{padding:14px 12px 12px}
 .stock-count-product-name-v0332 strong{font-size:17px}
 .stock-count-actions-v0333{grid-template-columns:1fr 1fr}
 .stock-count-actions-v0333 button{min-height:42px;font-size:12px}
 .stock-count-request-v0333{padding:10px}
 .request-fields-v0333{grid-template-columns:1fr 1fr}
 .stock-count-save-request-v0333{width:100%}
 .branch-settings-actions-v0332{align-items:stretch;flex-direction:column}
 .branch-settings-actions-v0332 .btn{width:100%}
}
@media(max-width:390px){.request-fields-v0333{grid-template-columns:1fr}.stock-count-product-name-v0332 strong{font-size:16px}}

/* === v0.3.34 Compact Stock Count Header === */
.stock-count-admin-toolbar-v0334{display:grid;grid-template-columns:minmax(220px,1fr) 170px auto auto auto;align-items:center;gap:8px;margin:0 0 10px}
.stock-count-admin-toolbar-v0334 .select,.stock-count-admin-toolbar-v0334 .input{height:42px}
.stock-count-group-btn-v0334{min-height:42px;white-space:nowrap}
.stock-count-reopen-v0334{margin:0}.stock-count-reopen-v0334 .btn{white-space:nowrap}
.stock-count-closed-badge-v0334{justify-self:start;white-space:nowrap}
.stock-count-live-summary-v0334{margin-bottom:10px;padding:9px 11px;border-radius:15px}
.stock-count-live-main-v0334{grid-template-columns:1.35fr .8fr .8fr;gap:0}
.stock-count-live-main-v0334>div{display:flex;align-items:baseline;justify-content:center;gap:6px;padding:3px 8px;border-radius:0;border-right:1px solid #e3eaee;background:transparent!important}
.stock-count-live-main-v0334>div:first-child{justify-content:flex-start}.stock-count-live-main-v0334>div:last-child{border-right:0}
.stock-count-live-main-v0334 strong{order:1;font-size:17px;line-height:1.1}.stock-count-live-main-v0334 span{order:2;font-size:10px;white-space:nowrap}
.stock-count-live-summary-v0334 .stock-count-progress-track-v0332{height:6px;margin-top:7px}
.stock-count-live-foot-v0334{justify-content:flex-start;margin-top:6px;min-height:16px}
.stock-count-live-foot-v0334 .stock-count-active-users-v0332{gap:5px;overflow:hidden}
.stock-count-live-foot-v0334 .stock-count-active-users-v0332 span{font-size:10px;white-space:nowrap;color:#587083}
.stock-count-live-foot-v0334 .stock-count-active-users-v0332 b{font-size:10px;color:#24435c}
.stock-count-live-foot-v0334 [data-live-status]{margin-left:auto;color:#b06c12;font-weight:700;white-space:nowrap}
.stock-count-live-foot-v0334 [data-live-status][hidden]{display:none!important}
.count-toolbar-v0334{grid-template-columns:minmax(0,1.45fr) minmax(125px,.55fr);gap:8px;padding:8px;border-radius:15px}
.count-toolbar-v0334 .input,.count-toolbar-v0334 .select{height:42px}
.count-toolbar-v0334 .count-filter-chips-v0332{gap:6px;padding-top:0}
.count-toolbar-v0334 .count-filter-chips-v0332 button{padding:6px 9px;font-size:11px}
.count-toolbar-v0334 .count-filter-chips-v0332 b{min-width:19px;height:19px;margin-left:3px}
.stock-count-group-head-v0334{padding:9px 12px!important}
.stock-count-group-head-v0334 h2{margin:0!important;font-size:16px!important;line-height:1.25}
.stock-count-group-head-v0334>b{padding:4px 8px!important}
.stock-count-request-head-v0334{min-height:22px}.stock-count-request-head-v0334>strong{font-size:13px;color:#1d3c52}

@media(max-width:760px){
 .stock-count-admin-toolbar-v0334{grid-template-columns:minmax(0,1fr) 132px auto;gap:7px;margin-bottom:8px}
 .stock-count-admin-toolbar-v0334 .select,.stock-count-admin-toolbar-v0334 .input,.stock-count-group-btn-v0334{height:40px;min-height:40px}
 .stock-count-group-btn-v0334{padding-left:10px;padding-right:10px}
 .stock-count-closed-badge-v0334,.stock-count-reopen-v0334{grid-column:auto}
 .stock-count-live-summary-v0334{top:64px;margin-left:-2px;margin-right:-2px;padding:8px 9px;border-radius:13px}
 .stock-count-live-main-v0334{gap:0}
 .stock-count-live-main-v0334>div{display:flex;padding:2px 6px}
 .stock-count-live-main-v0334 span{display:inline;font-size:9px}
 .stock-count-live-main-v0334 strong{font-size:16px}
 .stock-count-live-foot-v0334{display:flex;margin-top:5px}
 .stock-count-live-foot-v0334 .stock-count-active-users-v0332{margin-top:0}
 .count-toolbar-v0334{grid-template-columns:minmax(0,1.45fr) minmax(118px,.55fr);gap:7px;padding:7px}
 .count-toolbar-v0334 .count-filter-chips-v0332{grid-column:1/-1}
 .stock-count-group-head-v0334{padding:8px 11px!important}
 .stock-count-group-head-v0334 h2{font-size:15px!important}
}
@media(max-width:390px){
 .stock-count-admin-toolbar-v0334{grid-template-columns:minmax(0,1fr) 124px auto}
 .stock-count-group-btn-v0334{font-size:11px;padding-left:8px;padding-right:8px}
 .stock-count-live-main-v0334 strong{font-size:15px}
 .stock-count-live-main-v0334 span{font-size:8px}
 .count-toolbar-v0334{grid-template-columns:minmax(0,1fr) 112px}
 .count-toolbar-v0334 .count-filter-chips-v0332 button{padding:6px 8px}
}

/* v0.3.35: compact three-action stock count cards and stable mobile layout */
.stock-count-live-summary-v0334{top:84px;z-index:35}
.count-toolbar-v0335{align-items:stretch;margin-bottom:0}
.count-toolbar-v0335 .count-search-v0335{display:flex;min-width:0;height:44px;margin:0}
.count-toolbar-v0335 .count-search-v0335 .input{width:100%;height:44px;margin:0;border-radius:12px}
.count-toolbar-v0335 .count-group-filter-v0335{display:block;width:100%;min-width:0;height:44px;margin:0;border-radius:12px}
.stock-count-groups-v0335{margin-top:16px}
.stock-count-actions-v0335{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:10px}
.stock-count-actions-v0335 button{min-width:0;min-height:40px;padding:7px 5px;font-size:12px;border-radius:11px}
.stock-count-actions-v0335 button.active[data-review-action="ENOUGH"]{border-color:#63bd91;background:#e9f8f0;color:#08764c}
.stock-count-actions-v0335 button.active[data-review-action="ZERO"]{border-color:#e27d86;background:#fff0f1;color:#bd3341}
.stock-count-actions-v0335 button.active[data-review-action="REQUEST"]{border-color:#e4ae54;background:#fff7e7;color:#9a6309}
.stock-count-request-v0335{margin-top:9px;padding:9px 10px;background:#fffaf1;border-color:#ecd8b7}
.stock-count-request-v0335[hidden]{display:none!important}
.stock-count-request-v0335.is-required{border-color:#e77883;background:#fff7f7}
.stock-count-request-hint-v0335{display:block;margin-top:1px;color:#8a6b3d;font-size:10px;font-weight:700}
.stock-count-note-details-v0335{margin-top:8px;padding:0;border-top:0}
.stock-count-note-details-v0335 summary{min-height:32px;padding:6px 9px;border:1px dashed #d9e3e8;border-radius:10px;background:#fafcfd}
.stock-count-note-details-v0335[open] summary{border-radius:10px 10px 0 0;background:#f7fafb}
.stock-count-note-details-v0335 .stock-count-note-v0332{margin-top:0;padding:9px;border:1px solid #e2e9ed;border-top:0;border-radius:0 0 10px 10px;background:#fff}
.stock-count-product-v0332{transition:background-color .18s,border-color .18s,box-shadow .18s}
.stock-count-product-v0332.status-pending{background:#fff}
.stock-count-product-v0332.status-enough{background:#f0fbf6;border-color:#bfe5d2!important;border-left:4px solid #2fa36d!important;box-shadow:0 4px 13px rgba(31,123,80,.07)}
.stock-count-product-v0332.status-counted{background:#eef8ff;border-color:#b9dcef!important;border-left:4px solid #338fc1!important;box-shadow:0 4px 13px rgba(44,126,170,.07)}
.stock-count-product-v0332.status-zero{background:#fff1f2;border-color:#efbcc1!important;border-left:4px solid #dc5b67!important;box-shadow:0 4px 13px rgba(184,65,77,.07)}
.stock-count-product-v0332.status-request{background:#fff8ea;border-color:#ecd29e!important;border-left:4px solid #d99a2f!important;box-shadow:0 4px 13px rgba(168,111,18,.07)}
.count-status-v0332.status-request{background:#fff0cf;color:#95600a}
.count-save-state-v0332:empty{display:none}

@media(max-width:760px){
 .stock-count-live-summary-v0334{top:78px;z-index:35}
 .count-toolbar-v0335{grid-template-columns:minmax(0,1fr) minmax(112px,.46fr);column-gap:7px;row-gap:7px;padding:8px}
 .count-toolbar-v0335 .count-search-v0335,.count-toolbar-v0335 .count-search-v0335 .input,.count-toolbar-v0335 .count-group-filter-v0335{height:42px}
 .stock-count-groups-v0335{margin-top:14px}
 .stock-count-product-v0332{padding:12px 11px 11px}
 .stock-count-product-list-v0332{gap:9px;padding:9px}
 .stock-count-actions-v0335{gap:6px;margin-top:9px}
 .stock-count-actions-v0335 button{min-height:39px;padding:6px 3px;font-size:11px}
 .stock-count-request-v0335{padding:8px;margin-top:8px}
 .stock-count-note-details-v0335{margin-top:7px}
}
@media(max-width:390px){
 .stock-count-live-summary-v0334{top:77px}
 .count-toolbar-v0335{grid-template-columns:minmax(0,1fr) 108px}
 .count-toolbar-v0335 .count-search-v0335 .input{padding-left:34px;font-size:13px}
 .count-toolbar-v0335 .count-group-filter-v0335{padding-left:8px;padding-right:28px;font-size:12px}
 .stock-count-actions-v0335 button{font-size:10.5px}
}

/* v0.3.37 — request-more remaining quantity validation */
.stock-count-unit-v0332.is-required{border-color:#e77883;background:#fff7f7;box-shadow:0 0 0 3px rgba(224,90,100,.12)}
.stock-count-unit-v0332.is-required .input{border-color:#e77883;background:#fff}
.stock-count-unit-v0332.is-required small{color:#b33a46;font-weight:700}

/* === v0.3.38 Refill workspace redesign === */
.refill-page-v038{display:grid;gap:14px;padding-bottom:8px}
.refill-top-v038{display:grid;grid-template-columns:minmax(210px,auto) 1fr auto;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow)}
.refill-date-box-v038{display:flex;align-items:center;gap:10px}.refill-date-box-v038>span{font-size:12px;font-weight:850;color:var(--muted);white-space:nowrap}.refill-date-box-v038 .input{height:42px}
.refill-top-meta-v038{display:flex;align-items:center;gap:8px;min-width:0}.refill-plan-no-v038{font-size:12px;font-weight:850;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.refill-top-actions-v038{display:flex;align-items:center;gap:8px}.refill-top-actions-v038 form{margin:0}.refill-top-actions-v038 .btn{height:42px;white-space:nowrap}
.refill-closing-v038{border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden}.refill-closing-v038>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;cursor:pointer;list-style:none}.refill-closing-v038>summary::-webkit-details-marker{display:none}.refill-closing-v038>summary>span:first-child{display:flex;align-items:center;gap:9px;min-width:0}.refill-closing-v038>summary strong{font-size:14px}.refill-closing-v038>summary small{font-size:11px;color:var(--muted)}
.refill-closing-grid-v038{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 13px 13px}.refill-closing-item-v038{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:12px;background:var(--surface-2)}.refill-closing-item-v038 strong,.refill-closing-item-v038 span{display:block}.refill-closing-item-v038 strong{font-size:12px}.refill-closing-item-v038 div>span{margin-top:2px;font-size:10px;color:var(--muted)}
.refill-summary-v038{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.refill-summary-v038>div{padding:12px 14px;border:1px solid var(--line);border-radius:15px;background:#fff}.refill-summary-v038 span{display:block;font-size:11px;color:var(--muted)}.refill-summary-v038 strong{display:block;margin-top:4px;font-size:21px;line-height:1;color:var(--text)}.refill-summary-v038>div.is-danger{border-color:rgba(221,64,75,.35);background:var(--danger-soft)}.refill-summary-v038>div.is-danger strong{color:var(--danger)}
.refill-filter-v038{padding:13px;border:1px solid var(--line);border-radius:17px;background:#fff}.refill-filter-fields-v038{display:grid;grid-template-columns:minmax(240px,1fr) minmax(180px,260px);gap:10px}.refill-filter-fields-v038 label>span{display:block;margin:0 0 5px;font-size:11px;font-weight:850;color:var(--muted)}.refill-filter-fields-v038 .input,.refill-filter-fields-v038 .select{height:42px}
.refill-filter-chips-v038{display:flex;gap:7px;overflow-x:auto;margin-top:10px;padding:1px 1px 3px;scrollbar-width:none}.refill-filter-chips-v038::-webkit-scrollbar{display:none}.refill-filter-chips-v038 button{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:8px 11px;background:#fff;color:var(--muted);font-size:11px;font-weight:850;white-space:nowrap;cursor:pointer}.refill-filter-chips-v038 button b{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--surface-2);font-size:10px;color:var(--text)}.refill-filter-chips-v038 button.active{border-color:var(--brand);background:var(--brand);color:#fff}.refill-filter-chips-v038 button.active b{background:rgba(255,255,255,.2);color:#fff}
.refill-branches-v038{display:grid;gap:16px}.refill-branch-v038{border:1px solid var(--line);border-radius:19px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(31,55,72,.05)}.refill-branch-head-v038{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;background:linear-gradient(100deg,var(--brand-soft),#fff);border-bottom:1px solid rgba(var(--brand-rgb),.13)}.refill-branch-head-v038 strong,.refill-branch-head-v038 span{display:block}.refill-branch-head-v038 strong{font-size:16px}.refill-branch-head-v038 div>span{margin-top:2px;font-size:10px;color:var(--muted)}.refill-branch-head-v038>span{font-size:11px;color:var(--brand-ink);font-weight:800;white-space:nowrap}.refill-branch-head-v038>span b{font-size:15px}
.refill-items-v038{display:grid;gap:10px;padding:12px}.refill-item-v038{position:relative;border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease}.refill-item-v038:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#cfd8dd}.refill-item-v038.source-stock:before{background:var(--teal)}.refill-item-v038.source-buy:before{background:#e5a02b}.refill-item-v038.source-produce:before{background:#8b6ccf}.refill-item-v038.source-none:before{background:#aab6bc}.refill-item-v038.has-shortage{border-color:rgba(221,64,75,.45);box-shadow:0 0 0 3px rgba(221,64,75,.06)}
.refill-item-head-v038{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 13px 10px 16px;border-bottom:1px solid var(--line)}.refill-product-v038{min-width:0}.refill-product-v038>strong{display:block;font-size:16px;line-height:1.35;color:var(--text)}.refill-product-v038>div{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:5px}.refill-product-v038>div>span{font-size:10px;color:var(--muted)}.refill-product-v038 .refill-unit-v038{padding:3px 7px;border-radius:999px;background:var(--surface-2);font-weight:850;color:var(--text)}.refill-product-v038 em{padding:3px 7px;border-radius:999px;background:var(--danger-soft);color:var(--danger);font-size:10px;font-style:normal;font-weight:850}
.refill-source-badge-v038{flex:0 0 auto;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:900}.refill-source-badge-v038.source-stock{background:rgba(9,161,161,.12);color:#087d7d}.refill-source-badge-v038.source-buy{background:#fff3dc;color:#9a5b00}.refill-source-badge-v038.source-produce{background:#f1edff;color:#6e51b3}.refill-source-badge-v038.source-none{background:var(--surface-2);color:var(--muted)}
.refill-item-body-v038{display:grid;grid-template-columns:minmax(330px,1.05fr) minmax(360px,1fr);gap:12px;padding:12px 13px 13px 16px}.refill-metrics-v038{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;align-self:start}.refill-metrics-v038>div{min-width:0;padding:9px 7px;border-radius:11px;background:var(--surface-2);text-align:center}.refill-metrics-v038>div.is-request{background:var(--brand-soft)}.refill-metrics-v038 span{display:block;font-size:9px;color:var(--muted);white-space:nowrap}.refill-metrics-v038 strong{display:block;margin-top:4px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.refill-metrics-v038 .is-request strong{color:var(--brand-ink)}
.refill-editor-v038{display:grid;gap:8px}.refill-approved-v038{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:end}.refill-approved-v038 label>span,.refill-source-native-v038 label>span{display:block;margin-bottom:4px;font-size:10px;font-weight:850;color:var(--muted)}.refill-approved-v038 .input{height:40px;font-size:16px;font-weight:850}.refill-use-suggested-v038{height:40px;padding-left:11px;padding-right:11px;white-space:nowrap;font-size:11px}
.refill-source-options-v038{display:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.refill-source-options-v038 button{height:36px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--muted);font-size:10px;font-weight:900;cursor:pointer}.refill-source-options-v038 button.active{border-color:var(--brand);background:var(--brand-soft);color:var(--brand-ink);box-shadow:inset 0 0 0 1px rgba(var(--brand-rgb),.1)}.refill-source-options-v038 button:disabled{cursor:not-allowed;opacity:.55}.refill-page-v038.is-js-ready .refill-source-options-v038{display:grid}.refill-page-v038.is-js-ready .refill-source-native-v038{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}
.refill-shortage-v038{padding:8px 10px;border-radius:10px;background:var(--danger-soft);color:var(--danger);font-size:10px;font-weight:850}.refill-note-v038{border-top:1px dashed var(--line);padding-top:7px}.refill-note-v038>summary{cursor:pointer;list-style:none;color:var(--muted);font-size:10px;font-weight:850}.refill-note-v038>summary::-webkit-details-marker{display:none}.refill-note-v038 .input{height:38px;margin-top:7px;font-size:12px}
.refill-empty-filter-v038{padding:30px 16px;border:1px dashed var(--line);border-radius:17px;background:#fff;text-align:center;color:var(--muted);font-weight:800}
.refill-plan-note-v038{border:1px solid var(--line);border-radius:15px;background:#fff;padding:11px 13px}.refill-plan-note-v038>summary{cursor:pointer;list-style:none;font-size:12px;font-weight:850;color:var(--muted)}.refill-plan-note-v038>summary::-webkit-details-marker{display:none}.refill-plan-note-v038 .textarea{margin-top:9px}
.refill-actionbar-v038{position:sticky;z-index:30;bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border:1px solid rgba(var(--brand-rgb),.25);border-radius:17px;background:rgba(255,255,255,.96);box-shadow:0 14px 34px rgba(31,55,72,.18);backdrop-filter:blur(12px)}.refill-actionbar-v038>div:first-child strong,.refill-actionbar-v038>div:first-child span{display:block}.refill-actionbar-v038>div:first-child strong{font-size:12px}.refill-actionbar-v038>div:first-child span{margin-top:2px;font-size:10px;color:var(--muted)}.refill-actionbar-v038>div:first-child span.is-danger{color:var(--danger);font-weight:850}.refill-action-buttons-v038{display:flex;gap:8px}.refill-action-buttons-v038 .btn{height:42px;white-space:nowrap}

@media(max-width:1100px){.refill-item-body-v038{grid-template-columns:1fr}.refill-metrics-v038{max-width:none}.refill-editor-v038{grid-template-columns:minmax(230px,.75fr) minmax(300px,1fr);align-items:end}.refill-approved-v038{grid-column:1}.refill-source-options-v038,.refill-source-native-v038{grid-column:2}.refill-shortage-v038,.refill-note-v038{grid-column:1/-1}}
@media(max-width:760px){.refill-page-v038{gap:10px}.refill-top-v038{grid-template-columns:minmax(0,1fr) auto;padding:11px 12px}.refill-date-box-v038{display:grid;gap:4px}.refill-date-box-v038 .input{width:100%;min-width:0}.refill-top-meta-v038{justify-content:flex-end;align-self:end}.refill-plan-no-v038{display:none}.refill-top-actions-v038{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.refill-top-actions-v038 form,.refill-top-actions-v038 .btn{width:100%}.refill-top-actions-v038 form:only-child{grid-column:1/-1}.refill-closing-v038>summary{padding:11px 12px}.refill-closing-v038>summary>span:first-child{display:block}.refill-closing-v038>summary small{margin-top:2px}.refill-closing-grid-v038{grid-template-columns:1fr;padding:0 10px 10px}.refill-summary-v038{gap:6px}.refill-summary-v038>div{padding:9px 8px;border-radius:12px}.refill-summary-v038 span{font-size:9px}.refill-summary-v038 strong{font-size:18px}.refill-filter-v038{padding:10px}.refill-filter-fields-v038{grid-template-columns:minmax(0,1.25fr) minmax(120px,.75fr);gap:7px}.refill-filter-fields-v038 label>span{margin-bottom:4px;font-size:9px}.refill-filter-fields-v038 .input,.refill-filter-fields-v038 .select{height:40px;padding-left:10px;padding-right:10px;font-size:12px}.refill-filter-chips-v038{margin-top:8px}.refill-branches-v038{gap:12px}.refill-branch-v038{border-radius:16px}.refill-branch-head-v038{padding:10px 12px}.refill-branch-head-v038 strong{font-size:14px}.refill-items-v038{gap:9px;padding:9px}.refill-item-v038{border-radius:14px}.refill-item-head-v038{padding:10px 10px 8px 13px}.refill-product-v038>strong{font-size:15px}.refill-item-body-v038{gap:9px;padding:9px 10px 11px 13px}.refill-metrics-v038{gap:5px}.refill-metrics-v038>div{padding:7px 4px}.refill-metrics-v038 span{font-size:8px}.refill-metrics-v038 strong{font-size:12px}.refill-editor-v038{display:grid;grid-template-columns:1fr}.refill-approved-v038,.refill-source-options-v038,.refill-source-native-v038,.refill-shortage-v038,.refill-note-v038{grid-column:1}.refill-source-options-v038{gap:4px}.refill-source-options-v038 button{height:35px;padding:0 3px}.refill-actionbar-v038{bottom:78px;padding:9px 10px;border-radius:15px}.refill-actionbar-v038>div:first-child span{display:none}.refill-action-buttons-v038{gap:6px}.refill-action-buttons-v038 .btn{height:40px;padding-left:11px;padding-right:11px;font-size:11px}}
@media(max-width:420px){.refill-summary-v038{grid-template-columns:repeat(4,minmax(72px,1fr));overflow-x:auto;padding-bottom:2px}.refill-summary-v038>div{min-width:72px}.refill-actionbar-v038>div:first-child{display:none}.refill-actionbar-v038{justify-content:stretch}.refill-action-buttons-v038{display:grid;grid-template-columns:1fr 1.2fr;width:100%}.refill-action-buttons-v038 .btn{width:100%}.refill-approved-v038{grid-template-columns:minmax(0,1fr) auto}.refill-use-suggested-v038{padding-left:8px;padding-right:8px}}

/* === v0.3.40 Refill workflow polish === */
.refill-page-v040{padding-bottom:10px}
.refill-plan-form-v040{display:grid;gap:16px;min-width:0}
.refill-filter-sticky-v040{position:sticky;top:92px;z-index:34;margin:0;background:rgba(255,255,255,.97);box-shadow:0 12px 30px rgba(31,55,72,.12);backdrop-filter:blur(14px)}
.refill-branches-v038{scroll-margin-top:220px}
.refill-approved-v040{grid-template-columns:minmax(0,1fr) auto;align-items:end}
.refill-approved-v040>label{min-width:0}
.refill-approved-control-v040{display:grid;grid-template-columns:minmax(0,1fr) minmax(106px,auto);gap:6px;align-items:stretch;min-width:0}
.refill-approved-control-v040 .input,.refill-approved-control-v040 .select,.refill-unit-static-v040{height:40px;min-width:0}
.refill-approved-control-v040 .input{border-radius:11px 8px 8px 11px}
.refill-unit-select-v040{max-width:180px;padding-left:10px;padding-right:30px;border-radius:8px 11px 11px 8px;font-size:12px;font-weight:850;background-color:var(--surface-2)}
.refill-unit-static-v040{display:flex;align-items:center;justify-content:center;min-width:92px;padding:0 12px;border:1px solid var(--line);border-radius:8px 11px 11px 8px;background:var(--surface-2);color:var(--text);font-size:12px;font-weight:850;white-space:nowrap}
.refill-branch-action-v040{display:inline-flex!important;align-items:center;min-height:22px;padding:3px 8px;border-radius:999px;font-size:9px!important;font-weight:900!important;line-height:1.2}
.refill-branch-action-v040.action-enough{background:#e9f8f0;color:#08764c!important}
.refill-branch-action-v040.action-zero{background:#fff0f1;color:#bd3341!important}
.refill-branch-action-v040.action-request{background:#fff3d9;color:#95600a!important}
.refill-branch-action-v040.action-counted{background:#eaf5fc;color:#24749e!important}
.refill-branch-action-v040.action-issue{background:#fff0f1;color:#bd3341!important}
.refill-branch-action-v040.action-pending{background:var(--surface-2);color:var(--muted)!important}
.refill-plan-note-v040{display:grid;gap:7px;padding:14px 15px}
.refill-plan-note-v040>label{font-size:12px;font-weight:900;color:var(--text)}
.refill-plan-note-v040 .textarea{margin:0;min-height:82px;resize:vertical}
.refill-autosave-state-v039{font-weight:800!important}
.refill-autosave-state-v039.is-saving{color:#9a6509!important}
.refill-autosave-state-v039.is-success{color:#08764c!important}
.refill-autosave-state-v039.is-error{color:var(--danger)!important}
.refill-actionbar-v038{z-index:38}
.refill-item-v038 .count-custom-numpad-input{cursor:pointer;background:#fff}

@media(max-width:1100px){
 .refill-approved-v040{grid-column:1}
}
@media(max-width:760px){
 .refill-page-v040{padding-bottom:108px}
 .refill-plan-form-v040{gap:13px}
 .refill-filter-sticky-v040{top:81px;z-index:34;margin-left:-2px;margin-right:-2px;border-radius:15px;box-shadow:0 10px 25px rgba(31,55,72,.13)}
 .refill-approved-v040{grid-template-columns:minmax(0,1fr) auto;gap:6px}
 .refill-approved-control-v040{grid-template-columns:minmax(0,1fr) minmax(94px,36%);gap:5px}
 .refill-unit-select-v040{width:100%;max-width:none;padding-left:8px;padding-right:27px;font-size:11px}
 .refill-unit-static-v040{min-width:82px;padding-left:8px;padding-right:8px;font-size:11px}
 .refill-branch-action-v040{font-size:8.5px!important;padding:3px 7px}
 .refill-plan-note-v040{padding:12px}
 .refill-plan-note-v040 .textarea{min-height:90px}
 .refill-actionbar-v038{bottom:82px;z-index:38}
 .bottom-nav.bottom-nav-central-v037{display:grid!important;z-index:100!important}
}
@media(max-width:420px){
 .refill-approved-v040{grid-template-columns:1fr}
 .refill-approved-v040 .refill-use-suggested-v038{width:100%}
 .refill-approved-control-v040{grid-template-columns:minmax(0,1fr) 98px}
 .refill-filter-sticky-v040{top:79px}
}

/* === v0.3.41 Refill responsive shell & sticky filters hotfix === */
.refill-page-v040,
.refill-page-v040 .refill-plan-form-v040,
.refill-page-v040 .refill-filter-v038,
.refill-page-v040 .refill-filter-fields-v038,
.refill-page-v040 .refill-branches-v038,
.refill-page-v040 .refill-branch-v038,
.refill-page-v040 .refill-items-v038,
.refill-page-v040 .refill-item-v038,
.refill-page-v040 .refill-item-head-v038,
.refill-page-v040 .refill-item-body-v038,
.refill-page-v040 .refill-editor-v038,
.refill-page-v040 .refill-approved-v040,
.refill-page-v040 .refill-approved-control-v040,
.refill-page-v040 .refill-plan-note-v040,
.refill-page-v040 .refill-actionbar-v038{min-width:0;max-width:100%}
.refill-page-v040 .refill-plan-form-v040{width:100%}
.refill-filter-sticky-v040{align-self:start;width:100%;isolation:isolate}

@media(max-width:1024px){
 .refill-page-v040{width:100%;padding-bottom:calc(184px + env(safe-area-inset-bottom))}
 .refill-page-v040 .refill-filter-fields-v038>label{min-width:0}
 .refill-page-v040 .refill-filter-fields-v038 .input,
 .refill-page-v040 .refill-filter-fields-v038 .select{min-width:0;max-width:100%}
 .refill-filter-sticky-v040{position:sticky!important;top:calc(72px + env(safe-area-inset-top));z-index:45!important;margin-left:0;margin-right:0;box-shadow:0 10px 26px rgba(31,55,72,.15)}
 .refill-actionbar-v038{bottom:calc(86px + env(safe-area-inset-bottom));z-index:80!important}
 .bottom-nav.refill-bottom-nav-v041{display:grid!important;position:fixed!important;left:max(8px,env(safe-area-inset-left))!important;right:max(8px,env(safe-area-inset-right))!important;bottom:max(8px,env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;height:auto!important;visibility:visible!important;opacity:1!important;transform:none!important;z-index:1200!important}
}

@media(max-width:760px){
 .refill-page-v040{padding-bottom:calc(192px + env(safe-area-inset-bottom))}
 .refill-page-v040 .refill-filter-fields-v038{grid-template-columns:minmax(0,1fr) minmax(108px,34%);gap:7px}
 .refill-page-v040 .refill-filter-chips-v038{width:100%;max-width:100%}
 .refill-page-v040 .refill-summary-v038{width:100%;max-width:100%}
 .refill-page-v040 .refill-branch-head-v038,
 .refill-page-v040 .refill-item-head-v038{min-width:0}
 .refill-page-v040 .refill-product-v038{min-width:0;overflow-wrap:anywhere}
 .refill-page-v040 .refill-source-badge-v038{max-width:42%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .refill-filter-sticky-v040{top:calc(74px + env(safe-area-inset-top));margin-left:0!important;margin-right:0!important;border-radius:15px}
 .refill-actionbar-v038{bottom:calc(84px + env(safe-area-inset-bottom))!important}
 .bottom-nav.refill-bottom-nav-v041{grid-template-columns:repeat(5,minmax(0,1fr))!important;padding-bottom:calc(7px + env(safe-area-inset-bottom))!important}
 .bottom-nav.refill-bottom-nav-v041 a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

@media(max-width:420px){
 .refill-page-v040 .refill-filter-fields-v038{grid-template-columns:minmax(0,1fr) 106px}
 .refill-filter-sticky-v040{top:calc(74px + env(safe-area-inset-top))}
}

/* === v0.3.42 Numpad / mobile bottom navigation layering hotfix === */
@media(max-width:1024px){
  /* The custom numpad owns the whole lower viewport while open. */
  body.count-numpad-open .bottom-nav,
  body.count-numpad-open .bottom-nav.refill-bottom-nav-v041{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateY(calc(100% + 28px))!important;
  }
  body.count-numpad-open .refill-actionbar-v038{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  /* Keep normal refill navigation below the numpad overlay stack. */
  .bottom-nav.refill-bottom-nav-v041{z-index:1100!important}
  .count-numpad-backdrop{z-index:1280!important}
  .count-numpad-sheet{z-index:1290!important}
}

/* v0.3.43 Purchase Planning Workspace */
.purchase-hero-v0343{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(135deg,#fff 0%,rgba(var(--brand-rgb),.07) 100%);box-shadow:var(--shadow)}
.purchase-hero-v0343 h2{margin:3px 0 5px;font-size:24px;line-height:1.15}.purchase-hero-v0343 p{margin:0;color:var(--muted);font-size:11px;font-weight:750}.purchase-eyebrow-v0343{color:var(--brand);font-size:9px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}.purchase-hero-actions-v0343{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.purchase-stats-v0343{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}.purchase-stats-v0343>div{padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 6px 18px rgba(24,45,60,.05)}.purchase-stats-v0343 span,.purchase-stats-v0343 strong{display:block}.purchase-stats-v0343 span{color:var(--muted);font-size:9px;font-weight:850}.purchase-stats-v0343 strong{margin-top:3px;font-size:21px}
.purchase-filter-v0343{position:sticky;top:78px;z-index:35;margin-top:12px;overflow:visible;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 9px 24px rgba(24,45,60,.08)}.purchase-filter-grid-v0343{display:grid;grid-template-columns:minmax(220px,1.25fr) minmax(180px,.75fr) minmax(180px,.75fr);gap:9px;padding:13px 14px}.purchase-filter-grid-v0343 .field{margin:0}.purchase-filter-chips-v0343{grid-column:1/-1;display:flex;gap:7px;overflow:auto;padding-bottom:1px;scrollbar-width:none}.purchase-filter-chips-v0343::-webkit-scrollbar{display:none}.purchase-filter-chips-v0343 button{flex:0 0 auto;border:1px solid var(--line);border-radius:999px;background:#fff;padding:8px 11px;color:var(--muted);font-size:10px;font-weight:900}.purchase-filter-chips-v0343 button.active{border-color:rgba(var(--brand-rgb),.36);background:rgba(var(--brand-rgb),.1);color:var(--brand)}.purchase-filter-chips-v0343 b{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:4px;border-radius:999px;background:var(--surface-2);font-size:9px}.purchase-filter-chips-v0343 button.active b{background:#fff}
.purchase-workspace-v0343{margin-top:16px}.purchase-item-list-v0343{display:grid;gap:14px}.purchase-item-card-v0343{overflow:hidden;border:1px solid var(--line);border-left:4px solid #cbd8df;border-radius:20px;background:#fff;box-shadow:0 8px 24px rgba(24,45,60,.06);transition:border-color .18s,box-shadow .18s,background .18s}.purchase-item-card-v0343.is-adjusted{border-left-color:#e0a43c}.purchase-item-card-v0343.has-allocation-error{border-color:rgba(198,61,71,.55);box-shadow:0 0 0 3px rgba(198,61,71,.08)}.purchase-item-card-v0343[hidden]{display:none!important}
.purchase-item-head-v0343{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:15px 16px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff 0%,#fbfcfd 100%)}.purchase-product-v0343{display:flex;align-items:center;gap:11px;min-width:0}.purchase-product-v0343 img,.purchase-product-placeholder-v0343{width:48px;height:48px;flex:0 0 48px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2);object-fit:cover}.purchase-product-placeholder-v0343{display:grid;place-items:center;color:var(--muted);font-size:20px}.purchase-product-v0343>div{min-width:0}.purchase-product-v0343 h3{margin:0;font-size:17px;line-height:1.25}.purchase-product-v0343 p{margin:4px 0 0;color:var(--muted);font-size:9px;font-weight:800}.purchase-badges-v0343{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.purchase-origin-v0343,.purchase-delta-v0343{display:inline-flex;align-items:center;min-height:26px;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:900}.purchase-origin-v0343.is-plan{background:rgba(53,121,175,.1);color:#245f8d}.purchase-origin-v0343.is-manual{background:rgba(138,91,179,.11);color:#6d3e92}.purchase-delta-v0343{background:var(--surface-2);color:var(--muted)}.purchase-item-card-v0343.is-adjusted .purchase-delta-v0343{background:#fff1da;color:#936018}
.purchase-item-main-v0343{display:grid;grid-template-columns:minmax(210px,.9fr) minmax(210px,1fr) minmax(220px,1.15fr);gap:10px;padding:14px 16px}.purchase-item-main-v0343 .field{margin:0}.purchase-number-unit-v0343{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;overflow:hidden;border:1px solid var(--line);border-radius:13px;background:#fff}.purchase-number-unit-v0343 .input{min-width:0;border:0;border-radius:0;box-shadow:none;font-size:16px;font-weight:900}.purchase-number-unit-v0343>span{display:grid;place-items:center;min-width:70px;align-self:stretch;padding:0 11px;border-left:1px solid var(--line);background:var(--surface-2);font-size:10px;font-weight:900;color:var(--muted)}.purchase-qty-field-v0343>small,.purchase-item-main-v0343 .field>small{display:block;margin-top:5px;color:var(--muted);font-size:8px;font-weight:750}
.purchase-allocation-v0343{margin:0 16px 15px;padding:13px;border:1px solid var(--line);border-radius:16px;background:#f9fbfc}.purchase-allocation-head-v0343{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.purchase-allocation-head-v0343 strong,.purchase-allocation-head-v0343 span{display:block}.purchase-allocation-head-v0343 strong{font-size:12px}.purchase-allocation-head-v0343 span{margin-top:2px;color:var(--muted);font-size:8px;font-weight:750}.purchase-allocation-total-v0343{text-align:right}.purchase-allocation-total-v0343 strong{font-size:13px;color:var(--brand)}.purchase-allocation-list-v0343{display:grid;gap:7px}.purchase-allocation-row-v0343{display:grid;grid-template-columns:minmax(170px,1.3fr) minmax(180px,.8fr) auto;align-items:center;gap:9px;padding:9px;border:1px solid var(--line);border-radius:13px;background:#fff}.purchase-allocation-location-v0343{min-width:0}.purchase-allocation-location-v0343 strong,.purchase-allocation-location-v0343 span{display:block}.purchase-allocation-location-v0343 strong{font-size:11px}.purchase-allocation-location-v0343 span{margin-top:3px;color:var(--muted);font-size:8px;font-weight:750}.purchase-allocation-location-v0343 .select{width:100%;min-height:39px}.purchase-allocation-delta-v0343{min-width:56px;text-align:center;color:var(--muted);font-size:9px;font-weight:900}.purchase-allocation-delta-v0343.is-changed{color:#9b6217}.purchase-add-destination-v0343{margin-top:8px;border:0;background:transparent;color:var(--brand);font-size:10px;font-weight:900;cursor:pointer}.purchase-remove-allocation-v0343{display:grid;place-items:center;width:31px;height:31px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--danger);font-size:18px}.purchase-allocation-warning-v0343{margin-top:9px;padding:9px 11px;border-radius:11px;background:var(--danger-soft);color:var(--danger);font-size:9px;font-weight:850;line-height:1.5}.purchase-item-remove-wrap-v0343{padding:0 16px 14px;text-align:right}
.purchase-actionbar-v0343{position:sticky;bottom:16px;z-index:55;display:flex;align-items:center;justify-content:space-between;gap:14px;margin:16px 0;padding:11px 13px;border:1px solid rgba(var(--brand-rgb),.22);border-radius:16px;background:rgba(255,255,255,.97);box-shadow:0 12px 34px rgba(24,45,60,.16);backdrop-filter:blur(12px)}.purchase-actionbar-v0343>div{font-size:11px;font-weight:900}.purchase-actionbar-v0343 small{display:block;margin-top:2px;color:var(--muted);font-size:8px}.purchase-note-card-v0343{margin-top:15px}.purchase-order-note-v0343{margin:0;color:var(--muted);font-size:11px;line-height:1.7}.purchase-history-v0343{margin-top:14px;overflow:hidden}.purchase-history-v0343 summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 17px;cursor:pointer;font-size:12px;font-weight:900}.purchase-history-v0343 summary span{color:var(--muted);font-size:9px}.purchase-history-list-v0343{display:grid;border-top:1px solid var(--line)}.purchase-history-list-v0343>div{display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:10px;padding:10px 16px;border-bottom:1px solid var(--line)}.purchase-history-list-v0343 span,.purchase-history-list-v0343 small{color:var(--muted);font-size:8px;font-weight:750}.purchase-history-list-v0343 strong{font-size:10px}
.purchase-add-modal-v0343[hidden]{display:none!important}.purchase-add-modal-v0343{position:fixed;inset:0;z-index:1250;display:grid;place-items:center;padding:16px;background:rgba(19,33,43,.55);backdrop-filter:blur(4px)}body.purchase-modal-open-v0343{overflow:hidden}.purchase-add-dialog-v0343{width:min(720px,100%);max-height:calc(100vh - 32px);overflow:auto;border-radius:22px;background:#fff;box-shadow:0 28px 90px rgba(12,26,35,.36)}.purchase-add-head-v0343{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:17px 19px;border-bottom:1px solid var(--line);background:#fff}.purchase-add-head-v0343 strong,.purchase-add-head-v0343 span{display:block}.purchase-add-head-v0343 strong{font-size:17px}.purchase-add-head-v0343 span{margin-top:3px;color:var(--muted);font-size:9px;font-weight:750}.purchase-add-head-v0343 button{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:11px;background:var(--surface-2);font-size:23px;color:var(--muted)}.purchase-add-body-v0343{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:18px 19px}.purchase-add-body-v0343 .field{margin:0}.purchase-add-product-v0343,.purchase-add-note-v0343,.purchase-add-actions-v0343{grid-column:1/-1}.purchase-add-actions-v0343{display:flex;justify-content:flex-end;gap:8px;padding-top:5px}
body.count-numpad-open .purchase-actionbar-v0343{display:none!important}

@media(max-width:1024px){
 .purchase-filter-v0343{top:70px}.purchase-actionbar-v0343{bottom:84px}.purchase-workspace-v0343{padding-bottom:82px}
 .purchase-item-main-v0343{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-item-note-v0343{grid-column:1/-1}
}
@media(max-width:760px){
 .purchase-hero-v0343{align-items:flex-start;padding:15px;border-radius:18px}.purchase-hero-v0343 h2{font-size:19px}.purchase-hero-actions-v0343{justify-content:flex-end}.purchase-hero-actions-v0343 .btn{min-height:39px;padding:9px 11px;font-size:10px}
 .purchase-stats-v0343{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.purchase-stats-v0343>div{padding:10px 8px;border-radius:13px}.purchase-stats-v0343 span{font-size:7px}.purchase-stats-v0343 strong{font-size:16px}
 .purchase-filter-v0343{top:67px;margin-left:-2px;margin-right:-2px}.purchase-filter-grid-v0343{grid-template-columns:minmax(0,1.25fr) minmax(120px,.75fr);gap:7px;padding:10px}.purchase-filter-grid-v0343 .field:nth-child(3){grid-column:1/-1}.purchase-filter-grid-v0343 .field>span{font-size:8px}.purchase-filter-grid-v0343 .input,.purchase-filter-grid-v0343 .select{min-height:42px;padding-top:8px;padding-bottom:8px}.purchase-filter-chips-v0343{margin-left:-2px;margin-right:-2px}.purchase-filter-chips-v0343 button{padding:7px 9px;font-size:9px}
 .purchase-workspace-v0343{margin-top:13px}.purchase-item-list-v0343{gap:11px}.purchase-item-card-v0343{border-radius:17px}.purchase-item-head-v0343{padding:12px}.purchase-product-v0343 img,.purchase-product-placeholder-v0343{width:42px;height:42px;flex-basis:42px}.purchase-product-v0343 h3{font-size:15px}.purchase-badges-v0343{max-width:42%}.purchase-origin-v0343,.purchase-delta-v0343{padding:4px 7px;font-size:8px}
 .purchase-item-main-v0343{grid-template-columns:1fr;padding:11px 12px}.purchase-item-note-v0343{grid-column:auto}.purchase-number-unit-v0343>span{min-width:62px;padding:0 8px}.purchase-number-unit-v0343 .input{min-height:46px}
 .purchase-allocation-v0343{margin:0 12px 12px;padding:10px}.purchase-allocation-head-v0343{align-items:flex-start}.purchase-allocation-row-v0343{grid-template-columns:minmax(0,1fr) minmax(125px,.72fr);gap:7px}.purchase-allocation-delta-v0343{grid-column:1/-1;text-align:left}.purchase-allocation-row-v0343.is-new{grid-template-columns:1fr}.purchase-allocation-row-v0343.is-new .purchase-remove-allocation-v0343{position:absolute;right:24px}.purchase-allocation-location-v0343 span{line-height:1.45}
 .purchase-actionbar-v0343{left:8px;right:8px;bottom:82px;margin:12px 0;padding:9px 10px}.purchase-actionbar-v0343 .btn{min-height:42px}.purchase-actionbar-v0343>div{font-size:10px}
 .purchase-history-list-v0343>div{grid-template-columns:1fr}.purchase-history-list-v0343 span{order:2}.purchase-history-list-v0343 small{order:3}
 .purchase-add-modal-v0343{align-items:end;padding:0}.purchase-add-dialog-v0343{width:100%;max-height:92vh;border-radius:22px 22px 0 0}.purchase-add-body-v0343{grid-template-columns:1fr;padding:15px}.purchase-add-product-v0343,.purchase-add-note-v0343,.purchase-add-actions-v0343{grid-column:auto}.purchase-add-actions-v0343{display:grid;grid-template-columns:1fr 1fr;position:sticky;bottom:0;padding:10px 0 0;background:#fff}
}
@media(max-width:420px){.purchase-hero-v0343{display:block}.purchase-hero-actions-v0343{margin-top:10px;justify-content:space-between}.purchase-filter-grid-v0343{grid-template-columns:1fr}.purchase-filter-grid-v0343 .field:nth-child(3){grid-column:auto}.purchase-stats-v0343{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-item-head-v0343{display:block}.purchase-badges-v0343{max-width:none;justify-content:flex-start;margin-top:8px}.purchase-allocation-row-v0343{grid-template-columns:1fr}.purchase-allocation-delta-v0343{grid-column:auto}.purchase-number-unit-v0343>span{min-width:58px}}
.purchase-allocation-row-v0343{position:relative}

/* v0.3.44 Purchase Shopping Checklist */
.purchase-list-actions-v0344{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.purchase-checklist-hero-v0344{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border:1px solid var(--line);border-radius:21px;background:linear-gradient(135deg,#fff 0%,rgba(var(--brand-rgb),.07) 100%);box-shadow:var(--shadow)}
.purchase-checklist-hero-v0344>div:first-child>span{color:var(--brand);font-size:9px;font-weight:950;letter-spacing:.07em;text-transform:uppercase}.purchase-checklist-hero-v0344 h2{margin:4px 0;font-size:23px}.purchase-checklist-hero-v0344 p{margin:0;color:var(--muted);font-size:10px;font-weight:750}.purchase-checklist-hero-actions-v0344{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.purchase-checklist-toolbar-v0344{position:sticky;top:78px;z-index:38;margin-top:12px;padding:12px 13px;overflow:visible;background:rgba(255,255,255,.97);box-shadow:0 10px 28px rgba(25,47,62,.12);backdrop-filter:blur(13px);-webkit-backdrop-filter:blur(13px)}
.purchase-checklist-progress-v0344{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.purchase-checklist-progress-v0344>div:not(.purchase-checklist-progress-bar-v0344){padding:8px 10px;border-radius:12px;background:var(--surface-2)}.purchase-checklist-progress-v0344 span,.purchase-checklist-progress-v0344 strong{display:block}.purchase-checklist-progress-v0344 span{color:var(--muted);font-size:8px;font-weight:850}.purchase-checklist-progress-v0344 strong{margin-top:2px;font-size:15px}.purchase-checklist-progress-bar-v0344{grid-column:1/-1;height:6px;overflow:hidden;border-radius:999px;background:#e8eef2}.purchase-checklist-progress-bar-v0344 i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--brand),#62b99a);transition:width .2s}
.purchase-checklist-filters-v0344{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,.55fr);gap:8px;margin-top:9px}.purchase-checklist-filters-v0344 label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px;padding:0 10px;border:1px solid var(--line);border-radius:12px;background:#fff}.purchase-checklist-filters-v0344 label span{color:var(--muted);font-size:16px}.purchase-checklist-filters-v0344 input{min-width:0;height:40px;border:0;outline:0;background:transparent;font:inherit;font-size:10px;font-weight:750}.purchase-checklist-filters-v0344 .select{min-height:42px;height:42px}
.purchase-checklist-chips-v0344{display:flex;gap:7px;margin-top:8px;overflow:auto;scrollbar-width:none}.purchase-checklist-chips-v0344::-webkit-scrollbar{display:none}.purchase-checklist-chips-v0344 button{flex:0 0 auto;border:1px solid var(--line);border-radius:999px;background:#fff;padding:7px 10px;color:var(--muted);font-size:9px;font-weight:900}.purchase-checklist-chips-v0344 button.active{border-color:rgba(var(--brand-rgb),.35);background:rgba(var(--brand-rgb),.1);color:var(--brand)}.purchase-checklist-chips-v0344 b{display:inline-grid;place-items:center;min-width:19px;height:19px;margin-left:3px;border-radius:999px;background:var(--surface-2);font-size:8px}
.purchase-checklist-groups-v0344{display:grid;gap:16px;margin-top:16px;padding-bottom:96px}.purchase-checklist-supplier-v0344{overflow:hidden;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 8px 24px rgba(25,47,62,.06)}.purchase-checklist-supplier-v0344[hidden]{display:none!important}.purchase-checklist-supplier-v0344>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fbfdfd,#f5faf8)}.purchase-checklist-supplier-v0344>header span{display:block;color:var(--muted);font-size:8px;font-weight:850}.purchase-checklist-supplier-v0344>header h3{margin:2px 0 0;font-size:15px}.purchase-checklist-supplier-v0344>header>b{padding:5px 8px;border-radius:999px;background:#fff;color:var(--muted);font-size:9px}.purchase-checklist-list-v0344{display:grid;gap:10px;padding:11px}
.purchase-checklist-item-v0344{border:1px solid var(--line);border-left:4px solid #cbd7de;border-radius:16px;background:#fff;box-shadow:0 4px 14px rgba(25,47,62,.04);transition:border-color .18s,background .18s,box-shadow .18s}.purchase-checklist-item-v0344[hidden]{display:none!important}.purchase-checklist-item-v0344.status-bought{border-left-color:#20a46e;background:#f5fcf8}.purchase-checklist-item-v0344.status-partial{border-left-color:#e0a03a;background:#fffaf1}.purchase-checklist-item-v0344.status-unavailable{border-left-color:#d85e67;background:#fff7f7}.purchase-checklist-item-v0344[data-saving="1"]{box-shadow:0 0 0 3px rgba(var(--brand-rgb),.08)}
.purchase-checklist-item-head-v0344{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:11px 12px 8px}.purchase-checklist-product-v0344{display:flex;align-items:center;gap:9px;min-width:0}.purchase-checklist-product-v0344 img,.purchase-checklist-product-v0344>span{width:42px;height:42px;flex:0 0 42px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);object-fit:cover}.purchase-checklist-product-v0344>span{display:grid;place-items:center;color:var(--muted)}.purchase-checklist-product-v0344>div{min-width:0}.purchase-checklist-product-v0344 h4{margin:0;font-size:15px;line-height:1.25}.purchase-checklist-product-v0344 p{margin:3px 0 0;color:var(--muted);font-size:8px;font-weight:800}.purchase-checklist-state-v0344{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:var(--surface-2);color:var(--muted);font-size:8px;font-weight:900}.status-bought .purchase-checklist-state-v0344{background:#ddf5e9;color:#137a50}.status-partial .purchase-checklist-state-v0344{background:#fff0d6;color:#96601a}.status-unavailable .purchase-checklist-state-v0344{background:#fde3e5;color:#a73842}
.purchase-checklist-destinations-v0344{display:flex;gap:5px;padding:0 12px 9px;overflow:auto;scrollbar-width:none}.purchase-checklist-destinations-v0344::-webkit-scrollbar{display:none}.purchase-checklist-destinations-v0344 span{flex:0 0 auto;padding:5px 7px;border-radius:9px;background:var(--surface-2);color:var(--muted);font-size:8px;font-weight:750}.purchase-checklist-destinations-v0344 b{color:var(--text)}
.purchase-checklist-status-buttons-v0344{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:0 12px 10px}.purchase-checklist-status-buttons-v0344 button{min-width:0;min-height:37px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--muted);font-size:9px;font-weight:900}.purchase-checklist-status-buttons-v0344 button.active{border-color:#aebdc6;background:var(--surface-2);color:var(--text);box-shadow:inset 0 0 0 1px rgba(40,64,78,.05)}.purchase-checklist-status-buttons-v0344 button.is-bought.active{border-color:#51b98d;background:#dff6eb;color:#14764f}.purchase-checklist-status-buttons-v0344 button.is-partial.active{border-color:#e8ba6e;background:#fff1d9;color:#936018}.purchase-checklist-status-buttons-v0344 button.is-unavailable.active{border-color:#e69aa0;background:#fee8ea;color:#a33741}
.purchase-checklist-fields-v0344{display:grid;grid-template-columns:minmax(170px,.75fr) minmax(170px,.7fr) 120px minmax(200px,1fr);gap:8px;padding:10px 12px;border-top:1px solid var(--line);background:rgba(248,251,252,.72)}.purchase-checklist-fields-v0344 .field{margin:0}.purchase-checklist-note-field-v0344{grid-column:1/-1}.purchase-checklist-number-unit-v0344,.purchase-checklist-price-v0344{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;overflow:hidden;border:1px solid var(--line);border-radius:11px;background:#fff}.purchase-checklist-number-unit-v0344 .input,.purchase-checklist-price-v0344 .input{min-width:0;border:0;border-radius:0;box-shadow:none;font-size:14px;font-weight:900}.purchase-checklist-number-unit-v0344 b,.purchase-checklist-price-v0344 span{display:grid;place-items:center;align-self:stretch;min-width:52px;padding:0 8px;border-left:1px solid var(--line);background:var(--surface-2);color:var(--muted);font-size:9px;font-weight:900}.purchase-checklist-price-v0344{grid-template-columns:auto minmax(0,1fr)}.purchase-checklist-price-v0344 span{border-right:1px solid var(--line);border-left:0}.purchase-checklist-total-v0344{display:flex;flex-direction:column;justify-content:center;padding:8px 10px;border:1px solid var(--line);border-radius:11px;background:#fff}.purchase-checklist-total-v0344 span{color:var(--muted);font-size:8px;font-weight:850}.purchase-checklist-total-v0344 strong{margin-top:2px;font-size:15px}
.purchase-checklist-item-foot-v0344{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 12px;border-top:1px solid var(--line);color:var(--muted);font-size:8px;font-weight:750}.purchase-checklist-item-foot-v0344 span.is-saving{color:#a66d1e}.purchase-checklist-item-foot-v0344 span.is-saved{color:#168057}.purchase-checklist-item-foot-v0344 span.is-error{color:var(--danger)}
.purchase-checklist-actionbar-v0344{position:fixed;left:calc(var(--sidebar-width) + 22px);right:22px;bottom:18px;z-index:70;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;border:1px solid rgba(var(--brand-rgb),.22);border-radius:16px;background:rgba(255,255,255,.98);box-shadow:0 14px 36px rgba(25,47,62,.18);backdrop-filter:blur(13px)}.purchase-checklist-actionbar-v0344>div span,.purchase-checklist-actionbar-v0344>div small{display:block}.purchase-checklist-actionbar-v0344>div span{font-size:10px;font-weight:900}.purchase-checklist-actionbar-v0344>div small{margin-top:2px;color:var(--muted);font-size:8px}.purchase-checklist-actionbar-v0344 .btn{min-height:42px}
body.count-numpad-open .purchase-checklist-actionbar-v0344{display:none!important}

@media(max-width:1024px){
 .purchase-checklist-toolbar-v0344{top:70px}.purchase-checklist-groups-v0344{padding-bottom:174px}.purchase-checklist-actionbar-v0344{left:10px;right:10px;bottom:calc(82px + env(safe-area-inset-bottom));z-index:78}.purchase-checklist-fields-v0344{grid-template-columns:1fr 1fr 110px}.purchase-checklist-supplier-field-v0344{grid-column:1/-1}
}
@media(max-width:760px){
 .purchase-list-actions-v0344{display:grid;grid-template-columns:1fr 1fr;margin-top:10px}.purchase-list-actions-v0344 .btn{width:100%}
 .purchase-checklist-hero-v0344{align-items:flex-start;padding:13px 14px;border-radius:17px}.purchase-checklist-hero-v0344 h2{font-size:18px}.purchase-checklist-hero-v0344 p{font-size:8px}.purchase-checklist-hero-actions-v0344{max-width:135px}.purchase-checklist-hero-actions-v0344 .btn{padding:8px 9px;font-size:9px}
 .purchase-checklist-toolbar-v0344{top:67px;margin-top:9px;padding:9px;border-radius:15px}.purchase-checklist-progress-v0344{gap:5px}.purchase-checklist-progress-v0344>div:not(.purchase-checklist-progress-bar-v0344){padding:6px 7px}.purchase-checklist-progress-v0344 strong{font-size:13px}.purchase-checklist-filters-v0344{grid-template-columns:minmax(0,1fr) 118px;gap:6px}.purchase-checklist-filters-v0344 input{height:38px;font-size:9px}.purchase-checklist-filters-v0344 .select{min-height:40px;height:40px;padding:7px;font-size:9px}.purchase-checklist-chips-v0344{margin-left:-2px;margin-right:-2px}.purchase-checklist-chips-v0344 button{padding:6px 8px;font-size:8px}
 .purchase-checklist-groups-v0344{gap:12px;margin-top:12px}.purchase-checklist-supplier-v0344{border-radius:16px}.purchase-checklist-supplier-v0344>header{padding:10px 12px}.purchase-checklist-list-v0344{gap:9px;padding:8px}.purchase-checklist-item-v0344{border-radius:14px}.purchase-checklist-item-head-v0344{padding:9px 9px 7px}.purchase-checklist-product-v0344 img,.purchase-checklist-product-v0344>span{width:38px;height:38px;flex-basis:38px}.purchase-checklist-product-v0344 h4{font-size:14px}.purchase-checklist-state-v0344{padding:4px 6px}.purchase-checklist-destinations-v0344{padding:0 9px 7px}.purchase-checklist-status-buttons-v0344{gap:4px;padding:0 9px 8px}.purchase-checklist-status-buttons-v0344 button{min-height:35px;padding:4px 2px;font-size:8px}.purchase-checklist-fields-v0344{grid-template-columns:1fr 1fr;gap:6px;padding:8px 9px}.purchase-checklist-total-v0344{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between}.purchase-checklist-supplier-field-v0344,.purchase-checklist-note-field-v0344{grid-column:1/-1}.purchase-checklist-item-foot-v0344{padding:6px 9px}
 .purchase-checklist-actionbar-v0344{padding:8px 9px}.purchase-checklist-actionbar-v0344>div small{display:none}.purchase-checklist-actionbar-v0344 .btn{min-height:40px;padding:8px 10px;font-size:9px}
}
@media(max-width:390px){.purchase-checklist-status-buttons-v0344{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-checklist-fields-v0344{grid-template-columns:1fr}.purchase-checklist-total-v0344,.purchase-checklist-supplier-field-v0344,.purchase-checklist-note-field-v0344{grid-column:auto}.purchase-checklist-hero-actions-v0344{max-width:118px}}

/* v0.3.45 — Purchase Checklist: product-first, quantity-first mobile workflow */
.purchase-checklist-hero-v0345{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(135deg,#f9fcfc,#eef8f6);box-shadow:0 8px 24px rgba(25,47,62,.06)}
.purchase-checklist-hero-v0345>div:first-child span{display:block;color:var(--muted);font-size:9px;font-weight:850}.purchase-checklist-hero-v0345 h2{margin:3px 0 0;font-size:22px}.purchase-checklist-hero-v0345 p{margin:4px 0 0;color:var(--muted);font-size:10px;font-weight:750}.purchase-checklist-hero-actions-v0345{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.purchase-checklist-toolbar-v0345{position:sticky;top:80px;z-index:48;margin-top:14px;padding:12px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.97);box-shadow:0 12px 30px rgba(25,47,62,.10);backdrop-filter:blur(14px)}
.purchase-checklist-progress-v0345{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.purchase-checklist-progress-v0345>div:not(.purchase-checklist-progress-bar-v0345){padding:9px 11px;border-radius:13px;background:var(--surface-2)}.purchase-checklist-progress-v0345 span,.purchase-checklist-progress-v0345 small{display:block;color:var(--muted);font-size:8px;font-weight:850}.purchase-checklist-progress-v0345 strong{display:block;margin-top:2px;font-size:18px;line-height:1}.purchase-checklist-progress-bar-v0345{grid-column:1/-1;height:6px;overflow:hidden;border-radius:999px;background:#e8eef1}.purchase-checklist-progress-bar-v0345 i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#10a39a,#74c49b);transition:width .2s ease}
.purchase-checklist-search-v0345{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;margin-top:10px;padding:0 11px;border:1px solid var(--line);border-radius:13px;background:#fff}.purchase-checklist-search-v0345 span{color:var(--muted)}.purchase-checklist-search-v0345 input{width:100%;height:42px;border:0;outline:0;background:transparent;color:var(--text);font:inherit}
.purchase-checklist-chips-v0345{display:flex;gap:7px;margin-top:9px;overflow:auto;scrollbar-width:none}.purchase-checklist-chips-v0345::-webkit-scrollbar{display:none}.purchase-checklist-chips-v0345 button{flex:0 0 auto;min-height:33px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-size:9px;font-weight:900}.purchase-checklist-chips-v0345 button.active{border-color:rgba(var(--brand-rgb),.35);background:rgba(var(--brand-rgb),.1);color:var(--brand)}.purchase-checklist-chips-v0345 b{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:3px;border-radius:999px;background:var(--surface-2);font-size:8px}
.purchase-checklist-products-v0345{display:grid;gap:14px;margin-top:16px;padding-bottom:108px}.purchase-checklist-product-card-v0345{overflow:hidden;border:1px solid var(--line);border-left:4px solid #cbd7de;border-radius:20px;background:#fff;box-shadow:0 8px 24px rgba(25,47,62,.06);transition:border-color .18s,background .18s}.purchase-checklist-product-card-v0345[hidden]{display:none!important}.purchase-checklist-product-card-v0345.is-complete{border-left-color:#25a86f;background:#f7fcf9}.purchase-checklist-product-card-v0345.is-partial{border-left-color:#e0a03a;background:#fffaf2}.purchase-checklist-product-card-v0345.is-unavailable{border-left-color:#d85e67;background:#fff8f8}
.purchase-checklist-product-head-v0345{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;padding:13px 14px 10px}.purchase-checklist-image-button-v0345,.purchase-checklist-image-placeholder-v0345{width:52px;height:52px;flex:0 0 52px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2);overflow:hidden}.purchase-checklist-image-button-v0345{padding:0;cursor:zoom-in}.purchase-checklist-image-button-v0345 img{width:100%;height:100%;display:block;object-fit:cover}.purchase-checklist-image-placeholder-v0345{display:grid;place-items:center;color:var(--muted)}.purchase-checklist-product-head-v0345 h3{margin:0;font-size:19px;line-height:1.2;font-weight:950}.purchase-checklist-product-head-v0345 p{margin:4px 0 0;color:var(--muted);font-size:9px;font-weight:800}.purchase-checklist-product-state-v0345{padding:6px 9px;border-radius:999px;background:var(--surface-2);color:var(--muted);font-size:8px;font-weight:900}.is-complete .purchase-checklist-product-state-v0345{background:#ddf5e9;color:#14764f}
.purchase-checklist-total-needed-v0345{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 13px 11px;padding:11px 12px;border:1px solid rgba(var(--brand-rgb),.18);border-radius:14px;background:linear-gradient(135deg,rgba(var(--brand-rgb),.08),rgba(var(--brand-rgb),.03))}.purchase-checklist-total-needed-v0345>span{color:var(--muted);font-size:9px;font-weight:900}.purchase-checklist-total-needed-v0345>div{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.purchase-checklist-total-needed-v0345 b{padding:6px 9px;border-radius:10px;background:#fff;color:var(--text);font-size:16px;line-height:1;box-shadow:0 2px 8px rgba(25,47,62,.05)}.purchase-checklist-total-needed-v0345 small{color:var(--muted);font-size:9px}
.purchase-checklist-unit-list-v0345{display:grid;gap:9px;padding:0 11px 11px}.purchase-checklist-unit-v0345{padding:11px;border:1px solid var(--line);border-radius:15px;background:#fff}.purchase-checklist-unit-v0345.status-bought{border-color:#a9dfc6;background:#f4fbf7}.purchase-checklist-unit-v0345.status-partial{border-color:#efd19b;background:#fffaf1}.purchase-checklist-unit-v0345.status-unavailable{border-color:#efb8bd;background:#fff7f8}.purchase-checklist-unit-v0345[data-saving="1"]{box-shadow:0 0 0 3px rgba(var(--brand-rgb),.08)}
.purchase-checklist-target-v0345{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:2px 1px 9px}.purchase-checklist-target-v0345>span{color:var(--muted);font-size:9px;font-weight:900}.purchase-checklist-target-v0345 strong{font-size:26px;line-height:1;font-weight:950;color:var(--text)}.purchase-checklist-target-v0345 small{color:var(--muted);font-size:11px;font-weight:900}
.purchase-checklist-destinations-v0345{display:flex;gap:6px;margin-bottom:9px;overflow:auto;scrollbar-width:none}.purchase-checklist-destinations-v0345::-webkit-scrollbar{display:none}.purchase-checklist-destinations-v0345 span{flex:0 0 auto;padding:5px 7px;border-radius:9px;background:var(--surface-2);color:var(--muted);font-size:8px;font-weight:750}.purchase-checklist-destinations-v0345 b{color:var(--text)}
.purchase-checklist-status-buttons-v0345{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.purchase-checklist-status-buttons-v0345 button{min-width:0;min-height:39px;padding:5px 4px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--muted);font-size:9px;font-weight:900}.purchase-checklist-status-buttons-v0345 button.active{border-color:#aebdc6;background:var(--surface-2);color:var(--text)}.purchase-checklist-status-buttons-v0345 button.is-bought.active{border-color:#51b98d;background:#dff6eb;color:#14764f}.purchase-checklist-status-buttons-v0345 button.is-partial.active{border-color:#e8ba6e;background:#fff1d9;color:#936018}.purchase-checklist-status-buttons-v0345 button.is-unavailable.active{border-color:#e69aa0;background:#fee8ea;color:#a33741}
.purchase-checklist-unit-meta-v0345{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;color:var(--muted);font-size:8px;font-weight:750}.purchase-checklist-unit-meta-v0345 span.is-saving{color:#a66d1e}.purchase-checklist-unit-meta-v0345 span.is-saved{color:#168057}.purchase-checklist-unit-meta-v0345 span.is-error{color:var(--danger)}.purchase-checklist-unit-meta-v0345 button{border:0;background:transparent;color:var(--brand);font-size:8px;font-weight:900}.purchase-checklist-note-panel-v0345{margin-top:8px}.purchase-checklist-note-panel-v0345[hidden]{display:none!important}.purchase-checklist-note-panel-v0345 label span{display:block;margin-bottom:5px;color:var(--muted);font-size:8px;font-weight:900}.purchase-checklist-note-panel-v0345 textarea{width:100%;resize:vertical}
.purchase-checklist-actionbar-v0345{position:fixed;left:calc(var(--sidebar-width) + 22px);right:22px;bottom:18px;z-index:70;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;border:1px solid rgba(var(--brand-rgb),.22);border-radius:16px;background:rgba(255,255,255,.98);box-shadow:0 14px 36px rgba(25,47,62,.18);backdrop-filter:blur(13px)}.purchase-checklist-actionbar-v0345>div span,.purchase-checklist-actionbar-v0345>div small{display:block}.purchase-checklist-actionbar-v0345>div span{font-size:10px;font-weight:900}.purchase-checklist-actionbar-v0345>div small{margin-top:2px;color:var(--muted);font-size:8px}.purchase-checklist-actionbar-v0345 .btn{min-height:42px}
.purchase-checklist-image-modal-v0345{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:22px;background:rgba(11,25,35,.82);backdrop-filter:blur(7px)}.purchase-checklist-image-modal-v0345[hidden]{display:none!important}.purchase-checklist-image-modal-v0345>div{max-width:min(92vw,760px);max-height:86vh;text-align:center}.purchase-checklist-image-modal-v0345 img{display:block;max-width:100%;max-height:78vh;margin:auto;border-radius:18px;background:#fff;object-fit:contain;box-shadow:0 18px 70px rgba(0,0,0,.35)}.purchase-checklist-image-modal-v0345 p{margin:10px 0 0;color:#fff;font-size:14px;font-weight:900}.purchase-checklist-image-close-v0345{position:absolute;top:calc(16px + env(safe-area-inset-top));right:16px;width:42px;height:42px;border:0;border-radius:999px;background:#fff;color:#243845;font-size:25px;line-height:1}.purchase-image-open-v0345{overflow:hidden}.purchase-image-open-v0345 .bottom-nav,.purchase-image-open-v0345 .purchase-checklist-actionbar-v0345{display:none!important}
@media(max-width:1024px){.purchase-checklist-toolbar-v0345{top:70px}.purchase-checklist-products-v0345{padding-bottom:176px}.purchase-checklist-actionbar-v0345{left:10px;right:10px;bottom:calc(82px + env(safe-area-inset-bottom));z-index:78}}
@media(max-width:700px){.purchase-checklist-hero-v0345{align-items:flex-start;padding:13px 14px;border-radius:17px}.purchase-checklist-hero-v0345 h2{font-size:18px}.purchase-checklist-hero-v0345 p{font-size:8px}.purchase-checklist-hero-actions-v0345{max-width:135px}.purchase-checklist-hero-actions-v0345 .btn{padding:8px 9px;font-size:9px}.purchase-checklist-toolbar-v0345{top:67px;margin-top:9px;padding:9px;border-radius:15px}.purchase-checklist-progress-v0345{gap:5px}.purchase-checklist-progress-v0345>div:not(.purchase-checklist-progress-bar-v0345){padding:7px}.purchase-checklist-progress-v0345 strong{font-size:15px}.purchase-checklist-search-v0345{margin-top:8px}.purchase-checklist-search-v0345 input{height:38px;font-size:10px}.purchase-checklist-chips-v0345{margin-left:-2px;margin-right:-2px}.purchase-checklist-chips-v0345 button{padding:6px 8px;font-size:8px}.purchase-checklist-products-v0345{gap:12px;margin-top:12px}.purchase-checklist-product-card-v0345{border-radius:16px}.purchase-checklist-product-head-v0345{grid-template-columns:auto minmax(0,1fr);padding:10px 10px 8px}.purchase-checklist-product-state-v0345{grid-column:2;justify-self:start;margin-top:-3px}.purchase-checklist-image-button-v0345,.purchase-checklist-image-placeholder-v0345{width:46px;height:46px;flex-basis:46px;border-radius:12px}.purchase-checklist-product-head-v0345 h3{font-size:18px}.purchase-checklist-total-needed-v0345{align-items:flex-start;margin:0 9px 9px;padding:9px}.purchase-checklist-total-needed-v0345>div{gap:5px}.purchase-checklist-total-needed-v0345 b{font-size:15px}.purchase-checklist-unit-list-v0345{gap:8px;padding:0 8px 8px}.purchase-checklist-unit-v0345{padding:9px;border-radius:13px}.purchase-checklist-target-v0345 strong{font-size:25px}.purchase-checklist-status-buttons-v0345{gap:4px}.purchase-checklist-status-buttons-v0345 button{min-height:37px;padding:4px 2px;font-size:8px}.purchase-checklist-actionbar-v0345{padding:8px 9px}.purchase-checklist-actionbar-v0345>div small{display:none}.purchase-checklist-actionbar-v0345 .btn{min-height:40px;padding:8px 10px;font-size:9px}}
@media(max-width:390px){.purchase-checklist-status-buttons-v0345{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-checklist-total-needed-v0345{display:block}.purchase-checklist-total-needed-v0345>div{justify-content:flex-start;margin-top:7px}.purchase-checklist-hero-actions-v0345{max-width:118px}}

/* v0.3.46 Checklist permission, menu landing and compact product cards */
.employee-permission-check-v0346{margin-top:14px;border-color:rgba(var(--brand-rgb),.24);background:rgba(var(--brand-rgb),.05)}
.employee-mobile-permission-v0346{margin-top:10px;padding:8px 10px;border-radius:10px;background:var(--info-soft);color:var(--info);font-size:11px;font-weight:850}
.purchase-checklist-menu-hero-v0346{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(135deg,#fff,rgba(var(--brand-rgb),.07));box-shadow:var(--shadow)}
.purchase-checklist-menu-hero-v0346 span{color:var(--brand);font-size:9px;font-weight:950;letter-spacing:.06em}.purchase-checklist-menu-hero-v0346 h2{margin:4px 0;font-size:23px}.purchase-checklist-menu-hero-v0346 p{margin:0;color:var(--muted);font-size:11px;font-weight:750}
.purchase-checklist-menu-list-v0346{display:grid;gap:10px;margin-top:14px;padding-bottom:100px}.purchase-checklist-menu-card-v0346{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,.42fr) auto auto;align-items:center;gap:14px;padding:14px 16px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:0 6px 18px rgba(25,47,62,.055)}.purchase-checklist-menu-card-v0346:hover{border-color:rgba(var(--brand-rgb),.35);transform:translateY(-1px)}
.purchase-checklist-menu-main-v0346 span,.purchase-checklist-menu-main-v0346 strong,.purchase-checklist-menu-main-v0346 small{display:block}.purchase-checklist-menu-main-v0346 span{color:var(--muted);font-size:9px;font-weight:800}.purchase-checklist-menu-main-v0346 strong{margin-top:2px;font-size:17px}.purchase-checklist-menu-main-v0346 small{margin-top:3px;color:var(--muted);font-size:9px}
.purchase-checklist-menu-progress-v0346{display:grid;grid-template-columns:auto auto;align-items:end;gap:2px 8px}.purchase-checklist-menu-progress-v0346 b{font-size:15px}.purchase-checklist-menu-progress-v0346 span{justify-self:end;color:var(--muted);font-size:9px;font-weight:800}.purchase-checklist-menu-progress-v0346 i{grid-column:1/-1;height:5px;border-radius:999px;background:var(--surface-2);overflow:hidden}.purchase-checklist-menu-progress-v0346 em{display:block;height:100%;border-radius:inherit;background:var(--brand)}.purchase-checklist-menu-open-v0346{color:var(--brand);font-size:11px;white-space:nowrap}
.purchase-checklist-hero-v0346{padding-top:14px;padding-bottom:14px}.purchase-checklist-toolbar-v0346{padding-top:10px;padding-bottom:10px}
.purchase-checklist-products-v0346{gap:9px;margin-top:11px}.purchase-checklist-product-card-v0346{border-radius:16px;box-shadow:0 5px 16px rgba(25,47,62,.05)}
.purchase-checklist-product-head-v0346{grid-template-columns:auto minmax(0,1fr) auto;gap:9px;padding:9px 11px 7px}.purchase-checklist-product-head-v0346 h3{font-size:17px}.purchase-checklist-product-head-v0346 p{margin-top:2px;font-size:8px}.purchase-checklist-image-button-v0346,.purchase-checklist-image-placeholder-v0346{width:43px;height:43px;flex-basis:43px;border-radius:11px}
.purchase-checklist-multi-summary-v0346{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 9px 7px;padding:7px 9px;border-radius:11px;background:rgba(var(--brand-rgb),.06)}.purchase-checklist-multi-summary-v0346>span{color:var(--muted);font-size:8px;font-weight:900}.purchase-checklist-multi-summary-v0346>div{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.purchase-checklist-multi-summary-v0346 b{font-size:11px}.purchase-checklist-multi-summary-v0346 small{color:var(--muted);font-size:8px}
.purchase-checklist-unit-list-v0346{gap:6px;padding:0 8px 8px}.purchase-checklist-unit-v0346{padding:7px 8px;border-radius:12px}.purchase-checklist-unit-main-v0346{display:grid;grid-template-columns:minmax(120px,.38fr) minmax(260px,1fr);align-items:center;gap:10px}.purchase-checklist-target-v0346{display:block;padding:0}.purchase-checklist-target-v0346>span{display:block;margin-bottom:2px;font-size:8px}.purchase-checklist-target-v0346 strong{font-size:21px}.purchase-checklist-target-v0346 small{font-size:9px}
.purchase-checklist-status-buttons-v0346{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.purchase-checklist-status-buttons-v0346 button{min-height:34px;padding:4px 5px;font-size:8px;border-radius:9px}
.purchase-checklist-destinations-v0346{margin:6px 0 0;gap:4px}.purchase-checklist-destinations-v0346 span{padding:4px 6px;font-size:7.5px}.purchase-checklist-unit-meta-v0346{margin-top:5px;font-size:7.5px}.purchase-checklist-unit-meta-v0346 button{font-size:7.5px}
.is-single-unit-v0346 .purchase-checklist-unit-list-v0346{padding-top:0}.is-single-unit-v0346 .purchase-checklist-unit-v0346{border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;padding:8px 10px 9px}.is-single-unit-v0346 .purchase-checklist-product-head-v0346{padding-bottom:8px}.is-single-unit-v0346 .purchase-checklist-product-state-v0345{font-size:7.5px;padding:5px 7px}
@media(max-width:1024px){.bottom-nav.has-purchase-checklist-v0346:not(.bottom-nav-central-v037){grid-template-columns:repeat(6,minmax(0,1fr))}.bottom-nav.has-purchase-checklist-v0346:not(.bottom-nav-central-v037) a{min-width:0;padding-left:1px;padding-right:1px;font-size:9px}.purchase-checklist-menu-list-v0346{padding-bottom:112px}}
@media(max-width:700px){.purchase-checklist-menu-hero-v0346{padding:13px 14px;border-radius:16px}.purchase-checklist-menu-hero-v0346 h2{font-size:18px}.purchase-checklist-menu-hero-v0346 p{font-size:9px}.purchase-checklist-menu-card-v0346{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:11px 12px}.purchase-checklist-menu-progress-v0346{grid-column:1/-1;grid-row:2}.purchase-checklist-menu-card-v0346>.badge{grid-column:2;grid-row:1}.purchase-checklist-menu-open-v0346{display:none}.purchase-checklist-product-head-v0346{grid-template-columns:auto minmax(0,1fr) auto;padding:8px 9px 6px}.purchase-checklist-product-state-v0345{grid-column:auto;justify-self:auto;margin-top:0}.purchase-checklist-product-head-v0346 h3{font-size:16px}.purchase-checklist-image-button-v0346,.purchase-checklist-image-placeholder-v0346{width:40px;height:40px;flex-basis:40px}.purchase-checklist-unit-main-v0346{grid-template-columns:108px minmax(0,1fr);gap:7px}.purchase-checklist-target-v0346 strong{font-size:19px}.purchase-checklist-status-buttons-v0346{gap:4px}.purchase-checklist-status-buttons-v0346 button{min-height:33px;padding:3px 2px;font-size:7.5px}.purchase-checklist-multi-summary-v0346{margin-left:7px;margin-right:7px}.purchase-checklist-unit-list-v0346{padding-left:6px;padding-right:6px}.purchase-checklist-unit-v0346{padding:7px}.is-single-unit-v0346 .purchase-checklist-unit-v0346{padding-left:9px;padding-right:9px}}
@media(max-width:420px){.purchase-checklist-unit-main-v0346{grid-template-columns:92px minmax(0,1fr)}.purchase-checklist-target-v0346 strong{font-size:17px}.purchase-checklist-status-buttons-v0346 button{font-size:7px}.purchase-checklist-product-state-v0345{display:none}.purchase-checklist-product-head-v0346{grid-template-columns:auto minmax(0,1fr)}.purchase-checklist-menu-hero-v0346 .btn{padding:8px 9px;font-size:8px}}

/* v0.3.47 — realtime collaborative checklist, compact finish action and reset */
.purchase-checklist-toolbar-v0347{overflow:visible}
.purchase-checklist-progress-v0347{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(150px,.9fr)}
.purchase-checklist-finish-slot-v0347{display:flex!important;align-items:center!important;justify-content:space-between;gap:8px;padding:7px 8px!important;background:rgba(var(--brand-rgb),.07)!important}
.purchase-checklist-finish-slot-v0347 form{flex:1;min-width:0}.purchase-checklist-finish-slot-v0347 .btn{width:100%;min-height:38px;padding:7px 10px;font-size:10px;white-space:nowrap}
.purchase-checklist-finish-slot-v0347 small{flex:0 0 auto;max-width:82px;text-align:right;line-height:1.25;color:var(--muted)}
.purchase-checklist-live-line-v0347{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px;padding:0 2px;color:var(--muted);font-size:8px;font-weight:800}
.purchase-checklist-live-line-v0347 [data-live-state]{color:#168057;font-weight:950}.purchase-checklist-live-line-v0347 [data-live-state].is-error{color:#b76b18}.purchase-checklist-live-line-v0347 small{font-size:8px}
.purchase-checklist-product-head-v0347 h3,.purchase-checklist-product-head-v0346 h3{font-size:20px;line-height:1.15}
.purchase-checklist-unit-v0346{position:relative}
.purchase-checklist-target-v0346>span{font-size:9px}.purchase-checklist-target-v0346 strong{font-size:24px}.purchase-checklist-target-v0346 small{font-size:10px}
.purchase-checklist-status-buttons-v0346 button{min-height:36px;font-size:9.5px;font-weight:950}
.purchase-checklist-unit-meta-v0347{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:7px;margin-top:6px}
.purchase-checklist-unit-meta-v0347 .purchase-checklist-buyer-v0347{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#245b73;font-size:8.5px;font-weight:950}
.purchase-checklist-unit-meta-v0347>[data-save-state]{white-space:nowrap;color:var(--muted);font-size:7.5px}
.purchase-checklist-unit-meta-v0347>[data-note-toggle]{white-space:nowrap;font-size:8.5px}
.purchase-checklist-reset-v0347{display:grid!important;place-items:center;width:25px;height:25px;padding:0!important;border:1px solid var(--line)!important;border-radius:999px!important;background:#fff!important;color:var(--muted)!important;font-size:15px!important;line-height:1;box-shadow:0 2px 6px rgba(25,47,62,.06)}
.purchase-checklist-reset-v0347[hidden]{display:none!important}.purchase-checklist-reset-v0347:hover{border-color:#d0a7a7!important;color:#aa4a4a!important}
.purchase-checklist-products-v0346{padding-bottom:34px}

@media(max-width:1024px){
 .purchase-checklist-products-v0345,.purchase-checklist-products-v0346{padding-bottom:calc(94px + env(safe-area-inset-bottom))}
}
@media(max-width:700px){
 .purchase-checklist-progress-v0347{grid-template-columns:minmax(0,.72fr) minmax(0,.62fr) minmax(128px,1.05fr);gap:5px}
 .purchase-checklist-finish-slot-v0347{padding:5px!important;display:block!important}.purchase-checklist-finish-slot-v0347 .btn{min-height:34px;padding:6px 7px;font-size:9px}.purchase-checklist-finish-slot-v0347 small{display:block;max-width:none;margin-top:3px;text-align:center;font-size:6.8px}
 .purchase-checklist-live-line-v0347{margin-top:5px}.purchase-checklist-live-line-v0347 small{display:none}
 .purchase-checklist-product-head-v0346 h3{font-size:19px}
 .purchase-checklist-unit-main-v0346{grid-template-columns:105px minmax(0,1fr);gap:6px}
 .purchase-checklist-target-v0346 strong{font-size:22px}.purchase-checklist-target-v0346>span{font-size:8.5px}
 .purchase-checklist-status-buttons-v0346 button{min-height:35px;font-size:9px}
 .purchase-checklist-unit-meta-v0347{grid-template-columns:minmax(0,1fr) auto auto;gap:5px}
 .purchase-checklist-unit-meta-v0347>[data-save-state]{display:none}
 .purchase-checklist-unit-meta-v0347 .purchase-checklist-buyer-v0347{font-size:8px}
 .purchase-checklist-unit-meta-v0347>[data-note-toggle]{font-size:8px}
}
@media(max-width:420px){
 .purchase-checklist-progress-v0347{grid-template-columns:minmax(0,.66fr) minmax(0,.58fr) minmax(112px,1fr)}
 .purchase-checklist-progress-v0347>div:not(.purchase-checklist-progress-bar-v0345){padding:5px!important}
 .purchase-checklist-progress-v0347 strong{font-size:14px!important}.purchase-checklist-progress-v0347 span,.purchase-checklist-progress-v0347 small{font-size:7px}
 .purchase-checklist-finish-slot-v0347 .btn{font-size:8.2px;padding-left:4px;padding-right:4px}
 .purchase-checklist-unit-main-v0346{grid-template-columns:92px minmax(0,1fr)}
 .purchase-checklist-target-v0346 strong{font-size:20px}.purchase-checklist-status-buttons-v0346 button{font-size:8.3px}
 .purchase-checklist-reset-v0347{width:23px;height:23px;font-size:14px!important}
}


/* v0.3.48 — Morning shopping round and reset placement */
.purchase-checklist-status-buttons-v0346{grid-template-columns:repeat(4,minmax(0,1fr))}
.purchase-checklist-status-buttons-v0346 .is-morning.active{border-color:#7662c6;background:#eeeafd;color:#5d49b1}
.purchase-checklist-unit-v0346.status-morning{border-color:#cfc5f2;background:#faf8ff}
.purchase-checklist-product-card-v0345.is-morning{border-left-color:#7662c6;background:#fbfaff}
.purchase-checklist-unit-meta-v0347{grid-template-columns:auto minmax(0,1fr) auto auto}
.purchase-checklist-unit-meta-v0347 .purchase-checklist-reset-v0347{grid-column:1}
.purchase-checklist-unit-meta-v0347 .purchase-checklist-buyer-v0347{grid-column:2}
.purchase-checklist-menu-main-v0346>span{display:flex;align-items:center;gap:5px}
@media(max-width:700px){
 .purchase-checklist-status-buttons-v0346{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}
 .purchase-checklist-status-buttons-v0346 button{min-height:34px;padding-left:2px;padding-right:2px;font-size:8px}
 .purchase-checklist-unit-meta-v0347{grid-template-columns:auto minmax(0,1fr) auto}
 .purchase-checklist-unit-meta-v0347>[data-save-state]{display:none}
}
@media(max-width:420px){
 .purchase-checklist-status-buttons-v0346 button{font-size:7.5px}
}

/* v0.3.49 — Central-kitchen production settings and workflow */
.product-production-section-v0349{scroll-margin-top:110px}
.production-product-toggle-v0349{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2);cursor:pointer}
.production-product-toggle-v0349>input{width:20px;height:20px;margin-top:1px;accent-color:var(--brand)}
.production-product-toggle-v0349>span{display:grid;gap:3px}.production-product-toggle-v0349 strong{font-size:13px}.production-product-toggle-v0349 small{color:var(--muted);font-size:9px;line-height:1.5}
.production-input-picker-v0349{margin-top:12px;padding:13px;border:1px solid rgba(var(--brand-rgb),.18);border-radius:16px;background:rgba(var(--brand-rgb),.035)}
.production-input-picker-v0349[hidden]{display:none!important}.production-input-picker-head-v0349{display:flex;align-items:center;justify-content:space-between;gap:12px}.production-input-picker-head-v0349>div{display:grid;gap:3px}.production-input-picker-head-v0349 strong{font-size:12px}.production-input-picker-head-v0349 span{color:var(--muted);font-size:8.5px}.production-input-picker-head-v0349 .input{max-width:280px}
.production-input-grid-v0349{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:11px;max-height:340px;overflow:auto;padding-right:3px}.production-input-grid-v0349>label{display:flex;align-items:flex-start;gap:8px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer}.production-input-grid-v0349>label[hidden]{display:none!important}.production-input-grid-v0349 input{width:17px;height:17px;margin-top:1px;accent-color:var(--brand)}.production-input-grid-v0349 label>span{display:grid;gap:2px;min-width:0}.production-input-grid-v0349 strong{font-size:10px;line-height:1.3}.production-input-grid-v0349 small{color:var(--muted);font-size:7.5px}.production-input-note-v0349{margin-top:10px;padding:9px 11px;border-radius:11px;background:#fff8e8;color:#74571d;font-size:8.5px;font-weight:750;line-height:1.5}.product-production-badge-v0349{display:inline-flex!important;width:max-content;margin-top:4px;padding:4px 7px;border-radius:999px;background:#eeeafd;color:#5d49b1!important;font-size:7.5px!important;font-weight:900!important}

.production-page-v0349{display:grid;gap:0}.production-summary-v0349{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.production-summary-v0349>div{padding:13px 15px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:0 7px 20px rgba(25,47,62,.05)}.production-summary-v0349 span,.production-summary-v0349 small{display:block;color:var(--muted);font-size:8px;font-weight:850}.production-summary-v0349 strong{display:block;margin:4px 0 2px;font-size:24px;line-height:1}
.production-section-head-v0349{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}.production-section-head-v0349 span{display:block;color:var(--brand);font-size:8px;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.production-section-head-v0349 h2{margin:3px 0 0;font-size:19px}.production-section-head-v0349 p{margin:4px 0 0;color:var(--muted);font-size:9px}
.production-request-grid-v0349{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.production-request-card-v0349{display:grid;gap:10px;padding:13px;border-radius:18px}.production-request-main-v0349{display:flex;align-items:center;gap:11px}.production-request-main-v0349>img,.production-request-main-v0349>span{width:54px;height:54px;flex:0 0 54px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2);object-fit:cover}.production-request-main-v0349>span{display:grid;place-items:center;color:var(--muted);font-size:20px}.production-request-main-v0349 small{color:var(--muted);font-size:8px}.production-request-main-v0349 h3{margin:2px 0 3px;font-size:17px}.production-request-main-v0349 strong{font-size:21px}.production-request-main-v0349 strong small{font-size:9px}.production-request-main-v0349 p{margin:3px 0 0;color:var(--muted);font-size:8px}
.production-branch-list-v0349{display:grid;gap:4px;padding:8px 9px;border-radius:12px;background:var(--surface-2)}.production-branch-list-v0349>div{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:8.5px}.production-branch-list-v0349 span{color:var(--muted)}.production-ingredient-preview-v0349{display:grid;gap:5px}.production-ingredient-preview-v0349>span{color:var(--muted);font-size:8px;font-weight:850}.production-ingredient-preview-v0349>div{display:flex;gap:5px;flex-wrap:wrap}.production-ingredient-preview-v0349 b{padding:4px 7px;border-radius:999px;background:rgba(var(--brand-rgb),.08);color:var(--brand);font-size:7.5px}.production-ingredient-preview-v0349 em{color:#a06320;font-size:8px}
.production-batch-list-v0349{display:grid;gap:12px}.production-batch-card-v0349{padding:14px;border-radius:19px}.production-batch-card-v0349>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.production-batch-card-v0349>header small{color:var(--muted);font-size:8px}.production-batch-card-v0349>header h3{margin:3px 0;font-size:19px}.production-batch-card-v0349>header p{margin:0;color:var(--muted);font-size:9px}.production-destination-v0349{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.production-destination-v0349 span{padding:5px 8px;border-radius:999px;background:var(--surface-2);color:var(--muted);font-size:8px}.production-destination-v0349 b{color:var(--text)}.production-purchase-link-v0349{display:block;margin-top:9px;padding:9px 11px;border:1px solid #efd19b;border-radius:12px;background:#fff9ed;color:#8b621b;font-size:9px;font-weight:900;text-decoration:none}
.production-complete-form-v0349{margin-top:11px}.production-input-table-v0349{display:grid;gap:7px}.production-input-row-v0349{display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(120px,.7fr) minmax(115px,.55fr) minmax(125px,.6fr) auto;align-items:end;gap:7px;padding:9px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2)}.production-input-name-v0349{align-self:center;display:grid;gap:3px}.production-input-name-v0349 strong{font-size:10.5px}.production-input-name-v0349 small{color:var(--muted);font-size:7.5px;line-height:1.35}.production-input-row-v0349 label{display:grid;gap:3px}.production-input-row-v0349 label>span{color:var(--muted);font-size:7.5px;font-weight:850}.production-input-row-v0349 .input,.production-input-row-v0349 .select{min-height:38px;height:38px;padding:7px 9px;font-size:9px}.production-input-row-v0349>.btn{min-height:38px;white-space:nowrap}.production-input-row-v0349[data-requires-production="1"] .production-shortage-qty-v0349,.production-input-row-v0349[data-requires-production="1"] [data-shortage-submit-v0349]{opacity:.45}.production-complete-fields-v0349{display:grid;grid-template-columns:minmax(200px,.5fr) minmax(250px,1fr);gap:9px;margin:10px 0}.production-manual-v0349 summary,.production-history-v0349 summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer}.production-manual-v0349 summary span,.production-history-v0349 summary span{color:var(--muted);font-size:8px}.production-history-list-v0349{display:grid;gap:6px}.production-history-list-v0349 article{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border-radius:11px;background:var(--surface-2)}.production-history-list-v0349 article>div{display:grid;gap:2px}.production-history-list-v0349 strong{font-size:9px}.production-history-list-v0349 span{color:var(--muted);font-size:7.5px}.production-history-list-v0349 b{font-size:10px}
.purchase-checklist-status-buttons-no-morning-v0349{grid-template-columns:repeat(3,minmax(0,1fr))!important}

@media(max-width:1024px){
 .production-input-grid-v0349{grid-template-columns:repeat(2,minmax(0,1fr))}
 .production-input-row-v0349{grid-template-columns:minmax(150px,1fr) minmax(120px,.72fr) minmax(105px,.55fr) minmax(115px,.6fr)}
 .production-input-row-v0349>.btn{grid-column:4}
}
@media(max-width:700px){
 .production-input-picker-head-v0349{display:grid}.production-input-picker-head-v0349 .input{max-width:none}.production-input-grid-v0349{grid-template-columns:1fr;max-height:300px}
 .production-summary-v0349{gap:6px}.production-summary-v0349>div{padding:10px}.production-summary-v0349 strong{font-size:20px}.production-summary-v0349 span,.production-summary-v0349 small{font-size:7px}
 .production-section-head-v0349 h2{font-size:17px}.production-section-head-v0349 p{font-size:8px}.production-request-grid-v0349{grid-template-columns:1fr}.production-request-card-v0349{padding:11px}.production-request-main-v0349 h3{font-size:16px}
 .production-batch-card-v0349{padding:11px}.production-input-row-v0349{grid-template-columns:minmax(0,1fr) minmax(112px,.52fr);gap:6px;padding:8px}.production-input-name-v0349{grid-column:1/-1}.production-input-row-v0349>select{grid-column:1}.production-input-row-v0349 label{grid-column:auto}.production-input-row-v0349 .production-shortage-qty-v0349{grid-column:1}.production-input-row-v0349>.btn{grid-column:2;align-self:end;font-size:8px;padding-left:7px;padding-right:7px}.production-complete-fields-v0349{grid-template-columns:1fr}.production-manual-v0349 summary,.production-history-v0349 summary{align-items:flex-start;flex-direction:column}
}
@media(max-width:420px){
 .production-summary-v0349 span{white-space:nowrap}.production-input-row-v0349{grid-template-columns:1fr}.production-input-row-v0349>select,.production-input-row-v0349 label,.production-input-row-v0349 .production-shortage-qty-v0349,.production-input-row-v0349>.btn{grid-column:1}.purchase-checklist-status-buttons-no-morning-v0349 button{font-size:8px}
}

/* v0.3.50 — stock count mode selection and stocktake-only UI */
.stock-count-mode-picker-v0350{display:grid;gap:18px;max-width:980px;margin:18px auto 0}
.stock-count-mode-intro-v0350{padding:24px 26px;border:1px solid #dce6ec;border-radius:20px;background:linear-gradient(135deg,#fff,#f3f8fb);box-shadow:0 10px 28px rgba(26,55,76,.06)}
.stock-count-mode-intro-v0350>span{display:inline-block;padding:5px 9px;border-radius:99px;background:#eaf3f8;color:#27607f;font-size:11px;font-weight:900}
.stock-count-mode-intro-v0350 h1{margin:10px 0 6px;color:#102f45;font-size:26px;line-height:1.25}
.stock-count-mode-intro-v0350 p{max-width:720px;margin:0;color:#617787;line-height:1.7}
.stock-count-mode-intro-v0350 b{display:block;margin-top:12px;color:#27485f;font-size:13px}
.stock-count-mode-grid-v0350{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.stock-count-mode-card-v0350{display:flex;flex-direction:column;min-height:330px;padding:22px;border:1px solid #dbe5eb;border-radius:20px;background:#fff;box-shadow:0 8px 24px rgba(30,55,72,.06)}
.stock-count-mode-card-v0350 h2{margin:12px 0 7px;color:#16364d;font-size:21px;line-height:1.3}
.stock-count-mode-card-v0350 p{margin:0;color:#647988;line-height:1.65}
.stock-count-mode-card-v0350 ul{display:grid;gap:7px;margin:16px 0 20px;padding-left:20px;color:#435e70;font-size:13px}
.stock-count-mode-card-v0350 .btn{margin-top:auto;min-height:48px}
.stock-count-mode-icon-v0350{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;font-size:22px;font-weight:900}
.mode-refill-v0350 .stock-count-mode-icon-v0350{background:#e9f7ef;color:#0b7b4f}
.mode-stocktake-v0350{border-color:#cfdbe3;background:linear-gradient(180deg,#fff,#f7fafc)}
.mode-stocktake-v0350 .stock-count-mode-icon-v0350{background:#eaf1f6;color:#294e67}
.stock-count-mode-banner-v0350{display:flex;align-items:center;gap:10px;margin:0 0 9px;padding:9px 12px;border:1px solid #dce6ec;border-radius:14px;background:#fff}
.stock-count-mode-banner-v0350>span{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#edf4f8;color:#2f5b75;font-weight:900}
.stock-count-mode-banner-v0350 div{min-width:0}.stock-count-mode-banner-v0350 strong,.stock-count-mode-banner-v0350 small{display:block}
.stock-count-mode-banner-v0350 strong{color:#17384f;font-size:14px}.stock-count-mode-banner-v0350 small{margin-top:2px;color:#6b7f8d;font-size:10px}
.stock-count-mode-banner-v0350.mode-refill>span{background:#e9f8ef;color:#0a7d50}
.stock-count-mode-banner-v0350.mode-stocktake{border-color:#cddce5;background:#f7fafc}
.stock-count-stocktake-v0350 .stock-count-unit-grid-v0332{gap:9px;margin-top:9px}
.stock-count-stocktake-v0350 .stock-count-unit-v0332{padding:10px 11px;background:#f7fafc;border-color:#d7e3ea}
.stock-count-stocktake-v0350 .stock-count-unit-v0332>span strong{font-size:14px}
.stock-count-stocktake-v0350 .stock-count-unit-v0332>span small{color:#668093;font-weight:700}
.stock-count-stocktake-v0350 .stock-count-unit-v0332 .input{min-width:110px;height:46px;font-size:19px;font-weight:900;text-align:center;background:#fff}
.stock-count-stocktake-v0350 .stock-count-product-v0332.status-pending{border-left:4px solid #c6d4dc!important}
.stock-count-stocktake-v0350 .count-status-v0332.status-pending{background:#eef3f6;color:#536d7e}
.stock-count-stocktake-v0350 .stock-count-note-details-v0335{margin-top:9px}
@media(max-width:760px){
 .stock-count-mode-picker-v0350{margin-top:10px;gap:12px}
 .stock-count-mode-intro-v0350{padding:18px;border-radius:17px}
 .stock-count-mode-intro-v0350 h1{font-size:22px}
 .stock-count-mode-grid-v0350{grid-template-columns:1fr;gap:11px}
 .stock-count-mode-card-v0350{min-height:0;padding:17px;border-radius:17px}
 .stock-count-mode-card-v0350 h2{font-size:19px}
 .stock-count-mode-card-v0350 p{font-size:13px}
 .stock-count-mode-card-v0350 ul{margin:12px 0 16px}
 .stock-count-mode-banner-v0350{margin-bottom:8px;padding:8px 10px}
 .stock-count-stocktake-v0350 .stock-count-unit-v0332{grid-template-columns:minmax(0,1fr) 112px;gap:9px}
 .stock-count-stocktake-v0350 .stock-count-unit-v0332 .input{width:112px;min-width:0}
}
@media(max-width:390px){
 .stock-count-mode-intro-v0350{padding:16px}
 .stock-count-mode-card-v0350{padding:15px}
 .stock-count-stocktake-v0350 .stock-count-unit-v0332{grid-template-columns:minmax(0,1fr) 100px}
 .stock-count-stocktake-v0350 .stock-count-unit-v0332 .input{width:100px;font-size:18px}
}

/* v0.3.50a — stocktake mobile card layout hotfix */
.stock-count-stocktake-v0350 .stock-count-unit-grid-v0332{
 grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
 width:100%;
}
.stock-count-stocktake-v0350 .stock-count-unit-v0332{
 min-width:0;
 width:100%;
 overflow:hidden;
}
.stock-count-stocktake-v0350 .stock-count-unit-v0332>span{
 min-width:0;
}
.stock-count-stocktake-v0350 .stock-count-unit-v0332>span strong,
.stock-count-stocktake-v0350 .stock-count-unit-v0332>span small{
 max-width:none;
 white-space:normal;
 overflow:visible;
 text-overflow:clip;
 line-height:1.25;
}
.stock-count-stocktake-v0350 .stock-count-unit-v0332 .input{
 max-width:100%;
 box-sizing:border-box;
}
@media(max-width:640px){
 .stock-count-stocktake-v0350 .stock-count-unit-grid-v0332{
  grid-template-columns:minmax(0,1fr)!important;
  gap:7px;
 }
 .stock-count-stocktake-v0350 .stock-count-unit-v0332{
  grid-template-columns:minmax(0,1fr) 116px;
  gap:8px;
  padding:8px 9px;
 }
 .stock-count-stocktake-v0350 .stock-count-unit-v0332 .input{
  width:116px;
  min-width:0;
  height:44px;
 }
 .stock-count-stocktake-v0350 .stock-count-product-v0332{
  overflow:hidden;
 }
 .stock-count-stocktake-v0350 .count-lock-message-v0332{
  padding:6px 8px;
  font-size:10px;
  line-height:1.35;
 }
}
@media(max-width:390px){
 .stock-count-stocktake-v0350 .stock-count-unit-v0332{
  grid-template-columns:minmax(0,1fr) 104px;
 }
 .stock-count-stocktake-v0350 .stock-count-unit-v0332 .input{
  width:104px;
  font-size:18px;
 }
}

/* v0.3.51 — Manual purchase orders */
.purchases-hero-v0351{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(135deg,#fff 0%,rgba(var(--brand-rgb),.08) 100%);box-shadow:var(--shadow)}
.purchases-hero-v0351>div{min-width:0}.purchases-hero-v0351>div>span{display:block;color:var(--brand);font-size:9px;font-weight:950;letter-spacing:.07em;text-transform:uppercase}.purchases-hero-v0351 h2{margin:4px 0;font-size:24px}.purchases-hero-v0351 p{margin:0;color:var(--muted);font-size:10px;font-weight:750}.purchases-hero-v0351>.btn{flex:0 0 auto;min-height:44px}
.purchases-plan-card-v0351{margin-top:14px}.purchase-source-v0351{display:inline-flex;align-items:center;min-height:25px;padding:4px 8px;border-radius:999px;font-size:8px;font-weight:900}.purchase-source-v0351.is-plan{background:#edf5fb;color:#2d698d}.purchase-source-v0351.is-manual{background:#fff2db;color:#9b6419}
.purchases-manual-modal-v0351{position:fixed;inset:0;z-index:180;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(16,31,43,.54);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.purchases-manual-modal-v0351[hidden]{display:none!important}.purchase-manual-modal-open-v0351{overflow:hidden}
.purchases-manual-dialog-v0351{width:min(820px,100%);max-height:92vh;overflow:auto;border:1px solid rgba(255,255,255,.7);border-radius:24px;background:#fff;box-shadow:0 24px 70px rgba(17,38,54,.24)}
.purchases-manual-head-v0351{position:sticky;top:0;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:17px 19px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.97);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.purchases-manual-head-v0351 strong{display:block;font-size:18px}.purchases-manual-head-v0351 span{display:block;margin-top:3px;color:var(--muted);font-size:9px;font-weight:750;line-height:1.5}.purchases-manual-head-v0351 button{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-size:22px;line-height:1}
.purchases-manual-form-v0351{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:18px 19px 20px}.purchases-manual-product-v0351,.purchases-manual-note-v0351,.purchases-manual-summary-v0351,.purchases-manual-actions-v0351{grid-column:1/-1}.purchases-manual-form-v0351 .field>span{font-size:9px;font-weight:900}.purchases-manual-form-v0351 .input,.purchases-manual-form-v0351 .select,.purchases-manual-form-v0351 .textarea{min-height:46px}.purchases-manual-form-v0351 .textarea{resize:vertical;padding-top:11px}.purchases-manual-form-v0351 small{display:block;margin-top:4px;color:var(--muted);font-size:8px;font-weight:700}
.purchases-manual-summary-v0351{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border:1px solid #dce9e3;border-radius:13px;background:#f4faf7}.purchases-manual-summary-v0351 strong{font-size:9px;color:#197050}.purchases-manual-summary-v0351 span{color:var(--muted);font-size:8px;font-weight:800;text-align:right}.purchases-manual-actions-v0351{display:flex;align-items:center;justify-content:flex-end;gap:9px;padding-top:3px}.purchases-manual-actions-v0351 .btn{min-width:150px}
@media(max-width:700px){.purchases-hero-v0351{align-items:stretch;padding:15px 16px;border-radius:18px}.purchases-hero-v0351 h2{font-size:20px}.purchases-hero-v0351 p{font-size:9px}.purchases-hero-v0351>.btn{min-width:138px;padding-left:10px;padding-right:10px;font-size:9px}.purchases-manual-modal-v0351{align-items:flex-end;padding:0}.purchases-manual-dialog-v0351{width:100%;max-height:94vh;border-radius:23px 23px 0 0}.purchases-manual-form-v0351{grid-template-columns:1fr;padding:15px}.purchases-manual-product-v0351,.purchases-manual-note-v0351,.purchases-manual-summary-v0351,.purchases-manual-actions-v0351{grid-column:auto}.purchases-manual-summary-v0351{display:block}.purchases-manual-summary-v0351 span{display:block;margin-top:3px;text-align:left}.purchases-manual-actions-v0351{position:sticky;bottom:0;z-index:2;display:grid;grid-template-columns:.75fr 1.25fr;margin:0 -2px -2px;padding:11px 2px 2px;background:#fff}.purchases-manual-actions-v0351 .btn{min-width:0;width:100%}}
@media(max-width:430px){.purchases-hero-v0351{display:block}.purchases-hero-v0351>.btn{width:100%;margin-top:12px}.purchases-manual-head-v0351{padding:14px 15px}.purchases-manual-head-v0351 strong{font-size:17px}}

/* v0.3.52 — multi-item manual purchase order */
.purchases-manual-dialog-v0352{width:min(1120px,100%);max-height:94vh;overflow:auto;border:1px solid rgba(255,255,255,.72);border-radius:24px;background:#fff;box-shadow:0 24px 70px rgba(17,38,54,.24)}
.purchases-manual-form-v0352{padding:16px 18px 20px}
.purchases-manual-order-v0352{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(300px,1.3fr);gap:12px;padding:13px;border:1px solid var(--line);border-radius:16px;background:#f8fafb}
.purchases-manual-order-v0352 .field>span,.purchases-manual-row-v0352 .field>span{font-size:9px;font-weight:900}
.purchases-manual-order-v0352 .input,.purchases-manual-row-v0352 .input,.purchases-manual-row-v0352 .select{min-height:43px}
.purchases-manual-order-v0352 small,.purchases-manual-row-v0352 small{display:block;margin-top:4px;color:var(--muted);font-size:8px;font-weight:700;line-height:1.4}
.purchases-manual-list-head-v0352{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:0 2px}
.purchases-manual-list-head-v0352 strong{display:block;font-size:14px}.purchases-manual-list-head-v0352 span{display:block;margin-top:2px;color:var(--muted);font-size:9px;font-weight:750}
.purchases-manual-items-v0352{display:grid;gap:10px;margin-top:9px}
.purchases-manual-row-v0352{border:1px solid #dce6eb;border-radius:17px;background:#fff;box-shadow:0 5px 15px rgba(26,53,71,.05);overflow:hidden}
.purchases-manual-row-head-v0352{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 11px;border-bottom:1px solid #e8eef2;background:#f7fafb}
.purchases-manual-row-head-v0352 strong{font-size:9px;color:#456171}.purchases-manual-row-head-v0352 button{display:grid;place-items:center;width:27px;height:27px;border:0;border-radius:999px;background:#fff0f1;color:#aa3441;font-size:18px;line-height:1;cursor:pointer}.purchases-manual-row-head-v0352 button:disabled{opacity:.25;cursor:default}
.purchases-manual-row-grid-v0352{display:grid;grid-template-columns:minmax(190px,1.65fr) minmax(90px,.58fr) minmax(120px,.75fr) minmax(175px,1.15fr) minmax(175px,1.15fr);gap:10px;padding:11px}
.manual-note-v0352{grid-column:1/-1}.manual-note-v0352 .input{min-height:40px}
.purchases-manual-summary-v0352{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:12px;padding:11px 13px;border:1px solid #d9e9e1;border-radius:14px;background:#f2faf6}
.purchases-manual-summary-v0352>div{flex:0 0 auto}.purchases-manual-summary-v0352 strong{display:block;color:#14704e;font-size:10px}.purchases-manual-summary-v0352 div span{display:block;margin-top:2px;color:#527568;font-size:8px;font-weight:800}.purchases-manual-summary-v0352>span{color:var(--muted);font-size:8px;font-weight:750;text-align:right;line-height:1.5}
.purchases-manual-actions-v0352{position:sticky;bottom:0;z-index:4;display:flex;align-items:center;justify-content:flex-end;gap:9px;margin:14px -18px -20px;padding:12px 18px 15px;border-top:1px solid var(--line);background:rgba(255,255,255,.97);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.purchases-manual-actions-v0352 .btn{min-width:170px}
@media(max-width:900px){.purchases-manual-row-grid-v0352{grid-template-columns:minmax(180px,1.5fr) minmax(90px,.6fr) minmax(120px,.8fr);}.manual-location-v0352,.manual-supplier-v0352{grid-column:span 1}.manual-note-v0352{grid-column:1/-1}}
@media(max-width:700px){.purchases-manual-dialog-v0352{width:100%;max-height:95vh;border-radius:23px 23px 0 0}.purchases-manual-form-v0352{padding:13px}.purchases-manual-order-v0352{grid-template-columns:1fr;padding:11px}.purchases-manual-list-head-v0352{position:sticky;top:68px;z-index:3;margin:10px -13px 0;padding:9px 13px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:rgba(255,255,255,.97);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.purchases-manual-row-grid-v0352{grid-template-columns:minmax(0,1fr) minmax(92px,.48fr);gap:9px;padding:10px}.manual-product-v0352,.manual-location-v0352,.manual-supplier-v0352,.manual-note-v0352{grid-column:1/-1}.manual-qty-v0352,.manual-unit-v0352{grid-column:auto}.purchases-manual-summary-v0352{display:block}.purchases-manual-summary-v0352>span{display:block;margin-top:6px;text-align:left}.purchases-manual-actions-v0352{display:grid;grid-template-columns:.72fr 1.28fr;margin:12px -13px -13px;padding:10px 13px max(12px,env(safe-area-inset-bottom))}.purchases-manual-actions-v0352 .btn{min-width:0;width:100%}}
@media(max-width:390px){.purchases-manual-row-grid-v0352{grid-template-columns:1fr}.manual-qty-v0352,.manual-unit-v0352{grid-column:1/-1}}

/* v0.3.53 — Manual purchase: one item can be allocated to multiple destinations */
.purchases-manual-row-main-v0353{display:grid;grid-template-columns:minmax(220px,1.45fr) minmax(130px,.72fr) minmax(210px,1fr);gap:10px;padding:11px 11px 0}
.purchases-manual-destinations-v0353{margin:10px 11px 0;padding:11px;border:1px solid #dce9e3;border-radius:14px;background:#f6fbf8}
.purchases-manual-destinations-head-v0353{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.purchases-manual-destinations-head-v0353 strong{display:block;color:#244c3d;font-size:10px}
.purchases-manual-destinations-head-v0353 span{display:block;margin-top:2px;color:#698077;font-size:8px;font-weight:750;line-height:1.45}
.purchases-manual-destinations-head-v0353 b{flex:0 0 auto;padding:6px 9px;border-radius:999px;background:#e4f4eb;color:#12704c;font-size:9px;white-space:nowrap}
.purchases-manual-destination-grid-v0353{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.purchases-manual-destination-v0353{display:grid;grid-template-columns:minmax(0,1fr) minmax(82px,.42fr);align-items:center;gap:8px;padding:8px 9px;border:1px solid #e1ebe6;border-radius:12px;background:#fff}
.purchases-manual-destination-v0353>span{min-width:0;color:#36564a;font-size:9px;font-weight:850;line-height:1.35}
.purchases-manual-destination-v0353 .input{min-height:39px;padding:8px 9px;text-align:right;font-size:13px;font-weight:900}
.manual-note-v0353{display:block;margin:10px 11px 11px}
.manual-note-v0353 .input{min-height:40px}
@media(max-width:900px){.purchases-manual-destination-grid-v0353{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.purchases-manual-row-main-v0353{grid-template-columns:minmax(0,1fr) minmax(112px,.45fr);gap:9px;padding:10px 10px 0}.purchases-manual-row-main-v0353 .manual-product-v0352,.purchases-manual-row-main-v0353 .manual-supplier-v0352{grid-column:1/-1}.purchases-manual-destinations-v0353{margin:9px 10px 0;padding:9px}.purchases-manual-destinations-head-v0353{align-items:flex-start}.purchases-manual-destination-grid-v0353{grid-template-columns:1fr}.purchases-manual-destination-v0353{grid-template-columns:minmax(0,1fr) 112px}.purchases-manual-destination-v0353>span{font-size:10px}.purchases-manual-destination-v0353 .input{font-size:15px}.manual-note-v0353{margin:9px 10px 10px}}
@media(max-width:390px){.purchases-manual-row-main-v0353{grid-template-columns:1fr}.purchases-manual-row-main-v0353 .manual-unit-v0352{grid-column:1/-1}.purchases-manual-destinations-head-v0353{display:block}.purchases-manual-destinations-head-v0353 b{display:inline-block;margin-top:7px}.purchases-manual-destination-v0353{grid-template-columns:minmax(0,1fr) 100px}}

/* === v0.3.54 Dedicated purchase creation workspace === */
.purchase-create-hero-v0354{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;padding:24px 26px;border-radius:24px;background:linear-gradient(135deg,var(--brand-strong),var(--brand));color:#fff;box-shadow:0 18px 42px rgba(var(--brand-rgb),.22)}
.purchase-create-hero-v0354>div:first-child{max-width:760px}.purchase-create-hero-v0354>div>span{display:block;font-size:12px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;opacity:.78;margin-top:12px}.purchase-create-hero-v0354 h2{font-size:30px;line-height:1.12;margin:5px 0 7px;letter-spacing:-.035em}.purchase-create-hero-v0354 p{margin:0;opacity:.86;font-size:14px}.purchase-create-back-v0354{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:800;opacity:.86}.purchase-create-back-v0354:hover{opacity:1}.purchase-create-hero-stat-v0354{min-width:150px;padding:17px 20px;border-radius:18px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);text-align:right}.purchase-create-hero-stat-v0354 strong{display:block;font-size:32px;line-height:1}.purchase-create-hero-stat-v0354 span{display:block!important;margin:7px 0 0!important;font-size:12px!important;letter-spacing:0!important;text-transform:none!important;opacity:.84!important}
.purchase-create-mobile-tabs-v0354{display:none}.purchase-create-form-v0354{margin-top:18px}.purchase-create-order-v0354{padding:18px 20px}.purchase-create-order-head-v0354{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.purchase-create-order-head-v0354>div{display:flex;flex-direction:column}.purchase-create-order-head-v0354 strong{font-size:16px}.purchase-create-order-head-v0354 span{font-size:12px;color:var(--muted)}.purchase-create-draft-badge-v0354{display:inline-flex!important;color:var(--brand-ink)!important;background:var(--brand-soft);border-radius:999px;padding:6px 10px;font-weight:850}.purchase-create-order-grid-v0354{display:grid;grid-template-columns:minmax(220px,.55fr) minmax(280px,1.45fr);gap:14px}.purchase-create-order-grid-v0354 .field>span,.purchase-create-supplier-v0354>span{font-size:12px;font-weight:800;color:var(--muted)}
.purchase-create-workspace-v0354{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(390px,.7fr);gap:18px;align-items:start;margin-top:18px}.purchase-create-picker-v0354{min-width:0}.purchase-create-selected-v0354{min-width:0;position:sticky;top:92px;max-height:calc(100vh - 112px)}
.purchase-create-search-card-v0354{padding:16px;position:sticky;top:92px;z-index:12}.purchase-create-search-v0354{position:relative;display:flex;align-items:center}.purchase-create-search-v0354 input{width:100%;height:54px;border:2px solid var(--line);border-radius:16px;background:#fff;padding:0 48px 0 47px;font-size:17px;font-weight:700;outline:none}.purchase-create-search-v0354 input:focus{border-color:var(--brand);box-shadow:0 0 0 4px rgba(var(--brand-rgb),.12)}.purchase-create-search-icon-v0354{position:absolute;left:16px;font-size:25px;color:var(--brand);line-height:1}.purchase-create-search-v0354 button{position:absolute;right:9px;width:36px;height:36px;border:0;border-radius:11px;background:var(--surface-2);color:var(--muted);font-size:22px}.purchase-create-filter-row-v0354{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:12px}.purchase-create-filter-row-v0354 label{display:flex;align-items:center;gap:9px;min-width:280px}.purchase-create-filter-row-v0354 label>span{font-size:12px;font-weight:800;color:var(--muted);white-space:nowrap}.purchase-create-filter-row-v0354 .select{min-height:40px;padding:8px 35px 8px 11px}.purchase-create-result-status-v0354{font-size:12px;color:var(--muted);font-weight:750;white-space:nowrap}
.purchase-create-product-grid-v0354{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.purchase-create-product-v0354{background:#fff;border:1px solid var(--line);border-radius:18px;padding:13px;box-shadow:0 7px 22px rgba(62,94,114,.06);transition:.18s ease;min-width:0}.purchase-create-product-v0354:hover{border-color:rgba(var(--brand-rgb),.45);box-shadow:0 12px 28px rgba(var(--brand-rgb),.11);transform:translateY(-1px)}.purchase-create-product-main-v0354{display:flex;align-items:center;gap:11px;min-width:0}.purchase-create-product-image-v0354{width:58px;height:58px;flex:0 0 58px;border-radius:14px;overflow:hidden;background:var(--surface-2);display:grid;place-items:center}.purchase-create-product-image-v0354 img{width:100%;height:100%;object-fit:cover}.purchase-create-product-placeholder-v0354{font-size:25px;color:var(--muted)}.purchase-create-product-info-v0354{min-width:0}.purchase-create-product-info-v0354 small{display:block;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.purchase-create-product-info-v0354 h3{margin:2px 0;font-size:16px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.purchase-create-product-info-v0354>span{font-size:11px;color:var(--muted)}.purchase-create-unit-actions-v0354{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}.purchase-create-unit-actions-v0354 button{flex:1 1 auto;min-height:38px;border:1px solid rgba(var(--brand-rgb),.28);background:var(--brand-soft);color:var(--brand-ink);border-radius:11px;padding:7px 10px;font-size:13px;font-weight:850;white-space:nowrap}.purchase-create-unit-actions-v0354 button span{margin-right:4px}.purchase-create-unit-actions-v0354 button:hover{background:var(--brand);color:#fff}.purchase-create-unit-actions-v0354 button.is-added{background:var(--success-soft);color:var(--success);border-color:rgba(24,116,90,.2);cursor:default}.purchase-create-no-results-v0354{padding:48px 20px;text-align:center;color:var(--muted)}.purchase-create-no-results-v0354>span{display:block;font-size:40px}.purchase-create-no-results-v0354 strong{display:block;color:var(--text);font-size:17px;margin-top:7px}.purchase-create-no-results-v0354 p{margin:5px 0 0;font-size:13px}.purchase-create-load-more-v0354{width:100%;margin-top:14px}
.purchase-create-selected-card-v0354{height:calc(100vh - 112px);display:flex;flex-direction:column;overflow:hidden}.purchase-create-selected-head-v0354{padding:16px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;background:linear-gradient(180deg,#fff,var(--surface-2))}.purchase-create-selected-head-v0354>div{display:flex;flex-direction:column}.purchase-create-selected-head-v0354 span{font-size:11px;color:var(--muted);font-weight:750}.purchase-create-selected-head-v0354 strong{font-size:18px}.purchase-create-selected-empty-v0354{padding:55px 24px;text-align:center;color:var(--muted);margin:auto}.purchase-create-selected-empty-v0354>span{display:grid;place-items:center;width:56px;height:56px;border-radius:18px;background:var(--brand-soft);color:var(--brand);font-size:29px;margin:0 auto 12px}.purchase-create-selected-empty-v0354 strong{display:block;color:var(--text);font-size:16px}.purchase-create-selected-empty-v0354 p{font-size:12px;max-width:250px;margin:6px auto 0}.purchase-create-selected-list-v0354{overflow:auto;padding:12px;flex:1}.purchase-create-selected-item-v0354{border:1px solid var(--line);border-radius:16px;padding:13px;background:#fff}.purchase-create-selected-item-v0354+.purchase-create-selected-item-v0354{margin-top:10px}.purchase-create-selected-item-head-v0354{display:grid;grid-template-columns:46px minmax(0,1fr) 32px;gap:10px;align-items:center}.purchase-create-selected-thumb-v0354{width:46px;height:46px;border-radius:12px;background:var(--surface-2);overflow:hidden;display:grid;place-items:center;color:var(--muted)}.purchase-create-selected-thumb-v0354 img{width:100%;height:100%;object-fit:cover}.purchase-create-selected-item-head-v0354 small{display:block;color:var(--muted);font-size:10px}.purchase-create-selected-item-head-v0354 h3{font-size:15px;line-height:1.2;margin:1px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.purchase-create-selected-item-head-v0354>div:nth-child(2)>span{display:inline-flex;padding:3px 7px;border-radius:999px;background:var(--brand-soft);color:var(--brand-ink);font-size:11px;font-weight:850}.purchase-create-selected-item-head-v0354>button{width:30px;height:30px;border:0;border-radius:9px;background:var(--danger-soft);color:var(--danger);font-size:19px}.purchase-create-supplier-v0354{margin-top:11px}.purchase-create-supplier-v0354 .select{min-height:40px;padding:8px 11px;font-size:13px}.purchase-create-allocation-head-v0354{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin-top:12px}.purchase-create-allocation-head-v0354>div{display:flex;flex-direction:column}.purchase-create-allocation-head-v0354 strong{font-size:12px}.purchase-create-allocation-head-v0354 span{font-size:10px;color:var(--muted)}.purchase-create-allocation-head-v0354>b{font-size:12px;color:var(--brand-ink);white-space:nowrap}.purchase-create-allocation-grid-v0354{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:8px}.purchase-create-allocation-v0354{display:flex;flex-direction:column;gap:4px;min-width:0}.purchase-create-allocation-v0354>span{font-size:10px;color:var(--muted);font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.purchase-create-allocation-v0354 .input{min-height:39px;padding:7px 8px;text-align:center;font-weight:850;font-size:15px;border-radius:10px}.purchase-create-note-v0354{margin-top:9px;border-top:1px dashed var(--line);padding-top:8px}.purchase-create-note-v0354 summary{font-size:11px;color:var(--muted);font-weight:800;cursor:pointer}.purchase-create-note-v0354 .input{min-height:39px;padding:8px 10px;font-size:12px;margin-top:7px}.purchase-create-submit-v0354{padding:14px 16px;border-top:1px solid var(--line);background:#fff}.purchase-create-submit-summary-v0354{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}.purchase-create-submit-summary-v0354 span{font-size:11px;color:var(--muted)}.purchase-create-submit-summary-v0354 strong{font-size:12px}.purchase-create-submit-v0354 .btn{width:100%}.purchase-create-toast-v0354{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:260;background:#20343c;color:#fff;padding:11px 16px;border-radius:999px;font-size:13px;font-weight:800;box-shadow:0 12px 35px rgba(24,44,54,.25)}
@media(max-width:1220px){.purchase-create-workspace-v0354{grid-template-columns:minmax(0,1.12fr) minmax(360px,.88fr)}.purchase-create-product-grid-v0354{grid-template-columns:1fr}.purchase-create-allocation-grid-v0354{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1024px){.purchase-create-search-card-v0354,.purchase-create-selected-v0354{top:82px}.purchase-create-selected-card-v0354{height:calc(100vh - 102px)}}
@media(max-width:899px){
 .purchase-create-hero-v0354{align-items:center;padding:19px 18px}.purchase-create-hero-v0354 h2{font-size:24px}.purchase-create-hero-stat-v0354{min-width:105px;padding:13px}.purchase-create-hero-stat-v0354 strong{font-size:26px}.purchase-create-mobile-tabs-v0354{display:grid;grid-template-columns:1fr 1fr;position:sticky;top:68px;z-index:35;margin:12px 0;background:#fff;border:1px solid var(--line);border-radius:15px;padding:5px;box-shadow:0 8px 24px rgba(62,94,114,.1)}.purchase-create-mobile-tabs-v0354 button{border:0;background:transparent;border-radius:11px;min-height:42px;font-weight:850;color:var(--muted)}.purchase-create-mobile-tabs-v0354 button.is-active{background:var(--brand);color:#fff}.purchase-create-mobile-tabs-v0354 b{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 5px;margin-left:4px;border-radius:999px;background:var(--brand-soft);color:var(--brand-ink);font-size:11px}.purchase-create-mobile-tabs-v0354 button.is-active b{background:rgba(255,255,255,.2);color:#fff}
 .purchase-create-workspace-v0354{display:block;margin-top:12px}.purchase-create-workspace-v0354[data-mobile-view="picker"] [data-purchase-create-pane="selected"]{display:none}.purchase-create-workspace-v0354[data-mobile-view="selected"] [data-purchase-create-pane="picker"]{display:none}.purchase-create-selected-v0354{position:static;max-height:none}.purchase-create-selected-card-v0354{height:auto;min-height:440px}.purchase-create-selected-list-v0354{overflow:visible}.purchase-create-search-card-v0354{top:126px}.purchase-create-product-grid-v0354{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-create-toast-v0354{bottom:92px}
}
@media(max-width:640px){.purchase-create-hero-stat-v0354{display:none}.purchase-create-order-grid-v0354{grid-template-columns:1fr}.purchase-create-filter-row-v0354{align-items:stretch;flex-direction:column}.purchase-create-filter-row-v0354 label{min-width:0;width:100%}.purchase-create-result-status-v0354{white-space:normal}.purchase-create-product-grid-v0354{grid-template-columns:1fr}.purchase-create-search-v0354 input{font-size:16px}.purchase-create-allocation-grid-v0354{grid-template-columns:repeat(3,minmax(0,1fr))}.purchase-create-selected-card-v0354{border-radius:18px}.purchase-create-order-v0354{padding:15px}.purchase-create-hero-v0354 p{font-size:12px}}
@media(max-width:430px){.purchase-create-allocation-grid-v0354{grid-template-columns:1fr}.purchase-create-allocation-v0354{display:grid;grid-template-columns:minmax(0,1fr) 115px;align-items:center}.purchase-create-allocation-v0354 .input{min-width:0}.purchase-create-product-image-v0354{width:54px;height:54px;flex-basis:54px}.purchase-create-hero-v0354 h2{font-size:22px}}

/* v0.3.55 — Dispatch workspace: all locations + central kitchen */
.dispatch-hero-v0355{display:flex;align-items:stretch;justify-content:space-between;gap:18px;padding:23px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(135deg,#fff 0%,rgba(var(--brand-rgb),.09) 100%);box-shadow:var(--shadow)}
.dispatch-hero-copy-v0355{min-width:0}.dispatch-hero-copy-v0355>span{display:block;color:var(--brand);font-size:10px;font-weight:950;letter-spacing:.08em}.dispatch-hero-copy-v0355 h2{margin:5px 0 4px;font-size:27px;line-height:1.18}.dispatch-hero-copy-v0355 p{margin:0;color:var(--muted);font-size:13px;font-weight:700;line-height:1.55}
.dispatch-hero-stats-v0355{display:grid;grid-template-columns:repeat(3,minmax(92px,1fr));gap:9px;min-width:340px}.dispatch-hero-stats-v0355>div{display:flex;flex-direction:column;justify-content:center;padding:13px 14px;border:1px solid rgba(var(--brand-rgb),.14);border-radius:16px;background:rgba(255,255,255,.86)}.dispatch-hero-stats-v0355 span{color:var(--muted);font-size:10px;font-weight:800}.dispatch-hero-stats-v0355 strong{margin-top:3px;color:var(--brand-ink);font-size:27px;line-height:1}.dispatch-hero-stats-v0355 .is-danger{border-color:rgba(181,51,63,.2);background:var(--danger-soft)}.dispatch-hero-stats-v0355 .is-danger strong{color:var(--danger)}
.dispatch-location-wrap-v0355{padding:17px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 8px 25px rgba(36,65,82,.05)}.dispatch-section-heading-v0355{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.dispatch-section-heading-v0355>div span,.dispatch-section-heading-v0355>div strong{display:block}.dispatch-section-heading-v0355>div span{color:var(--muted);font-size:10px;font-weight:800}.dispatch-section-heading-v0355>div strong{font-size:16px}.dispatch-show-all-v0355{min-height:35px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);padding:7px 12px;font-size:11px;font-weight:850;cursor:pointer}.dispatch-show-all-v0355.is-active{border-color:var(--brand);background:var(--brand);color:#fff}
.dispatch-location-grid-v0355{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.dispatch-location-card-v0355{display:grid;grid-template-columns:45px minmax(0,1fr) auto;gap:11px;align-items:center;min-width:0;padding:13px;border:1px solid var(--line);border-radius:17px;background:#fff;color:var(--text);text-align:left;cursor:pointer;transition:.17s ease}.dispatch-location-card-v0355:hover{border-color:rgba(var(--brand-rgb),.45);box-shadow:0 9px 24px rgba(var(--brand-rgb),.1);transform:translateY(-1px)}.dispatch-location-card-v0355.is-active{border-color:var(--brand);box-shadow:0 0 0 3px rgba(var(--brand-rgb),.1)}.dispatch-location-card-v0355.is-central{background:linear-gradient(135deg,var(--brand-soft),#fff)}.dispatch-location-icon-v0355{display:grid;place-items:center;width:45px;height:45px;border-radius:14px;background:var(--surface-2);color:var(--brand);font-size:22px;font-weight:900}.dispatch-location-card-v0355.is-central .dispatch-location-icon-v0355{background:var(--brand);color:#fff}.dispatch-location-copy-v0355{min-width:0}.dispatch-location-copy-v0355 small,.dispatch-location-copy-v0355 strong,.dispatch-location-copy-v0355 em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dispatch-location-copy-v0355 small{color:var(--muted);font-size:9px;font-weight:850}.dispatch-location-copy-v0355 strong{margin-top:1px;font-size:15px}.dispatch-location-copy-v0355 em{margin-top:2px;color:var(--muted);font-size:9px;font-style:normal;font-weight:750}.dispatch-location-metrics-v0355{text-align:right}.dispatch-location-metrics-v0355 b,.dispatch-location-metrics-v0355 i{display:block;white-space:nowrap}.dispatch-location-metrics-v0355 b{font-size:10px;color:var(--brand-ink)}.dispatch-location-metrics-v0355 i{margin-top:3px;color:var(--muted);font-size:9px;font-style:normal;font-weight:750}
.dispatch-sync-v0355{overflow:hidden;border:1px solid var(--line);border-radius:19px;background:#fff}.dispatch-sync-v0355>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;cursor:pointer;list-style:none}.dispatch-sync-v0355>summary::-webkit-details-marker{display:none}.dispatch-sync-v0355>summary>span:first-child strong,.dispatch-sync-v0355>summary>span:first-child small{display:block}.dispatch-sync-v0355>summary>span:first-child strong{font-size:13px}.dispatch-sync-v0355>summary>span:first-child small{margin-top:2px;color:var(--muted);font-size:9px;font-weight:700}.dispatch-sync-v0355[open]>summary{border-bottom:1px solid var(--line);background:var(--surface-2)}.dispatch-sync-list-v0355{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:13px}.dispatch-sync-item-v0355{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px;border:1px solid var(--line);border-radius:14px}.dispatch-sync-item-v0355 strong,.dispatch-sync-item-v0355 span{display:block}.dispatch-sync-item-v0355 strong{font-size:12px}.dispatch-sync-item-v0355 span{margin-top:2px;color:var(--muted);font-size:9px;font-weight:700}.dispatch-sync-item-v0355 .btn{flex:0 0 auto}
.dispatch-filter-v0355{position:sticky;top:78px;z-index:28;display:flex;align-items:end;justify-content:space-between;gap:14px;padding:13px 15px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 8px 24px rgba(44,70,86,.08);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.dispatch-search-v0355{display:flex;flex-direction:column;gap:4px;min-width:280px;flex:1}.dispatch-search-v0355>span{font-size:9px;font-weight:850;color:var(--muted)}.dispatch-search-v0355 .input{min-height:41px}.dispatch-status-chips-v0355{display:flex;align-items:center;gap:7px;overflow:auto}.dispatch-status-chips-v0355 button{min-height:38px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);padding:7px 11px;font-size:10px;font-weight:850;white-space:nowrap;cursor:pointer}.dispatch-status-chips-v0355 button b{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:4px;padding:0 5px;border-radius:999px;background:var(--surface-2);color:var(--text);font-size:9px}.dispatch-status-chips-v0355 button.is-active{border-color:var(--brand);background:var(--brand);color:#fff}.dispatch-status-chips-v0355 button.is-active b{background:rgba(255,255,255,.18);color:#fff}
.dispatch-location-section-v0355{margin-top:16px;border:1px solid var(--line);border-radius:22px;background:#fff;overflow:hidden;box-shadow:0 8px 25px rgba(36,65,82,.05)}.dispatch-location-section-v0355[hidden]{display:none!important}.dispatch-location-head-v0355{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 17px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,var(--surface-2))}.dispatch-location-title-v0355{display:flex;align-items:center;gap:11px;min-width:0}.dispatch-location-title-v0355>span{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:13px;background:var(--brand-soft);color:var(--brand);font-size:20px}.dispatch-location-title-v0355 small,.dispatch-location-title-v0355 strong,.dispatch-location-title-v0355 em{display:block}.dispatch-location-title-v0355 small{color:var(--muted);font-size:9px;font-weight:850}.dispatch-location-title-v0355 strong{font-size:17px}.dispatch-location-title-v0355 em{margin-top:1px;color:var(--muted);font-size:9px;font-style:normal;font-weight:700}.dispatch-location-head-stats-v0355{display:flex;gap:8px}.dispatch-location-head-stats-v0355 span{display:flex;align-items:center;gap:4px;padding:7px 9px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-size:9px;font-weight:800;white-space:nowrap}.dispatch-location-head-stats-v0355 b{color:var(--text);font-size:11px}
.dispatch-central-section-v0355 .dispatch-location-head-v0355{background:linear-gradient(135deg,var(--brand-soft),#fff)}.dispatch-central-section-v0355 .dispatch-location-title-v0355>span{background:var(--brand);color:#fff}.dispatch-central-list-v0355{display:grid;gap:9px;padding:13px}.dispatch-central-item-v0355{display:grid;grid-template-columns:48px minmax(150px,1.2fr) 115px 105px minmax(200px,1.2fr);gap:11px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:15px;background:#fff}.dispatch-central-item-v0355.is-short{border-color:rgba(181,51,63,.3);background:linear-gradient(90deg,var(--danger-soft),#fff 42%)}.dispatch-product-thumb-v0355{display:grid;place-items:center;width:48px;height:48px;overflow:hidden;border-radius:13px;background:var(--surface-2);color:var(--muted);font-size:20px}.dispatch-product-thumb-v0355 img{width:100%;height:100%;object-fit:cover}.dispatch-central-product-v0355{min-width:0}.dispatch-central-product-v0355 strong,.dispatch-central-product-v0355 span{display:block}.dispatch-central-product-v0355 strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dispatch-central-product-v0355 span{margin-top:2px;color:var(--muted);font-size:10px}.dispatch-central-qty-v0355 span,.dispatch-central-stock-v0355 span{display:block;color:var(--muted);font-size:9px;font-weight:800}.dispatch-central-qty-v0355 strong,.dispatch-central-stock-v0355 strong{display:block;margin-top:2px;font-size:16px}.dispatch-central-qty-v0355 small{font-size:9px;color:var(--muted)}.dispatch-central-stock-v0355 em{display:block;margin-top:2px;color:var(--danger);font-size:9px;font-style:normal;font-weight:850}.dispatch-central-destinations-v0355{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}.dispatch-central-destinations-v0355 span{padding:5px 8px;border-radius:999px;background:var(--brand-soft);color:var(--brand-ink);font-size:9px;font-weight:750;white-space:nowrap}.dispatch-central-destinations-v0355 b{margin-left:3px}
.dispatch-round-grid-v0355{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:13px}.dispatch-round-card-v0355{min-width:0;border:1px solid var(--line);border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 5px 16px rgba(40,67,84,.05)}.dispatch-round-card-v0355[hidden]{display:none!important}.dispatch-round-card-v0355.has-shortage{border-color:rgba(181,51,63,.3)}.dispatch-round-head-v0355{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);background:var(--surface-2)}.dispatch-round-head-v0355>div:first-child span,.dispatch-round-head-v0355>div:first-child strong,.dispatch-round-head-v0355>div:first-child small{display:block}.dispatch-round-head-v0355>div:first-child span{color:var(--brand);font-size:10px;font-weight:900}.dispatch-round-head-v0355>div:first-child strong{margin-top:1px;font-size:15px}.dispatch-round-head-v0355>div:first-child small{margin-top:2px;color:var(--muted);font-size:9px;font-weight:700}.dispatch-round-status-v0355{text-align:right}.dispatch-round-status-v0355 em{display:block;margin-top:4px;color:var(--danger);font-size:8px;font-style:normal;font-weight:850}.dispatch-round-form-v0355{padding:11px}.dispatch-pick-list-v0355{display:grid;gap:8px}.dispatch-pick-row-v0355{display:grid;grid-template-columns:44px minmax(120px,1fr) 74px 74px 112px;gap:9px;align-items:center;padding:8px;border:1px solid var(--line);border-radius:13px}.dispatch-pick-row-v0355.is-short{border-color:rgba(181,51,63,.28);background:var(--danger-soft)}.dispatch-pick-row-v0355 .dispatch-product-thumb-v0355{width:44px;height:44px;border-radius:11px}.dispatch-pick-product-v0355{min-width:0}.dispatch-pick-product-v0355 strong,.dispatch-pick-product-v0355 span{display:block}.dispatch-pick-product-v0355 strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dispatch-pick-product-v0355 span{margin-top:1px;color:var(--muted);font-size:9px}.dispatch-pick-plan-v0355 span,.dispatch-pick-stock-v0355 span,.dispatch-pick-input-v0355>span{display:block;color:var(--muted);font-size:8px;font-weight:800}.dispatch-pick-plan-v0355 strong,.dispatch-pick-stock-v0355 strong{display:block;margin-top:2px;font-size:13px}.dispatch-pick-stock-v0355 em{display:block;color:var(--danger);font-size:8px;font-style:normal;font-weight:850}.dispatch-pick-input-v0355 .input{min-height:39px;padding:7px 8px;text-align:center;font-size:14px;font-weight:850}.dispatch-confirm-v0355{margin-top:10px;min-height:43px}.dispatch-complete-list-v0355{display:grid;gap:0;padding:7px 13px 12px}.dispatch-complete-list-v0355>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 1px;border-bottom:1px solid var(--line)}.dispatch-complete-list-v0355>div:last-child{border-bottom:0}.dispatch-complete-list-v0355 span strong,.dispatch-complete-list-v0355 span small{display:block}.dispatch-complete-list-v0355 span strong{font-size:11px}.dispatch-complete-list-v0355 span small{color:var(--muted);font-size:8px}.dispatch-complete-list-v0355 b{font-size:11px;white-space:nowrap}
.dispatch-empty-location-v0355,.dispatch-filter-empty-v0355{padding:35px 20px;text-align:center;color:var(--muted)}.dispatch-empty-location-v0355>span{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 9px;border-radius:16px;background:var(--surface-2);color:var(--brand);font-size:24px}.dispatch-empty-location-v0355 strong{display:block;color:var(--text);font-size:14px}.dispatch-empty-location-v0355 p{margin:4px 0 0;font-size:10px}.dispatch-filter-empty-v0355{font-size:11px;font-weight:800}.dispatch-inline-empty-v0355{grid-column:1/-1;padding:18px;text-align:center;color:var(--muted);font-size:10px;font-weight:750}
@media(max-width:1180px){.dispatch-location-grid-v0355{grid-template-columns:repeat(2,minmax(0,1fr))}.dispatch-sync-list-v0355{grid-template-columns:repeat(2,minmax(0,1fr))}.dispatch-central-item-v0355{grid-template-columns:48px minmax(140px,1fr) 105px 95px}.dispatch-central-destinations-v0355{grid-column:2/-1;justify-content:flex-start}.dispatch-round-grid-v0355{grid-template-columns:1fr}}
@media(max-width:900px){.dispatch-hero-v0355{display:block}.dispatch-hero-stats-v0355{min-width:0;margin-top:14px}.dispatch-filter-v0355{top:72px;display:block}.dispatch-status-chips-v0355{margin-top:9px}.dispatch-search-v0355{min-width:0}.dispatch-location-card-v0355{grid-template-columns:42px minmax(0,1fr)}.dispatch-location-metrics-v0355{grid-column:2;text-align:left}.dispatch-location-metrics-v0355 b,.dispatch-location-metrics-v0355 i{display:inline}.dispatch-location-metrics-v0355 i:before{content:' • '}}
@media(max-width:700px){.dispatch-hero-v0355{padding:17px;border-radius:19px}.dispatch-hero-copy-v0355 h2{font-size:22px}.dispatch-hero-copy-v0355 p{font-size:11px}.dispatch-hero-stats-v0355{grid-template-columns:repeat(3,1fr);gap:6px}.dispatch-hero-stats-v0355>div{padding:10px 8px;border-radius:13px}.dispatch-hero-stats-v0355 span{font-size:8px}.dispatch-hero-stats-v0355 strong{font-size:22px}.dispatch-location-wrap-v0355{padding:13px;border-radius:18px}.dispatch-location-grid-v0355{grid-template-columns:1fr}.dispatch-location-card-v0355{grid-template-columns:42px minmax(0,1fr) auto;padding:11px}.dispatch-location-metrics-v0355{grid-column:auto;text-align:right}.dispatch-location-metrics-v0355 b,.dispatch-location-metrics-v0355 i{display:block}.dispatch-location-metrics-v0355 i:before{content:''}.dispatch-sync-list-v0355{grid-template-columns:1fr}.dispatch-filter-v0355{top:68px;margin-left:-1px;margin-right:-1px;padding:11px;border-radius:15px}.dispatch-status-chips-v0355{padding-bottom:1px}.dispatch-location-head-v0355{align-items:flex-start;padding:12px}.dispatch-location-head-stats-v0355{display:grid;grid-template-columns:repeat(3,auto);gap:5px}.dispatch-location-head-stats-v0355 span{padding:5px 7px;font-size:8px}.dispatch-central-list-v0355,.dispatch-round-grid-v0355{padding:10px}.dispatch-central-item-v0355{grid-template-columns:43px minmax(0,1fr) 92px;padding:9px;gap:8px}.dispatch-central-item-v0355 .dispatch-product-thumb-v0355{width:43px;height:43px}.dispatch-central-stock-v0355{grid-column:3}.dispatch-central-destinations-v0355{grid-column:2/-1}.dispatch-round-head-v0355{padding:11px}.dispatch-pick-row-v0355{grid-template-columns:40px minmax(0,1fr) 92px;gap:7px}.dispatch-pick-row-v0355 .dispatch-product-thumb-v0355{width:40px;height:40px}.dispatch-pick-plan-v0355,.dispatch-pick-stock-v0355{grid-column:2;display:flex;align-items:center;gap:5px}.dispatch-pick-stock-v0355{grid-column:2}.dispatch-pick-plan-v0355 span,.dispatch-pick-stock-v0355 span{display:inline}.dispatch-pick-plan-v0355 strong,.dispatch-pick-stock-v0355 strong{display:inline;margin:0}.dispatch-pick-stock-v0355 em{display:inline;margin-left:4px}.dispatch-pick-input-v0355{grid-column:3;grid-row:1/4}.dispatch-pick-input-v0355>span{text-align:center}.dispatch-confirm-v0355{margin-bottom:1px}}
@media(max-width:430px){.dispatch-location-card-v0355{grid-template-columns:40px minmax(0,1fr)}.dispatch-location-metrics-v0355{grid-column:2;text-align:left}.dispatch-location-metrics-v0355 b,.dispatch-location-metrics-v0355 i{display:inline}.dispatch-location-metrics-v0355 i:before{content:' • '}.dispatch-section-heading-v0355{align-items:flex-start}.dispatch-location-head-v0355{display:block}.dispatch-location-head-stats-v0355{margin-top:9px;justify-content:flex-start}.dispatch-central-item-v0355{grid-template-columns:40px minmax(0,1fr) 84px}.dispatch-central-item-v0355 .dispatch-product-thumb-v0355{width:40px;height:40px}.dispatch-central-stock-v0355{grid-column:2}.dispatch-central-destinations-v0355{grid-column:1/-1}.dispatch-pick-row-v0355{grid-template-columns:38px minmax(0,1fr) 86px}.dispatch-pick-row-v0355 .dispatch-product-thumb-v0355{width:38px;height:38px}}

/* v0.3.56 — Purchase order from current stock */
.purchase-stock-hero-v0356{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:21px 23px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(135deg,#fff 0%,rgba(var(--brand-rgb),.09) 100%);box-shadow:var(--shadow)}
.purchase-stock-hero-copy-v0356{min-width:0}.purchase-stock-hero-copy-v0356>a{display:inline-block;margin-bottom:6px;color:var(--muted);font-size:10px;font-weight:850;text-decoration:none}.purchase-stock-hero-copy-v0356>span{display:block;color:var(--brand);font-size:9px;font-weight:950;letter-spacing:.07em;text-transform:uppercase}.purchase-stock-hero-copy-v0356 h2{margin:4px 0;font-size:25px}.purchase-stock-hero-copy-v0356 p{margin:0;color:var(--muted);font-size:11px;font-weight:700}.purchase-stock-hero-stats-v0356{display:grid;grid-template-columns:repeat(3,minmax(82px,1fr));gap:8px;flex:0 0 auto}.purchase-stock-hero-stats-v0356>div{padding:12px 13px;border:1px solid rgba(var(--brand-rgb),.15);border-radius:16px;background:rgba(255,255,255,.84);text-align:center}.purchase-stock-hero-stats-v0356 strong,.purchase-stock-hero-stats-v0356 span{display:block}.purchase-stock-hero-stats-v0356 strong{font-size:24px;color:var(--brand-ink)}.purchase-stock-hero-stats-v0356 span{margin-top:1px;color:var(--muted);font-size:9px;font-weight:850}
.purchase-stock-form-v0356{margin-top:14px}.purchase-stock-order-v0356{padding:16px 18px}.purchase-stock-order-title-v0356{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.purchase-stock-order-title-v0356>div strong,.purchase-stock-order-title-v0356>div span{display:block}.purchase-stock-order-title-v0356>div strong{font-size:15px}.purchase-stock-order-title-v0356>div span{margin-top:2px;color:var(--muted);font-size:10px}.purchase-stock-order-title-v0356>b{padding:6px 9px;border-radius:999px;background:var(--brand-soft);color:var(--brand-ink);font-size:9px}.purchase-stock-order-grid-v0356{display:grid;grid-template-columns:minmax(180px,.45fr) minmax(260px,1fr);gap:11px}.purchase-stock-order-grid-v0356 .input{min-height:43px}
.purchase-stock-filter-v0356{position:sticky;top:76px;z-index:34;display:grid;grid-template-columns:minmax(280px,1fr) 190px 175px 140px;gap:10px;align-items:end;margin-top:12px;padding:12px;border:1px solid var(--line);background:rgba(255,255,255,.96);box-shadow:0 9px 25px rgba(36,62,80,.08);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.purchase-stock-filter-v0356>label{display:flex;flex-direction:column;gap:4px}.purchase-stock-filter-v0356>label>span{font-size:9px;color:var(--muted);font-weight:850}.purchase-stock-filter-v0356 .select{min-height:42px;padding:8px 10px;font-size:12px}.purchase-stock-search-v0356{position:relative;display:flex;align-items:center;min-height:42px;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}.purchase-stock-search-v0356>span{padding-left:12px;color:var(--brand);font-size:20px}.purchase-stock-search-v0356 input{width:100%;min-width:0;border:0;outline:0;padding:9px 34px 9px 8px;background:transparent;font-size:14px}.purchase-stock-search-v0356 button{position:absolute;right:5px;width:30px;height:30px;border:0;border-radius:9px;background:var(--surface-2);color:var(--muted);font-size:17px}.purchase-stock-live-summary-v0356{display:flex;flex-direction:column;justify-content:center;min-height:42px;padding:6px 10px;border-radius:12px;background:var(--brand-soft)}.purchase-stock-live-summary-v0356 span,.purchase-stock-live-summary-v0356 strong,.purchase-stock-live-summary-v0356 small{display:block}.purchase-stock-live-summary-v0356 span{font-size:8px;color:var(--muted);font-weight:800}.purchase-stock-live-summary-v0356 strong{font-size:13px;color:var(--brand-ink)}.purchase-stock-live-summary-v0356 small{font-size:8px;color:var(--muted)}
.purchase-stock-column-guide-v0356{display:grid;grid-template-columns:minmax(250px,1.15fr) repeat(var(--purchase-location-count),minmax(150px,1fr)) 82px;gap:8px;margin:12px 0 7px;padding:0 13px;color:var(--muted);font-size:8px;font-weight:900;text-align:center}.purchase-stock-column-guide-v0356>span:first-child{text-align:left}.purchase-stock-column-guide-v0356 small{display:block;margin-top:1px;font-size:7px;font-weight:700}
.purchase-stock-products-v0356{display:grid;gap:10px}.purchase-stock-product-v0356{border:1px solid var(--line);border-radius:19px;background:#fff;overflow:hidden;box-shadow:0 5px 16px rgba(38,65,82,.04)}.purchase-stock-product-v0356[hidden]{display:none!important}.purchase-stock-product-v0356.has-selected{border-color:rgba(var(--brand-rgb),.38);box-shadow:0 8px 22px rgba(var(--brand-rgb),.08)}.purchase-stock-product-head-v0356{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:11px;align-items:center;padding:10px 13px;border-bottom:1px solid var(--line);background:var(--surface-2)}.purchase-stock-thumb-v0356{display:grid;place-items:center;width:48px;height:48px;border-radius:13px;overflow:hidden;background:#fff;color:var(--muted);font-size:20px}.purchase-stock-thumb-v0356 img{width:100%;height:100%;object-fit:cover}.purchase-stock-product-head-v0356>div:nth-child(2){min-width:0}.purchase-stock-product-head-v0356 small,.purchase-stock-product-head-v0356 h3,.purchase-stock-product-head-v0356 span{display:block}.purchase-stock-product-head-v0356 small{color:var(--brand);font-size:8px;font-weight:900}.purchase-stock-product-head-v0356 h3{margin:1px 0;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.purchase-stock-product-head-v0356 span{color:var(--muted);font-size:9px;font-weight:700}.purchase-stock-product-head-v0356>b{padding:5px 8px;border-radius:999px;background:var(--brand);color:#fff;font-size:8px}.purchase-stock-unit-list-v0356{display:grid}.purchase-stock-unit-row-v0356{display:grid;grid-template-columns:minmax(250px,1.15fr) repeat(var(--purchase-location-count),minmax(150px,1fr)) 82px;gap:8px;align-items:stretch;padding:10px 12px;border-bottom:1px solid var(--line)}.purchase-stock-unit-row-v0356:last-child{border-bottom:0}.purchase-stock-unit-row-v0356.is-selected{background:linear-gradient(90deg,rgba(var(--brand-rgb),.055),#fff 45%)}
.purchase-stock-unit-info-v0356{display:grid;grid-template-columns:minmax(90px,.65fr) minmax(130px,1fr);gap:8px;align-items:end;min-width:0}.purchase-stock-unit-name-v0356 span,.purchase-stock-unit-name-v0356 strong,.purchase-stock-unit-name-v0356 small{display:block}.purchase-stock-unit-name-v0356 span{color:var(--muted);font-size:8px;font-weight:800}.purchase-stock-unit-name-v0356 strong{margin-top:2px;font-size:13px}.purchase-stock-unit-name-v0356 small{margin-top:2px;color:var(--muted);font-size:8px}.purchase-stock-supplier-v0356{display:flex;flex-direction:column;gap:3px;min-width:0}.purchase-stock-supplier-v0356>span{font-size:8px;color:var(--muted);font-weight:800}.purchase-stock-supplier-v0356 .select{width:100%;min-height:38px;padding:6px 8px;font-size:10px;border-radius:10px}
.purchase-stock-location-v0356{display:grid;grid-template-columns:minmax(0,1fr) 72px;grid-template-rows:auto 1fr;gap:4px 7px;align-items:end;padding:7px 8px;border:1px solid var(--line);border-radius:12px;background:#fff;min-width:0}.purchase-stock-location-v0356>div:first-child{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0}.purchase-stock-location-v0356>div:first-child span{font-size:9px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.purchase-stock-location-v0356>div:first-child small{padding:2px 5px;border-radius:999px;background:var(--brand-soft);color:var(--brand-ink);font-size:7px;font-weight:850}.purchase-stock-onhand-v0356{min-width:0}.purchase-stock-onhand-v0356 span,.purchase-stock-onhand-v0356 strong,.purchase-stock-onhand-v0356 small{display:block}.purchase-stock-onhand-v0356 span{color:var(--muted);font-size:7px;font-weight:750}.purchase-stock-onhand-v0356 strong{margin-top:1px;font-size:14px}.purchase-stock-onhand-v0356 small{color:var(--muted);font-size:7px}.purchase-stock-location-v0356>label{display:flex;flex-direction:column;gap:2px}.purchase-stock-location-v0356>label>span{color:var(--brand);font-size:7px;font-weight:900;text-align:center}.purchase-stock-location-v0356 .input{width:72px;min-height:37px;padding:6px;text-align:center;border-radius:9px;font-size:14px;font-weight:900}
.purchase-stock-row-total-v0356{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;text-align:center}.purchase-stock-row-total-v0356 span,.purchase-stock-row-total-v0356 strong,.purchase-stock-row-total-v0356 small{display:block}.purchase-stock-row-total-v0356 span{color:var(--muted);font-size:7px;font-weight:800}.purchase-stock-row-total-v0356 strong{margin-top:2px;font-size:17px;color:var(--brand-ink)}.purchase-stock-row-total-v0356 small{font-size:7px;color:var(--muted)}.purchase-stock-row-total-v0356 button{margin-top:3px;border:0;background:transparent;color:var(--danger);font-size:7px;font-weight:850}.purchase-stock-note-v0356{grid-column:1/-1;margin-top:-1px;padding-top:6px;border-top:1px dashed var(--line)}.purchase-stock-note-v0356 summary{cursor:pointer;color:var(--muted);font-size:8px;font-weight:800}.purchase-stock-note-v0356 .input{margin-top:6px;min-height:38px;padding:7px 10px;font-size:11px}
.purchase-stock-empty-v0356{padding:48px 20px;text-align:center;color:var(--muted)}.purchase-stock-empty-v0356>span{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 10px;border-radius:16px;background:var(--surface-2);color:var(--brand);font-size:25px}.purchase-stock-empty-v0356 strong{display:block;color:var(--text);font-size:15px}.purchase-stock-empty-v0356 p{margin:4px 0 0;font-size:10px}.purchase-stock-submit-v0356{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:13px;padding:15px 17px}.purchase-stock-submit-v0356>div:first-child span,.purchase-stock-submit-v0356>div:first-child strong,.purchase-stock-submit-v0356>div:first-child small{display:block}.purchase-stock-submit-v0356>div:first-child span{color:var(--muted);font-size:9px}.purchase-stock-submit-v0356>div:first-child strong{margin-top:1px;font-size:14px}.purchase-stock-submit-v0356>div:first-child small{margin-top:2px;color:var(--muted);font-size:8px}.purchase-stock-submit-v0356>div:last-child{display:flex;gap:8px}.purchase-stock-submit-v0356 .btn{min-height:42px}
@media(max-width:1280px){.purchase-stock-filter-v0356{grid-template-columns:minmax(230px,1fr) 165px 155px 125px}.purchase-stock-column-guide-v0356,.purchase-stock-unit-row-v0356{grid-template-columns:minmax(225px,1.1fr) repeat(var(--purchase-location-count),minmax(135px,1fr)) 75px}.purchase-stock-unit-info-v0356{grid-template-columns:1fr}.purchase-stock-supplier-v0356 .select{min-height:34px}.purchase-stock-location-v0356{grid-template-columns:minmax(0,1fr) 66px}.purchase-stock-location-v0356 .input{width:66px}}
@media(max-width:1050px){.purchase-stock-column-guide-v0356{display:none}.purchase-stock-filter-v0356{top:72px;grid-template-columns:minmax(220px,1fr) repeat(2,minmax(145px,.5fr));}.purchase-stock-live-summary-v0356{grid-column:1/-1;display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:8px;min-height:36px}.purchase-stock-live-summary-v0356 small{text-align:right}.purchase-stock-unit-row-v0356{grid-template-columns:repeat(2,minmax(0,1fr));}.purchase-stock-unit-info-v0356{grid-column:1/-1;grid-template-columns:minmax(100px,.55fr) minmax(170px,1fr)}.purchase-stock-row-total-v0356{grid-column:auto}.purchase-stock-note-v0356{grid-column:1/-1}}
@media(max-width:760px){.purchase-stock-hero-v0356{display:block;padding:17px 18px;border-radius:19px}.purchase-stock-hero-copy-v0356 h2{font-size:22px}.purchase-stock-hero-copy-v0356 p{font-size:10px}.purchase-stock-hero-stats-v0356{margin-top:13px;grid-template-columns:repeat(3,1fr)}.purchase-stock-hero-stats-v0356>div{padding:9px}.purchase-stock-hero-stats-v0356 strong{font-size:20px}.purchase-stock-order-grid-v0356{grid-template-columns:1fr}.purchase-stock-order-title-v0356{align-items:flex-start}.purchase-stock-filter-v0356{top:68px;grid-template-columns:1fr 1fr;padding:10px}.purchase-stock-search-v0356{grid-column:1/-1}.purchase-stock-live-summary-v0356{grid-column:1/-1}.purchase-stock-product-head-v0356{grid-template-columns:44px minmax(0,1fr) auto;padding:9px 10px}.purchase-stock-thumb-v0356{width:44px;height:44px}.purchase-stock-unit-row-v0356{display:block;padding:10px}.purchase-stock-unit-info-v0356{display:grid;grid-template-columns:minmax(90px,.55fr) minmax(150px,1fr);align-items:end}.purchase-stock-location-v0356{display:grid;grid-template-columns:minmax(0,1fr) 84px;margin-top:7px;padding:7px 9px}.purchase-stock-location-v0356 .input{width:84px;font-size:16px}.purchase-stock-row-total-v0356{display:grid;grid-template-columns:1fr auto auto;gap:5px;align-items:center;margin-top:7px;padding:8px 9px;border-radius:11px;background:var(--surface-2);text-align:left}.purchase-stock-row-total-v0356 span{font-size:8px}.purchase-stock-row-total-v0356 strong{font-size:16px}.purchase-stock-row-total-v0356 small{display:none}.purchase-stock-row-total-v0356 button{margin:0 0 0 5px}.purchase-stock-note-v0356{margin-top:7px}.purchase-stock-submit-v0356{display:block;padding:13px}.purchase-stock-submit-v0356>div:last-child{margin-top:10px}.purchase-stock-submit-v0356 .btn{flex:1}.purchase-stock-form-v0356{padding-bottom:74px}}
@media(max-width:430px){.purchase-stock-hero-stats-v0356{gap:5px}.purchase-stock-hero-stats-v0356 span{font-size:8px}.purchase-stock-order-title-v0356>b{display:none}.purchase-stock-filter-v0356{grid-template-columns:1fr}.purchase-stock-search-v0356,.purchase-stock-live-summary-v0356{grid-column:1}.purchase-stock-live-summary-v0356{grid-template-columns:auto auto 1fr}.purchase-stock-product-head-v0356>b{display:none}.purchase-stock-unit-info-v0356{grid-template-columns:1fr}.purchase-stock-location-v0356{grid-template-columns:minmax(0,1fr) 94px}.purchase-stock-location-v0356 .input{width:94px}.purchase-stock-submit-v0356>div:last-child{display:grid;grid-template-columns:1fr}.purchase-stock-submit-v0356 .btn{width:100%}}
.purchases-hero-actions-v0356{display:flex;align-items:center;gap:8px;flex:0 0 auto}.purchases-hero-actions-v0356 .btn{min-height:44px;white-space:nowrap}
@media(max-width:760px){.purchases-hero-v0351{display:block}.purchases-hero-actions-v0356{display:grid;grid-template-columns:1fr;margin-top:13px}.purchases-hero-actions-v0356 .btn{width:100%}}

/* v0.3.57 — Purchase stock-by-location table workspace */
.purchase-stock-hero-v0357{display:flex;align-items:stretch;justify-content:space-between;gap:22px;padding:24px 26px;border-radius:24px;background:linear-gradient(135deg,var(--brand-ink),var(--brand));color:#fff;box-shadow:0 16px 36px rgba(var(--brand-rgb),.18)}
.purchase-stock-hero-copy-v0357{min-width:0}.purchase-stock-hero-copy-v0357>a{display:inline-block;margin-bottom:8px;color:rgba(255,255,255,.78);font-size:11px;font-weight:800;text-decoration:none}.purchase-stock-hero-copy-v0357>span{display:block;color:rgba(255,255,255,.72);font-size:10px;font-weight:850;letter-spacing:.04em}.purchase-stock-hero-copy-v0357 h2{margin:3px 0 5px;font-size:28px;line-height:1.2}.purchase-stock-hero-copy-v0357 p{max-width:700px;margin:0;color:rgba(255,255,255,.82);font-size:12px;line-height:1.7}
.purchase-stock-hero-stats-v0357{display:grid;grid-template-columns:repeat(3,minmax(88px,1fr));gap:8px;align-self:center;min-width:310px}.purchase-stock-hero-stats-v0357>div{padding:13px 12px;border:1px solid rgba(255,255,255,.16);border-radius:16px;background:rgba(255,255,255,.1);text-align:center;backdrop-filter:blur(8px)}.purchase-stock-hero-stats-v0357 strong,.purchase-stock-hero-stats-v0357 span{display:block}.purchase-stock-hero-stats-v0357 strong{font-size:24px}.purchase-stock-hero-stats-v0357 span{margin-top:2px;color:rgba(255,255,255,.74);font-size:9px;font-weight:800}
.purchase-stock-form-v0357{display:grid;gap:13px;margin-top:14px;padding-bottom:24px}.purchase-stock-order-v0357{padding:16px 18px}.purchase-stock-order-title-v0357{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}.purchase-stock-order-title-v0357 strong,.purchase-stock-order-title-v0357 span{display:block}.purchase-stock-order-title-v0357 strong{font-size:15px}.purchase-stock-order-title-v0357 span{margin-top:2px;color:var(--muted);font-size:9px}.purchase-stock-order-title-v0357>b{padding:6px 9px;border-radius:999px;background:var(--brand-soft);color:var(--brand-ink);font-size:8px}.purchase-stock-order-grid-v0357{display:grid;grid-template-columns:minmax(180px,.35fr) minmax(280px,1fr);gap:10px}.purchase-stock-order-grid-v0357 .input{min-height:42px}
.purchase-stock-location-step-v0357{overflow:hidden}.purchase-stock-step-head-v0357{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 17px;border-bottom:1px solid var(--line);background:var(--surface-2)}.purchase-stock-step-head-v0357>div:first-child span,.purchase-stock-step-head-v0357>div:first-child strong,.purchase-stock-step-head-v0357>div:first-child small{display:block}.purchase-stock-step-head-v0357>div:first-child span{color:var(--brand);font-size:8px;font-weight:900}.purchase-stock-step-head-v0357>div:first-child strong{margin-top:1px;font-size:15px}.purchase-stock-step-head-v0357>div:first-child small{margin-top:2px;color:var(--muted);font-size:9px}.purchase-stock-current-v0357{min-width:170px;padding:8px 11px;border:1px solid rgba(var(--brand-rgb),.18);border-radius:12px;background:#fff;text-align:right}.purchase-stock-current-v0357 span,.purchase-stock-current-v0357 strong{display:block}.purchase-stock-current-v0357 span{color:var(--muted);font-size:8px}.purchase-stock-current-v0357 strong{margin-top:1px;color:var(--brand-ink);font-size:13px}
.purchase-stock-location-tabs-v0357{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;padding:12px}.purchase-stock-location-tabs-v0357 button{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:1px 8px;align-items:center;min-height:62px;padding:10px 42px 10px 12px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--text);text-align:left;cursor:pointer}.purchase-stock-location-tabs-v0357 button:hover{border-color:rgba(var(--brand-rgb),.35)}.purchase-stock-location-tabs-v0357 button.is-active{border-color:var(--brand);background:linear-gradient(135deg,var(--brand-soft),#fff);box-shadow:0 7px 18px rgba(var(--brand-rgb),.1)}.purchase-stock-location-tabs-v0357 button span{grid-column:1;font-size:13px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.purchase-stock-location-tabs-v0357 button small{grid-column:1;color:var(--muted);font-size:8px;font-weight:750}.purchase-stock-location-tabs-v0357 button b{position:absolute;right:11px;top:50%;display:grid;place-items:center;min-width:25px;height:25px;padding:0 6px;border-radius:999px;background:var(--surface-3);color:var(--muted);font-size:9px;transform:translateY(-50%)}.purchase-stock-location-tabs-v0357 button b.has-value{background:var(--brand);color:#fff}
.purchase-stock-filter-v0357{position:sticky;top:78px;z-index:12;display:grid;grid-template-columns:minmax(250px,1fr) 190px 190px 150px;gap:9px;align-items:end;padding:11px 13px;border-color:rgba(var(--brand-rgb),.16);box-shadow:0 9px 24px rgba(28,48,62,.08)}.purchase-stock-search-v0357{display:grid;grid-template-columns:24px minmax(0,1fr) 28px;align-items:center;min-height:42px;padding:0 8px;border:1px solid var(--line);border-radius:12px;background:#fff}.purchase-stock-search-v0357>span{color:var(--brand);font-size:19px;text-align:center}.purchase-stock-search-v0357 input{width:100%;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:12px}.purchase-stock-search-v0357 button{border:0;background:transparent;color:var(--muted);font-size:18px}.purchase-stock-filter-v0357>label{display:flex;flex-direction:column;gap:4px}.purchase-stock-filter-v0357>label>span{color:var(--muted);font-size:8px;font-weight:850}.purchase-stock-filter-v0357 .select{min-height:42px;font-size:10px}.purchase-stock-location-summary-v0357{display:flex;flex-direction:column;justify-content:center;min-height:42px;padding:6px 10px;border-radius:12px;background:var(--brand-soft);color:var(--brand-ink)}.purchase-stock-location-summary-v0357 span,.purchase-stock-location-summary-v0357 strong,.purchase-stock-location-summary-v0357 small{display:block}.purchase-stock-location-summary-v0357 span{font-size:7px}.purchase-stock-location-summary-v0357 strong{font-size:12px}.purchase-stock-location-summary-v0357 small{margin-top:1px;font-size:7px;opacity:.72;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.purchase-stock-table-card-v0357{overflow:hidden}.purchase-stock-table-title-v0357{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 17px;border-bottom:1px solid var(--line)}.purchase-stock-table-title-v0357>div:first-child span,.purchase-stock-table-title-v0357>div:first-child strong,.purchase-stock-table-title-v0357>div:first-child small{display:block}.purchase-stock-table-title-v0357>div:first-child span{color:var(--brand);font-size:8px;font-weight:900}.purchase-stock-table-title-v0357>div:first-child strong{margin-top:1px;font-size:15px}.purchase-stock-table-title-v0357>div:first-child small{margin-top:2px;color:var(--muted);font-size:9px}.purchase-stock-table-title-v0357>div:last-child{text-align:center}.purchase-stock-table-title-v0357>div:last-child b,.purchase-stock-table-title-v0357>div:last-child span{display:block}.purchase-stock-table-title-v0357>div:last-child b{font-size:20px;color:var(--brand)}.purchase-stock-table-title-v0357>div:last-child span{color:var(--muted);font-size:7px}
.purchase-stock-table-wrap-v0357{overflow:auto}.purchase-stock-table-v0357{width:100%;border-collapse:separate;border-spacing:0;min-width:1040px}.purchase-stock-table-v0357 thead th{position:sticky;top:0;z-index:2;padding:10px 9px;border-bottom:1px solid var(--line);background:var(--surface-2);color:var(--muted);font-size:8px;font-weight:900;text-align:left;white-space:nowrap}.purchase-stock-table-v0357 thead th:nth-child(1){width:25%}.purchase-stock-table-v0357 thead th:nth-child(2){width:22%}.purchase-stock-table-v0357 thead th:nth-child(3){width:15%}.purchase-stock-table-v0357 thead th:nth-child(4){width:18%}.purchase-stock-table-v0357 thead th:nth-child(5){width:15%}.purchase-stock-table-v0357 tbody tr{transition:background .15s ease}.purchase-stock-table-v0357 tbody tr.is-selected{background:linear-gradient(90deg,rgba(var(--brand-rgb),.06),#fff 56%)}.purchase-stock-table-v0357 td{padding:10px 9px;border-bottom:1px solid var(--line);vertical-align:middle}.purchase-stock-table-v0357 tbody tr:last-child td{border-bottom:0}.purchase-stock-product-cell-v0357{min-width:235px}.purchase-stock-product-v0357{display:grid;grid-template-columns:46px minmax(0,1fr);gap:10px;align-items:center}.purchase-stock-thumb-v0357{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;overflow:hidden;background:var(--surface-2);color:var(--muted);font-size:19px}.purchase-stock-thumb-v0357 img{width:100%;height:100%;object-fit:cover}.purchase-stock-product-v0357>div:last-child{min-width:0}.purchase-stock-product-v0357 small,.purchase-stock-product-v0357 strong,.purchase-stock-product-v0357 span{display:block}.purchase-stock-product-v0357 small{color:var(--brand);font-size:7px;font-weight:900}.purchase-stock-product-v0357 strong{margin-top:1px;font-size:13px;line-height:1.25}.purchase-stock-product-v0357 span{margin-top:2px;color:var(--muted);font-size:8px}
.purchase-stock-row-note-v0357{margin:7px 0 0 56px}.purchase-stock-row-note-v0357 summary{cursor:pointer;color:var(--muted);font-size:7px;font-weight:800}.purchase-stock-row-note-v0357 .input{width:100%;min-height:34px;margin-top:5px;padding:6px 8px;font-size:9px;border-radius:9px}.purchase-stock-onhand-list-v0357{display:flex;flex-wrap:wrap;gap:5px;min-width:170px}.purchase-stock-onhand-list-v0357>div{display:flex;align-items:center;gap:5px;padding:5px 7px;border:1px solid rgba(var(--brand-rgb),.13);border-radius:999px;background:var(--brand-soft);white-space:nowrap}.purchase-stock-onhand-list-v0357>div span{color:var(--brand-ink);font-size:7px;font-weight:800}.purchase-stock-onhand-list-v0357>div strong{font-size:10px;color:var(--brand-ink)}.purchase-stock-onhand-list-v0357>div.is-zero{border-color:var(--line);background:var(--surface-2)}.purchase-stock-onhand-list-v0357>div.is-zero span,.purchase-stock-onhand-list-v0357>div.is-zero strong{color:var(--muted)}
.purchase-stock-control-v0357{display:flex;flex-direction:column;gap:4px;min-width:130px}.purchase-stock-control-v0357>span{color:var(--muted);font-size:7px;font-weight:850}.purchase-stock-control-v0357 .select,.purchase-stock-control-v0357 .input{width:100%;min-height:39px;padding:6px 8px;border-radius:10px;font-size:10px}.purchase-stock-buy-v0357{min-width:112px}.purchase-stock-buy-v0357 .input{text-align:center;font-size:15px;font-weight:900}.purchase-stock-buy-v0357 small{color:var(--muted);font-size:7px;text-align:center}.purchase-stock-row-action-v0357{width:36px;text-align:center}.purchase-stock-row-action-v0357 button{display:grid;place-items:center;width:28px;height:28px;margin:auto;border:0;border-radius:9px;background:var(--surface-2);color:var(--muted);font-size:14px;cursor:pointer}.purchase-stock-row-action-v0357 button:hover{background:#fff0f1;color:var(--danger)}
.purchase-stock-empty-v0357{padding:48px 20px;text-align:center;color:var(--muted)}.purchase-stock-empty-v0357>span{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 10px;border-radius:16px;background:var(--surface-2);color:var(--brand);font-size:25px}.purchase-stock-empty-v0357 strong{display:block;color:var(--text);font-size:15px}.purchase-stock-empty-v0357 p{margin:4px 0 0;font-size:10px}.purchase-stock-submit-v0357{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 17px}.purchase-stock-submit-v0357>div:first-child span,.purchase-stock-submit-v0357>div:first-child strong,.purchase-stock-submit-v0357>div:first-child small{display:block}.purchase-stock-submit-v0357>div:first-child span{color:var(--muted);font-size:9px}.purchase-stock-submit-v0357>div:first-child strong{margin-top:1px;font-size:14px}.purchase-stock-submit-v0357>div:first-child small{margin-top:2px;color:var(--muted);font-size:8px}.purchase-stock-submit-v0357>div:last-child{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.purchase-stock-submit-v0357 .btn{min-height:42px}
.purchase-stock-review-v0357{position:fixed;inset:0;z-index:2500;display:grid;place-items:center;padding:18px}.purchase-stock-review-v0357[hidden]{display:none}.purchase-stock-review-backdrop-v0357{position:absolute;inset:0;background:rgba(16,32,45,.55);backdrop-filter:blur(4px)}.purchase-stock-review-v0357>section{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(720px,100%);max-height:min(84vh,760px);overflow:hidden;border-radius:22px;background:#fff;box-shadow:0 25px 70px rgba(10,27,40,.3)}.purchase-stock-review-v0357>section>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line)}.purchase-stock-review-v0357>section>header span{display:block;color:var(--brand);font-size:8px;font-weight:900}.purchase-stock-review-v0357>section>header h3{margin:2px 0 0;font-size:18px}.purchase-stock-review-v0357>section>header button{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:10px;background:var(--surface-2);color:var(--muted);font-size:22px}.purchase-stock-review-v0357>section>div{overflow:auto;padding:12px 16px}.purchase-stock-review-v0357>section>footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid var(--line)}.purchase-stock-review-item-v0357{margin-bottom:9px;padding:11px 12px;border:1px solid var(--line);border-radius:14px}.purchase-stock-review-item-v0357:last-child{margin-bottom:0}.purchase-stock-review-item-v0357 header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.purchase-stock-review-item-v0357 header strong,.purchase-stock-review-item-v0357 header span{display:block}.purchase-stock-review-item-v0357 header strong{font-size:13px}.purchase-stock-review-item-v0357 header span{margin-top:2px;color:var(--muted);font-size:8px}.purchase-stock-review-item-v0357 header>b{color:var(--brand);font-size:13px;white-space:nowrap}.purchase-stock-review-item-v0357>div{margin-top:8px;padding-top:7px;border-top:1px dashed var(--line)}.purchase-stock-review-item-v0357 p{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:4px 0;font-size:10px}.purchase-stock-review-item-v0357 p strong{white-space:nowrap}.purchase-stock-review-item-v0357 small{display:block;margin:-1px 0 4px;color:var(--muted);font-size:8px}.purchase-stock-review-empty-v0357{padding:36px;text-align:center;color:var(--muted)}body.purchase-stock-review-open-v0357{overflow:hidden}
@media(max-width:1100px){.purchase-stock-filter-v0357{grid-template-columns:minmax(220px,1fr) repeat(2,minmax(155px,.55fr));top:72px}.purchase-stock-location-summary-v0357{grid-column:1/-1;display:grid;grid-template-columns:auto auto 1fr;gap:8px;align-items:center;min-height:36px}.purchase-stock-location-summary-v0357 small{text-align:right}.purchase-stock-table-v0357{min-width:950px}.purchase-stock-table-v0357 thead th:nth-child(1){width:23%}.purchase-stock-table-v0357 thead th:nth-child(2){width:21%}}
@media(max-width:760px){.purchase-stock-hero-v0357{display:block;padding:18px;border-radius:20px}.purchase-stock-hero-copy-v0357 h2{font-size:22px}.purchase-stock-hero-copy-v0357 p{font-size:10px}.purchase-stock-hero-stats-v0357{min-width:0;margin-top:13px;grid-template-columns:repeat(3,1fr)}.purchase-stock-hero-stats-v0357>div{padding:9px}.purchase-stock-hero-stats-v0357 strong{font-size:20px}.purchase-stock-order-grid-v0357{grid-template-columns:1fr}.purchase-stock-order-title-v0357{align-items:flex-start}.purchase-stock-step-head-v0357{align-items:flex-start}.purchase-stock-current-v0357{min-width:120px}.purchase-stock-location-tabs-v0357{display:flex;overflow:auto;scroll-snap-type:x mandatory}.purchase-stock-location-tabs-v0357 button{flex:0 0 170px;scroll-snap-align:start}.purchase-stock-filter-v0357{top:68px;grid-template-columns:1fr 1fr;padding:10px}.purchase-stock-search-v0357{grid-column:1/-1}.purchase-stock-location-summary-v0357{grid-column:1/-1}.purchase-stock-table-title-v0357{align-items:flex-start}.purchase-stock-table-wrap-v0357{overflow:visible}.purchase-stock-table-v0357,.purchase-stock-table-v0357 tbody,.purchase-stock-table-v0357 tr,.purchase-stock-table-v0357 td{display:block;width:100%;min-width:0}.purchase-stock-table-v0357 thead{display:none}.purchase-stock-table-v0357 tbody{padding:9px}.purchase-stock-table-v0357 tbody tr{position:relative;margin-bottom:9px;padding:11px 11px 10px;border:1px solid var(--line);border-radius:16px;background:#fff}.purchase-stock-table-v0357 tbody tr:last-child{margin-bottom:0}.purchase-stock-table-v0357 tbody tr.is-selected{border-color:rgba(var(--brand-rgb),.38);background:linear-gradient(145deg,var(--brand-soft),#fff 42%)}.purchase-stock-table-v0357 td{padding:0;border:0}.purchase-stock-product-cell-v0357{padding-right:32px!important}.purchase-stock-product-v0357{grid-template-columns:44px minmax(0,1fr)}.purchase-stock-thumb-v0357{width:44px;height:44px}.purchase-stock-product-v0357 strong{font-size:14px}.purchase-stock-row-note-v0357{margin:7px 0 0 54px}.purchase-stock-onhand-list-v0357{margin-top:10px;padding:8px;border-radius:12px;background:var(--surface-2)}.purchase-stock-onhand-list-v0357:before{content:'ยอดคงเหลือทุกหน่วย';display:block;flex-basis:100%;margin-bottom:1px;color:var(--muted);font-size:7px;font-weight:850}.purchase-stock-onhand-list-v0357>div{background:#fff}.purchase-stock-control-v0357{margin-top:8px;min-width:0}.purchase-stock-control-v0357>span{font-size:8px}.purchase-stock-control-v0357 .select,.purchase-stock-control-v0357 .input{min-height:43px;font-size:12px}.purchase-stock-buy-v0357 .input{font-size:17px}.purchase-stock-row-action-v0357{position:absolute;right:8px;top:8px;width:auto}.purchase-stock-row-action-v0357 button{width:29px;height:29px}.purchase-stock-submit-v0357{display:block;padding:13px}.purchase-stock-submit-v0357>div:last-child{display:grid;grid-template-columns:1fr 1fr;margin-top:10px}.purchase-stock-submit-v0357>div:last-child .btn:last-child{grid-column:1/-1}.purchase-stock-submit-v0357 .btn{width:100%}.purchase-stock-form-v0357{padding-bottom:78px}.purchase-stock-review-v0357{align-items:end;padding:0}.purchase-stock-review-v0357>section{width:100%;max-height:88vh;border-radius:22px 22px 0 0}.purchase-stock-review-v0357>section>footer .btn{flex:1}}
@media(max-width:430px){.purchase-stock-hero-stats-v0357{gap:5px}.purchase-stock-hero-stats-v0357 span{font-size:7px}.purchase-stock-order-title-v0357>b{display:none}.purchase-stock-step-head-v0357{display:block}.purchase-stock-current-v0357{margin-top:9px;text-align:left}.purchase-stock-filter-v0357{grid-template-columns:1fr}.purchase-stock-search-v0357,.purchase-stock-location-summary-v0357{grid-column:1}.purchase-stock-location-summary-v0357{grid-template-columns:auto auto 1fr}.purchase-stock-table-title-v0357>div:last-child{display:none}.purchase-stock-submit-v0357>div:last-child{grid-template-columns:1fr}.purchase-stock-submit-v0357>div:last-child .btn:last-child{grid-column:1}}

/* v0.3.62 — Dispatch central source separated from branch destinations */
.dispatch-central-overview-v0362{overflow:hidden;border:1px solid rgba(var(--brand-rgb),.2);border-radius:24px;background:#fff;box-shadow:0 10px 30px rgba(36,65,82,.07)}
.dispatch-central-overview-head-v0362{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid rgba(var(--brand-rgb),.14);background:linear-gradient(135deg,var(--brand-soft),#fff 68%)}
.dispatch-central-overview-title-v0362{display:flex;align-items:center;gap:13px;min-width:0}.dispatch-central-overview-title-v0362>span{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border-radius:15px;background:var(--brand);color:#fff;font-size:24px;font-weight:900}.dispatch-central-overview-title-v0362 small,.dispatch-central-overview-title-v0362 strong,.dispatch-central-overview-title-v0362 em{display:block}.dispatch-central-overview-title-v0362 small{color:var(--brand);font-size:11px;font-weight:900}.dispatch-central-overview-title-v0362 strong{margin-top:1px;font-size:20px;line-height:1.2}.dispatch-central-overview-title-v0362 em{margin-top:3px;color:var(--muted);font-size:12px;font-style:normal;font-weight:700}
.dispatch-central-overview-kpis-v0362{display:grid;grid-template-columns:repeat(3,minmax(92px,1fr));gap:8px;flex:0 0 auto}.dispatch-central-overview-kpis-v0362>div{padding:10px 13px;border:1px solid rgba(var(--brand-rgb),.16);border-radius:14px;background:rgba(255,255,255,.88);text-align:center}.dispatch-central-overview-kpis-v0362 span,.dispatch-central-overview-kpis-v0362 strong{display:block}.dispatch-central-overview-kpis-v0362 span{color:var(--muted);font-size:10px;font-weight:850}.dispatch-central-overview-kpis-v0362 strong{margin-top:2px;color:var(--brand-ink);font-size:24px;line-height:1}.dispatch-central-overview-kpis-v0362 .is-danger{border-color:rgba(181,51,63,.25);background:var(--danger-soft)}.dispatch-central-overview-kpis-v0362 .is-danger strong{color:var(--danger)}
.dispatch-central-guidance-v0362{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:10px;row-gap:2px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line);background:#fff}.dispatch-central-guidance-v0362>span{grid-row:1/3;align-self:stretch;display:grid;place-items:center;padding:7px 10px;border-radius:12px;background:var(--brand);color:#fff;font-size:10px;font-weight:900;white-space:nowrap}.dispatch-central-guidance-v0362 strong{font-size:13px}.dispatch-central-guidance-v0362 p{margin:0;color:var(--muted);font-size:11px;font-weight:700;line-height:1.45}
.dispatch-central-overview-v0362 .dispatch-central-list-v0355{padding:14px}.dispatch-central-overview-v0362 .dispatch-central-item-v0355{padding:12px 14px;border-radius:16px}.dispatch-central-overview-v0362 .dispatch-central-product-v0355 strong{font-size:15px}.dispatch-central-overview-v0362 .dispatch-central-product-v0355 span{font-size:11px}.dispatch-central-overview-v0362 .dispatch-central-qty-v0355 span,.dispatch-central-overview-v0362 .dispatch-central-stock-v0355 span{font-size:10px}.dispatch-central-overview-v0362 .dispatch-central-qty-v0355 strong,.dispatch-central-overview-v0362 .dispatch-central-stock-v0355 strong{font-size:18px}.dispatch-central-overview-v0362 .dispatch-central-destinations-v0355 span{padding:6px 9px;font-size:10px}.dispatch-central-overview-v0362 .dispatch-central-stock-v0355 em.is-ready{color:var(--success)}
.dispatch-branch-selector-v0362{border-color:rgba(var(--brand-rgb),.16)}.dispatch-branch-selector-v0362 .dispatch-section-heading-v0355>div span{color:var(--brand);font-size:11px}.dispatch-branch-selector-v0362 .dispatch-section-heading-v0355>div strong{font-size:18px}.dispatch-branch-selector-v0362 .dispatch-location-card-v0355{background:linear-gradient(180deg,#fff,var(--surface-2))}.dispatch-branch-selector-v0362 .dispatch-location-card-v0355.is-active{background:linear-gradient(135deg,var(--brand-soft),#fff)}
@media(max-width:900px){.dispatch-central-overview-head-v0362{display:block}.dispatch-central-overview-kpis-v0362{margin-top:14px}.dispatch-central-overview-v0362 .dispatch-central-item-v0355{grid-template-columns:48px minmax(140px,1fr) 105px 95px}.dispatch-central-overview-v0362 .dispatch-central-destinations-v0355{grid-column:2/-1;justify-content:flex-start}}
@media(max-width:700px){.dispatch-central-overview-v0362{border-radius:19px}.dispatch-central-overview-head-v0362{padding:15px}.dispatch-central-overview-title-v0362>span{width:43px;height:43px;flex-basis:43px;border-radius:13px;font-size:21px}.dispatch-central-overview-title-v0362 strong{font-size:18px}.dispatch-central-overview-title-v0362 em{font-size:10px}.dispatch-central-overview-kpis-v0362{grid-template-columns:repeat(3,1fr);gap:6px}.dispatch-central-overview-kpis-v0362>div{padding:9px 6px}.dispatch-central-overview-kpis-v0362 span{font-size:8px}.dispatch-central-overview-kpis-v0362 strong{font-size:21px}.dispatch-central-guidance-v0362{grid-template-columns:1fr;padding:11px 13px}.dispatch-central-guidance-v0362>span{grid-row:auto;justify-self:start;min-height:0;padding:5px 8px}.dispatch-central-guidance-v0362 strong{margin-top:4px;font-size:12px}.dispatch-central-guidance-v0362 p{font-size:10px}.dispatch-central-overview-v0362 .dispatch-central-list-v0355{padding:10px}.dispatch-central-overview-v0362 .dispatch-central-item-v0355{grid-template-columns:43px minmax(0,1fr) 94px;padding:10px;gap:8px}.dispatch-central-overview-v0362 .dispatch-central-item-v0355 .dispatch-product-thumb-v0355{width:43px;height:43px}.dispatch-central-overview-v0362 .dispatch-central-stock-v0355{grid-column:3}.dispatch-central-overview-v0362 .dispatch-central-destinations-v0355{grid-column:2/-1}.dispatch-branch-selector-v0362 .dispatch-section-heading-v0355>div strong{font-size:16px}}
@media(max-width:430px){.dispatch-central-overview-v0362 .dispatch-central-item-v0355{grid-template-columns:40px minmax(0,1fr) 86px}.dispatch-central-overview-v0362 .dispatch-central-item-v0355 .dispatch-product-thumb-v0355{width:40px;height:40px}.dispatch-central-overview-v0362 .dispatch-central-stock-v0355{grid-column:2}.dispatch-central-overview-v0362 .dispatch-central-destinations-v0355{grid-column:1/-1}}

/* v0.3.67 — Purchase receiving UI recovery and responsive polish */
.purchase-receiving-hero-v0361,
.purchase-receiving-detail-hero-v0361{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  margin:0;
  padding:24px 26px;
  overflow:hidden;
  border:1px solid rgba(var(--brand-rgb),.18);
  border-radius:24px;
  background:linear-gradient(135deg,var(--brand-ink),var(--brand));
  color:#fff;
  box-shadow:0 16px 36px rgba(31,61,76,.14)
}
.purchase-receiving-hero-v0361>div:first-child,
.purchase-receiving-detail-hero-v0361>div:first-child{min-width:0}
.purchase-receiving-hero-v0361 span,
.purchase-receiving-detail-hero-v0361>div:first-child>span{
  display:block;
  color:rgba(255,255,255,.76);
  font-size:11px;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase
}
.purchase-receiving-hero-v0361 h2,
.purchase-receiving-detail-hero-v0361 h2{
  margin:5px 0 6px;
  color:#fff;
  font-size:29px;
  line-height:1.18;
  letter-spacing:-.025em
}
.purchase-receiving-hero-v0361 p,
.purchase-receiving-detail-hero-v0361 p{
  max-width:760px;
  margin:0;
  color:rgba(255,255,255,.82);
  font-size:13px;
  line-height:1.65
}
.purchase-receiving-hero-v0361 .btn,
.purchase-receiving-detail-hero-v0361 .btn{
  flex:0 0 auto;
  border-color:rgba(255,255,255,.24);
  background:rgba(255,255,255,.95);
  color:var(--brand-ink)
}
.purchase-receiving-summary-v0361,
.purchase-receiving-info-v0361,
.purchase-receiving-total-v0361{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:16px
}
.purchase-receiving-summary-v0361>div,
.purchase-receiving-info-v0361>div,
.purchase-receiving-total-v0361>div{
  position:relative;
  min-width:0;
  padding:17px 18px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:17px;
  background:#fff;
  box-shadow:0 7px 20px rgba(31,61,76,.055)
}
.purchase-receiving-summary-v0361>div:before,
.purchase-receiving-info-v0361>div:before,
.purchase-receiving-total-v0361>div:before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:3px;
  background:linear-gradient(90deg,var(--brand),rgba(var(--brand-rgb),.2))
}
.purchase-receiving-summary-v0361 span,
.purchase-receiving-info-v0361 span,
.purchase-receiving-total-v0361 span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:850
}
.purchase-receiving-summary-v0361 strong,
.purchase-receiving-info-v0361 strong,
.purchase-receiving-total-v0361 strong{
  display:block;
  margin-top:5px;
  color:var(--brand-ink);
  font-size:23px;
  line-height:1.2;
  overflow-wrap:anywhere
}
.purchase-receiving-summary-v0361 small,
.purchase-receiving-info-v0361 small,
.purchase-receiving-total-v0361 small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:10px;
  line-height:1.45
}
.purchase-receiving-section-v0361{
  margin-top:16px;
  overflow:hidden;
  border-color:rgba(var(--brand-rgb),.12)
}
.purchase-receiving-section-v0361>.card-head{
  padding:16px 18px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#fff,var(--surface-2))
}
.purchase-receiving-section-v0361>.card-head .card-title{
  color:var(--brand-ink);
  font-size:16px;
  font-weight:900
}
.purchase-receiving-section-v0361>.card-head .card-sub{
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
  line-height:1.5
}
.purchase-receiving-section-v0361>.empty{
  min-height:190px;
  padding:36px 20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center
}
.purchase-receiving-section-v0361>.empty .empty-icon{
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  margin-bottom:10px;
  border-radius:17px;
  background:var(--success-soft);
  color:var(--success);
  font-size:28px;
  font-weight:900
}
.purchase-receiving-section-v0361>.empty .empty-title{font-size:15px;font-weight:900}
.purchase-receiving-section-v0361>.empty .empty-sub{max-width:460px;margin-top:4px;color:var(--muted);font-size:11px}
.purchase-receiving-list-v0361{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  padding:14px
}
.purchase-receiving-card-v0361{
  display:grid;
  grid-template-columns:minmax(260px,1fr) 120px auto 78px;
  align-items:center;
  gap:14px;
  min-width:0;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  box-shadow:0 4px 14px rgba(31,61,76,.035);
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease
}
.purchase-receiving-card-v0361:hover{
  transform:translateY(-1px);
  border-color:rgba(var(--brand-rgb),.38);
  box-shadow:0 9px 22px rgba(31,61,76,.08)
}
.purchase-receiving-card-v0361.is-pending{
  border-left:4px solid #8a5bd1;
  background:linear-gradient(90deg,#fbf9ff,#fff 22%)
}
.purchase-receiving-card-v0361.is-received{
  border-left:4px solid var(--success);
  background:linear-gradient(90deg,var(--success-soft),#fff 22%)
}
.purchase-receiving-card-main-v0361{min-width:0}
.purchase-receiving-card-main-v0361 span,
.purchase-receiving-card-stat-v0361 span{
  display:block;
  color:var(--muted);
  font-size:10px;
  font-weight:800
}
.purchase-receiving-card-main-v0361 strong{
  display:block;
  margin:2px 0 3px;
  color:var(--brand-ink);
  font-size:17px;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.purchase-receiving-card-main-v0361 small,
.purchase-receiving-card-stat-v0361 small{
  display:block;
  color:var(--muted);
  font-size:10px;
  line-height:1.4
}
.purchase-receiving-card-stat-v0361{
  padding:7px 10px;
  border-radius:12px;
  background:rgba(255,255,255,.72);
  text-align:center
}
.purchase-receiving-card-stat-v0361 b{
  display:block;
  margin:1px 0;
  color:var(--brand-ink);
  font-size:20px;
  line-height:1.05
}
.purchase-receiving-card-v0361>.badge{
  justify-self:start;
  white-space:nowrap
}
.purchase-receiving-open-v0361{
  justify-self:end;
  color:var(--brand);
  font-size:12px;
  white-space:nowrap
}
.purchase-receiving-detail-actions-v0361{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  flex-wrap:wrap
}
.purchase-receiving-form-v0361{margin-top:16px}
.purchase-receiving-total-v0361{margin-top:0;padding:0;border:0;background:transparent;box-shadow:none}
.purchase-receiving-items-v0361{display:grid;gap:13px;margin-top:16px}
.purchase-receiving-item-v0361{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 7px 20px rgba(31,61,76,.05)
}
.purchase-receiving-item-v0361.has-difference{border-color:#e1ad58;box-shadow:0 0 0 3px rgba(225,173,88,.11)}
.purchase-receiving-item-v0361.is-blocked{background:#f8fafb;opacity:.88}
.purchase-receiving-item-v0361>header{
  display:grid;
  grid-template-columns:50px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#fff,var(--surface-2))
}
.purchase-receiving-item-v0361>header img,
.purchase-receiving-image-placeholder-v0361{
  display:flex;
  align-items:center;
  justify-content:center;
  width:50px;
  height:50px;
  border-radius:13px;
  object-fit:cover;
  background:#eef4f4;
  color:#78909a;
  font-size:21px
}
.purchase-receiving-item-v0361 h3{margin:0;color:var(--brand-ink);font-size:17px;line-height:1.3}
.purchase-receiving-item-v0361 header p{margin:3px 0 0;color:var(--muted);font-size:11px}
.purchase-receiving-item-body-v0361{
  display:grid;
  grid-template-columns:minmax(180px,.8fr) minmax(260px,1.2fr);
  gap:14px;
  padding:15px 16px
}
.purchase-receiving-expected-v0361,
.purchase-receiving-qty-v0361{
  display:block;
  padding:13px 14px;
  border:1px solid rgba(var(--brand-rgb),.08);
  border-radius:14px;
  background:var(--surface-2)
}
.purchase-receiving-expected-v0361>span,
.purchase-receiving-qty-v0361>span,
.purchase-receiving-note-v0361>span,
.purchase-receiving-destinations-v0361>span{
  display:block;
  margin-bottom:6px;
  color:var(--muted);
  font-size:11px;
  font-weight:850
}
.purchase-receiving-expected-v0361 strong{display:block;color:var(--brand-ink);font-size:24px;line-height:1.1}
.purchase-receiving-expected-v0361 strong small{font-size:12px;color:var(--muted)}
.purchase-receiving-expected-v0361 em{display:block;margin-top:6px;color:#a86a15;font-size:10px;font-style:normal;line-height:1.45}
.purchase-receiving-qty-v0361 .input{min-height:45px;font-size:19px;font-weight:900;text-align:center;background:#fff}
.purchase-receiving-qty-v0361 small{display:block;margin-top:6px;color:var(--muted);font-size:10px;text-align:center}
.purchase-receiving-item-v0361.has-difference .purchase-receiving-qty-v0361 small{color:#a76310;font-weight:850}
.purchase-receiving-destinations-v0361{padding:0 16px 14px}
.purchase-receiving-destinations-v0361>div{display:flex;gap:7px;flex-wrap:wrap}
.purchase-receiving-destinations-v0361 b{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:6px 9px;
  border:1px solid rgba(var(--brand-rgb),.14);
  border-radius:999px;
  background:var(--brand-soft);
  color:var(--brand-ink);
  font-size:11px
}
.purchase-receiving-destinations-v0361 b small{color:var(--brand);font-size:10px}
.purchase-receiving-note-v0361{display:block;padding:0 16px 16px}
.purchase-receiving-note-v0361 .input{font-size:12px;line-height:1.5}
.purchase-receiving-confirm-v0361{margin-top:16px}
.purchase-receiving-submit-v0361{width:100%;min-height:50px;margin-top:11px;font-size:15px}

@media(max-width:980px){
  .purchase-receiving-card-v0361{grid-template-columns:minmax(0,1fr) 108px auto}
  .purchase-receiving-open-v0361{display:none}
}
@media(max-width:760px){
  .purchase-receiving-hero-v0361,
  .purchase-receiving-detail-hero-v0361{align-items:flex-start;flex-direction:column;padding:19px;border-radius:19px}
  .purchase-receiving-hero-v0361 h2,
  .purchase-receiving-detail-hero-v0361 h2{font-size:24px}
  .purchase-receiving-hero-v0361 .btn{width:100%}
  .purchase-receiving-detail-actions-v0361{width:100%;justify-content:flex-start}
  .purchase-receiving-summary-v0361,
  .purchase-receiving-info-v0361,
  .purchase-receiving-total-v0361{grid-template-columns:1fr;gap:9px}
  .purchase-receiving-summary-v0361>div,
  .purchase-receiving-info-v0361>div,
  .purchase-receiving-total-v0361>div{padding:14px 15px}
  .purchase-receiving-summary-v0361 strong,
  .purchase-receiving-info-v0361 strong,
  .purchase-receiving-total-v0361 strong{font-size:20px}
  .purchase-receiving-section-v0361>.card-head{padding:14px}
  .purchase-receiving-list-v0361{padding:10px}
  .purchase-receiving-card-v0361{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:13px}
  .purchase-receiving-card-stat-v0361{display:none}
  .purchase-receiving-card-v0361>.badge{align-self:start}
  .purchase-receiving-item-v0361>header{grid-template-columns:44px minmax(0,1fr);padding:12px 13px}
  .purchase-receiving-item-v0361>header>.badge{grid-column:2;justify-self:start}
  .purchase-receiving-item-v0361>header img,
  .purchase-receiving-image-placeholder-v0361{width:44px;height:44px;border-radius:11px}
  .purchase-receiving-item-v0361 h3{font-size:16px}
  .purchase-receiving-item-body-v0361{grid-template-columns:1fr;padding:12px 13px;gap:9px}
  .purchase-receiving-expected-v0361,
  .purchase-receiving-qty-v0361{padding:12px 13px}
  .purchase-receiving-destinations-v0361,
  .purchase-receiving-note-v0361{padding-left:13px;padding-right:13px}
}
@media(max-width:430px){
  .purchase-receiving-card-v0361{grid-template-columns:1fr}
  .purchase-receiving-card-v0361>.badge{justify-self:start}
  .purchase-receiving-card-main-v0361 strong{font-size:16px;white-space:normal}
}
/* v0.4.16: keep checklist selection and card content aligned after multi-order selection */
.purchase-checklist-menu-card-v0346{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:start!important;gap:0 14px!important;padding:16px!important}
.purchase-checklist-menu-card-v0346>a.purchase-checklist-menu-link-v0414{display:grid!important;grid-column:2;grid-template-columns:minmax(0,1fr) auto auto auto;gap:16px;align-items:center;min-width:0;text-decoration:none}
.purchase-checklist-menu-card-v0346>.purchase-checklist-select-v0414{grid-column:1;grid-row:1;margin:2px 0 0;white-space:nowrap}
@media(max-width:700px){.purchase-checklist-menu-card-v0346{grid-template-columns:auto minmax(0,1fr)!important;gap:0 9px!important;padding:12px!important}.purchase-checklist-menu-card-v0346>a.purchase-checklist-menu-link-v0414{grid-template-columns:minmax(0,1fr) auto;gap:8px}.purchase-checklist-menu-link-v0414 .purchase-checklist-menu-progress-v0346{grid-column:1/-1}.purchase-checklist-menu-link-v0414 .purchase-checklist-menu-open-v0346{display:none}}
.purchase-checklist-menu-card-v0346{grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:8px 14px!important}
.purchase-checklist-menu-card-v0346>a.purchase-checklist-menu-link-v0414{grid-column:1/-1!important;grid-row:2!important}
.purchase-checklist-menu-card-v0346>.purchase-checklist-select-v0414{grid-column:1/-1!important;grid-row:1!important}
@media(max-width:700px){.purchase-checklist-menu-link-v0414 .purchase-checklist-menu-open-v0346{display:inline-block!important}}

/* v0.4.24 mobile admin navigation */
.mobile-menu-toggle-v0424{display:none}
.mobile-sidebar-backdrop-v0424{display:none}
@media(max-width:1024px){
  .mobile-menu-toggle-v0424{display:grid;place-items:center;flex:0 0 auto;width:40px;height:40px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--brand-ink);font:900 22px/1 Arial;cursor:pointer;box-shadow:0 4px 14px rgba(20,58,67,.06)}
  .topbar{gap:10px}
  .topbar-title{min-width:0}
  .sidebar{display:flex!important;visibility:visible!important;transform:translateX(-105%);transition:transform .2s ease;z-index:1100;width:min(290px,88vw);box-shadow:18px 0 48px rgba(20,50,65,.24);overflow:hidden}
  body.mobile-sidebar-open-v0424{overflow:hidden}
  body.mobile-sidebar-open-v0424 .sidebar{transform:translateX(0)}
  .mobile-sidebar-backdrop-v0424{display:block;position:fixed;inset:0;z-index:1050;background:rgba(15,34,45,.42);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
  .mobile-sidebar-backdrop-v0424[hidden]{display:none!important}
  .sidebar-nav-scroll{padding-bottom:12px}
}
@media(max-width:480px){.mobile-menu-toggle-v0424{width:38px;height:38px;font-size:20px}}
