:root {
  color-scheme: light;
  --ink: #182a29;
  --muted: #71807d;
  --line: #e6ebe8;
  --paper: #ffffff;
  --canvas: #f6f8f6;
  --sidebar: #122b2a;
  --sidebar-muted: #94aaa4;
  --mint: #c9efdc;
  --mint-strong: #2f9c70;
  --mint-dark: #17684f;
  --warm: #f4a875;
  --danger: #c5524e;
  --shadow: 0 18px 55px rgba(25, 48, 43, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

.auth-gate{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:#f4f7f4}.auth-gate[hidden]{display:none}.auth-card{width:min(100%,420px);padding:34px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 20px 60px #122b2a18}.auth-brand{font-size:24px;font-weight:800;color:#122b2a}.auth-brand span{color:#7eaaa0}.auth-card h1{margin:30px 0 6px;font-size:27px}.auth-card>p{margin:0 0 24px;color:var(--muted)}.auth-card form label{display:block;margin:14px 0;color:#425451;font-size:13px;font-weight:650}.auth-card input{display:block;width:100%;margin-top:7px;padding:12px;border:1px solid var(--line);border-radius:10px;font:inherit}.auth-submit{width:100%;padding:13px;border:0;border-radius:10px;background:#122b2a;color:#fff;font-weight:700;font:inherit;cursor:pointer}.auth-message{min-height:20px;color:#a34230;font-size:13px}.auth-links{display:flex;justify-content:space-between}.auth-links button{border:0;background:none;color:#376e61;text-decoration:underline;cursor:pointer}.auth-card small{display:block;margin-top:20px;color:var(--muted);line-height:1.5}
.demo-entry{width:100%;margin-top:16px;padding:11px;border:1px solid #dce8e1;border-radius:10px;background:#f5faf7;color:#245f4c;font-weight:650;cursor:pointer}.preview-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 34px;border-bottom:1px solid #efd9b2;background:#fff8e9;color:#624b23}.preview-banner[hidden]{display:none}.preview-banner div{display:flex;align-items:baseline;gap:10px}.preview-banner strong{font-size:12px;white-space:nowrap}.preview-banner span{font-size:11px;line-height:1.4}.preview-banner a{flex:0 0 auto;color:#245f4c;font-size:11px;font-weight:700}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); color: var(--ink); }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(47,156,112,.3); outline-offset: 2px; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 252px; flex: 0 0 252px; min-height: 100vh; display: flex; flex-direction: column; padding: 27px 16px 18px; background: var(--sidebar); color: #f4fbf6; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 12px; text-decoration: none; color: inherit; }
.brand-mark { width: 29px; height: 29px; display: grid; grid-template-columns: repeat(2,1fr); gap: 3px; transform: rotate(-8deg); }
.brand-mark span { border-radius: 4px 4px 7px 4px; background: #89d8b1; }
.brand-mark span:nth-child(2), .brand-mark span:nth-child(3) { background: #f3a878; }
.brand-mark span:nth-child(4) { background: #f1d68e; }
.brand-mark.small { width: 24px; height: 24px; gap: 2px; }
.brand-name { font-size: 20px; font-weight: 780; letter-spacing: -.9px; }
.brand-name > span, .mobile-brand strong > span { color: #92dfb9; font-weight: 550; }
.workspace-label, .nav-caption { color: var(--sidebar-muted); font-size: 9px; letter-spacing: 1.2px; font-weight: 750; }
.workspace-label { margin: 39px 12px 10px; }
.workspace-card { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; text-align: left; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.055); color: white; cursor: pointer; }
.workspace-avatar, .profile-avatar { width: 33px; height: 33px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: #f5bd8b; color: #513321; font-size: 13px; font-weight: 800; }
.workspace-copy, .profile-copy { min-width: 0; display: grid; gap: 3px; }
.workspace-copy strong, .profile-copy strong { font-size: 11px; font-weight: 680; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-copy small, .profile-copy small { color: #9bb0aa; font-size: 10px; }
.chevron { color: currentColor; font-size: 16px; line-height: 1; opacity: .62; }
.workspace-card .chevron { margin-left: auto; }
.nav-caption { margin: 31px 12px 11px; }
.settings-caption { margin-top: 28px; }
.primary-nav { display: grid; gap: 5px; }
.nav-item { width: 100%; min-height: 43px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: #adc0ba; text-align: left; cursor: pointer; font-size: 12px; font-weight: 560; transition: background .16s, color .16s; }
.nav-item:hover { background: rgba(255,255,255,.06); color: white; }
.nav-item.active { background: #21423c; color: #fff; box-shadow: inset 3px 0 #86d9ae; }
.nav-icon, .mobile-nav-item [data-icon] { width: 18px; height: 18px; display: inline-flex; flex: 0 0 auto; }
.nav-icon svg, .mobile-nav-item svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item kbd { margin-left: auto; padding: 3px 5px; border: 1px solid rgba(255,255,255,.13); border-radius: 5px; color: #9bb0aa; font: inherit; font-size: 9px; }
.sidebar-spacer { flex: 1; min-height: 30px; }
.sidebar-help { position: relative; overflow: hidden; padding: 14px 14px 15px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.045); }
.sidebar-help::after { position: absolute; right: -20px; bottom: -38px; width: 88px; height: 88px; border: 1px solid rgba(139,217,177,.16); border-radius: 50%; content: ""; box-shadow: 0 0 0 12px rgba(139,217,177,.035), 0 0 0 24px rgba(139,217,177,.025); }
.help-orbit { margin-bottom: 8px; color: #8dd8b4; font-size: 18px; }
.sidebar-help strong { font-size: 11px; }
.sidebar-help p { max-width: 175px; margin: 6px 0 0; color: #9bb0aa; font-size: 10px; line-height: 1.55; }
.profile-button { display: flex; align-items: center; gap: 9px; margin-top: 15px; padding: 13px 5px 0; border: 0; border-top: 1px solid rgba(255,255,255,.1); background: transparent; color: white; text-align: left; cursor: pointer; }
.profile-avatar { width: 31px; height: 31px; border-radius: 50%; background: #b4cdec; color: #253b58; }
.profile-copy strong { font-size: 11px; }
.profile-copy small { font-size: 10px; }
.more-dots { margin-left: auto; letter-spacing: 2px; color: #9bb0aa; }
.main-column { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.topbar { height: 76px; flex: 0 0 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 34px; border-bottom: 1px solid #e9eeeb; background: rgba(255,255,255,.82); }
.topbar-context { display: flex; align-items: center; gap: 10px; min-width: 0; }
.context-label { color: #93a09d; font-size: 9px; font-weight: 760; letter-spacing: 1.2px; }
.select-wrap { position: relative; display: inline-flex; align-items: center; color: #263b39; }
.select-wrap select { max-width: 180px; padding: 8px 23px 8px 0; appearance: none; border: 0; outline-offset: 1px; background: transparent; font-size: 12px; font-weight: 690; cursor: pointer; }
.select-wrap .chevron { position: absolute; right: 3px; pointer-events: none; }
.location-wrap select { max-width: 205px; color: #667673; font-size: 11px; font-weight: 540; }
.context-divider { color: #b9c4c0; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.connection-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #e5ebe8; border-radius: 999px; background: #fff; color: #586864; font-size: 10px; cursor: pointer; }
.connection-dot { width: 7px; height: 7px; border-radius: 50%; background: #49ad7e; box-shadow: 0 0 0 3px #e1f4e9; }
.connection-pill.offline { color: #945332; border-color: #f2dfd0; background: #fffaf5; }
.connection-pill.offline .connection-dot { background: #dc8f50; box-shadow: 0 0 0 3px #f9ebdf; }
.icon-button { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #e6ebe8; border-radius: 50%; background: white; color: #6c7d78; cursor: pointer; }
.mobile-brand { display: none; }
#appContent { width: 100%; flex: 1; min-height: 0; padding: 31px 34px 40px; }
.page-wrap { width: min(100%, 1420px); margin: 0 auto; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.eyebrow { margin-bottom: 8px; color: #8b9a96; font-size: 9px; letter-spacing: 1.2px; font-weight: 750; text-transform: uppercase; }
.page-heading h1, .page-title { margin: 0; font-size: clamp(23px,2.1vw,31px); line-height: 1.15; letter-spacing: -1.1px; font-weight: 730; }
.page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.catalog-actions { display: flex; align-items: center; gap: 8px; }
.date-note { display: flex; align-items: center; gap: 8px; color: #86938f; font-size: 10px; white-space: nowrap; }
.date-note svg { width: 15px; height: 15px; stroke: currentColor; fill: none; }
.sales-layout { display: grid; grid-template-columns: minmax(0,1fr) 354px; align-items: start; gap: 22px; }
.catalog-panel, .cart-panel, .surface-card { border: 1px solid #e8edea; border-radius: 16px; background: var(--paper); }
.catalog-panel { min-height: 630px; padding: 20px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 21px; }
.catalog-title { margin: 0; font-size: 14px; font-weight: 710; letter-spacing: -.2px; }
.catalog-subtitle { margin: 4px 0 0; color: #93a09d; font-size: 10px; }
.search-box { width: min(260px,45%); position: relative; }
.search-box svg { position: absolute; top: 50%; left: 12px; width: 15px; height: 15px; transform: translateY(-50%); stroke: #91a09b; fill: none; stroke-width: 1.8; }
.search-box input, .field input, .field select, .field textarea { width: 100%; border: 1px solid #e5ebe8; border-radius: 9px; background: #fff; color: var(--ink); }
.search-box input { height: 38px; padding: 0 13px 0 35px; font-size: 11px; }
.search-box input::placeholder, .field input::placeholder { color: #a9b3b0; }
.category-row { display: flex; gap: 7px; overflow-x: auto; padding: 0 0 3px; margin-bottom: 19px; scrollbar-width: none; }
.category-row::-webkit-scrollbar { display: none; }
.category-chip { flex: 0 0 auto; padding: 8px 12px; border: 1px solid #e8edea; border-radius: 999px; background: white; color: #71807d; font-size: 10px; cursor: pointer; }
.category-chip.active { border-color: #cce9d8; background: #e8f7ee; color: #267552; font-weight: 660; }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.product-card { min-width: 0; position: relative; padding: 9px; border: 1px solid #ebefed; border-radius: 13px; background: #fff; text-align: left; cursor: pointer; transition: transform .16s, border .16s, box-shadow .16s; }
.product-card:hover { transform: translateY(-2px); border-color: #cfe8d8; box-shadow: 0 7px 17px rgba(33,83,61,.08); }
.product-card:active { transform: scale(.985); }
.product-art { height: 102px; display: grid; place-items: center; overflow: hidden; border-radius: 9px; font-size: 41px; }
.product-art::before, .product-art::after { position: absolute; content: ""; pointer-events: none; }
.product-art.water { background: radial-gradient(circle at 76% 18%,rgba(255,255,255,.75) 0 8%,transparent 9%), linear-gradient(145deg,#d9f2e9,#e8f4ed 50%,#c7e9dd); }
.product-art.coffee { background: radial-gradient(circle at 25% 80%,rgba(255,255,255,.5) 0 12%,transparent 13%), linear-gradient(145deg,#f8e6d2,#f6d2b6); }
.product-art.bread { background: radial-gradient(circle at 68% 22%,#fff8e9 0 8%,transparent 9%), linear-gradient(145deg,#faedcf,#f7e1ad); }
.product-art.snack { background: radial-gradient(circle at 28% 70%,rgba(255,255,255,.42) 0 12%,transparent 13%), linear-gradient(145deg,#f8ded2,#f5c4b4); }
.product-art.noodles { background: radial-gradient(circle at 75% 22%,#fff5c9 0 8%,transparent 9%), linear-gradient(145deg,#f8edc9,#f5dca0); }
.product-art.milk { background: radial-gradient(circle at 27% 20%,rgba(255,255,255,.7) 0 9%,transparent 10%), linear-gradient(145deg,#dcecf5,#c5ddec); }
.product-art.juice { background: radial-gradient(circle at 73% 77%,rgba(255,255,255,.38) 0 13%,transparent 14%), linear-gradient(145deg,#ffe7be,#ffcf87); }
.product-art.personal { background: radial-gradient(circle at 77% 19%,rgba(255,255,255,.65) 0 10%,transparent 11%), linear-gradient(145deg,#e9def5,#d9c9ed); }
.product-art.egg { background: radial-gradient(circle at 24% 25%,rgba(255,255,255,.7) 0 10%,transparent 11%), linear-gradient(145deg,#f6e4d7,#efcfb7); }
.product-art.generic { background: linear-gradient(140deg,#e9f0ec,#dce8e1); }
.product-art.has-photo { padding: 0; background: #eef2ef; }
.product-photo { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-tier { display: block; margin: 5px 1px 0; color: #9a7a39; font-size: 8px; }
.product-emoji { filter: drop-shadow(0 5px 4px rgba(31,64,49,.1)); transform: translateY(2px); }
.product-name { display: block; margin: 10px 1px 0; overflow: hidden; color: #293b38; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.product-meta { display: flex; justify-content: space-between; align-items: center; gap: 5px; margin: 6px 1px 1px; }
.product-price { color: #267451; font-size: 12px; font-weight: 740; }
.product-stock { color: #a0aaa6; font-size: 9px; white-space: nowrap; }
.product-stock.low { color: #cc7b50; }
.product-plus { position: absolute; top: 91px; right: 17px; width: 25px; height: 25px; display: grid; place-items: center; border: 2px solid white; border-radius: 50%; background: #2e9d70; color: white; box-shadow: 0 2px 7px rgba(16,62,43,.16); font-size: 16px; line-height: 1; }
.empty-catalog { grid-column: 1/-1; display: grid; place-items: center; min-height: 210px; padding: 25px; border: 1px dashed #dce5e0; border-radius: 12px; color: #85928e; text-align: center; font-size: 12px; }
.cart-panel { position: sticky; top: 20px; min-height: 520px; padding: 18px; }
.cart-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid #edf0ef; }
.cart-heading h2 { margin: 0; font-size: 14px; font-weight: 720; }
.cart-heading-primary, .cart-heading-actions { display: flex; align-items: center; gap: 7px; }
.cart-heading-actions { flex-wrap: wrap; justify-content: flex-end; }
.park-action { min-height: 29px; padding: 0 8px; border: 1px solid #e6ece8; border-radius: 7px; background: #fff; color: #52665d; font-size: 9px; white-space: nowrap; }
.park-action:disabled { opacity: .48; cursor: not-allowed; }
.cart-count { min-width: 21px; height: 21px; display: grid; place-items: center; padding: 0 6px; border-radius: 50px; background: #eaf6ef; color: #2a835b; font-size: 9px; font-weight: 700; }
.cart-customer { display: flex; align-items: center; gap: 9px; padding: 13px 0; border-bottom: 1px solid #edf0ef; }
.cart-category { color: #87958f; font-size: 9px; }
.line-price-options { display: flex; flex-wrap: wrap; gap: 5px; }
.line-price-button { min-height: 30px; padding: 0 9px; border: 1px solid #e3eae5; border-radius: 7px; background: #fff; color: #65756f; font-size: 9px; font-weight: 600; cursor: pointer; }
.line-price-button.active { border-color: #b8ddc8; background: #edf8f1; color: #267451; }
.line-price-button:disabled { opacity: .55; cursor: not-allowed; }
.cart-unit-price, .cart-line-end small { color: #8b9893; font-size: 9px; }
.return-sale-button { min-height: 31px; padding: 0 8px; white-space: nowrap; }
.return-sale-button:disabled { opacity: .55; cursor: not-allowed; }
.return-mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.return-mode-options label { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 11px; border: 1px solid #e4ebe7; border-radius: 9px; color: #51635c; font-size: 11px; cursor: pointer; }
.return-mode-options input { accent-color: #20865d; }
.return-items, .exchange-items { display: grid; gap: 7px; margin: 12px 0; }
.return-item-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid #edf1ee; border-radius: 9px; }
.return-item-copy { display: grid; gap: 4px; min-width: 0; }
.return-item-copy strong { color: #30433d; font-size: 11px; }
.return-item-copy small { color: #84928c; font-size: 9px; line-height: 1.4; }
.return-qty-label, .exchange-price-controls label { display: grid; gap: 4px; color: #697a73; font-size: 9px; }
.return-qty-label input, .exchange-price-controls input, .exchange-price-controls select { width: 78px; min-height: 34px; padding: 0 7px; border: 1px solid #dfe7e2; border-radius: 7px; background: #fff; color: #30433d; font-size: 11px; }
.exchange-section { display: grid; gap: 10px; padding: 12px; margin-top: 11px; border: 1px solid #e7eee9; border-radius: 10px; background: #fafcfb; }
.exchange-product-picker { display: flex; gap: 7px; }
.exchange-product-picker select { min-width: 0; flex: 1; }
.exchange-product-picker button { flex: 0 0 auto; }
.exchange-price-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-top: 8px; }
.exchange-price-controls select { width: auto; min-width: 105px; }
.exchange-item-row > button { flex: 0 0 auto; }
.return-totals { display: grid; gap: 8px; padding: 12px; margin-top: 12px; border-radius: 9px; background: #f5f8f6; }
.return-totals > div { display: flex; justify-content: space-between; gap: 12px; color: #72817b; font-size: 10px; }
.return-totals strong { color: #344841; }
.return-totals .return-settlement { padding-top: 9px; border-top: 1px dashed #dce5df; color: #274338; font-weight: 700; }
.warning-copy { color: #ae6554 !important; }
[hidden] { display: none !important; }
.customer-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; background: #f1f4f1; color: #7a8984; }
.customer-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.customer-copy { display: grid; gap: 3px; }
.customer-copy strong { font-size: 10px; font-weight: 640; }
.customer-copy small { color: #a0aaa6; font-size: 9px; }
.text-button { margin-left: auto; padding: 5px 0 5px 6px; border: 0; background: transparent; color: #398965; font-size: 10px; font-weight: 620; cursor: pointer; }
.cart-lines { min-height: 166px; max-height: 255px; overflow: auto; padding: 5px 0; }
.cart-empty { min-height: 150px; display: grid; align-content: center; justify-items: center; color: #98a39f; text-align: center; }
.cart-empty-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 14px; background: #f4f7f4; color: #90a29a; font-size: 19px; }
.cart-empty strong { color: #73817d; font-size: 11px; font-weight: 650; }
.cart-empty small { margin-top: 5px; font-size: 9px; }
.cart-line { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; padding: 11px 0; border-bottom: 1px solid #f0f2f1; }
.cart-line-main { display: grid; gap: 5px; min-width: 0; }
.cart-line-main strong { overflow: hidden; font-size: 10px; font-weight: 640; text-overflow: ellipsis; white-space: nowrap; }
.cart-line-main small { color: #909d98; font-size: 9px; }
.cart-line-end { display: grid; justify-items: end; align-content: space-between; gap: 6px; }
.cart-line-end strong { font-size: 10px; }
.qty-control { display: flex; align-items: center; gap: 8px; color: #52635e; font-size: 10px; }
.qty-control button { width: 20px; height: 20px; display: grid; place-items: center; padding: 0; border: 1px solid #e6ebe8; border-radius: 6px; background: #fff; color: #596a65; cursor: pointer; font-size: 13px; }
.cart-summary { padding-top: 9px; border-top: 1px solid #edf0ef; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; color: #7b8985; font-size: 10px; }
.summary-row strong { color: #4c5c57; font-weight: 600; }
.summary-row.total { padding-top: 12px; margin-top: 5px; border-top: 1px dashed #e3e9e5; color: #243734; font-size: 12px; font-weight: 650; }
.summary-row.total strong { color: #1e3932; font-size: 17px; font-weight: 740; letter-spacing: -.4px; }
.cart-note { display: flex; align-items: flex-start; gap: 7px; margin: 11px 0; color: #93a09b; font-size: 9px; line-height: 1.45; }
.cart-note svg { width: 14px; height: 14px; flex: 0 0 auto; stroke: #88a195; fill: none; }
.checkout-button, .primary-button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 0 15px; border: 0; border-radius: 10px; background: #20865d; color: white; font-size: 11px; font-weight: 700; cursor: pointer; box-shadow: 0 5px 12px rgba(32,134,93,.15); transition: background .15s, transform .15s; }
.checkout-button { width: 100%; }
.checkout-button:hover, .primary-button:hover { background: #176e4c; }
.checkout-button:active, .primary-button:active { transform: translateY(1px); }
.checkout-button:disabled, .primary-button:disabled { background: #c8d5ce; box-shadow: none; cursor: not-allowed; }
.checkout-button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.payment-footnote { margin: 9px 0 0; color: #a2aca8; text-align: center; font-size: 9px; }
.mobile-cart-bar { display: none; }
.secondary-button, .quiet-button, .danger-button { min-height: 37px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid #e4eae6; border-radius: 9px; background: #fff; color: #53635e; font-size: 10px; font-weight: 620; cursor: pointer; }
.secondary-button:hover, .quiet-button:hover { border-color: #b9dbca; background: #f8fcf9; }
.primary-button.small { min-height: 38px; }
.danger-button { border-color: #f1d9d7; color: var(--danger); }
.surface-card { padding: 21px; }
.surface-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.surface-header h2 { margin: 0; font-size: 14px; font-weight: 700; }
.surface-header p { margin: 5px 0 0; color: #889590; font-size: 10px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 11px 10px; border-bottom: 1px solid #e9eeeb; color: #8b9893; font-size: 9px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 13px 10px; border-bottom: 1px solid #f0f3f1; color: #52625d; font-size: 10px; white-space: nowrap; }
.data-table td:first-child { color: #293b37; font-weight: 650; }
.table-product { display: flex; align-items: center; gap: 9px; }
.table-art { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #f0f5f1; font-size: 16px; }
.table-art.has-photo { overflow: hidden; padding: 0; }
.status-tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; background: #edf7f0; color: #43805e; font-size: 9px; font-weight: 630; }
.status-tag::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.status-tag.warning { background: #fff4e8; color: #b77439; }
.status-tag.neutral { background: #f1f3f2; color: #7d8985; }
.metrics-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 18px; }
.metric-card { position: relative; overflow: hidden; min-height: 116px; padding: 16px; border: 1px solid #e8edea; border-radius: 14px; background: white; }
.metric-card::after { position: absolute; right: -22px; bottom: -39px; width: 85px; height: 85px; border: 1px solid #e4f0e8; border-radius: 50%; content: ""; box-shadow: 0 0 0 10px #f8fbf8; }
.metric-label { display: flex; align-items: center; gap: 6px; color: #899690; font-size: 9px; }
.metric-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; background: #eef7f1; color: #398761; font-size: 11px; }
.metric-value { position: relative; z-index: 1; margin-top: 12px; font-size: 22px; font-weight: 740; letter-spacing: -.7px; }
.metric-hint { position: relative; z-index: 1; margin-top: 4px; color: #a1aaa6; font-size: 9px; }
.overview-columns { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(280px,.7fr); gap: 14px; }
.business-list { display: grid; gap: 8px; }
.business-row { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid #edf0ee; border-radius: 11px; }
.business-row-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: #eef6f0; color: #32835d; font-size: 15px; }
.business-row-copy { min-width: 0; flex: 1; display: grid; gap: 4px; }
.business-row-copy strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.business-row-copy small { color: #98a39f; font-size: 9px; }
.business-row-total { color: #2a493d; font-size: 11px; font-weight: 690; white-space: nowrap; }
.owner-stock-card { max-width: 1420px; margin: 14px auto 0; }
.owner-stock-card .table-wrap { margin-top: 12px; }
.owner-sync-note { margin-top: 12px; }
.owner-stock-list { display: grid; gap: 7px; margin-top: 12px; }
.owner-stock-row { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 10px; border: 1px solid #e9efeb; border-radius: 9px; }
.owner-stock-item { display: grid; flex: 1; min-width: 0; gap: 4px; }
.owner-stock-item strong { overflow: hidden; color: #354941; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.owner-stock-item small { color: #96a19b; font-size: 9px; }
.owner-stock-count { color: #3c6753; font-size: 10px; font-weight: 650; white-space: nowrap; }
.owner-stock-count.low { color: #bb753e; }
.owner-stock-row .secondary-button { min-height: 31px; padding: 0 9px; font-size: 9px; }
.owner-stock-search { width: 100%; }
.empty-state { display: grid; justify-items: center; padding: 40px 20px; color: #87938f; text-align: center; }
.empty-state-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 15px; background: #eff7f2; color: #458b66; font-size: 20px; }
.empty-state strong { color: #3a4c47; font-size: 12px; }
.empty-state p { max-width: 300px; margin: 7px 0 0; font-size: 10px; line-height: 1.6; }
.parked-sales-list { display: grid; gap: 8px; }
.parked-sale-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px; border: 1px solid #e9efeb; border-radius: 10px; }
.parked-sale-copy { display: grid; gap: 5px; min-width: 0; }
.parked-sale-copy strong { overflow: hidden; color: #33463f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.parked-sale-copy small { color: #8a9791; font-size: 9px; }
.parked-sale-actions { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.parked-sale-actions .secondary-button, .parked-sale-actions .quiet-button { min-height: 31px; padding: 0 8px; font-size: 9px; }
.settings-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr); align-items: start; gap: 15px; }
.settings-card { padding: 22px; }
.settings-card + .settings-card { margin-top: 14px; }
.settings-card h2 { margin: 0; font-size: 14px; }
.settings-card > p { margin: 6px 0 17px; color: #899690; font-size: 10px; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.field { min-width: 0; display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field > span { color: #5c6c66; font-size: 10px; font-weight: 640; }
.field input, .field select { min-height: 39px; padding: 0 11px; font-size: 11px; }
.field small { color: #98a39e; font-size: 9px; line-height: 1.4; }
.field-hint { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: #8c9994; font-size: 9px; }
.photo-picker { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px dashed #dce5df; border-radius: 11px; background: #fbfcfb; }
.photo-preview { width: 70px; height: 70px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 10px; background: #edf4ef; color: #7d9386; font-size: 22px; }
.photo-preview .photo-fallback { transition: opacity .15s; }
.photo-preview .product-photo { width: 100%; height: 100%; }
.photo-picker-copy { min-width: 0; display: grid; gap: 5px; }
.photo-picker-copy strong { color: #41554a; font-size: 10px; }
.photo-picker-copy small { max-width: 260px; color: #96a29c; font-size: 9px; line-height: 1.45; }
.photo-picker-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 3px; }
.upload-label { position: relative; }
.upload-label input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.category-manage-list { display: grid; gap: 8px; margin-bottom: 15px; }
.category-manage-row { display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: center; gap: 8px; }
.category-manage-row span { color: #94a19b; font-size: 10px; }
.category-manage-row input { min-height: 36px; padding: 0 10px; border: 1px solid #e5ebe8; border-radius: 8px; font-size: 10px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #edf0ee; }
.advanced-settings { margin-top: 13px; border-top: 1px solid #edf0ee; }
.advanced-settings summary { padding: 12px 0 4px; color: #4d655b; font-size: 10px; font-weight: 650; cursor: pointer; }
.advanced-settings .toggle-row { padding-top: 10px; border-top: 0; }
.toggle-copy { display: grid; gap: 4px; }
.toggle-copy strong { color: #40524c; font-size: 10px; }
.toggle-copy small { color: #96a19d; font-size: 9px; }
.switch { position: relative; width: 37px; height: 21px; flex: 0 0 auto; }
.switch input { width: 0; height: 0; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 20px; background: #d9e0dc; cursor: pointer; transition: background .2s; }
.switch span::before { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: white; content: ""; box-shadow: 0 1px 3px rgba(0,0,0,.13); transition: transform .2s; }
.switch input:checked + span { background: #3c9d70; }
.switch input:checked + span::before { transform: translateX(16px); }
.location-list { display: grid; gap: 8px; margin: 12px 0; }
.location-row { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid #edf0ee; border-radius: 10px; }
.location-pin { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #f1f6f3; color: #488260; font-size: 12px; }
.location-row strong { font-size: 10px; font-weight: 650; }
.location-row small { display: block; margin-top: 3px; color: #9aa59f; font-size: 9px; }
.location-row button { margin-left: auto; border: 0; background: transparent; color: #94a09a; cursor: pointer; }
.device-note { display: flex; gap: 10px; padding: 13px; border: 1px solid #e7eee9; border-radius: 11px; background: #f7faf7; }
.device-note-icon { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: white; color: #58906f; }
.device-note strong { display: block; margin: 1px 0 4px; color: #486157; font-size: 10px; }
.device-note p { margin: 0; color: #87958e; font-size: 9px; line-height: 1.55; }
.modal-root:empty { display: none; }
.modal-root { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(14,34,30,.46); backdrop-filter: blur(3px); }
.modal-card { width: min(100%,460px); max-height: min(90vh,780px); overflow: auto; border: 1px solid rgba(255,255,255,.65); border-radius: 17px; background: white; box-shadow: var(--shadow); animation: modal-in .18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 21px 22px 14px; }
.modal-head h2 { margin: 0; font-size: 17px; letter-spacing: -.35px; }
.modal-head p { margin: 5px 0 0; color: #899690; font-size: 10px; line-height: 1.5; }
.modal-close { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #e7ece9; border-radius: 50%; background: white; color: #7b8984; cursor: pointer; font-size: 16px; }
.modal-body { padding: 0 22px 19px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 22px 19px; border-top: 1px solid #eef1ef; }
.modal-footer .primary-button { min-width: 116px; }
.payment-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 3px 0 12px; }
.payment-choice button { display: grid; justify-items: start; gap: 13px; min-height: 105px; padding: 13px; border: 1px solid #e7ece9; border-radius: 12px; background: white; text-align: left; cursor: pointer; }
.payment-choice button:hover { border-color: #b9ddc8; background: #f9fcfa; }
.payment-choice button:disabled { opacity: .47; cursor: not-allowed; }
.payment-choice button > span:first-child { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #eff7f2; color: #37825c; font-size: 15px; }
.payment-choice strong { display: block; font-size: 11px; }
.payment-choice small { display: block; margin-top: 4px; color: #9ba6a1; font-size: 9px; }
.cash-total { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-radius: 10px; background: #f4f8f5; color: #65746f; font-size: 10px; }
.cash-total strong { color: #233832; font-size: 18px; letter-spacing: -.3px; }
.cash-amount { margin-top: 14px; }
.change-preview { display: flex; justify-content: space-between; margin-top: 12px; color: #86938e; font-size: 10px; }
.change-preview strong { color: #2d7955; }
.receipt-success { display: grid; justify-items: center; padding: 10px 0 7px; text-align: center; }
.success-mark { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 50%; background: #e6f6ec; color: #2a9a65; font-size: 24px; }
.receipt-success h3 { margin: 0; color: #254338; font-size: 17px; }
.receipt-success p { margin: 6px 0 14px; color: #8b9993; font-size: 10px; }
.receipt-ticket { width: 100%; padding: 12px; border: 1px dashed #dce5df; border-radius: 9px; text-align: left; }
.receipt-ticket div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: #72807b; font-size: 10px; }
.receipt-ticket strong { color: #354740; }
.toast-region { position: fixed; z-index: 30; right: 20px; bottom: 20px; display: grid; gap: 8px; width: min(340px,calc(100vw - 30px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border: 1px solid #dce9e0; border-radius: 11px; background: white; color: #43564e; box-shadow: 0 8px 28px rgba(27,55,44,.13); font-size: 10px; animation: toast-in .2s ease-out; }
.toast-mark { width: 21px; height: 21px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #e6f6ec; color: #338359; font-weight: 800; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mobile-nav { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 1180px) {
  .sidebar { width: 220px; flex-basis: 220px; }
  .topbar { padding: 0 24px; }
  #appContent { padding: 27px 24px 34px; }
  .sales-layout { grid-template-columns: minmax(0,1fr) 326px; gap: 15px; }
  .catalog-panel { padding: 17px; }
  .product-grid { gap: 10px; }
  .product-art { height: 88px; }
  .product-plus { top: 77px; }
  .cart-panel { padding: 15px; }
}
@media (max-width: 930px) {
  .sidebar { width: 72px; flex-basis: 72px; align-items: center; padding: 22px 9px 14px; }
  .brand { padding: 0; }
  .brand-name, .workspace-label, .workspace-copy, .workspace-card .chevron, .nav-caption, .nav-item > span:not(.nav-icon), .nav-item kbd, .sidebar-help, .profile-copy, .more-dots { display: none; }
  .workspace-card { width: 42px; justify-content: center; padding: 5px; margin-top: 35px; }
  .workspace-avatar { width: 30px; height: 30px; }
  .primary-nav { width: 100%; margin-top: 22px; }
  .settings-caption + .primary-nav { margin-top: 0; }
  .nav-item { min-height: 43px; justify-content: center; padding: 0; }
  .nav-item .nav-icon { width: 19px; height: 19px; }
  .sidebar-spacer { min-height: 15px; }
  .profile-button { width: 100%; justify-content: center; }
  .sales-layout { grid-template-columns: minmax(0,1fr) 310px; }
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .app-shell { display: block; min-height: 100dvh; }
  .sidebar { display: none; }
  .main-column { min-height: 100dvh; padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
  .topbar { position: sticky; z-index: 5; top: 0; height: 60px; min-height: 60px; justify-content: space-between; padding: 0 16px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
  .preview-banner { align-items: flex-start; flex-direction: column; gap: 6px; padding: 10px 15px; }
  .preview-banner div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; color: #1d3831; font-size: 14px; letter-spacing: -.55px; }
  .mobile-brand strong > span { color: #31855f; }
  .topbar-context { flex: 1; justify-content: flex-end; gap: 6px; }
  .context-label, .context-divider, .location-wrap, .topbar-help { display: none; }
  .business-wrap select { max-width: 150px; padding-right: 19px; font-size: 10px; }
  .business-wrap .chevron { right: 0; font-size: 13px; }
  .topbar-actions { gap: 0; }
  .connection-pill { width: 26px; height: 26px; justify-content: center; padding: 0; border: 0; background: transparent; }
  .connection-pill #connectionLabel { display: none; }
  .connection-dot { width: 8px; height: 8px; }
  #appContent { padding: 20px 14px 20px; }
  .page-heading { align-items: flex-start; margin-bottom: 17px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading p { max-width: 270px; font-size: 10px; line-height: 1.5; }
  .date-note { display: none; }
  .sales-layout { display: flex; flex-direction: column; gap: 13px; }
  .catalog-panel { width: 100%; min-height: auto; padding: 13px; border-radius: 13px; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; gap: 11px; margin-bottom: 14px; }
  .catalog-subtitle { font-size: 9px; }
  .search-box { width: 100%; }
  .search-box input { height: 37px; }
  .category-row { margin-bottom: 13px; }
  .category-chip { padding: 7px 11px; font-size: 9px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .product-card { padding: 7px; border-radius: 11px; }
  .product-art { height: clamp(85px,27vw,126px); }
  .product-emoji { font-size: 38px; }
  .product-plus { top: calc(clamp(85px,27vw,126px) - 11px); right: 13px; width: 23px; height: 23px; font-size: 14px; }
  .product-name { margin-top: 8px; font-size: 10px; }
  .product-meta { margin-top: 5px; }
  .product-price { font-size: 11px; }
  .product-stock { font-size: 8px; }
  .cart-panel { width: 100%; min-height: auto; padding: 13px; border-radius: 13px; }
  .cart-heading { padding-bottom: 11px; }
  .cart-customer { padding: 10px 0; }
  .cart-lines { min-height: 56px; max-height: 210px; }
  .cart-empty { min-height: 82px; }
  .cart-empty-icon { width: 32px; height: 32px; margin-bottom: 5px; border-radius: 10px; font-size: 15px; }
  .cart-note { margin: 8px 0; }
  .checkout-button { min-height: 46px; }
  .mobile-nav { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; min-height: calc(61px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5,1fr); padding: 5px 7px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid #e8edea; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
  .mobile-nav-item { display: grid; justify-items: center; align-content: center; gap: 3px; padding: 0; border: 0; background: transparent; color: #899590; cursor: pointer; }
  .mobile-nav-item [data-icon] { width: 18px; height: 18px; }
  .mobile-nav-item small { font-size: 8px; font-weight: 580; }
  .mobile-nav-item.active { color: #238358; }
  .mobile-nav-item.active small { font-weight: 700; }
  .mobile-cart-bar { position: fixed; z-index: 9; right: 13px; bottom: calc(69px + env(safe-area-inset-bottom)); left: 13px; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 15px; border: 0; border-radius: 12px; background: #173c32; color: #dcefe4; box-shadow: 0 7px 20px rgba(19,55,42,.24); cursor: pointer; font-size: 10px; }
  .mobile-cart-bar strong { display: inline-flex; align-items: center; gap: 7px; color: white; font-size: 10px; }
  .mobile-cart-bar svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }
  .surface-card { padding: 14px; border-radius: 13px; }
  .surface-header { align-items: flex-start; }
  .catalog-actions { flex-wrap: wrap; }
  .surface-header h2 { font-size: 13px; }
  .surface-header p { line-height: 1.5; }
  .data-table th, .data-table td { padding: 11px 8px; }
  .metrics-grid { gap: 8px; margin-bottom: 10px; }
  .metric-card { min-height: 102px; padding: 12px; border-radius: 12px; }
  .metric-value { font-size: 19px; }
  .overview-columns, .settings-layout { grid-template-columns: 1fr; gap: 10px; }
  .settings-card { padding: 16px; }
  .settings-card + .settings-card { margin-top: 10px; }
  .form-grid { gap: 12px; }
  .modal-root { align-items: end; padding: 0; }
  .modal-card { width: 100%; max-height: min(91dvh,780px); border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); animation-name: modal-up; }
  @keyframes modal-up { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: none; } }
  .modal-head { padding: 19px 18px 12px; }
  .modal-body { padding: 0 18px 16px; }
  .modal-footer { padding: 12px 18px 17px; }
  .toast-region { right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (max-width: 390px) {
  .topbar { padding: 0 11px; }
  .mobile-brand { gap: 6px; font-size: 12px; }
  .brand-mark.small { width: 20px; height: 20px; }
  .business-wrap select { max-width: 124px; font-size: 9px; }
  .product-grid { gap: 7px; }
  .product-art { height: 85px; }
  .product-plus { top: 74px; }
  .product-stock { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
}
