/* Sales layouts inherit ERP controls, typography, states and hover rules. */
.sales-root{font-family:Montserrat,"Segoe UI",Arial,sans-serif;letter-spacing:0}
.sales-root :is(button,input,select,textarea){font-family:inherit;letter-spacing:0}
.sales-layout{container:sales-layout / inline-size;min-width:0;width:100%}
.sales-layout--field{width:min(420px,100%);margin-inline:auto}
.ht-app:is([data-sales-view="today"],[data-sales-view="delivery"],[data-sales-view="extra"],[data-sales-view="customer"],[data-sales-view="customers"]){--workflow-store-title-size:15px}
.ht-app .sales-customers{--sales-customer-filter-gap:12px}
.sales-app-owner{max-width:360px;margin-bottom:20px}
.sales-catalog-image{width:48px;height:48px;object-fit:contain;flex:none}
.sales-catalog-entry>summary{display:flex;align-items:center;gap:12px;overflow-wrap:anywhere}
.sales-photo-viewer{width:min(1100px,calc(100% - 24px));max-height:94dvh;padding:16px}
.sales-photo-viewer>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.sales-photo-viewer>img{display:block;width:100%;max-height:76dvh;object-fit:contain}
.sales-photo-viewer>p{color:var(--danger)}
.sales-root.ht-app{position:relative}
.sales-account-menu{position:absolute;top:16px;right:16px;z-index:10}
.sales-account-menu>summary{list-style:none;cursor:pointer}
.sales-account-menu>summary::-webkit-details-marker{display:none}
.sales-account-menu>div{position:absolute;right:0;top:calc(100% + 6px);display:grid;gap:6px;min-width:150px;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:var(--shadow)}
.sales-root.ht-app{box-sizing:border-box;width:100%;padding:16px;background:#fff;--page:#fff;--check-accent:var(--completed,var(--green))}
.sales-app-shell{width:100%;max-width:420px;min-height:100dvh;margin:0 auto;background:#fff}
.sales-profile-actions{display:flex;align-items:center;gap:8px;margin-top:16px}
.sales-demo-credentials{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px;margin-bottom:16px}
.sales-demo-credentials>div{min-width:0;border-bottom:1px solid var(--line);padding-bottom:12px}
.sales-root.ht-app.ht-visit-screen{padding:0}
@media(max-width:360px){.sales-root.ht-app{padding:12px}.sales-root.ht-app.ht-visit-screen{padding:0}}
.sales-root.ht-app.sales-has-bottom-nav{padding-bottom:calc(108px + env(safe-area-inset-bottom))}
.ht-home-head{position:relative;display:flex;align-items:center;justify-content:center;height:44px;padding:0;margin:0 0 50px;border:0}
.ht-home-head>.secondary{position:absolute;left:0;top:0}
.ht-home-action{position:absolute;right:0;top:0}
.sales-root .ht-home-head.has-action>img,.sales-root .ht-home-head.has-brand>img{display:block}
.sales-root .ht-home-head.has-brand{display:flex}
.ht-schedule-select-action{display:grid;grid-template-columns:minmax(0,1fr);width:100%}
.ht-home-head+.sales-section{border-top:0;padding-top:0;margin-top:0}
.ht-home-head+.ht-schedule-form{margin-top:0}
.ht-home-head img{display:block;width:174px;min-width:174px;max-width:174px;height:34px;object-fit:contain;flex:none}
.ht-home-head small{font-size:12px;color:var(--muted);white-space:nowrap}
.ht-store-list{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.ht-schedule-form{display:flex;flex-direction:column;gap:18px;margin-top:20px}
.ht-schedule-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);align-items:end;gap:8px}
.ht-schedule-controls.has-weeks{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,.8fr)}
.ht-schedule-controls>.field{min-width:0}
.ht-schedule-controls input[type=date]{width:100%;min-width:0}
.ht-schedule-weeks.view-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));height:var(--erp-control-height);min-width:0;justify-self:stretch;box-shadow:none}
.ht-schedule-weeks.view-switch button{height:calc(var(--erp-control-height) - 10px);min-width:0;padding:0;font-size:13px}
.ht-schedule-day h2{font-size:17px;margin:0 0 12px}
.ht-schedule-day ol{list-style:none;margin:0 0 16px;padding:0}
.ht-schedule-day ol{display:grid;gap:14px}
.ht-schedule-card{display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px}
.ht-schedule-card .workflow-store-text{min-width:0}
.ht-schedule-card .workflow-store-text b{font-size:15px;line-height:1.45;overflow-wrap:anywhere}
.ht-schedule-card .workflow-store-text small{display:block;font-size:12px;line-height:1.5;margin-top:4px;color:var(--muted);overflow-wrap:anywhere}
@container sales-layout (max-width:480px){.ht-schedule-card{grid-template-columns:64px minmax(0,1fr);gap:12px}.ht-schedule-card .ht-store-picture{width:64px;height:64px;min-width:64px;max-width:64px;flex-basis:64px}.ht-schedule-card .workflow-round-actions{grid-column:2;justify-self:end}}
.ht-week-days.ht-schedule-weekdays button{height:60px;border-color:var(--line)}
.ht-week-days.ht-schedule-weekdays button.is-selected{background:var(--green);border-color:var(--green);color:#fff}
.ht-week-days.ht-schedule-weekdays button.is-selected b{color:#fff}
.ht-week-days.ht-schedule-weekdays button b{font-size:13px}
.ht-schedule-add{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;margin:12px 0}
.ht-schedule-add>[data-choice-picker]{min-width:0}
.ht-schedule-target{padding:0 16px 16px;min-width:0}
.ht-schedule-target [data-choice-picker]{width:100%;min-width:0}
.sales-root.ht-app button.primary.ht-pill-button,.sales-registration-form button.primary.ht-pill-button{align-self:center;display:flex;align-items:center;justify-content:center;width:min(280px,85%);margin-left:auto;margin-right:auto;height:52px;min-height:52px;max-height:52px;border-radius:999px;font-size:14px}
.ht-pill-button>span{pointer-events:none}
.ht-visit-footer>.ht-pill-button{margin-top:4px;margin-bottom:max(16px,env(safe-area-inset-bottom));touch-action:manipulation;user-select:none}
.sales-work-mode{flex-wrap:wrap;max-width:100%}
.sales-work-mode button{min-width:0;white-space:normal;overflow-wrap:anywhere}
.sales-loadlist{min-width:0;display:grid;gap:12px}
.sales-load-stores{display:grid;gap:12px}
.sales-load-stores summary{list-style:none}
.sales-load-stores summary::-webkit-details-marker{display:none}
.sales-load-lines{margin:0}
.sales-load-lines>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}
.sales-load-lines>div:last-child{border-bottom:0}
.sales-load-lines>div:has(.ht-product-image){grid-template-columns:56px minmax(0,1fr) auto;align-items:center}
.sales-load-lines .ht-product-image{width:56px;height:56px;object-fit:contain;border:1px solid var(--line);border-radius:6px}
.sales-load-lines .ht-product-image~dt{min-width:0}
.sales-load-lines dt{min-width:0;overflow-wrap:anywhere}
.sales-load-lines dt small{display:block;margin-top:4px;color:var(--muted);font-size:11px}
.sales-load-lines dd{margin:0;font-weight:700;white-space:nowrap}
.sales-load-total{margin-top:12px}
.ht-store-picture{width:76px;height:76px;aspect-ratio:1;font-size:22px;flex:0 0 76px;min-width:76px;max-width:76px;border-radius:50%;border:1px solid var(--line);box-shadow:none}
.ht-store-logo>.avatar-face>img{object-fit:contain;padding:5px;background:#fff}
.field-route-head.ht-day-heading{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.sales-root .ht-day-heading h1{font-size:22px;white-space:nowrap;overflow-wrap:normal}
.ht-day-progress{margin:12px 0 0;width:100%;gap:7px;border-top:1px solid var(--line);padding-top:24px}
.ht-week-heading{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:8px}
.ht-week-heading .sales-icon{width:42px;min-width:42px}
.ht-day-caption{display:flex;align-items:baseline;justify-content:center;gap:12px;min-width:0}
.sales-root .ht-day-caption h1{font-size:14px;margin:0}
.sales-root .ht-day-caption :is(h1,.ht-date-button){font-weight:700}
.ht-day-caption p{white-space:nowrap;font-size:12px}
.ht-day-caption{position:relative}
.ht-date-button{height:42px;border:0;background:transparent;padding:0;color:var(--ink);font:inherit;font-size:14px;white-space:nowrap;cursor:pointer}
.ht-day-caption{gap:8px}
.ht-date-divider{font-size:14px;color:var(--muted)}
.ht-date-button:focus-visible{outline:2px solid var(--progress);outline-offset:2px}
.ht-calendar-input{position:absolute;inset:0;width:1px;height:1px;opacity:0;pointer-events:none}
.ht-week-days{display:grid;--week-gap:8px;grid-template-columns:repeat(7,min(58px,calc((100% - 6 * var(--week-gap)) / 7)));justify-content:space-between;gap:var(--week-gap)}
.ht-week-days button{display:grid;place-content:center;gap:6px;min-width:0;height:60px;padding:6px 0;border:1px solid var(--line);border-radius:8px;background:var(--page);color:var(--muted);font:inherit;cursor:pointer}
.ht-week-days button span{font-size:10px;font-weight:600}
.ht-week-days button b{font-size:17px;color:var(--ink)}
.ht-week-days button.is-selected{border-color:var(--progress)}
.ht-week-days button.is-today{background:var(--completed);color:#fff}
.ht-week-days button.is-today b{color:#fff}
.ht-week-days button.is-today.is-selected{border-color:transparent}
.ht-week-days button:disabled{opacity:.35;cursor:default}
.ht-week-days button:disabled b{color:var(--muted)}
.ht-week-days button:focus-visible{outline:2px solid var(--progress);outline-offset:2px}
@container sales-layout (max-width:360px){.ht-day-caption{gap:6px}}
.ht-store-hero{position:relative;width:calc(100% - 24px);margin:0 12px;aspect-ratio:16/10;min-height:240px;max-height:360px;background:#fff;border-radius:0 0 var(--ui-card-radius) var(--ui-card-radius);overflow:hidden}
.ht-store-hero.is-full-width{width:100%;margin:0}
.ht-hero-actions{position:absolute;top:16px;right:16px;z-index:2;display:flex;align-items:center;gap:8px}
.ht-store-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ht-store-hero>.secondary{position:absolute;top:16px;left:16px;z-index:1}
.ht-store-hero>.ht-hero-cart{right:16px;left:auto}
.sales-root.ht-app.ht-order-screen{padding:0}
.ht-order-body{padding:20px 16px 0}
.sales-root .ht-order-title{font-size:20px;margin:0 0 16px}
.ht-hero-identity{display:flex;align-items:center;gap:12px;min-width:0}
.ht-hero-text{flex:1;min-width:0}
.ht-hero-identity .ht-hero-profile{display:block;margin:0;opacity:1;flex:0 0 56px;width:56px;height:56px;min-width:56px;min-height:56px;max-width:56px;max-height:56px;aspect-ratio:1;border-radius:50%;overflow:hidden;background:#fff}
.ht-hero-profile .avatar-face{width:100%;height:100%;border-radius:inherit}
.ht-store-hero-caption .ht-hero-profile span{margin:0;opacity:1}
.ht-hero-profile img{width:100%;height:100%;object-fit:contain}
.ht-hero-profile-picker{flex:none;padding:0;border-radius:50%}
.ht-hero-profile-picker>.ht-hero-profile{border:0}
.ht-hero-text .field{width:100%;margin:0;font:inherit}
.ht-hero-text input{max-width:100%;width:100%;font-size:inherit}
.ht-hero-identity .ht-hero-text h1{margin:0 0 4px}
.ht-store-hero-caption{position:absolute;bottom:0;left:0;right:0;padding:56px 20px 18px;background:linear-gradient(to top,rgba(12,18,20,.85),rgba(12,18,20,.5) 55%,transparent);color:#fff}
.sales-root .ht-store-hero-caption h1{margin:0 0 8px;font-size:22px;line-height:1.3;overflow-wrap:anywhere}
.ht-store-hero-caption p{margin:0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.ht-store-hero-caption span{display:block;margin-top:4px;color:#fff;opacity:.85}
.ht-store-body{padding:16px 16px 0}
.is-unnumbered>.workflow-step-trigger{grid-template-columns:minmax(0,1fr) 28px}
.ht-checklist{display:flex;flex-direction:column;gap:12px}
.ht-step-number{font-size:14px;font-weight:600;color:var(--progress);font-variant-numeric:tabular-nums}
.ht-step-title{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;min-width:0}
.ht-step-count{font-size:14px;font-weight:600;line-height:1.45;white-space:nowrap;color:var(--progress);font-variant-numeric:tabular-nums}
.sales-root .ht-step-title>svg,.sales-root .ht-step-number>svg{width:24px;height:24px;color:#000;flex:none}
.ht-step-title{align-items:center}
.ht-step-title>b{min-width:0}
.ht-step-photos{display:grid;grid-template-columns:repeat(auto-fill,80px);gap:8px;padding:0 12px 12px;background:#fff;color:var(--ink)}
.ht-step-photos a{min-width:0;text-decoration:none;color:inherit}
.ht-photo{position:relative;min-width:0}
.sales-root.ht-app button.secondary.ht-photo-delete{position:absolute;top:4px;right:4px;display:grid;place-items:center;width:24px;min-width:24px;max-width:24px;height:24px;min-height:24px;max-height:24px;aspect-ratio:1;padding:0;border-radius:50%;line-height:1;touch-action:manipulation}
.sales-root .ht-photo-delete svg{width:12px;height:12px;pointer-events:none}
.ht-photo-delete::after{content:'';position:absolute;inset:-10px;border-radius:50%}
.ht-step-photos .task-delete-confirm{grid-column:1/-1;margin-top:4px}
.ht-step-photos img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px}
.ht-step-photos small{display:block;font-size:10px;line-height:1.4;margin-top:4px;overflow-wrap:anywhere;color:var(--muted)}
.sales-root .ht-step-photos button.ht-camera-tile.secondary{width:80px;height:80px;min-height:80px;max-height:80px;aspect-ratio:1;padding:0;display:grid;place-items:center;border-radius:6px}
.ht-camera-tile svg{width:24px;height:24px}
.ht-visit-footer{margin-top:12px;display:flex;flex-direction:column;gap:12px}
.ht-note-card>summary{list-style:none}
.ht-note-card>summary::-webkit-details-marker{display:none}
.ht-note-editor{padding:0 16px 12px;background:#fff;color:var(--ink)}
.ht-note-editor textarea{width:100%}
.ht-order-button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;height:auto;min-height:56px}
.ht-order-button>span:first-child{display:flex;align-items:center;gap:10px}
.ht-order-header{display:grid;grid-template-columns:var(--erp-control-height) minmax(0,1fr) var(--erp-control-height);gap:12px;align-items:center;padding:4px 0 16px;border-bottom:1px solid var(--line);margin-bottom:20px}
.sales-root .ht-order-header h1{font-size:20px;line-height:1.35;margin:0}
.ht-order-header>.sales-icon{width:var(--erp-control-height);min-width:var(--erp-control-height);height:var(--erp-control-height);padding:0}
.ht-order-store{display:flex;align-items:center;justify-content:center;gap:12px;min-width:0;padding:0 12px;margin-bottom:20px;text-align:left}
.ht-order-store b{font-size:15px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.ht-order-store .ht-store-picture{width:48px;height:48px;min-width:48px;max-width:48px;flex-basis:48px}
.ht-cart-toggle{position:relative}
.ht-cart-toggle small{position:absolute;top:-5px;right:-5px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border:2px solid #fff;border-radius:999px;background:var(--completed);color:#fff;font-size:10px;font-weight:600;line-height:1}
.ht-product-filters{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:8px;margin-bottom:12px}
.ht-product-filters>.field{margin:0}
.ht-product-filters input{font-size:13px;font-weight:400}
.ht-product-filters>.sales-icon{width:var(--erp-control-height);min-width:var(--erp-control-height);height:var(--erp-control-height);padding:0}
.ht-product-tags{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:12px}
.sales-root .ht-product-tags button.secondary{height:auto;min-height:30px;max-height:none;padding:4px 8px;font-size:11px;line-height:1.3;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.ht-catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
.ht-product-card{position:relative;display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);overflow:hidden}
.ht-product-image{display:block;width:100%;aspect-ratio:1;background-size:400% 200%;background-repeat:no-repeat;background-color:#fff;border-radius:6px}
.ht-product-image:is(img){height:auto;object-fit:contain}
.ht-product-card>.ht-product-image{border-radius:0}
.ht-product-copy{flex:1;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;padding:12px;min-width:0}
.ht-product-copy b{font-size:14px;font-weight:600;line-height:1.45;min-height:2.9em;overflow-wrap:anywhere}
.ht-product-copy small{font-size:11px;font-weight:400;line-height:1.4;color:var(--muted)}
.ht-product-add{margin:4px 0 0;min-width:0}
.ht-quantity-controls{--quantity-size:40px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:3px;min-width:0}
.ht-quantity-controls .field{margin:0;gap:0;min-width:0}
.sales-root .ht-quantity-controls .field>input{width:100%;height:var(--quantity-size);min-height:var(--quantity-size);max-height:var(--quantity-size);min-width:0;padding:0;font-size:13px;font-weight:700;text-align:center}
.sales-root .ht-quantity-controls button{display:grid;place-items:center;width:100%;min-width:0;height:var(--quantity-size);min-height:var(--quantity-size);max-height:var(--quantity-size);padding:0}
.sales-product-row>.ht-quantity-controls,.ht-cart-controls .ht-quantity-controls{grid-template-columns:repeat(4,minmax(0,1fr))}
.sales-root .ht-quantity-controls button.ht-quantity-command{grid-column:1/-1;margin-left:0;width:100%}
.sales-root .sales-product-row button.ht-quantity-command,.sales-root .ht-cart-controls button.ht-quantity-command{grid-column:auto}
.sales-root .ht-quantity-controls svg{display:block;width:18px;height:18px}
.ht-product-selected{position:absolute;right:8px;top:8px;display:grid;place-items:center}
.ht-cart-screen{position:fixed;inset:0 0 0 var(--sales-app-left,auto);margin:0;width:min(480px,var(--sales-app-width,calc(100% - 32px)));max-width:none;height:100dvh;max-height:none;background:#fff;border:0;border-radius:0;padding:0;overscroll-behavior:contain}
.ht-cart-screen[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;animation:ht-cart-enter .2s ease-out}
.ht-cart-screen.is-restored{animation:none}
.ht-cart-screen::backdrop{background:rgba(20,23,35,.38);backdrop-filter:none}
.ht-cart-screen>footer{padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line)}
html:has(.ht-cart-screen[open]){overflow:hidden}
@keyframes ht-cart-enter{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.ht-cart-screen[open]{animation:none}}
.ht-cart-screen>.modal-head{padding:max(16px,env(safe-area-inset-top)) 20px 16px}
.sales-root .ht-cart-screen h2{display:flex;align-items:center;gap:10px;font-size:17px;line-height:1.4;margin:0;flex:1}
.ht-cart-screen h2 small{font-size:17px;font-weight:600;color:var(--ink)}
.ht-cart-screen .icon-btn{display:grid;place-items:center;padding:0;line-height:1}
.ht-cart-screen>.sheet-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 20px max(16px,env(safe-area-inset-bottom))}
.ht-cart-row{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}
.ht-cart-row:last-child{border-bottom:0}
.ht-cart-row>.ht-product-image{width:56px;height:56px;border:1px solid var(--line);border-radius:6px;object-fit:contain}
.ht-cart-row b{display:block;font-size:14px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.ht-cart-row small{display:block;font-size:11px;color:var(--muted);margin-top:4px}
.ht-cart-controls{grid-column:1/-1;justify-self:end;width:min(100%,180px)}
.sales-root.ht-app:has(.ht-order-footer){padding-bottom:calc(120px + env(safe-area-inset-bottom))}
.ht-order-footer{position:fixed;bottom:0;left:var(--sales-app-center,50%);transform:translateX(-50%);width:min(560px,var(--sales-app-width,100%));padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff;z-index:2}
.ht-order-save-state{text-align:center;font-size:12px;color:var(--muted);margin:0 0 8px}
.sales-catalog-entry{padding:12px 0;border-bottom:1px solid var(--line)}
.sales-catalog-entry summary{cursor:pointer;font-size:14px;overflow-wrap:anywhere}
.sales-catalog-entry form{padding-top:16px}
.sales-catalog-tags{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px;border:1px solid var(--line);border-radius:6px;padding:12px}
.sales-catalog-tags label{display:flex;align-items:center;gap:6px;font-size:13px}
@container sales-layout (max-width:360px){.ht-store-picture{width:64px;height:64px;flex-basis:64px;min-width:64px;max-width:64px}.ht-product-copy{padding:10px}.ht-day-heading{gap:10px}.ht-day-heading h1{font-size:20px}.ht-day-progress .progress-step,.ht-day-progress .step-percent{font-size:12px}.ht-cart-screen>.modal-head{padding:16px}.ht-cart-screen>.sheet-body{padding:0 16px 8px}.ht-order-footer{padding-left:12px;padding-right:12px}}
@container sales-layout (max-width:480px){.ht-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ht-product-copy{padding:4px}.ht-product-copy b{font-size:13px}.ht-product-card>.ht-product-image{max-height:240px}}

.sales-root{max-width:1480px;margin:0 auto;letter-spacing:0}
.sales-root h1{font-size:24px;line-height:1.35}
.sales-root h2{font-size:20px;margin:0 0 18px}
.sales-root h3{font-size:17px;margin:0 0 12px}
.sales-root svg{width:20px;height:20px;flex-shrink:0}
.sales-root .field,.sales-root input,.sales-root select,.sales-root textarea{min-width:0}
.sales-root textarea{resize:vertical}
.sales-field-app{max-width:560px;--detail-accent:var(--progress)}
.sales-has-bottom-nav{padding-bottom:calc(86px + env(safe-area-inset-bottom))}
.sales-icon{display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0}
.sales-sync-bar{display:flex;align-items:center;gap:12px;min-height:34px;margin:0 0 12px}
.sales-sync-bar>span{flex:1}
.sales-sync-bar .health-indicator,.sales-sync-message .health-indicator{white-space:normal;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.sales-sync-message{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px}
.sales-sync-bar[hidden]{display:none}
.sales-sync-bar{font-size:12px;color:var(--muted);min-height:24px;margin-bottom:8px}
.sales-work-mode{margin:0 auto 16px;display:flex;width:max-content;max-width:100%;justify-content:center}
.sales-work-mode button{flex:0 1 auto}
.ht-round-check{position:relative;display:grid;place-items:center;width:28px;height:28px;flex:none;--detail-accent:var(--check-accent,var(--green))}
.ht-round-check>span{width:28px;height:28px;box-sizing:border-box}
.sales-preparation-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}
.sales-preparation-controls>.ht-note-card{grid-column:1/-1}
.sales-preparation-controls>.check-row{min-width:0;margin:0}
.sales-preparation-controls .workflow-step-trigger{grid-template-columns:minmax(0,1fr) 32px;gap:8px;padding:12px 8px;min-height:96px;align-content:center}
.sales-preparation-controls .ht-step-number{display:none}
.sales-preparation-controls .ht-step-title{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.sales-preparation-controls .ht-step-title b{font-size:12px}
.sales-preparation-controls .ht-step-title{align-items:center;flex-wrap:nowrap;gap:8px}
.sales-preparation-controls .ht-step-title svg{width:24px;height:24px;flex:none}
.sales-root.ht-app{--ht-store-row-height:108px}
.ht-store-card>button,.workflow-status-card .workflow-step-trigger{min-height:var(--ht-store-row-height,108px)}
.sales-root .workflow-status-card:has([data-sales-preparation="goods"]){--workflow-pending-bg:var(--completed,var(--green));--workflow-ready-bg:var(--completed,var(--green));overflow:hidden}
.sales-root [data-sales-preparation]{position:relative;grid-template-columns:minmax(0,1fr) 28px;grid-template-rows:auto;align-items:center;gap:12px;min-height:112px;padding-block:18px;text-align:left;isolation:isolate}
.sales-root [data-sales-preparation] .ht-step-title{display:block;min-width:0}
.sales-root [data-sales-preparation] .ht-step-title>b{position:relative;z-index:1;display:block;width:max(104px,36%);font-size:16px;line-height:18px;font-weight:600;max-width:100%;overflow-wrap:normal}
.sales-root [data-sales-preparation] .ht-step-title>b>span{display:block}
.sales-root [data-sales-preparation] .sales-preparation-visual{position:absolute;inset:0 8% 0 10%;display:block;pointer-events:none;z-index:0}
.sales-root .sales-preparation-visual>img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.sales-preparation-status{position:relative;z-index:1;display:grid;place-items:center;width:28px;height:28px}
.sales-root .ht-store-symbol{display:grid;place-items:center;border-radius:50%;border:1px solid var(--line);background:#fff;flex:none}
.sales-root .ht-store-symbol>svg{width:28px;height:28px;color:var(--ink)}
@container sales-layout (max-width:360px){.sales-root [data-sales-preparation] .sales-preparation-visual{left:10%;right:8%}}
@container sales-layout (max-width:360px){:is(.ht-store-card,.workflow-status-card){--ht-store-row-height:100px}}
.sales-section.sales-customer-section{border-top:0;padding-top:0;margin-top:0}
.sales-root .sales-customer-title{text-align:center;color:var(--green);font-size:20px;line-height:1.4;overflow-wrap:anywhere}
.sales-store-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.sales-store-form .field{min-width:0}
.sales-store-form .full{grid-column:1/-1}
.sales-registration-page{min-width:0;padding:16px 0}
.sales-registration-form{grid-template-columns:repeat(var(--sales-registration-columns,2),minmax(0,1fr))}
.sales-system-registration-form{align-items:start}
.sales-registration-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0;align-items:start}
.sales-registration-pair .form-actions{flex-wrap:wrap;gap:8px}
@container sales-layout (min-width:1100px){.sales-system-registration-form{--sales-registration-columns:4}}
@container sales-layout (max-width:760px){.sales-system-registration-form{--sales-registration-columns:1}}
.sales-registration-tabs{display:flex;justify-content:center;margin-bottom:8px}
@container sales-layout (min-width:1100px){.sales-system-registration-form>.sales-registration-tabs{justify-content:flex-start}}
.sales-registration-classification{display:grid;grid-template-columns:inherit;align-items:center;gap:16px;min-width:0}
.sales-registration-location-control{display:flex;align-items:center;gap:8px;min-width:0}
.sales-registration-location output{display:flex;align-items:center;flex:1;min-width:0;height:var(--erp-control-height);box-sizing:border-box;padding:0 12px;overflow:hidden;border:1px solid var(--line);border-radius:var(--erp-control-radius);background:var(--surface,#fff);font-size:14px;white-space:nowrap}
.sales-registration-location-control>.sales-icon{flex:none;width:var(--erp-control-height);min-width:var(--erp-control-height);height:var(--erp-control-height)}
.sales-registration-form .sales-image-action{width:56px;height:56px;padding:0}
@container sales-layout (max-width:400px){.sales-registration-form{column-gap:12px}.sales-registration-form .field>input{min-width:0;width:100%}}
.sales-store-form [data-choice-picker]{min-width:0;width:100%}
.sales-store-form [data-choice-picker] summary{height:44px;min-width:0;gap:6px}
.sales-store-form [data-choice-picker] summary span{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.3}
.sales-my-profile>.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.sales-my-profile>.form-grid>.field{min-width:0}
.sales-my-profile .section-head{justify-content:flex-start;gap:16px}
.sales-my-profile input[readonly]{background:var(--surface,#fff)}
.sales-section:has(>[data-sales-extra-form]){margin-top:0;border-top:0;padding-top:0}
[data-sales-extra-form]{margin-bottom:24px}
.sales-extra-owner{margin-bottom:20px}
.sales-extra-owner [data-choice-picker]{max-width:100%;min-width:0}
.sales-store-form .assignee-options{width:100%;min-width:0;max-width:100%}
.sales-image-field{align-content:start;min-width:0}
.sales-image-field>input{display:none}
.sales-image-field>img{width:80px;height:80px;object-fit:contain;border:1px solid var(--line);border-radius:6px}
.sales-image-field>img[hidden]{display:none}
.sales-image-field .form-actions{margin:0;justify-content:flex-start;gap:8px}
.sales-image-field>.secondary{width:44px;height:44px;display:grid;place-items:center;padding:0}
.sales-coordinate-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.sales-coordinate-command{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:end;gap:8px}
.sales-company-fields{display:contents}
.sales-register-field{display:grid;grid-template-columns:minmax(0,1fr) minmax(44px,max-content);align-items:end;gap:8px}
.sales-preparation-controls .ht-note-editor{padding:0 16px 12px;overflow-wrap:anywhere}
.sales-preparation-controls textarea{min-width:0;width:100%}
.sales-delivery-goods{display:grid;gap:12px;margin:0 0 16px}
.sales-delivery-goods .ht-cart-row{grid-template-columns:64px minmax(0,1fr) auto;margin:0}
.sales-delivery-goods .ht-cart-row>div{min-width:0;overflow-wrap:anywhere}
.sales-delivery-goods .ht-cart-row>b{white-space:nowrap}
.ht-store-expand>summary{list-style:none;display:grid;grid-template-columns:76px minmax(0,1fr) var(--ht-store-trailing-size,28px);gap:14px;align-items:center;padding:16px;cursor:pointer}
.ht-store-expand>summary::-webkit-details-marker{display:none}
.ht-store-expand>summary:focus-visible{outline:2px solid var(--progress);outline-offset:2px}
.ht-store-expand>.ht-note-editor>.secondary{width:auto;display:inline-flex}
.sales-load-total .workflow-step-trigger{grid-template-columns:26px minmax(0,1fr) 28px}
@container sales-layout (max-width:480px){.ht-store-expand>summary{grid-template-columns:64px minmax(0,1fr) var(--ht-store-trailing-size,28px);gap:12px;padding:14px}.ht-store-expand .ht-store-picture{width:64px;height:64px;min-width:64px;max-width:64px;flex-basis:64px}}
.sales-text-button{border:0;background:transparent;color:var(--progress);padding:8px 0;min-height:42px;text-align:left;overflow-wrap:anywhere}
.sales-toolbar,.sales-toolbar-actions,.sales-route-filters{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.sales-toolbar-actions{margin:0}
.sales-route-list{display:flex;flex-direction:column}
.sales-empty{padding:28px 0}
.sales-error{color:var(--danger)}
.sales-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;border-bottom:1px solid var(--line);padding:8px 0 24px;margin-bottom:20px}
.sales-metrics small{display:block;color:var(--muted);font-size:13px}
.sales-metrics strong{font-size:28px;display:block;margin-top:8px}
.sales-table-wrap{overflow:auto}
.sales-table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}
.sales-table th{color:var(--muted);font-weight:500}
.sales-table td,.sales-table th{padding:14px 12px;border-bottom:1px solid var(--line);vertical-align:top;max-width:320px;overflow-wrap:anywhere}
.sales-section{padding:24px 0;border-top:1px solid var(--line);margin-top:24px}
.sales-section:first-child{border:0;margin:0}
.sales-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:end}
.sales-store-directory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}
.sales-customer-list{display:grid;gap:8px;margin-block:16px}
.sales-customer-row{display:flex;align-items:center;gap:8px;min-width:0}
.sales-customer-row>.workflow-list-row{flex:1;min-width:0}
.sales-customer-select{display:flex;align-items:center;justify-content:center;flex:0 0 32px}
.sales-customer-select input{width:18px;height:18px;margin:0}
.sales-customer-inline-form{margin:0;min-width:0}
.sales-customer-fields dd>.field{display:block;width:100%;margin:0}
.sales-customer-fields dd input:not([type="radio"]):not([type="checkbox"]),.sales-customer-fields dd select{max-width:100%;width:100%;min-width:0}
.sales-customer-fields dd .sales-customer-kinds{flex-wrap:wrap}
.sales-customer-coordinate-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;align-items:center;gap:8px}
.sales-customer-inline-form input[type="file"][hidden]{display:none}
.sales-customer-info-group{margin-block:24px}
.sales-customer-info-group>h2{font-size:16px;line-height:1.4;margin:0 0 4px}
.sales-customer-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:0}
.sales-customer-fields>div{display:grid;grid-template-columns:minmax(100px,.75fr) minmax(0,1.25fr);align-items:baseline;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.sales-customer-fields dt{font-size:12px;color:var(--muted)}
.sales-customer-fields dd{font-size:14px;line-height:1.5;margin:0;overflow-wrap:anywhere}
.sales-customer-sheet{width:100%;min-width:0}
.sales-customer-sheet>.sheet-body>.section:first-child{border-top:0;margin-top:0;padding-top:0}
.sales-customer-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-block:16px}
.sales-customer-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;margin-bottom:18px}
.sales-customer-filters{display:grid;grid-template-columns:minmax(90px,1.2fr) minmax(100px,1fr) minmax(80px,.75fr);align-items:center;gap:var(--sales-customer-filter-gap,8px);min-width:0}
.sales-customer-filters .field{min-width:0}
.sales-customer-kind-filter{grid-column:1/-1}
.sales-customer-toolbar:not(:has(>.sales-customer-tabs))>.sales-customer-filters{grid-column:1/-1;grid-row:1}
.sales-customer-toolbar .sales-customer-tabs{margin:0;flex-wrap:nowrap;width:max-content;max-width:100%;justify-self:start}
.sales-root .sales-command{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}
.sales-command svg{display:block;flex:none;width:18px;height:18px}
.sales-customer-more{display:flex;justify-content:flex-end;margin-top:16px}
.sales-customer-classification{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.sales-customer-kinds{display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-width:0;border:0;padding:0;margin:0}
.sales-customer-kinds label{display:inline-flex;align-items:center;gap:6px;font-size:13px;white-space:nowrap}
.sales-category-create{display:grid;grid-template-columns:minmax(100px,1fr) auto auto;align-items:center;gap:12px;width:100%;margin-bottom:20px}
.sales-category-create>.field{min-width:0}
.sales-category-create>.sales-customer-kinds{flex-wrap:nowrap}
.sales-category-create>.module-primary{justify-self:end;max-width:100%}
.sales-category-grid{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px;margin:0;padding:0;width:100%}
.sales-category-grid>li{min-width:0}
.sales-category-grid .ht-store-card{--ht-store-trailing-size:44px}
.sales-category-grid .ht-store-card[open]{border-color:var(--green)}
.sales-category-grid .ht-store-card>.ht-note-editor{padding:0 16px 16px}
.sales-category-card-editor{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.sales-category-card-editor>.field{flex:1 0 100%;min-width:0}
.sales-category-card-editor>.sales-customer-kinds{flex:1 1 200px}
.sales-category-card-editor .form-actions{flex:1 1 190px;justify-content:flex-end;margin:0;gap:8px}
.sales-category-card-editor+.step-delete-wrap{display:block;margin-top:12px}
@container sales-layout (max-width:800px){.sales-customer-fields{grid-template-columns:minmax(0,1fr)}}

.sales-customer-plain,.sales-category-list{list-style:none;padding:0;gap:0}
.sales-customer-line{display:grid;grid-template-columns:54px minmax(0,2fr) minmax(0,1fr) minmax(0,.5fr) minmax(0,.8fr) 72px 72px minmax(140px,1fr);align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px;overflow-wrap:anywhere}
.sales-customer-line.has-selection{grid-template-columns:24px 48px minmax(0,2fr) minmax(0,1fr) minmax(0,.5fr) minmax(0,.8fr) 72px 72px minmax(140px,1fr) minmax(0,1fr)}
.sales-customer-columns{font-size:12px;font-weight:600;color:var(--muted)}
.sales-customer-plain{margin-top:0}
.sales-customer-identity{display:flex;align-items:center;gap:8px;min-width:0}
.sales-customer-picture{width:32px;height:32px;flex:0 0 32px}
.sales-customer-picture img{width:100%;height:100%;object-fit:contain}
@container sales-layout (max-width:800px){.ht-app .sales-customer-line:not(.has-selection):not(.sales-customer-columns){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}.ht-app .sales-customer-line:not(.has-selection)>.sales-customer-identity{grid-column:1/-1;grid-row:1}.ht-app .sales-customer-line:not(.has-selection)>span{grid-column:auto}.ht-app .sales-customer-line:not(.has-selection)>.sales-customer-representatives{grid-column:1/-1}.ht-app .sales-customer-status{justify-content:flex-start}}
.sales-store-placeholder .avatar-face{display:grid;place-items:center;width:100%;height:100%;color:var(--muted);background:var(--surface,#f6f7f9)}
.sales-root .avatar-icon{display:grid;place-items:center;width:100%;height:100%;color:var(--muted)}
.sales-root .avatar-icon svg{width:50%;height:50%;max-width:40px;max-height:40px}
.sales-customer-status-heading{text-align:center;white-space:nowrap;overflow-wrap:normal}
.sales-customer-status{display:inline-flex;justify-content:center;color:var(--muted)}
.sales-customer-status.is-active{color:var(--green)}
.sales-customer-status svg{width:20px;height:20px}
.sales-customer-representatives{display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}
.sales-customer-representatives>span{min-width:0;flex:1}
.sales-customer-representatives>.sales-icon{flex:none}
.sales-category-grid{--sales-category-picture-size:76px}
.sales-root button.secondary.sales-category-picture{display:grid;place-items:center;box-sizing:border-box;width:var(--sales-category-picture-size);min-width:var(--sales-category-picture-size);max-width:var(--sales-category-picture-size);height:var(--sales-category-picture-size);min-height:var(--sales-category-picture-size);max-height:var(--sales-category-picture-size);aspect-ratio:1;padding:0;border-radius:50%;overflow:hidden}
.sales-category-picture>.ht-store-picture{display:block;box-sizing:border-box;width:100%;height:100%;min-width:0;max-width:100%;aspect-ratio:1;border:0;border-radius:inherit}
.sales-category-picture .avatar-face{width:100%;height:100%;border-radius:inherit}
.sales-customer-identity a{color:inherit;font-weight:600}
.sales-category-editor{margin-block:16px 24px}
.sales-category-list>li{display:flex;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}
.sales-category-list>li>div{flex:1;min-width:0;overflow-wrap:anywhere}
.sales-category-list small{display:block;margin-top:4px;color:var(--muted)}
@container sales-layout (max-width:1200px){.sales-customer-toolbar{grid-template-columns:minmax(0,1fr) auto}.sales-customer-filters{grid-column:1/-1;grid-row:2}.sales-customer-toolbar>.sales-customer-tabs{grid-column:1;grid-row:1}}
@container sales-layout (max-width:800px){.sales-category-grid{grid-template-columns:1fr}.sales-customer-classification{grid-template-columns:1fr}.sales-customer-line,.sales-customer-line.has-selection{grid-template-columns:48px minmax(0,1fr);gap:8px;font-size:12px}.sales-customer-line.has-selection{grid-template-columns:24px 48px minmax(0,1fr)}.sales-customer-line>span:not(.sales-customer-code),.sales-customer-line>small{grid-column:2/-1}.sales-customer-line.has-selection>span:not(.sales-customer-code),.sales-customer-line.has-selection>small{grid-column:3/-1}.sales-customer-columns{display:none}}
@container sales-layout (max-width:600px){.sales-customer-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-customer-filters>.field:first-child{grid-column:1/-1}.sales-customer-toolbar{grid-template-columns:1fr}.sales-customer-toolbar>.sales-customer-tabs{grid-column:1;grid-row:1}.sales-customer-toolbar>.module-primary{width:100%;grid-row:3}.sales-category-create{grid-template-columns:minmax(0,1fr) auto;gap:10px}.sales-category-create>.field{grid-column:1/-1}.sales-category-create>.sales-customer-kinds{flex-wrap:wrap}.sales-category-create>.module-primary{grid-column:1/-1}.sales-category-card-editor>.form-actions{justify-content:flex-end}}
@container sales-layout (max-width:480px){.sales-category-grid{--sales-category-picture-size:64px}}
.sales-tomorrow-route{list-style:none;padding:0;display:grid;gap:8px}
.sales-tomorrow-route .step-order{flex-wrap:wrap;justify-content:flex-end;max-width:156px}
@container sales-layout (max-width:600px){.sales-tomorrow-route .sales-customer-row{flex-wrap:wrap}.sales-tomorrow-route .step-order{width:100%;max-width:none}}
.sales-store-directory>div{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:6px 12px;align-items:center;border-bottom:1px solid var(--line);padding:12px 0}
.sales-store-directory .avatar{grid-row:1 / span 2}
.sales-store-directory small{grid-column:2;color:var(--muted);font-size:12px}
.sales-store-directory button{grid-column:3;grid-row:1 / span 2}
.sales-store-image-preview{width:96px;height:96px;object-fit:contain;border:1px solid var(--line);border-radius:50%;background:#fff}
.sales-store-image-preview.is-cover{width:160px;height:100px;object-fit:cover;border-radius:8px}
.sales-inline{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.sales-my-profile>.avatar{width:64px;height:64px;margin-bottom:16px}
.sales-my-profile .section-head{margin-top:24px}
.sales-location-review{display:block;margin-top:4px;color:var(--danger);font-size:12px}
.sales-schedule-create{margin-top:24px;border-top:1px solid var(--line)}
.sales-schedule-create>summary{display:flex;align-items:center;gap:8px;min-height:48px;cursor:pointer}
.sales-schedule-create>form{padding:16px 0}
.field-route-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 22px}
.field-route-head h1{margin:8px 0}
.field-route-head small,.field-route-head p{font-size:13px;color:var(--muted);margin:0}
.field-products{display:flex;flex-direction:column;gap:12px}
.field-products>.secondary{align-self:flex-start}
.sales-product-lines{display:flex;flex-direction:column;gap:10px}
.sales-product-row{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.sales-product-row>.ht-quantity-controls{width:min(100%,180px);justify-self:end}
.sales-product-row input{width:100%;min-width:0}
.field-gps-meta{font-size:11px;color:var(--muted);margin:0}
.sales-detail-screen{padding-bottom:env(safe-area-inset-bottom)}
.sales-visit-head{display:flex;align-items:center;gap:12px;margin:20px 0}
.sales-visit-head>div{flex:1;min-width:0}
.sales-visit-head h2{margin:0 0 6px;overflow-wrap:anywhere}
.sales-visit-head small{font-size:12px;color:var(--muted)}
.sales-progress{display:flex;align-items:center;gap:12px;margin:18px 0;font-size:13px}
.sales-progress progress{flex:1;width:0;height:8px;accent-color:var(--completed)}
.sales-steps{display:flex;flex-direction:column;gap:12px}
.sales-step{background:#fff;border:1px solid var(--line);border-radius:8px}
.sales-step summary{min-height:56px;display:flex;align-items:center;gap:12px;padding:12px 16px;list-style:none;cursor:pointer}
.sales-step summary b{flex:1;min-width:0;font-size:14px;overflow-wrap:anywhere}
.sales-step-number{width:28px;height:28px;display:grid;place-items:center;flex-shrink:0;color:var(--progress);font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}
.sales-step.is-done .sales-step-number{color:var(--progress)}
.sales-progress b{font-size:14px;color:var(--progress);font-variant-numeric:tabular-nums}
.sales-step-body{padding:0 16px 18px;display:flex;flex-direction:column;gap:12px}
.sales-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sales-photos figure{margin:0}
.sales-photos img{width:100%;aspect-ratio:4/3;object-fit:contain}
.sales-photos figcaption{font-size:11px;color:var(--muted)}
.sales-history summary{min-height:44px;padding:12px 0;cursor:pointer}
.sales-live-camera{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;padding:0;border:0;border-radius:0;background:#080b0d;color:#fff;overflow:hidden}
.sales-live-camera[open]{display:grid;grid-template-rows:64px minmax(0,1fr) auto 108px}
.sales-live-camera header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 18px}
.sales-live-camera header b{font-size:16px;overflow-wrap:anywhere}
.sales-live-camera header button{width:44px;height:44px;border:1px solid #5c6468;border-radius:50%;background:transparent;color:#fff;font-size:25px;flex-shrink:0}
.sales-live-camera video{width:100%;height:100%;min-height:0;object-fit:contain}
.sales-camera-previews{position:absolute;right:8px;top:76px;bottom:150px;display:flex;flex-direction:column;gap:8px;width:64px;overflow:auto;overscroll-behavior:contain}
.sales-camera-previews img{display:block;width:64px;height:64px;object-fit:cover;border:1px solid #899397;border-radius:6px;flex-shrink:0}
.sales-live-camera p{font-size:13px;min-height:20px;margin:8px 16px;text-align:center}
.sales-live-camera footer{display:flex;align-items:center;justify-content:center;gap:24px;padding-bottom:max(12px,env(safe-area-inset-bottom))}
.sales-live-camera video{grid-row:2}
.sales-live-camera p{grid-row:3}
.sales-live-camera footer{grid-row:4}
.sales-live-camera footer .secondary{color:var(--ink);background:#fff}
.sales-shutter{width:66px;height:66px;border:5px solid #080b0d;outline:3px solid #fff;border-radius:50%;background:#fff;cursor:pointer}
.sales-shutter:disabled{background:#879296;outline-color:#879296;cursor:wait}
@container sales-layout (max-width:760px){.sales-form-grid{grid-template-columns:1fr}.sales-store-directory{grid-template-columns:1fr}.sales-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-table{min-width:650px}.sales-toolbar .view-switch{max-width:100%;flex-wrap:wrap}.sales-visit-head{flex-wrap:wrap}}
@container sales-layout (max-width:380px){.sales-product-row{gap:6px}}
.ht-search-field{position:relative}
.ht-search-field>span{position:absolute;left:12px;top:50%;transform:translateY(-50%);display:flex;pointer-events:none}
.ht-search-field svg{width:18px;height:18px}
.sales-root .ht-search-field input{padding-left:38px}
.sales-catalog-navigation{display:flex;align-items:flex-start;gap:8px;margin:16px 0}
.sales-catalog-navigation>button{flex:none;display:flex;align-items:center;gap:6px}
.sales-catalog-navigation>button svg{width:18px;height:18px}
.sales-catalog-tabs{display:flex;flex-wrap:wrap;gap:4px;min-width:0;flex:1}
.sales-root .sales-catalog-tabs>button{flex:none;min-height:30px;height:auto;padding:5px 9px;max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:11px;line-height:1.3}
.sales-catalog-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.sales-catalog-card{display:flex;flex-direction:column;gap:8px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff}
.sales-catalog-card>img{width:100%;aspect-ratio:1;height:auto;object-fit:contain}
.sales-catalog-card>b{font-size:13px;overflow-wrap:anywhere}
.sales-catalog-card>button{align-self:flex-end;margin-top:auto}
.sales-category-edit{display:flex;align-items:end;flex-wrap:wrap;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}
.sales-category-edit>.field{flex:1;min-width:140px;margin:0}
.sales-category-edit .step-delete-confirm{position:static;display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;white-space:normal}
@container sales-layout (max-width:1100px){.sales-catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@container sales-layout (max-width:850px){.sales-catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container sales-layout (max-width:600px){.sales-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-catalog-navigation>button{font-size:12px}}
@container sales-layout (max-width:340px){.sales-catalog-grid{grid-template-columns:minmax(0,1fr)}}
.sales-catalog-category-page{min-height:calc(100dvh - 120px);width:100%;padding-bottom:32px}
.sales-catalog-category-page>.section-head{justify-content:flex-start;align-items:center;gap:12px}
.sales-catalog-category-page>.section-head>h2{margin:0}
.sales-category-list{width:100%;max-width:1100px;margin:0 auto}
.sales-root .sales-product-price{font-size:13px;font-weight:600}
.sales-root .sales-product-barcode{font-size:11px;overflow-wrap:anywhere;color:var(--muted)}
#sales-catalog-editor{max-height:100dvh;overflow-y:auto}
.sales-root .sales-product-meta{display:flex;flex-direction:column;gap:4px}
@container sales-layout (max-width:480px){.sales-category-edit>label:not(.field){font-size:12px}.sales-catalog-category-page{padding-bottom:24px}}
