:root {
  color-scheme: light;
  --ink: #182a29;
  --muted: #5f6d6a;
  --line: #e6ebe8;
  --paper: #ffffff;
  --canvas: #f6f8f6;
  --sidebar: #122b2a;
  --sidebar-muted: #94aaa4;
  --mint: #c9efdc;
  --mint-strong: #2f9c70;
  --mint-dark: #17684f;
  /* VindoPulse brand tokens */
  --vp-green: #2be59d;
  --vp-green-dark: #0f9d6a;
  --vp-ink: #08211b;
  --vp-icon-bg: #eef7f1;
  --vp-icon-fg: #1d6b4b;
  --vp-icon-border: #cfe4d8;
  --warm: #f4a875;
  --danger: #c5524e;
  --shadow: 0 18px 55px rgba(25, 48, 43, .12);
  --vp-text-2xs: 11px;
  --vp-text-xs: 12px;
  --vp-text-sm: 13px;
  --vp-text-base: 14px;
  --vp-text-md: 15px;
  --vp-text-lg: 18px;
  --vp-text-xl: 20px;
  --vp-text-2xl: 24px;
  --vp-text-display: 28px;
  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;overflow-y:auto}.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;display:inline-flex;align-items:baseline}.auth-brand .vp-pulse{color:var(--vp-green-dark)}.auth-brand .vp-pos{font-size: 11px;margin-left:7px;padding:3px 8px 4px;border-color:var(--vp-green-dark);color:var(--vp-green-dark)}.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-card label.auth-checkbox{display:flex;align-items:flex-start;gap:9px;font-weight:500;line-height:1.45}.auth-card label.auth-checkbox input{width:17px;height:17px;flex:0 0 auto;margin:1px 0 0}.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-message.success{color:#1f6e53}.auth-confirmation-box{margin:10px 0 14px;padding:12px 14px;border:1px solid #c6dcd0;border-radius:12px;background:#f4faf6;font-size:13px;line-height:1.45;color:#1d4237}.auth-confirmation-box p{margin:0 0 10px}.auth-confirmation-actions{display:flex;gap:8px;flex-wrap:wrap}.auth-links{display:flex;justify-content:space-between;gap:16px}.auth-links button{min-height:24px;padding:2px 0;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}

* { 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; height: 100vh; max-height: 100vh; position: sticky; top: 0; overflow-y: auto; overflow-x: hidden; align-self: flex-start; z-index: 100; display: flex; flex-direction: column; padding: 27px 16px 18px; background: var(--sidebar); color: #f4fbf6; }
.store-badge-group { display: flex; flex-direction: column; gap: 1px; }
.store-context-name { font-weight: 750; font-size: 13px; color: #123e2b; letter-spacing: -0.2px; }
.topbar-clock { font-size: 11px; font-weight: 550; color: #4f6b5f; letter-spacing: -0.2px; white-space: nowrap; }
.sales-page-wrap { width: 100% !important; max-width: 100% !important; padding: 6px 14px 14px 14px !important; margin: 0 !important; }
.sales-compact-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; min-height: 28px; }
.domain-flip-pills { display: inline-flex; align-items: center; background: #e8f1ed; border: 1px solid #d4e2dc; border-radius: 7px; padding: 2px; gap: 3px; height: 28px; }
.domain-pill { border: none; background: transparent; color: #496357; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 5px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: all 0.15s ease; line-height: 1.2; }
.domain-pill:hover { color: #0f3d28; background: rgba(255,255,255,0.6); }
.domain-pill.active { background: #ffffff; color: #0b6944; font-weight: 750; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.domain-pill-icon { font-size: 11px; }
body[data-active-view="sales"] #appContent,
#appContent:has(.sales-page-wrap) { padding: 0 !important; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 12px; text-decoration: none; color: inherit; }
.brand-mark { width: 30px; height: 30px; display: block; flex: 0 0 auto; filter: drop-shadow(0 5px 12px rgba(43,229,157,.35)); }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-mark svg path { stroke-dasharray: 130; stroke-dashoffset: 130; animation: vp-pulse-draw 2.9s linear infinite; }
@keyframes vp-pulse-draw { 0% { stroke-dashoffset: 130; } 42% { stroke-dashoffset: 0; } 58% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -130; } }
@media (prefers-reduced-motion: reduce) { .brand-mark svg path { animation: none; stroke-dashoffset: 0; } }
.brand-mark.small { width: 24px; height: 24px; }
.brand-name { display: inline-flex; align-items: baseline; font-size: 20px; font-weight: 800; letter-spacing: -.9px; color: #f2faf6; }
/* VindoPulse wordmark: Vendo + pulse + a POS pill. */
.vp-pulse { color: var(--vp-green); font-weight: 600; }
.vp-pos { margin-left: 6px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--vp-green); font-size: 11px; font-weight: 800; letter-spacing: .16em; line-height: 1; align-self: baseline; white-space: nowrap; }
.brand-name > span.vp-pulse { color: var(--vp-green); }
.mobile-brand strong > span.vp-pulse { color: var(--vp-green-dark); }
.mobile-brand strong > span.vp-pos { color: var(--vp-green-dark); border: 0; }
.nav-caption { color: var(--sidebar-muted); font-size: 11px; letter-spacing: 1.2px; font-weight: 750; }
.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; }
.profile-copy { min-width: 0; display: grid; gap: 3px; }
.profile-copy strong { font-size: 11px; font-weight: 680; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-copy small { color: #9bb0aa; font-size: 12px; }
.chevron { color: currentColor; font-size: 16px; line-height: 1; opacity: .62; }
.nav-caption { margin: 20px 12px 8px; }
.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: none; }
.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; }
.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: 12px; 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; }
.account-shortcut { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 11px; border: 1px solid #dfe8e3; border-radius: 9px; background: #fff; color: #315849; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.account-shortcut > span:first-child { display: inline-grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; background: #e9f3ed; color: #448166; font-size: 11px; }
.signout-shortcut[hidden] { display: none; }
.signout-shortcut > span:first-child { display: inline; width: auto; height: auto; background: none; border-radius: 0; color: #9a3b32; font-size: inherit; }
.signout-shortcut { border-color: #efd2cf; }
.account-signout { width: 100%; margin-top: 10px; }
.account-signout-hint { margin-top: 12px; }
.profile-avatar { width: 31px; height: 31px; border-radius: 50%; background: #b4cdec; color: #253b58; }
.profile-copy strong { font-size: 11px; }
.profile-copy small { font-size: 12px; }
.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: #66736f; font-size: 11px; 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; }
.keyboard-toggle { font-size: 16px; border-radius: 9px; }
.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: 12px; 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; }
.sidebar-toggle { font-size: 17px; font-weight: 600; color: #5c6f68; flex: 0 0 auto; }
.context-logo { width: 28px; height: 28px; object-fit: contain; border-radius: 7px; background: #fff; border: 1px solid #e6ebe8; padding: 2px; flex: 0 0 auto; }
.context-logo[hidden], .context-label[hidden] { display: none; }
html.sidebar-collapsed .sidebar { display: none; }
#appContent { width: 100%; flex: 1; min-height: 0; padding: 31px 34px 40px; }
#appContent:focus { outline: none; }
.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: #626f6b; font-size: 11px; 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: #626f6b; font-size: 12px; white-space: nowrap; }
.date-note svg { width: 15px; height: 15px; stroke: currentColor; fill: none; }
.sales-layout { display: grid; grid-template-columns: minmax(0,1fr) 445px; 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: 14px 18px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.catalog-title { margin: 0; font-size: 14px; font-weight: 710; letter-spacing: -.2px; }
.catalog-subtitle { display: none !important; }
.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; }
.catalog-display-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:2px 0 12px; color:#626f6b; font-size: 12px; }
.catalog-view-switch { display:inline-flex; padding:3px; border:1px solid #e3eae5; border-radius:9px; background:#f7f9f7; }
.catalog-view-switch button { min-height:28px; padding:0 11px; border:0; border-radius:6px; background:transparent; color:#5c6a63; font:inherit; font-size: 11px; cursor:pointer; }
.catalog-view-switch button[aria-pressed="true"] { background:#fff; color:#267451; font-weight:700; box-shadow:0 1px 3px rgba(36,62,48,.12); }
.category-bar { position:sticky; z-index:4; top:8px; margin:0 0 12px; padding:8px 0 7px; border-bottom:1px solid #edf1ee; background:var(--paper); }
.category-row { display: flex; gap: 7px; overflow-x: auto; padding: 0 0 2px; margin: 0; 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: 12px; cursor: pointer; }
.category-chip.active { border-color: #cce9d8; background: #e8f7ee; color: #267552; font-weight: 660; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--vp-card-w, 152px)), 1fr)); gap: 12px; }
.product-grid.list-view { display:flex; flex-direction:column; gap:7px; }
.product-grid.list-view .product-card { display:grid; grid-template-columns:54px minmax(0,1fr) auto; grid-template-rows:auto auto; align-items:center; min-height:68px; padding:7px 42px 7px 7px; }
.product-grid.list-view .product-order-handle { display:none; }
.product-grid.list-view .product-art { grid-column:1; grid-row:1 / span 2; width:46px; height:46px; font-size:25px; }
.product-grid.list-view .product-name { grid-column:2; grid-row:1; margin:0 0 3px; white-space:normal; }
.product-grid.list-view .product-meta { grid-column:2; grid-row:2; justify-content:flex-start; gap:10px; margin:0; }
.product-grid.list-view .product-tier { grid-column:2 / 4; }
.product-grid.list-view .product-plus { top:50%; right:10px; transform:translateY(-50%); }
.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: var(--vp-art-h, 98px); display: grid; place-items: center; overflow: hidden; border-radius: 9px; font-size: 38px; position: relative; background: linear-gradient(180deg, #f3f7f4 0%, #e9f0ec 100%); }
.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%; max-width: 100%; max-height: 100%; display: block; object-fit: cover; object-position: center; filter: contrast(1.03) saturate(1.05); transition: transform .22s ease; }
.product-tier { display: block; margin: 5px 1px 0; color: #9a7a39; font-size: 11px; }
.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: 11px; white-space: nowrap; }
.product-stock.low { color: #cc7b50; }
.product-plus { position: absolute; z-index: 2; top: calc(var(--vp-art-h, 98px) - 5px); right: 14px; 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: 140px; padding: 18px; border: 1px dashed #dce5e0; border-radius: 12px; color: #626f6b; 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: 11px; white-space: nowrap; }
.park-action:disabled { opacity: .48; cursor: not-allowed; }
.addon-toggle-btn { background: #f0f7f3 !important; color: #1b6844 !important; border-color: #bde0cb !important; font-weight: 700 !important; }
.addon-toggle-btn:hover { background: #e2f2e9 !important; }
.addon-drawer { background: #ffffff; border: 1px solid #cce2d6; border-radius: 10px; padding: 10px 12px; margin: 10px 0 6px 0; box-shadow: 0 4px 14px rgba(16, 56, 38, 0.08); }
.addon-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.addon-drawer-title { font-size: 11px; font-weight: 700; color: #124b31; }
.addon-close-btn { background: none; border: none; font-size: 14px; color: #83978e; cursor: pointer; padding: 0 4px; }
.addon-close-btn:hover { color: #1b2622; }
.addon-preset-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.addon-chip { background: #f4faf6; border: 1px solid #d1e7da; border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 600; color: #215c3e; cursor: pointer; transition: all 0.12s; }
.addon-chip:hover { background: #e1f4e9; border-color: #a8dac0; transform: translateY(-1px); }
.addon-custom-row { display: flex; gap: 6px; align-items: center; }
.addon-input-name { flex: 1; min-width: 0; height: 30px; padding: 0 8px; font-size: 11px; border: 1px solid #d4e0d9; border-radius: 6px; }
.addon-price-wrap { display: flex; align-items: center; width: 78px; height: 30px; border: 1px solid #d4e0d9; border-radius: 6px; padding: 0 6px; background: #fff; }
.addon-currency { font-size: 11px; color: #6c7e76; margin-right: 2px; }
.addon-input-price { width: 100%; border: none !important; outline: none; font-size: 11px; padding: 0; color: #1a2e26; font-weight: 600; }
.addon-add-submit { height: 30px; padding: 0 12px; font-size: 11px; font-weight: 700; }
.store-mode-grid { display: grid; gap: 8px; margin: 12px 0 10px 0; }
.store-mode-option { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1.5px solid #dce8e1; border-radius: 10px; background: #ffffff; cursor: pointer; transition: all 0.15s ease; }
.store-mode-option:hover { border-color: #72ba97; background: #f7faf8; }
.store-mode-option.selected, .store-mode-option:has(input:checked) { border-color: #278d5e; background: #f0f7f3; box-shadow: 0 2px 8px rgba(39, 141, 94, 0.1); }
.store-mode-option input { margin-top: 3px; accent-color: #278d5e; }
.store-mode-option div { display: grid; gap: 2px; }
.store-mode-option strong { font-size: 12px; color: #1e362c; font-weight: 700; }
.store-mode-option small { font-size: 12px; color: #6a7d74; line-height: 1.35; }
.inventory-segment-bar { display: flex; gap: 8px; margin: 0 0 14px 0; padding-bottom: 4px; }
.inventory-segment-tab { padding: 8px 18px; border-radius: 8px; font-weight: 700; font-size: 11px; border: 1.5px solid #d4dfd8; background: #ffffff; color: #4b6357; cursor: pointer; transition: all 0.15s ease; }
.inventory-segment-tab:hover { background: #f3f7f5; border-color: #9fccb4; }
.inventory-segment-tab.active { background: #1a6b47; color: #ffffff; border-color: #1a6b47; box-shadow: 0 2px 6px rgba(26, 107, 71, 0.2); }
.restaurant-subtab-bar { display: flex; gap: 8px; margin: 0 0 16px 0; border-bottom: 2px solid #e1ebe5; padding-bottom: 8px; flex-wrap: wrap; }
.restaurant-subtab-btn { padding: 8px 18px; border-radius: 8px; font-weight: 700; font-size: 11px; border: 1.5px solid #d4dfd8; background: #ffffff; color: #4b6357; cursor: pointer; transition: all 0.15s ease; }
.restaurant-subtab-btn:hover { background: #f3f7f5; border-color: #9fccb4; }
.restaurant-subtab-btn.active { background: #1a6b47; color: #ffffff; border-color: #1a6b47; box-shadow: 0 2px 6px rgba(26, 107, 71, 0.2); }
.stock-summary-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stock-kpi-card { background: #ffffff; border: 1.5px solid #dce8e1; border-radius: 12px; padding: 18px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); display: flex; flex-direction: column; gap: 5px; }
.stock-kpi-card .kpi-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #5a7366; font-weight: 700; }
.stock-kpi-card .kpi-value { font-size: 24px; font-weight: 800; color: #16382b; }
.stock-kpi-card .kpi-desc { font-size: 11px; color: #7f948a; }
.cart-count { min-width: 21px; height: 21px; display: grid; place-items: center; padding: 0 6px; border-radius: 50px; background: #eaf6ef; color: #2a835b; font-size: 11px; 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: 11px; }
.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: 11px; 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: 11px; }
.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: 11px; line-height: 1.4; }
.return-qty-label, .exchange-price-controls label { display: grid; gap: 4px; color: #697a73; font-size: 11px; }
.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: 12px; }
.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: 12px; font-weight: 640; }
.customer-copy small { color: #a0aaa6; font-size: 11px; }
.text-button { margin-left: auto; padding: 5px 0 5px 6px; border: 0; background: transparent; color: #398965; font-size: 12px; 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: 11px; }
.cart-line { display: grid; grid-template-columns: minmax(0,1fr) 82px; 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: 12px; font-weight: 640; text-overflow: ellipsis; white-space: nowrap; }
.cart-line-main small { color: #909d98; font-size: 11px; }
.cart-line-end { width: 82px; display: grid; justify-items: end; align-content: start; gap: 6px; text-align: right; font-variant-numeric: tabular-nums; }
.cart-line-end strong { font-size: 12px; }
.qty-control { display: flex; align-items: center; gap: 8px; color: #52635e; font-size: 12px; }
.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: 12px; }
.summary-row strong { min-width: 72px; color: #4c5c57; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.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: 11px; 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: 11px; }
.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: 12px; 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: 12px; }
.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: 11px; 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: 12px; 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: 11px; 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: 11px; }
.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: 11px; }
.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: 12px; text-overflow: ellipsis; white-space: nowrap; }
.business-row-copy small { color: #98a39f; font-size: 11px; }
.business-row-total { color: #2a493d; font-size: 11px; font-weight: 690; white-space: nowrap; }
.owner-period-report { max-width: 1420px; margin: 20px auto 0; }
.accounting-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:12px; }
.accounting-columns h4 { margin:4px 0 10px; font-size:14px; }
.accounting-note { padding:10px 12px; border-radius:9px; background:var(--canvas); }
@media (max-width:720px) { .accounting-columns { grid-template-columns:minmax(0,1fr); } }
.owner-report-period { max-width: 360px; margin: 0 0 16px; }
.owner-report-date-fields { max-width: 620px; margin: 0 0 16px; }
.owner-report-metrics { margin: 16px 0 20px; }
.owner-report-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.owner-report-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.owner-report-subhead { margin: 20px 0 10px; color: #354941; font-size: 12px; }
.owner-monitoring-list { display: grid; gap: 9px; list-style: none; margin: 0 0 14px; padding: 0; }
.owner-monitoring-list li { display: flex; align-items: flex-start; gap: 9px; }
.owner-monitoring-list .status-tag { flex: 0 0 auto; }
.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: 11px; }
.owner-stock-count { color: #3c6753; font-size: 12px; 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: 11px; }
.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: 12px; line-height: 1.6; }
/* Owner-approved stock receiving: one card per delivery note waiting on this register. */
.receive-card { display: grid; gap: 9px; padding: 13px; border: 1px solid #e9efeb; border-radius: 12px; background: #fbfdfc; }
.receive-card + .receive-card { margin-top: 10px; }
.receive-card.receive-conflict { border-color: #e7c9a6; background: #fdf8f2; }
.receive-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.receive-head strong { color: #33463f; font-size: 12px; }
.receive-head span { color: #8a9791; font-size: 11px; }
.receive-summary { margin: 0; color: #5c6b65; font-size: 12px; }
.receive-summary strong { color: #3c6753; }
.receive-lines { display: grid; gap: 4px; margin: 0; padding: 0 0 0 16px; color: #5c6b65; font-size: 12px; }
.receive-lines li { display: flex; justify-content: space-between; gap: 10px; }
.receive-lines li span { color: #33463f; font-weight: 650; white-space: nowrap; }
.receive-warning { margin: 0; padding: 9px 10px; border-radius: 8px; background: #fbf1e4; color: #8a5a2b; font-size: 12px; line-height: 1.5; }
.receive-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.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: 11px; }
.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: 11px; }
.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: 12px; 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: 12px; font-weight: 640; }
.field input, .field select { min-height: 39px; padding: 0 11px; font-size: 11px; }
.field small { color: #98a39e; font-size: 11px; line-height: 1.4; }
.field-hint { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: #8c9994; font-size: 11px; }
.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: 12px; }
.photo-picker-copy small { max-width: 260px; color: #96a29c; font-size: 11px; 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: 32px minmax(0,1fr) auto; align-items: center; gap: 8px; padding:3px; border:1px solid transparent; border-radius:10px; }
.category-manage-row.dragging { opacity:.45; border-color:#91b5a3; background:#f1f7f3; }
.category-drag-handle { min-height:36px; border:0; border-radius:8px; background:#f1f5f2; color:#6d7c73; cursor:grab; touch-action:none; font-size:17px; }
.category-drag-handle:active { cursor:grabbing; }
.category-manage-row input { min-height: 36px; padding: 0 10px; border: 1px solid #e5ebe8; border-radius: 8px; font-size: 12px; }
.category-move-buttons { display:flex; gap:3px; }
.category-move-buttons button { width:30px; height:32px; border:1px solid #e5ebe8; border-radius:7px; background:#fff; color:#526158; cursor:pointer; }
.category-move-buttons button:hover { background:#f1f7f3; }
.category-add-list { display:grid; gap:8px; }
.category-add-button { margin-top:9px; }
.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: 12px; 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: 12px; }
.toggle-copy small { color: #96a19d; font-size: 11px; }
.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: 12px; font-weight: 650; }
.location-row small { display: block; margin-top: 3px; color: #9aa59f; font-size: 11px; }
.location-row button { margin-left: auto; border: 0; background: transparent; color: #94a09a; cursor: pointer; }
.location-row>span:nth-child(2) { flex: 1; min-width: 0; }
.location-row button[data-edit-location] { padding: 6px 8px; border: 1px solid #e6ece8; border-radius: 7px; color: #53655b; }
.employee-list { display: grid; gap: 7px; margin: 10px 0; }
.employee-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border: 1px solid #edf0ee; border-radius: 9px; }
.employee-row>span { min-width: 0; display: grid; gap: 4px; }
.employee-row strong { font-size: 12px; }
.employee-row small { color: #899690; font-size: 11px; line-height: 1.4; }
.employee-row-actions { display: flex; gap: 5px; flex: 0 0 auto; }
.employee-scope-field { display: grid; gap: 6px; margin: 14px 0 0; padding: 10px; border: 1px solid #e7ede9; border-radius: 9px; }
.employee-scope-field legend { padding: 0 4px; color: #526158; font-size: 12px; font-weight: 700; }
.employee-scope-row { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 7px; background: #f8faf8; }
.employee-scope-row input { accent-color: #27845b; }
.employee-scope-row span { display: grid; gap: 2px; }
.employee-scope-row strong { font-size: 11px; }
.employee-scope-row small { color: #899690; font-size: 11px; }
.owner-overview-columns { grid-template-columns: minmax(230px,.7fr) minmax(0,1.3fr); align-items: start; }
.overview-controls { display:grid; grid-template-columns:minmax(220px,.45fr) minmax(280px,1fr); gap:14px; align-items:end; margin:14px 0; }
.owner-overview-period-slot { min-width:0; }
.owner-overview-period-slot .owner-report-period { margin:0; }
.owner-overview-period-slot .owner-report-date-fields { margin-top:8px; }
@media (max-width:720px) { .overview-controls { grid-template-columns:1fr; gap:8px; } }
.owner-dashboard-side { display: grid; gap: 14px; min-width: 0; }
.owner-location-list,.owner-business-group { display: grid; gap: 7px; }
.owner-business-name { padding: 6px 4px 2px; color: #526158; font-size: 12px; }
.business-location-button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 10px; border: 1px solid #edf0ee; border-radius: 10px; background: #fff; color: #506057; text-align: left; cursor: pointer; }
.business-location-button.selected { border-color: #7caf94; background: #f1f8f3; }
.business-location-button>span { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.business-location-button svg { width: 15px; height: 15px; flex: 0 0 auto; color: #32835d; }
.business-location-button>span>span { display: grid; gap: 4px; min-width: 0; }
.business-location-button strong { font-size: 12px; }
.business-location-button small { overflow-wrap: anywhere; color: #899690; font-size: 11px; line-height: 1.35; }
.business-location-button b { flex: 0 0 auto; color: #27845b; font-size: 11px; }
.location-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; }
.voided-row { opacity: .62; }
.field textarea { width: 100%; min-height: 78px; padding: 10px 11px; border: 1px solid #e5ebe8; border-radius: 9px; background: #fff; color: #263d32; font: inherit; font-size: 11px; resize: vertical; }
.print-address { font-size: 11px; }
.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: 12px; }
.device-note p { margin: 0; color: #87958e; font-size: 11px; line-height: 1.55; }
.modal-root:empty { display: none; }
.modal-root { position: fixed; z-index: 120; 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: 12px; 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: 11px; }
.cash-total { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-radius: 10px; background: #f4f8f5; color: #65746f; font-size: 12px; }
.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: 12px; }
.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: 12px; }
.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: 12px; }
.receipt-ticket strong { color: #354740; }
.toast-region { position: fixed; z-index: 130; 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: 12px; 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) 410px; gap: 18px; }
  .catalog-panel { padding: 17px; }
  .product-grid { gap: 10px; }
  .product-art { height: var(--vp-art-h, 88px); }
  .product-plus { top: calc(var(--vp-art-h, 88px) - 5px); }
  .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, .nav-caption, .nav-item > span:not(.nav-icon), .sidebar-help, .profile-copy, .more-dots { display: none; }
  .primary-nav { width: 100%; margin-top: 14px; }
  .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) 390px; }
  .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); }
  .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.vp-pulse { color: var(--vp-green-dark); }
  .mobile-brand strong > span.vp-pos { color: var(--vp-green-dark); border-color: var(--vp-green-dark); }
  .topbar-context { flex: 1; justify-content: flex-end; gap: 6px; }
  .context-label, .context-divider, .location-wrap, .topbar-help, .sidebar-toggle { display: none; }
  .business-wrap select { max-width: 150px; padding-right: 19px; font-size: 12px; }
  .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-pill>span:not(.connection-dot) { display: none!important; }
  .connection-dot { width: 8px; height: 8px; }
  .account-shortcut { min-height: 36px; padding: 0 7px; gap: 5px; font-size: 12px; }
  .account-shortcut > span:first-child { width: 22px; height: 22px; }
  #accountButton { width:38px; padding:0; justify-content:center; }
  #accountButton > span:not(:first-child) { display:none; }
  .cashier-mode-toggle { min-width:60px; padding:0 6px; font-size: 11px; }
  .signout-shortcut { margin-left: 5px; padding: 0 7px; }
  #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: 12px; 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: 11px; }
  .search-box { width: 100%; }
  .search-box input { height: 37px; }
  .catalog-display-row { margin:-3px 0 9px; }
  .category-bar { top:60px; margin:0 -13px 13px; padding:8px 13px 9px; border-bottom:1px solid #e8edea; }
  .category-chip { padding: 7px 11px; font-size: 11px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(min(47%, var(--vp-card-w, 146px)), 1fr)); gap: 9px; }
  .product-grid.list-view { display:flex; gap:6px; }
  .product-grid.list-view .product-card { grid-template-columns:48px minmax(0,1fr) auto; min-height:62px; padding:6px 38px 6px 6px; }
  .product-grid.list-view .product-art { width:40px; height:40px; font-size:22px; }
  .product-grid.list-view .product-name { margin:0 0 2px; font-size: 12px; }
  .product-card { padding: 7px; border-radius: 11px; }
  .product-art { height: var(--vp-art-h, clamp(85px,24vw,116px)); }
  .product-emoji { font-size: 36px; }
  .product-plus { top: calc(var(--vp-art-h, clamp(85px,24vw,116px)) - 6px); right: 12px; width: 23px; height: 23px; font-size: 14px; }
  .product-name { margin-top: 8px; font-size: 12px; }
  .product-meta { margin-top: 5px; }
  .product-price { font-size: 11px; }
  .product-stock { font-size: 11px; }
  .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: flex; align-items: stretch; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; gap: 2px; padding: 5px 6px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid #e8edea; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav-item { flex: 1 0 64px; min-width: 60px; scroll-snap-align: start; display: grid; justify-items: center; align-content: center; gap: 3px; padding: 2px 4px; border: 0; background: transparent; color: #899590; cursor: pointer; }
  .mobile-nav-item [data-icon] { width: 18px; height: 18px; }
  .mobile-nav-item small { font-size: 11px; font-weight: 580; white-space: nowrap; }
  .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: 12px; }
  .mobile-cart-bar strong { display: inline-flex; align-items: center; gap: 7px; color: white; font-size: 12px; }
  .mobile-cart-bar svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }
  .surface-card { min-width: 0; max-width: 100%; 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: minmax(0, 1fr); gap: 10px; }
  .owner-report-columns { grid-template-columns: minmax(0, 1fr); }
  .owner-report-columns > *, .overview-columns > *, .accounting-columns > *, .owner-report-side > * { min-width: 0; max-width: 100%; }
  .owner-period-report > .surface-header { flex-wrap: wrap; }
  .owner-period-report > .surface-header > .secondary-button { width: 100%; }
  .owner-report-date-fields { grid-template-columns: minmax(0, 1fr); }
  .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: 11px; }
  .product-grid { gap: 7px; }
  .product-art { height: var(--vp-art-h, 85px); }
  .product-plus { top: calc(var(--vp-art-h, 85px) - 6px); }
  .product-stock { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
}

/* Local backup tools, camera scanning, services, privilege discounts and printable receipts. */
.catalog-search-tools { display:flex; align-items:center; gap:8px; min-width:min(420px,52%); }
.catalog-search-tools .search-box { flex:1; min-width:0; }
.scan-code-button { flex:0 0 auto; white-space:nowrap; }
.privilege-discount-button { width:100%; margin-top:9px; border:1px dashed #91aa9c; }
.clear-privilege-button { display:block; margin:7px auto 0; }
.checkout-discount-note { margin:10px 0; padding:10px 12px; border-radius:10px; background:#eff8f1; color:#275b3d; font-size:12px; }
.discount-eligible-preview { display:grid; gap:4px; padding:12px; border:1px solid #dce9df; border-radius:10px; background:#f5faf6; }
.discount-eligible-preview strong { color:#275b3d; }
.discount-eligible-preview small,.check-row small { color:#74817a; line-height:1.5; }
.check-row { display:flex; align-items:flex-start; gap:10px; cursor:pointer; }
.check-row input { width:17px; height:17px; margin:2px 0 0; accent-color:#238358; }
.check-row span { display:grid; gap:3px; }
.table-subline { display:block; margin-top:3px; color:#899590; font-size:11px; }
.history-actions { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.qr-scanner { display:grid; gap:10px; }
.qr-scanner video { width:100%; max-height:55vh; aspect-ratio:4/3; object-fit:cover; border-radius:12px; background:#15211c; }
.qr-scanner p { margin:0; color:#526158; font-size:13px; line-height:1.5; }
.product-card.is-dragging { opacity:.42; border-color:#70b58c; }
.product-order-handle { position:absolute; z-index:2; top:7px; left:7px; width:23px; height:23px; display:grid; place-items:center; border:1px solid rgba(61,94,75,.14); border-radius:7px; background:rgba(255,255,255,.91); color:#527561; font-size:14px; cursor:grab; }
.item-order-actions { display:flex; align-items:center; gap:4px; }
.item-order-actions button { min-width:30px; padding:0 6px; }
.item-order-actions button:disabled { opacity:.4; cursor:not-allowed; }
.line-discount-control { display:flex; align-items:center; justify-content:space-between; gap:8px; color:#718079; font-size: 11px; }
.line-discount-input-wrap { display:flex; align-items:center; gap:4px; }
.line-discount-input { width:54px; height:27px; padding:0 5px; border:1px solid #dfe8e2; border-radius:6px; background:#fff; color:#30433d; font-size: 12px; text-align:right; }
.line-discount-input-wrap small { color:#809088; font-size: 11px; }
.sale-adjustments { padding:8px 0; border-bottom:1px solid #edf0ef; }
.sale-adjustments-toggle { display:flex; min-height:32px; align-items:center; justify-content:space-between; gap:8px; padding:7px 9px; border:1px solid #e5ece7; border-radius:8px; background:#f8fbf9; color:#30433d; cursor:pointer; list-style:none; }
.sale-adjustments-toggle::-webkit-details-marker { display:none; }
.sale-adjustments-toggle::after { content:"⌄"; color:#718079; font-size:13px; }
.sale-adjustments[open] .sale-adjustments-toggle { border-radius:8px 8px 0 0; }
.sale-adjustments-toggle strong { font-size: 12px; }
.sale-adjustments-toggle > span { margin-left:auto; overflow:hidden; color:#718079; font-size: 11px; text-overflow:ellipsis; white-space:nowrap; }
.sale-adjustments-options { display:grid; gap:5px; padding:6px; border:1px solid #e5ece7; border-top:0; border-radius:0 0 8px 8px; background:#fff; }
.sale-adjustment { padding:5px 6px; border:1px solid #edf1ee; border-radius:7px; background:#fbfcfb; }
.sale-adjustment input { width:13px; height:13px; flex:0 0 13px; margin:2px 0 0; }
.sale-adjustment > span > strong { color:#465750; font-size: 11px; }
.sale-adjustment > span > small { font-size: 11px; }
.setting-percent-toggle { margin-top:7px; }
.privilege-settings { display:grid; gap:8px; }
.privilege-settings > strong { color:#30433d; font-size:11px; }
.privilege-settings > small { color:#74817a; line-height:1.45; }
.checkout-payment-summary { display:grid; gap:7px; margin:11px 0 14px; padding:10px 12px; border-radius:9px; background:#f5f8f6; }
.checkout-payment-summary > div { display:flex; justify-content:space-between; gap:10px; color:#6e7d76; font-size: 12px; }
.checkout-payment-summary strong { color:#30433d; }
.payment-approval-summary { display:grid; gap:9px; padding:13px; border:1px solid #e2ebe5; border-radius:10px; background:#f8fbf9; }
.payment-approval-summary > div { display:flex; justify-content:space-between; gap:12px; color:#718079; font-size: 12px; }
.payment-approval-summary strong { max-width:65%; overflow-wrap:anywhere; color:#30433d; text-align:right; }
.payment-approval-summary .payment-approval-total { padding-top:9px; border-top:1px solid #e0e9e3; color:#30433d; font-weight:700; }
.payment-choice { grid-template-columns:repeat(3,minmax(0,1fr)); }
.payment-choice button { min-height:93px; padding:10px; }
.payment-choice strong { font-size: 12px; }
.payment-choice small { line-height:1.4; }
.customer-pick-list { display:grid; gap:8px; max-height:50vh; overflow:auto; }
.customer-pick-list button { text-align:left; }
.split-payment-row { margin:10px 0; padding:12px; border:1px solid #e3eae6; border-radius:12px; background:#fbfcfb; }
.split-payment-row .form-grid { gap:8px; }
.license-readonly-banner { display:flex; align-items:center; gap:12px; margin:0 0 14px; padding:12px 14px; border:1px solid #e6c87a; border-radius:12px; background:#fff7db; color:#59481d; }
.license-readonly-banner span { flex:1; min-width:0; font-size:13px; line-height:1.45; }
.license-readonly-banner strong { white-space:nowrap; }
.license-readonly-banner--trial { border-color:#a9d5b8; background:#eff9f1; color:#204a36; }
.license-banner-copy { display:grid; min-width:0; gap:4px; flex:1; }
.license-banner-copy strong { color:#204a36; font-size:15px; }
.license-banner-copy span { color:#557464; }
.license-banner-action { flex:0 0 auto; min-height:42px; padding:0 16px; white-space:normal; }
.license-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
.license-tab { padding:8px 16px; border:1px solid #c8dcd0; border-radius:999px; background:#fbfdfb; color:#385c4d; font:inherit; font-size:13px; font-weight:750; cursor:pointer; }
.license-tab[aria-selected="true"] { background:#1f6e53; border-color:#1f6e53; color:#fff; }
.license-tab:focus-visible { outline:3px solid #d5ede0; outline-offset:2px; }
.license-panel[hidden] { display:none!important; }
.license-payment-review { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(230px,1fr); gap:16px; align-items:start; margin:14px 0; }
.license-plan-grid { display:grid; gap:10px; min-width:0; }
.license-plan { display:grid; gap:5px; min-inline-size:0; margin:0; padding:10px; border:1px solid #d5e3da; border-radius:12px; }
.license-plan legend { padding:0 5px; font-size:13px; font-weight:700; }
.license-plan-choice { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; min-height:37px; padding:4px 8px; border-radius:7px; cursor:pointer; }
.license-plan-choice:has(input:checked) { background:#e8f6ec; color:#173f2d; }
.license-plan-choice input { margin:0; accent-color:#226b49; }
.license-payment-summary { display:grid; gap:11px; padding:16px; border:1px solid #d5e3da; border-radius:12px; }
.license-payment-summary h3, .license-payment-summary p { margin:0; }
.license-summary-plan { font-weight:650; }
.license-summary-total { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:4px 8px; padding:11px 0; border-block:1px solid #d5e3da; }
.license-payment-summary .primary-button { min-height:42px; }
@media (max-width:760px) { .license-payment-review { grid-template-columns:1fr; } }
.license-payment-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:10px 0; }
.license-trial-card { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:20px; margin:0 0 16px; padding:20px; border:1px solid #b9ddc5; border-radius:16px; background:linear-gradient(125deg,#f0faf2,#fff 78%); color:#1d4634; box-shadow:0 8px 24px rgba(35,91,59,.07); }
.license-trial-card[hidden] { display:none!important; }
.license-trial-card.is-active { border-color:#9ccfac; background:linear-gradient(125deg,#eaf8ed,#fff 78%); }
.license-trial-card.is-ended { border-color:#e6d4a5; background:linear-gradient(125deg,#fff8e3,#fff 78%); }
.license-trial-copy { min-width:0; }
.license-trial-kicker { color:#39815b; font-size: 12px; font-weight:800; letter-spacing:.12em; }
.license-trial-card h2 { margin:6px 0; color:#1c4634; font-size:21px; letter-spacing:-.025em; }
.license-trial-card p { margin:0; color:#5e7969; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.license-trial-facts { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }
.license-trial-facts span { padding:6px 9px; border:1px solid #d9ebdd; border-radius:999px; background:rgba(255,255,255,.8); color:#587363; font-size:11px; line-height:1.25; }
.setup-steps-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 0;padding:0;list-style:none}
.setup-step{display:grid;gap:4px;padding:11px 12px;border:1px solid #d5e5dc;border-radius:12px;background:#f8fbf9;color:#204538;font-size:12px;line-height:1.4;min-width:0}
.setup-step.is-done{border-color:#8ec8a7;background:#edf8f1}
.setup-step.is-current{border-color:#267554;background:#fff;box-shadow:0 0 0 2px #d7efe1}
.setup-step.is-blocked{border-color:#d8a395;background:#fdf3f0}
.setup-step-num{font-size: 12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#4a6b5d}
.setup-step strong{font-size:13px;overflow-wrap:anywhere}
.setup-step span{font-size:12px;color:#556f64;overflow-wrap:anywhere}
.setup-nickname-row{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin:10px 0}
.setup-nickname-row label{display:grid;gap:5px;flex:1;min-width:190px;font-size:12px;font-weight:700;color:#35564a}
.setup-nickname-row input{padding:8px 10px;border:1px solid #c6dcd0;border-radius:8px;font:inherit;min-width:0;flex:1 1 200px}
.owner-code-entry-box{margin-top:14px;padding:12px 14px;border:1px solid #cfe3d8;border-radius:12px;background:#f7fbf9}
.owner-code-entry-box label{display:grid;gap:3px;font-size:13px;color:#1b4332}
.owner-code-entry-box label span{font-size:12px;font-weight:400;color:#4a6b5d}
.advanced-setup-details{margin-top:12px;padding:10px 12px;border:1px dashed #c6dcd0;border-radius:10px;background:#fafdfb;font-size:12px}
.advanced-setup-details summary{cursor:pointer;font-weight:700;color:#275344}
.advanced-setup-details code{display:block;margin:8px 0;padding:8px;border-radius:6px;background:#edf4f0;font-size:11px;word-break:break-all;color:#173d32}
@media(max-width:860px){.setup-steps-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.setup-steps-list{grid-template-columns:1fr}}
.license-trial-button { min-width:165px; max-width:220px; min-height:46px; white-space:normal; }
.license-trial-button[hidden] { display:none!important; }
@media (max-width:720px) {
  .license-readonly-banner { align-items:stretch; flex-direction:column; gap:9px; padding:13px; }
  .license-readonly-banner strong { white-space:normal; }
  .license-banner-copy strong { font-size:14px; }
  .license-banner-action { width:100%; min-height:44px; }
  .license-trial-card { grid-template-columns:minmax(0,1fr); gap:14px; padding:16px; }
  .license-trial-card h2 { font-size:19px; }
  .license-trial-card p { font-size:12px; }
  .license-trial-button { width:100%; max-width:none; }
}
@media (max-width:390px) {
  .license-trial-card { padding:14px; }
  .license-trial-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .license-trial-facts span { text-align:center; }
}
.backup-status-grid { display:grid; gap:8px; margin-bottom:12px; }
.backup-status-grid>div { display:grid; gap:4px; padding:11px 12px; border:1px solid #e3eae6; border-radius:10px; }
.backup-status-grid span { color:#738078; font-size:12px; }
.backup-export-options { display:grid; gap:9px; margin:12px 0; }
.backup-export-card { display:grid; gap:7px; padding:12px; border:1px solid #e3eae6; border-radius:10px; background:#fbfcfb; }
.backup-export-card h3 { margin:0; color:#30433d; font-size:12px; }
.backup-export-card p,.backup-export-card>small { margin:0; color:#738078; font-size: 12px; line-height:1.5; }
.backup-export-actions { display:flex; flex-wrap:wrap; gap:7px; }
.backup-export-actions .secondary-button { min-height:34px; padding:0 10px; font-size: 12px; }
.backup-versions { display:grid; gap:7px; max-height:260px; overflow:auto; }
.backup-version { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px; border:1px solid #e8eeea; border-radius:9px; }
.backup-version>span { display:grid; gap:3px; }
.backup-version small { color:#839088; }
.backup-alert-banner { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin:8px 18px 0; padding:10px 14px; border:1px solid #e7c97a; border-radius:12px; background:#fff9ea; color:#4f3908; font-size:13px; }
.backup-alert-banner.critical { border-color:#d88a8a; background:#fff3f3; color:#5e1d1d; }
.backup-alert-copy { flex:1 1 260px; display:grid; gap:2px; min-width:0; }
.backup-alert-copy strong { font-size:13px; }
.backup-alert-copy small { font-size:12px; opacity:.9; }
.backup-alert-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.backup-alert-actions button { min-height:36px; padding:0 12px; font-size:12px; }
.backup-capacity-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:8px; margin:12px 0; }
.backup-capacity-card { display:grid; gap:4px; padding:11px 12px; border:1px solid #e3eae6; border-radius:10px; background:#fbfcfb; }
.backup-capacity-card.warning { border-color:#e7c97a; background:#fffaf0; }
.backup-capacity-card small { color:#738078; font-size:11px; }
.backup-feature-card { display:grid; gap:10px; }
.backup-trim-controls { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; }
.backup-trim-controls .field { margin:0; min-width:210px; flex:1 1 210px; }
@media (max-width:760px) {
  .backup-alert-banner { margin:8px 12px 0; padding:10px 12px; }
  .backup-alert-actions { width:100%; }
  .backup-alert-actions button { flex:1 1 auto; }
  .backup-version { flex-direction:column; align-items:flex-start; }
  .backup-trim-controls { flex-direction:column; align-items:stretch; }
}
.print-detail { color:#526158; font-size:12px; }
#tandemPrintArea { display:none; }
.owner-chart-wrap { width:100%; max-width:100%; overflow-x:auto; }
.owner-sales-chart { display:block; width:100%; min-width:520px; height:auto; overflow:visible; }
@media (max-width:720px) { .owner-sales-chart { min-width:0; max-width:100%; } }
.owner-chart-grid { stroke:var(--line,#e4ebe7); stroke-width:1; }
.owner-chart-label { fill:var(--muted,#718078); font-size:11px; }
.owner-chart-line { fill:none; stroke-width:3; stroke-linejoin:round; stroke-linecap:round; }
.owner-chart-line.current { stroke:#23795b; }
.owner-chart-line.previous { stroke:#9aa8a0; stroke-dasharray:6 4; }
.owner-chart-point.current { fill:#23795b; }
.owner-chart-point.previous { fill:#9aa8a0; }
.owner-chart-bar.current { fill:#23795b; opacity:.9; }
.owner-chart-bar.previous { fill:#9aa8a0; opacity:.55; }
.chart-type-control { min-width:100px; margin:0; }
.owner-chart-legend { display:flex; flex-wrap:wrap; gap:14px; margin:0 0 8px; color:var(--muted,#718078); font-size:12px; }
.owner-chart-legend span { display:flex; align-items:center; gap:6px; }
.owner-chart-dot { width:9px; height:9px; display:inline-block; border-radius:50%; background:#23795b; }
.owner-chart-dot.previous { background:#9aa8a0; }
.vp-print-sheet { display:none; }
@media print {
  html:not(.print-single-subject):not(:has(body.print-report)):not(:has(body.print-owner-report)):not(:has(body.print-accounting-report)),
  body:not(.print-single-subject):not(.print-report):not(.print-owner-report):not(.print-accounting-report) {
    width:var(--vp-print-page-w, 100%)!important; min-width:0!important; max-width:100%!important; margin:0!important; padding:0!important; background:#fff!important;
  }
  body:not(.print-single-subject):not(.print-report):not(.print-owner-report):not(.print-accounting-report)>*:not(#tandemPrintArea) { display:none!important; }
  body:not(.print-single-subject):not(.print-report):not(.print-owner-report):not(.print-accounting-report) #tandemPrintArea {
    display:block!important; box-sizing:border-box!important;
    width:100%!important; max-width:var(--vp-print-content-w, 71mm)!important;
    padding:var(--vp-print-pad-y, 0mm) var(--vp-print-pad-x, 0mm)!important;
    margin-top:0!important; margin-bottom:0!important;
    margin-left:var(--vp-print-margin-left, auto)!important; margin-right:var(--vp-print-margin-right, auto)!important;
    color:#000!important; background:#fff!important;
    font:var(--vp-print-font-size, 11px)/1.3 ui-monospace,SFMono-Regular,Consolas,monospace;
    overflow:hidden!important;
  }
  .pos-print-receipt { width:100%; box-sizing:border-box; padding:0; }
  .pos-print-receipt * { box-sizing:border-box; }
  .pos-print-receipt header { text-align:center; }
  .pos-print-receipt h1 { margin:0 0 3px; font-size:1.25em; line-height:1.2; }
  .pos-print-receipt p { margin:3px 0; overflow-wrap:anywhere; }
  .pos-print-receipt hr { border:0; border-top:1px dashed #333; margin:5px 0; }
  .print-line { display:flex; justify-content:space-between; gap:6px; margin:3px 0; }
  .print-line>span { min-width:0; flex:1 1 auto; overflow-wrap:anywhere; }
  .print-line strong { flex:0 0 auto; text-align:right; white-space:nowrap; }
  .print-line small { display:block; color:#222; }
  .print-detail { display:flex; justify-content:space-between; gap:6px; margin:2px 0 3px; }
  .print-total { font-size:1.15em; font-weight:800; }
  .print-signature { margin-top:12px!important; }
  .pos-print-receipt footer { margin-top:8px; text-align:center; }

  html.print-single-subject,
  body.print-single-subject {
    width:auto!important; min-width:0!important; max-width:none!important; height:auto!important; min-height:0!important;
    margin:0!important; padding:0!important; overflow:visible!important; background:#fff!important; color:#0f172a!important; display:block!important;
  }
  body.print-single-subject>*:not(#vpPrintSheet) { display:none!important; }
  body.print-single-subject>#vpPrintSheet {
    display:block!important; position:static!important; width:100%!important; max-width:none!important;
    margin:0!important; padding:0!important; overflow:visible!important; background:#fff!important; color:#0f172a!important;
    font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; font-size:11px; line-height:1.4;
  }
  .vp-print-sheet-page {
    display:block!important; position:static!important; width:100%!important; box-sizing:border-box;
    margin:0!important; padding:0!important; background:#fff!important; color:#0f172a!important;
    page-break-after:always; break-after:page;
  }
  .vp-print-sheet-page:last-child { page-break-after:auto; break-after:auto; }
  .vp-sheet-head {
    display:flex; justify-content:space-between; align-items:flex-start; gap:14px;
    padding:0 0 8px; margin:0 0 10px; border-bottom:2px solid #124734; break-inside:avoid; page-break-inside:avoid;
  }
  .vp-sheet-eyebrow { margin:0 0 2px; font-size: 11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#157a4c; }
  .vp-sheet-head h1 { margin:0; font-size:17px; line-height:1.2; color:#0f172a; }
  .vp-sheet-sub { margin:3px 0 0; font-size: 11px; color:#475569; }
  .vp-sheet-badge-col { display:flex; flex-direction:column; align-items:flex-end; gap:4px; flex:0 0 auto; text-align:right; }
  .vp-sheet-badge { padding:3px 8px; border:1px solid #124734; border-radius:999px; font-size: 11px; font-weight:700; color:#124734; background:#f0fdf4; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .vp-sheet-counter { font-size: 11px; font-weight:600; color:#64748b; }
  .vp-sheet-meta {
    display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px 12px;
    padding:8px 10px; margin:0 0 10px; border:1px solid #cbd5e1; border-radius:6px; background:#f8fafc;
    break-inside:avoid; page-break-inside:avoid; -webkit-print-color-adjust:exact; print-color-adjust:exact;
  }
  .vp-sheet-meta-item { min-width:0; }
  .vp-sheet-meta-item span { display:block; font-size: 11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#64748b; }
  .vp-sheet-meta-item strong { display:block; font-size: 11px; color:#0f172a; overflow-wrap:anywhere; }
  .vp-sheet-kpis {
    display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:0 0 12px;
    break-inside:avoid; page-break-inside:avoid;
  }
  .vp-sheet-kpi { padding:7px 9px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; break-inside:avoid; page-break-inside:avoid; min-width:0; }
  .vp-sheet-kpi span { display:block; font-size: 11px; font-weight:700; text-transform:uppercase; color:#64748b; }
  .vp-sheet-kpi strong { display:block; margin-top:2px; font-size:13px; color:#0f172a; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
  .vp-sheet-kpi small { display:block; margin-top:2px; font-size: 11px; color:#475569; }
  .vp-sheet-kpi-good strong { color:#166534; }
  .vp-sheet-kpi-warn strong { color:#92400e; }
  .vp-sheet-kpi-bad strong { color:#991b1b; }
  .vp-sheet-section { display:block; position:static; margin:0 0 12px; }
  .vp-sheet-section-head { display:flex; justify-content:space-between; align-items:flex-end; gap:8px; margin:0 0 5px; break-after:avoid; page-break-after:avoid; }
  .vp-sheet-section-head h2 { margin:0; font-size:13px; color:#0f172a; }
  .vp-sheet-section-head p { margin:1px 0 0; font-size: 11px; color:#64748b; }
  .vp-sheet-section-badge { font-size: 11px; font-weight:700; color:#475569; }
  .vp-sheet-table-wrap { width:100%; overflow:visible!important; }
  .vp-sheet-table { width:100%; border-collapse:collapse; table-layout:auto; font-size: 11px; }
  .vp-sheet-table thead { display:table-header-group; }
  .vp-sheet-table tfoot { display:table-footer-group; }
  .vp-sheet-table tr { break-inside:avoid; page-break-inside:avoid; }
  .vp-sheet-table th, .vp-sheet-table td { border:1px solid #cbd5e1; padding:4.5px 6px; vertical-align:top; text-align:left; overflow-wrap:anywhere; }
  .vp-sheet-table thead th { background:#eef5f1; color:#124734; font-weight:700; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .vp-sheet-table tfoot th { background:#f8fafc; color:#0f172a; font-weight:800; border-top:1.5px solid #475569; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .vp-sheet-table .vp-align-right, .vp-sheet-table .vp-align-num { text-align:right; font-variant-numeric:tabular-nums; }
  .vp-sheet-table .vp-align-center { text-align:center; }
  .vp-cell-sub { font-size: 11px; color:#64748b; margin-top:1px; }
  .vp-sheet-empty { text-align:center!important; color:#64748b; font-style:italic; padding:10px!important; }
  .vp-sheet-notes { margin:8px 0 10px; padding:7px 10px; border:1px solid #cbd5e1; border-radius:6px; background:#f8fafc; break-inside:avoid; page-break-inside:avoid; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .vp-sheet-notes h3 { margin:0 0 4px; font-size: 11px; text-transform:uppercase; color:#334155; }
  .vp-sheet-notes ul { margin:0; padding-left:16px; }
  .vp-sheet-notes li { margin:2px 0; font-size: 11px; color:#334155; }
  .vp-sheet-sigs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:16px 0 8px; break-inside:avoid; page-break-inside:avoid; }
  .vp-sheet-sig { min-width:0; text-align:center; padding-top:18px; }
  .vp-sheet-sig-line { border-bottom:1px solid #475569; margin:0 8px 4px; }
  .vp-sheet-sig strong { display:block; font-size: 11px; color:#0f172a; }
  .vp-sheet-sig span, .vp-sheet-sig small { display:block; font-size: 11px; color:#64748b; }
  .vp-sheet-footer { display:flex; justify-content:space-between; gap:10px; padding-top:6px; margin-top:8px; border-top:1px solid #cbd5e1; font-size: 11px; color:#64748b; break-inside:avoid; page-break-inside:avoid; }
}

.virtual-keyboard { position:fixed;z-index:35;right:8px;bottom:74px;left:8px;max-width:620px;margin-left:auto;padding:9px;border:1px solid #dfe7e2;border-radius:15px;background:#f7faf8;box-shadow:0 8px 28px rgba(20,45,35,.2); }
.virtual-keyboard:has(.virtual-keyboard-keys[data-mode="numbers"]) { max-width:390px; }
.virtual-keyboard[hidden] { display:none; }
.virtual-keyboard-head { display:flex;align-items:center;justify-content:space-between;padding:0 2px 7px;color:#334740;font-size:12px; }
.virtual-keyboard-row { display:flex;justify-content:center;gap:4px;margin-top:4px; }
.virtual-keyboard-row button { min-width:0;flex:1;height:37px;padding:0 4px;border:1px solid #dce5e0;border-radius:7px;background:white;color:#233a32;font-size:16px;box-shadow:0 1px 1px rgba(15,35,27,.05); }
.virtual-keyboard-tools button { font-size:12px; }
.virtual-keyboard-tools button[data-virtual-key="space"] { flex:4; }
.virtual-keyboard-row .keyboard-mode-toggle { flex:1.35;white-space:nowrap;font-size:12px;font-weight:750;color:#17654a;background:#e8f5ee; }
.virtual-keyboard-number-row button { height:39px;font-size:18px; }
.virtual-keyboard-number-tools button { font-size:13px; }
.virtual-keyboard-number-tools .keyboard-mode-toggle { font-size:12px; }
.more-menu-list { display:grid;gap:5px; }
.more-menu-row { display:flex;align-items:center;gap:12px;width:100%;padding:12px;border:1px solid #e8edea;border-radius:10px;background:#fff;color:#243c35;text-align:left; }
.more-menu-row>span:nth-child(2) { flex:1;font-weight:620; }
.more-menu-icon,.more-menu-icon svg { width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
@media (max-width:760px) {
  .virtual-keyboard { bottom:calc(69px + env(safe-area-inset-bottom)); }
  .virtual-keyboard-row { gap:3px; }
  .virtual-keyboard-row button { height:34px;font-size:14px; }
  .virtual-keyboard-tools button { font-size:11px; }
  .virtual-keyboard-number-row button { height:35px;font-size:16px; }
  .virtual-keyboard-number-tools button { font-size:12px; }
  .more-menu-row { min-height:47px;padding:10px; }
}
@media print {
  @page { size:auto; margin:12mm; }
  html:has(body.print-owner-report) { width:auto!important; min-width:0!important; overflow:visible!important; }
  body.print-owner-report { width:auto!important; min-width:0!important; margin:0!important; padding:0!important; background:#fff!important; }
  body.print-owner-report>*:not(.app-shell) { display:none!important; }
  body.print-owner-report>.app-shell { display:block!important; width:100%!important; min-height:0!important; }
  body.print-owner-report .sidebar, body.print-owner-report .topbar, body.print-owner-report .mobile-nav, body.print-owner-report .toast-region, body.print-owner-report .modal-root, body.print-owner-report .virtual-keyboard { display:none!important; }
  body.print-owner-report .main-column { display:block!important; width:100%!important; margin:0!important; padding:0!important; }
  body.print-owner-report #appContent { display:block!important; width:100%!important; max-width:none!important; margin:0!important; padding:0!important; color:#111!important; background:#fff!important; overflow:visible!important; }
  body.print-owner-report #appContent .page-wrap { max-width:none!important; padding:0!important; }
  body.print-owner-report #appContent details > :not(summary) { display:block!important; }
  body.print-owner-report #appContent button, body.print-owner-report #appContent select, body.print-owner-report #appContent input { display:none!important; }
  body.print-owner-report #appContent .surface-card { break-inside:avoid; box-shadow:none!important; border-color:#bbb!important; color:#111!important; background:#fff!important; }
  body.print-owner-report #appContent .owner-chart-label { fill:#333!important; }
}
@media (max-width: 760px) {
  .catalog-search-tools { width:100%; min-width:0; }
  .catalog-search-tools .scan-code-button { padding:10px; }
}

/* Register tools */
.sync-register-list,.sync-conflict-list{display:grid;gap:9px;margin-top:14px}.sync-register{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border:1px solid #e2e9e5;border-radius:12px;background:#fbfcfb}.sync-register strong,.sync-register small,.sync-conflict strong,.sync-conflict small{display:block}.sync-register small,.sync-conflict small{color:#687a73;font-size:12px;margin-top:4px}.sync-state{font-size:12px;color:#4c7664}.sync-actions,.sync-conflict>div{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}.sync-conflict{border:1px solid #ead4a2;border-radius:12px;background:#fffaf0;padding:13px}
.sync-interval-control{display:flex;align-items:center;gap:8px;color:#53665f;font-size:12px}.sync-interval-control select{max-width:150px;min-height:38px;padding:7px 28px 7px 9px;border:1px solid #d6e2dc;border-radius:9px;background:#fff;color:#183b31;font:inherit}
@media(max-width:640px){.sync-register{align-items:flex-start;flex-direction:column}.sync-interval-control{width:100%;justify-content:space-between}.sync-interval-control select{max-width:55%}}
.sync-invite{margin-top:14px;padding:14px;border:1px solid #b7d8c8;border-radius:12px;background:#f3faf6}.sync-invite strong,.sync-invite small{display:block}.sync-invite small{color:#526960;font-size:12px;margin-top:6px;overflow-wrap:anywhere}.sync-invite .field{margin:12px 0 6px}.sync-qr{display:flex;align-items:center;gap:12px;margin:12px 0;padding:10px;border:1px solid #d6e9dc;border-radius:10px;background:#fff}.sync-qr img{display:block;width:132px;height:132px;image-rendering:pixelated}.sync-qr small{margin:0;font-size:11px;line-height:1.45}
.app-version-card{border-color:#cfe5d6;background:linear-gradient(135deg,#f4fbf5,#fff)}.app-version-card .surface-header{align-items:flex-start}.app-version-card h2{margin:4px 0 2px;font-size:20px}.app-version-card p{margin:0;color:#71857b;font-size:12px}.app-version-kicker{color:#4b8461;font-size: 12px;font-weight:800;letter-spacing:.12em}
.app-update-card{border-color:#cfe5d6;background:linear-gradient(135deg,#f4fbf5,#fff)}.app-update-versions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.app-update-versions>div{display:grid;gap:6px;min-width:0;padding:14px;border:1px solid #cfe5d6;border-radius:12px;background:#fff}.app-update-versions>div>span{color:#547365;font-size:12px;font-weight:700}.app-update-versions strong{color:#1d493a;font-size:22px;line-height:1.2;overflow-wrap:anywhere}
@media(max-width:720px){.app-update-versions{grid-template-columns:minmax(0,1fr)}.app-update-versions strong{font-size:20px}}
.ota-progress-wrap{margin:10px 0 12px;display:grid;gap:6px}
.ota-progress-label{font-size:12px;font-weight:600;color:#1d493a}
.ota-progress-track{position:relative;width:100%;height:10px;border-radius:999px;background:#dcebe2;overflow:hidden}
.ota-progress-bar{position:absolute;top:0;left:0;height:100%;width:38%;border-radius:999px;background:linear-gradient(90deg,#1f6f52,#2be59d);animation:otaSlide 1.15s ease-in-out infinite}
.ota-progress-bar.is-done{width:100%;animation:none;background:#1f6f52}
@keyframes otaSlide{0%{left:-38%}50%{left:42%}100%{left:100%}}
.page-wrap>.surface-card{margin-bottom:16px}
.reg-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}
.reg-note{color:#5d6f69;font-size:12px}
.reg-check{display:flex;gap:8px;align-items:center;margin:6px 0;font-size:12px}
.reg-pill .connection-dot{background:#bd6259}
.reg-pill.reg-pill-open .connection-dot{background:#2e9a67}
.reg-pill.reg-pill-warn .connection-dot{background:#d9822b}
.reg-pill .reg-pill-label{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.reg-cashier-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;margin-bottom:12px;border:1px solid var(--line,#dce8e2);border-radius:10px;background:var(--mint,#e7f6ee);color:var(--ink,#183b31);font-size:13px}
.reg-cashier-banner small{display:block;color:var(--muted,#526960);font-size:12px;margin-top:2px}
.reg-cashier-banner.is-warn{background:#fff8eb;border-color:#efd19a;color:#6c4212}
.reg-cashier-banner.is-warn small{color:#7c5019}
.reg-cashier-list{display:grid;gap:8px;margin-top:8px}
.reg-cashier-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--line,#e6ece9);border-radius:10px;background:var(--paper,#fff)}
.reg-cashier-row.is-inactive{opacity:.72;background:var(--canvas,#f6f9f7)}
.reg-cashier-info{min-width:0;display:grid;gap:3px}
.reg-cashier-info strong{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px;overflow-wrap:anywhere}
.reg-cashier-info small{color:var(--muted,#6d7d76);font-size:11px}
.reg-cashier-actions{display:flex;flex-wrap:wrap;gap:6px;flex:0 0 auto}
.reg-cashier-badge{display:inline-flex;align-items:center;padding:2px 7px;border-radius:999px;font-size:11px;font-weight:700;background:#e4f4ec;color:#1d6d48}
.reg-cashier-badge.is-on-duty{background:#1f7a50;color:#fff}
.reg-cashier-badge.is-inactive{background:#edf1ef;color:#66756f}
@media(max-width:760px){.reg-pill .reg-pill-label{max-width:130px}}
@media(max-width:640px){.reg-cashier-row{align-items:flex-start;flex-direction:column}.reg-cashier-actions{width:100%;justify-content:flex-end}}

/* Device-local color themes shared by the Android and Windows web interface. */
html[data-theme="ocean"] { --ink:#183147; --muted:#637c8e; --line:#dce8ef; --paper:#ffffff; --canvas:#f1f7fb; --sidebar:#15364c; --sidebar-muted:#a3c0d1; --mint:#d3eafa; --mint-strong:#3183b5; --mint-dark:#1d628f; --warm:#f2b16e; }
html[data-theme="lavender"] { --ink:#302746; --muted:#7d718e; --line:#e9e1f0; --paper:#ffffff; --canvas:#f8f5fb; --sidebar:#382b4c; --sidebar-muted:#c4b4d6; --mint:#e8dcf6; --mint-strong:#8a63b2; --mint-dark:#68458f; --warm:#eaa58b; }
html[data-theme="sunset"] { --ink:#3b2c28; --muted:#89746b; --line:#f0e2d9; --paper:#fffefd; --canvas:#fcf5f0; --sidebar:#4a332d; --sidebar-muted:#d3b5a6; --mint:#f8dfd1; --mint-strong:#c96d4c; --mint-dark:#a94e35; --warm:#e5ad56; }
html[data-theme="ocean"] .nav-item.active { background:#24516b; box-shadow:inset 3px 0 #82c7eb; }
html[data-theme="lavender"] .nav-item.active { background:#514063; box-shadow:inset 3px 0 #c5a6e8; }
html[data-theme="sunset"] .nav-item.active { background:#68473b; box-shadow:inset 3px 0 #f0ad7b; }
html[data-theme="ocean"] .checkout-button, html[data-theme="ocean"] .primary-button { background:#3183b5; box-shadow:0 5px 12px rgba(49,131,181,.15); }
html[data-theme="ocean"] .checkout-button:hover, html[data-theme="ocean"] .primary-button:hover { background:#246c98; }
html[data-theme="lavender"] .checkout-button, html[data-theme="lavender"] .primary-button { background:#8a63b2; box-shadow:0 5px 12px rgba(138,99,178,.15); }
html[data-theme="lavender"] .checkout-button:hover, html[data-theme="lavender"] .primary-button:hover { background:#714c98; }
html[data-theme="sunset"] .checkout-button, html[data-theme="sunset"] .primary-button { background:#c96d4c; box-shadow:0 5px 12px rgba(201,109,76,.15); }
html[data-theme="sunset"] .checkout-button:hover, html[data-theme="sunset"] .primary-button:hover { background:#ae573a; }
.theme-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(118px,1fr)); gap:10px; margin:14px 0 10px; }
.theme-choice { display:grid; justify-items:start; gap:5px; min-height:106px; padding:11px; border:1px solid var(--line); border-radius:12px; background:var(--paper); color:var(--ink); cursor:pointer; text-align:left; }
.theme-choice[aria-pressed="true"] { border:2px solid var(--mint-strong); padding:10px; box-shadow:0 0 0 3px color-mix(in srgb,var(--mint-strong) 13%,transparent); }
.theme-choice strong { font-size:11px; }
.theme-choice small,.theme-device-note { color:var(--muted); font-size: 11px; }
.theme-swatch { display:flex; width:100%; height:36px; align-items:end; gap:4px; padding:6px; border-radius:7px; background:var(--canvas); }
.theme-swatch i { display:block; width:25%; height:16px; border-radius:3px; background:#c9efdc; }
.theme-swatch i:nth-child(2) { height:23px; background:#122b2a; }
.theme-swatch i:nth-child(3) { height:12px; background:#2f9c70; }
.theme-ocean .theme-swatch i:nth-child(1) { background:#d3eafa; }
.theme-ocean .theme-swatch i:nth-child(2) { background:#15364c; }
.theme-ocean .theme-swatch i:nth-child(3) { background:#3183b5; }
.theme-lavender .theme-swatch i:nth-child(1) { background:#e8dcf6; }
.theme-lavender .theme-swatch i:nth-child(2) { background:#382b4c; }
.theme-lavender .theme-swatch i:nth-child(3) { background:#8a63b2; }
.theme-sunset .theme-swatch i:nth-child(1) { background:#f8dfd1; }
.theme-sunset .theme-swatch i:nth-child(2) { background:#4a332d; }
.theme-sunset .theme-swatch i:nth-child(3) { background:#c96d4c; }
.hr-section-picker { max-width: 360px; margin: 0 0 20px; }
.hr-number { width: 112px; min-width: 82px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); }
.status-tag.warning { display: inline-block; margin: 2px; }

/* Compact owner dashboard groups expand on phones and remain open on desktop. */
.cashier-mode-toggle { white-space:nowrap; }
.owner-overview-disclosure { margin:10px 0 14px; border:1px solid var(--line,#e4ebe7); border-radius:14px; background:var(--paper,#fff); }
.owner-overview-disclosure>summary { min-height:46px; display:flex; align-items:center; padding:12px 15px; color:var(--ink,#263a31); font-size:14px; font-weight:700; cursor:pointer; list-style:none; }
.owner-overview-disclosure>summary::-webkit-details-marker { display:none; }
.owner-overview-disclosure>summary::after { content:"+"; margin-left:auto; color:var(--mint-dark,#28724f); font-size:20px; }
.owner-overview-disclosure[open]>summary::after { content:"−"; }
.owner-overview-disclosure> :not(summary) { margin:0!important; }
.owner-overview-disclosure .surface-card { border:0; box-shadow:none; }
.owner-overview-disclosure .owner-report-columns,.owner-overview-disclosure .owner-overview-columns { padding:0 10px 10px; }
.financial-disclosure>p { margin:0 12px 12px!important; }
.financial-disclosure>section { margin:0!important; padding:0 12px 12px; border:0; box-shadow:none; }
.financial-disclosure>section h4 { margin:4px 0 10px; }
.financial-page .financial-period-control { margin:8px 0 12px; }
.financial-page .financial-period-control small { margin-top:5px; }
.financial-page .financial-statement-header { align-items:center; gap:10px; }
.financial-page .financial-statement-header>div:first-child p { margin:0; }
.financial-page .financial-actions { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:8px; margin:0; }
.financial-page .financial-actions button { padding:9px 12px; }
.financial-page .accounting-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:start; }
.financial-page .financial-statement-panel { min-width:0; padding:14px; border:1px solid var(--line,#e4ebe7); border-radius:14px; background:var(--paper,#fff); }
.financial-page .financial-statement-panel h4 { margin:0 0 10px; color:var(--ink,#263a31); font-size:15px; }
.financial-page .financial-statement-panel .table-wrap { margin:0; }
.financial-page .financial-disclosure { margin:7px 0; }
@media (max-width:760px) {
  .financial-page .financial-period-control small { display:none; }
  .financial-page .financial-statement-header { display:grid; grid-template-columns:minmax(0,1fr); }
  .financial-page .financial-actions { width:100%; }
  .financial-page .accounting-columns { grid-template-columns:minmax(0,1fr); }
  .financial-statements-card .table-wrap { overflow-x:hidden; }
  .financial-statements-card .data-table { table-layout:fixed; }
  .financial-statements-card .data-table th { width:72%; white-space:normal; overflow-wrap:anywhere; }
  .financial-statements-card .data-table td { width:28%; text-align:right; white-space:normal; overflow-wrap:anywhere; }
}
.return-date-filter .form-grid { align-items:end; }
.payroll-record-fields { margin-top:14px; }

.report-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin:0 0 16px; }
@media print {
  @page { size:auto; margin:12mm; }
  html:has(body.print-report),
  html:has(body.print-accounting-report) { width:auto!important; min-width:0!important; overflow:visible!important; }
  body.print-report,
  body.print-accounting-report { width:auto!important; min-width:0!important; margin:0!important; padding:0!important; background:#fff!important; }
  body.print-report>*:not(.app-shell),
  body.print-accounting-report>*:not(.app-shell) { display:none!important; }
  body.print-report>.app-shell,
  body.print-accounting-report>.app-shell { display:block!important; width:100%!important; min-height:0!important; }
  body.print-report .sidebar, body.print-report .topbar, body.print-report .mobile-nav, body.print-report .toast-container, body.print-report .toast-region, body.print-report .modal-root, body.print-report .virtual-keyboard,
  body.print-accounting-report .sidebar, body.print-accounting-report .topbar, body.print-accounting-report .mobile-nav, body.print-accounting-report .toast-container, body.print-accounting-report .toast-region, body.print-accounting-report .modal-root, body.print-accounting-report .virtual-keyboard { display:none!important; }
  body.print-report .main-column,
  body.print-accounting-report .main-column { display:block!important; width:100%!important; margin:0!important; padding:0!important; }
  body.print-report #appContent,
  body.print-accounting-report #appContent { display:block!important; width:100%!important; max-width:none!important; margin:0!important; padding:0!important; color:#111!important; background:#fff!important; overflow:visible!important; }
  body.print-report #appContent .page-wrap,
  body.print-accounting-report #appContent .page-wrap { width:100%!important; max-width:none!important; margin:0!important; padding:0!important; }
  body.print-report #appContent .report-actions, body.print-report #appContent button, body.print-report #appContent select, body.print-report #appContent input, body.print-report #appContent textarea { display:none!important; }
  body.print-report #appContent details > :not(summary),
  body.print-accounting-report #appContent details > :not(summary) { display:block!important; }
  body.print-report #appContent .surface-card { break-inside:avoid; box-shadow:none!important; border-color:#bbb!important; color:#111!important; background:#fff!important; }
  body.print-report #appContent .table-wrap,
  body.print-accounting-report #appContent .table-wrap { overflow:visible!important; }
  body.print-accounting-report #appContent .owner-period-report>*:not(.accounting-statements),
  body.print-accounting-report #appContent .financial-page>*:not(.financial-statements-card) { display:none!important; }
  body.print-accounting-report #appContent .accounting-statements { display:block!important; margin:0!important; padding:0!important; border:0!important; box-shadow:none!important; }
  body.print-accounting-report #appContent .accounting-statements .reg-actions,
  body.print-accounting-report #appContent .accounting-statements button { display:none!important; }
  body.print-accounting-report #appContent .accounting-columns { grid-template-columns:1fr 1fr!important; }
  body.print-accounting-report #appContent .accounting-note { background:#fff!important; border:1px solid #aaa!important; }
}

/* Grouped workspace menus keep related work together. */
.workspace-nav-group { min-width:0; }
.workspace-nav-group > summary { padding:12px; color:#adc0ba; font-size:12px; cursor:pointer; font-weight:650; }
.workspace-nav-group[open] > summary { color:white; }
.workspace-nav-group > .nav-item { padding-left:24px; }
.workspace-nav-group > summary:focus-visible { outline:2px solid #86d9ae; outline-offset:-2px; border-radius:8px; }
/* Four closed division walls. Clean grouping without left bracket borders. */
.workspace-nav-group[data-workspace-group="grocery"] > summary,
.workspace-nav-group[data-workspace-group="menu"] > summary,
.workspace-nav-group[data-workspace-group="bar"] > summary,
.workspace-nav-group[data-workspace-group="stocks"] > summary,
.workspace-nav-group[data-workspace-group="website-sync"] > summary,
.workspace-nav-group[data-workspace-group="overview"] > summary { border-left:0; }
.operating-panels { display:grid; gap:16px; margin-top:16px; min-width:0; }
.stock-sale-warning { border:1px solid #d7aa4c; border-radius:8px; padding:10px; background:#fff6dc; color:#644600; }

/* Current sale: swipe right to delete, clear all, cancel ticket */
.cart-lines { overflow-x: hidden; }
.cart-line { position: relative; touch-action: pan-y; transform: translateX(var(--swipe, 0px)); transition: transform .18s ease, opacity .16s ease; }
.cart-line.swiping { transition: none; user-select: none; cursor: grabbing; }
.cart-line.swiping::before, .cart-line.swipe-gone::before { content: "Delete"; position: absolute; top: 0; bottom: 0; right: 100%; width: var(--swipe, 0px); display: flex; align-items: center; padding-left: 12px; overflow: hidden; background: #d64545; color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.cart-line.swipe-ready::before { background: #b92f2f; }
.cart-line.swipe-gone { opacity: 0; }
.cart-swipe-hint { margin: 6px 0 0; color: #8b9893; font-size: 11px; }
.park-action.danger-action { border-color: #f0cfcf; color: #b92f2f; }
.primary-button.danger-button { border-color: #c53a3a; background: #c53a3a; color: #fff; }
.toast.has-undo { pointer-events: auto; }
.toast-undo { margin-left: auto; padding: 4px 6px; border: 0; background: none; color: #0f7a5a; font-weight: 800; cursor: pointer; }

/* Current sale on PC: click an item, then press Delete */
.cart-line { cursor: pointer; outline: none; }
.cart-line.selected, .cart-line:focus-visible { background: #eef7f2; box-shadow: inset 3px 0 0 #2f9e6e; }
.cart-line-end .text-button[data-cart-action="remove"]:hover { color: #b92f2f; }

/* Item arranging: handles and dragging only appear while "Arrange items" is on */
.arrange-toggle[aria-pressed="true"] { border-color: #2f9e6e; background: #2f9e6e; color: #fff; }
.product-grid.arranging .product-card { cursor: grab; outline: 1.5px dashed #9ccbb3; outline-offset: 1px; }
.product-grid.arranging .product-card:hover { transform: none; }
.product-grid.arranging .product-plus { display: none; }
.product-grid.list-view.arranging .product-order-handle { display: grid; }

/* One public website banner for both connected and Local registers. */
.public-website-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 24px;background:#e6fff3;border-bottom:1px solid #b1e8cf;color:#124736;font-size:12px;line-height:1.5;flex-wrap:wrap}.public-website-banner>span{font-weight:750}.public-website-banner a{color:#125b3e;font-weight:700;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.public-website-banner a:focus-visible{outline:2px solid #125b3e;outline-offset:3px}@media(max-width:720px){.public-website-banner{padding:8px 12px;gap:6px}}


/* Screen layouts and Counter Register (RC POS) checkout theme design */
html[data-theme="counter"] { --ink:#102a1d; --muted:#4b6858; --line:#b8dec6; --paper:#ffffff; --canvas:#eaf7ef; --sidebar:#064e2c; --sidebar-muted:#a7e3c2; --mint:#ccf5dd; --mint-strong:#008a45; --mint-dark:#006833; --warm:#facc15; }
html[data-theme="counter"] .nav-item.active { background:#007a3d; box-shadow:inset 3px 0 #4ade80; }
html[data-theme="counter"] .checkout-button, html[data-theme="counter"] .primary-button { background:#008a45; box-shadow:0 5px 12px rgba(0,138,69,.18); }
html[data-theme="counter"] .checkout-button:hover, html[data-theme="counter"] .primary-button:hover { background:#006e36; }
.theme-counter .theme-swatch i:nth-child(1) { background:#008a45; }
.theme-counter .theme-swatch i:nth-child(2) { background:#29b6f6; }
.theme-counter .theme-swatch i:nth-child(3) { background:#fde047; }
.screen-layout-options { grid-template-columns:repeat(auto-fit,minmax(175px,1fr)); }
.screen-layout-choice, .layout-choice { min-height:118px; }
.layout-preview { display:grid; grid-template-columns:1fr 34%; gap:3px; width:100%; height:44px; padding:4px; border:1px solid #dce5df; border-radius:5px; background:#edf2ee; }
.layout-preview i { grid-column:1; display:block; border-radius:2px; background:repeating-linear-gradient(to bottom,#fff 0 5px,#dce5df 5px 6px); }
.layout-preview i:nth-child(2) { display:none; }
.layout-preview i:nth-child(3), .layout-preview b { grid-column:2; grid-row:1 / span 2; display:block; border-radius:2px; background:#17865c; }
.layout-preview-classic { grid-template-columns:1fr; padding:0; gap:0; border:3px solid #16865b; background:repeating-linear-gradient(to bottom,#fff 0 7px,#d7e7df 7px 8px); }
.layout-preview-classic i,.layout-preview-classic i:nth-child(2) { display:block; grid-column:1; height:6px; background:transparent; }
.layout-preview-classic i:nth-child(3), .layout-preview-classic b { grid-column:1; grid-row:auto; height:11px; border-radius:0; background:#16865b; }
.layout-preview-counter { display:flex; flex-direction:column; gap:2px; padding:2px; border:2px solid #16a34a; border-radius:3px; background:#fff; }
.layout-preview-counter i:nth-child(1) { width:100%; height:11px; border-radius:1px; background:#008a45; }
.layout-preview-counter i:nth-child(2) { display:block; width:100%; height:13px; border-radius:1px; background:linear-gradient(to bottom,#cceeff 0 4px,#fff 4px 8px,#29b6f6 8px 13px); }
.layout-preview-counter i:nth-child(3) { width:100%; height:10px; border-radius:1px; background:linear-gradient(90deg,#dcfce7 0 60%,#fde047 60% 80%,#bae6fd 80% 100%); }

.checkout-header-tools { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:10px; }
.checkout-theme-bar { display:inline-flex; align-items:center; flex-wrap:wrap; gap:4px; padding:3px; border:1px solid #cfe2d7; border-radius:10px; background:#f3f8f5; }
.checkout-theme-label { padding:0 7px; color:#526b5f; font-size: 12px; font-weight:700; letter-spacing:.02em; }
.checkout-theme-pill { min-height:28px; padding:4px 10px; border:1px solid transparent; border-radius:7px; background:transparent; color:#2b473b; font:inherit; font-size: 12px; font-weight:650; cursor:pointer; white-space:nowrap; }
.checkout-theme-pill:hover { background:#e4f1ea; }
.checkout-theme-pill.active, .checkout-theme-pill[aria-pressed="true"] { border-color:#15803d; background:#15803d; color:#fff; box-shadow:0 2px 6px rgba(21,128,61,.18); }

.rc-pos-banner,
.rc-pos-status-strip,
.rc-pos-sale-thead,
.rc-col-uom,
.rc-col-uprice,
.rc-col-grss,
.rc-col-add,
.rc-line-net,
.rc-pos-qty-box,
.rc-pos-mode-strip,
.rc-pos-fn-row,
.rc-pos-fn-grid,
.rc-f12-label,
.rc-pos-totals-bar,
.rc-product-barcode,
.rc-product-unit { display:none; }
.rc-col-desc,
.rc-pos-control-bar { display:contents; }

html.classic-pos-layout .sales-layout { gap:12px; grid-template-columns:minmax(0,1fr) 395px; }
html.classic-pos-layout .catalog-panel,html.classic-pos-layout .cart-panel { border:2px solid #16865b; border-radius:3px; box-shadow:none; }
html.classic-pos-layout .catalog-panel { min-height:calc(100vh - 145px); padding:9px; }
html.classic-pos-layout .catalog-toolbar { gap:8px; margin-bottom:8px; padding:7px; background:#087e57; color:#fff; }
html.classic-pos-layout .catalog-title,html.classic-pos-layout .catalog-subtitle { color:#fff; }
html.classic-pos-layout .catalog-subtitle { opacity:.82; }
html.classic-pos-layout .catalog-display-row { margin:0 0 5px; }
html.classic-pos-layout .category-bar { top:0; margin-bottom:5px; padding:5px 0; }
html.classic-pos-layout .category-chip { padding:5px 9px; border-radius:3px; }
html.classic-pos-layout .product-grid { gap:5px; }
html.classic-pos-layout .product-grid:not(.arranging) { display:flex; flex-direction:column; gap:2px; border-top:1px solid #dce6df; }
html.classic-pos-layout .product-grid:not(.arranging) .product-card { display:grid; grid-template-columns:minmax(0,1fr) 92px 72px; align-items:center; gap:4px 8px; min-height:36px; padding:4px 8px; border:0; border-bottom:1px solid #e2e9e4; background:#fff; text-align:left; }
html.classic-pos-layout .product-grid:not(.arranging) .product-art { display:none; }
html.classic-pos-layout .product-grid:not(.arranging) .product-name { grid-column:1; grid-row:1; margin:0; }
html.classic-pos-layout .product-grid:not(.arranging) .product-meta { grid-column:2; grid-row:1; margin:0; justify-content:flex-end; }
html.classic-pos-layout .product-grid:not(.arranging) .product-stock { display:block; grid-column:1; grid-row:2; font-size: 12px; color:#557263; margin-top:-2px; }
html.classic-pos-layout .product-grid:not(.arranging) .product-plus { position:static; grid-column:3; grid-row:1; width:auto; height:25px; border:0; border-radius:2px; box-shadow:none; font-size:12px; }
html.classic-pos-layout .product-card { padding:6px; border-radius:3px; }
html.classic-pos-layout .product-art { height:60px; border-radius:2px; font-size:27px; }
html.classic-pos-layout .product-name { margin-top:5px; font-size: 12px; }
html.classic-pos-layout .product-meta { margin-top:3px; }
html.classic-pos-layout .cart-panel { position:static; min-height:calc(100vh - 145px); padding:9px; }
html.classic-pos-layout .cart-heading { margin:-9px -9px 6px; padding:9px; background:#087e57; color:#fff; }
html.classic-pos-layout .cart-count { background:#fff; color:#087e57; }
html.classic-pos-layout .cart-line { border-radius:2px; }
html.classic-pos-layout .cart-summary .total { margin:8px -9px 0; padding:10px 9px; border:0; background:#087e57; color:#fff; }
html.classic-pos-layout .cart-summary .total strong { color:#fff; font-size:22px; }
html.classic-pos-layout .checkout-button { border-radius:3px; }
@media(max-width:760px) {
  html.classic-pos-layout .sales-layout { grid-template-columns:minmax(0,1fr); }
  html.classic-pos-layout .catalog-panel { min-height:0; }
  html.classic-pos-layout .cart-panel { min-height:0; }
}

html.counter-pos-layout .sales-layout,
.sales-layout.counter-sales-layout {
  display:flex;
  flex-direction:column;
  gap:0;
  border:4px solid #16a34a;
  border-radius:4px;
  background:#ffffff;
  box-shadow:0 8px 24px rgba(0,80,35,.12);
  overflow:hidden;
}
html.counter-pos-layout .sales-layout .cart-panel,
.sales-layout.counter-sales-layout .cart-panel {
  order:2;
  position:static;
  display:flex;
  flex-direction:column;
  width:100%;
  min-height:calc(100dvh - 195px);
  padding:0;
  border:0;
  border-radius:0;
  background:#ffffff;
  box-shadow:none;
}
html.counter-pos-layout .sales-layout .catalog-panel,
.sales-layout.counter-sales-layout .catalog-panel {
  order:1;
  width:100%;
  min-height:0;
  padding:0;
  border:0;
  border-bottom:3px solid #16a34a;
  border-radius:0;
  background:#ffffff;
  box-shadow:none;
}
html.counter-pos-layout .rc-pos-banner,
.sales-layout.counter-sales-layout .rc-pos-banner {
  display:grid;
  grid-template-columns:1fr auto 1.25fr;
  align-items:center;
  min-height:66px;
  padding:6px 18px;
  background:linear-gradient(90deg,#007a3d 0%,#008f47 55%,#006b35 100%);
  color:#ffffff;
  border-bottom:2px solid #005a2b;
}
html.counter-pos-layout .rc-pos-currency,
.sales-layout.counter-sales-layout .rc-pos-currency {
  grid-column:2;
  font-size:clamp(32px,4.2vw,48px);
  font-weight:900;
  letter-spacing:.03em;
  line-height:1;
  text-shadow:0 2px 4px rgba(0,0,0,.22);
}
html.counter-pos-layout .rc-pos-total-digits,
.sales-layout.counter-sales-layout .rc-pos-total-digits {
  grid-column:3;
  justify-self:end;
  font-family:"Consolas","Courier New",monospace;
  font-size:clamp(32px,4.4vw,50px);
  font-weight:900;
  letter-spacing:.02em;
  line-height:1;
  text-shadow:0 2px 4px rgba(0,0,0,.22);
}
html.counter-pos-layout .rc-pos-status-strip,
.sales-layout.counter-sales-layout .rc-pos-status-strip {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);
  align-items:stretch;
  border-bottom:1px solid #9bd5ee;
  background:#ffffff;
  font-size: 12px;
}
html.counter-pos-layout .rc-pos-active-item,
.sales-layout.counter-sales-layout .rc-pos-active-item {
  display:flex;
  align-items:center;
  gap:10px;
  padding:4px 10px;
  background:#00994d;
  color:#ffffff;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
}
html.counter-pos-layout .rc-pos-active-item > span,
.sales-layout.counter-sales-layout .rc-pos-active-item > span {
  font-family:"Consolas","Courier New",monospace;
  font-size: 11px;
  opacity:.95;
}
html.counter-pos-layout .rc-pos-active-item > strong,
.sales-layout.counter-sales-layout .rc-pos-active-item > strong {
  overflow:hidden;
  text-overflow:ellipsis;
}
html.counter-pos-layout .rc-pos-meta-strip,
.sales-layout.counter-sales-layout .rc-pos-meta-strip {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:4px 8px;
  padding:3px 10px;
  background:#f8fafc;
  color:#0f172a;
  font-size: 12px;
  font-weight:700;
}
html.counter-pos-layout .rc-pos-meta-strip > span,
.sales-layout.counter-sales-layout .rc-pos-meta-strip > span {
  padding-right:8px;
  border-right:1px solid #cbd5e1;
  white-space:nowrap;
}
html.counter-pos-layout .rc-pos-meta-strip > span:last-child,
.sales-layout.counter-sales-layout .rc-pos-meta-strip > span:last-child {
  padding-right:0;
  border-right:0;
}
html.counter-pos-layout .rc-pos-sale-thead,
.sales-layout.counter-sales-layout .rc-pos-sale-thead {
  display:grid;
  grid-template-columns:56px 46px minmax(120px,1fr) 74px 74px 66px 56px 86px;
  align-items:center;
  gap:4px;
  padding:5px 10px;
  background:#cceeff;
  border-bottom:1px solid #7dd3fc;
  color:#0c2e44;
  font-size:11px;
  font-weight:800;
}
html.counter-pos-layout .rc-pos-sale-thead > span:nth-child(n+4),
.sales-layout.counter-sales-layout .rc-pos-sale-thead > span:nth-child(n+4) {
  text-align:right;
}
html.counter-pos-layout .cart-heading,
html.counter-pos-layout .cart-customer,
html.counter-pos-layout .sale-adjustments,
html.counter-pos-layout .cart-swipe-hint,
html.counter-pos-layout .cart-note,
html.counter-pos-layout .cart-summary,
.sales-layout.counter-sales-layout .cart-heading,
.sales-layout.counter-sales-layout .cart-customer,
.sales-layout.counter-sales-layout .sale-adjustments,
.sales-layout.counter-sales-layout .cart-swipe-hint,
.sales-layout.counter-sales-layout .cart-note,
.sales-layout.counter-sales-layout .cart-summary {
  display:none;
}
html.counter-pos-layout .restaurant-order,
.sales-layout.counter-sales-layout .restaurant-order {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
  margin:0;
  padding:6px 10px;
  border:0;
  border-bottom:1px solid #bae6fd;
  border-radius:0;
  background:#f0fdf4;
}
html.counter-pos-layout .restaurant-service,
.sales-layout.counter-sales-layout .restaurant-service {
  margin:0;
}
html.counter-pos-layout .restaurant-service button,
.sales-layout.counter-sales-layout .restaurant-service button {
  min-height:28px;
  padding:2px 10px;
  font-size:11px;
}
html.counter-pos-layout .restaurant-note,
.sales-layout.counter-sales-layout .restaurant-note {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:11px;
}
html.counter-pos-layout .restaurant-note input,
.sales-layout.counter-sales-layout .restaurant-note input {
  width:180px;
  min-height:28px;
  margin:0;
  padding:3px 8px;
  font-size:11px;
}
html.counter-pos-layout .cart-lines,
.sales-layout.counter-sales-layout .cart-lines {
  flex:1 1 auto;
  min-height:220px;
  max-height:none;
  margin:0;
  padding:0;
  background:#ffffff;
  overflow-y:auto;
}
html.counter-pos-layout .cart-empty,
.sales-layout.counter-sales-layout .cart-empty {
  min-height:165px;
  padding:16px;
  color:#64748b;
}
html.counter-pos-layout .cart-line,
.sales-layout.counter-sales-layout .cart-line {
  display:grid;
  grid-template-columns:56px 46px minmax(120px,1fr) 74px 74px 66px 56px 86px;
  align-items:center;
  gap:4px;
  padding:3px 10px;
  border:0;
  border-bottom:1px solid #e2e8f0;
  border-radius:0;
  background:#ffffff;
  color:#0f172a;
  font-size:11px;
  font-weight:700;
}
html.counter-pos-layout .cart-line.selected,
html.counter-pos-layout .cart-line:focus-visible,
.sales-layout.counter-sales-layout .cart-line.selected,
.sales-layout.counter-sales-layout .cart-line:focus-visible {
  background:#29b6f6;
  color:#041e30;
  box-shadow:none;
}
html.counter-pos-layout .cart-line-main,
.sales-layout.counter-sales-layout .cart-line-main {
  display:contents;
}
html.counter-pos-layout .cart-line .qty-control,
.sales-layout.counter-sales-layout .cart-line .qty-control {
  grid-column:1;
  grid-row:1;
  justify-content:flex-start;
  padding:0;
  border:0;
  background:transparent;
}
html.counter-pos-layout .cart-line .qty-control > button,
.sales-layout.counter-sales-layout .cart-line .qty-control > button {
  display:none;
}
html.counter-pos-layout .cart-line .cart-qty-input,
.sales-layout.counter-sales-layout .cart-line .cart-qty-input {
  width:48px;
  height:22px;
  padding:0 3px;
  border:1px solid transparent;
  border-radius:2px;
  background:transparent;
  color:inherit;
  font-family:"Consolas","Courier New",monospace;
  font-size:11px;
  font-weight:800;
  text-align:center;
}
html.counter-pos-layout .cart-line .cart-qty-input:focus,
.sales-layout.counter-sales-layout .cart-line .cart-qty-input:focus {
  border-color:#0284c7;
  background:#ffffff;
  color:#0f172a;
}
html.counter-pos-layout .rc-col-uom,
html.counter-pos-layout .rc-col-uprice,
html.counter-pos-layout .rc-col-grss,
html.counter-pos-layout .rc-col-add,
html.counter-pos-layout .rc-line-net,
.sales-layout.counter-sales-layout .rc-col-uom,
.sales-layout.counter-sales-layout .rc-col-uprice,
.sales-layout.counter-sales-layout .rc-col-grss,
.sales-layout.counter-sales-layout .rc-col-add,
.sales-layout.counter-sales-layout .rc-line-net {
  display:block;
  font-family:"Consolas","Courier New",monospace;
  font-size:11px;
}
html.counter-pos-layout .rc-col-uom,
.sales-layout.counter-sales-layout .rc-col-uom {
  grid-column:2;
  grid-row:1;
}
html.counter-pos-layout .rc-col-desc,
.sales-layout.counter-sales-layout .rc-col-desc {
  display:flex;
  align-items:center;
  gap:6px;
  grid-column:3;
  grid-row:1;
  min-width:0;
  overflow:hidden;
}
html.counter-pos-layout .rc-col-desc strong,
.sales-layout.counter-sales-layout .rc-col-desc strong {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
}
html.counter-pos-layout .rc-col-desc small,
html.counter-pos-layout .rc-col-desc .line-price-options,
html.counter-pos-layout .rc-col-desc .cart-addon-button,
.sales-layout.counter-sales-layout .rc-col-desc small,
.sales-layout.counter-sales-layout .rc-col-desc .line-price-options,
.sales-layout.counter-sales-layout .rc-col-desc .cart-addon-button {
  display:none;
}
html.counter-pos-layout .rc-col-uprice,
.sales-layout.counter-sales-layout .rc-col-uprice {
  grid-column:4;
  grid-row:1;
  text-align:right;
}
html.counter-pos-layout .rc-col-grss,
.sales-layout.counter-sales-layout .rc-col-grss {
  grid-column:5;
  grid-row:1;
  text-align:right;
}
html.counter-pos-layout .cart-line .line-discount-control,
.sales-layout.counter-sales-layout .cart-line .line-discount-control {
  grid-column:6;
  grid-row:1;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:1px;
  margin:0;
  padding:0;
}
html.counter-pos-layout .cart-line .line-discount-control > span:first-child,
.sales-layout.counter-sales-layout .cart-line .line-discount-control > span:first-child {
  display:none;
}
html.counter-pos-layout .cart-line .line-discount-input,
.sales-layout.counter-sales-layout .cart-line .line-discount-input {
  width:36px;
  height:20px;
  padding:0 2px;
  border:1px solid transparent;
  background:transparent;
  color:inherit;
  font-family:"Consolas","Courier New",monospace;
  font-size:11px;
  font-weight:700;
  text-align:right;
}
html.counter-pos-layout .cart-line .line-discount-input:focus,
.sales-layout.counter-sales-layout .cart-line .line-discount-input:focus {
  border-color:#0284c7;
  background:#ffffff;
  color:#0f172a;
}
html.counter-pos-layout .rc-col-add,
.sales-layout.counter-sales-layout .rc-col-add {
  grid-column:7;
  grid-row:1;
  text-align:right;
}
html.counter-pos-layout .cart-line-end,
.sales-layout.counter-sales-layout .cart-line-end {
  grid-column:8;
  grid-row:1;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:4px;
}
html.counter-pos-layout .cart-line-end > small,
html.counter-pos-layout .default-line-total,
html.counter-pos-layout .cart-line-end .text-button,
.sales-layout.counter-sales-layout .cart-line-end > small,
.sales-layout.counter-sales-layout .default-line-total,
.sales-layout.counter-sales-layout .cart-line-end .text-button {
  display:none;
}
html.counter-pos-layout .rc-pos-control-bar,
.sales-layout.counter-sales-layout .rc-pos-control-bar {
  display:grid;
  grid-template-columns:92px minmax(0,1fr) 128px 236px;
  align-items:stretch;
  gap:6px;
  padding:6px 8px;
  border-top:3px solid #16a34a;
  background:#e8f8ee;
}
html.counter-pos-layout .rc-pos-qty-box,
.sales-layout.counter-sales-layout .rc-pos-qty-box {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:0;
  border:2px solid #16a34a;
  background:#ffffff;
  text-align:center;
  overflow:hidden;
  cursor:pointer;
}
html.counter-pos-layout .rc-qty-head,
.sales-layout.counter-sales-layout .rc-qty-head {
  display:block;
  width:100%;
  padding:2px 4px;
  background:#e2f5ea;
  border-bottom:1px solid #16a34a;
  color:#065f46;
  font-size: 12px;
  font-weight:800;
}
html.counter-pos-layout .rc-qty-val,
.sales-layout.counter-sales-layout .rc-qty-val {
  display:block;
  width:100%;
  padding:4px 2px;
  font-family:"Consolas","Courier New",monospace;
  font-size:20px;
  font-weight:900;
  color:#0f172a;
}
html.counter-pos-layout .rc-pos-mode-strip,
.sales-layout.counter-sales-layout .rc-pos-mode-strip {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:4px;
  padding:4px 8px;
  border:2px solid #16a34a;
  background:#00994d;
  color:#ffffff;
}
html.counter-pos-layout .rc-pos-mode-head,
.sales-layout.counter-sales-layout .rc-pos-mode-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-size:11px;
  font-weight:800;
}
html.counter-pos-layout .rc-pos-mode-head span,
.sales-layout.counter-sales-layout .rc-pos-mode-head span {
  color:#dcfce7;
  font-size: 11px;
  font-weight:700;
}
html.counter-pos-layout .rc-pos-fn-row,
.sales-layout.counter-sales-layout .rc-pos-fn-row {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:4px;
}
html.counter-pos-layout .rc-fn-key,
.sales-layout.counter-sales-layout .rc-fn-key {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:1px;
  min-height:28px;
  padding:3px 4px;
  border:1px solid #ca8a04;
  border-radius:2px;
  background:#fef9c3;
  color:#1e293b;
  font:inherit;
  font-size: 11px;
  font-weight:800;
  cursor:pointer;
  text-align:center;
  line-height:1.1;
}
html.counter-pos-layout .rc-fn-key b,
.sales-layout.counter-sales-layout .rc-fn-key b {
  font-size: 11px;
  font-weight:900;
}
html.counter-pos-layout .rc-fn-key span,
.sales-layout.counter-sales-layout .rc-fn-key span {
  font-size: 11px;
  font-weight:800;
}
html.counter-pos-layout .rc-fn-key:hover:not(:disabled),
.sales-layout.counter-sales-layout .rc-fn-key:hover:not(:disabled) {
  background:#fde047;
}
html.counter-pos-layout .rc-fn-key:disabled,
.sales-layout.counter-sales-layout .rc-fn-key:disabled {
  opacity:.6;
  cursor:default;
}
html.counter-pos-layout .rc-pos-control-bar .checkout-button,
.sales-layout.counter-sales-layout .rc-pos-control-bar .checkout-button {
  min-height:58px;
  margin:0;
  padding:6px 8px;
  border:2px solid #15803d;
  border-radius:2px;
  background:#fef08a;
  color:#064e3b;
  box-shadow:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
}
html.counter-pos-layout .rc-pos-control-bar .checkout-button:hover:not(:disabled),
.sales-layout.counter-sales-layout .rc-pos-control-bar .checkout-button:hover:not(:disabled) {
  background:#fde047;
}
html.counter-pos-layout .rc-pos-control-bar .checkout-button:disabled,
.sales-layout.counter-sales-layout .rc-pos-control-bar .checkout-button:disabled {
  opacity:.65;
}
html.counter-pos-layout .rc-pos-control-bar .checkout-button .default-checkout-label,
.sales-layout.counter-sales-layout .rc-pos-control-bar .checkout-button .default-checkout-label {
  display:none;
}
html.counter-pos-layout .rc-pos-control-bar .checkout-button .rc-f12-label,
.sales-layout.counter-sales-layout .rc-pos-control-bar .checkout-button .rc-f12-label {
  display:grid;
  justify-items:center;
  gap:1px;
  line-height:1.1;
}
html.counter-pos-layout .rc-pos-control-bar .checkout-button .rc-f12-label b,
.sales-layout.counter-sales-layout .rc-pos-control-bar .checkout-button .rc-f12-label b {
  font-size:14px;
  font-weight:900;
}
html.counter-pos-layout .rc-pos-control-bar .checkout-button .rc-f12-label span,
.sales-layout.counter-sales-layout .rc-pos-control-bar .checkout-button .rc-f12-label span {
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
}
html.counter-pos-layout .rc-pos-fn-grid,
.sales-layout.counter-sales-layout .rc-pos-fn-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:4px;
}
html.counter-pos-layout .rc-pos-fn-grid .rc-fn-key,
.sales-layout.counter-sales-layout .rc-pos-fn-grid .rc-fn-key {
  border-color:#16a34a;
  background:#f0fdf4;
  color:#064e3b;
}
html.counter-pos-layout .rc-pos-fn-grid .rc-fn-key.rc-fn-danger,
.sales-layout.counter-sales-layout .rc-pos-fn-grid .rc-fn-key.rc-fn-danger {
  border-color:#dc2626;
  background:#fef2f2;
  color:#991b1b;
}
html.counter-pos-layout .catalog-toolbar,
.sales-layout.counter-sales-layout .catalog-toolbar {
  margin:0;
  padding:5px 10px;
  background:#29b6f6;
  color:#041e30;
}
html.counter-pos-layout .catalog-title,
html.counter-pos-layout .catalog-subtitle,
.sales-layout.counter-sales-layout .catalog-title,
.sales-layout.counter-sales-layout .catalog-subtitle {
  color:#041e30;
  font-weight:800;
}
html.counter-pos-layout .category-bar,
.sales-layout.counter-sales-layout .category-bar,
html.counter-pos-layout .product-grid,
.sales-layout.counter-sales-layout .product-grid,
html.counter-pos-layout .catalog-more-footer,
.sales-layout.counter-sales-layout .catalog-more-footer {
  display:none;
}
html.counter-pos-layout .catalog-display-row,
.sales-layout.counter-sales-layout .catalog-display-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px 12px;
  margin:0;
  padding:5px 10px 7px;
  background:#f8fafc;
  border-top:1px solid #cbd5e1;
}
html.counter-pos-layout .counter-mode-hint,
.sales-layout.counter-sales-layout .counter-mode-hint {
  font-size:11px;
  font-weight:700;
  color:#1e3a2f;
  letter-spacing:.01em;
}
html.counter-pos-layout .counter-mode-hint b,
.sales-layout.counter-sales-layout .counter-mode-hint b {
  display:inline-block;
  padding:1px 5px;
  border:1px solid #94a3b8;
  border-radius:4px;
  background:#ffffff;
  color:#0f172a;
  font-family:"Consolas","Courier New",monospace;
  font-size: 12px;
}
html.counter-pos-layout .rc-pos-totals-bar,
.sales-layout.counter-sales-layout .rc-pos-totals-bar {
  display:flex;
  flex-wrap:wrap;
  align-items:stretch;
  justify-content:flex-end;
  gap:0;
  margin-top:auto;
  border-top:2px solid #16a34a;
  background:#f0fdf4;
  font-family:"Consolas","Courier New",monospace;
}
html.counter-pos-layout .rc-tot-cell,
.sales-layout.counter-sales-layout .rc-tot-cell {
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px 14px;
  border-left:1px solid #bbf7d0;
  color:#0f172a;
  font-size:12px;
}
html.counter-pos-layout .rc-tot-cell:first-child,
.sales-layout.counter-sales-layout .rc-tot-cell:first-child {
  border-left:0;
  margin-right:auto;
}
html.counter-pos-layout .rc-tot-cell span,
.sales-layout.counter-sales-layout .rc-tot-cell span {
  font-size: 11px;
  font-weight:800;
  text-transform:uppercase;
  color:#15803d;
}
html.counter-pos-layout .rc-tot-cell strong,
.sales-layout.counter-sales-layout .rc-tot-cell strong {
  font-size:13px;
  font-weight:900;
  font-variant-numeric:tabular-nums;
}
html.counter-pos-layout .rc-tot-cell.rc-tot-net,
.sales-layout.counter-sales-layout .rc-tot-cell.rc-tot-net {
  background:#dcfce7;
  border-left:2px solid #16a34a;
}
html.counter-pos-layout .rc-tot-cell.rc-tot-net strong,
.sales-layout.counter-sales-layout .rc-tot-cell.rc-tot-net strong {
  font-size:15px;
  color:#065f46;
}
@media (max-width: 960px) {
  html.counter-pos-layout .rc-pos-status-strip,
  .sales-layout.counter-sales-layout .rc-pos-status-strip {
    grid-template-columns:minmax(0,1fr);
  }
  html.counter-pos-layout .rc-pos-control-bar,
  .sales-layout.counter-sales-layout .rc-pos-control-bar {
    grid-template-columns:80px minmax(0,1fr) 116px;
  }
  html.counter-pos-layout .rc-pos-fn-grid,
  .sales-layout.counter-sales-layout .rc-pos-fn-grid {
    grid-column:1 / -1;
    grid-template-columns:repeat(6,minmax(0,1fr));
  }
  html.counter-pos-layout .rc-pos-sale-thead,
  html.counter-pos-layout .cart-line,
  .sales-layout.counter-sales-layout .rc-pos-sale-thead,
  .sales-layout.counter-sales-layout .cart-line {
    grid-template-columns:38px 34px minmax(70px,1fr) 52px 52px 44px 38px 56px;
    padding:3px 8px;
    font-size: 11px;
  }
}
@media (max-width: 640px) {
  .checkout-header-tools { width:100%; justify-content:flex-start; }
  .checkout-theme-bar { width:100%; justify-content:space-between; }
  .checkout-theme-pill { flex:1 1 auto; text-align:center; padding:4px 6px; }
  html.counter-pos-layout .rc-pos-sale-thead,
  html.counter-pos-layout .cart-line,
  .sales-layout.counter-sales-layout .rc-pos-sale-thead,
  .sales-layout.counter-sales-layout .cart-line {
    grid-template-columns:42px minmax(90px,1fr) 64px 72px;
  }
  html.counter-pos-layout .rc-pos-sale-thead > span:nth-child(2),
  html.counter-pos-layout .rc-pos-sale-thead > span:nth-child(5),
  html.counter-pos-layout .rc-pos-sale-thead > span:nth-child(6),
  html.counter-pos-layout .rc-pos-sale-thead > span:nth-child(7),
  html.counter-pos-layout .rc-col-uom,
  html.counter-pos-layout .rc-col-grss,
  html.counter-pos-layout .cart-line .line-discount-control,
  html.counter-pos-layout .rc-col-add,
  .sales-layout.counter-sales-layout .rc-pos-sale-thead > span:nth-child(2),
  .sales-layout.counter-sales-layout .rc-pos-sale-thead > span:nth-child(5),
  .sales-layout.counter-sales-layout .rc-pos-sale-thead > span:nth-child(6),
  .sales-layout.counter-sales-layout .rc-pos-sale-thead > span:nth-child(7),
  .sales-layout.counter-sales-layout .rc-col-uom,
  .sales-layout.counter-sales-layout .rc-col-grss,
  .sales-layout.counter-sales-layout .cart-line .line-discount-control,
  .sales-layout.counter-sales-layout .rc-col-add {
    display:none;
  }
  html.counter-pos-layout .rc-col-desc,
  .sales-layout.counter-sales-layout .rc-col-desc { grid-column:2; }
  html.counter-pos-layout .rc-col-uprice,
  .sales-layout.counter-sales-layout .rc-col-uprice { grid-column:3; }
  html.counter-pos-layout .cart-line-end,
  .sales-layout.counter-sales-layout .cart-line-end { grid-column:4; }
  html.counter-pos-layout .rc-pos-control-bar,
  .sales-layout.counter-sales-layout .rc-pos-control-bar {
    grid-template-columns:72px minmax(0,1fr);
  }
  html.counter-pos-layout .rc-pos-control-bar .checkout-button,
  .sales-layout.counter-sales-layout .rc-pos-control-bar .checkout-button {
    grid-column:1 / -1;
    min-height:46px;
  }
  html.counter-pos-layout .rc-pos-fn-row,
  .sales-layout.counter-sales-layout .rc-pos-fn-row {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  html.counter-pos-layout .rc-pos-fn-grid,
  .sales-layout.counter-sales-layout .rc-pos-fn-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  html.counter-pos-layout .sales-layout .cart-panel,
  .sales-layout.counter-sales-layout .cart-panel {
    min-height:0;
  }
  html.counter-pos-layout .cart-lines,
  .sales-layout.counter-sales-layout .cart-lines {
    min-height:180px;
  }
  html.counter-pos-layout .rc-pos-totals-bar,
  .sales-layout.counter-sales-layout .rc-pos-totals-bar {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  html.counter-pos-layout .rc-tot-cell,
  .sales-layout.counter-sales-layout .rc-tot-cell {
    justify-content:space-between;
    padding:6px 10px;
    border-left:0;
    border-bottom:1px solid #bbf7d0;
  }
  html.counter-pos-layout .rc-tot-cell:first-child,
  .sales-layout.counter-sales-layout .rc-tot-cell:first-child {
    margin-right:0;
  }
  html.counter-pos-layout .rc-tot-cell.rc-tot-net,
  .sales-layout.counter-sales-layout .rc-tot-cell.rc-tot-net {
    grid-column:1 / -1;
    border-left:0;
    border-bottom:0;
  }
}

/* Customer cash & live change calculator in Current Sale and Take Cash modal */
.cart-cash-calculator {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid #d7e8de;
  border-radius: 10px;
  background: #f4faf6;
}
.cart-cash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cart-cash-row label {
  color: #2f4f41;
  font-size: 12px;
  font-weight: 700;
}
.cart-cash-row input {
  width: 118px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #b7d7c5;
  border-radius: 8px;
  background: #ffffff;
  color: #163026;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cart-cash-row input:focus {
  outline: 2px solid #26895d;
  border-color: #26895d;
}
.cart-change-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px dashed #cbe0d3;
  color: #2f4f41;
  font-size: 11px;
  font-weight: 700;
}
.cart-change-row strong {
  color: #15803d;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.cart-change-row strong.is-short {
  color: #b45309;
  font-size: 11px;
}
.cash-quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.cash-quick-picks button {
  min-height: 31px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}
.change-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid #cce5d6;
  border-radius: 10px;
  background: #eff9f3;
  color: #2f4f41;
  font-size: 11px;
  font-weight: 700;
}
.change-preview strong {
  color: #15803d;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.cash-change-status {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #2d6a4f;
}
html.counter-pos-layout .cart-cash-calculator,
.sales-layout.counter-sales-layout .cart-cash-calculator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 5px 10px;
  border: 0;
  border-top: 2px solid #16a34a;
  border-radius: 0;
  background: #f0fdf4;
  font-family: "Consolas", "Courier New", monospace;
}
html.counter-pos-layout .cart-cash-row,
.sales-layout.counter-sales-layout .cart-cash-row {
  gap: 8px;
}
html.counter-pos-layout .cart-cash-row input,
.sales-layout.counter-sales-layout .cart-cash-row input {
  width: 124px;
  min-height: 28px;
  border: 2px solid #16a34a;
  border-radius: 2px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13px;
  font-weight: 900;
}
html.counter-pos-layout .cart-change-row,
.sales-layout.counter-sales-layout .cart-change-row {
  padding-top: 0;
  border-top: 0;
  gap: 10px;
  font-size: 12px;
  font-weight: 900;
}
html.counter-pos-layout .cart-change-row strong,
.sales-layout.counter-sales-layout .cart-change-row strong {
  font-size: 16px;
  font-weight: 900;
}


/* Restaurant Mode & Order Customization */
.restaurant-settings { margin: 18px 0; }
.restaurant-owner-switch { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 16px 18px; background: #eff8f2; border: 1px solid #c5ddce; border-radius: 12px; }
.restaurant-owner-switch span strong { display: block; font-size: 13px; color: #16422f; }
.restaurant-owner-switch small { display: block; margin-top: 4px; color: #4e6658; font-size: 11px; }
.restaurant-owner-switch input { width: 48px; height: 26px; accent-color: #22805a; cursor: pointer; }
.restaurant-order { background: #f1faf5; border: 1px solid #cae6d8; border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.restaurant-order-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #214b3c; font-size: 12px; font-weight: 700; }
.restaurant-order-heading span { font-size: 11px; color: #537364; font-weight: 500; }
.restaurant-service { display: flex; gap: 8px; margin: 10px 0; }
.restaurant-service button { flex: 1; min-height: 40px; border-radius: 8px; border: 1px solid #c7dbcf; background: white; color: #284e3d; font-weight: 650; font-size: 11px; cursor: pointer; }
.restaurant-service button[aria-pressed="true"] { border-color: #28714e; background: #d5f2e1; color: #18452f; box-shadow: inset 0 0 0 1px #28714e; }
.restaurant-note { display: block; font-size: 11px; font-weight: 600; color: #2c4438; }
.restaurant-note small { font-weight: 400; color: #5e7769; margin-left: 4px; }
.restaurant-note input { display: block; width: 100%; min-height: 38px; margin-top: 5px; background: white; border: 1px solid #b6cebf; border-radius: 7px; padding: 8px 10px; font: inherit; font-size: 11px; }
.restaurant-mode .product-card { min-height: 140px; }
.restaurant-mode .catalog-title { color: #1c4735; }
.menu-sold-out { opacity: 0.55; cursor: not-allowed; }
.restaurant-receipt { padding: 14px; border: 1px solid #c8dfd1; background: #f3faf5; border-radius: 9px; display: grid; gap: 4px; margin: 10px 0; }
.restaurant-receipt strong { font-size: 20px; letter-spacing: 0.8px; color: #18452f; }
.restaurant-receipt span { font-size: 12px; font-weight: 700; color: #296d4b; text-transform: uppercase; }
.restaurant-receipt p { margin: 2px 0 0; font-size: 11px; color: #435b4f; }
.cart-meal-addons {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0 0 2px 14px;
  padding-left: 10px;
  border-left: 1px solid currentColor;
  font-size: 12px;
}
.cart-meal-addons summary { width: fit-content; padding: 6px 5px; cursor: pointer; font-weight: 650; }
.cart-meal-addons summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.cart-meal-addon-list { list-style: none; margin: 0; padding: 0; }
.cart-meal-addon-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; }
.cart-meal-addon-list span { overflow-wrap: anywhere; }
.cart-meal-addon-list button { min-height: 28px; }
.cart-meal-addon-options, .cart-meal-addon-form { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.cart-meal-addon-options button { max-width: 100%; overflow-wrap: anywhere; }
.cart-meal-addon-form { align-items: end; }
.cart-meal-addon-form label { display: grid; gap: 4px; flex: 1 1 8rem; min-width: 0; }
.cart-meal-addon-form label:first-child { flex-basis: 12rem; }
.cart-meal-addon-form input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 34px; }
.menu-manage-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e0e9e2; }
.menu-manage-row small { display: block; color: #556b5e; font-size: 12px; margin-top: 3px; }

/* Enhanced Width for Current Sale & Printed Receipts (+25%) */
.cart-line { grid-template-columns: minmax(0,1fr) 110px; gap: 10px; }
.cart-line-end { width: 110px; }
html.counter-pos-layout .cart-line-end,
.sales-layout.counter-sales-layout .cart-line-end { width: auto; min-width: 0; }
.cart-line-main strong { font-size: 11px; }
.summary-row.total strong { font-size: 20px; }
.pos-print-receipt { max-width: 460px; margin: 0 auto; }

/* Restaurant 2-Group Architecture Styles */
.item-sku-badge {
  display: inline-block;
  padding: 2px 7px;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  color: #244131;
  background: #e9f2ec;
  border: 1px solid #c8dcd0;
  border-radius: 4px;
  letter-spacing: 0.2px;
}
.menu-portion-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.portion-step-btn {
  padding: 2px 6px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 4px;
  background: #f0f4f1;
  border: 1px solid #d0dcd4;
  cursor: pointer;
}
.portion-step-btn:hover {
  background: #e0ece4;
}
.category-chips-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px;
  background: #f7faf8;
  border-bottom: 1px solid #e2ebe5;
}
.category-chip {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #c8dcd0;
  background: #fff;
  color: #2d4537;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.category-chip:hover {
  background: #eef4f0;
}
.category-chip.active {
  background: #1e5e3a;
  color: #fff;
  border-color: #1e5e3a;
}
.switch-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
}
.switch-small input {
  cursor: pointer;
}
.classification-badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 3px;
  text-transform: uppercase;
}
.classification-badge.ingredient {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}
.classification-badge.retail {
  background: #e8f0fe;
  color: #1a73e8;
  border: 1px solid #d2e3fc;
}
.classification-badge.menu {
  background: #fef7e0;
  color: #b06000;
  border: 1px solid #feefc3;
}

/* Separated Hardware Views, Label Preview & Receipt Customization Studio */
.hardware-panel h2 { margin-top: 0; }
.hardware-status { margin: 8px 0 12px; padding: 8px 12px; border-radius: 9px; background: #eef6f1; border: 1px solid #cbe0d3; color: #164431; font-size: 12px; font-weight: 600; }
.hardware-callout { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 12px 0 16px; padding: 12px 14px; border: 1px solid #cde2d6; border-radius: 12px; background: #f3faf6; }
.hardware-callout strong { display: block; color: #143f2d; font-size: 13px; }
.hardware-callout .field-hint { margin: 3px 0 0; }
.hardware-subcard { margin: 12px 0 16px; padding: 14px; background: #f8fbf9; border: 1px solid #d6e4dc; border-radius: 12px; }
.hardware-subcard h3 { margin: 0 0 6px; font-size: 14px; }
.hardware-actions-tight { margin-top: 10px; }
.hardware-checks { display: grid; gap: 8px; margin: 12px 0; }
.hardware-station-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.hardware-station-tab { padding: 7px 13px; border: 1px solid #c7d9ce; border-radius: 999px; background: #f4f9f6; color: #1b4834; font-size: 12px; font-weight: 700; cursor: pointer; }
.hardware-station-tab.active { background: #16794f; border-color: #16794f; color: #ffffff; }
.hardware-health-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; margin-left: 8px; vertical-align: middle; }
.hardware-health-pill.is-ok { background: #dff4e7; color: #125636; border: 1px solid #b3dfc5; }
.hardware-health-pill.is-warn { background: #fef4d9; color: #8c5200; border: 1px solid #f4d68c; }
.hardware-health-pill.is-error { background: #fde4e2; color: #9c1f1a; border: 1px solid #f5b9b4; }
.hardware-suggest-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 10px 0 14px; padding: 10px 12px; border: 1px solid #f0d48a; border-radius: 10px; background: #fffaf0; color: #6e4400; font-size: 12px; }
.hardware-advanced { margin: 14px 0; padding: 10px 14px; border: 1px solid #d5e3db; border-radius: 11px; background: #fafdfb; }
.hardware-advanced > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: #164a34; list-style: none; }
.hardware-advanced > summary::before { content: "▸ "; }
.hardware-advanced[open] > summary::before { content: "▾ "; }
.hardware-advanced-body { margin-top: 12px; }
.bt-direct-card { margin: 12px 0 16px; padding: 14px; border: 1px solid var(--vp-bt-border, #c5dfd0); border-radius: 12px; background: var(--vp-bt-bg, #f4faf6); }
.bt-direct-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.bt-direct-head h3 { margin: 0; font-size: 14px; color: #123e2c; }
.bt-link-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; max-width: 100%; overflow-wrap: anywhere; }
.bt-link-pill.is-connected { background: #daf3e5; color: #0f5634; border: 1px solid #9fd8b9; }
.bt-link-pill.is-saved { background: #fef4d9; color: #824d00; border: 1px solid #f2d384; }
.bt-link-pill.is-off { background: #fde4e2; color: #9c1f1a; border: 1px solid #f5b9b4; }
.bt-link-pill.is-idle { background: #edf2ef; color: #466054; border: 1px solid #d1ddd6; }
.bt-direct-banner { margin: 8px 0 10px; padding: 9px 11px; border-radius: 9px; font-size: 12px; line-height: 1.45; }
.bt-direct-banner.is-warn { background: #fff9eb; border: 1px solid #f0d285; color: #6c4300; }
.bt-direct-banner.is-info { background: #eef6ff; border: 1px solid #bfd8f5; color: #174673; }
.bt-device-list { display: grid; gap: 8px; margin-top: 12px; }
.bt-device-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #d3e3da; border-radius: 10px; background: #ffffff; }
.bt-device-row.is-linked { border-color: #16794f; background: #effaf3; }
.bt-device-meta { min-width: 0; flex: 1 1 auto; }
.bt-device-name { display: block; font-size: 13px; font-weight: 700; color: #123325; overflow-wrap: anywhere; }
.bt-device-addr { display: block; font-family: "Consolas", "Courier New", monospace; font-size: 11px; color: #567064; margin-top: 2px; }
.bt-device-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.bt-badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #edf3f0; color: #365246; border: 1px solid #d3e0d9; }
.bt-badge.is-printer { background: #dff4e7; color: #105535; border-color: #aedcc1; }
.bt-badge.is-linked { background: #16794f; color: #ffffff; border-color: #16794f; }
.bt-badge.is-nearby { background: #eef4ff; color: #204c8a; border-color: #c5d8f8; }
.bt-device-action { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 640px) {
  .bt-device-row { flex-direction: column; align-items: stretch; }
  .bt-device-action { width: 100%; justify-content: center; }
}
.calibration-ruler .cal-bar { display: flex; justify-content: space-between; align-items: center; box-sizing: border-box; margin: 3px 0; padding: 2px 3px; border: 1px solid #000; font-size: 0.9em; font-weight: 700; }
.calibration-ruler .cal-col { margin: 3px 0; font-size: 0.9em; line-height: 1.2; word-break: break-all; }
.hardware-scale-readout { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 10px 0 14px; padding: 12px 16px; border: 1px solid #bfd8ca; border-radius: 11px; background: #f1f8f4; }
.hardware-scale-readout span { font-size: 12px; font-weight: 700; color: #2b5441; text-transform: uppercase; letter-spacing: .04em; }
.hardware-scale-readout strong { font-family: "Consolas", "Courier New", monospace; font-size: 26px; font-weight: 900; color: #0f3d28; font-variant-numeric: tabular-nums; }

.receipt-studio-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); gap: 20px; align-items: start; }
.receipt-group { margin: 0 0 14px; padding: 14px 16px; border: 1px solid #d5e3db; border-radius: 12px; background: #fbfdfc; }
.receipt-group .field input[type="file"] { max-width: 100%; overflow: hidden; font-size: 11px; }
.receipt-group legend { padding: 0 6px; font-size: 13px; font-weight: 800; color: #164a34; }
.receipt-full-field { margin-top: 10px; }
.receipt-full-field textarea { width: 100%; min-height: 70px; padding: 8px 10px; border: 1px solid #cad8cf; border-radius: 8px; font: inherit; font-size: 12px; resize: vertical; }
.receipt-studio-preview { position: sticky; top: 82px; padding: 14px; border: 1px solid #d2e0d7; border-radius: 14px; background: #edf3ef; }
.receipt-studio-preview h3 { margin: 0; font-size: 14px; color: #153e2c; }
.receipt-preview-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.receipt-paper-pills { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.receipt-paper-pills .secondary-button.active { background: #16794f; border-color: #16794f; color: #ffffff; }
.receipt-preview-stage { display: flex; justify-content: center; overflow-x: auto; padding: 8px 4px; }
.printer-fit-preview { margin: 12px 0; padding: 11px 13px; border: 1px solid #cfe0d6; border-radius: 10px; background: #f5faf7; }
.printer-fit-meta { font-size: 12px; color: #194232; margin-bottom: 8px; line-height: 1.4; overflow-wrap: anywhere; }
.printer-fit-roll { display: flex; align-items: center; width: 100%; max-width: 340px; min-height: 30px; padding: 4px; border: 1px dashed #89a899; border-radius: 6px; background: #ffffff; box-sizing: border-box; overflow: hidden; }
.printer-fit-content { display: flex; align-items: center; justify-content: center; min-height: 22px; padding: 2px 6px; border-radius: 4px; background: #dff4e9; border: 1px solid #2b8a63; color: #103d2a; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; }

.label-preview-host { display: grid; place-items: center; min-height: 170px; margin-top: 12px; padding: 16px; border: 1px dashed #bfd3c7; border-radius: 10px; background: #f8fbf9; overflow: auto; }
.label-sticker-empty { color: #5b7166; font-size: 12px; text-align: center; }
.label-sticker-sheet { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; max-width: 100%; padding: 8px 10px; border: 1px dashed #94a3b8; border-radius: 6px; background: #ffffff; color: #111827; text-align: center; box-shadow: 0 3px 10px rgba(15, 23, 42, .08); }
.label-store { font-size: 11px; color: #475569; text-transform: uppercase; letter-spacing: .04em; }
.label-name { font-size: 12px; font-weight: 800; line-height: 1.2; }
.label-price { font-size: 14px; font-weight: 900; color: #0f3d28; }
.label-code-graphic { display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: 2px; overflow: hidden; }
.label-code-graphic svg { max-width: 100%; height: auto; display: block; }
.label-code-bars { display: block; width: 84%; max-width: 150px; height: 22px; background: repeating-linear-gradient(90deg, #111827 0 2px, transparent 2px 4px, #111827 4px 5px, transparent 5px 8px, #111827 8px 11px, transparent 11px 13px); }
.label-code-placeholder { padding: 4px 8px; border: 1px solid #1e293b; border-radius: 4px; font-family: "Consolas", "Courier New", monospace; font-size: 12px; font-weight: 700; }
.label-code-text { margin-top: 2px; font-family: "Consolas", "Courier New", monospace; font-size: 11px; color: #334155; }

/* Receipt Typography, Boxes, Dividers & Thermal Layout */
.receipt-preview-stage .pos-print-receipt,
.modal-body .pos-print-receipt {
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  color: #111827;
  font-family: "Consolas", "Courier New", ui-monospace, monospace;
  line-height: 1.32;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .1);
}
.pos-print-receipt[data-receipt-paper="58"] { width: 204px; max-width: 100%; }
.pos-print-receipt[data-receipt-paper="80"] { width: 294px; max-width: 100%; }
.pos-print-receipt[data-receipt-paper="A4"] { width: 100%; max-width: 480px; font-family: inherit; }
.pos-print-receipt.receipt-spacing-compact { --rc-gap: 3px; }
.pos-print-receipt.receipt-spacing-standard { --rc-gap: 6px; }
.pos-print-receipt.receipt-spacing-spacious { --rc-gap: 10px; }
.pos-print-receipt .receipt-align-center { text-align: center; }
.pos-print-receipt .receipt-align-left { text-align: left; }
.pos-print-receipt .receipt-logo { display: block; max-width: 140px; max-height: 56px; object-fit: contain; }
.pos-print-receipt .receipt-align-center .receipt-logo { margin: 0 auto 6px; }
.pos-print-receipt .receipt-align-left .receipt-logo { margin: 0 0 6px; }
.pos-print-receipt .receipt-subline { margin: 2px 0; font-size: .92em; color: #334155; }
.pos-print-receipt .receipt-doc-title { margin: 5px 0 2px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pos-print-receipt .receipt-divider { border: 0; margin: calc(var(--rc-gap, 6px) + 2px) 0; }
.pos-print-receipt .receipt-divider-dashed { border-top: 1px dashed #475569; }
.pos-print-receipt .receipt-divider-solid { border-top: 1px solid #0f172a; }
.pos-print-receipt .receipt-divider-dotted { border-top: 1.5px dotted #475569; }
.pos-print-receipt .receipt-gap { height: calc(var(--rc-gap, 6px) + 2px); }
.pos-print-receipt .receipt-meta-block,
.pos-print-receipt .receipt-date-slot { margin: var(--rc-gap, 6px) 0; font-size: .94em; }
.pos-print-receipt .print-line { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin: var(--rc-gap, 6px) 0; }
.pos-print-receipt .print-line > span { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.pos-print-receipt .print-line strong { flex: 0 0 auto; text-align: right; white-space: nowrap; }
.pos-print-receipt .print-line span small { display: block; margin-top: 1px; font-size: .88em; color: #475569; }
.pos-print-receipt .print-detail { display: flex; justify-content: space-between; gap: 6px; padding-left: 8px; margin: 2px 0; font-size: .9em; color: #334155; }
.pos-print-receipt .print-detail > span { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.pos-print-receipt .print-detail strong { flex: 0 0 auto; text-align: right; white-space: nowrap; }
.pos-print-receipt .receipt-box { margin: calc(var(--rc-gap, 6px) + 1px) 0; padding: 6px 8px; border-radius: 3px; }
.pos-print-receipt .receipt-box-bordered { border: 1px solid #0f172a; background: #f8fafc; }
.pos-print-receipt .receipt-box-dashed { border: 1px dashed #334155; background: #fcfcfd; }
.pos-print-receipt .receipt-box-plain { border: 0; padding: 2px 0; background: transparent; }
.pos-print-receipt .receipt-box-title { font-weight: 800; }
.pos-print-receipt .receipt-priv-fields { margin: 4px 0 2px; font-size: .9em; line-height: 1.35; }
.pos-print-receipt .receipt-notify-box { margin: calc(var(--rc-gap, 6px) + 2px) 0; padding: 7px 9px; font-size: .92em; text-align: center; }
.pos-print-receipt .receipt-notify-box strong { display: block; margin-bottom: 2px; }
.pos-print-receipt .receipt-notify-box p { margin: 0; }
.pos-print-receipt .receipt-notify-dashed { border: 1px dashed #0f172a; }
.pos-print-receipt .receipt-notify-bordered { border: 1.5px solid #0f172a; }
.pos-print-receipt .receipt-notify-dark-banner { background: #111827; color: #ffffff; border-radius: 3px; }
.pos-print-receipt .receipt-addon-summary { margin: var(--rc-gap, 6px) 0; padding: 5px 8px; border-left: 2px solid #475569; font-size: .9em; }
.pos-print-receipt .receipt-addon-summary p { margin: 2px 0 0; }
.pos-print-receipt .receipt-code-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 8px 0 4px; }
.pos-print-receipt .receipt-qr-img { width: 84px; height: 84px; image-rendering: pixelated; }
.pos-print-receipt .receipt-code-slot svg { max-width: 100%; height: auto; }

@media (max-width: 960px) {
  .receipt-studio-grid { grid-template-columns: minmax(0, 1fr); }
  .receipt-studio-preview { position: static; }
}
@media (max-width: 720px) {
  html.counter-pos-layout .mobile-cart-bar,
  .sales-layout.counter-sales-layout + .mobile-cart-bar { display: none; }
  .sales-layout.counter-sales-layout .cart-panel { height: auto; min-height: 0; margin-bottom: 12px; }
  .sales-layout.counter-sales-layout .cart-lines { min-height: 112px; max-height: 32dvh; }
}
@media print {
  .pos-print-receipt[data-receipt-paper] { width: 100%; max-width: none; padding: 0; border: 0; box-shadow: none; color: #000; }
  .pos-print-receipt[data-receipt-paper="58"] .print-line { gap: 4px; }
  .pos-print-receipt[data-receipt-paper="58"] .print-detail { gap: 4px; padding-left: 4px; }
  .pos-print-receipt[data-receipt-paper="58"] .receipt-box { padding: 4px 5px; }
  .pos-print-receipt[data-receipt-paper="58"] .receipt-notify-box { padding: 4px 5px; }
  .pos-print-receipt[data-receipt-paper="58"] .receipt-logo { max-width: 110px; max-height: 44px; }
  .pos-print-receipt[data-receipt-paper="58"] .receipt-qr-img { width: 64px; height: 64px; }
  .pos-print-receipt .receipt-notify-dark-banner { background: #000; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.vp-tier-sheet { display: grid; gap: 12px; }
.vp-tier-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.vp-tier-search-field { min-width: min(260px, 100%); flex: 1 1 220px; }
.vp-tier-pills { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vp-tier-pills .is-active { background: #173c32; color: #ffffff; border-color: #173c32; }
.vp-excel-wrap { max-width: 100%; overflow: auto; border: 1px solid #d7e2dc; border-radius: 10px; background: #ffffff; }
.vp-excel-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.vp-excel-table th, .vp-excel-table td { padding: 6px 8px; border-bottom: 1px solid #e6eee9; border-right: 1px solid #e6eee9; white-space: nowrap; }
.vp-excel-table thead th { position: sticky; top: 0; z-index: 2; background: #f2f7f4; color: #173c32; font-weight: 700; text-align: left; }
.vp-excel-input { width: 100%; min-width: 84px; padding: 5px 7px; border: 1px solid #cfdcd5; border-radius: 6px; background: #ffffff; color: #162620; font: inherit; }
.vp-excel-input:focus { outline: 2px solid #238358; border-color: #238358; }

.metric-icon svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-confirmation-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.auth-confirmation-head p { margin: 0; }
.auth-confirm-icon { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: var(--vp-icon-bg); border: 1px solid var(--vp-icon-border); color: var(--vp-icon-fg); }
.auth-confirm-icon svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stock-kpi-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.summary-tile > span.summary-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.vp-box-badge { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; background: var(--vp-icon-bg); border: 1px solid var(--vp-icon-border); color: var(--vp-icon-fg); }
.vp-box-badge svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vp-inline-icon { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; flex: 0 0 auto; }
.vp-inline-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.workspace-nav-group > summary { display: flex; align-items: center; gap: 10px; list-style: none; }
.workspace-nav-group > summary::-webkit-details-marker { display: none; }
@media (max-width: 930px) {
  .workspace-nav-group > summary { justify-content: center; padding: 10px 0; }
  .workspace-nav-group > summary > span:not(.nav-icon) { display: none; }
}

.receipt-reprint-banner { margin: 0 0 6px; padding: 3px 6px; border: 1px dashed #111827; text-align: center; letter-spacing: 0.06em; font-size: 0.9em; }
.legal-permit-rows { display: grid; gap: 6px; margin-top: 6px; }
.legal-permit-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(130px, 1.3fr) auto; gap: 6px; align-items: center; }
.compliance-preset-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.concession-editor-list { display: grid; gap: 8px; margin-top: 8px; }
.concession-editor-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border: 1px solid #d7e2dc; border-radius: 10px; background: #f8fbf9; }
.concession-editor-row input[data-c-field="name"] { flex: 1 1 130px; min-width: 110px; }
.concession-editor-row input[data-c-field="value"] { width: 76px; flex: 0 0 76px; }
.concession-flag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; white-space: nowrap; cursor: pointer; }
.concession-flag input { width: auto; min-width: 0; margin: 0; }
.guest-split-row { margin-top: 8px; }
.sale-ext-ref-field { margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(18, 43, 42, 0.14); }
@media (max-width: 600px) {
  .legal-permit-row { grid-template-columns: minmax(0, 1fr) auto; }
  .legal-permit-row input[name="permitValue"] { grid-column: 1 / -1; }
  .concession-editor-row { gap: 8px; }
  .concession-editor-row input[data-c-field="name"] { flex: 1 1 100%; }
}

/* Division renaming & Option 2B child toggle */
.vp-pos-mode-row { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid #d7e2dc; border-radius: 10px; background: #fbfdfb; }
.vp-pos-mode-row .store-mode-option { margin: 0; border: 0; padding: 0; background: transparent; }
.vp-div-rename-input { width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid #c5d6cc; border-radius: 8px; background: #ffffff; color: #132a20; font: inherit; font-size: 13px; }
.vp-div-rename-input:focus { outline: 2px solid #26895d; border-color: #26895d; }
.vp-div-rename-input:disabled { opacity: 0.55; background: #f2f5f3; cursor: not-allowed; }
.vp-stocks-child-card { margin-top: 10px; padding: 12px 14px; border: 1px dashed #b9d2c4; border-radius: 10px; background: #f4faf6; display: grid; gap: 8px; }
.vp-stocks-child-check { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13px; color: #163b2b; cursor: pointer; }
.vp-stocks-child-check input { width: 16px; height: 16px; margin: 0; accent-color: #22805a; }
.vp-div-actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.vp-rw-readonly-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.vp-rw-readonly-head h3 { margin: 0; font-size: 15px; }
@media (max-width: 640px) {
  .vp-div-actions-row button { flex: 1 1 auto; }
}
