body.so-open{overflow:hidden!important}.so-shell{--so-bg:#edf3fa;--so-card:#fff;--so-text:#102138;--so-muted:#607087;--so-line:#dce5ef;--so-accent:#087cec;position:fixed;inset:0;z-index:12000;background:var(--so-bg);color:var(--so-text);overflow:auto;font:14px/1.5 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;padding:calc(24px + env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) calc(30px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));color-scheme:light;box-sizing:border-box}.so-shell *{box-sizing:border-box}.so-shell .hide{display:none!important}html[data-theme=dark] .so-shell,html[data-visual-theme=dark] .so-shell{--so-bg:#061426;--so-card:#0c2035;--so-text:#e8f2ff;--so-muted:#a2b6ce;--so-line:#25415a;color-scheme:dark}.so-content{max-width:1540px;margin:auto}.so-header,.so-title,.so-actions,.so-toolbar,.so-week,.so-section-head,.so-order-ref,.so-store-head{display:flex;align-items:center;gap:12px;justify-content:space-between}.so-header{margin-bottom:22px;align-items:flex-start}.so-title{justify-content:flex-start}.so-title small{font-size:10px;letter-spacing:1.4px;font-weight:700;color:var(--so-muted)}.so-shell h1{font-size:28px;letter-spacing:-.8px;line-height:1.2;margin:5px 0}.so-shell p{margin:6px 0;color:var(--so-muted)}.so-shell h2{font-size:17px;margin:0 0 12px;line-height:1.3}.so-shell h3{font-size:14px;margin:12px 0}.so-shell small{display:block;color:var(--so-muted);font-size:12px}.so-shell button{appearance:none;background:var(--so-card);border:1px solid var(--so-line);border-radius:9px;padding:9px 14px;min-height:40px;color:var(--so-text);font:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px}.so-shell button:disabled{cursor:default;opacity:.5}.so-shell button:hover:not(:disabled){border-color:var(--so-accent)}.so-shell button:focus-visible,.so-shell input:focus-visible,.so-shell textarea:focus-visible{outline:3px solid #66b9ff;outline-offset:2px}.so-shell button.so-primary,.so-tabs button.selected{background:var(--so-accent);border-color:var(--so-accent);color:white}.so-shell button svg{height:17px;width:17px}.so-card{background:var(--so-card);border:1px solid var(--so-line);border-radius:15px;padding:20px;box-shadow:0 3px 12px #0a254007}.so-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.so-kpis b{display:block;font-size:25px;font-weight:750;line-height:1.25}.so-kpis span{color:var(--so-muted);font-size:12px}.so-kpis .so-card{padding:16px 20px}.so-toolbar{flex-wrap:wrap;margin:15px 0}.so-tabs{display:flex;gap:8px;flex-wrap:wrap}.so-view-tabs{margin-bottom:20px}.so-week{flex-wrap:wrap;justify-content:flex-end;font-size:12px}.so-week label{display:flex;gap:8px;align-items:center}.so-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}.so-summary{position:sticky;top:10px}.so-summary h2{display:flex;justify-content:space-between;gap:10px}.so-summary label{margin-top:18px}.so-summary>button{width:100%;margin:12px 0 5px}.so-summary>small{margin:10px 0}.so-cart-line{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid var(--so-line);align-items:center}.so-cart-line img,.so-lines img{width:40px;height:40px;object-fit:contain;border-radius:6px;background:#f7f9fc}.so-cart-line span{min-width:0}.so-order-ref{gap:8px;flex-wrap:wrap;margin:0 0 13px}.so-status{display:inline-block;border-radius:20px;padding:4px 10px;background:#0784ec14;color:var(--so-accent);font-size:11px;font-weight:750}.so-status.received{background:#20a87518;color:#15905f}.so-status.processing{background:#e9aa231c;color:#b68015}.so-status.cancelled{background:#dc484818;color:#d55a58}.so-table-scroll{overflow:auto}.so-shell table{width:100%;border-collapse:collapse;text-align:left;background:transparent;color:var(--so-text)}.so-shell th{font-size:11px;background:#0882ea0a;color:var(--so-muted);padding:10px;border-bottom:1px solid var(--so-line)}.so-shell td{padding:12px 10px;border-bottom:1px solid var(--so-line);font-size:13px;background:transparent;color:var(--so-text)}.so-shell tbody tr{background:transparent!important}.so-shell td:nth-child(2){color:var(--so-muted)}.so-product{display:flex;align-items:center;gap:12px;min-width:160px}.so-product img{height:46px;width:42px;object-fit:contain;background:#f7f9fc;border-radius:6px}.so-photo-empty{display:inline-grid;place-items:center;color:var(--so-muted);width:40px;min-width:40px;height:40px}.so-quantity{display:flex;align-items:center;gap:5px}.so-quantity button{width:32px;min-height:32px;height:32px;padding:0;font-size:20px}.so-shell input,.so-shell textarea{background:var(--so-card);border:1px solid var(--so-line);border-radius:8px;min-height:40px;padding:8px 10px;color:var(--so-text);font:inherit;max-width:100%}.so-shell textarea{resize:vertical;width:100%;min-height:88px}.so-shell .so-quantity input{width:54px;text-align:center;min-height:32px;height:32px;padding:2px;appearance:textfield}.so-shell input[type=number]::-webkit-inner-spin-button{appearance:none}.so-shell label{display:block;font-size:12px;color:var(--so-muted);font-weight:650}.so-shell label input:not([type=file]),.so-shell label textarea{display:block;width:100%;margin-top:6px}.so-section-head{margin-bottom:12px;flex-wrap:wrap}.so-section-head h2{margin:0}.so-store-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.so-store{min-width:0}.so-store-head h2{margin:0}.so-lines{list-style:none;margin:0;padding:0}.so-lines li{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--so-line)}.so-lines li span{flex:1}.so-store>.so-actions{flex-wrap:wrap;margin:15px 0 8px}.so-transfers{border-top:1px solid var(--so-line);margin-top:18px;padding-top:3px}.so-transfers h3{display:flex;align-items:center;justify-content:space-between}.so-transfer{display:grid;gap:3px;background:#0783e909;border:1px solid var(--so-line);border-radius:9px;padding:10px;margin:8px 0}.so-transfer span{font-size:12px}.so-total{display:flex;gap:15px;justify-content:space-between;border-bottom:1px solid var(--so-line);padding:12px 0}.so-catalog-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.so-catalog-item>img{width:100%;height:140px;object-fit:contain;background:#f7f9fc;border-radius:9px}.so-catalog-item h3{font-size:16px}.so-catalog-item p{min-height:40px;white-space:pre-wrap}.so-catalog-item button{margin-top:14px}.so-catalog-item>.so-status{margin-top:10px}.so-error,.so-success,.so-callout{padding:12px 16px;border-radius:9px;margin:10px 0 18px;background:#d84e4e13;color:#c74242;border:1px solid #d84e4e38;white-space:pre-wrap}.so-success{background:#20a87512;color:#169165;border-color:#20a87544}.so-callout{background:#e5a92b14;color:var(--so-text);border-color:#dda62344;font-size:12px}.so-empty{text-align:center;padding:30px 10px;color:var(--so-muted)}.so-note{white-space:pre-wrap}.so-shell details{margin-top:20px}.so-shell summary{cursor:pointer;font-weight:700}.so-modal-backdrop{position:fixed;inset:0;background:#02132688;display:flex;align-items:center;justify-content:center;padding:20px;z-index:2}.so-modal{width:520px;max-height:90dvh;overflow:auto}.so-modal label{margin:15px 0}.so-modal button[type=submit]{width:100%}.so-upload-preview{width:100%;height:150px;object-fit:contain}.so-actions{flex-wrap:wrap}
@media(max-width:1199px){.so-layout{grid-template-columns:minmax(0,1fr) 290px}.so-store-grid{grid-template-columns:1fr}.so-catalog-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.so-header{flex-wrap:wrap}}

.so-store.so-highlight{border-color:var(--so-accent);box-shadow:0 0 0 2px #087cec22}

.so-mobile-description{display:none!important}
/* Isolate controls from the legacy app's global button/input theme rules. */
.so-shell button{background:var(--so-card)!important;color:var(--so-text)!important;border:1px solid var(--so-line)!important;box-shadow:none!important;text-transform:none!important;letter-spacing:normal!important;text-shadow:none!important}
.so-shell button.so-primary,.so-shell .so-tabs button.selected{background:var(--so-accent)!important;color:#fff!important;border-color:var(--so-accent)!important}
.so-shell input,.so-shell textarea{background:var(--so-card)!important;color:var(--so-text)!important;border:1px solid var(--so-line)!important;box-shadow:none!important}

#storeOperationsPanel#storeOperationsPanel button{background:var(--so-card)!important;color:var(--so-text)!important;border:1px solid var(--so-line)!important;-webkit-text-fill-color:currentColor!important;opacity:1!important}
#storeOperationsPanel#storeOperationsPanel button:disabled{opacity:.5!important}
#storeOperationsPanel#storeOperationsPanel button.so-primary,#storeOperationsPanel#storeOperationsPanel .so-tabs button.selected{background:var(--so-accent)!important;color:#fff!important;border-color:var(--so-accent)!important}
#storeOperationsPanel#storeOperationsPanel input,#storeOperationsPanel#storeOperationsPanel textarea{background:var(--so-card)!important;color:var(--so-text)!important;-webkit-text-fill-color:currentColor!important;border:1px solid var(--so-line)!important}
#storeOperationsPanel#storeOperationsPanel :focus-visible{outline:3px solid #66b9ff!important;outline-offset:2px}
#storeOperationsPanel#storeOperationsPanel button,#storeOperationsPanel#storeOperationsPanel input,#storeOperationsPanel#storeOperationsPanel textarea{transition:none!important;animation:none!important}

.so-shell{--so-safe-top:env(safe-area-inset-top,0px);--so-safe-bottom:env(safe-area-inset-bottom,0px);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#storeOperationsPanel{border:0!important;outline:none!important;border-radius:0!important;box-shadow:none!important}
.so-range-short,.so-mobile-review,.so-shell .so-mobile-only{display:none}
.so-totals-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.so-totals-heading h2{margin-bottom:6px}
.so-form-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.so-form-head h2{margin:3px 0 0}
.so-form-head small{font-size:10px;letter-spacing:1px;font-weight:700}
.so-form-head>button{flex:none;font-size:24px;width:44px;height:44px;padding:0}
.so-photo-picker{position:relative;display:flex!important;align-items:center;gap:16px;border:1px dashed var(--so-line);border-radius:14px;padding:16px;cursor:pointer;overflow:hidden}
.so-photo-picker:focus-within{outline:3px solid #66b9ff;outline-offset:2px}
.so-picker-thumb{display:grid;place-items:center;width:80px;height:80px;flex:none;border-radius:12px;background:#0784ec0d;color:var(--so-accent)}
.so-picker-thumb svg{width:32px;height:32px}
.so-picker-thumb .so-upload-preview{width:100%;height:100%;object-fit:contain;border-radius:12px}
.so-picker-copy{min-width:0}
.so-picker-copy strong{display:block;font-size:14px;color:var(--so-text);margin-bottom:5px}
#storeOperationsPanel .so-photo-picker input[data-photo]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0}
.so-form-footer>p{font-size:12px;margin:12px 0}
.so-form-footer>button{width:100%}
.so-title>div,.so-store-head>div,.so-lines li span,.so-total span,.so-cart-line span{min-width:0;overflow-wrap:anywhere}
.so-cart-line>button{flex:none;margin-left:auto}

@media(max-width:767px){
  #storeOperationsPanel{height:min(100dvh,var(--so-viewport-height,100dvh));padding:0;scroll-padding-top:calc(var(--so-header-height,100px) + 16px);scroll-padding-bottom:calc(90px + var(--so-safe-bottom))}
  .so-content{padding:0 14px calc(24px + var(--so-safe-bottom));max-width:100%;min-width:0}
  .so-shell[data-so-view=store] .so-content{padding-bottom:calc(108px + var(--so-safe-bottom))}
  .so-header{position:sticky;top:0;z-index:10;display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:10px;margin:0 -14px 16px;padding:calc(12px + var(--so-safe-top)) 14px 12px;background:var(--so-bg);border-bottom:1px solid var(--so-line)}
  .so-title{grid-column:1;gap:10px;align-items:flex-start;min-width:0}
  .so-title>div>small{display:none}
  .so-shell h1{font-size:22px;line-height:1.2;margin:0 0 5px;letter-spacing:-.5px}
  .so-title p{font-size:12px;line-height:1.4;margin:0;max-width:30ch}
  .so-header>.so-actions{display:contents}
  .so-header [data-so=refresh]{grid-column:2;grid-row:1;width:44px;height:44px;padding:0}
  .so-header [data-so=refresh]>span:not([data-lucide-icon]){display:none}
  .so-header [data-so=refresh] svg{width:20px;height:20px}
  .so-header [data-so=propose]{grid-column:1/-1;grid-row:2;width:100%;min-height:44px}
  .so-title>button{width:44px;height:44px;padding:0;flex:none}
  .so-shell button{min-height:44px;font-size:14px;line-height:1.3;border-radius:11px}
  #storeOperationsPanel#storeOperationsPanel input:not([type=file]),#storeOperationsPanel#storeOperationsPanel textarea{font-size:16px!important;min-height:46px}
  .so-shell input,.so-shell textarea{min-width:0;max-width:100%}
  .so-shell textarea{min-height:112px;line-height:1.5}
  .so-shell label{font-size:13px}
  .so-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}
  .so-kpis .so-card{padding:13px 14px}
  .so-kpis b{font-size:21px;line-height:1.25}
  .so-kpis span{font-size:12px;line-height:1.4;display:block;margin-top:4px}
  .so-shell[data-so-view=store] .so-kpis .so-card:nth-child(2){grid-column:1/-1;grid-row:1}
  .so-shell[data-so-view=store] .so-kpis .so-card:nth-child(2) b{font-size:17px;overflow-wrap:normal}
  .so-shell[data-so-view=store] .so-kpis .so-card:nth-child(3) b{font-size:17px}
  .so-shell[data-so-view=operations] .so-kpis .so-card:nth-child(3){display:none}
  .so-shell .so-toolbar{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;gap:14px;margin:0 0 16px}
  .so-toolbar>.so-tabs:empty{display:none}
  .so-toolbar>.so-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:var(--so-card);padding:5px;border:1px solid var(--so-line);border-radius:14px}
  .so-toolbar>.so-tabs button{width:100%;font-weight:700}
  .so-week{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;margin:0;padding:12px;border:1px solid var(--so-line);border-radius:14px;background:var(--so-card)}
  .so-week>strong{grid-column:1/-1;grid-row:1;width:auto;margin:0;min-height:44px;display:flex;align-items:center;font-size:13px;padding-right:104px;line-height:1.4}
  .so-week>.so-range-full,.so-range-full{display:none}
  .so-range-short{display:inline}
  .so-week>[data-so=today]{grid-column:2/4;grid-row:1;justify-self:end;padding:8px 12px;font-size:12px}
  .so-week>[data-so=prev]{grid-column:1;grid-row:2;padding:0;font-size:25px}
  .so-week>[data-so=next]{grid-column:3;grid-row:2;padding:0;font-size:25px}
  .so-week>label{grid-column:2;grid-row:2;display:block;font-size:0;min-width:0}
  .so-shell .so-week label input{width:100%;max-width:100%;margin:0;text-align:center;height:46px;min-width:0;padding:8px;line-height:1.3}
  .so-view-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;overflow:visible;padding:0;margin-bottom:16px}
  .so-view-tabs button{min-width:0;white-space:normal;text-wrap:balance;font-size:12px;line-height:1.3;min-height:52px;padding:8px 6px;font-weight:650}
  .so-layout,.so-store-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
  .so-card{padding:16px;border-radius:16px;min-width:0}
  .so-section-head{gap:12px;align-items:stretch;margin-bottom:14px}
  .so-section-head h2{font-size:17px}
  .so-section-head input{width:100%;min-width:0}
  .so-table-scroll{overflow:visible}
  .so-shell table,.so-shell tbody{display:block;width:100%;min-width:0}
  .so-shell table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .so-shell table tbody{display:grid;gap:12px}
  .so-shell table tbody tr{display:grid;grid-template-columns:minmax(0,1fr);border:1px solid var(--so-line);border-radius:14px;overflow:hidden}
  .so-shell table td{display:block;padding:14px;border:0;font-size:14px}
  .so-shell table td:nth-child(2){display:none}
  .so-product{min-width:0;align-items:flex-start;gap:12px;font-size:14px;line-height:1.4}
  .so-product img{width:54px;height:64px;flex:none;border-radius:10px}
  .so-product>div{min-width:0;flex:1}
  .so-product strong{display:block;overflow-wrap:anywhere;color:var(--so-text)}
  .so-mobile-description{display:block!important;font-size:12px!important;line-height:1.5;margin-top:5px}
  .so-shell table .so-quantity-cell{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-top:1px solid var(--so-line);background:#0784ec04}
  .so-quantity-cell::before{content:attr(data-label);font-size:12px;font-weight:650;color:var(--so-muted)}
  .so-quantity{gap:8px;flex:none;margin-left:auto}
  .so-shell .so-quantity button{width:44px;height:44px;min-height:44px;font-size:22px;border-radius:11px}
  .so-shell .so-quantity input{width:64px;height:44px;min-height:44px;padding:4px;font-weight:700}
  .so-summary{position:static;scroll-margin-top:0}
  .so-summary h2{font-size:17px}
  .so-summary .so-cart-line{gap:12px;padding:14px 0;font-size:13px;line-height:1.4}
  .so-cart-line img{width:46px;height:50px;flex:none}
  .so-cart-line>button{width:44px;height:44px;padding:0;font-size:22px}
  .so-summary>button{min-height:48px}
  .so-mobile-review{position:fixed;z-index:20;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px max(14px,env(safe-area-inset-right)) calc(12px + var(--so-safe-bottom)) max(14px,env(safe-area-inset-left));background:var(--so-card);border-top:1px solid var(--so-line);box-shadow:0 -6px 24px #0213260a}
  .so-mobile-review strong{display:block;font-size:15px;line-height:1.4}
  .so-mobile-review small{font-size:12px;line-height:1.4}
  .so-mobile-review button{min-height:48px;min-width:164px;font-weight:700}
  .so-operations-summary{order:-1}
  .so-totals-heading{gap:12px}
  .so-totals-heading h2{font-size:16px}
  .so-shell .so-mobile-only{display:inline-flex;width:44px;height:44px;padding:0;flex:none}
  .so-totals-heading button svg{width:20px;height:20px}
  .so-operations-summary .so-totals-body{display:none;margin-top:12px}
  .so-totals-open .so-totals-body{display:block}
  .so-store-head{align-items:flex-start;gap:12px;margin-bottom:14px}
  .so-store-head h2{font-size:18px;line-height:1.3;margin-bottom:4px}
  .so-status{font-size:12px;white-space:nowrap;padding:5px 10px;line-height:1.4;flex:none}
  .so-order-ref{font-size:14px;gap:8px;margin-bottom:12px}
  .so-order-ref small{font-size:12px}
  .so-lines li{gap:12px;padding:12px 0;line-height:1.4}
  .so-lines li b{flex:none}
  .so-store>.so-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:16px}
  .so-store>.so-actions button{width:100%;min-height:48px}
  .so-transfers h3{font-size:14px;line-height:1.4;gap:12px}
  .so-transfers h3>span{background:#0784ec14;border-radius:12px;padding:3px 9px}
  .so-transfer{gap:6px;padding:12px;border-radius:12px}
  .so-transfer span{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
  .so-transfers>small{margin-top:12px;line-height:1.6;font-size:11px}
  .so-catalog-cards{grid-template-columns:minmax(0,1fr);gap:14px}
  .so-catalog-item>img{height:180px;max-width:100%;border-radius:12px}
  .so-catalog-item h3{font-size:17px;line-height:1.4;overflow-wrap:anywhere}
  .so-catalog-item p{font-size:13px;line-height:1.6;min-height:0;overflow-wrap:anywhere}
  .so-catalog-item>.so-status{margin:12px 0}
  .so-catalog-item>button,.so-catalog-item>.so-actions button{width:100%;min-height:48px}
  .so-catalog-item>.so-actions{display:grid;grid-template-columns:1fr;gap:8px}
  .so-catalog-item>.so-actions button{margin:0}
  .so-callout,.so-error,.so-success{font-size:13px;line-height:1.6;padding:13px;border-radius:12px}
  .so-empty{font-size:13px;line-height:1.6;padding:24px 8px}
  .so-shell details>summary{min-height:44px;line-height:1.5;padding:10px 0;font-size:14px}
  .so-modal-backdrop{z-index:40;align-items:flex-end;padding:0;bottom:auto;height:var(--so-viewport-height,100dvh);overflow:hidden}
  #storeOperationsPanel .so-modal{display:flex;flex-direction:column;width:100%;max-width:100%;min-width:0;max-height:calc(var(--so-viewport-height,100dvh) - var(--so-safe-top) - 8px);padding:0;margin:0;border-radius:22px 22px 0 0;overflow:hidden;box-shadow:0 -16px 50px #02132630}
  .so-form-head{padding:18px 16px 14px;border-bottom:1px solid var(--so-line);flex:none}
  .so-form-head h2{font-size:20px;line-height:1.3;margin-top:5px}
  .so-form-body{overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 16px;min-height:0}
  .so-modal label{font-size:14px;margin:18px 0}
  .so-photo-picker{gap:14px;padding:14px}
  .so-picker-thumb{width:72px;height:80px}
  .so-picker-copy strong{font-size:15px}
  .so-picker-copy small{font-size:12px;line-height:1.5}
  .so-modal label textarea{min-height:130px}
  .so-form-footer{padding:12px 16px calc(14px + var(--so-safe-bottom));border-top:1px solid var(--so-line);background:var(--so-card);flex:none}
  .so-form-footer>p{font-size:12px;line-height:1.5;margin:0 0 10px}
  .so-form-footer button{min-height:50px;font-weight:700}
  .so-editor-open{overflow:hidden!important}
  .so-editor-open .so-mobile-review{display:none}
}

.so-shell .so-photo-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:16px}.so-shell .so-photo-actions small{flex:1;min-width:160px}.so-shell .so-photo-actions [role=alert]{width:100%;margin:0;color:var(--so-danger,#c43b44)}.so-shell .so-photo-actions [role=alert]:empty{display:none}
