/*
 * 共用營運中台 UI 主題
 * 僅改變呈現，不接管任何庫存、收貨、POS、財務或權限規則。
 * 將網址加上 ?ui=legacy 或由帳號選單切換，即可回復原版外觀。
 */
html[data-ui="operations"] {
  color-scheme: light;
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-soft: #eef2ff;
  --canvas: #f7f8fc;
  --surface: #ffffff;
  --text: #172033;
  --muted: #667085;
  --border: #e4e7ec;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --radius-card: 16px;
  --radius-control: 10px;
  --navy: #172033;
  --navy-soft: #29324a;
  --blue: var(--primary);
  --blue-bright: #6366f1;
  --blue-light: #c7d2fe;
  --blue-soft: var(--primary-soft);
  --green: var(--success);
  --orange: var(--warning);
  --red: var(--danger);
  --ink: var(--text);
  --line: var(--border);
  --panel: var(--surface);
  --radius: var(--radius-card);
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}

html[data-ui="operations"] body:not(:has(.public-catalog)) {
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 85% -10%, #eef2ff 0, transparent 32rem),
    var(--canvas);
  font-size: 15px;
  line-height: 1.5;
}

html[data-ui="operations"] :where(button, input, select, textarea, a):focus-visible {
  outline: 3px solid #818cf866;
  outline-offset: 2px;
}

/* App shell */
html[data-ui="operations"] .shell {
  grid-template-columns: 248px minmax(0, 1fr);
  background: transparent;
}

html[data-ui="operations"] .sidebar {
  width: 248px;
  padding: 18px 14px 16px;
  background: linear-gradient(180deg, #172033 0%, #202a41 62%, #29324a 100%);
  border-right: 1px solid #ffffff14;
  box-shadow: 12px 0 38px #10182812;
}

html[data-ui="operations"] .brand {
  min-height: 52px;
  padding: 0 8px 18px;
  gap: 11px;
}

html[data-ui="operations"] .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #818cf8, #4f46e5);
  box-shadow: 0 10px 24px #0f172a66;
}

html[data-ui="operations"] .brand strong { font-size: 17px; letter-spacing: .02em; }
html[data-ui="operations"] .brand span { color: #c7d2fe; }

html[data-ui="operations"] .workspace-picker {
  margin: 0 2px 14px;
  padding: 12px;
  border-color: #ffffff24;
  border-radius: 14px;
  background: #ffffff0b;
  box-shadow: inset 0 1px #ffffff10;
}

html[data-ui="operations"] .workspace-picker:hover {
  border-color: #a5b4fc88;
  background: #ffffff12;
}

html[data-ui="operations"] .workspace-picker > span,
html[data-ui="operations"] .workspace-picker small { color: #cbd5e1; }
html[data-ui="operations"] .workspace-picker b { color: #c7d2fe; }

html[data-ui="operations"] .nav-groups { padding-right: 2px; }
html[data-ui="operations"] .nav-section {
  padding: 13px 10px 6px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

html[data-ui="operations"] .nav-group + .nav-group {
  margin-top: 6px;
  padding-top: 5px;
  border-color: #ffffff0d;
}

html[data-ui="operations"] .nav-button {
  min-height: 44px;
  margin: 2px 0;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #d0d5dd;
  font-weight: 700;
}

html[data-ui="operations"] .nav-button:hover {
  border-color: #ffffff12;
  background: #ffffff0b;
  color: #fff;
}

html[data-ui="operations"] .nav-button.active {
  border-color: #818cf855;
  background: linear-gradient(90deg, #4f46e535, #6366f118);
  color: #fff;
  box-shadow: inset 3px 0 #818cf8;
}

html[data-ui="operations"] .nav-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ffffff0d;
  color: #c7d2fe;
  font-size: 14px;
}

html[data-ui="operations"] .nav-button.active .nav-icon { background: #6366f144; color: #fff; }
html[data-ui="operations"] .nav-drag-handle { color: #667085; }
html[data-ui="operations"] .nav-reset { border-color: #ffffff24; color: #cbd5e1; }
html[data-ui="operations"] .sidebar-foot { border-color: #ffffff17; color: #98a2b3; }

html[data-ui="operations"] .main { background: transparent; }
html[data-ui="operations"] .topbar {
  height: 64px;
  padding: 0 24px;
  border-color: var(--border);
  background: #ffffffef;
  box-shadow: 0 1px 0 #10182808;
  backdrop-filter: blur(16px) saturate(1.2);
}

html[data-ui="operations"] .topbar h1 {
  color: var(--text);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.02em;
}

html[data-ui="operations"] .topbar p { color: var(--muted); font-size: 12px; }
html[data-ui="operations"] .content {
  width: min(100%, 1600px);
  margin-inline: auto;
  padding: 24px 26px 42px;
}

html[data-ui="operations"] .workspace-switcher,
html[data-ui="operations"] .account-trigger {
  min-height: 44px;
  border-color: var(--border);
  border-radius: var(--radius-control);
  background: #fff;
}

html[data-ui="operations"] .workspace-switcher:hover,
html[data-ui="operations"] .account-trigger:hover,
html[data-ui="operations"] .account-trigger[aria-expanded="true"] {
  border-color: #a5b4fc;
  background: var(--primary-soft);
  box-shadow: 0 5px 16px #4f46e514;
}

html[data-ui="operations"] .avatar { color: var(--primary); background: var(--primary-soft); }
html[data-ui="operations"] .account-dropdown {
  border-color: var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 22px 52px #10182828;
}

/* Surfaces, controls and data */
html[data-ui="operations"] :where(.panel, .stat) {
  border-color: var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 1px 2px #1018280d, 0 8px 22px #10182808;
}

html[data-ui="operations"] .panel { padding: 20px; }
html[data-ui="operations"] .panel-title { margin-bottom: 16px; }
html[data-ui="operations"] .panel-title h2 {
  color: var(--text);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -.01em;
}
html[data-ui="operations"] .panel-title span { color: var(--muted); font-size: 12px; }

html[data-ui="operations"] .stat { position: relative; overflow: hidden; }
html[data-ui="operations"] .stat::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--primary);
}
html[data-ui="operations"] .stat-value { color: var(--text); letter-spacing: -.03em; }
html[data-ui="operations"] .stat-icon { color: var(--primary); background: var(--primary-soft); }

html[data-ui="operations"] :where(.btn, button.btn) {
  min-height: 40px;
  border-color: #d0d5dd;
  border-radius: var(--radius-control);
  background: #fff;
  color: #344054;
  font-weight: 750;
  box-shadow: 0 1px 2px #1018280d;
}

html[data-ui="operations"] :where(.btn, button.btn):hover:not(:disabled) {
  border-color: #a5b4fc;
  background: #f9faff;
  color: var(--primary-dark);
}

html[data-ui="operations"] :where(.btn.primary, button.primary, .checkout) {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 5px 14px #4f46e52b;
}

html[data-ui="operations"] :where(.btn.primary, button.primary, .checkout):hover:not(:disabled) {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: #fff;
}

html[data-ui="operations"] :where(input, select, textarea) {
  min-height: 40px;
  border-color: #d0d5dd;
  border-radius: var(--radius-control);
  color: var(--text);
  background: #fff;
}

html[data-ui="operations"] :where(input, select, textarea):focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px #818cf82e;
}

html[data-ui="operations"] table { color: #344054; font-size: 14px; }
html[data-ui="operations"] th {
  color: #667085;
  background: #f9fafb;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .015em;
}
html[data-ui="operations"] :where(th, td) { border-color: var(--border); }
html[data-ui="operations"] tbody tr:hover { background: #f9faff; }

html[data-ui="operations"] :where(.badge, .status, .inline-status, .batch-status, .manage-status) {
  border-radius: 999px;
  font-weight: 800;
}

/* Workbench and task-first dashboard */
html[data-ui="operations"] .dashboard-workspace {
  background: transparent;
  min-height: calc(100vh - 64px);
}
html[data-ui="operations"] .today-hero {
  border-color: #d9d6fe;
  background: linear-gradient(135deg, #fff 0%, #f5f3ff 72%, #eef2ff 100%);
  box-shadow: 0 12px 34px #4f46e510;
}
html[data-ui="operations"] .workspace-entry,
html[data-ui="operations"] .today-task,
html[data-ui="operations"] .mobile-action-card {
  border-color: var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 2px #1018280b;
}
html[data-ui="operations"] .workspace-entry:hover,
html[data-ui="operations"] .today-task:hover,
html[data-ui="operations"] .mobile-action-card:hover {
  border-color: #a5b4fc;
  box-shadow: 0 12px 28px #4f46e518;
}
html[data-ui="operations"] .workspace-entry i { background: var(--primary); }

/* Products, receiving and POS keep their original workflows. */
html[data-ui="operations"] :where(.manage-product-card, .product-card, .receiving-job-card, .receiving-scan-card, .supplier-card) {
  border-color: var(--border);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 1px 2px #1018280d;
}

html[data-ui="operations"] .receiving-view-tabs {
  gap: 8px;
  padding: 6px;
  background: #f2f4f7;
  border: 1px solid var(--border);
}
html[data-ui="operations"] .receiving-view-tabs button {
  min-height: 44px;
  border-color: transparent;
  background: transparent;
}
html[data-ui="operations"] .receiving-view-tabs button.active {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 5px 13px #4f46e52e;
}
html[data-ui="operations"] .receiving-scan-panel,
html[data-ui="operations"] .receiving-summary {
  border-color: var(--border);
  background: #fff;
}
html[data-ui="operations"] .receiving-batch-price,
html[data-ui="operations"] .receiving-case-conversion.active {
  border-color: #c7d2fe;
  background: #f8f7ff;
}

html[data-ui="operations"] .pos-register-page { background: var(--canvas); }
html[data-ui="operations"] :where(.pos-touch-catalog, .pos-touch-cart, .pos-payment-panel, .pos-scan-panel) {
  border-color: var(--border);
  background: #fff;
  box-shadow: 0 1px 2px #1018280d;
}
html[data-ui="operations"] .pos-touch-categories button.active,
html[data-ui="operations"] .pos-payment-methods button.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}
html[data-ui="operations"] .pos-touch-product {
  border-color: var(--border);
  box-shadow: 0 1px 2px #1018280d;
}
html[data-ui="operations"] .pos-touch-product:hover {
  border-color: #a5b4fc;
  box-shadow: 0 8px 20px #4f46e514;
}

/* Dialogs and states */
html[data-ui="operations"] .modal-backdrop { background: #10182899; backdrop-filter: blur(3px); }
html[data-ui="operations"] .modal {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 90px #10182842;
}
html[data-ui="operations"] .toast {
  border: 1px solid #344054;
  border-radius: 12px;
  background: #172033;
  color: #fff;
  box-shadow: 0 16px 40px #10182842;
}

/* Login uses the same identity but stays fast on warehouse phones. */
html[data-ui="operations"] .login-page { background: var(--canvas); }
html[data-ui="operations"] .login-visual {
  background:
    radial-gradient(circle at 18% 18%, #818cf855 0, transparent 18rem),
    linear-gradient(145deg, #172033 0%, #29324a 58%, #3730a3 100%);
}
html[data-ui="operations"] .login-visual p { color: #d0d5dd; }
html[data-ui="operations"] .login-feature { border-color: #ffffff24; background: #ffffff0c; }
html[data-ui="operations"] .login-form-wrap { background: #fff; }
html[data-ui="operations"] .login-card-eyebrow { color: var(--primary); }
html[data-ui="operations"] .login-card h2 { color: var(--text); letter-spacing: -.03em; }

/* Tablet */
@media (max-width: 1050px) and (min-width: 721px) {
  html[data-ui="operations"] .shell { grid-template-columns: 82px minmax(0,1fr); }
  html[data-ui="operations"] .sidebar { width: 82px; padding-inline: 10px; }
  html[data-ui="operations"] .content { padding-inline: 20px; }
}

/* Phone */
@media (max-width: 720px) {
  html[data-ui="operations"] body:not(:has(.public-catalog)) { font-size: 15px; }
  html[data-ui="operations"] .shell { display: block; }
  html[data-ui="operations"] .sidebar {
    width: min(86vw, 328px);
    padding: 18px 14px max(18px, env(safe-area-inset-bottom));
  }
  html[data-ui="operations"] .topbar {
    min-height: 108px;
    padding: max(8px, env(safe-area-inset-top)) 10px 8px;
    border-bottom-color: var(--border);
  }
  html[data-ui="operations"] .mobile-menu-button,
  html[data-ui="operations"] .account-trigger {
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
  }
  html[data-ui="operations"] .content {
    width: 100%;
    padding: 12px 10px max(30px, env(safe-area-inset-bottom));
  }
  html[data-ui="operations"] .panel { padding: 14px; border-radius: 14px; }
  html[data-ui="operations"] .stats { gap: 9px; }
  html[data-ui="operations"] :where(.btn, button.btn, input, select, textarea) { min-height: 44px; }
  html[data-ui="operations"] .modal {
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 52px #1018282b;
  }
  html[data-ui="operations"] .mobile-home-welcome {
    border: 1px solid #d9d6fe;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff, #f5f3ff);
  }
  html[data-ui="operations"] .mobile-action-card { min-height: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-ui="operations"] *,
  html[data-ui="operations"] *::before,
  html[data-ui="operations"] *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* POS Touch Console v2
   Stable desktop grid: the shell, tender controls and checkout stay fixed;
   only the product gallery and cart line list scroll. */
@media (min-width: 1201px) {
  html[data-ui="operations"] body:has(.pos-register-page) {
    min-width: 1180px;
    height: 100dvh;
    overflow: hidden;
    background: var(--canvas);
  }
  html[data-ui="operations"] body:has(.pos-register-page) .shell {
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) !important;
    width: 100vw !important;
    height: 100dvh !important;
    overflow: hidden !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .sidebar {
    position: relative !important;
    inset: auto !important;
    width: 220px !important;
    height: 100dvh !important;
    padding: 14px 12px 12px !important;
    overflow: hidden !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .main {
    display: grid !important;
    grid-template-rows: 64px minmax(0, 1fr) !important;
    width: auto !important;
    min-width: 0 !important;
    height: 100dvh !important;
    overflow: hidden !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .topbar {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: minmax(210px, .7fr) minmax(580px, 1.3fr) !important;
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 14px 0 18px !important;
    border-bottom: 1px solid var(--border) !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .topbar-title {
    padding: 0 !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .topbar-title h1 {
    font-size: 20px !important;
    line-height: 1.15 !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .topbar-title p {
    margin-top: 3px !important;
    font-size: 11px !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .top-actions {
    justify-content: flex-end !important;
    gap: 7px !important;
    overflow: visible !important;
    padding: 0 !important;
    transform: none !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .top-actions > .btn,
  html[data-ui="operations"] body:has(.pos-register-page) .top-actions .account-trigger {
    min-height: 40px !important;
    padding: 6px 10px !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .top-actions .workspace-switcher {
    min-width: 158px !important;
    max-width: 188px !important;
  }

  html[data-ui="operations"] .pos-register-page {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: calc(100dvh - 64px) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 10px 12px 12px !important;
    overflow: hidden !important;
  }
  html[data-ui="operations"] .pos-register-layout {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(398px, 430px) !important;
    gap: 12px !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  html[data-ui="operations"] .pos-register-main {
    position: relative !important;
    display: flex !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    flex-direction: column !important;
    gap: 0 !important;
    overflow: hidden !important;
  }
  html[data-ui="operations"] .pos-register-main > .pos-quick-bar { display: none !important; }

  html[data-ui="operations"] .pos-touch-catalog {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    order: initial !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 24px #1018280b !important;
  }
  html[data-ui="operations"] .pos-touch-product-head {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 122px minmax(0, 1fr) auto !important;
    order: 1 !important;
    gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 66px !important;
    padding: 9px 12px !important;
    border-bottom: 1px solid var(--border) !important;
    background: #fff !important;
  }
  html[data-ui="operations"] .pos-touch-product-head > div:first-child {
    min-width: 0 !important;
    padding: 0 !important;
  }
  html[data-ui="operations"] .pos-touch-product-head > div:first-child strong {
    display: block !important;
    color: var(--text) !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
  html[data-ui="operations"] .pos-touch-product-head > div:first-child span {
    display: block !important;
    margin-top: 4px !important;
    overflow: hidden !important;
    color: var(--muted) !important;
    font-size: 10px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  html[data-ui="operations"] .pos-touch-product-head > b {
    position: static !important;
    justify-self: end !important;
    padding: 5px 9px !important;
    border-radius: 999px !important;
    background: #ecfdf3 !important;
    color: #027a48 !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }
  html[data-ui="operations"] .pos-catalog-scan {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 104px minmax(190px, 330px) 108px !important;
    justify-content: start !important;
    gap: 7px !important;
    width: min(100%, 570px) !important;
    min-height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html[data-ui="operations"] .pos-catalog-scan .scan-icon,
  html[data-ui="operations"] .pos-catalog-scan .camera-scan-button { display: none !important; }
  html[data-ui="operations"] .pos-catalog-scan > div:nth-child(2) {
    display: grid !important;
    align-content: center !important;
  }
  html[data-ui="operations"] .pos-catalog-scan label {
    color: #344054 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }
  html[data-ui="operations"] .pos-catalog-scan > div:nth-child(2) span { display: none !important; }
  html[data-ui="operations"] .pos-catalog-scan input {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 8px 12px !important;
    border: 1px solid #bfc7d4 !important;
    border-radius: 10px !important;
    background: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
  }
  html[data-ui="operations"] .pos-catalog-scan input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px #4f46e520 !important;
  }
  html[data-ui="operations"] .pos-catalog-scan .btn {
    min-height: 44px !important;
    padding: 7px 10px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }
  html[data-ui="operations"] .pos-touch-categories {
    display: flex !important;
    order: 2 !important;
    min-height: 64px !important;
    gap: 7px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 7px 10px !important;
    border-bottom: 1px solid var(--border) !important;
    background: #f9fafb !important;
    scrollbar-width: thin;
  }
  html[data-ui="operations"] .pos-touch-categories button {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    min-width: 112px !important;
    min-height: 50px !important;
    flex: 0 0 auto !important;
    gap: 0 7px !important;
    padding: 5px 8px !important;
    border: 1px solid var(--border) !important;
    border-radius: 11px !important;
    box-shadow: none !important;
  }
  html[data-ui="operations"] .pos-touch-categories button i {
    grid-row: 1 / 3 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
    font-size: 14px !important;
  }
  html[data-ui="operations"] .pos-touch-categories button span {
    max-width: 86px !important;
    overflow: hidden !important;
    font-size: 12px !important;
    text-overflow: ellipsis !important;
  }
  html[data-ui="operations"] .pos-touch-categories button.active {
    border-color: var(--primary) !important;
    background: var(--primary-soft) !important;
    color: var(--primary-dark) !important;
  }
  html[data-ui="operations"] .pos-touch-products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(142px, 1fr)) !important;
    order: 3 !important;
    gap: 10px !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding: 11px !important;
    scrollbar-gutter: stable !important;
  }
  html[data-ui="operations"] .pos-touch-product {
    min-height: 226px !important;
    max-height: 250px !important;
    gap: 5px !important;
    padding: 8px !important;
    border: 1px solid var(--border) !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px #1018280a !important;
  }
  html[data-ui="operations"] .pos-touch-product:hover,
  html[data-ui="operations"] .pos-touch-product:focus-visible {
    border-color: #818cf8 !important;
    outline: 3px solid #4f46e51f !important;
    transform: none !important;
  }
  html[data-ui="operations"] .pos-touch-product.in-cart {
    border-color: var(--success) !important;
    box-shadow: 0 0 0 2px #0596691f !important;
  }
  html[data-ui="operations"] .pos-touch-product-image {
    width: 100% !important;
    height: 120px !important;
    border-radius: 10px !important;
    background: #f7f8fa !important;
  }
  html[data-ui="operations"] .pos-touch-product-image img { object-fit: contain !important; }
  html[data-ui="operations"] .pos-touch-product-name {
    min-height: 35px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
  }
  html[data-ui="operations"] .pos-touch-product > small { font-size: 10px !important; }
  html[data-ui="operations"] .pos-touch-product > strong {
    color: #b54708 !important;
    font-size: 20px !important;
  }
  html[data-ui="operations"] .pos-touch-product > em { font-size: 10px !important; }

  html[data-ui="operations"] .pos-payment-panel {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 0 !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 24px #1018280b !important;
    pointer-events: auto !important;
  }
  html[data-ui="operations"] .pos-payment-head {
    position: relative !important;
    inset: auto !important;
    z-index: 2 !important;
    display: grid !important;
    grid-template-columns: 82px minmax(150px, 1fr) 110px !important;
    grid-template-rows: 44px !important;
    gap: 7px 10px !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    align-content: center !important;
    overflow: visible !important;
    padding: 9px 11px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  html[data-ui="operations"] .pos-payment-head > div:first-child { display: block !important; }
  html[data-ui="operations"] .pos-payment-head > div:first-child {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  html[data-ui="operations"] .pos-payment-head > div:first-child span {
    color: var(--muted) !important;
    font-size: 10px !important;
  }
  html[data-ui="operations"] .pos-payment-head > div:first-child strong {
    margin-top: 2px !important;
    color: var(--text) !important;
    font-size: 16px !important;
  }
  html[data-ui="operations"] .pos-payment-head .btn {
    grid-column: 3 !important;
    grid-row: 1 !important;
    min-height: 40px !important;
    padding: 7px 11px !important;
    border-color: #c7d2fe !important;
    color: var(--primary-dark) !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }
  html[data-ui="operations"] .pos-tax-id-field {
    display: grid !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    grid-template-columns: 76px minmax(110px, 1fr) !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 2px 5px !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    background: #f9fafb !important;
  }
  html[data-ui="operations"] .pos-tax-id-field label {
    margin: 0 !important;
    overflow: hidden !important;
    font-size: 9px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  html[data-ui="operations"] .pos-tax-id-field input {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 5px 9px !important;
    font-size: 14px !important;
    letter-spacing: .08em !important;
  }
  html[data-ui="operations"] .pos-tax-id-field small {
    display: none !important;
    max-width: none !important;
    overflow: hidden !important;
    font-size: 9px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  html[data-ui="operations"] .pos-touch-cart {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 140px !important;
    max-height: none !important;
    flex: 1 1 210px !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 0 !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  html[data-ui="operations"] .pos-touch-cart .pos-sale-head {
    height: auto !important;
    min-height: 50px !important;
    flex: 0 0 auto !important;
    padding: 7px 10px !important;
    background: #f9fafb !important;
  }
  html[data-ui="operations"] .pos-touch-cart .pos-sale-head h2 {
    font-size: 14px !important;
    line-height: 1.2 !important;
  }
  html[data-ui="operations"] .pos-touch-cart .pos-sale-head > div > span { display: none !important; }
  html[data-ui="operations"] .pos-cart-page-note {
    margin-top: 3px !important;
    color: var(--muted) !important;
    font-size: 9px !important;
  }
  html[data-ui="operations"] .pos-cart-pager {
    grid-template-columns: 34px auto 34px !important;
    gap: 4px !important;
    margin-left: auto !important;
  }
  html[data-ui="operations"] .pos-cart-pager button {
    width: 34px !important;
    height: 36px !important;
    border-color: var(--border) !important;
    border-radius: 9px !important;
  }
  html[data-ui="operations"] .pos-touch-cart .pos-sale-head > .btn {
    width: auto !important;
    min-height: 36px !important;
    padding: 6px 8px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
  }
  html[data-ui="operations"] .pos-touch-cart > .table-wrap {
    height: auto !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    padding: 0 8px 6px !important;
    scrollbar-gutter: stable !important;
  }
  html[data-ui="operations"] .pos-touch-cart table,
  html[data-ui="operations"] .pos-touch-cart tbody {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  html[data-ui="operations"] .pos-touch-cart thead { display: none !important; }
  html[data-ui="operations"] .pos-touch-cart tbody tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    grid-template-areas: "product product total" "price qty remove" "expiry expiry expiry" !important;
    gap: 6px 8px !important;
    margin: 7px 0 !important;
    padding: 8px !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    background: #fff !important;
  }
  html[data-ui="operations"] .pos-touch-cart tbody td {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
  }
  html[data-ui="operations"] .pos-touch-cart tbody td:nth-child(1),
  html[data-ui="operations"] .pos-touch-cart tbody td:nth-child(2) { display: none !important; }
  html[data-ui="operations"] .pos-touch-cart tbody td:nth-child(3) { grid-area: product !important; }
  html[data-ui="operations"] .pos-touch-cart tbody td:nth-child(4) { grid-area: price !important; align-self: center !important; }
  html[data-ui="operations"] .pos-touch-cart tbody td:nth-child(5) { grid-area: qty !important; }
  html[data-ui="operations"] .pos-touch-cart tbody td:nth-child(6) { grid-area: expiry !important; }
  html[data-ui="operations"] .pos-touch-cart tbody td:nth-child(6):has(.pos-normal) { display: none !important; }
  html[data-ui="operations"] .pos-touch-cart tbody td:nth-child(7) { grid-area: total !important; align-self: center !important; text-align: right !important; }
  html[data-ui="operations"] .pos-touch-cart tbody td:nth-child(8) { grid-area: remove !important; justify-self: end !important; }
  html[data-ui="operations"] .pos-touch-cart .pos-line-product { min-width: 0 !important; gap: 8px !important; }
  html[data-ui="operations"] .pos-touch-cart .pos-line-product > img,
  html[data-ui="operations"] .pos-touch-cart .pos-line-product > span {
    width: 50px !important;
    height: 50px !important;
    object-fit: contain !important;
  }
  html[data-ui="operations"] .pos-touch-cart .pos-line-product > div { min-width: 0 !important; }
  html[data-ui="operations"] .pos-touch-cart .pos-line-product > div > strong {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
  }
  html[data-ui="operations"] .pos-touch-cart .pos-line-product small {
    overflow: hidden !important;
    max-width: 220px !important;
    font-size: 9px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  html[data-ui="operations"] .pos-touch-cart .pos-line-price {
    min-width: 96px !important;
    padding: 2px 5px !important;
  }
  html[data-ui="operations"] .pos-touch-cart .pos-line-price input {
    width: 62px !important;
    min-height: 30px !important;
  }
  html[data-ui="operations"] .pos-touch-cart .pos-line-qty {
    grid-template-columns: 40px 48px 40px !important;
    gap: 4px !important;
  }
  html[data-ui="operations"] .pos-touch-cart .pos-line-qty button,
  html[data-ui="operations"] .pos-touch-cart .pos-line-qty input {
    height: 40px !important;
    min-height: 40px !important;
  }
  html[data-ui="operations"] .pos-touch-cart [data-remove-cart] {
    min-height: 40px !important;
    padding: 5px 9px !important;
    font-size: 10px !important;
  }
  html[data-ui="operations"] .pos-touch-cart .pos-empty-sale {
    display: grid !important;
    height: 150px !important;
    place-content: center !important;
    gap: 6px !important;
    color: var(--muted) !important;
    text-align: center !important;
  }
  html[data-ui="operations"] .pos-touch-cart .pos-empty-sale strong {
    color: var(--text) !important;
    font-size: 15px !important;
  }

  html[data-ui="operations"] .pos-payment-totals {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2px 16px !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
    padding: 7px 11px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: 0 !important;
    background: #fff !important;
  }
  html[data-ui="operations"] .pos-payment-totals > div {
    display: flex !important;
    margin: 0 !important;
    color: var(--muted) !important;
    font-size: 10px !important;
  }
  html[data-ui="operations"] .pos-payment-totals .grand {
    grid-column: 1 / -1 !important;
    margin-top: 3px !important;
    padding-top: 5px !important;
    border-top: 1px dashed #d0d5dd !important;
    color: var(--text) !important;
  }
  html[data-ui="operations"] .pos-payment-totals .grand span { font-size: 13px !important; font-weight: 800 !important; }
  html[data-ui="operations"] .pos-payment-totals .grand strong {
    color: var(--primary) !important;
    font-size: 24px !important;
    line-height: 1 !important;
  }
  html[data-ui="operations"] .pos-custom-discount {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    gap: 5px !important;
    overflow: visible !important;
    margin: 5px 9px !important;
    padding: 7px 8px !important;
    border: 1px solid #c7d2fe !important;
    border-radius: 10px !important;
    background: #f8f7ff !important;
  }
  html[data-ui="operations"] .pos-custom-discount > strong { font-size: 11px !important; }
  html[data-ui="operations"] .pos-custom-discount > div {
    display: grid !important;
    grid-template-columns: minmax(120px, 1fr) 84px 52px !important;
    gap: 5px !important;
  }
  html[data-ui="operations"] .pos-custom-discount select,
  html[data-ui="operations"] .pos-custom-discount input {
    display: block !important;
    min-height: 32px !important;
    padding: 4px 6px !important;
    font-size: 10px !important;
  }
  html[data-ui="operations"] .pos-custom-discount .btn {
    min-height: 32px !important;
    padding: 4px 6px !important;
    font-size: 10px !important;
  }
  html[data-ui="operations"] .pos-custom-discount .pos-discount-reason {
    grid-template-columns: minmax(130px, .8fr) minmax(0, 1.2fr) !important;
    margin: 0 !important;
  }
  html[data-ui="operations"] .pos-custom-discount small { display: none !important; }
  html[data-ui="operations"] .pos-payment-panel > .expiry-warning {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 3px 9px !important;
    padding: 7px 8px !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
  }
  html[data-ui="operations"] .pos-payment-methods {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 5px !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 6px 9px !important;
    border: 0 !important;
    border-top: 1px solid var(--border) !important;
    border-radius: 0 !important;
    background: #fff !important;
  }
  html[data-ui="operations"] .pos-payment-methods > span {
    grid-column: 1 / -1 !important;
    margin: 0 !important;
    color: var(--text) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
  }
  html[data-ui="operations"] .pos-payment-methods .chip {
    min-width: 0 !important;
    min-height: 40px !important;
    flex-basis: auto !important;
    padding: 5px 2px !important;
    border: 1px solid var(--border) !important;
    border-radius: 9px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    white-space: normal !important;
  }
  html[data-ui="operations"] .pos-payment-methods .chip.active {
    border-color: var(--primary) !important;
    background: var(--primary) !important;
    color: #fff !important;
  }
  html[data-ui="operations"] .pos-payment-methods .chip:disabled {
    opacity: .42 !important;
    cursor: not-allowed !important;
  }
  html[data-ui="operations"] .pos-payment-details,
  html[data-ui="operations"] .pos-payment-details.two {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: auto !important;
    flex: 0 0 auto !important;
    gap: 6px !important;
    margin: 3px 9px !important;
    padding: 7px 8px !important;
  }
  html[data-ui="operations"] .pos-payment-details input,
  html[data-ui="operations"] .pos-payment-details select {
    min-height: 36px !important;
    padding: 5px 7px !important;
    font-size: 12px !important;
  }
  html[data-ui="operations"] .cash-calculator {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 164px !important;
    grid-template-areas: "amount keypad" "quick keypad" "change keypad" !important;
    gap: 5px 8px !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
    margin: 3px 9px !important;
    padding: 7px 8px !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 10px !important;
    background: #f8fbff !important;
  }
  html[data-ui="operations"] .cash-calculator label {
    grid-area: amount !important;
    display: grid !important;
    grid-template-columns: 62px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 10px !important;
  }
  html[data-ui="operations"] .cash-calculator input {
    height: 36px !important;
    min-height: 36px !important;
    padding: 5px 8px !important;
    font-size: 15px !important;
  }
  html[data-ui="operations"] .cash-quick {
    grid-area: quick !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
    margin: 0 !important;
  }
  html[data-ui="operations"] .cash-quick button {
    min-height: 40px !important;
    padding: 3px !important;
    font-size: 10px !important;
  }
  html[data-ui="operations"] .cash-touch-keypad {
    grid-area: keypad !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
    margin: 0 !important;
  }
  html[data-ui="operations"] .cash-touch-keypad button {
    min-height: 40px !important;
    padding: 2px !important;
    border-radius: 7px !important;
    font-size: 13px !important;
  }
  html[data-ui="operations"] .change-display {
    grid-area: change !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 31px !important;
    padding: 4px 7px !important;
    font-size: 10px !important;
  }
  html[data-ui="operations"] .change-display strong { font-size: 16px !important; }
  html[data-ui="operations"] .pos-payment-panel .checkout {
    position: relative !important;
    inset: auto !important;
    z-index: 2 !important;
    display: flex !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 56px !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 5px 9px 8px !important;
    padding: 8px 14px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: var(--primary) !important;
    font-size: 14px !important;
    box-shadow: 0 7px 16px #4f46e529 !important;
  }
  html[data-ui="operations"] .pos-payment-panel .checkout strong {
    display: block !important;
    font-size: 22px !important;
  }
  html[data-ui="operations"] .pos-payment-panel .checkout:disabled {
    background: #d0d5dd !important;
    color: #667085 !important;
    box-shadow: none !important;
  }
  html[data-ui="operations"] .pos-key-hint,
  html[data-ui="operations"] .pos-expiry-tasks { display: none !important; }

  html[data-ui="operations"] body:has(.pos-register-page) .sidebar > .pos-quick-bar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    align-items: stretch !important;
    align-content: stretch !important;
    gap: 8px !important;
    overflow: hidden !important;
    margin: 8px 1px !important;
    padding: 9px !important;
    border: 1px solid #ffffff24 !important;
    border-radius: 12px !important;
    background: #ffffff0b !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .sidebar .pos-quick-title {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .sidebar .pos-quick-title strong { color: #fff !important; font-size: 13px !important; }
  html[data-ui="operations"] body:has(.pos-register-page) .sidebar .pos-quick-title span { color: #c7d2fe !important; font-size: 9px !important; }
  html[data-ui="operations"] body:has(.pos-register-page) .sidebar .pos-quick-title .btn {
    min-height: 32px !important;
    padding: 5px 7px !important;
    border-color: #ffffff30 !important;
    background: #ffffff12 !important;
    color: #fff !important;
    font-size: 9px !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .sidebar .pos-shortcut-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    min-height: 0 !important;
    align-self: stretch !important;
    overflow-y: auto !important;
    margin: 0 !important;
    transform: none !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .sidebar .pos-shortcut-button {
    display: flex !important;
    min-height: 58px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 5px !important;
    border: 1px solid #ffffff1f !important;
    border-radius: 10px !important;
    background: #fff !important;
    text-align: center !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .sidebar .pos-shortcut-button i {
    width: 27px !important;
    height: 27px !important;
    font-size: 13px !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .sidebar .pos-shortcut-button strong {
    overflow: hidden !important;
    width: 100% !important;
    font-size: 10px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .sidebar .pos-shortcut-button small { display: none !important; }
}

/* Slightly narrower desktop: keep the same task order and use three product columns. */
@media (min-width: 1201px) and (max-width: 1320px) {
  html[data-ui="operations"] body:has(.pos-register-page) .shell { grid-template-columns: 198px minmax(0, 1fr) !important; }
  html[data-ui="operations"] body:has(.pos-register-page) .sidebar { width: 198px !important; }
  html[data-ui="operations"] .pos-register-layout { grid-template-columns: minmax(0, 1fr) 398px !important; }
  html[data-ui="operations"] .pos-touch-products { grid-template-columns: repeat(3, minmax(145px, 1fr)) !important; }
  html[data-ui="operations"] .pos-touch-product-head { grid-template-columns: 112px minmax(0, 1fr) !important; }
  html[data-ui="operations"] .pos-touch-product-head > b { display: none !important; }
  html[data-ui="operations"] .pos-catalog-scan { grid-template-columns: 94px minmax(180px, 1fr) 98px !important; }
}

/* POS Classic Counter v4
   Traditional touch-POS refinement: three product keys per row, wider receipt,
   and one fixed row of shortcuts that never clips outside its frame. */
@media (min-width: 1201px) {
  html[data-ui="operations"] .pos-register-layout {
    grid-template-columns: minmax(0, 1fr) clamp(500px, 34vw, 560px) !important;
  }
  html[data-ui="operations"] .pos-register-main {
    grid-template-rows: minmax(0, 1fr) 118px !important;
  }
  html[data-ui="operations"] .pos-touch-products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: 104px !important;
    gap: 4px !important;
  }
  html[data-ui="operations"] .pos-touch-product {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    grid-template-rows: minmax(34px, auto) 20px 23px !important;
    min-height: 104px !important;
    max-height: 104px !important;
    padding: 7px 9px !important;
  }
  html[data-ui="operations"] .pos-touch-product-image {
    width: 58px !important;
    height: 58px !important;
  }
  html[data-ui="operations"] .pos-touch-product-name {
    font-size: 15px !important;
    line-height: 1.22 !important;
  }
  html[data-ui="operations"] .pos-touch-product > strong { font-size: 18px !important; }

  html[data-ui="operations"] .pos-classic-shortcuts {
    grid-template-columns: 168px minmax(0, 1fr) !important;
    min-height: 118px !important;
    max-height: 118px !important;
    overflow: hidden !important;
  }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-quick-title {
    min-height: 108px !important;
    padding: 8px 10px !important;
  }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-shortcut-grid {
    grid-template-columns: repeat(7, minmax(76px, 1fr)) !important;
    grid-template-rows: 108px !important;
    grid-auto-rows: 108px !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-shortcut-button {
    grid-template-columns: 1fr !important;
    grid-template-rows: 34px auto auto !important;
    min-width: 76px !important;
    min-height: 108px !important;
    max-height: 108px !important;
    justify-items: center !important;
    align-content: center !important;
    gap: 3px !important;
    padding: 6px 4px !important;
    text-align: center !important;
  }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-shortcut-button i {
    grid-row: 1 !important;
    width: 32px !important;
    height: 32px !important;
  }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-shortcut-button strong {
    grid-row: 2 !important;
    font-size: 12px !important;
  }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-shortcut-button small {
    grid-row: 3 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 1201px) and (max-width: 1320px) {
  html[data-ui="operations"] .pos-register-layout {
    grid-template-columns: minmax(0, 1fr) 480px !important;
  }
}

/* POS accessibility pass: large type, complete product photos, one-entry member flow. */
html[data-ui="operations"] .pos-quick-member-form[hidden] { display: none !important; }
html[data-ui="operations"] .pos-member-finder {
  width: min(680px, 94vw) !important;
  padding: 24px !important;
  border-radius: 20px !important;
}
html[data-ui="operations"] .pos-member-finder .panel-title h2 { font-size: 26px !important; }
html[data-ui="operations"] .pos-member-finder .panel-title span,
html[data-ui="operations"] .pos-member-finder label { font-size: 17px !important; line-height: 1.5 !important; }
html[data-ui="operations"] .pos-member-search-row { grid-template-columns: minmax(0, 1fr) 150px !important; gap: 12px !important; }
html[data-ui="operations"] .pos-member-search-row input,
html[data-ui="operations"] .pos-member-search-row .btn,
html[data-ui="operations"] .pos-quick-member-action input,
html[data-ui="operations"] .pos-quick-member-action .btn {
  min-height: 58px !important;
  height: 58px !important;
  border-radius: 13px !important;
  font-size: 18px !important;
}
html[data-ui="operations"] .pos-member-start-hint {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475467;
  font-size: 16px;
}
html[data-ui="operations"] .pos-member-result-title { margin: 16px 0 8px; color: #344054; font-size: 17px; font-weight: 900; }
html[data-ui="operations"] .pos-member-result {
  min-height: 72px !important;
  align-items: center !important;
  padding: 14px 16px !important;
  font-size: 17px !important;
}
html[data-ui="operations"] .pos-member-result strong { font-size: 20px !important; }
html[data-ui="operations"] .pos-member-result small { font-size: 15px !important; }
html[data-ui="operations"] .pos-member-result > b { color: var(--primary); font-size: 16px; }
html[data-ui="operations"] .pos-member-not-found {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 16px !important;
  border: 1px solid #f5c26b;
  border-radius: 13px;
  background: #fffaeb;
  color: #7a2e0e !important;
  text-align: left !important;
}
html[data-ui="operations"] .pos-member-not-found strong { font-size: 19px; }
html[data-ui="operations"] .pos-member-not-found span { font-size: 16px; }
html[data-ui="operations"] .pos-member-not-found.invalid { border-color: #fda29b; background: #fef3f2; color: #b42318 !important; }
html[data-ui="operations"] .pos-quick-member-form {
  gap: 12px !important;
  margin: 12px 0 !important;
  padding: 18px !important;
  border: 2px solid #86b7ea;
  background: #eff8ff !important;
}
html[data-ui="operations"] .pos-quick-member-title { display: grid; gap: 2px; }
html[data-ui="operations"] .pos-quick-member-title span { color: #475467; font-size: 15px; }
html[data-ui="operations"] .pos-quick-member-title strong { color: #175cd3; font-size: 22px; }
html[data-ui="operations"] .pos-member-phone-confirm {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
}
html[data-ui="operations"] .pos-member-phone-confirm span { color: #667085; font-size: 14px; }
html[data-ui="operations"] .pos-member-phone-confirm b { font-size: 20px; }
html[data-ui="operations"] .pos-member-phone-confirm i { grid-column: 2; color: #027a48; font-size: 14px; font-style: normal; }
html[data-ui="operations"] .pos-quick-member-action { display: grid !important; grid-template-columns: minmax(0, 1fr) 210px !important; gap: 10px; }
html[data-ui="operations"] .pos-no-member { min-height: 48px !important; width: 100%; font-size: 16px !important; }

@media (min-width: 1201px) {
  html[data-ui="operations"] .pos-touch-categories button span { font-size: 14px !important; }
  html[data-ui="operations"] .pos-touch-categories button small { font-size: 12px !important; }
  html[data-ui="operations"] .pos-touch-product {
    min-height: 250px !important;
    max-height: 278px !important;
    gap: 6px !important;
    padding: 9px !important;
  }
  html[data-ui="operations"] .pos-touch-product-image {
    height: 132px !important;
    overflow: hidden !important;
    background: #fff !important;
  }
  html[data-ui="operations"] .pos-touch-product-image img,
  html[data-ui="operations"] .pos-line-product > img {
    width: 100% !important;
    height: 100% !important;
    padding: 3px !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #fff !important;
  }
  html[data-ui="operations"] .pos-touch-product-name { min-height: 42px !important; font-size: 15px !important; line-height: 1.4 !important; }
  html[data-ui="operations"] .pos-touch-product > small { font-size: 12px !important; line-height: 1.35 !important; }
  html[data-ui="operations"] .pos-touch-product > strong { font-size: 22px !important; }
  html[data-ui="operations"] .pos-touch-product > em { font-size: 12px !important; }
  html[data-ui="operations"] .pos-payment-panel :where(button,input,select) { font-size: 14px !important; }
  html[data-ui="operations"] .pos-payment-head strong,
  html[data-ui="operations"] .pos-sale-head h2 { font-size: 18px !important; }
  html[data-ui="operations"] .pos-cart-item-name,
  html[data-ui="operations"] .pos-line-product strong { font-size: 14px !important; line-height: 1.4 !important; }
  html[data-ui="operations"] .checkout span { font-size: 17px !important; }
  html[data-ui="operations"] .checkout strong { font-size: 23px !important; }
}

@media (max-width: 700px) {
  html[data-ui="operations"] .pos-member-finder { padding: 18px !important; }
  html[data-ui="operations"] .pos-member-search-row,
  html[data-ui="operations"] .pos-quick-member-action { grid-template-columns: 1fr !important; }
  html[data-ui="operations"] .pos-member-start-hint { align-items: flex-start; flex-direction: column; }
}

/* POS Classic Counter v3
   Reference direction: narrow icon rail, dense product keys, fixed receipt and
   a bottom shortcut deck. Business events and API calls remain unchanged. */
@media (min-width: 1201px) {
  html[data-ui="operations"] body:has(.pos-register-page) {
    --pos-navy: #082b4c;
    --pos-navy-2: #0d3c66;
    --pos-cyan: #16a6a1;
    --pos-orange: #f97316;
    --pos-red: #e54b4b;
    --pos-line: #cbd5df;
    background: #dbe2e8 !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .shell {
    grid-template-columns: 88px minmax(0, 1fr) !important;
    grid-template-rows: 50px minmax(0, 1fr) !important;
    background: #dbe2e8 !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .sidebar {
    grid-row: 1 / -1 !important;
    width: 88px !important;
    padding: 7px 6px !important;
    border-radius: 0 !important;
    background: var(--pos-navy) !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .brand {
    justify-content: center !important;
    min-height: 54px !important;
    padding: 0 !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .brand-copy,
  html[data-ui="operations"] body:has(.pos-register-page) .workspace-card,
  html[data-ui="operations"] body:has(.pos-register-page) .sidebar-section-title,
  html[data-ui="operations"] body:has(.pos-register-page) .sidebar-foot { display: none !important; }
  html[data-ui="operations"] body:has(.pos-register-page) .brand-mark {
    width: 46px !important;
    height: 46px !important;
    border-radius: 8px !important;
    font-size: 17px !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .sidebar nav {
    display: grid !important;
    gap: 4px !important;
    margin-top: 8px !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .sidebar nav a,
  html[data-ui="operations"] body:has(.pos-register-page) .sidebar nav button {
    display: grid !important;
    min-width: 0 !important;
    min-height: 64px !important;
    place-items: center !important;
    gap: 3px !important;
    padding: 6px 2px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .sidebar nav a > :first-child,
  html[data-ui="operations"] body:has(.pos-register-page) .sidebar nav button > :first-child { font-size: 20px !important; }
  html[data-ui="operations"] body:has(.pos-register-page) .sidebar nav .active {
    background: var(--pos-cyan) !important;
    box-shadow: inset 4px 0 #fff !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .topbar {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-height: 50px !important;
    height: 50px !important;
    padding: 4px 10px 4px 14px !important;
    border-bottom: 2px solid var(--pos-navy) !important;
    background: #fff !important;
  }
  html[data-ui="operations"] body:has(.pos-register-page) .topbar-title h1 { font-size: 18px !important; }
  html[data-ui="operations"] body:has(.pos-register-page) .topbar-title p { font-size: 10px !important; }
  html[data-ui="operations"] body:has(.pos-register-page) .top-actions > .btn { min-height: 34px !important; }
  html[data-ui="operations"] body:has(.pos-register-page) .main {
    display: grid !important;
    grid-column: 2 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 50px minmax(0, 1fr) !important;
    min-width: 0 !important;
  }
  html[data-ui="operations"] .pos-register-page {
    grid-column: 1 !important;
    grid-row: 2 !important;
    height: calc(100dvh - 50px) !important;
    padding: 5px !important;
    background: #dbe2e8 !important;
  }
  html[data-ui="operations"] .pos-register-layout {
    grid-template-columns: minmax(0, 1fr) clamp(390px, 31vw, 470px) !important;
    gap: 5px !important;
  }
  html[data-ui="operations"] .pos-register-main {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) 154px !important;
    gap: 5px !important;
  }
  html[data-ui="operations"] .pos-register-main > .pos-quick-bar {
    display: grid !important;
    grid-row: 2 !important;
  }
  html[data-ui="operations"] .pos-touch-catalog {
    grid-row: 1 !important;
    border: 1px solid #9eabb7 !important;
    border-radius: 3px !important;
    box-shadow: none !important;
  }
  html[data-ui="operations"] .pos-touch-product-head {
    grid-template-columns: 120px minmax(260px, 540px) auto !important;
    min-height: 54px !important;
    padding: 5px 8px !important;
    border-bottom: 1px solid #9eabb7 !important;
    background: #f4f7f9 !important;
  }
  html[data-ui="operations"] .pos-touch-product-head > div:first-child strong { font-size: 17px !important; }
  html[data-ui="operations"] .pos-touch-product-head > div:first-child span { display: none !important; }
  html[data-ui="operations"] .pos-touch-product-head > b {
    display: block !important;
    justify-self: end !important;
    padding: 6px 10px !important;
    border-radius: 3px !important;
    background: #e7f7ef !important;
    color: #087443 !important;
    font-size: 13px !important;
  }
  html[data-ui="operations"] .pos-catalog-scan {
    grid-template-columns: minmax(0, 1fr) 106px !important;
    grid-template-rows: 42px !important;
    gap: 5px !important;
  }
  html[data-ui="operations"] .pos-touch-product-head .pos-catalog-scan > .scan-icon,
  html[data-ui="operations"] .pos-touch-product-head .pos-catalog-scan > div:nth-child(2),
  html[data-ui="operations"] .pos-touch-product-head .pos-catalog-scan > .camera-scan-button { display: none !important; }
  html[data-ui="operations"] .pos-catalog-scan input,
  html[data-ui="operations"] .pos-catalog-scan .btn {
    min-height: 42px !important;
    height: 42px !important;
    border-radius: 3px !important;
    font-size: 15px !important;
  }
  html[data-ui="operations"] .pos-catalog-scan input { grid-column: 1 !important; grid-row: 1 !important; width: 100% !important; }
  html[data-ui="operations"] .pos-catalog-scan button[type="submit"] { grid-column: 2 !important; grid-row: 1 !important; width: 106px !important; }
  html[data-ui="operations"] .pos-catalog-scan .btn { background: var(--pos-navy-2) !important; }
  html[data-ui="operations"] .pos-touch-categories {
    order: 1 !important;
    min-height: 48px !important;
    gap: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #9eabb7 !important;
    background: #fff !important;
  }
  html[data-ui="operations"] .pos-touch-categories button {
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr !important;
    min-width: 118px !important;
    min-height: 47px !important;
    gap: 0 !important;
    padding: 5px 8px !important;
    border: 0 !important;
    border-right: 1px solid #d4dbe2 !important;
    border-radius: 0 !important;
    color: #344054 !important;
  }
  html[data-ui="operations"] .pos-touch-categories button i,
  html[data-ui="operations"] .pos-touch-categories button small { display: none !important; }
  html[data-ui="operations"] .pos-touch-categories button span {
    max-width: none !important;
    font-size: 15px !important;
    font-weight: 900 !important;
  }
  html[data-ui="operations"] .pos-touch-categories button.active {
    background: var(--pos-navy-2) !important;
    color: #fff !important;
    box-shadow: inset 0 -4px var(--pos-cyan) !important;
  }
  html[data-ui="operations"] .pos-touch-products {
    grid-template-columns: repeat(4, minmax(150px, 1fr)) !important;
    grid-auto-rows: 112px !important;
    align-content: start !important;
    gap: 3px !important;
    padding: 4px !important;
    background: #edf1f4 !important;
  }
  html[data-ui="operations"] .pos-touch-product {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    grid-template-rows: minmax(38px, auto) 22px 24px !important;
    min-height: 112px !important;
    max-height: 112px !important;
    gap: 2px 7px !important;
    padding: 8px !important;
    border: 1px solid #b7c1ca !important;
    border-radius: 3px !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  html[data-ui="operations"] .pos-touch-product-image {
    grid-column: 1 !important;
    grid-row: 1 / 4 !important;
    width: 54px !important;
    height: 54px !important;
    align-self: center !important;
    border: 1px solid #e0e5ea !important;
    border-radius: 2px !important;
  }
  html[data-ui="operations"] .pos-touch-product-image img { object-fit: contain !important; }
  html[data-ui="operations"] .pos-touch-product-image > b {
    top: auto !important;
    right: -2px !important;
    bottom: -28px !important;
    max-width: 62px !important;
    padding: 2px 4px !important;
    border-radius: 2px !important;
    font-size: 9px !important;
  }
  html[data-ui="operations"] .pos-touch-product-name {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    color: #172033 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
    -webkit-line-clamp: 2 !important;
  }
  html[data-ui="operations"] .pos-touch-product > small {
    grid-column: 2 !important;
    grid-row: 2 !important;
    overflow: hidden !important;
    color: #667085 !important;
    font-size: 11px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  html[data-ui="operations"] .pos-touch-product > strong {
    grid-column: 2 !important;
    grid-row: 3 !important;
    align-self: end !important;
    color: #e23d2f !important;
    font-size: 19px !important;
  }
  html[data-ui="operations"] .pos-touch-product > em { display: none !important; }
  html[data-ui="operations"] .pos-touch-product:hover,
  html[data-ui="operations"] .pos-touch-product:focus-visible,
  html[data-ui="operations"] .pos-touch-product.in-cart {
    border: 2px solid var(--pos-cyan) !important;
    outline: none !important;
    background: #effcf9 !important;
  }
  html[data-ui="operations"] .pos-classic-shortcuts {
    grid-template-columns: 170px minmax(0, 1fr) !important;
    gap: 4px !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 4px !important;
    border: 1px solid #9eabb7 !important;
    border-radius: 3px !important;
    background: #f3f5f7 !important;
  }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-quick-title {
    display: grid !important;
    align-content: center !important;
    gap: 8px !important;
    padding: 10px !important;
    background: var(--pos-navy-2) !important;
    color: #fff !important;
  }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-quick-title strong { color: #fff !important; font-size: 16px !important; }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-quick-title span { color: #cce8f5 !important; font-size: 11px !important; }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-quick-title .btn {
    min-height: 34px !important;
    border: 1px solid #ffffff66 !important;
    border-radius: 3px !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 11px !important;
  }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-shortcut-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-rows: 68px !important;
    gap: 4px !important;
    overflow-y: auto !important;
  }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-shortcut-button {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    min-height: 68px !important;
    gap: 0 6px !important;
    place-items: center start !important;
    padding: 6px !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: var(--pos-red) !important;
    color: #fff !important;
  }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-shortcut-button.product { background: var(--pos-cyan) !important; }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-shortcut-button.clear { background: #667085 !important; }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-shortcut-button i {
    grid-row: 1 / 3 !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 16px !important;
  }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-shortcut-button strong {
    overflow: hidden !important;
    width: 100% !important;
    color: #fff !important;
    font-size: 13px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-shortcut-button small {
    display: block !important;
    color: #fff !important;
    font-size: 10px !important;
  }
  html[data-ui="operations"] .pos-payment-panel {
    border: 1px solid #8997a5 !important;
    border-radius: 3px !important;
    box-shadow: none !important;
  }
  html[data-ui="operations"] .pos-payment-head {
    grid-template-columns: 94px minmax(120px, 1fr) 118px !important;
    min-height: 54px !important;
    padding: 5px 7px !important;
    border-bottom: 2px solid var(--pos-navy) !important;
    background: #eef2f5 !important;
  }
  html[data-ui="operations"] .pos-payment-head .btn,
  html[data-ui="operations"] .pos-tax-id-field,
  html[data-ui="operations"] .pos-tax-id-field input { border-radius: 3px !important; }
  html[data-ui="operations"] .pos-touch-cart { min-height: 164px !important; border-radius: 0 !important; }
  html[data-ui="operations"] .pos-touch-cart .pos-sale-head { min-height: 42px !important; background: #fff !important; }
  html[data-ui="operations"] .pos-touch-cart tbody tr { border-radius: 0 !important; box-shadow: none !important; }
  html[data-ui="operations"] .pos-payment-totals { background: #f4f6f8 !important; }
  html[data-ui="operations"] .pos-payment-totals .grand strong { color: #e23d2f !important; }
  html[data-ui="operations"] .pos-custom-discount,
  html[data-ui="operations"] .cash-calculator,
  html[data-ui="operations"] .pos-payment-details { border-radius: 3px !important; }
  html[data-ui="operations"] .pos-payment-methods .chip,
  html[data-ui="operations"] .cash-touch-keypad button,
  html[data-ui="operations"] .cash-quick button { border-radius: 3px !important; }
  html[data-ui="operations"] .pos-payment-methods .chip.active { background: var(--pos-navy-2) !important; border-color: var(--pos-navy-2) !important; }
  html[data-ui="operations"] .cash-touch-keypad button {
    min-height: 42px !important;
    background: var(--pos-navy) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 900 !important;
  }
  html[data-ui="operations"] .cash-touch-keypad button.clear { background: var(--pos-red) !important; }
  html[data-ui="operations"] .pos-payment-panel .checkout {
    min-height: 56px !important;
    margin: 5px 8px 8px !important;
    border-radius: 3px !important;
    background: var(--pos-orange) !important;
    box-shadow: none !important;
  }
  html[data-ui="operations"] .pos-payment-panel .checkout:disabled { background: #b8c0c8 !important; }
}

@media (min-width: 1201px) and (max-width: 1320px) {
  html[data-ui="operations"] body:has(.pos-register-page) .shell { grid-template-columns: 82px minmax(0, 1fr) !important; }
  html[data-ui="operations"] body:has(.pos-register-page) .sidebar { width: 82px !important; }
  html[data-ui="operations"] .pos-register-layout { grid-template-columns: minmax(0, 1fr) 390px !important; }
  html[data-ui="operations"] .pos-touch-products { grid-template-columns: repeat(3, minmax(150px, 1fr)) !important; }
}

/* POS Classic Counter v4 final cascade */
@media (min-width: 1201px) {
  html[data-ui="operations"] .pos-register-layout { grid-template-columns: minmax(0, 1fr) clamp(500px, 34vw, 560px) !important; }
  html[data-ui="operations"] .pos-register-main { grid-template-rows: minmax(0, 1fr) 118px !important; }
  html[data-ui="operations"] .pos-touch-product-head { grid-template-columns: 104px minmax(292px, 480px) auto !important; }
  html[data-ui="operations"] .pos-touch-products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; grid-auto-rows: 104px !important; gap: 4px !important; }
  html[data-ui="operations"] .pos-touch-product { grid-template-columns: 58px minmax(0, 1fr) !important; grid-template-rows: minmax(34px, auto) 20px 23px !important; min-height: 104px !important; max-height: 104px !important; padding: 7px 9px !important; }
  html[data-ui="operations"] .pos-touch-product-image { width: 58px !important; height: 58px !important; }
  html[data-ui="operations"] .pos-touch-product-name { font-size: 15px !important; line-height: 1.22 !important; }
  html[data-ui="operations"] .pos-touch-product > strong { font-size: 18px !important; }
  html[data-ui="operations"] .pos-classic-shortcuts { grid-template-columns: 168px minmax(0, 1fr) !important; min-height: 118px !important; max-height: 118px !important; overflow: hidden !important; }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-quick-title { min-height: 108px !important; margin: 0 !important; padding: 8px 10px !important; }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-shortcut-grid { grid-template-columns: repeat(7, minmax(76px, 1fr)) !important; grid-template-rows: 102px !important; grid-auto-rows: 102px !important; min-width: 0 !important; overflow-x: auto !important; overflow-y: hidden !important; }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-shortcut-button { grid-template-columns: 1fr !important; grid-template-rows: 32px auto auto !important; min-width: 76px !important; min-height: 102px !important; max-height: 102px !important; justify-items: center !important; align-content: center !important; gap: 3px !important; padding: 5px 4px !important; text-align: center !important; }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-shortcut-button i { grid-row: 1 !important; width: 32px !important; height: 32px !important; }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-shortcut-button strong { grid-row: 2 !important; font-size: 12px !important; }
  html[data-ui="operations"] .pos-classic-shortcuts .pos-shortcut-button small { grid-row: 3 !important; max-width: 100% !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
}
@media (min-width: 1201px) and (max-width: 1320px) {
  html[data-ui="operations"] .pos-register-layout { grid-template-columns: minmax(0, 1fr) 480px !important; }
}

/* 期初盤點：沿用原版 App Shell，只增加清楚的盤點工作區塊。 */
html[data-ui="operations"] .stocktake-page { display: flex; flex-direction: column; gap: 18px; }
html[data-ui="operations"] .stocktake-page > .stocktake-intro { order: 0; }
html[data-ui="operations"] .stocktake-page > .stocktake-toolbar,
html[data-ui="operations"] .stocktake-page > .stocktake-import-panel { order: 1; }
html[data-ui="operations"] .stocktake-page > .stocktake-metrics { order: 2; }
html[data-ui="operations"] .stocktake-page > .stocktake-lines { order: 3; scroll-margin-top: 18px; }
html[data-ui="operations"] .stocktake-page > .stocktake-work-grid { order: 4; }
html[data-ui="operations"] .stocktake-page > .stocktake-preview { order: 5; }
html[data-ui="operations"] .stocktake-page > .stocktake-targets { order: 6; }
html[data-ui="operations"] .stocktake-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; border: 1px solid #c7d2fe; border-radius: 16px; background: linear-gradient(135deg,#fff,#eef2ff); }
html[data-ui="operations"] .stocktake-intro h2 { margin: 7px 0 4px; font-size: 21px; }
html[data-ui="operations"] .stocktake-intro p { margin: 0; color: var(--muted); }
html[data-ui="operations"] .stocktake-safety { display: grid; gap: 3px; min-width: 210px; padding: 13px 15px; border-radius: 12px; background: #fff; color: var(--primary-dark); box-shadow: 0 1px 2px #10182812; }
html[data-ui="operations"] .stocktake-safety span { color: var(--muted); font-size: 12px; }
html[data-ui="operations"] .stocktake-toolbar { display: grid; gap: 12px; }
html[data-ui="operations"] .stocktake-toolbar-row { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
html[data-ui="operations"] .stocktake-toolbar-row .field { min-width: 180px; }
html[data-ui="operations"] .stocktake-toolbar-row .grow { flex: 1 1 300px; }
html[data-ui="operations"] .stocktake-toolbar-row .stocktake-name { flex: 1 1 240px; }
html[data-ui="operations"] .stocktake-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
html[data-ui="operations"] .stocktake-metrics > div { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
html[data-ui="operations"] .stocktake-metrics span { color: var(--muted); font-size: 12px; font-weight: 800; }
html[data-ui="operations"] .stocktake-metrics strong { font-size: 25px; color: var(--text); }
html[data-ui="operations"] .stocktake-work-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .75fr); gap: 18px; align-items: start; }
html[data-ui="operations"] .stocktake-form-grid, html[data-ui="operations"] .stocktake-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
html[data-ui="operations"] .stocktake-review-summary { display: grid; gap: 12px; }
html[data-ui="operations"] .stocktake-review-summary h2 { margin: 0; font-size: 17px; }
html[data-ui="operations"] .stocktake-review-summary ul { display: grid; gap: 8px; margin: 0; padding-left: 20px; color: var(--muted); }
html[data-ui="operations"] .stocktake-progress { height: 10px; overflow: hidden; border-radius: 999px; background: #eef2f7; }
html[data-ui="operations"] .stocktake-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#4f46e5,#818cf8); }
html[data-ui="operations"] .stocktake-lines { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,360px),1fr)); gap: 14px; align-items: start; }
html[data-ui="operations"] .stocktake-lines > .panel-title { grid-column: 1 / -1; }
html[data-ui="operations"] .stocktake-line-card { display: grid; min-width: 0; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
html[data-ui="operations"] .stocktake-line-card.is-approved { border-color: #86efac; background: #f0fdf4; }
html[data-ui="operations"] .stocktake-line-card .stocktake-review-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
html[data-ui="operations"] .stocktake-line-card .stocktake-review-grid .field:last-child { grid-column: 1 / -1; }
html[data-ui="operations"] .stocktake-line-card .field { min-width: 0; }
html[data-ui="operations"] .stocktake-line-card input, html[data-ui="operations"] .stocktake-line-card select { min-width: 0; }
html[data-ui="operations"] .stocktake-line-card h3, html[data-ui="operations"] .stocktake-line-card p { overflow-wrap: anywhere; }
html[data-ui="operations"] .stocktake-line-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
html[data-ui="operations"] .stocktake-line-head h3 { margin: 7px 0 2px; font-size: 17px; }
html[data-ui="operations"] .stocktake-line-head p { margin: 0; color: var(--muted); font-size: 12px; }
html[data-ui="operations"] .stocktake-line-head > strong { color: var(--primary-dark); font-size: 20px; white-space: nowrap; }
html[data-ui="operations"] .stocktake-line-head > strong small { font-size: 11px; font-weight: 700; }
html[data-ui="operations"] .stocktake-line-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 10px 12px; border-radius: 10px; background: #f8fafc; color: var(--muted); font-size: 12px; }
html[data-ui="operations"] .stocktake-line-facts b { color: var(--text); }
html[data-ui="operations"] .stocktake-photo-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 54px; padding: 8px 10px; border: 1px dashed var(--border); border-radius: 10px; background: #fff; color: var(--muted); font-size: 12px; }
html[data-ui="operations"] .stocktake-photo-preview img { width: 58px; height: 58px; object-fit: cover; border-radius: 9px; border: 1px solid var(--border); background: #f8fafc; }
html[data-ui="operations"] .stocktake-photo-preview img:hover { outline: 3px solid #c7d2fe; }
html[data-ui="operations"] .stocktake-review-form { display: grid; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--border); }
html[data-ui="operations"] .stocktake-review-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
html[data-ui="operations"] .stocktake-review-actions input[type="file"] { display: none; }
html[data-ui="operations"] .stocktake-preview-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 10px; }
html[data-ui="operations"] .stocktake-preview-grid > div { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #f8fafc; }
html[data-ui="operations"] .stocktake-preview-grid span, html[data-ui="operations"] .stocktake-preview-grid small { color: var(--muted); }
html[data-ui="operations"] .stocktake-commit-hint { display:grid; gap:4px; margin-top:12px; padding:12px 14px; border:1px solid #86efac; border-radius:12px; background:#f0fdf4; color:#166534; }
html[data-ui="operations"] .stocktake-commit-hint span { color:#166534; font-size:13px; }
html[data-ui="operations"] .stocktake-import-panel { display: grid; gap: 12px; }
html[data-ui="operations"] .stocktake-import-file { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; padding: 11px 13px; border: 1px dashed #c7d2fe; border-radius: 10px; background: #f8faff; color: var(--muted); }
html[data-ui="operations"] .stocktake-import-file b { color: var(--text); }
html[data-ui="operations"] .stocktake-targets { display: grid; gap: 12px; }
html[data-ui="operations"] .stocktake-target-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 10px; }
html[data-ui="operations"] .stocktake-targets .stocktake-target-grid { grid-template-columns: 1fr; max-height: 360px; overflow: auto; padding-right: 3px; }
html[data-ui="operations"] .stocktake-targets .stocktake-target-card { min-height: 58px; padding: 8px 12px; border-radius: 10px; }
html[data-ui="operations"] .stocktake-targets .stocktake-target-card h3 { margin: 3px 0 1px; font-size: 14px; }
html[data-ui="operations"] .stocktake-targets .stocktake-target-card > strong { font-size: 18px; }
html[data-ui="operations"] .stocktake-target-card { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:84px; padding:12px 14px; border:1px solid var(--border); border-radius:14px; background:#fff; }
html[data-ui="operations"] .stocktake-target-card.counted { border-color:#86efac; background:#f0fdf4; }
html[data-ui="operations"] .stocktake-target-card.missing { border-color:#fecaca; background:#fff7f7; }
html[data-ui="operations"] .stocktake-target-card h3 { margin:7px 0 3px; font-size:15px; }
html[data-ui="operations"] .stocktake-target-card p { margin:0; color:var(--muted); font-size:12px; }
html[data-ui="operations"] .stocktake-target-card > strong { white-space:nowrap; font-size:22px; color:var(--primary-dark); }
html[data-ui="operations"] .stocktake-target-card > strong small { font-size:11px; color:var(--muted); }
html[data-ui="operations"] .stocktake-metric-button { display: grid; gap: 4px; width: 100%; min-height: 86px; padding: 14px; border: 1px solid #c7d2fe; border-radius: 14px; background: #eef2ff; color: inherit; text-align: left; cursor: pointer; }
html[data-ui="operations"] .stocktake-metric-button:hover, html[data-ui="operations"] .stocktake-metric-button:focus-visible { border-color: #6366f1; box-shadow: 0 0 0 3px #6366f133; outline: none; }
html[data-ui="operations"] .stocktake-worker-page { display:grid; gap:14px; }
html[data-ui="operations"] .stocktake-worker-toolbar { display:grid; gap:12px; }
html[data-ui="operations"] .stocktake-worker-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
html[data-ui="operations"] .stocktake-worker-kpis span { padding:11px 13px; border-radius:12px; background:#f8fafc; color:var(--muted); }
html[data-ui="operations"] .stocktake-worker-kpis b { display:block; margin-top:3px; color:var(--text); font-size:22px; }
html[data-ui="operations"] .stocktake-worker-scan { display:grid; grid-template-columns:minmax(180px,.9fr) minmax(240px,1.6fr) auto; align-items:center; gap:12px; padding:14px; }
html[data-ui="operations"] .stocktake-worker-scan strong, html[data-ui="operations"] .stocktake-worker-scan small { display:block; }
html[data-ui="operations"] .stocktake-worker-scan small { margin-top:4px; color:var(--muted); }
html[data-ui="operations"] .stocktake-worker-scan input { min-height:48px; font-size:18px; }
html[data-ui="operations"] .stocktake-worker-scan-actions { display:flex; gap:8px; flex-wrap:wrap; }
html[data-ui="operations"] .stocktake-worker-layout { display:grid; grid-template-columns:minmax(260px,.9fr) minmax(0,1.4fr); gap:14px; align-items:start; }
html[data-ui="operations"] .stocktake-worker-target-list { display:grid; gap:8px; max-height:660px; overflow:auto; }
html[data-ui="operations"] .stocktake-worker-target { display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:9px; width:100%; min-height:68px; padding:10px 12px; border:1px solid var(--border); border-radius:12px; background:#fff; text-align:left; cursor:pointer; }
html[data-ui="operations"] .stocktake-worker-target:hover, html[data-ui="operations"] .stocktake-worker-target.active { border-color:#6366f1; box-shadow:0 0 0 3px #6366f11c; }
html[data-ui="operations"] .stocktake-worker-target > span { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#eef2ff; color:#4f46e5; font-weight:900; }
html[data-ui="operations"] .stocktake-worker-target.counted > span { background:#dcfce7; color:#15803d; }
html[data-ui="operations"] .stocktake-worker-target.missing > span { background:#fee2e2; color:#b91c1c; }
html[data-ui="operations"] .stocktake-worker-target strong, html[data-ui="operations"] .stocktake-worker-target small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html[data-ui="operations"] .stocktake-worker-target small { margin-top:3px; color:var(--muted); }
html[data-ui="operations"] .stocktake-worker-target b { color:var(--muted); font-size:12px; white-space:nowrap; }
html[data-ui="operations"] .stocktake-worker-editor { display:grid; gap:14px; }
html[data-ui="operations"] .stocktake-worker-product { padding:14px; border-radius:14px; background:linear-gradient(135deg,#eff6ff,#f5f3ff); }
html[data-ui="operations"] .stocktake-worker-product h2 { margin:10px 0 5px; font-size:20px; }
html[data-ui="operations"] .stocktake-worker-product p { margin:4px 0; color:var(--muted); }
html[data-ui="operations"] .stocktake-worker-batches { display:grid; gap:10px; }
html[data-ui="operations"] .stocktake-worker-batch { display:grid; gap:10px; padding:13px; border:1px solid #c7d2fe; border-radius:14px; background:#f8faff; }
html[data-ui="operations"] .stocktake-worker-batch-head { display:flex; align-items:center; justify-content:space-between; }
html[data-ui="operations"] .stocktake-worker-source-hint { display:block; padding:7px 9px; border-radius:9px; background:#fff7ed; color:#9a3412; font-size:12px; line-height:1.45; }
html[data-ui="operations"] .stocktake-worker-form-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
html[data-ui="operations"] .stocktake-worker-form-grid label, html[data-ui="operations"] .stocktake-worker-batch > label { display:grid; gap:5px; color:var(--muted); font-size:12px; font-weight:800; }
html[data-ui="operations"] .stocktake-worker-form-grid input, html[data-ui="operations"] .stocktake-worker-form-grid select, html[data-ui="operations"] .stocktake-worker-batch > label input { min-height:42px; }
html[data-ui="operations"] .stocktake-worker-photo-label { justify-content:center; min-height:50px; border:1px dashed #818cf8; background:#eef2ff; color:#3730a3; cursor:pointer; }
html[data-ui="operations"] .stocktake-worker-editor .btn.large { min-height:54px; font-size:17px; }
@media (max-width: 900px) {
  html[data-ui="operations"] .stocktake-worker-layout { grid-template-columns:1fr; }
  html[data-ui="operations"] .stocktake-worker-target-list { max-height:300px; }
  html[data-ui="operations"] .stocktake-worker-scan { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  html[data-ui="operations"] .stocktake-worker-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html[data-ui="operations"] .stocktake-worker-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html[data-ui="operations"] .stocktake-target-grid { grid-template-columns:1fr; }
}
@media (max-width: 900px) {
  html[data-ui="operations"] .stocktake-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html[data-ui="operations"] .stocktake-work-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  html[data-ui="operations"] .stocktake-intro { align-items: stretch; flex-direction: column; padding: 16px; }
  html[data-ui="operations"] .stocktake-safety { min-width: 0; }
  html[data-ui="operations"] .stocktake-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-ui="operations"] .stocktake-form-grid, html[data-ui="operations"] .stocktake-review-grid { grid-template-columns: 1fr; }
  html[data-ui="operations"] .stocktake-lines { grid-template-columns: 1fr; }
  html[data-ui="operations"] .stocktake-line-card .stocktake-review-grid .field:last-child { grid-column: auto; }
  html[data-ui="operations"] .stocktake-line-head { flex-direction: column; }
}

/* Stitch mobile screen 08: supervisor stocktake review. */
html[data-ui="operations"] .stocktake-page-v8{gap:14px;background:#f4f8fc}
html[data-ui="operations"] .stocktake-page-v8>.stocktake-import-panel-v8{order:7}
html[data-ui="operations"] .stocktake-page-v8>.stocktake-targets-v8{order:8}
html[data-ui="operations"] .stocktake-intro-v8{border-color:#cddfed;background:linear-gradient(135deg,#fff,#eef6fc)}
html[data-ui="operations"] .stocktake-intro-v8 .badge{background:#e8f2fb;color:#397fba}
html[data-ui="operations"] .stocktake-toolbar-v8{border-color:#d7e4ef;border-radius:16px;box-shadow:0 5px 16px #3159790d}
html[data-ui="operations"] .stocktake-batch-row-v8{padding-bottom:11px;border-bottom:1px solid #e5edf4}
html[data-ui="operations"] .stocktake-action-row-v8{align-items:center}
html[data-ui="operations"] .stocktake-metrics-v8>div,html[data-ui="operations"] .stocktake-metrics-v8>.stocktake-metric-button{min-height:104px;border-color:#d9e4ee;box-shadow:0 3px 11px #31597909}
html[data-ui="operations"] .stocktake-metrics-v8>div:nth-child(3){border-left:4px solid #e2a32b;background:#fffaf0}
html[data-ui="operations"] .stocktake-metrics-v8>div:nth-child(4){border-left:4px solid #36a279;background:#f2fbf7}
html[data-ui="operations"] .stocktake-metrics-v8>div:nth-child(5){border-left:4px solid #8b6ac7;background:#f8f5fd}
html[data-ui="operations"] .stocktake-metrics-v8>.stocktake-metric-button{border-left:4px solid #397fba;background:#edf6fd}
html[data-ui="operations"] .stocktake-lines-v8{padding:16px;border-color:#d7e4ef;border-radius:17px;background:#f8fbfd}
html[data-ui="operations"] .stocktake-review-filters-v8{display:flex;grid-column:1/-1;gap:7px;overflow-x:auto;padding:1px 0 3px;scrollbar-width:none}
html[data-ui="operations"] .stocktake-review-filters-v8::-webkit-scrollbar{display:none}
html[data-ui="operations"] .stocktake-review-filter-v8{flex:none;min-height:34px;padding:6px 11px;border:1px solid #d6e2ec;border-radius:999px;background:#fff;color:#5d7185;font-size:12px;font-weight:800;cursor:pointer}
html[data-ui="operations"] .stocktake-review-filter-v8 b{margin-left:3px;color:#244b70}
html[data-ui="operations"] .stocktake-review-filter-v8.active{border-color:#397fba;background:#397fba;color:#fff;box-shadow:0 3px 8px #397fba30}
html[data-ui="operations"] .stocktake-review-filter-v8.active b{color:#fff}
html[data-ui="operations"] .stocktake-line-card-v8{border-color:#d6e2ec;border-radius:15px;box-shadow:0 4px 13px #3159790c}
html[data-ui="operations"] .stocktake-line-card-v8:not(.is-approved){border-top:4px solid #e4a329}
html[data-ui="operations"] .stocktake-line-card-v8.is-approved{border-top:4px solid #36a279}
html[data-ui="operations"] .stocktake-line-card-v8 .stocktake-line-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:0;background:transparent}
html[data-ui="operations"] .stocktake-line-card-v8 .stocktake-line-facts>span{display:grid;gap:3px;min-width:0;padding:9px 10px;border-radius:10px;background:#f1f6fa}
html[data-ui="operations"] .stocktake-line-card-v8 .stocktake-line-facts small{color:#718397;font-size:10px;font-weight:700}
html[data-ui="operations"] .stocktake-line-card-v8 .stocktake-line-facts b{overflow-wrap:anywhere;font-size:13px;line-height:1.3}
html[data-ui="operations"] .stocktake-photo-label-v8{display:grid;gap:2px;min-width:76px;padding-right:7px;border-right:1px solid #e1e8ef}
html[data-ui="operations"] .stocktake-photo-label-v8 small{color:#788a9c;font-size:10px}
html[data-ui="operations"] .stocktake-line-card-v8 .stocktake-photo-preview{min-height:68px;background:#fbfdff}
html[data-ui="operations"] .stocktake-line-card-v8 .stocktake-photo-preview>span{color:#a06618}
html[data-ui="operations"] .stocktake-work-grid-v8>.panel,html[data-ui="operations"] .stocktake-import-panel-v8,html[data-ui="operations"] .stocktake-targets-v8{border-color:#d7e4ef;border-radius:16px}

@media(max-width:700px){
  body:has(.stocktake-page-v8){background:#f4f8fc}
  html[data-ui="operations"] .stocktake-header-v8 .topbar-title p{display:none}
  html[data-ui="operations"] .stocktake-header-v8 .topbar-title h1{font-size:20px}
  html[data-ui="operations"] .stocktake-page-v8{width:100%;max-width:460px;margin:0 auto;padding:13px 11px max(24px,env(safe-area-inset-bottom));gap:11px}
  html[data-ui="operations"] .stocktake-intro-v8{align-items:stretch;flex-direction:column;gap:10px;padding:14px;border-radius:15px}
  html[data-ui="operations"] .stocktake-intro-v8 h2{margin:6px 0 4px;font-size:19px;line-height:1.3}
  html[data-ui="operations"] .stocktake-intro-v8 p{font-size:12px;line-height:1.5}
  html[data-ui="operations"] .stocktake-intro-v8 .stocktake-safety{min-width:0;padding:10px 12px;border:1px solid #d7e5f0;box-shadow:none}
  html[data-ui="operations"] .stocktake-toolbar-v8{gap:10px;padding:12px}
  html[data-ui="operations"] .stocktake-batch-row-v8{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:8px}
  html[data-ui="operations"] .stocktake-batch-row-v8 .grow{grid-column:1/-1}
  html[data-ui="operations"] .stocktake-batch-row-v8 .stocktake-name{grid-column:1/-1}
  html[data-ui="operations"] .stocktake-batch-row-v8 .field{min-width:0}
  html[data-ui="operations"] .stocktake-batch-row-v8 .btn{width:100%;min-width:0;min-height:44px;padding:8px 6px}
  html[data-ui="operations"] .stocktake-action-row-v8{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  html[data-ui="operations"] .stocktake-action-row-v8 .btn{width:100%;min-width:0;min-height:46px;padding:8px 6px;white-space:normal;line-height:1.25}
  html[data-ui="operations"] .stocktake-action-row-v8 .form-hint{grid-column:1/-1;margin:0;padding:8px 9px;border-radius:9px;background:#f3f7fa;font-size:10px;line-height:1.4}
  html[data-ui="operations"] .stocktake-metrics-v8{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  html[data-ui="operations"] .stocktake-metrics-v8>div,html[data-ui="operations"] .stocktake-metrics-v8>.stocktake-metric-button{min-height:92px;padding:11px;border-radius:12px}
  html[data-ui="operations"] .stocktake-metrics-v8 span{font-size:11px}
  html[data-ui="operations"] .stocktake-metrics-v8 strong{font-size:23px}
  html[data-ui="operations"] .stocktake-metrics-v8 small{font-size:10px;line-height:1.3}
  html[data-ui="operations"] .stocktake-lines-v8{grid-template-columns:1fr;gap:10px;margin:0;padding:11px;border-radius:15px;scroll-margin-top:68px}
  html[data-ui="operations"] .stocktake-lines-v8>.panel-title{margin-bottom:0}
  html[data-ui="operations"] .stocktake-lines-v8>.panel-title h2{font-size:17px}
  html[data-ui="operations"] .stocktake-review-filters-v8{margin:0 -1px;padding-bottom:2px}
  html[data-ui="operations"] .stocktake-review-filter-v8{min-height:36px}
  html[data-ui="operations"] .stocktake-line-card-v8{gap:10px;padding:12px}
  html[data-ui="operations"] .stocktake-line-head{flex-direction:row;gap:8px}
  html[data-ui="operations"] .stocktake-line-head>div{min-width:0}
  html[data-ui="operations"] .stocktake-line-head h3{display:-webkit-box;overflow:hidden;margin:6px 0 2px;font-size:15px;line-height:1.35;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  html[data-ui="operations"] .stocktake-line-head p{overflow-wrap:anywhere;font-size:11px}
  html[data-ui="operations"] .stocktake-line-head>strong{font-size:18px}
  html[data-ui="operations"] .stocktake-line-card-v8 .stocktake-line-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  html[data-ui="operations"] .stocktake-line-card-v8 .stocktake-photo-preview{flex-wrap:nowrap;overflow-x:auto;min-height:66px}
  html[data-ui="operations"] .stocktake-line-card-v8 .stocktake-photo-preview img{width:54px;height:54px;flex:0 0 54px;object-fit:cover}
  html[data-ui="operations"] .stocktake-line-card-v8 .stocktake-review-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  html[data-ui="operations"] .stocktake-line-card-v8 .stocktake-review-grid .field:last-child{grid-column:auto}
  html[data-ui="operations"] .stocktake-line-card-v8 .field{font-size:11px}
  html[data-ui="operations"] .stocktake-line-card-v8 input{min-height:43px;padding:8px 7px;font-size:13px}
  html[data-ui="operations"] .stocktake-review-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px}
  html[data-ui="operations"] .stocktake-review-actions .btn{width:100%;min-width:0;min-height:44px;justify-content:center;padding:8px 5px;white-space:normal}
  html[data-ui="operations"] .stocktake-review-actions .form-hint{grid-column:1/-1;text-align:center}
  html[data-ui="operations"] .stocktake-work-grid-v8{gap:11px}
  html[data-ui="operations"] .stocktake-work-grid-v8>.panel{padding:12px}
  html[data-ui="operations"] .stocktake-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  html[data-ui="operations"] .stocktake-form-grid .field{min-width:0}
  html[data-ui="operations"] .stocktake-form-grid .field:first-child,html[data-ui="operations"] .stocktake-form-grid .field:last-child{grid-column:1/-1}
  html[data-ui="operations"] .stocktake-form-grid input,html[data-ui="operations"] .stocktake-form-grid select{min-width:0;min-height:44px}
  html[data-ui="operations"] .stocktake-import-panel-v8,html[data-ui="operations"] .stocktake-targets-v8{padding:12px}
  html[data-ui="operations"] .stocktake-import-panel-v8 .stocktake-toolbar-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  html[data-ui="operations"] .stocktake-import-panel-v8 .btn{width:100%;min-height:44px;justify-content:center}
  html[data-ui="operations"] .stocktake-import-panel-v8 .form-hint{grid-column:1/-1}
  html[data-ui="operations"] .stocktake-targets-v8 .stocktake-target-grid{max-height:300px}
}

@media(max-width:370px){
  html[data-ui="operations"] .stocktake-page-v8{padding-right:8px;padding-left:8px}
  html[data-ui="operations"] .stocktake-line-card-v8 .stocktake-review-grid{grid-template-columns:1fr}
  html[data-ui="operations"] .stocktake-line-head{flex-direction:column}
}

/* Stitch screen 20: system settings */
html[data-ui="operations"] .settings-page-v20{--s20-blue:#4f8fcc;--s20-ink:#263f52;--s20-muted:#778b99;display:grid;gap:14px;max-width:1180px;margin:0 auto;padding-bottom:34px}
html[data-ui="operations"] .settings-page-v20>*{min-width:0}
html[data-ui="operations"] .settings-hero-v20{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:19px 21px;border:1px solid #d6e4ee;border-radius:18px;background:linear-gradient(135deg,#fafdff,#eef7fc);box-shadow:0 6px 22px #173c5c0b}
html[data-ui="operations"] .settings-hero-v20>div>span{color:var(--s20-blue);font-size:11px;font-weight:850;letter-spacing:.08em}
html[data-ui="operations"] .settings-hero-v20 h1{margin:3px 0;color:var(--s20-ink);font-size:25px;line-height:1.2}
html[data-ui="operations"] .settings-hero-v20 p{margin:0;color:var(--s20-muted);font-size:12px}
html[data-ui="operations"] .settings-hero-v20 aside{display:flex;align-items:center;gap:10px;min-width:220px;padding:11px 13px;border:1px solid #dbe7ed;border-radius:13px;background:#fff}
html[data-ui="operations"] .settings-hero-v20 aside>i{width:11px;height:11px;border-radius:50%;background:#d36c63;box-shadow:0 0 0 5px #d36c6318}
html[data-ui="operations"] .settings-hero-v20 aside.online>i{background:#2ba775;box-shadow:0 0 0 5px #2ba77518}
html[data-ui="operations"] .settings-hero-v20 aside span{display:grid;gap:2px}
html[data-ui="operations"] .settings-hero-v20 aside strong{color:var(--s20-ink);font-size:12px}
html[data-ui="operations"] .settings-hero-v20 aside small{color:var(--s20-muted);font-size:10px}
html[data-ui="operations"] .settings-group-v20{scroll-margin-top:74px;display:grid;gap:11px;padding:14px;border:1px solid #d9e5ed;border-radius:18px;background:#f8fbfd}
html[data-ui="operations"] .settings-group-v20>header{display:flex;align-items:center;gap:10px;padding:0 2px}
html[data-ui="operations"] .settings-group-icon-v20{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:11px;background:#e3f1fa;color:#3478a8;font-size:12px;font-weight:900}
html[data-ui="operations"] .settings-group-v20>header>div{min-width:0}
html[data-ui="operations"] .settings-group-v20>header h2{margin:0;color:var(--s20-ink);font-size:15px}
html[data-ui="operations"] .settings-group-v20>header p{margin:2px 0 0;color:var(--s20-muted);font-size:10px}
html[data-ui="operations"] .settings-group-v20>header>b{margin-left:auto;padding:5px 8px;border-radius:999px;background:#edf3f7;color:#60798b;font-size:9px;white-space:nowrap}
html[data-ui="operations"] .settings-basic-grid-v20{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(210px,.5fr);gap:10px}
html[data-ui="operations"] .settings-company-v20,html[data-ui="operations"] .settings-basic-status-v20,html[data-ui="operations"] .settings-access-v20,html[data-ui="operations"] .settings-audit-v20,html[data-ui="operations"] .settings-backups-v20{padding:14px;border:1px solid #dbe6ed;border-radius:15px;background:#fff;box-shadow:0 3px 12px #173c5c08}
html[data-ui="operations"] .settings-card-heading-v20{display:flex;gap:10px;align-items:flex-start}
html[data-ui="operations"] .settings-card-heading-v20>span{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#eef5fa;font-size:18px}
html[data-ui="operations"] .settings-card-heading-v20 h3,html[data-ui="operations"] .settings-section-title-v20 h3,html[data-ui="operations"] .settings-audit-v20 h3,html[data-ui="operations"] .settings-danger-v20 h3{margin:0;color:var(--s20-ink);font-size:14px}
html[data-ui="operations"] .settings-card-heading-v20 p,html[data-ui="operations"] .settings-section-title-v20 p,html[data-ui="operations"] .settings-audit-v20 p,html[data-ui="operations"] .settings-danger-v20 p{margin:3px 0 0;color:var(--s20-muted);font-size:10px;line-height:1.45}
html[data-ui="operations"] .settings-company-v20 dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0 9px}
html[data-ui="operations"] .settings-company-v20 dl>div{display:grid;gap:2px;padding:9px;border-radius:10px;background:#f5f8fa}
html[data-ui="operations"] .settings-company-v20 dt{color:#81929e;font-size:9px}
html[data-ui="operations"] .settings-company-v20 dd{overflow-wrap:anywhere;margin:0;color:#334d60;font-size:11px;font-weight:800}
html[data-ui="operations"] .settings-company-v20>small{display:block;color:#83929c;font-size:9px;line-height:1.45}
html[data-ui="operations"] .settings-basic-status-v20{display:grid;align-content:center;justify-items:start;gap:5px;background:linear-gradient(145deg,#eaf6fc,#fff)}
html[data-ui="operations"] .settings-basic-status-v20>span{color:#638095;font-size:10px;font-weight:750}
html[data-ui="operations"] .settings-basic-status-v20>strong{color:#2f78aa;font-size:24px}
html[data-ui="operations"] .settings-basic-status-v20>p{margin:0;color:#718693;font-size:10px;line-height:1.5}
html[data-ui="operations"] .settings-basic-status-v20>.btn{margin-top:3px}
html[data-ui="operations"] .settings-embedded-v20>.settings-section{margin:0!important;border:1px solid #dbe6ed!important;border-radius:15px!important;background:#fff!important;box-shadow:0 3px 12px #173c5c08!important}
html[data-ui="operations"] .settings-embedded-v20 .panel-title{padding:0!important}
html[data-ui="operations"] .settings-embedded-v20 .master-option-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
html[data-ui="operations"] .settings-embedded-v20 .master-option-group{min-width:0;border-radius:12px;background:#f7fafc}
html[data-ui="operations"] .settings-embedded-v20 .master-option-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}
html[data-ui="operations"] .settings-section-title-v20{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:11px}
html[data-ui="operations"] .settings-users-v20{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
html[data-ui="operations"] .settings-user-v20{display:grid;grid-template-columns:38px minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:9px;border:1px solid #e0e8ed;border-radius:12px;background:#fafcfd}
html[data-ui="operations"] .settings-user-v20.disabled{opacity:.67}
html[data-ui="operations"] .settings-user-v20 .avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#e4f1fb;color:#3478a9;font-size:14px;font-weight:900}
html[data-ui="operations"] .settings-user-v20>div{display:grid;min-width:0;gap:2px}
html[data-ui="operations"] .settings-user-v20 strong{overflow:hidden;color:#2f4759;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
html[data-ui="operations"] .settings-user-v20 small{overflow:hidden;color:#7c8d98;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
html[data-ui="operations"] .settings-user-v20 small b{color:#596f80;font-family:ui-monospace,monospace}
html[data-ui="operations"] .settings-user-v20 em{width:max-content;padding:2px 5px;border-radius:999px;background:#e9f7f1;color:#2a7a59;font-size:8px;font-style:normal;font-weight:800}
html[data-ui="operations"] .settings-user-v20 .account-state{color:#35805f;font-size:9px;font-weight:800;white-space:nowrap}
html[data-ui="operations"] .settings-user-v20.disabled .account-state{color:#8a979f}
html[data-ui="operations"] .settings-audit-v20{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px}
html[data-ui="operations"] .settings-audit-v20>span{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#f0eefb;color:#6958ad;font-size:18px}
html[data-ui="operations"] .settings-integration-v20 .product-search-integration{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);column-gap:14px}
html[data-ui="operations"] .settings-integration-v20 .panel-title{grid-column:1;align-self:start;display:flex!important;flex-direction:column;align-items:flex-start!important;gap:8px}
html[data-ui="operations"] .settings-integration-v20 form{grid-column:2;grid-row:1/3}
html[data-ui="operations"] .settings-integration-v20 .integration-key-row{grid-template-columns:1fr}
html[data-ui="operations"] .settings-integration-v20 .integration-capabilities{grid-column:1;margin-top:8px}
html[data-ui="operations"] .settings-backups-v20{min-width:0}
html[data-ui="operations"] .backup-summary-v20{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:10px}
html[data-ui="operations"] .backup-summary-v20>span{display:grid;gap:2px;padding:9px;border-radius:10px;background:#f3f8fb}
html[data-ui="operations"] .backup-summary-v20 small{color:#7e929f;font-size:9px}
html[data-ui="operations"] .backup-summary-v20 strong{overflow-wrap:anywhere;color:#345268;font-size:11px}
html[data-ui="operations"] .settings-backup-list-v20{display:grid;gap:6px}
html[data-ui="operations"] .settings-backup-v20{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px 9px;border:1px solid #e0e8ed;border-radius:11px;background:#fafcfd}
html[data-ui="operations"] .settings-backup-v20 .backup-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#eaf3f9;color:#4b7d9e}
html[data-ui="operations"] .settings-backup-v20>div:nth-child(2){display:grid;min-width:0;gap:1px}
html[data-ui="operations"] .settings-backup-v20 strong{color:#3a5364;font-size:10px}
html[data-ui="operations"] .settings-backup-v20 small{color:#7e8e99;font-size:9px}
html[data-ui="operations"] .settings-backup-v20 code{overflow:hidden;color:#91a0a9;font-size:8px;text-overflow:ellipsis;white-space:nowrap}
html[data-ui="operations"] .settings-backup-v20>div:last-child{display:flex;gap:5px}
html[data-ui="operations"] .settings-danger-v20{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 14px;border:1px solid #f0c5c2;border-radius:14px;background:#fff8f7}
html[data-ui="operations"] .settings-danger-v20>span{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#fde3e1;color:#b84f49;font-size:18px;font-weight:900}
html[data-ui="operations"] .settings-danger-v20 h3{color:#963f3a}
html[data-ui="operations"] .settings-tools-v20{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border:1px solid #dbe6ed;border-radius:15px;background:#fff}
html[data-ui="operations"] .settings-tools-v20 h2{margin:0;color:var(--s20-ink);font-size:13px}
html[data-ui="operations"] .settings-tools-v20 p{margin:2px 0 0;color:var(--s20-muted);font-size:9px}
html[data-ui="operations"] .settings-tools-v20 nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
html[data-ui="operations"] .settings-bottom-nav-v20{display:none}

@media(max-width:700px){
  body:has(.settings-page-v20){overflow-x:hidden;background:#f3f8fc}
  body:has(.settings-page-v20) .topbar-title p{display:none}
  html[data-ui="operations"] .settings-page-v20{width:100%;max-width:460px;gap:10px;margin:0 auto;padding:9px 8px calc(78px + env(safe-area-inset-bottom))!important;overflow-x:clip}
  html[data-ui="operations"] .settings-hero-v20{display:grid;gap:10px;padding:14px;border-radius:15px}
  html[data-ui="operations"] .settings-hero-v20 h1{font-size:20px}
  html[data-ui="operations"] .settings-hero-v20 p{font-size:10px;line-height:1.45}
  html[data-ui="operations"] .settings-hero-v20 aside{width:100%;min-width:0;padding:9px}
  html[data-ui="operations"] .settings-group-v20{gap:9px;padding:9px;border-radius:15px;scroll-margin-top:64px}
  html[data-ui="operations"] .settings-group-v20>header h2{font-size:14px}
  html[data-ui="operations"] .settings-group-v20>header p{font-size:9px;line-height:1.35}
  html[data-ui="operations"] .settings-basic-grid-v20{grid-template-columns:1fr}
  html[data-ui="operations"] .settings-company-v20,html[data-ui="operations"] .settings-basic-status-v20,html[data-ui="operations"] .settings-access-v20,html[data-ui="operations"] .settings-audit-v20,html[data-ui="operations"] .settings-backups-v20{padding:11px}
  html[data-ui="operations"] .settings-company-v20 dl{grid-template-columns:1fr;gap:5px}
  html[data-ui="operations"] .settings-company-v20 dl>div{grid-template-columns:82px minmax(0,1fr);align-items:center}
  html[data-ui="operations"] .settings-basic-status-v20{grid-template-columns:minmax(0,1fr) auto;align-items:center}
  html[data-ui="operations"] .settings-basic-status-v20>strong{grid-column:2;grid-row:1/3;font-size:20px}
  html[data-ui="operations"] .settings-basic-status-v20>p{grid-column:1/-1}
  html[data-ui="operations"] .settings-basic-status-v20>.btn{grid-column:1/-1;min-height:44px}
  html[data-ui="operations"] .settings-embedded-v20>.settings-section{padding:11px!important}
  html[data-ui="operations"] .settings-embedded-v20 .master-option-grid{grid-template-columns:1fr}
  html[data-ui="operations"] .settings-embedded-v20 .master-option-form input{min-width:0;width:100%}
  html[data-ui="operations"] .settings-section-title-v20{align-items:center}
  html[data-ui="operations"] .settings-section-title-v20>.btn{min-height:44px;white-space:nowrap}
  html[data-ui="operations"] .settings-users-v20{grid-template-columns:1fr}
  html[data-ui="operations"] .settings-user-v20{grid-template-columns:38px minmax(0,1fr) auto}
  html[data-ui="operations"] .settings-user-v20 .account-state{display:none}
  html[data-ui="operations"] .settings-user-v20>.btn{min-height:40px}
  html[data-ui="operations"] .settings-audit-v20{grid-template-columns:38px minmax(0,1fr)}
  html[data-ui="operations"] .settings-audit-v20>.btn{grid-column:1/-1;min-height:44px}
  html[data-ui="operations"] .settings-integration-v20 .product-search-integration{display:grid;grid-template-columns:1fr}
  html[data-ui="operations"] .settings-integration-v20 .panel-title,html[data-ui="operations"] .settings-integration-v20 form,html[data-ui="operations"] .settings-integration-v20 .integration-capabilities{grid-column:1;grid-row:auto}
  html[data-ui="operations"] .settings-integration-v20 .integration-actions{display:grid;grid-template-columns:1fr 1fr}
  html[data-ui="operations"] .settings-integration-v20 .integration-actions .btn{min-height:44px}
  html[data-ui="operations"] .backup-summary-v20{grid-template-columns:1fr}
  html[data-ui="operations"] .settings-backup-v20{grid-template-columns:32px minmax(0,1fr)}
  html[data-ui="operations"] .settings-backup-v20>div:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}
  html[data-ui="operations"] .settings-backup-v20>div:last-child>.btn{min-height:40px}
  html[data-ui="operations"] .settings-danger-v20{grid-template-columns:36px minmax(0,1fr);padding:11px}
  html[data-ui="operations"] .settings-danger-v20>.btn{grid-column:1/-1;min-height:44px}
  html[data-ui="operations"] .settings-tools-v20{display:grid;padding:11px}
  html[data-ui="operations"] .settings-tools-v20 nav{display:grid;grid-template-columns:1fr 1fr}
  html[data-ui="operations"] .settings-tools-v20 nav>.btn{min-height:42px}
  html[data-ui="operations"] .settings-bottom-nav-v20{position:fixed;right:0;bottom:0;left:0;z-index:35;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:6px 8px calc(6px + env(safe-area-inset-bottom));border-top:1px solid #d5e2eb;background:#ffffffed;box-shadow:0 -4px 14px #1b2e5e12;backdrop-filter:blur(8px)}
  html[data-ui="operations"] .settings-bottom-nav-v20 button{display:grid;justify-items:center;gap:2px;min-width:0;min-height:48px;padding:4px;border:0;border-radius:9px;background:transparent;color:#738696;font-size:9px;font-weight:800;cursor:pointer}
  html[data-ui="operations"] .settings-bottom-nav-v20 b{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#eef3f6;color:#58748a;font-size:10px}
  html[data-ui="operations"] .settings-bottom-nav-v20 .active{background:#e9f4fb;color:#326f99}
  html[data-ui="operations"] .settings-bottom-nav-v20 .active b{background:#4f8fcc;color:#fff}
}

@media(max-width:370px){
  html[data-ui="operations"] .settings-page-v20{padding-right:6px!important;padding-left:6px!important}
  html[data-ui="operations"] .settings-section-title-v20{display:grid}
  html[data-ui="operations"] .settings-section-title-v20>.btn{width:100%}
}

/* Stitch mobile screen 09: employee barcode stocktake. */
html[data-ui="operations"] .stocktake-worker-page-v9{gap:13px;background:#f4f8fc}
html[data-ui="operations"] .stocktake-worker-page-v9 .panel{border-color:#d4e2ee;border-radius:17px;box-shadow:0 5px 16px #3159790c}
html[data-ui="operations"] .stocktake-worker-toolbar-v9{gap:10px;background:linear-gradient(145deg,#fff,#f1f7fc)}
html[data-ui="operations"] .stocktake-worker-toolbar-v9 .stocktake-toolbar-row{align-items:end}
html[data-ui="operations"] .stocktake-worker-toolbar-v9 .stocktake-toolbar-row>.btn{min-height:44px}
html[data-ui="operations"] .stocktake-worker-toolbar-v9 .stocktake-worker-kpis span{border:1px solid #e0e9f1;background:#fff}
html[data-ui="operations"] .stocktake-worker-toolbar-v9 .stocktake-worker-kpis span:nth-child(2){background:#fff9e9}
html[data-ui="operations"] .stocktake-worker-toolbar-v9 .stocktake-worker-kpis span:nth-child(3){background:#ecfaf4}
html[data-ui="operations"] .stocktake-worker-progress-v9{height:8px;overflow:hidden;border-radius:999px;background:#dfeaf3}
html[data-ui="operations"] .stocktake-worker-progress-v9 i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#4694ce,#40ae8a)}
html[data-ui="operations"] .stocktake-worker-progress-copy-v9{color:#61788e;font-weight:800;text-align:right}
html[data-ui="operations"] .stocktake-worker-scan-v9{border:2px solid #9dc9ea;background:#f4faff}
html[data-ui="operations"] .stocktake-worker-scan-v9 strong{color:#235f90;font-size:17px}
html[data-ui="operations"] .stocktake-worker-scan-v9 input{border:2px solid #8ebcde;background:#fff;font-weight:800}
html[data-ui="operations"] .stocktake-worker-layout-v9{grid-template-columns:minmax(260px,.78fr) minmax(0,1.42fr)}
html[data-ui="operations"] .stocktake-worker-pending-v9{min-width:0}
html[data-ui="operations"] .stocktake-worker-editor-v9{min-width:0;padding:16px;background:#fbfdff}
html[data-ui="operations"] .stocktake-worker-product{border:1px solid #cfe0ee;background:linear-gradient(135deg,#edf7ff,#f7fbff)}
html[data-ui="operations"] .stocktake-worker-reference-v9{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
html[data-ui="operations"] .stocktake-worker-reference-v9 span{display:grid;gap:2px;min-width:120px;padding:8px 10px;border:1px solid #dce8f1;border-radius:10px;background:#fff;color:#718397;font-size:11px}
html[data-ui="operations"] .stocktake-worker-reference-v9 b{overflow-wrap:anywhere;color:#213e58;font-size:14px}
html[data-ui="operations"] .stocktake-worker-editor-v9 form{display:grid;gap:12px}
html[data-ui="operations"] .stocktake-worker-result-v9{max-width:260px}
html[data-ui="operations"] .stocktake-worker-batch-v9{padding:14px;border:1px solid #bdd7ea;background:#f6fbff}
html[data-ui="operations"] .stocktake-worker-quantity-v9{display:grid;gap:8px;padding:12px;border-radius:13px;background:#eaf5fd}
html[data-ui="operations"] .stocktake-worker-quantity-v9>span{color:#244d6f;font-size:14px;font-weight:900}
html[data-ui="operations"] .stocktake-worker-stepper-v9{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;gap:8px}
html[data-ui="operations"] .stocktake-worker-stepper-v9 button{min-height:54px;border:1px solid #81b4da;border-radius:12px;background:#fff;color:#176ca8;font-size:28px;font-weight:900;cursor:pointer}
html[data-ui="operations"] .stocktake-worker-stepper-v9 input{min-width:0;min-height:54px;border:2px solid #4e99cf;border-radius:12px;background:#fff;color:#183750;font-size:27px;font-weight:900;text-align:center}
html[data-ui="operations"] .stocktake-worker-quick-v9{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
html[data-ui="operations"] .stocktake-worker-quick-v9 button{min-width:0;min-height:42px;border:1px solid #c8dce9;border-radius:10px;background:#fff;color:#285978;font-weight:900;cursor:pointer}
html[data-ui="operations"] .stocktake-worker-quick-v9 .is-reset{color:#a54242;background:#fff7f7}
html[data-ui="operations"] .stocktake-worker-form-grid-v9{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}
html[data-ui="operations"] .stocktake-worker-form-grid-v9 .stocktake-worker-expiry-v9{grid-column:span 2;color:#a95617}
html[data-ui="operations"] .stocktake-worker-form-grid-v9 .stocktake-worker-expiry-v9 input{border:2px solid #e2a44b;background:#fffaf0;color:#834317;font-size:16px;font-weight:900}
html[data-ui="operations"] .stocktake-worker-form-grid-v9 .stocktake-worker-batchno-v9{grid-column:span 2}
html[data-ui="operations"] .stocktake-worker-add-batch-v9{min-height:46px;border-style:dashed;color:#2d78ad;background:#f2f9ff}
html[data-ui="operations"] .stocktake-worker-photo-v9{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:13px;border:1px solid #c9dfea;border-radius:14px;background:#f2f9fd}
html[data-ui="operations"] .stocktake-worker-photo-v9 strong,html[data-ui="operations"] .stocktake-worker-photo-v9 small{display:block}
html[data-ui="operations"] .stocktake-worker-photo-v9 small{margin-top:4px;color:#718397}
html[data-ui="operations"] .stocktake-worker-photo-v9 .stocktake-worker-photo-label{min-height:46px}
html[data-ui="operations"] .stocktake-worker-photo-preview-v9{display:flex;grid-column:1/-1;gap:8px;min-height:0;overflow-x:auto}
html[data-ui="operations"] .stocktake-worker-photo-preview-v9:empty{display:none}
html[data-ui="operations"] .stocktake-worker-photo-preview-v9 figure{position:relative;flex:0 0 72px;margin:0}
html[data-ui="operations"] .stocktake-worker-photo-preview-v9 img{display:block;width:72px;height:72px;border:2px solid #fff;border-radius:11px;object-fit:cover;box-shadow:0 2px 8px #31597928}
html[data-ui="operations"] .stocktake-worker-photo-preview-v9 figcaption{position:absolute;right:4px;bottom:4px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#265f8e;color:#fff;font-size:11px;font-weight:900}
html[data-ui="operations"] .stocktake-worker-photo-v9>.form-hint{grid-column:1/-1;margin:0}
html[data-ui="operations"] .stocktake-worker-actions-v9{display:grid;grid-template-columns:minmax(150px,.55fr) minmax(220px,1.45fr);gap:9px}
html[data-ui="operations"] .stocktake-worker-actions-v9 .btn{width:100%;min-height:54px;justify-content:center}
html[data-ui="operations"] .stocktake-worker-empty-v9{min-height:260px}

@media(max-width:900px){
  html[data-ui="operations"] .stocktake-worker-layout-v9{display:flex;flex-direction:column}
  html[data-ui="operations"] .stocktake-worker-editor-v9{order:1;width:100%}
  html[data-ui="operations"] .stocktake-worker-pending-v9{order:2;width:100%}
}

@media(max-width:620px){
  body:has(.stocktake-worker-page-v9){overflow-x:hidden;background:#f4f8fc}
  body:has(.stocktake-worker-page-v9) .topbar-title p{display:none}
  body:has(.stocktake-worker-page-v9) .topbar-title h1{font-size:20px}
  html[data-ui="operations"] .stocktake-worker-page-v9{width:100%;max-width:460px;margin:0 auto;padding:11px 10px max(26px,env(safe-area-inset-bottom));gap:10px;overflow-x:clip}
  html[data-ui="operations"] .stocktake-worker-page-v9 .panel{padding:12px;border-radius:15px}
  html[data-ui="operations"] .stocktake-worker-toolbar-v9{position:relative;gap:8px}
  html[data-ui="operations"] .stocktake-worker-toolbar-v9 .stocktake-toolbar-row{display:grid;grid-template-columns:minmax(0,1fr) 82px;gap:7px}
  html[data-ui="operations"] .stocktake-worker-toolbar-v9 .field{min-width:0;font-size:11px}
  html[data-ui="operations"] .stocktake-worker-toolbar-v9 select{min-width:0;min-height:43px;font-size:13px}
  html[data-ui="operations"] .stocktake-worker-toolbar-v9 .stocktake-worker-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
  html[data-ui="operations"] .stocktake-worker-toolbar-v9 .stocktake-worker-kpis span{min-width:0;padding:7px 4px;border-radius:9px;font-size:10px;text-align:center}
  html[data-ui="operations"] .stocktake-worker-toolbar-v9 .stocktake-worker-kpis b{margin-top:1px;font-size:18px}
  html[data-ui="operations"] .stocktake-worker-progress-copy-v9{font-size:10px}
  html[data-ui="operations"] .stocktake-worker-scan-v9{display:grid;grid-template-columns:1fr;padding:12px}
  html[data-ui="operations"] .stocktake-worker-scan-v9 strong{font-size:16px}
  html[data-ui="operations"] .stocktake-worker-scan-v9 small{font-size:11px;line-height:1.4}
  html[data-ui="operations"] .stocktake-worker-scan-v9 input{width:100%;min-width:0;min-height:52px;font-size:18px}
  html[data-ui="operations"] .stocktake-worker-scan-actions{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:7px}
  html[data-ui="operations"] .stocktake-worker-scan-actions .btn{width:100%;min-width:0;min-height:47px;justify-content:center;padding:8px}
  html[data-ui="operations"] .stocktake-worker-layout-v9{gap:10px}
  html[data-ui="operations"] .stocktake-worker-editor-v9{padding:11px}
  html[data-ui="operations"] .stocktake-worker-product{padding:12px}
  html[data-ui="operations"] .stocktake-worker-product h2{font-size:18px;line-height:1.35}
  html[data-ui="operations"] .stocktake-worker-reference-v9{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  html[data-ui="operations"] .stocktake-worker-reference-v9 span{min-width:0;padding:7px 8px}
  html[data-ui="operations"] .stocktake-worker-reference-v9 span:first-child{grid-column:1/-1}
  html[data-ui="operations"] .stocktake-worker-result-v9{max-width:none}
  html[data-ui="operations"] .stocktake-worker-batch-v9{padding:11px}
  html[data-ui="operations"] .stocktake-worker-stepper-v9{grid-template-columns:50px minmax(0,1fr) 50px}
  html[data-ui="operations"] .stocktake-worker-stepper-v9 button,html[data-ui="operations"] .stocktake-worker-stepper-v9 input{min-height:54px}
  html[data-ui="operations"] .stocktake-worker-quick-v9{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
  html[data-ui="operations"] .stocktake-worker-quick-v9 button{min-height:42px;padding:6px 2px;font-size:12px}
  html[data-ui="operations"] .stocktake-worker-form-grid-v9{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  html[data-ui="operations"] .stocktake-worker-form-grid-v9 .stocktake-worker-expiry-v9,html[data-ui="operations"] .stocktake-worker-form-grid-v9 .stocktake-worker-batchno-v9{grid-column:1/-1}
  html[data-ui="operations"] .stocktake-worker-form-grid-v9 input,html[data-ui="operations"] .stocktake-worker-form-grid-v9 select{width:100%;min-width:0;min-height:45px;font-size:14px}
  html[data-ui="operations"] .stocktake-worker-form-grid-v9 .stocktake-worker-expiry-v9 input{font-size:16px}
  html[data-ui="operations"] .stocktake-worker-photo-v9{grid-template-columns:1fr;padding:11px}
  html[data-ui="operations"] .stocktake-worker-photo-v9 .stocktake-worker-photo-label{width:100%;justify-content:center}
  html[data-ui="operations"] .stocktake-worker-photo-preview-v9,html[data-ui="operations"] .stocktake-worker-photo-v9>.form-hint{grid-column:auto}
  html[data-ui="operations"] .stocktake-worker-actions-v9{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:7px}
  html[data-ui="operations"] .stocktake-worker-actions-v9 .btn{min-width:0;padding:8px 5px;white-space:normal}
  html[data-ui="operations"] .stocktake-worker-pending-v9 .panel-title{align-items:flex-start}
  html[data-ui="operations"] .stocktake-worker-target-list{max-height:360px}
}

@media(max-width:370px){
  html[data-ui="operations"] .stocktake-worker-page-v9{padding-right:7px;padding-left:7px}
  html[data-ui="operations"] .stocktake-worker-actions-v9{grid-template-columns:1fr}
  html[data-ui="operations"] .stocktake-worker-reference-v9{grid-template-columns:1fr}
  html[data-ui="operations"] .stocktake-worker-reference-v9 span:first-child{grid-column:auto}
}

/* Stitch mobile screen 10: purchase receiving work-order selection. */
html[data-ui="operations"] .receiving-list-v10{gap:13px;background:#f4f8fc}
html[data-ui="operations"] .receiving-list-v10>.mobile-flow-steps{order:1}
html[data-ui="operations"] .receiving-list-v10>.receiving-priority-v10{order:2}
html[data-ui="operations"] .receiving-list-v10>.receiving-job-panel-v10{order:3}
html[data-ui="operations"] .receiving-list-v10>.receiving-import-panel-v10{order:4}
html[data-ui="operations"] .receiving-list-v10>.panel{border-color:#d5e3ee;border-radius:17px;box-shadow:0 5px 16px #3159790c}
html[data-ui="operations"] .receiving-priority-v10{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid #bcd9ee;border-radius:14px;background:linear-gradient(135deg,#f2f9ff,#eef4ff);box-shadow:0 4px 13px #3159790a}
html[data-ui="operations"] .receiving-priority-v10>span{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:8px;background:#4f8fcc;color:#fff;font-family:serif;font-size:16px;font-weight:900}
html[data-ui="operations"] .receiving-priority-v10 strong{display:block;color:#274d6d;font-size:14px}
html[data-ui="operations"] .receiving-priority-v10 p{margin:3px 0 0;color:#60758a;font-size:12px;line-height:1.5}
html[data-ui="operations"] .receiving-priority-v10 b{color:#236fa8}
html[data-ui="operations"] .receiving-priority-v10 em{color:#bd4b3f;font-style:normal}
html[data-ui="operations"] .receiving-job-panel-v10{padding:16px}
html[data-ui="operations"] .receiving-job-panel-v10>.panel-title{align-items:center;margin-bottom:10px}
html[data-ui="operations"] .receiving-list-filters-v10{display:flex;gap:7px;margin:0 0 13px;overflow-x:auto;padding:1px 0 3px;scrollbar-width:none}
html[data-ui="operations"] .receiving-list-filters-v10::-webkit-scrollbar{display:none}
html[data-ui="operations"] .receiving-list-filters-v10 button{flex:none;min-height:36px;padding:7px 13px;border:1px solid #d5e1eb;border-radius:999px;background:#fff;color:#607387;font-size:12px;font-weight:850;cursor:pointer}
html[data-ui="operations"] .receiving-list-filters-v10 button.active{border-color:#4f8fcc;background:#4f8fcc;color:#fff;box-shadow:0 3px 8px #4f8fcc32}
html[data-ui="operations"] .receiving-list-v10 .receiving-job-grid{grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:12px}
html[data-ui="operations"] .receiving-list-v10 .receiving-job-card,
html[data-ui="operations"] .receiving-list-v10 .receiving-job-card-wrap{min-width:0;border-radius:15px}
html[data-ui="operations"] .receiving-list-v10 .receiving-job-card{display:grid;gap:10px;padding:15px;border:1px solid #d5e2ec;background:#fff;text-align:left;box-shadow:0 4px 14px #3159790b;transition:border-color .15s,box-shadow .15s,transform .15s}
html[data-ui="operations"] .receiving-list-v10 .receiving-job-card:hover{border-color:#8bbadf;box-shadow:0 8px 20px #31597918;transform:translateY(-1px)}
html[data-ui="operations"] .receiving-list-v10 .receiving-job-card.is-progress{border:2px solid #79add5;background:linear-gradient(180deg,#fff,#f7fbff)}
html[data-ui="operations"] .receiving-list-v10 .receiving-job-card.has-issue{border:1px solid #efb3ad;background:linear-gradient(180deg,#fff,#fffafa)}
html[data-ui="operations"] .receiving-job-status-row-v10{display:flex;align-items:center;justify-content:space-between;gap:8px}
html[data-ui="operations"] .receiving-job-status-row-v10 small{overflow-wrap:anywhere;color:#8492a1;font-size:10px}
html[data-ui="operations"] .receiving-list-v10 .receiving-job-card h3{margin:0;color:#1d344a;font-size:18px;line-height:1.35}
html[data-ui="operations"] .receiving-list-v10 .receiving-job-card>p{display:flex;gap:7px;margin:0;color:#718397;font-size:12px}
html[data-ui="operations"] .receiving-list-v10 .receiving-job-card>p b{overflow-wrap:anywhere;color:#465d72}
html[data-ui="operations"] .receiving-job-metrics-v10{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:8px;border-radius:11px;background:#f3f7fa}
html[data-ui="operations"] .receiving-job-metrics-v10>span{display:grid;gap:2px;min-width:0;text-align:center}
html[data-ui="operations"] .receiving-job-metrics-v10 small{color:#718397;font-size:10px}
html[data-ui="operations"] .receiving-job-metrics-v10 b{color:#263f56;font-size:17px}
html[data-ui="operations"] .receiving-job-metrics-v10 .danger b,html[data-ui="operations"] .receiving-job-metrics-v10 .danger small{color:#c5453c}
html[data-ui="operations"] .receiving-job-progress-copy-v10{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#60758a;font-size:11px}
html[data-ui="operations"] .receiving-job-progress-copy-v10 b{color:#2e648f}
html[data-ui="operations"] .receiving-list-v10 .receiving-progress{height:8px;background:#e7eef4}
html[data-ui="operations"] .receiving-list-v10 .receiving-progress i{background:linear-gradient(90deg,#4f8fcc,#58afca)}
html[data-ui="operations"] .receiving-job-next-v10{padding:8px 9px;border:1px solid #eed9a2;border-radius:9px;background:#fff9e9;color:#8a6415;font-size:11px;font-weight:750;line-height:1.4}
html[data-ui="operations"] .has-issue .receiving-job-next-v10{border-color:#efc1bc;background:#fff1f0;color:#ae4037}
html[data-ui="operations"] .receiving-job-cta-v10{display:flex;align-items:center;justify-content:center;min-height:43px;border-radius:10px;background:#4f8fcc;color:#fff;font-size:14px;font-weight:900;box-shadow:0 4px 10px #4f8fcc28}
html[data-ui="operations"] .receiving-job-card[data-receiving-status="open"] .receiving-job-cta-v10{background:#1f3d58}
html[data-ui="operations"] .receiving-job-card[data-receiving-status="posted"] .receiving-job-cta-v10{background:#62778a}
html[data-ui="operations"] .receiving-list-v10 .receiving-job-delete{width:calc(100% - 20px);min-height:40px;margin:0 10px 10px}
html[data-ui="operations"] .receiving-import-panel-v10{padding:16px;background:#fbfdff}
html[data-ui="operations"] .receiving-import-panel-v10.is-collapsed>:not(.panel-title){display:none}
html[data-ui="operations"] .receiving-import-panel-v10.is-collapsed .panel-title{margin:0}
html[data-ui="operations"] .receiving-import-toggle-v10{min-height:42px;color:#346f9e;border-color:#bcd5e8;background:#eef7fd}

@media(max-width:720px){
  body:has(.receiving-list-v10){overflow-x:hidden;background:#f4f8fc}
  body:has(.receiving-list-v10) .topbar-title p{display:none}
  body:has(.receiving-list-v10) .topbar-title h1{font-size:20px}
  html[data-ui="operations"] .receiving-list-v10{width:100%;max-width:460px;margin:0 auto;padding:11px 10px max(26px,env(safe-area-inset-bottom));gap:10px;overflow-x:clip}
  html[data-ui="operations"] .receiving-list-v10 .receiving-flow-steps-v10{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:8px 6px}
  html[data-ui="operations"] .receiving-flow-steps-v10 span{display:flex;flex-direction:column;gap:4px;font-size:9px;text-align:center}
  html[data-ui="operations"] .receiving-flow-steps-v10 b{width:25px;height:25px}
  html[data-ui="operations"] .receiving-priority-v10{padding:11px}
  html[data-ui="operations"] .receiving-job-panel-v10,html[data-ui="operations"] .receiving-import-panel-v10{padding:11px;border-radius:15px}
  html[data-ui="operations"] .receiving-job-panel-v10>.panel-title{align-items:flex-start}
  html[data-ui="operations"] .receiving-job-panel-v10>.panel-title h2{font-size:17px}
  html[data-ui="operations"] .receiving-job-panel-v10>.panel-title span{font-size:11px;line-height:1.4}
  html[data-ui="operations"] .receiving-job-panel-v10 #refresh-receiving-jobs{min-width:82px;min-height:42px;padding:7px}
  html[data-ui="operations"] .receiving-list-filters-v10{margin-right:-2px;margin-left:-2px}
  html[data-ui="operations"] .receiving-list-filters-v10 button{min-height:38px;padding:7px 12px}
  html[data-ui="operations"] .receiving-list-v10 .receiving-job-grid{grid-template-columns:1fr;gap:10px}
  html[data-ui="operations"] .receiving-list-v10 .receiving-job-card{gap:9px;padding:12px;border-radius:14px}
  html[data-ui="operations"] .receiving-list-v10 .receiving-job-card h3{font-size:16px}
  html[data-ui="operations"] .receiving-job-metrics-v10{padding:7px 4px}
  html[data-ui="operations"] .receiving-job-metrics-v10 b{font-size:16px}
  html[data-ui="operations"] .receiving-job-cta-v10{min-height:46px}
  html[data-ui="operations"] .receiving-import-panel-v10>.panel-title{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}
  html[data-ui="operations"] .receiving-import-panel-v10>.panel-title>strong{grid-column:1/-1}
  html[data-ui="operations"] .receiving-import-toggle-v10{min-width:0;padding:7px 9px;white-space:normal}
  html[data-ui="operations"] .receiving-import-panel-v10:not(.is-collapsed) .form-grid{grid-template-columns:1fr}
  html[data-ui="operations"] .receiving-import-panel-v10:not(.is-collapsed) .receiving-template-download{align-items:stretch;flex-direction:column}
  html[data-ui="operations"] .receiving-import-panel-v10:not(.is-collapsed) .receiving-template-download .btn{width:100%;justify-content:center}
}

@media(max-width:370px){
  html[data-ui="operations"] .receiving-list-v10{padding-right:7px;padding-left:7px}
  html[data-ui="operations"] .receiving-job-metrics-v10 small{font-size:9px}
  html[data-ui="operations"] .receiving-job-metrics-v10 b{font-size:15px}
}

/* Stitch 12 — 供應商資料與帳務總覽；資料與操作仍沿用既有後端。 */
html[data-ui="operations"] .supplier-page-v12{display:grid;gap:14px;background:#f4f7fb}
html[data-ui="operations"] .supplier-tools-v12{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:10px;align-items:center}
html[data-ui="operations"] .supplier-tools-v12 label{display:flex;align-items:center;min-width:0;height:48px;padding:0 13px;border:1px solid #cbd9e6;border-radius:13px;background:#fff;box-shadow:0 2px 7px #2446600a}
html[data-ui="operations"] .supplier-tools-v12 label:focus-within{border-color:#4f8fcc;box-shadow:0 0 0 3px #4f8fcc24}
html[data-ui="operations"] .supplier-tools-v12 label>span{margin-right:8px;color:#7c8fa2;font-size:20px}
html[data-ui="operations"] .supplier-tools-v12 input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#21384e;font-size:15px}
html[data-ui="operations"] .supplier-tools-v12>.btn{min-height:48px;border-radius:13px}
html[data-ui="operations"] .supplier-kpis-v12{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
html[data-ui="operations"] .supplier-kpis-v12>div{display:grid;gap:5px;min-width:0;padding:14px;border:1px solid #d9e4ed;border-radius:14px;background:#fff;box-shadow:0 2px 8px #1b2e5e0b}
html[data-ui="operations"] .supplier-kpis-v12>div.warning{border-color:#edd69f;background:#fff9e9}
html[data-ui="operations"] .supplier-kpis-v12 span{color:#667b8e;font-size:12px;font-weight:750}
html[data-ui="operations"] .supplier-kpis-v12 strong{overflow:hidden;color:#20384e;font-size:22px;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}
html[data-ui="operations"] .supplier-kpis-v12 strong small{font-size:12px;font-weight:700}
html[data-ui="operations"] .supplier-kpis-v12 em{overflow:hidden;color:#8494a3;font-size:11px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}
html[data-ui="operations"] .supplier-kpis-v12 .warning strong,html[data-ui="operations"] .supplier-kpis-v12 .warning span{color:#a46611}
html[data-ui="operations"] .supplier-filters-v12{display:flex;gap:7px;overflow-x:auto;padding:1px 1px 3px;scrollbar-width:none}
html[data-ui="operations"] .supplier-filters-v12::-webkit-scrollbar{display:none}
html[data-ui="operations"] .supplier-filters-v12 button{flex:0 0 auto;min-height:39px;padding:7px 13px;border:1px solid #d3dfea;border-radius:999px;background:#fff;color:#526a7f;font-size:13px;font-weight:750;cursor:pointer}
html[data-ui="operations"] .supplier-filters-v12 button.active{border-color:#4f8fcc;background:#4f8fcc;color:#fff;box-shadow:0 3px 8px #4f8fcc2f}
html[data-ui="operations"] .supplier-filters-v12 button span{opacity:.72}
html[data-ui="operations"] .supplier-list-v12{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
html[data-ui="operations"] .supplier-card-v12{min-width:0;overflow:hidden;border:1px solid #d7e2eb;border-radius:16px;background:#fff;box-shadow:0 3px 10px #1b2e5e0c}
html[data-ui="operations"] .supplier-card-v12.is-expanded{border-color:#a9cbe4;box-shadow:0 5px 16px #4f8fcc1e}
html[data-ui="operations"] .supplier-card-main-v12{display:grid;gap:11px;padding:15px}
html[data-ui="operations"] .supplier-card-title-v12{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}
html[data-ui="operations"] .supplier-card-title-v12>div{min-width:0}
html[data-ui="operations"] .supplier-name-row-v12{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
html[data-ui="operations"] .supplier-name-row-v12 h2{min-width:0;margin:0;color:#1d344a;font-size:16px;line-height:1.35;overflow-wrap:anywhere}
html[data-ui="operations"] .supplier-name-row-v12 span{padding:3px 6px;border:1px solid #dbe4ec;border-radius:6px;background:#f5f8fa;color:#607589;font-size:10px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:750}
html[data-ui="operations"] .supplier-tags-v12{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:7px}
html[data-ui="operations"] .supplier-tags-v12 b{padding:3px 7px;border-radius:6px;background:#eef6fd;color:#3473a6;font-size:11px}
html[data-ui="operations"] .supplier-tags-v12 small{color:#8293a3;font-size:11px}
html[data-ui="operations"] .supplier-phone-v12{display:grid;place-items:center;flex:0 0 39px;width:39px;height:39px;border:1px solid #d1dfeb;border-radius:50%;background:#f7fafc;color:#3f789f;font-size:16px;text-decoration:none}
html[data-ui="operations"] .supplier-contact-v12{display:flex;flex-wrap:wrap;gap:7px 10px;color:#657b8e;font-size:13px}
html[data-ui="operations"] .supplier-contact-v12 strong{color:#294359}
html[data-ui="operations"] .supplier-payable-v12{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid #dde6ed;border-radius:11px;background:#f7f9fb}
html[data-ui="operations"] .supplier-payable-v12.has-unpaid{border-color:#efd9a4;background:#fff9e9}
html[data-ui="operations"] .supplier-payable-v12>div{display:grid;gap:2px;min-width:0}
html[data-ui="operations"] .supplier-payable-v12 small{color:#75899a;font-size:10px;font-weight:750}
html[data-ui="operations"] .supplier-payable-v12 strong{overflow:hidden;color:#455c6f;font-size:17px;text-overflow:ellipsis;white-space:nowrap}
html[data-ui="operations"] .supplier-payable-v12.has-unpaid small,html[data-ui="operations"] .supplier-payable-v12.has-unpaid strong{color:#9c6213}
html[data-ui="operations"] .supplier-payable-v12 .btn{flex:0 0 auto;min-height:38px;padding:7px 11px;border-radius:9px;background:#fff}
html[data-ui="operations"] .supplier-payable-v12.has-unpaid .btn{border-color:#d79027;background:#d58b20;color:#fff}
html[data-ui="operations"] .supplier-toggle-v12{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:42px;padding:8px 15px;border:0;border-top:1px solid #e0e8ee;background:#f7fafc;color:#497a9e;font-size:12px;font-weight:800;cursor:pointer}
html[data-ui="operations"] .supplier-toggle-v12 b{font-size:16px}
html[data-ui="operations"] .supplier-detail-v12{display:grid;gap:10px;padding:12px 15px 15px;border-top:1px solid #e4ebf0;background:#fafcfd}
html[data-ui="operations"] .supplier-detail-v12[hidden]{display:none}
html[data-ui="operations"] .supplier-bank-v12{display:grid;gap:4px;padding:11px;border:1px solid #dbe5ed;border-radius:11px;background:#fff}
html[data-ui="operations"] .supplier-bank-v12>div{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#7c8e9d;font-size:11px}
html[data-ui="operations"] .supplier-bank-v12 button{min-height:32px;padding:4px 8px;border:0;background:transparent;color:#3d7cab;font-size:11px;font-weight:850;cursor:pointer}
html[data-ui="operations"] .supplier-bank-v12 strong{color:#294358;font-size:13px}
html[data-ui="operations"] .supplier-bank-v12 b{overflow-wrap:anywhere;color:#263d52;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:15px;letter-spacing:.03em}
html[data-ui="operations"] .supplier-bank-v12 small{color:#75899a;font-size:11px}
html[data-ui="operations"] .supplier-detail-grid-v12{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
html[data-ui="operations"] .supplier-detail-grid-v12>div{display:grid;gap:3px;min-width:0;padding:9px;border:1px solid #e0e8ee;border-radius:9px;background:#fff}
html[data-ui="operations"] .supplier-detail-grid-v12 span{color:#8393a1;font-size:10px}
html[data-ui="operations"] .supplier-detail-grid-v12 strong{overflow-wrap:anywhere;color:#2a4256;font-size:12px}
html[data-ui="operations"] .supplier-note-v12{display:grid;gap:6px;padding:9px 10px;border-radius:9px;background:#eef4f8;color:#5c7387;font-size:11px}
html[data-ui="operations"] .supplier-note-v12 p{margin:0;overflow-wrap:anywhere}
html[data-ui="operations"] .supplier-note-v12 span{margin-right:6px;color:#2f536e;font-weight:850}
html[data-ui="operations"] .supplier-actions-v12{display:grid;grid-template-columns:1fr 1fr;gap:8px}
html[data-ui="operations"] .supplier-actions-v12 .btn{min-height:42px;border-radius:10px}
html[data-ui="operations"] .supplier-empty-v12{grid-column:1/-1;display:grid;justify-items:center;gap:9px;padding:34px 18px;border:1px dashed #cbd9e5;border-radius:15px;background:#fff;text-align:center}
html[data-ui="operations"] .supplier-empty-v12 strong{color:#294258;font-size:17px}
html[data-ui="operations"] .supplier-empty-v12 span{color:#718598;font-size:13px}
html[data-ui="operations"] .supplier-guide-v12{padding:12px 14px;border:1px dashed #cad9e5;border-radius:13px;background:#ffffffb8;color:#607589}
html[data-ui="operations"] .supplier-guide-v12 strong{display:block;margin-bottom:4px;color:#335e7e;font-size:13px}
html[data-ui="operations"] .supplier-guide-v12 p{margin:0;font-size:12px;line-height:1.55}

@media(max-width:720px){
  body:has(.supplier-page-v12){overflow-x:hidden;background:#f4f7fb}
  body:has(.supplier-page-v12) .topbar-title p{display:none}
  body:has(.supplier-page-v12) .topbar-title h1{font-size:20px}
  html[data-ui="operations"] .supplier-page-v12{width:100%;max-width:460px;margin:0 auto;padding:12px 10px max(28px,env(safe-area-inset-bottom));gap:12px;overflow-x:clip}
  html[data-ui="operations"] .supplier-tools-v12{grid-template-columns:1fr auto;gap:7px}
  html[data-ui="operations"] .supplier-tools-v12 label{height:45px;padding:0 10px}
  html[data-ui="operations"] .supplier-tools-v12 input{font-size:13px}
  html[data-ui="operations"] .supplier-tools-v12>.btn{min-height:45px;padding:8px 11px;font-size:12px;white-space:nowrap}
  html[data-ui="operations"] .supplier-kpis-v12{gap:6px}
  html[data-ui="operations"] .supplier-kpis-v12>div{gap:4px;padding:10px 8px;border-radius:12px}
  html[data-ui="operations"] .supplier-kpis-v12 span{font-size:10px}
  html[data-ui="operations"] .supplier-kpis-v12 strong{font-size:16px}
  html[data-ui="operations"] .supplier-kpis-v12 em{font-size:9px}
  html[data-ui="operations"] .supplier-filters-v12{margin:0 -10px;padding-right:10px;padding-left:10px}
  html[data-ui="operations"] .supplier-filters-v12 button{min-height:38px;padding:7px 12px;font-size:12px}
  html[data-ui="operations"] .supplier-list-v12{grid-template-columns:1fr;gap:10px}
  html[data-ui="operations"] .supplier-card-main-v12{padding:13px}
  html[data-ui="operations"] .supplier-name-row-v12 h2{font-size:15px}
  html[data-ui="operations"] .supplier-payable-v12 strong{font-size:16px}
  html[data-ui="operations"] .supplier-toggle-v12{min-height:44px;padding-right:13px;padding-left:13px}
  html[data-ui="operations"] .supplier-detail-v12{padding:11px 13px 13px}
  html[data-ui="operations"] .supplier-guide-v12{padding:11px 12px}
}

@media(max-width:370px){
  html[data-ui="operations"] .supplier-page-v12{padding-right:7px;padding-left:7px}
  html[data-ui="operations"] .supplier-tools-v12{grid-template-columns:1fr}
  html[data-ui="operations"] .supplier-tools-v12>.btn{width:100%}
  html[data-ui="operations"] .supplier-kpis-v12{gap:4px}
  html[data-ui="operations"] .supplier-kpis-v12>div{padding:9px 6px}
  html[data-ui="operations"] .supplier-kpis-v12 strong{font-size:14px}
  html[data-ui="operations"] .supplier-kpis-v12 em{font-size:8px}
}

/* Stitch 13 — 客戶／會員電話速查、一次輸入快速建檔與營運卡片。 */
html[data-ui="operations"] .customer-page-v13{display:grid;gap:13px;background:#f4f7fb}
html[data-ui="operations"] .customer-search-v13{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;padding:14px;border:1px solid #dbe5ed;border-radius:15px;background:#fff;box-shadow:0 3px 10px #1b2e5e0b}
html[data-ui="operations"] .customer-search-label-v13{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px}
html[data-ui="operations"] .customer-search-label-v13 strong{color:#243e54;font-size:15px}
html[data-ui="operations"] .customer-search-label-v13 span{color:#7a8d9e;font-size:11px}
html[data-ui="operations"] .customer-search-v13>label{display:flex;align-items:center;min-width:0;height:49px;padding:0 10px;border:1px solid #ccdbe7;border-radius:12px;background:#f5f8fb}
html[data-ui="operations"] .customer-search-v13>label:focus-within{border-color:#4f8fcc;background:#fff;box-shadow:0 0 0 3px #4f8fcc20}
html[data-ui="operations"] .customer-search-v13>label>span{margin-right:8px;color:#66849b;font-size:19px}
html[data-ui="operations"] .customer-search-v13 input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#20394f;font-size:15px}
html[data-ui="operations"] .customer-search-v13>label button{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border:0;border-radius:50%;background:#e7edf2;color:#506a7e;font-size:20px;cursor:pointer}
html[data-ui="operations"] .customer-search-v13>.btn{min-height:49px;border-radius:12px;white-space:nowrap}
html[data-ui="operations"] .customer-kpis-v13{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
html[data-ui="operations"] .customer-kpis-v13>div{display:grid;gap:5px;min-width:0;padding:13px;border:1px solid #d9e4ed;border-radius:14px;background:#fff;box-shadow:0 2px 8px #1b2e5e0a}
html[data-ui="operations"] .customer-kpis-v13>div.warning{border-color:#efd49a;background:#fff9e8}
html[data-ui="operations"] .customer-kpis-v13 span{color:#6a7d8e;font-size:11px;font-weight:800}
html[data-ui="operations"] .customer-kpis-v13 strong{overflow:hidden;color:#223c52;font-size:21px;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}
html[data-ui="operations"] .customer-kpis-v13 strong small{font-size:11px}
html[data-ui="operations"] .customer-kpis-v13 em{overflow:hidden;color:#8796a4;font-size:10px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}
html[data-ui="operations"] .customer-kpis-v13 .warning span,html[data-ui="operations"] .customer-kpis-v13 .warning strong{color:#a46715}
html[data-ui="operations"] .customer-filters-v13{display:flex;gap:7px;overflow-x:auto;padding:1px 1px 3px;scrollbar-width:none}
html[data-ui="operations"] .customer-filters-v13::-webkit-scrollbar{display:none}
html[data-ui="operations"] .customer-filters-v13 button{flex:0 0 auto;min-height:39px;padding:7px 13px;border:1px solid #d3dfea;border-radius:999px;background:#fff;color:#526b80;font-size:13px;font-weight:800;cursor:pointer}
html[data-ui="operations"] .customer-filters-v13 button.active{border-color:#4f8fcc;background:#4f8fcc;color:#fff;box-shadow:0 3px 8px #4f8fcc2e}
html[data-ui="operations"] .customer-filters-v13 button span{opacity:.75}
html[data-ui="operations"] .customer-quick-create-v13{display:grid;grid-template-columns:minmax(240px,.75fr) minmax(220px,1fr) auto;gap:11px;align-items:end;padding:15px;border:1px solid #9ec9ea;border-radius:15px;background:#eaf5ff;box-shadow:0 4px 12px #4f8fcc18}
html[data-ui="operations"] .customer-quick-copy-v13{display:grid;gap:3px}
html[data-ui="operations"] .customer-quick-copy-v13>span{color:#3e739d;font-size:11px;font-weight:850}
html[data-ui="operations"] .customer-quick-copy-v13>strong{color:#173e5d;font-size:19px;letter-spacing:.03em}
html[data-ui="operations"] .customer-quick-copy-v13 p{margin:0;color:#4d6a80;font-size:11px;line-height:1.45}
html[data-ui="operations"] .customer-quick-create-v13>label{display:grid;gap:5px}
html[data-ui="operations"] .customer-quick-create-v13>label span{color:#385b75;font-size:11px;font-weight:850}
html[data-ui="operations"] .customer-quick-create-v13 input{width:100%;height:46px;border:1px solid #b9cee0;border-radius:10px;background:#fff;padding:0 11px;color:#213c53;font-size:15px}
html[data-ui="operations"] .customer-quick-create-v13>div:last-child{display:flex;gap:7px}
html[data-ui="operations"] .customer-quick-create-v13 .btn{min-height:46px;border-radius:10px;white-space:nowrap}
html[data-ui="operations"] .customer-list-head-v13{display:flex;align-items:end;justify-content:space-between;gap:10px;padding:0 2px}
html[data-ui="operations"] .customer-list-head-v13>div{display:grid;gap:2px}
html[data-ui="operations"] .customer-list-head-v13 strong{color:#20394f;font-size:17px}
html[data-ui="operations"] .customer-list-head-v13 span,html[data-ui="operations"] .customer-list-head-v13 small{color:#7c8e9e;font-size:11px}
html[data-ui="operations"] .customer-list-v13{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;align-items:start}
html[data-ui="operations"] .customer-card-v13{display:grid;gap:11px;min-width:0;padding:14px;border:1px solid #d8e3ec;border-radius:15px;background:#fff;box-shadow:0 3px 10px #1b2e5e0b}
html[data-ui="operations"] .customer-card-v13.has-overdue{border-color:#e8b5b1}
html[data-ui="operations"] .customer-card-head-v13{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center}
html[data-ui="operations"] .customer-avatar-v13{display:grid;place-items:center;width:43px;height:43px;border-radius:50%;background:#dcebf7;color:#2e628b;font-size:17px;font-weight:900}
html[data-ui="operations"] .customer-avatar-v13.wholesale{background:#52697b;color:#fff}
html[data-ui="operations"] .customer-card-head-v13>div{display:grid;gap:4px;min-width:0}
html[data-ui="operations"] .customer-card-head-v13>div>div{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
html[data-ui="operations"] .customer-card-head-v13 h2{min-width:0;margin:0;color:#1e374d;font-size:16px;line-height:1.3;overflow-wrap:anywhere}
html[data-ui="operations"] .customer-card-head-v13 b{padding:3px 7px;border-radius:999px;background:#e9eef3;color:#54697c;font-size:10px}
html[data-ui="operations"] .customer-card-head-v13 b.tier-銀卡{background:#edf0f4;color:#4f6072}
html[data-ui="operations"] .customer-card-head-v13 b.tier-金卡{background:#fff1bd;color:#775b00}
html[data-ui="operations"] .customer-card-head-v13 b.tier-VIP{background:#e9e4ff;color:#5c3ca7}
html[data-ui="operations"] .customer-card-head-v13 small{overflow-wrap:anywhere;color:#7b8d9e;font-size:10px;line-height:1.4}
html[data-ui="operations"] .customer-card-head-v13>a{display:grid;place-items:center;width:39px;height:39px;border:1px solid #d5e1ea;border-radius:50%;background:#f6f9fb;color:#3977a4;text-decoration:none}
html[data-ui="operations"] .customer-phone-v13{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;border-radius:10px;background:#f3f6f9}
html[data-ui="operations"] .customer-phone-v13>div{display:flex;align-items:center;gap:7px;min-width:0;color:#526a7d}
html[data-ui="operations"] .customer-phone-v13 strong{overflow:hidden;color:#283f53;font-size:14px;letter-spacing:.03em;text-overflow:ellipsis;white-space:nowrap}
html[data-ui="operations"] .customer-phone-v13 button{min-height:32px;padding:4px 7px;border:0;background:transparent;color:#3778a7;font-size:11px;font-weight:850;cursor:pointer}
html[data-ui="operations"] .customer-metrics-v13{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
html[data-ui="operations"] .customer-metrics-v13>div{display:grid;gap:3px;min-width:0;padding:7px 5px;border-right:1px solid #e3e9ee;text-align:center}
html[data-ui="operations"] .customer-metrics-v13>div:last-child{border-right:0}
html[data-ui="operations"] .customer-metrics-v13>div.warning{border-radius:8px;background:#fff4df}
html[data-ui="operations"] .customer-metrics-v13 span{color:#7a8b9a;font-size:9px}
html[data-ui="operations"] .customer-metrics-v13 strong{overflow-wrap:anywhere;color:#294155;font-size:12px;line-height:1.3}
html[data-ui="operations"] .customer-metrics-v13 .warning span,html[data-ui="operations"] .customer-metrics-v13 .warning strong{color:#a36510}
html[data-ui="operations"] .customer-alert-v13{padding:8px 10px;border:1px solid #f0c2bd;border-radius:9px;background:#fff0ef;color:#ac4038;font-size:11px;font-weight:800;line-height:1.45}
html[data-ui="operations"] .customer-actions-v13{display:flex;flex-wrap:wrap;gap:7px}
html[data-ui="operations"] .customer-actions-v13 .btn{flex:1 1 120px;min-height:41px;padding:7px 9px;border-radius:9px;font-size:12px}
html[data-ui="operations"] .customer-empty-v13{grid-column:1/-1;display:grid;justify-items:center;gap:8px;padding:35px 18px;border:1px dashed #c7d6e2;border-radius:14px;background:#fff;text-align:center}
html[data-ui="operations"] .customer-empty-v13 strong{color:#294257;font-size:17px}
html[data-ui="operations"] .customer-empty-v13 span{color:#738697;font-size:12px}
html[data-ui="operations"] .customer-pager-v13{display:flex;align-items:center;justify-content:center;gap:12px}
html[data-ui="operations"] .customer-pager-v13 button{width:42px;height:42px;border:1px solid #d4e0e9;border-radius:10px;background:#fff;color:#436e8d;font-size:19px;cursor:pointer}
html[data-ui="operations"] .customer-pager-v13 button:disabled{opacity:.4;cursor:not-allowed}
html[data-ui="operations"] .customer-pager-v13 span{color:#536b7e;font-size:12px;font-weight:800}

@media(max-width:720px){
  body:has(.customer-page-v13){overflow-x:hidden;background:#f4f7fb}
  body:has(.customer-page-v13) .topbar-title p{display:none}
  body:has(.customer-page-v13) .topbar-title h1{font-size:20px}
  html[data-ui="operations"] .customer-page-v13{width:100%;max-width:460px;margin:0 auto;padding:11px 10px max(28px,env(safe-area-inset-bottom));gap:11px;overflow-x:clip}
  html[data-ui="operations"] .customer-search-v13{grid-template-columns:1fr;padding:12px;gap:8px}
  html[data-ui="operations"] .customer-search-label-v13{grid-column:auto}
  html[data-ui="operations"] .customer-search-v13>label{height:50px}
  html[data-ui="operations"] .customer-search-v13>.btn{min-height:44px}
  html[data-ui="operations"] .customer-kpis-v13{gap:5px}
  html[data-ui="operations"] .customer-kpis-v13>div{padding:9px 7px}
  html[data-ui="operations"] .customer-kpis-v13 span{font-size:9px}
  html[data-ui="operations"] .customer-kpis-v13 strong{font-size:15px}
  html[data-ui="operations"] .customer-kpis-v13 em{font-size:8px}
  html[data-ui="operations"] .customer-filters-v13{margin:0 -10px;padding-right:10px;padding-left:10px}
  html[data-ui="operations"] .customer-filters-v13 button{min-height:38px;padding:7px 12px;font-size:12px}
  html[data-ui="operations"] .customer-quick-create-v13{grid-template-columns:1fr;padding:13px}
  html[data-ui="operations"] .customer-quick-create-v13>div:last-child{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr)}
  html[data-ui="operations"] .customer-quick-create-v13 .btn{min-width:0;padding:7px;font-size:11px;white-space:normal}
  html[data-ui="operations"] .customer-list-v13{grid-template-columns:1fr;gap:10px}
  html[data-ui="operations"] .customer-card-v13{gap:10px;padding:13px}
  html[data-ui="operations"] .customer-card-head-v13 h2{font-size:15px}
  html[data-ui="operations"] .customer-metrics-v13{gap:2px}
  html[data-ui="operations"] .customer-metrics-v13>div{padding:6px 3px}
  html[data-ui="operations"] .customer-metrics-v13 strong{font-size:11px}
  html[data-ui="operations"] .customer-actions-v13 .btn{min-height:44px}
}

@media(max-width:370px){
  html[data-ui="operations"] .customer-page-v13{padding-right:7px;padding-left:7px}
  html[data-ui="operations"] .customer-search-label-v13{align-items:flex-start;flex-direction:column;gap:2px}
  html[data-ui="operations"] .customer-kpis-v13>div{padding-right:5px;padding-left:5px}
  html[data-ui="operations"] .customer-kpis-v13 strong{font-size:13px}
  html[data-ui="operations"] .customer-metrics-v13{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-ui="operations"] .customer-metrics-v13>div{border-right:0;border-bottom:1px solid #e3e9ee}
  html[data-ui="operations"] .customer-metrics-v13>div:nth-last-child(-n+2){border-bottom:0}
}

/* Stitch 14 — 銷售單據手機查單中心；明細、列印與退貨仍使用正式交易流程。 */
html[data-ui="operations"] .orders-page-v14{display:grid;gap:13px;background:#f4f8fc}
html[data-ui="operations"] .order-search-v14{display:grid;grid-template-columns:minmax(300px,1fr) auto;gap:9px;padding:13px;border:1px solid #dbe5ed;border-radius:15px;background:#fff;box-shadow:0 3px 10px #1b2e5e0b}
html[data-ui="operations"] .order-search-v14>label{display:flex;align-items:center;min-width:0;height:48px;padding:0 11px;border:1px solid #ccdae6;border-radius:12px;background:#f3f7fa}
html[data-ui="operations"] .order-search-v14>label:focus-within{border-color:#4f8fcc;background:#fff;box-shadow:0 0 0 3px #4f8fcc22}
html[data-ui="operations"] .order-search-v14>label>span{margin-right:8px;color:#66839a;font-size:19px}
html[data-ui="operations"] .order-search-v14 input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#20394f;font-size:14px}
html[data-ui="operations"] .order-search-v14>label button{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border:0;border-radius:50%;background:#e5ecf2;color:#536d81;font-size:20px;cursor:pointer}
html[data-ui="operations"] .order-search-v14>nav{display:flex;gap:6px}
html[data-ui="operations"] .order-search-v14>nav button{min-height:48px;padding:8px 12px;border:1px solid #d4e0e9;border-radius:10px;background:#fff;color:#5b7082;font-size:12px;font-weight:800;cursor:pointer}
html[data-ui="operations"] .order-search-v14>nav button.active{border-color:#9bc3e1;background:#eaf4fc;color:#2f6f9e}
html[data-ui="operations"] .order-status-v14{display:flex;gap:7px;overflow-x:auto;padding:1px 1px 3px;scrollbar-width:none}
html[data-ui="operations"] .order-status-v14::-webkit-scrollbar{display:none}
html[data-ui="operations"] .order-status-v14 button{flex:0 0 auto;min-height:39px;padding:7px 13px;border:1px solid #d3dfea;border-radius:999px;background:#fff;color:#526b80;font-size:13px;font-weight:800;cursor:pointer}
html[data-ui="operations"] .order-status-v14 button.active{border-color:#4f8fcc;background:#4f8fcc;color:#fff;box-shadow:0 3px 8px #4f8fcc2e}
html[data-ui="operations"] .order-status-v14 button span{opacity:.75}
html[data-ui="operations"] .order-summary-v14{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
html[data-ui="operations"] .order-summary-v14>div{display:grid;gap:5px;min-width:0;padding:13px;border:1px solid #d9e4ed;border-radius:14px;background:#fff;box-shadow:0 2px 8px #1b2e5e0a}
html[data-ui="operations"] .order-summary-v14>div.warning{border-color:#eccca3;background:#fff9ed}
html[data-ui="operations"] .order-summary-v14 span{color:#6b7d8d;font-size:11px;font-weight:800}
html[data-ui="operations"] .order-summary-v14 strong{overflow:hidden;color:#20394f;font-size:21px;text-overflow:ellipsis;white-space:nowrap}
html[data-ui="operations"] .order-summary-v14 small{overflow:hidden;color:#8696a3;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
html[data-ui="operations"] .order-summary-v14 .warning span,html[data-ui="operations"] .order-summary-v14 .warning strong{color:#a05f13}
html[data-ui="operations"] .order-list-head-v14{display:flex;align-items:end;justify-content:space-between;gap:10px;padding:0 2px}
html[data-ui="operations"] .order-list-head-v14>div{display:grid;gap:2px}
html[data-ui="operations"] .order-list-head-v14 strong{color:#20394f;font-size:17px}
html[data-ui="operations"] .order-list-head-v14 span,html[data-ui="operations"] .order-list-head-v14 small{color:#7d8f9f;font-size:11px}
html[data-ui="operations"] .order-list-v14{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;align-items:start}
html[data-ui="operations"] .order-card-v14{display:grid;gap:0;min-width:0;padding:14px;border:1px solid #d9e3eb;border-radius:15px;background:#fff;box-shadow:0 3px 10px #1b2e5e0b}
html[data-ui="operations"] .order-card-v14.partial{border-color:#e8cf9e}
html[data-ui="operations"] .order-card-v14.refunded{border-color:#e5b8b5}
html[data-ui="operations"] .order-card-v14>header{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;padding-bottom:10px;border-bottom:1px solid #e8edf1}
html[data-ui="operations"] .order-card-v14>header>div{display:grid;gap:3px;min-width:0}
html[data-ui="operations"] .order-card-v14>header>div>div{display:flex;align-items:center;gap:5px;min-width:0}
html[data-ui="operations"] .order-card-v14>header strong{overflow-wrap:anywhere;color:#20384e;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px}
html[data-ui="operations"] .order-card-v14>header button{display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:7px;background:#f1f5f8;color:#61798d;cursor:pointer}
html[data-ui="operations"] .order-card-v14>header small{color:#8394a2;font-size:10px}
html[data-ui="operations"] .order-card-v14>header>span{flex:0 0 auto;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:850}
html[data-ui="operations"] .order-card-v14>header>span.paid{border:1px solid #b8e2cf;background:#edf9f4;color:#18724f}
html[data-ui="operations"] .order-card-v14>header>span.partial{border:1px solid #edd2a1;background:#fff6e4;color:#9c6115}
html[data-ui="operations"] .order-card-v14>header>span.refunded{border:1px solid #ecc4c0;background:#fff0ef;color:#a8453e}
html[data-ui="operations"] .order-main-v14{display:grid;gap:7px;padding:11px 0}
html[data-ui="operations"] .order-main-v14>div{display:grid;grid-template-columns:82px minmax(0,1fr);gap:8px;align-items:start}
html[data-ui="operations"] .order-main-v14 span{color:#8494a2;font-size:11px}
html[data-ui="operations"] .order-main-v14 strong{min-width:0;color:#344d61;font-size:12px;text-align:right;overflow-wrap:anywhere}
html[data-ui="operations"] .order-refund-v14{margin-bottom:10px;padding:8px 9px;border-radius:8px;background:#fff3e6;color:#a85d17;font-size:11px;font-weight:800}
html[data-ui="operations"] .order-card-v14.refunded .order-refund-v14{background:#fff0ef;color:#a7443d}
html[data-ui="operations"] .order-card-v14>footer{display:flex;align-items:end;justify-content:space-between;gap:10px;padding-top:10px;border-top:1px solid #e8edf1}
html[data-ui="operations"] .order-card-v14>footer>div:first-child{display:grid;gap:2px;min-width:0}
html[data-ui="operations"] .order-card-v14>footer>div:first-child span{color:#8494a2;font-size:10px}
html[data-ui="operations"] .order-card-v14>footer>div:first-child strong{color:#1f3b52;font-size:19px;white-space:nowrap}
html[data-ui="operations"] .order-card-v14>footer>div:last-child{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
html[data-ui="operations"] .order-card-v14>footer .btn{min-height:39px;padding:7px 9px;border-radius:9px;font-size:11px}
html[data-ui="operations"] .order-card-v14>footer .btn:disabled{opacity:.45}
html[data-ui="operations"] .order-empty-v14{grid-column:1/-1;display:grid;justify-items:center;gap:8px;padding:36px 18px;border:1px dashed #c8d7e2;border-radius:14px;background:#fff;text-align:center}
html[data-ui="operations"] .order-empty-v14 strong{color:#294257;font-size:17px}
html[data-ui="operations"] .order-empty-v14 span{color:#748797;font-size:12px}
html[data-ui="operations"] .order-pager-v14{display:flex;align-items:center;justify-content:center;gap:12px}
html[data-ui="operations"] .order-pager-v14 button{min-width:78px;height:42px;border:1px solid #d4e0e9;border-radius:10px;background:#fff;color:#436e8d;font-size:12px;font-weight:800;cursor:pointer}
html[data-ui="operations"] .order-pager-v14 button:disabled{opacity:.4;cursor:not-allowed}
html[data-ui="operations"] .order-pager-v14 span{color:#536b7e;font-size:12px;font-weight:800}
html[data-ui="operations"] .order-guide-v14{padding:11px 13px;border-radius:11px;background:#eaf1f6;color:#607688;font-size:11px;line-height:1.5;text-align:center}

@media(max-width:720px){
  body:has(.orders-page-v14){overflow-x:hidden;background:#f4f8fc}
  body:has(.orders-page-v14) .topbar-title p{display:none}
  body:has(.orders-page-v14) .topbar-title h1{font-size:20px}
  html[data-ui="operations"] .orders-page-v14{width:100%;max-width:460px;margin:0 auto;padding:11px 10px max(28px,env(safe-area-inset-bottom));gap:11px;overflow-x:clip}
  html[data-ui="operations"] .order-search-v14{grid-template-columns:1fr;padding:11px}
  html[data-ui="operations"] .order-search-v14>nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
  html[data-ui="operations"] .order-search-v14>nav button{min-height:40px;padding:6px 3px;font-size:11px}
  html[data-ui="operations"] .order-status-v14{margin:0 -10px;padding-right:10px;padding-left:10px}
  html[data-ui="operations"] .order-status-v14 button{min-height:38px;padding:7px 12px;font-size:12px}
  html[data-ui="operations"] .order-summary-v14{gap:5px}
  html[data-ui="operations"] .order-summary-v14>div{padding:9px 7px}
  html[data-ui="operations"] .order-summary-v14 span{font-size:9px}
  html[data-ui="operations"] .order-summary-v14 strong{font-size:15px}
  html[data-ui="operations"] .order-summary-v14 small{font-size:8px}
  html[data-ui="operations"] .order-list-v14{grid-template-columns:1fr;gap:10px}
  html[data-ui="operations"] .order-card-v14{padding:13px}
  html[data-ui="operations"] .order-card-v14>footer{align-items:stretch;flex-direction:column}
  html[data-ui="operations"] .order-card-v14>footer>div:last-child{display:grid;grid-template-columns:1.25fr 1fr}
  html[data-ui="operations"] .order-card-v14>footer .btn{min-height:44px;white-space:normal}
}

@media(max-width:370px){
  html[data-ui="operations"] .orders-page-v14{padding-right:7px;padding-left:7px}
  html[data-ui="operations"] .order-summary-v14>div{padding-right:5px;padding-left:5px}
  html[data-ui="operations"] .order-summary-v14 strong{font-size:13px}
  html[data-ui="operations"] .order-main-v14>div{grid-template-columns:72px minmax(0,1fr)}
}

/* Stitch screen 15: finance overview backed by the existing analytics API. */
html[data-ui="operations"] .finance-dashboard-v15{display:grid;gap:13px;background:#f4f8fc}
html[data-ui="operations"] .finance-range-v15{display:flex;flex-wrap:nowrap;width:max-content;max-width:100%;margin:0;padding:6px;border:1px solid #dbe5ed;border-radius:14px;background:#fff;box-shadow:0 3px 10px #1b2e5e0b;overflow-x:auto;scrollbar-width:none}
html[data-ui="operations"] .finance-range-v15::-webkit-scrollbar{display:none}
html[data-ui="operations"] .finance-range-v15 .finance-range{min-width:68px;min-height:40px;padding:7px 13px;border-radius:10px;color:#63788a;font-size:13px;font-weight:850;white-space:nowrap;cursor:pointer}
html[data-ui="operations"] .finance-range-v15 .finance-range.active{background:#4f8fcc;color:#fff;box-shadow:0 3px 8px #4f8fcc30}
html[data-ui="operations"] .finance-group-v15{display:grid;gap:12px;padding:16px;border:1px solid #dce5ec;border-radius:17px;background:#eef4f8;box-shadow:0 3px 12px #1b2e5e0a}
html[data-ui="operations"] .finance-group-v15>header{display:flex;align-items:center;justify-content:space-between;gap:10px}
html[data-ui="operations"] .finance-group-v15>header>div{display:flex;align-items:center;gap:8px;min-width:0}
html[data-ui="operations"] .finance-group-v15>header i{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:9px;background:#dbeeff;color:#347bb3;font-size:15px;font-style:normal;font-weight:900}
html[data-ui="operations"] .finance-group-v15>header h2{margin:0;color:#1c3449;font-size:17px;line-height:1.25}
html[data-ui="operations"] .finance-group-v15>header>span{flex:0 0 auto;padding:4px 9px;border-radius:999px;background:#dcebf5;color:#44667f;font-size:10px;font-weight:800}
html[data-ui="operations"] .finance-kpi-grid-v15{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
html[data-ui="operations"] .finance-kpi-grid-v15.two{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-ui="operations"] .finance-kpi-v15{position:relative;display:flex;min-width:0;min-height:124px;flex-direction:column;justify-content:space-between;padding:14px;border:1px solid #e0e8ee;border-radius:13px;background:#fff;box-shadow:0 3px 9px #1b2e5e09;overflow:hidden}
html[data-ui="operations"] .finance-kpi-v15::before{position:absolute;inset:0 0 auto;height:4px;background:#7c94a8;content:""}
html[data-ui="operations"] .finance-kpi-v15.revenue::before{background:#4f8fcc}
html[data-ui="operations"] .finance-kpi-v15.orders::before{background:#759ab8}
html[data-ui="operations"] .finance-kpi-v15.average::before{background:#7d8da0}
html[data-ui="operations"] .finance-kpi-v15.discount::before{background:#a9b7c3}
html[data-ui="operations"] .finance-kpi-v15.profit::before{background:#3f83b6}
html[data-ui="operations"] .finance-kpi-v15.waste::before{background:#dc6d65}
html[data-ui="operations"] .finance-kpi-v15>span{color:#667d90;font-size:12px;font-weight:800}
html[data-ui="operations"] .finance-kpi-v15>strong{display:block;overflow-wrap:anywhere;color:#1d354a;font-size:clamp(19px,2vw,27px);line-height:1.15}
html[data-ui="operations"] .finance-kpi-v15.profit>strong{color:#2974aa}
html[data-ui="operations"] .finance-kpi-v15.waste>span,html[data-ui="operations"] .finance-kpi-v15.waste>strong,html[data-ui="operations"] .finance-kpi-v15.waste>small{color:#af4e48}
html[data-ui="operations"] .finance-kpi-v15>small{color:#8192a0;font-size:10px;line-height:1.4}
html[data-ui="operations"] .finance-period-list-v15{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
html[data-ui="operations"] .finance-period-list-v15 article{display:grid;gap:9px;padding:14px;border:1px solid #e0e8ee;border-radius:13px;background:#fff;box-shadow:0 3px 9px #1b2e5e09}
html[data-ui="operations"] .finance-period-list-v15 article>div,html[data-ui="operations"] .finance-period-list-v15 article>footer{display:flex;align-items:center;justify-content:space-between;gap:8px}
html[data-ui="operations"] .finance-period-list-v15 article>div strong{color:#243d52;font-size:13px}
html[data-ui="operations"] .finance-period-list-v15 article>div strong small{color:#788b9b;font-size:10px;font-weight:700}
html[data-ui="operations"] .finance-period-list-v15 article>div b{color:#286fa4;font-size:15px;white-space:nowrap}
html[data-ui="operations"] .finance-period-list-v15 article>span{height:7px;border-radius:999px;background:#e3ebf1;overflow:hidden}
html[data-ui="operations"] .finance-period-list-v15 article>span i{display:block;height:100%;border-radius:inherit;background:#4f8fcc}
html[data-ui="operations"] .finance-period-list-v15 article>footer small{color:#7b8e9e;font-size:10px}
html[data-ui="operations"] .finance-more-v15{border:1px solid #d9e4ec;border-radius:16px;background:#fff;box-shadow:0 3px 10px #1b2e5e0b;overflow:hidden}
html[data-ui="operations"] .finance-more-v15>summary{display:flex;min-height:62px;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;list-style:none;cursor:pointer}
html[data-ui="operations"] .finance-more-v15>summary::-webkit-details-marker{display:none}
html[data-ui="operations"] .finance-more-v15>summary span{display:grid;gap:3px}
html[data-ui="operations"] .finance-more-v15>summary strong{color:#203a50;font-size:15px}
html[data-ui="operations"] .finance-more-v15>summary small{color:#718799;font-size:11px}
html[data-ui="operations"] .finance-more-v15>summary>i{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#edf4f9;color:#477796;font-size:20px;font-style:normal;transition:transform .2s}
html[data-ui="operations"] .finance-more-v15[open]>summary>i{transform:rotate(180deg)}
html[data-ui="operations"] .finance-more-body-v15{display:grid;gap:13px;padding:0 13px 13px;border-top:1px solid #e5ecf1;background:#f7fafc}
html[data-ui="operations"] .finance-more-body-v15>*:first-child{margin-top:13px}
html[data-ui="operations"] .finance-detail-grid-v15{display:grid;grid-template-columns:1fr 1.15fr;gap:13px}
html[data-ui="operations"] .finance-detail-grid-v15.bottom{grid-template-columns:.9fr 1.1fr}
html[data-ui="operations"] .finance-more-v15 .finance-query-panel{margin:0}
html[data-ui="operations"] .finance-shortcuts-v15{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;padding:7px;border:1px solid #dce5ec;border-radius:15px;background:#fff}
html[data-ui="operations"] .finance-shortcuts-v15 button{display:flex;min-height:48px;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:10px;background:transparent;color:#607587;font-size:12px;font-weight:850;cursor:pointer}
html[data-ui="operations"] .finance-shortcuts-v15 button:hover,html[data-ui="operations"] .finance-shortcuts-v15 button.active{border-color:#b8d4e8;background:#eaf4fb;color:#2f73a5}
html[data-ui="operations"] .finance-shortcuts-v15 button b{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#dcecf8;color:#3477a8}

@media(max-width:900px){
  html[data-ui="operations"] .finance-kpi-grid-v15{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-ui="operations"] .finance-detail-grid-v15,html[data-ui="operations"] .finance-detail-grid-v15.bottom{grid-template-columns:1fr}
}

@media(max-width:720px){
  body:has(.finance-dashboard-v15){overflow-x:hidden;background:#f4f8fc}
  body:has(.finance-dashboard-v15) .topbar-title p{display:none}
  body:has(.finance-dashboard-v15) .topbar-title h1{font-size:20px}
  html[data-ui="operations"] .finance-dashboard-v15{width:100%;max-width:460px;margin:0 auto;padding:11px 10px calc(82px + env(safe-area-inset-bottom));gap:11px;overflow-x:clip}
  html[data-ui="operations"] .finance-range-v15{width:calc(100% + 20px);max-width:none;margin:0 -10px;padding:2px 10px;border:0;border-radius:0;background:transparent;box-shadow:none;gap:4px}
  html[data-ui="operations"] .finance-range-v15 .finance-range{flex:1 0 53px;min-width:53px;min-height:38px;padding:6px 5px;border:1px solid #dbe5ed;border-radius:999px;background:#fff;font-size:12px}
  html[data-ui="operations"] .finance-range-v15 .finance-range.active{background:#4f8fcc;color:#fff}
  html[data-ui="operations"] .finance-group-v15{gap:10px;padding:13px;border-radius:15px}
  html[data-ui="operations"] .finance-group-v15>header h2{font-size:16px}
  html[data-ui="operations"] .finance-group-v15>header>span{padding:3px 7px;font-size:9px}
  html[data-ui="operations"] .finance-kpi-grid-v15,html[data-ui="operations"] .finance-kpi-grid-v15.two{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  html[data-ui="operations"] .finance-kpi-v15{min-height:112px;padding:12px}
  html[data-ui="operations"] .finance-kpi-v15>strong{font-size:clamp(18px,5.2vw,23px)}
  html[data-ui="operations"] .finance-period-list-v15{grid-template-columns:1fr;gap:8px}
  html[data-ui="operations"] .finance-period-list-v15 article{gap:7px;padding:12px}
  html[data-ui="operations"] .finance-more-v15>summary{min-height:58px;padding:10px 12px}
  html[data-ui="operations"] .finance-more-v15 .finance-query-head{display:grid;gap:9px;padding:13px}
  html[data-ui="operations"] .finance-more-v15 .finance-query-head .search{width:100%;min-height:44px}
  html[data-ui="operations"] .finance-more-v15 .panel{padding:12px}
  html[data-ui="operations"] .finance-more-v15 .table-wrap{max-width:100%;overflow-x:auto}
  html[data-ui="operations"] .finance-shortcuts-v15{position:fixed;z-index:42;right:0;bottom:0;left:0;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:5px 4px calc(5px + env(safe-area-inset-bottom));border-width:1px 0 0;border-radius:0;background:#fffffff2;box-shadow:0 -4px 16px #17334d14;backdrop-filter:blur(14px)}
  html[data-ui="operations"] .finance-shortcuts-v15 button{min-width:0;min-height:54px;flex-direction:column;gap:2px;padding:3px 1px;font-size:9px;line-height:1.1}
  html[data-ui="operations"] .finance-shortcuts-v15 button b{width:25px;height:25px}
}

@media(max-width:370px){
  html[data-ui="operations"] .finance-dashboard-v15{padding-right:7px;padding-left:7px}
  html[data-ui="operations"] .finance-range-v15{width:calc(100% + 14px);margin-right:-7px;margin-left:-7px;padding-right:7px;padding-left:7px}
  html[data-ui="operations"] .finance-group-v15{padding:11px}
  html[data-ui="operations"] .finance-kpi-v15{min-height:108px;padding:11px}
  html[data-ui="operations"] .finance-kpi-v15>strong{font-size:18px}
}

/* Stitch screen 16: accounts payable work queue using real purchase receipts. */
html[data-ui="operations"] .payables-page-v16{display:grid;gap:13px;background:#f4f8fc}
html[data-ui="operations"] .payables-head-v16{display:flex;align-items:center;justify-content:space-between;gap:14px}
html[data-ui="operations"] .payables-head-v16 h1{margin:0;color:#1d354a;font-size:20px}
html[data-ui="operations"] .payables-head-v16 p{margin:3px 0 0;color:#6b8193;font-size:12px}
html[data-ui="operations"] .payables-head-v16>.btn{min-height:42px;white-space:nowrap}
html[data-ui="operations"] .payable-kpis-v16{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
html[data-ui="operations"] .payable-kpis-v16 article{position:relative;display:grid;gap:7px;min-width:0;min-height:112px;padding:14px;border:1px solid #dce5ec;border-radius:14px;background:#fff;box-shadow:0 3px 10px #1b2e5e0b;overflow:hidden}
html[data-ui="operations"] .payable-kpis-v16 article::before{position:absolute;inset:0 0 auto;height:4px;background:#7f9bb2;content:""}
html[data-ui="operations"] .payable-kpis-v16 article.overdue::before{background:#df6b64}
html[data-ui="operations"] .payable-kpis-v16 article.due::before{background:#da9b48}
html[data-ui="operations"] .payable-kpis-v16 article.pending::before{background:#4f8fcc}
html[data-ui="operations"] .payable-kpis-v16 article.paid::before{background:#64a486}
html[data-ui="operations"] .payable-kpis-v16 span{color:#687f91;font-size:11px;font-weight:800}
html[data-ui="operations"] .payable-kpis-v16 strong{overflow-wrap:anywhere;color:#213b51;font-size:clamp(18px,2vw,25px);line-height:1.15}
html[data-ui="operations"] .payable-kpis-v16 .overdue strong{color:#b74f49}
html[data-ui="operations"] .payable-kpis-v16 small{align-self:end;color:#8393a0;font-size:10px;line-height:1.35}
html[data-ui="operations"] .payable-tools-v16{padding:11px;border:1px solid #dce5ec;border-radius:14px;background:#fff;box-shadow:0 3px 10px #1b2e5e0b}
html[data-ui="operations"] .payable-tools-v16 label{display:flex;align-items:center;height:46px;padding:0 11px;border:1px solid #cedce6;border-radius:11px;background:#f2f7fa}
html[data-ui="operations"] .payable-tools-v16 label:focus-within{border-color:#4f8fcc;background:#fff;box-shadow:0 0 0 3px #4f8fcc20}
html[data-ui="operations"] .payable-tools-v16 label>span{margin-right:8px;color:#66839a;font-size:19px}
html[data-ui="operations"] .payable-tools-v16 input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#20394f;font-size:14px}
html[data-ui="operations"] .payable-tools-v16 label button{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border:0;border-radius:50%;background:#e2ebf1;color:#597286;font-size:20px;cursor:pointer}
html[data-ui="operations"] .payable-filters-v16{display:flex;gap:7px;overflow-x:auto;padding:1px 0 3px;scrollbar-width:none}
html[data-ui="operations"] .payable-filters-v16::-webkit-scrollbar{display:none}
html[data-ui="operations"] .payable-filters-v16 button{display:flex;align-items:center;gap:5px;min-height:40px;padding:7px 13px;border:1px solid #d8e3eb;border-radius:999px;background:#fff;color:#5f7587;font-size:12px;font-weight:850;white-space:nowrap;cursor:pointer}
html[data-ui="operations"] .payable-filters-v16 button span{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#edf3f7;font-size:10px}
html[data-ui="operations"] .payable-filters-v16 button.active{border-color:#8fbbda;background:#4f8fcc;color:#fff}
html[data-ui="operations"] .payable-filters-v16 button.active span{background:#ffffff2e;color:#fff}
html[data-ui="operations"] .payable-filters-v16 button.alert:not(.active){border-color:#efc1be;background:#fff1f0;color:#a94842}
html[data-ui="operations"] .payable-list-head-v16{display:flex;align-items:end;justify-content:space-between;gap:10px}
html[data-ui="operations"] .payable-list-head-v16>div{display:grid;gap:2px}
html[data-ui="operations"] .payable-list-head-v16 strong{color:#233d52;font-size:16px}
html[data-ui="operations"] .payable-list-head-v16 span,html[data-ui="operations"] .payable-list-head-v16 small{color:#7a8d9d;font-size:11px}
html[data-ui="operations"] .payable-list-v16{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
html[data-ui="operations"] .payable-card-v16{position:relative;display:grid;min-width:0;border:1px solid #dce5ec;border-radius:15px;background:#fff;box-shadow:0 3px 11px #1b2e5e0b;overflow:hidden}
html[data-ui="operations"] .payable-card-v16::before{position:absolute;inset:0 auto 0 0;width:5px;background:#93a9ba;content:""}
html[data-ui="operations"] .payable-card-v16.overdue::before{background:#dc625b}
html[data-ui="operations"] .payable-card-v16.due::before{background:#d69843}
html[data-ui="operations"] .payable-card-v16.paid::before{background:#65a486}
html[data-ui="operations"] .payable-card-v16.unlinked::before{background:#a58a63}
html[data-ui="operations"] .payable-card-v16>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 13px 9px 17px;border-bottom:1px solid #e7edf2}
html[data-ui="operations"] .payable-card-v16>header>div{display:flex;flex-wrap:wrap;gap:6px}
html[data-ui="operations"] .payable-card-v16>header span{padding:4px 7px;border-radius:7px;background:#edf3f7;color:#5b7285;font-size:10px;font-weight:850}
html[data-ui="operations"] .payable-card-v16.overdue>header .status{background:#fff0ef;color:#a9433e}
html[data-ui="operations"] .payable-card-v16.due>header .status{background:#fff5e5;color:#9b641c}
html[data-ui="operations"] .payable-card-v16.paid>header .status{background:#edf9f4;color:#227152}
html[data-ui="operations"] .payable-card-v16.unlinked>header .status{background:#f8f1e8;color:#80613a}
html[data-ui="operations"] .payable-card-v16>header>i{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:50%;background:#edf3f7;color:#617a8c;font-style:normal;font-weight:900}
html[data-ui="operations"] .payable-card-v16.overdue>header>i{background:#fff0ef;color:#b3453f}
html[data-ui="operations"] .payable-card-v16>section{display:grid;gap:8px;padding:12px 13px 12px 17px}
html[data-ui="operations"] .payable-card-v16 h2{margin:0;color:#20394f;font-size:16px;line-height:1.3;overflow-wrap:anywhere}
html[data-ui="operations"] .payable-card-v16 p{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:0;color:#788b9b;font-size:11px}
html[data-ui="operations"] .payable-card-v16 p strong{color:#49667e;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere}
html[data-ui="operations"] .payable-card-v16 p button{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:8px;background:#edf3f7;color:#56738a;cursor:pointer}
html[data-ui="operations"] .payable-receipt-v16{display:grid;gap:4px;padding:9px 10px;border-radius:10px;background:#f2f6f9;color:#61798c;font-size:11px;line-height:1.4}
html[data-ui="operations"] .payable-receipt-v16 b{font-size:10px}
html[data-ui="operations"] .payable-receipt-v16 b.ready{color:#257455}
html[data-ui="operations"] .payable-receipt-v16 b.missing{color:#a75b2c}
html[data-ui="operations"] .payable-amount-v16{display:grid;grid-template-columns:1fr auto;gap:3px 10px;align-items:end;padding-top:3px}
html[data-ui="operations"] .payable-amount-v16>span{color:#718596;font-size:10px;font-weight:800}
html[data-ui="operations"] .payable-amount-v16>strong{grid-row:1/3;grid-column:2;color:#213b51;font-size:21px;white-space:nowrap}
html[data-ui="operations"] .payable-card-v16.overdue .payable-amount-v16>strong{color:#b34b45}
html[data-ui="operations"] .payable-amount-v16>small{color:#7e909f;font-size:10px;line-height:1.4}
html[data-ui="operations"] .payable-card-v16>footer{display:grid;grid-template-columns:1fr 1.2fr;gap:7px;padding:10px 13px 12px 17px;border-top:1px solid #e7edf2}
html[data-ui="operations"] .payable-card-v16>footer .btn{min-height:43px;padding:7px 9px;border-radius:9px;font-size:11px;white-space:normal}
html[data-ui="operations"] .payable-card-v16 .paid-note{display:flex;align-items:center;justify-content:center;color:#277256;font-size:11px;font-weight:850;text-align:center}
html[data-ui="operations"] .payable-empty-v16{grid-column:1/-1;display:grid;justify-items:center;gap:7px;padding:36px 18px;border:1px dashed #c9d8e2;border-radius:14px;background:#fff;text-align:center}
html[data-ui="operations"] .payable-empty-v16 strong{color:#294357;font-size:16px}
html[data-ui="operations"] .payable-empty-v16 span{color:#748899;font-size:12px}
html[data-ui="operations"] .payable-pager-v16{display:flex;align-items:center;justify-content:center;gap:12px}
html[data-ui="operations"] .payable-pager-v16 button{min-width:78px;height:42px;border:1px solid #d4e0e9;border-radius:10px;background:#fff;color:#436e8d;font-size:12px;font-weight:800;cursor:pointer}
html[data-ui="operations"] .payable-pager-v16 button:disabled{opacity:.4}
html[data-ui="operations"] .payable-pager-v16 span{color:#536b7e;font-size:12px;font-weight:800}
html[data-ui="operations"] .payable-guard-v16{display:flex;align-items:flex-start;gap:8px;padding:12px 14px;border-radius:12px;background:#dfeef7;color:#45667e;font-size:11px;line-height:1.5}
html[data-ui="operations"] .payable-guard-v16 strong{flex:0 0 auto;color:#2f5f82}
/* Stitch screen 17: priority grouping layered on the existing payable workflow. */
html[data-ui="operations"] .payable-group-v17{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:3px;padding:8px 11px;border-left:4px solid #7f9bb2;border-radius:9px;background:#eaf2f8;color:#314f67}
html[data-ui="operations"] .payable-group-v17>div{display:grid;gap:2px;min-width:0}
html[data-ui="operations"] .payable-group-v17 strong{font-size:13px;line-height:1.25}
html[data-ui="operations"] .payable-group-v17 span{color:#708596;font-size:10px;line-height:1.35}
html[data-ui="operations"] .payable-group-v17>b{flex:0 0 auto;padding:4px 7px;border-radius:999px;background:#fff;color:#5b7182;font-size:10px}
html[data-ui="operations"] .payable-group-v17.overdue{border-left-color:#dc625b;background:#fff0ef;color:#a9433e}
html[data-ui="operations"] .payable-group-v17.due{border-left-color:#d69843;background:#fff5e5;color:#946019}
html[data-ui="operations"] .payable-group-v17.unlinked{border-left-color:#a58a63;background:#f8f1e8;color:#765a38}
html[data-ui="operations"] .payable-group-v17.paid{border-left-color:#65a486;background:#edf9f4;color:#276d53}

@media(max-width:900px){
  html[data-ui="operations"] .payable-kpis-v16{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-ui="operations"] .payable-list-v16{grid-template-columns:1fr}
}

@media(max-width:720px){
  body:has(.payables-page-v16){overflow-x:hidden;background:#f4f8fc}
  body:has(.payables-page-v16) .topbar-title p{display:none}
  body:has(.payables-page-v16) .topbar-title h1{font-size:19px}
  html[data-ui="operations"] .payables-page-v16{width:100%;max-width:460px;margin:0 auto;padding:11px 10px calc(82px + env(safe-area-inset-bottom));gap:11px;overflow-x:clip}
  html[data-ui="operations"] .payables-head-v16{align-items:flex-start}
  html[data-ui="operations"] .payables-head-v16 h1{font-size:18px}
  html[data-ui="operations"] .payables-head-v16 p{font-size:10px;line-height:1.4}
  html[data-ui="operations"] .payables-head-v16>.btn{min-height:44px;padding:7px 10px;font-size:11px}
  html[data-ui="operations"] .payable-kpis-v16{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  html[data-ui="operations"] .payable-kpis-v16 article{min-height:105px;padding:12px}
  html[data-ui="operations"] .payable-kpis-v16 strong{font-size:clamp(17px,5vw,21px)}
  html[data-ui="operations"] .payable-tools-v16{padding:9px}
  html[data-ui="operations"] .payable-tools-v16 label{height:46px}
  html[data-ui="operations"] .payable-filters-v16{margin:0 -10px;padding-right:10px;padding-left:10px}
  html[data-ui="operations"] .payable-filters-v16 button{min-height:40px}
  html[data-ui="operations"] .payable-list-v16{grid-template-columns:1fr;gap:10px}
  html[data-ui="operations"] .payable-card-v16>footer .btn{min-height:46px}
  html[data-ui="operations"] .payable-group-v17{margin-top:2px;padding:8px 10px}
  html[data-ui="operations"] .payable-group-v17 strong{font-size:12px}
  html[data-ui="operations"] .payable-guard-v16{display:grid;gap:4px}
}

@media(max-width:370px){
  html[data-ui="operations"] .payables-page-v16{padding-right:7px;padding-left:7px}
  html[data-ui="operations"] .payable-filters-v16{margin-right:-7px;margin-left:-7px;padding-right:7px;padding-left:7px}
  html[data-ui="operations"] .payable-kpis-v16 article{padding:10px}
  html[data-ui="operations"] .payable-kpis-v16 strong{font-size:17px}
  html[data-ui="operations"] .payable-card-v16>section{padding-right:11px;padding-left:15px}
}

/* Stitch screen 18: real wholesale order editor, retaining the formal stock and AR flow. */
html[data-ui="operations"] .wholesale-backdrop-v18{padding:14px;background:#15243899}
html[data-ui="operations"] .wholesale-editor-v18{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(1120px,100%);height:min(920px,calc(100vh - 28px));max-height:none;margin:auto;padding:0;border:1px solid #dce6ee;border-radius:18px;background:#f3f8fc;overflow:hidden}
html[data-ui="operations"] .wholesale-editor-head-v18{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid #dce6ee;background:#fff}
html[data-ui="operations"] .wholesale-editor-head-v18>div{min-width:0}
html[data-ui="operations"] .wholesale-editor-head-v18 small{color:#4d86b1;font-size:10px;font-weight:850}
html[data-ui="operations"] .wholesale-editor-head-v18 h2{margin:2px 0 0;color:#20394f;font-size:21px}
html[data-ui="operations"] .wholesale-editor-head-v18 p{margin:3px 0 0;color:#718798;font-size:11px}
html[data-ui="operations"] .wholesale-editor-head-v18>.btn{flex:0 0 auto;min-height:42px}
html[data-ui="operations"] .wholesale-editor-scroll-v18{display:grid;gap:12px;padding:14px 16px 22px;overflow:auto;overscroll-behavior:contain}
html[data-ui="operations"] .wholesale-rule-v18{display:flex;align-items:flex-start;gap:9px;padding:11px 13px;border:1px solid #cfe0ee;border-radius:12px;background:#e9f4fb;color:#49697f;font-size:11px;line-height:1.5}
html[data-ui="operations"] .wholesale-rule-v18 b{flex:0 0 auto;color:#2f6288}
html[data-ui="operations"] .wholesale-progress-v18{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;padding:10px;border:1px solid #dce6ee;border-radius:13px;background:#fff}
html[data-ui="operations"] .wholesale-progress-v18 span{position:relative;display:grid;justify-items:center;gap:4px;color:#8798a5}
html[data-ui="operations"] .wholesale-progress-v18 span:not(:last-child)::after{position:absolute;top:13px;left:calc(50% + 16px);width:calc(100% - 32px);height:2px;background:#e1e9ef;content:""}
html[data-ui="operations"] .wholesale-progress-v18 b{display:grid;place-items:center;z-index:1;width:27px;height:27px;border-radius:50%;background:#edf2f6;font-size:11px}
html[data-ui="operations"] .wholesale-progress-v18 small{font-size:10px;font-weight:800;text-align:center}
html[data-ui="operations"] .wholesale-progress-v18 .done{color:#2b789f}
html[data-ui="operations"] .wholesale-progress-v18 .done b{background:#4f8fcc;color:#fff}
html[data-ui="operations"] .wholesale-progress-v18 .done:not(:last-child)::after{background:#9fc8df}
html[data-ui="operations"] .wholesale-progress-v18 .current{color:#a76c1b}
html[data-ui="operations"] .wholesale-progress-v18 .current b{outline:2px solid #e3a34c;background:#fff5e6;color:#9a6218}
html[data-ui="operations"] .wholesale-section-v18{display:grid;gap:11px;padding:14px;border:1px solid #dce6ee;border-radius:14px;background:#fff;box-shadow:0 3px 10px #1b2e5e0a}
html[data-ui="operations"] .wholesale-section-v18>header{display:flex;align-items:center;justify-content:space-between;gap:9px}
html[data-ui="operations"] .wholesale-section-v18>header>div{display:flex;align-items:center;gap:8px}
html[data-ui="operations"] .wholesale-section-v18>header i{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#dfeef8;color:#3273a0;font-size:11px;font-style:normal;font-weight:900}
html[data-ui="operations"] .wholesale-section-v18>header h3{margin:0;color:#263f53;font-size:15px}
html[data-ui="operations"] .wholesale-section-v18>header h3 small{margin-left:5px;color:#7c8f9e;font-size:10px;font-weight:700}
html[data-ui="operations"] .wholesale-section-v18>header button{min-height:36px;padding:5px 9px;border:0;border-radius:8px;background:#e9f3fa;color:#376f96;font-size:10px;font-weight:850;cursor:pointer}
html[data-ui="operations"] .wholesale-customer-v18{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:11px;border:1px solid #cce0ed;border-radius:11px;background:#f2f8fc}
html[data-ui="operations"] .wholesale-customer-v18>div:first-child{display:grid;gap:4px;min-width:0}
html[data-ui="operations"] .wholesale-customer-v18>div:first-child strong{overflow-wrap:anywhere;color:#213b50;font-size:14px}
html[data-ui="operations"] .wholesale-customer-v18>div:first-child span{color:#748896;font-size:10px}
html[data-ui="operations"] .wholesale-customer-v18>div:last-child{display:grid;grid-template-columns:repeat(2,minmax(110px,1fr));gap:7px}
html[data-ui="operations"] .wholesale-customer-v18>div:last-child span{display:grid;gap:3px;padding:7px 9px;border-radius:9px;background:#fff;color:#8092a0;font-size:9px}
html[data-ui="operations"] .wholesale-customer-v18>div:last-child b{color:#2f526c;font-size:11px}
html[data-ui="operations"] .wholesale-item-tools-v18{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none}
html[data-ui="operations"] .wholesale-item-tools-v18 button{min-height:42px;padding:7px 11px;border:1px solid #cedde7;border-radius:9px;background:#f5f9fc;color:#426c88;font-size:11px;font-weight:850;white-space:nowrap;cursor:pointer}
html[data-ui="operations"] .wholesale-items-v18{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
html[data-ui="operations"] .wholesale-item-v18{position:relative;display:grid;grid-template-columns:58px minmax(0,1fr);gap:10px;min-width:0;padding:11px 37px 11px 11px;border:1px solid #d7e3eb;border-radius:12px;background:#fff}
html[data-ui="operations"] .wholesale-item-v18.invalid{border-color:#e7a9a5;background:#fff8f7}
html[data-ui="operations"] .wholesale-item-photo-v18{display:grid;place-items:center;width:58px;height:58px;border-radius:10px;background:#f0f5f8;font-size:28px;overflow:hidden}
html[data-ui="operations"] .wholesale-item-photo-v18 img{width:100%;height:100%;object-fit:contain}
html[data-ui="operations"] .wholesale-item-body-v18{display:grid;gap:6px;min-width:0}
html[data-ui="operations"] .wholesale-item-body-v18>label{display:grid;gap:3px;color:#7c8e9b;font-size:9px}
html[data-ui="operations"] .wholesale-item-body-v18>label input{height:36px;min-width:0;padding:6px 8px;border:1px solid #d3e0e9;border-radius:8px;font-size:12px}
html[data-ui="operations"] .wholesale-item-body-v18 h3{min-height:18px;margin:0;color:#273f52;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
html[data-ui="operations"] .wholesale-stock-v18{display:flex;flex-wrap:wrap;gap:5px 10px;color:#748896;font-size:9px}
html[data-ui="operations"] .wholesale-stock-v18 b{color:#3d657f}
html[data-ui="operations"] .wholesale-line-controls-v18{display:grid;grid-template-columns:auto minmax(80px,1fr) auto;align-items:end;gap:8px}
html[data-ui="operations"] .wholesale-line-controls-v18>div,html[data-ui="operations"] .wholesale-line-controls-v18>label{display:grid;gap:3px;min-width:0}
html[data-ui="operations"] .wholesale-line-controls-v18 small{color:#7b8d9b;font-size:9px}
html[data-ui="operations"] .wholesale-line-controls-v18>label input{width:100%;height:35px;padding:5px 7px;border:1px solid #d2dee7;border-radius:8px;font-size:12px}
html[data-ui="operations"] .wholesale-line-controls-v18>strong{padding-bottom:7px;color:#2c5774;font-size:13px;white-space:nowrap}
html[data-ui="operations"] .wholesale-stepper-v18{display:flex;align-items:center}
html[data-ui="operations"] .wholesale-stepper-v18 button{width:35px;height:35px;border:1px solid #d2dee7;background:#eef5f9;color:#347aa7;font-weight:900;cursor:pointer}
html[data-ui="operations"] .wholesale-stepper-v18 button:first-child{border-radius:8px 0 0 8px}
html[data-ui="operations"] .wholesale-stepper-v18 button:last-child{border-radius:0 8px 8px 0}
html[data-ui="operations"] .wholesale-stepper-v18 input{width:44px;height:35px;padding:4px;border:1px solid #d2dee7;border-right:0;border-left:0;text-align:center;font-weight:850}
html[data-ui="operations"] .wholesale-stepper-v18 input[type="number"]{-moz-appearance:textfield}
html[data-ui="operations"] .wholesale-stepper-v18 input[type="number"]::-webkit-inner-spin-button,html[data-ui="operations"] .wholesale-stepper-v18 input[type="number"]::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}
html[data-ui="operations"] .wholesale-remove-v18{position:absolute;top:9px;right:9px;display:grid;place-items:center;width:27px;height:27px;border:0;border-radius:50%;background:#f5eded;color:#a45c58;font-size:18px;cursor:pointer}
html[data-ui="operations"] .wholesale-payment-v18{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
html[data-ui="operations"] .wholesale-payment-v18 button{display:grid;gap:3px;min-height:58px;padding:8px;border:1px solid #d5e1e9;border-radius:10px;background:#f8fafc;color:#5a7183;text-align:left;cursor:pointer}
html[data-ui="operations"] .wholesale-payment-v18 button b{font-size:11px}
html[data-ui="operations"] .wholesale-payment-v18 button small{font-size:9px;line-height:1.35}
html[data-ui="operations"] .wholesale-payment-v18 button.active{border:2px solid #4f8fcc;background:#eaf4fb;color:#2d668e}
html[data-ui="operations"] .wholesale-form-grid-v18{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
html[data-ui="operations"] .wholesale-expiry-check-v18{min-height:46px;padding:9px 11px;border:1px solid #ead5a4;border-radius:10px;background:#fff9e9;color:#75551d;font-size:11px}
html[data-ui="operations"] .wholesale-summary-v18{display:grid;gap:7px;padding:14px;border:1px solid #ccdeeb;border-radius:14px;background:#fff}
html[data-ui="operations"] .wholesale-summary-v18>div{display:flex;align-items:center;justify-content:space-between;color:#708494;font-size:11px}
html[data-ui="operations"] .wholesale-summary-v18 .total{padding-top:9px;border-top:1px solid #e3eaf0;color:#253f53;font-size:14px;font-weight:850}
html[data-ui="operations"] .wholesale-summary-v18 .total strong{color:#357bad;font-size:22px}
html[data-ui="operations"] .wholesale-summary-v18>small{color:#8494a0;font-size:9px;line-height:1.4}
html[data-ui="operations"] .wholesale-recent-v18{display:grid;gap:7px;padding:13px;border:1px solid #dce6ee;border-radius:13px;background:#fff}
html[data-ui="operations"] .wholesale-recent-v18>header,html[data-ui="operations"] .wholesale-recent-v18>div{display:flex;align-items:center;justify-content:space-between;gap:10px}
html[data-ui="operations"] .wholesale-recent-v18 h3{margin:0;color:#344f64;font-size:13px}
html[data-ui="operations"] .wholesale-recent-v18>header span{color:#81929f;font-size:10px}
html[data-ui="operations"] .wholesale-recent-v18>div{padding:7px 9px;border-radius:8px;background:#f4f7f9;font-size:10px}
html[data-ui="operations"] .wholesale-recent-v18>div>span{display:grid;gap:2px;color:#788b99}
html[data-ui="operations"] .wholesale-recent-v18>div b{color:#3c5c73}
html[data-ui="operations"] .wholesale-recent-v18>p{margin:0;color:#7f909c;font-size:11px}
html[data-ui="operations"] .wholesale-editor-foot-v18{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:9px;padding:11px 16px calc(11px + env(safe-area-inset-bottom));border-top:1px solid #d8e3eb;background:#ffffffed;backdrop-filter:blur(8px)}
html[data-ui="operations"] .wholesale-editor-foot-v18>div{display:grid;gap:2px}
html[data-ui="operations"] .wholesale-editor-foot-v18 small{color:#788b99;font-size:9px}
html[data-ui="operations"] .wholesale-editor-foot-v18 strong{color:#2d6286;font-size:20px}
html[data-ui="operations"] .wholesale-editor-foot-v18>.btn{min-height:44px}

@media(max-width:850px){
  html[data-ui="operations"] .wholesale-items-v18{grid-template-columns:1fr}
  html[data-ui="operations"] .wholesale-form-grid-v18{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:620px){
  html[data-ui="operations"] .wholesale-backdrop-v18{padding:0;background:#f3f8fc}
  html[data-ui="operations"] .wholesale-editor-v18{width:100%;height:100dvh;max-width:none;border:0;border-radius:0}
  html[data-ui="operations"] .wholesale-editor-head-v18{padding:10px 11px}
  html[data-ui="operations"] .wholesale-editor-head-v18 h2{font-size:18px}
  html[data-ui="operations"] .wholesale-editor-head-v18 p{max-width:270px;font-size:9px;line-height:1.35}
  html[data-ui="operations"] .wholesale-editor-scroll-v18{gap:10px;padding:10px 9px 18px}
  html[data-ui="operations"] .wholesale-rule-v18{display:grid;gap:3px;padding:9px 10px}
  html[data-ui="operations"] .wholesale-progress-v18{gap:3px;padding:8px 4px}
  html[data-ui="operations"] .wholesale-progress-v18 small{font-size:9px}
  html[data-ui="operations"] .wholesale-section-v18{padding:11px 10px}
  html[data-ui="operations"] .wholesale-customer-v18{grid-template-columns:1fr}
  html[data-ui="operations"] .wholesale-customer-v18>div:last-child{grid-template-columns:1fr 1fr}
  html[data-ui="operations"] .wholesale-item-v18{grid-template-columns:48px minmax(0,1fr);gap:8px;padding:9px 34px 9px 9px}
  html[data-ui="operations"] .wholesale-item-photo-v18{width:48px;height:48px}
  html[data-ui="operations"] .wholesale-line-controls-v18{grid-template-columns:1fr 1fr}
  html[data-ui="operations"] .wholesale-item-body-v18>label input,html[data-ui="operations"] .wholesale-line-controls-v18>label input,html[data-ui="operations"] .wholesale-stepper-v18 button,html[data-ui="operations"] .wholesale-stepper-v18 input{height:44px;min-height:44px}
  html[data-ui="operations"] .wholesale-remove-v18{width:40px;height:40px}
  html[data-ui="operations"] .wholesale-line-controls-v18>strong{grid-column:1/-1;padding:1px 0;text-align:right}
  html[data-ui="operations"] .wholesale-payment-v18{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-ui="operations"] .wholesale-form-grid-v18{grid-template-columns:1fr 1fr}
  html[data-ui="operations"] .wholesale-editor-v18 .check-fields{grid-template-columns:1fr}
  html[data-ui="operations"] .wholesale-editor-foot-v18{grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:8px 9px calc(8px + env(safe-area-inset-bottom))}
  html[data-ui="operations"] .wholesale-editor-foot-v18>button:first-of-type{display:none}
  html[data-ui="operations"] .wholesale-editor-foot-v18>button:last-child{min-width:176px;font-size:11px;white-space:normal}
}

@media(max-width:370px){
  html[data-ui="operations"] .wholesale-editor-head-v18 p{max-width:220px}
  html[data-ui="operations"] .wholesale-editor-foot-v18>button:last-child{min-width:157px;padding:7px}
}

/* Stitch screen 19: compact storefront material manager on the real public-site APIs. */
html[data-ui="operations"] .public-site-materials-v19{background:#f3f8fc}
html[data-ui="operations"] .public-site-settings-v19{gap:13px;border:0;background:transparent;box-shadow:none}
html[data-ui="operations"] .public-site-settings-v19>.panel-title{padding:14px 16px;border:1px solid #dbe5ed;border-radius:14px;background:#fff;box-shadow:0 3px 10px #1b2e5e0a}
html[data-ui="operations"] .public-site-settings-v19>.panel-title h2{font-size:18px}
html[data-ui="operations"] .public-site-settings-v19>.panel-title span{font-size:11px;line-height:1.45}
html[data-ui="operations"] .public-site-status-v19{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:11px;border:1px solid #dbe5ed;border-radius:13px;background:#fff}
html[data-ui="operations"] .public-site-status-v19>div{display:grid;gap:4px;padding:8px 10px;border-radius:10px;background:#eef6fb}
html[data-ui="operations"] .public-site-status-v19 span{color:#748896;font-size:10px;font-weight:750}
html[data-ui="operations"] .public-site-status-v19 strong{color:#315f7f;font-size:17px}
html[data-ui="operations"] .public-site-status-v19>small{grid-column:1/-1;color:#7a8d9b;font-size:9px;line-height:1.4}
html[data-ui="operations"] .public-site-settings-v19 .public-site-settings-layout>form{border-color:#d8e4ed!important;background:#fff!important;box-shadow:0 3px 10px #1b2e5e0a}
html[data-ui="operations"] .public-site-settings-v19 .public-site-settings-layout>form>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:8px;border-bottom:1px solid #e3ebf0}
html[data-ui="operations"] .public-site-settings-v19 .public-site-settings-layout>form>header>div{display:grid;gap:2px}
html[data-ui="operations"] .public-site-settings-v19 .public-site-settings-layout>form>header b{color:#29475e;font-size:14px}
html[data-ui="operations"] .public-site-settings-v19 .public-site-settings-layout>form>header span{color:#81929f;font-size:9px}
html[data-ui="operations"] .public-site-settings-v19 .public-site-settings-layout>form>header i{padding:4px 7px;border-radius:7px;background:#eef3f6;color:#657b8b;font-size:9px;font-style:normal;font-weight:800}
html[data-ui="operations"] .public-site-settings-v19 .field.alert label{color:#b84f49}
html[data-ui="operations"] .public-site-settings-v19 .field.alert input{border-color:#efc5c1;background:#fff7f6;color:#943f3b}
html[data-ui="operations"] .public-site-save-v19{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:7px}
html[data-ui="operations"] .public-site-save-v19>.btn{min-height:42px}
html[data-ui="operations"] .public-site-settings-v19 .public-banner-slot-section>div:first-child{align-items:center;padding:0 2px}
html[data-ui="operations"] .public-site-settings-v19 .public-banner-slot-section>div:first-child>div{display:grid;gap:2px}
html[data-ui="operations"] .public-site-settings-v19 .public-banner-slot-section>div:first-child>span{padding:5px 8px;border-radius:999px;background:#eef5f9;color:#587187;font-size:9px;font-weight:850;white-space:nowrap}
html[data-ui="operations"] .public-banner-round-v19{padding:9px;border-color:#d8e5ee;background:#fff;box-shadow:0 3px 10px #1b2e5e0a}
html[data-ui="operations"] .public-banner-round-v19.ready{border-color:#b9ddce}
html[data-ui="operations"] .public-banner-round-v19.partial{border-color:#ecd6a5}
html[data-ui="operations"] .public-banner-round-v19>header>i{margin-left:auto;padding:4px 7px;border-radius:7px;background:#eef3f6;color:#637889;font-size:9px;font-style:normal;font-weight:850}
html[data-ui="operations"] .public-banner-round-v19.ready>header>i{background:#eaf7f1;color:#287153}
html[data-ui="operations"] .public-banner-round-v19.partial>header>i{background:#fff6e7;color:#986318}
html[data-ui="operations"] .public-banner-slot-v19{border:1px solid #dbe6ee;background:#f9fbfc;box-shadow:none}
html[data-ui="operations"] .public-banner-slot-v19>header>span{background:#4f8fcc}
html[data-ui="operations"] .public-banner-status-v19{min-height:30px;padding:4px 7px;border:0;border-radius:999px;font-size:9px;font-weight:850;cursor:pointer}
html[data-ui="operations"] .public-banner-status-v19.active{background:#e8f7f0;color:#247050}
html[data-ui="operations"] .public-banner-status-v19.inactive{background:#f1f4f6;color:#738490}
html[data-ui="operations"] .public-banner-slot-v19 .public-banner-slot-preview{border-width:1px;background:#eef4f8}
html[data-ui="operations"] .public-banner-slot-v19 .public-banner-slot-preview::after{right:6px;bottom:6px;padding:4px 6px;font-size:9px}
html[data-ui="operations"] .public-banner-slot-v19>footer>div{display:flex;flex-wrap:wrap;justify-content:flex-end}
html[data-ui="operations"] .public-banner-slot-v19>footer .btn{min-width:38px}
html[data-ui="operations"] .public-site-nav-v19{display:none}

@media(max-width:700px){
  body:has(.public-site-materials-v19){overflow-x:hidden;background:#f3f8fc}
  body:has(.public-site-materials-v19) .topbar-title p{display:none}
  html[data-ui="operations"] .public-site-materials-v19{width:100%;max-width:460px;margin:0 auto;padding:10px 8px calc(78px + env(safe-area-inset-bottom))!important;overflow-x:clip}
  html[data-ui="operations"] .public-site-settings-v19{display:grid!important;grid-template-columns:1fr!important;width:100%;gap:10px}
  html[data-ui="operations"] .public-site-settings-v19>.panel-title{grid-column:1;padding:11px}
  html[data-ui="operations"] .public-site-settings-v19>.panel-title h2{font-size:15px}
  html[data-ui="operations"] .public-site-settings-v19>.panel-title>div{min-width:0}
  html[data-ui="operations"] .public-site-settings-v19>.panel-title>.btn{min-height:44px;padding:7px 10px;white-space:nowrap}
  html[data-ui="operations"] .public-site-status-v19{grid-column:1;padding:8px}
  html[data-ui="operations"] .public-site-status-v19>div{padding:7px}
  html[data-ui="operations"] .public-site-status-v19 strong{font-size:15px}
  html[data-ui="operations"] .public-site-settings-v19 .public-site-settings-layout{grid-column:1;max-width:none}
  html[data-ui="operations"] .public-site-settings-v19 .public-site-settings-layout>form{padding:11px!important}
  html[data-ui="operations"] .public-site-settings-v19 .public-banner-slot-section{grid-column:1}
  html[data-ui="operations"] .public-site-settings-v19 .public-banner-slot-section>div:first-child{align-items:flex-start!important;flex-direction:row!important}
  html[data-ui="operations"] .public-banner-round-v19{padding:7px}
  html[data-ui="operations"] .public-banner-round-v19>header>span{display:grid;gap:1px}
  html[data-ui="operations"] .public-banner-round-v19>header>span strong{font-size:12px}
  html[data-ui="operations"] .public-banner-round-v19>header>span small{font-size:9px}
  html[data-ui="operations"] .public-banner-round-v19 .public-banner-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  html[data-ui="operations"] .public-banner-slot-v19{gap:7px;padding:7px}
  html[data-ui="operations"] .public-banner-slot-v19>header{display:grid;grid-template-columns:24px minmax(0,1fr);gap:5px}
  html[data-ui="operations"] .public-banner-slot-v19>header>span{grid-row:1/3;width:24px;height:24px;flex-basis:24px}
  html[data-ui="operations"] .public-banner-slot-v19>header>div strong{font-size:11px}
  html[data-ui="operations"] .public-banner-slot-v19>header>div small{font-size:8px;line-height:1.25}
  html[data-ui="operations"] .public-banner-slot-v19>header>b,html[data-ui="operations"] .public-banner-status-v19{grid-column:2;width:max-content;min-height:25px;padding:3px 5px;font-size:8px}
  html[data-ui="operations"] .public-banner-slot-v19 .public-banner-slot-preview>span{font-size:25px}
  html[data-ui="operations"] .public-banner-slot-v19 .public-banner-slot-preview>span small{font-size:8px;text-align:center}
  html[data-ui="operations"] .public-banner-slot-v19 .public-banner-slot-fields{grid-template-columns:1fr;gap:5px}
  html[data-ui="operations"] .public-banner-slot-v19 .field-wide{grid-column:auto}
  html[data-ui="operations"] .public-banner-slot-v19 .field label{font-size:9px}
  html[data-ui="operations"] .public-banner-slot-v19 input{width:100%;min-width:0;min-height:38px!important;padding:5px 6px!important;font-size:10px!important}
  html[data-ui="operations"] .public-banner-slot-v19>footer{display:grid;gap:5px}
  html[data-ui="operations"] .public-banner-slot-v19>footer>small{font-size:8px}
  html[data-ui="operations"] .public-banner-slot-v19>footer>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
  html[data-ui="operations"] .public-banner-slot-v19>footer .btn{min-width:0;min-height:38px;padding:5px 3px;font-size:9px}
  html[data-ui="operations"] .public-site-nav-v19{position:fixed;right:0;bottom:0;left:0;z-index:35;display:grid;grid-template-columns:repeat(4,1fr);padding:6px 8px calc(6px + env(safe-area-inset-bottom));border-top:1px solid #d5e2eb;background:#ffffffed;box-shadow:0 -4px 14px #1b2e5e12;backdrop-filter:blur(8px)}
  html[data-ui="operations"] .public-site-nav-v19 button,html[data-ui="operations"] .public-site-nav-v19 a{display:grid;justify-items:center;gap:2px;min-height:48px;padding:4px;border:0;border-radius:9px;background:transparent;color:#738696;font-size:9px;font-weight:800;text-decoration:none;cursor:pointer}
  html[data-ui="operations"] .public-site-nav-v19 b{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#eef3f6;color:#58748a;font-size:10px}
  html[data-ui="operations"] .public-site-nav-v19 .active{background:#e9f4fb;color:#326f99}
  html[data-ui="operations"] .public-site-nav-v19 .active b{background:#4f8fcc;color:#fff}
}

@media(max-width:370px){
  html[data-ui="operations"] .public-site-materials-v19{padding-right:6px!important;padding-left:6px!important}
  html[data-ui="operations"] .public-banner-round-v19 .public-banner-slot-grid{gap:4px}
  html[data-ui="operations"] .public-banner-slot-v19{padding:6px}
}

/* Stitch screen 21: mobile POS built from the existing cart, inventory and payment controls. */
@media(max-width:700px){
  html[data-ui="operations"] body:has(.pos-mobile-v21){overflow-x:hidden!important;overflow-y:auto!important;background:#f4f7fb!important}
  html[data-ui="operations"] body:has(.pos-mobile-v21) .shell{display:block!important;width:100%!important;min-width:0!important}
  html[data-ui="operations"] body:has(.pos-mobile-v21) .main{display:block!important;width:100%!important;min-width:0!important;margin:0!important;overflow:visible!important}
  html[data-ui="operations"] body:has(.pos-mobile-v21) .sidebar{display:none!important}
  html[data-ui="operations"] body:has(.pos-mobile-v21) .topbar{position:sticky!important;top:0!important;z-index:45!important;width:100%!important;min-height:58px!important;padding:8px 10px!important;border-bottom:1px solid #dce4ec!important;background:#ffffffed!important;backdrop-filter:blur(9px)}
  html[data-ui="operations"] body:has(.pos-mobile-v21) .topbar-title{min-width:0!important;padding-right:154px!important}
  html[data-ui="operations"] body:has(.pos-mobile-v21) .topbar-title h1{font-size:16px!important;font-weight:900!important}
  html[data-ui="operations"] body:has(.pos-mobile-v21) .topbar-title p{display:none!important}
  html[data-ui="operations"] body:has(.pos-mobile-v21) .top-actions{position:absolute!important;top:8px!important;right:8px!important;display:flex!important;width:auto!important;gap:5px!important}
  html[data-ui="operations"] body:has(.pos-mobile-v21) .top-actions>.btn:not(#mobile-nav-toggle),html[data-ui="operations"] body:has(.pos-mobile-v21) .connection-badge,html[data-ui="operations"] body:has(.pos-mobile-v21) .account-menu{display:none!important}
  html[data-ui="operations"] body:has(.pos-mobile-v21) .workspace-switcher{display:flex!important;max-width:150px!important;min-height:40px!important;padding:5px 8px!important;border:1px solid #d9e3eb!important;border-radius:10px!important;background:#f8fafc!important}
  html[data-ui="operations"] .pos-mobile-v21{display:block!important;width:100%!important;max-width:430px!important;min-height:100vh!important;margin:0 auto!important;padding:0 0 34px!important;background:#f4f7fb!important;overflow:visible!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-register-layout{display:flex!important;flex-direction:column!important;width:100%!important;height:auto!important;min-height:0!important;gap:0!important;overflow:visible!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-register-main{display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important;height:auto!important;gap:0!important;overflow:visible!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-classic-shortcuts{order:-10!important;display:block!important;width:100%!important;height:auto!important;max-height:none!important;margin:0!important;padding:11px 12px 12px!important;border:0!important;border-bottom:1px solid #dce4eb!important;border-radius:0!important;background:#fff!important;overflow:visible!important;box-shadow:none!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-quick-title{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;margin:0 0 8px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-quick-title>div{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-quick-title strong{color:#33485a!important;font-size:13px!important;font-weight:900!important;white-space:nowrap!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-quick-title span{overflow:hidden!important;color:#758896!important;font-size:10px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-quick-title .btn{display:flex!important;width:100%!important;min-height:40px!important;margin:0!important;border:1px solid #d5e0e8!important;border-radius:9px!important;background:#fff!important;color:#53697a!important;font-size:11px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-shortcut-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;width:100%!important;height:auto!important;overflow:visible!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-shortcut-button{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;grid-template-rows:auto auto!important;align-items:center!important;gap:0 8px!important;width:100%!important;min-width:0!important;min-height:54px!important;height:auto!important;padding:7px 8px!important;border:1px solid #dce5ec!important;border-radius:11px!important;background:#f8fafc!important;color:#314b5f!important;text-align:left!important;box-shadow:none!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-shortcut-button i{grid-row:1/3!important;display:grid!important;place-items:center!important;width:34px!important;height:34px!important;border-radius:9px!important;background:#4f46e5!important;color:#fff!important;font-size:16px!important;font-style:normal!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-shortcut-button.discount i{background:#e9a11a!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-shortcut-button.clear i{background:#6d7b89!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-shortcut-button strong{align-self:end!important;overflow:hidden!important;color:#30495d!important;font-size:11px!important;line-height:1.25!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-shortcut-button small{display:block!important;align-self:start!important;overflow:hidden!important;color:#7a8c99!important;font-size:8px!important;line-height:1.2!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-catalog{display:flex!important;flex-direction:column!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:11px 12px 13px!important;border:0!important;border-bottom:1px solid #dce4eb!important;border-radius:0!important;background:#fff!important;overflow:visible!important;box-shadow:none!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-categories{order:0!important;display:flex!important;gap:6px!important;width:100%!important;min-height:39px!important;padding:0 0 8px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-categories::-webkit-scrollbar{display:none!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-categories button{display:flex!important;flex:0 0 auto!important;align-items:center!important;gap:4px!important;min-width:0!important;min-height:34px!important;padding:6px 10px!important;border:1px solid #dce4eb!important;border-radius:11px!important;background:#f8fafc!important;color:#607485!important;font-size:10px!important;font-weight:800!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-categories button i{display:none!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-categories button small{display:inline-flex!important;place-items:center!important;min-width:17px!important;padding:2px 4px!important;border-radius:999px!important;background:#edf2f6!important;color:#637684!important;font-size:8px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-categories button.active{border:2px solid #4f8fcc!important;background:#edf6fd!important;color:#326f9d!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-categories button.active small{background:#4f8fcc!important;color:#fff!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-product-head{order:1!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;margin:0 0 7px!important;padding:0!important;border:0!important;background:transparent!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-product-head>div{display:grid!important;gap:1px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-product-head strong{color:#33495b!important;font-size:12px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-product-head span{color:#7c8e9a!important;font-size:9px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-product-head>b{padding:3px 6px!important;border-radius:7px!important;background:#e8f6ef!important;color:#31805f!important;font-size:9px!important;white-space:nowrap!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-scan-panel{order:2!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important;width:100%!important;min-width:0!important;margin:0 0 9px!important;padding:7px!important;border:1px solid #dce5ec!important;border-radius:11px!important;background:#f6f9fb!important;box-shadow:none!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-scan-panel>.scan-icon,html[data-ui="operations"] .pos-mobile-v21 .pos-scan-panel>div{display:none!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-scan-panel input{grid-column:1!important;width:100%!important;min-width:0!important;min-height:44px!important;padding:8px 10px!important;border:1px solid #cbd8e2!important;border-radius:9px!important;background:#fff!important;font-size:12px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-scan-panel>.btn.primary{grid-column:2!important;min-width:88px!important;min-height:44px!important;padding:7px 10px!important;border-radius:9px!important;background:#4f46e5!important;font-size:11px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-scan-panel>.camera-scan-button{grid-column:1/-1!important;min-height:42px!important;border:1px solid #d1dce5!important;border-radius:9px!important;background:#fff!important;color:#4d6272!important;font-size:11px!important;font-weight:800!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-products{order:3!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;width:100%!important;max-height:none!important;height:auto!important;padding:0!important;overflow:visible!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-product{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;padding:9px!important;border:1px solid #dbe5ec!important;border-radius:14px!important;background:#fff!important;text-align:left!important;box-shadow:0 2px 7px #183d5b0a!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-product-image{display:grid!important;place-items:center!important;width:100%!important;aspect-ratio:1/1!important;height:auto!important;margin:0 0 8px!important;border-radius:10px!important;background:#f4f7f9!important;overflow:hidden!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-product-image img{width:100%!important;height:100%!important;object-fit:contain!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-product-image>i{font-size:36px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-product-image>b{right:5px!important;bottom:5px!important;padding:3px 5px!important;font-size:8px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-product-name{display:-webkit-box!important;min-height:30px!important;overflow:hidden!important;color:#2e4456!important;font-size:11px!important;font-weight:900!important;line-height:1.35!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-product>small{margin-top:3px!important;color:#7c8e9a!important;font-size:9px!important;white-space:normal!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-product>strong{margin-top:6px!important;color:#d97912!important;font-size:17px!important;line-height:1!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-product>em{margin-top:5px!important;color:#c4514c!important;font-size:8px!important;font-style:normal!important;white-space:normal!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-function-launcher{display:grid!important;gap:8px!important;width:auto!important;margin:11px 12px!important;padding:11px!important;border:1px solid #dce5ec!important;border-radius:14px!important;background:#fff!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-function-launcher header{display:flex!important;align-items:center!important;justify-content:space-between!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-function-launcher header>div{display:grid!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-function-launcher header strong{font-size:12px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-function-launcher header span{color:#7b8d99!important;font-size:9px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-function-launcher header>b{padding:3px 6px!important;border-radius:7px!important;background:#eef3f7!important;color:#6b7f8e!important;font-size:8px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-function-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-function-grid button{display:grid!important;grid-template-columns:30px minmax(0,1fr)!important;align-items:center!important;gap:6px!important;min-width:0!important;min-height:54px!important;padding:7px!important;border:1px solid #dbe5ec!important;border-radius:10px!important;background:#f8fafc!important;color:#3f586b!important;text-align:left!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-function-grid button>i{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;border-radius:9px!important;background:#e7f1f8!important;color:#397aa8!important;font-size:11px!important;font-style:normal!important;font-weight:900!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-function-grid button>span{display:grid!important;min-width:0!important;gap:1px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-function-grid button strong{font-size:10px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-function-grid button small{overflow:hidden!important;color:#83929c!important;font-size:8px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-payment-panel{display:flex!important;flex-direction:column!important;width:calc(100% - 16px)!important;height:auto!important;min-height:0!important;margin:4px 8px 0!important;padding:12px!important;border:1px solid #dbe4eb!important;border-radius:20px!important;background:#fff!important;overflow:visible!important;box-shadow:0 7px 22px #183d5b14!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-payment-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding:0 0 9px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-payment-head>div{display:grid!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-payment-head span{color:#758895!important;font-size:9px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-payment-head strong{color:#263f52!important;font-size:16px!important}
  html[data-ui="operations"] .pos-mobile-v21 #select-member{min-height:40px!important;border:2px solid #cbd7e0!important;border-radius:10px!important;background:#fff!important;color:#40596c!important;font-size:10px!important;font-weight:900!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-tax-id-field{display:grid!important;gap:5px!important;margin:0 0 9px!important;padding:9px!important;border:1px solid #dde6ec!important;border-radius:11px!important;background:#f7f9fb!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-tax-id-field label{font-size:9px!important;font-weight:800!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-tax-id-field input{width:100%!important;min-height:42px!important;text-align:center!important;font-size:13px!important;letter-spacing:.12em!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-tax-id-field small{text-align:center!important;font-size:8px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-cart{display:block!important;order:initial!important;width:100%!important;height:auto!important;max-height:none!important;margin:0 0 10px!important;padding:0!important;border:1px solid #dde6ec!important;border-radius:13px!important;background:#fff!important;overflow:hidden!important;box-shadow:none!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-sale-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;padding:9px!important;border-bottom:1px solid #e0e7ec!important;background:#f8fafc!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-sale-head h2{font-size:11px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-sale-head span,html[data-ui="operations"] .pos-mobile-v21 .pos-cart-page-note{font-size:8px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-sale-head>.btn{min-height:34px!important;padding:5px 8px!important;font-size:9px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-cart>.table-wrap{width:100%!important;max-height:310px!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-cart table{min-width:670px!important;font-size:10px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-empty-sale{height:120px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-payment-totals{display:grid!important;gap:5px!important;margin:0!important;padding:9px 3px!important;border:0!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-payment-totals>div{display:flex!important;justify-content:space-between!important;gap:8px!important;color:#647989!important;font-size:10px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-payment-totals .grand{margin-top:3px!important;padding-top:8px!important;border-top:1px dashed #cbd7df!important;color:#263f52!important;font-size:13px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-payment-totals .grand strong{color:#4338ca!important;font-size:24px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-custom-discount{display:grid!important;gap:7px!important;margin:0 0 10px!important;padding:10px!important;border:1px solid #dce5ec!important;border-radius:11px!important;background:#f8fafc!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-custom-discount>strong{font-size:11px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-custom-discount>div:first-of-type{display:grid!important;grid-template-columns:115px minmax(0,1fr)!important;gap:6px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-custom-discount>div:first-of-type>.btn{grid-column:1/-1!important;min-height:40px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-discount-reason{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-custom-discount select,html[data-ui="operations"] .pos-mobile-v21 .pos-custom-discount input{width:100%!important;min-width:0!important;min-height:40px!important;font-size:10px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-custom-discount small{font-size:8px!important;line-height:1.45!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-payment-methods{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin:0 0 10px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-payment-methods>span{grid-column:1/-1!important;color:#667d8d!important;font-size:9px!important;font-weight:800!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-payment-methods .chip{min-width:0!important;min-height:42px!important;padding:5px!important;border:1px solid #dbe4eb!important;border-radius:10px!important;background:#fff!important;color:#536878!important;font-size:10px!important;font-weight:800!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-payment-methods .chip.active{border:2px solid #4f46e5!important;background:#eef2ff!important;color:#4338ca!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-payment-methods .chip:last-child{grid-column:span 2!important}
  html[data-ui="operations"] .pos-mobile-v21 .cash-calculator{display:grid!important;gap:8px!important;margin:0 0 10px!important;padding:10px!important;border:1px solid #dce5ec!important;border-radius:13px!important;background:#fff!important}
  html[data-ui="operations"] .pos-mobile-v21 .cash-calculator>label{display:grid!important;gap:5px!important;color:#617888!important;font-size:9px!important;font-weight:800!important}
  html[data-ui="operations"] .pos-mobile-v21 #cash-tendered{width:100%!important;min-height:48px!important;text-align:center!important;font-size:15px!important;font-weight:900!important}
  html[data-ui="operations"] .pos-mobile-v21 .cash-quick{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important}
  html[data-ui="operations"] .pos-mobile-v21 .cash-quick button{min-width:0!important;min-height:38px!important;padding:4px!important;border:1px solid #dbe4eb!important;border-radius:8px!important;background:#f3f6f8!important;color:#506677!important;font-size:9px!important;font-weight:800!important}
  html[data-ui="operations"] .pos-mobile-v21 .cash-touch-keypad{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  html[data-ui="operations"] .pos-mobile-v21 .cash-touch-keypad button{min-width:0!important;min-height:48px!important;border:1px solid #d5e0e7!important;border-radius:10px!important;background:#fff!important;color:#2e4659!important;font-size:14px!important;font-weight:900!important}
  html[data-ui="operations"] .pos-mobile-v21 .cash-touch-keypad button.clear{border-color:#f0c5c2!important;background:#fff1f0!important;color:#c34f49!important;font-size:10px!important}
  html[data-ui="operations"] .pos-mobile-v21 .change-display{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:44px!important;padding:8px 11px!important;border:1px solid #bfe6d5!important;border-radius:10px!important;background:#ecfbf3!important}
  html[data-ui="operations"] .pos-mobile-v21 .change-display span{color:#34795d!important;font-size:10px!important;font-weight:800!important}
  html[data-ui="operations"] .pos-mobile-v21 .change-display strong{color:#20704f!important;font-size:17px!important}
  html[data-ui="operations"] .pos-mobile-v21 .checkout{position:static!important;inset:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;width:100%!important;min-height:56px!important;margin:0!important;transform:none!important;border:0!important;border-radius:14px!important;background:#4f46e5!important;color:#fff!important;font-size:14px!important;font-weight:900!important}
  html[data-ui="operations"] .pos-mobile-v21 .checkout:disabled{background:#cbd5e1!important;color:#697988!important}
  html[data-ui="operations"] .pos-mobile-v21 .checkout strong{font-size:17px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-key-hint{margin:6px 0 0!important;color:#7c8e9a!important;font-size:9px!important;text-align:center!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-expiry-tasks{width:calc(100% - 16px)!important;margin:10px 8px 0!important}
}

@media(max-width:370px){
  html[data-ui="operations"] .pos-mobile-v21 .pos-classic-shortcuts,html[data-ui="operations"] .pos-mobile-v21 .pos-touch-catalog{padding-right:9px!important;padding-left:9px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-products{gap:7px!important}
  html[data-ui="operations"] .pos-mobile-v21 .pos-touch-product{padding:7px!important}
}

/* Stitch screen 22: focused mobile checkout using the same live cart and controls as screen 21. */
@media(max-width:700px){
  html[data-ui="operations"] body:has(.pos-checkout-v22) .topbar{min-height:68px!important}
  html[data-ui="operations"] body:has(.pos-checkout-v22) .topbar-title{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;padding-right:0!important}
  html[data-ui="operations"] body:has(.pos-checkout-v22) .topbar-title h1{font-size:17px!important}
  html[data-ui="operations"] body:has(.pos-checkout-v22) .top-actions{display:none!important}
  html[data-ui="operations"] .pos-checkout-back-v22{min-height:42px;padding:7px 10px;border:1px solid #cfdbe4;border-radius:11px;background:#fff;color:#3b7198;font-size:10px;font-weight:900;white-space:nowrap}
  html[data-ui="operations"] .pos-mobile-checkout-trigger-v22{order:4;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:61px;margin-top:12px;padding:9px 13px;border:0;border-radius:14px;background:linear-gradient(135deg,#4f8fcc,#5663db);color:#fff;text-align:left;box-shadow:0 7px 18px #345f9529}
  html[data-ui="operations"] .pos-mobile-checkout-trigger-v22 span{display:grid;gap:2px}
  html[data-ui="operations"] .pos-mobile-checkout-trigger-v22 small{font-size:9px;opacity:.82}
  html[data-ui="operations"] .pos-mobile-checkout-trigger-v22 strong{font-size:15px}
  html[data-ui="operations"] .pos-mobile-checkout-trigger-v22>b{font-size:18px;white-space:nowrap}
  html[data-ui="operations"] .pos-checkout-v22{padding-bottom:142px!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-touch-catalog,html[data-ui="operations"] .pos-checkout-v22 .pos-function-launcher{display:none!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-classic-shortcuts{padding:10px 11px!important}
  html[data-ui="operations"] .pos-checkout-v22 #manage-pos-shortcuts{display:none!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-quick-title{margin-bottom:7px!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-quick-title>div strong{font-size:12px!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-shortcut-button.discount,html[data-ui="operations"] .pos-checkout-v22 .pos-shortcut-button.clear{display:none!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-payment-panel{width:100%!important;margin:0!important;padding:11px 10px 18px!important;border:0!important;border-radius:0!important;box-shadow:none!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-payment-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;padding:1px 1px 9px!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-payment-head>div:first-child{display:none!important}
  html[data-ui="operations"] .pos-checkout-v22 #select-member{grid-column:1!important;min-height:46px!important;font-size:11px!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-tax-id-field{grid-column:2!important;width:142px!important;margin:0!important;padding:6px!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-tax-id-field label{display:none!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-tax-id-field input{min-height:34px!important;font-size:11px!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-tax-id-field small{display:none!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-touch-cart{height:auto!important;min-height:0!important;flex:0 0 auto!important;margin-bottom:11px!important;border-color:#d6e3ec!important;border-radius:15px!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-sale-head{display:grid!important;grid-template-columns:30px minmax(0,1fr) auto!important;min-height:58px!important;padding:8px 9px!important;background:#edf7fd!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-sale-head>.pos-step-v22{grid-column:1;grid-row:1/3;display:grid!important;place-items:center;width:28px;height:28px;border-radius:50%;background:#4f8fcc;color:#fff!important;font-size:13px!important;font-weight:900}
  html[data-ui="operations"] .pos-checkout-v22 .pos-sale-head>:nth-child(2){grid-column:2;min-width:0}
  html[data-ui="operations"] .pos-checkout-v22 .pos-sale-head h2{font-size:13px!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-cart-pager{display:none!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-touch-cart>.table-wrap{height:auto!important;min-height:0!important;max-height:none!important;flex:0 0 auto!important;padding:0!important;overflow:visible!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-touch-cart table,html[data-ui="operations"] .pos-checkout-v22 .pos-touch-cart tbody{display:block!important;width:100%!important;min-width:0!important;height:auto!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-touch-cart thead{display:none!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-sale-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;width:100%!important;padding:10px!important;border:0!important;border-bottom:1px solid #e4ebf0!important;background:#fff!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-sale-row:last-child{border-bottom:0!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-sale-row>td{display:block!important;width:auto!important;min-width:0!important;padding:0!important;border:0!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-sale-row>td:nth-child(1),html[data-ui="operations"] .pos-checkout-v22 .pos-sale-row>td:nth-child(2),html[data-ui="operations"] .pos-checkout-v22 .pos-sale-row>td:nth-child(4){display:none!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-sale-row>td:nth-child(3){grid-column:1/-1}
  html[data-ui="operations"] .pos-checkout-v22 .pos-sale-row>td:nth-child(5){grid-column:1;grid-row:2}
  html[data-ui="operations"] .pos-checkout-v22 .pos-sale-row>td:nth-child(6){grid-column:1/-1;grid-row:3}
  html[data-ui="operations"] .pos-checkout-v22 .pos-sale-row>td:nth-child(7){grid-column:2;grid-row:2;align-self:center;text-align:right}
  html[data-ui="operations"] .pos-checkout-v22 .pos-sale-row>td:nth-child(8){grid-column:1/-1;grid-row:4;text-align:right}
  html[data-ui="operations"] .pos-checkout-v22 .pos-line-product{display:grid!important;grid-template-columns:54px minmax(0,1fr)!important;gap:9px!important;align-items:center!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-line-product>img,html[data-ui="operations"] .pos-checkout-v22 .pos-line-product>span{width:54px!important;height:54px!important;object-fit:contain!important;border-radius:9px!important;background:#f3f6f8!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-line-product strong{font-size:11px!important;line-height:1.35!important;white-space:normal!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-line-product small{display:block;margin-top:3px;color:#788b99;font-size:8px!important;white-space:normal!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-line-qty{display:grid!important;grid-template-columns:40px 54px 40px!important;gap:5px!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-line-qty button,html[data-ui="operations"] .pos-checkout-v22 .pos-line-qty input{width:100%!important;min-width:0!important;height:40px!important;min-height:40px!important;border-radius:9px!important;font-size:13px!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-line-total{color:#d96f19!important;font-size:17px!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-expiry-alert,html[data-ui="operations"] .pos-checkout-v22 .pos-normal{display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;padding:6px 8px!important;border-radius:8px!important;font-size:9px!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-normal{background:#eff8f3!important;color:#327659!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-payment-totals{display:none!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-section-head-v22{grid-column:1/-1;display:grid!important;grid-template-columns:29px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;margin:0 0 2px!important;padding:0 0 8px!important;border-bottom:1px solid #e1e8ed!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-section-head-v22>b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#4f8fcc;color:#fff;font-size:13px}
  html[data-ui="operations"] .pos-checkout-v22 .pos-section-head-v22>span{display:grid;gap:1px}
  html[data-ui="operations"] .pos-checkout-v22 .pos-section-head-v22 strong{font-size:12px!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-section-head-v22 small{color:#7c8e9a;font-size:8px!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-custom-discount,html[data-ui="operations"] .pos-checkout-v22 .pos-payment-methods,html[data-ui="operations"] .pos-checkout-v22 .cash-calculator{margin-bottom:11px!important;padding:11px!important;border:1px solid #d8e5ee!important;border-radius:15px!important;background:#fbfdff!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-custom-discount>strong{display:none!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-payment-methods>span:not(.pos-section-head-v22){display:none!important}
  html[data-ui="operations"] .pos-checkout-v22 .cash-calculator>.pos-section-head-v22{grid-column:1/-1}
  html[data-ui="operations"] .pos-checkout-v22 .pos-key-hint{display:none!important}
  html[data-ui="operations"] .pos-checkout-v22 .pos-checkout-bar-v22{position:fixed;right:0;bottom:0;left:0;z-index:60;display:grid;gap:7px;width:min(100%,430px);margin:0 auto;padding:8px 10px calc(8px + env(safe-area-inset-bottom));border-top:1px solid #cedce6;background:#ffffffef;box-shadow:0 -8px 24px #183d5b20;backdrop-filter:blur(12px)}
  html[data-ui="operations"] .pos-checkout-summary-v22{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
  html[data-ui="operations"] .pos-checkout-summary-v22>span{display:grid;gap:1px;min-width:0;padding:4px 5px;border-radius:7px;background:#f3f6f8}
  html[data-ui="operations"] .pos-checkout-summary-v22 small{overflow:hidden;color:#7d8e9a;font-size:7px;text-overflow:ellipsis;white-space:nowrap}
  html[data-ui="operations"] .pos-checkout-summary-v22 strong{font-size:9px;white-space:nowrap}
  html[data-ui="operations"] .pos-checkout-due-v22{display:grid;grid-template-columns:minmax(0,1fr) minmax(175px,1.4fr);align-items:stretch;gap:7px}
  html[data-ui="operations"] .pos-checkout-due-v22>span{display:grid;align-content:center;gap:1px;padding:5px 7px;border-radius:10px;background:#eef6fb}
  html[data-ui="operations"] .pos-checkout-due-v22>span small{color:#648095;font-size:8px}
  html[data-ui="operations"] .pos-checkout-due-v22>span strong{color:#2c6f9e;font-size:17px;line-height:1.1;white-space:nowrap}
  html[data-ui="operations"] .pos-checkout-due-v22>.checkout{min-height:52px!important;border-radius:11px!important;font-size:12px!important}
  html[data-ui="operations"] .pos-checkout-due-v22>.checkout strong{font-size:16px!important}
}

@media(max-width:370px){
  html[data-ui="operations"] .pos-checkout-v22 .pos-tax-id-field{width:126px!important}
  html[data-ui="operations"] .pos-checkout-due-v22{grid-template-columns:minmax(0,1fr) minmax(158px,1.3fr)}
}

/* Stitch screen 24: shift opening, cash reconciliation and auditable close workflow. */
html[data-ui="operations"] .shift-page-v24{display:grid;gap:14px;max-width:940px;margin:0 auto;padding-bottom:96px;background:#f4f7fb}
html[data-ui="operations"] .shift-overview-v24,html[data-ui="operations"] .shift-section-v24,html[data-ui="operations"] .shift-start-v24,html[data-ui="operations"] .shift-history-v24{border:1px solid #dce6ed;border-radius:17px;background:#fff;box-shadow:0 4px 16px #2149720a}
html[data-ui="operations"] .shift-overview-v24{padding:16px}
html[data-ui="operations"] .shift-overview-v24>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:12px;border-bottom:1px solid #e5ecf1}
html[data-ui="operations"] .shift-overview-v24>header>div{display:flex;align-items:center;gap:7px;min-width:0}
html[data-ui="operations"] .shift-overview-v24>header i{position:relative;width:10px;height:10px;border-radius:50%;background:#18a474;box-shadow:0 0 0 4px #dff6ed}
html[data-ui="operations"] .shift-overview-v24>header strong{font-size:14px}
html[data-ui="operations"] .shift-overview-v24>header span{padding:3px 7px;border-radius:999px;background:#fff5df;color:#9a6613;font-size:10px;font-weight:850}
html[data-ui="operations"] .shift-overview-v24>header small{overflow:hidden;max-width:220px;color:#8495a2;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
html[data-ui="operations"] .shift-meta-v24{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:13px 0}
html[data-ui="operations"] .shift-meta-v24>span,html[data-ui="operations"] .shift-expected-v24>span{display:grid;gap:3px}
html[data-ui="operations"] .shift-meta-v24 small,html[data-ui="operations"] .shift-expected-v24 small{color:#7a8c99;font-size:10px}
html[data-ui="operations"] .shift-meta-v24 strong{font-size:13px;line-height:1.35}
html[data-ui="operations"] .shift-expected-v24{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid #cce1f0;border-radius:13px;background:linear-gradient(135deg,#edf7fd,#f5f8ff)}
html[data-ui="operations"] .shift-expected-v24 strong{color:#2f719f;font-size:25px}
html[data-ui="operations"] .shift-expected-v24 em{color:#5f788b;font-size:10px;font-style:normal;font-weight:750;text-align:right}
html[data-ui="operations"] .shift-steps-v24{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;align-items:start;padding:12px;border:1px solid #dfe8ee;border-radius:14px;background:#fff}
html[data-ui="operations"] .shift-steps-v24>span{display:grid;justify-items:center;gap:5px}
html[data-ui="operations"] .shift-steps-v24 b{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#4f8fcc;color:#fff;font-size:11px;box-shadow:0 0 0 3px #e4f0f8}
html[data-ui="operations"] .shift-steps-v24 small{color:#476b85;font-size:10px;font-weight:850;text-align:center}
html[data-ui="operations"] .shift-steps-v24>i{width:42px;height:2px;margin-top:13px;background:#c7dcea}
html[data-ui="operations"] #shift-close-form{display:grid;gap:14px}
html[data-ui="operations"] .shift-section-v24{padding:15px}
html[data-ui="operations"] .shift-section-v24>header{display:flex;align-items:center;gap:9px;margin-bottom:12px}
html[data-ui="operations"] .shift-section-v24>header>b{display:grid;place-items:center;width:27px;height:27px;flex:0 0 27px;border-radius:8px;background:#eaf4fb;color:#3476a6;font-size:12px}
html[data-ui="operations"] .shift-section-v24>header>div{display:grid;min-width:0;gap:1px}
html[data-ui="operations"] .shift-section-v24>header h2{margin:0;color:#253d50;font-size:14px}
html[data-ui="operations"] .shift-section-v24>header span{color:#7d8f9d;font-size:10px;line-height:1.35}
html[data-ui="operations"] .shift-section-v24>header>em{margin-left:auto;padding:3px 7px;border-radius:999px;background:#fff0ee;color:#c55049;font-size:9px;font-style:normal;font-weight:850;white-space:nowrap}
html[data-ui="operations"] .shift-revenue-v24{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html[data-ui="operations"] .shift-revenue-v24>span{display:grid;grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:1px 8px;padding:10px;border:1px solid #e0e8ee;border-radius:11px;background:#fafcfd}
html[data-ui="operations"] .shift-revenue-v24 i{grid-row:1/3;display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#e9f3fa;color:#3e7ca8;font-size:10px;font-style:normal;font-weight:900}
html[data-ui="operations"] .shift-revenue-v24 small{color:#7a8d9b;font-size:9px}
html[data-ui="operations"] .shift-revenue-v24 strong{font-size:14px}
html[data-ui="operations"] .shift-revenue-v24 .total{border-color:#bdd9ea;background:#eef7fc}
html[data-ui="operations"] .shift-ledger-note-v24,html[data-ui="operations"] .shift-denom-v24{margin-top:10px;border:1px solid #dfe8ee;border-radius:11px;overflow:hidden}
html[data-ui="operations"] .shift-ledger-note-v24 summary,html[data-ui="operations"] .shift-denom-v24 summary{padding:10px 11px;background:#f7f9fb;color:#526b7d;font-size:10px;font-weight:850;cursor:pointer}
html[data-ui="operations"] .shift-ledger-note-v24 p{margin:0;padding:10px 11px;color:#627989;font-size:10px;line-height:1.55}
html[data-ui="operations"] .shift-cash-input-v24{display:grid;gap:5px;padding:11px 13px;border:2px solid #4f8fcc;border-radius:13px;background:#f1f8fd}
html[data-ui="operations"] .shift-cash-input-v24>span{color:#3473a0;font-size:10px;font-weight:850}
html[data-ui="operations"] .shift-cash-input-v24>div{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px}
html[data-ui="operations"] .shift-cash-input-v24 b{color:#8ba0af;font-size:25px}
html[data-ui="operations"] .shift-cash-input-v24 input{width:100%;min-height:48px;padding:0;border:0;background:transparent;color:#243a4b;font-size:26px;font-weight:950;outline:0}
html[data-ui="operations"] .shift-cash-input-v24 input{-moz-appearance:textfield;appearance:textfield}
html[data-ui="operations"] .shift-cash-input-v24 input::-webkit-inner-spin-button,html[data-ui="operations"] .shift-cash-input-v24 input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
html[data-ui="operations"] .shift-denom-v24 summary{display:flex;justify-content:space-between}
html[data-ui="operations"] .shift-denom-v24>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:9px}
html[data-ui="operations"] .shift-denom-v24 label{display:grid;grid-template-columns:minmax(0,1fr) 70px auto;align-items:center;gap:5px;padding:6px 7px;border-radius:8px;background:#f6f8fa}
html[data-ui="operations"] .shift-denom-v24 label span{font-size:10px;font-weight:750}
html[data-ui="operations"] .shift-denom-v24 input{width:100%;min-width:0;min-height:38px;text-align:right;font-size:12px}
html[data-ui="operations"] .shift-denom-v24 label small{color:#7c8d99;font-size:8px}
html[data-ui="operations"] #shift-use-denom{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;min-height:42px;padding:8px 11px;border:0;border-radius:9px;background:#4f8fcc;color:#fff;font-size:10px;font-weight:850}
html[data-ui="operations"] .shift-difference-v24.discrepancy{border-color:#efc4bf;background:#fffafa}
html[data-ui="operations"] .shift-difference-v24.balanced{border-color:#bde1d2;background:#fbfffd}
html[data-ui="operations"] .shift-difference-v24.discrepancy>header>em{background:#ffebe8;color:#bf403a}
html[data-ui="operations"] .shift-difference-v24.balanced>header>em{background:#e8f8f0;color:#267452}
html[data-ui="operations"] .shift-compare-v24{display:grid;grid-template-columns:1fr auto 1fr 1.25fr;align-items:stretch;gap:7px;padding:10px;border-radius:12px;background:#f7f9fb}
html[data-ui="operations"] .shift-compare-v24>span,html[data-ui="operations"] .shift-compare-v24>b{display:grid;align-content:center;gap:2px;min-width:0}
html[data-ui="operations"] .shift-compare-v24 small{color:#7d8e9b;font-size:9px}
html[data-ui="operations"] .shift-compare-v24 strong{font-size:14px;white-space:nowrap}
html[data-ui="operations"] .shift-compare-v24>i{align-self:center;color:#8da0ad;font-style:normal}
html[data-ui="operations"] .shift-compare-v24>b{padding:7px 9px;border-left:1px solid #d9e3ea;color:#c34e48}
html[data-ui="operations"] .shift-reason-v24{display:grid;grid-template-columns:1fr 1.5fr;gap:8px;margin-top:10px}
html[data-ui="operations"] .shift-reason-v24 label{display:grid;gap:5px}
html[data-ui="operations"] .shift-reason-v24 label>span{color:#526b7d;font-size:10px;font-weight:850}
html[data-ui="operations"] .shift-reason-v24 select,html[data-ui="operations"] .shift-reason-v24 textarea{width:100%;min-height:44px;font-size:11px}
html[data-ui="operations"] .shift-confirm-v24>label{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #c9e0ef;border-radius:12px;background:#f0f8fd;cursor:pointer}
html[data-ui="operations"] .shift-confirm-v24 input{width:23px;height:23px;flex:0 0 23px}
html[data-ui="operations"] .shift-confirm-v24 label>span{display:grid;gap:2px}
html[data-ui="operations"] .shift-confirm-v24 label strong{font-size:12px}
html[data-ui="operations"] .shift-confirm-v24 label small{color:#748996;font-size:9px}
html[data-ui="operations"] .shift-history-v24{padding:13px}
html[data-ui="operations"] .shift-history-v24>header,html[data-ui="operations"] .shift-history-v24 summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer}
html[data-ui="operations"] .shift-history-v24 h2{margin:0;font-size:14px}
html[data-ui="operations"] .shift-history-v24 header span{color:#7d8e9a;font-size:10px}
html[data-ui="operations"] .shift-history-v24 details>div{display:grid;gap:7px;margin-top:10px;padding-top:10px;border-top:1px solid #e2e9ee}
html[data-ui="operations"] .shift-history-card-v24{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:10px;border:1px solid #e0e8ee;border-radius:10px;background:#fafcfd}
html[data-ui="operations"] .shift-history-card-v24>div,html[data-ui="operations"] .shift-history-card-v24>span{display:grid;gap:2px}
html[data-ui="operations"] .shift-history-card-v24 strong,html[data-ui="operations"] .shift-history-card-v24 b{font-size:11px}
html[data-ui="operations"] .shift-history-card-v24 span,html[data-ui="operations"] .shift-history-card-v24 small{color:#7b8d99;font-size:9px}
html[data-ui="operations"] .shift-history-card-v24 em{padding:4px 7px;border-radius:999px;font-size:9px;font-style:normal;font-weight:850;white-space:nowrap}
html[data-ui="operations"] .shift-history-card-v24 em.ok{background:#e9f7f0;color:#287153}
html[data-ui="operations"] .shift-history-card-v24 em.warn{background:#fff0ee;color:#bf4d47}
html[data-ui="operations"] .shift-actions-v24{position:fixed;right:0;bottom:0;left:var(--sidebar-width,248px);z-index:40;display:grid;grid-template-columns:minmax(130px,.45fr) minmax(220px,1fr);gap:8px;max-width:940px;margin:0 auto;padding:10px 14px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #d6e2ea;background:#ffffffef;box-shadow:0 -6px 20px #21497217;backdrop-filter:blur(10px)}
html[data-ui="operations"] .shift-actions-v24 button{min-height:50px;border:1px solid #cfdce5;border-radius:12px;background:#fff;color:#526879;font-size:11px;font-weight:900}
html[data-ui="operations"] .shift-actions-v24 .primary{border-color:#4f8fcc;background:#4f8fcc;color:#fff;font-size:13px}
html[data-ui="operations"] .shift-start-v24{display:grid;gap:7px;max-width:620px;margin:30px auto 0;padding:22px}
html[data-ui="operations"] .shift-kicker-v24{color:#4f8fcc;font-size:10px;font-weight:900;letter-spacing:.08em}
html[data-ui="operations"] .shift-start-v24 h2{margin:0;font-size:22px}
html[data-ui="operations"] .shift-start-v24>p{margin:0 0 8px;color:#6d8291;font-size:11px;line-height:1.5}
html[data-ui="operations"] .shift-start-v24 form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:9px}
html[data-ui="operations"] .shift-start-v24 label{display:grid;gap:5px;color:#526b7d;font-size:10px;font-weight:850}
html[data-ui="operations"] .shift-start-v24 label>div{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:6px;padding:6px 10px;border:2px solid #4f8fcc;border-radius:11px}
html[data-ui="operations"] .shift-start-v24 input{min-width:0;min-height:42px;border:0;font-size:19px;font-weight:900;outline:0}
html[data-ui="operations"] .shift-start-v24 .btn{min-height:56px}
html[data-ui="operations"] .shift-empty-v24{padding:24px;color:#81919d;font-size:11px;text-align:center}

@media(max-width:700px){
  html[data-ui="operations"] body:has(.shift-page-v24){overflow-x:hidden;background:#f4f7fb}
  html[data-ui="operations"] body:has(.shift-page-v24) .shell,html[data-ui="operations"] body:has(.shift-page-v24) .main{display:block!important;width:100%!important;min-width:0!important;margin:0!important}
  html[data-ui="operations"] body:has(.shift-page-v24) .sidebar{display:none!important}
  html[data-ui="operations"] body:has(.shift-page-v24) .topbar{position:sticky;top:0;z-index:45;min-height:62px;padding:8px 10px;background:#ffffffef;backdrop-filter:blur(9px)}
  html[data-ui="operations"] body:has(.shift-page-v24) .topbar-title{padding-right:45px}
  html[data-ui="operations"] body:has(.shift-page-v24) .topbar-title h1{font-size:17px}
  html[data-ui="operations"] body:has(.shift-page-v24) .topbar-title p{display:none}
  html[data-ui="operations"] body:has(.shift-page-v24) .top-actions{display:none}
  html[data-ui="operations"] .shift-page-v24{width:100%;max-width:430px;gap:10px;padding:10px 9px 110px!important}
  html[data-ui="operations"] .shift-overview-v24{padding:12px}
  html[data-ui="operations"] .shift-overview-v24>header small{max-width:105px}
  html[data-ui="operations"] .shift-meta-v24{grid-template-columns:1fr 1fr;gap:9px}
  html[data-ui="operations"] .shift-meta-v24 strong{font-size:11px}
  html[data-ui="operations"] .shift-expected-v24{padding:10px 11px}
  html[data-ui="operations"] .shift-expected-v24 strong{font-size:22px}
  html[data-ui="operations"] .shift-expected-v24 em{max-width:150px;font-size:8px}
  html[data-ui="operations"] .shift-steps-v24{padding:9px 6px}
  html[data-ui="operations"] .shift-steps-v24>i{width:15px}
  html[data-ui="operations"] .shift-steps-v24 small{font-size:8px}
  html[data-ui="operations"] .shift-section-v24{padding:11px}
  html[data-ui="operations"] .shift-revenue-v24{grid-template-columns:1fr}
  html[data-ui="operations"] .shift-denom-v24>div{grid-template-columns:1fr 1fr;gap:5px;padding:7px}
  html[data-ui="operations"] .shift-denom-v24 label{grid-template-columns:minmax(0,1fr) 55px auto;padding:5px}
  html[data-ui="operations"] .shift-compare-v24{grid-template-columns:1fr auto 1fr}
  html[data-ui="operations"] .shift-compare-v24>b{grid-column:1/-1;padding:8px 0 0;border-top:1px solid #d9e3ea;border-left:0;text-align:right}
  html[data-ui="operations"] .shift-reason-v24{grid-template-columns:1fr}
  html[data-ui="operations"] .shift-history-card-v24{grid-template-columns:minmax(0,1fr) auto}
  html[data-ui="operations"] .shift-history-card-v24>span{display:none}
  html[data-ui="operations"] .shift-actions-v24{left:0;width:min(100%,430px);grid-template-columns:.42fr 1fr;padding:8px 9px calc(8px + env(safe-area-inset-bottom))}
  html[data-ui="operations"] .shift-start-v24{margin:8px 0 0;padding:16px}
  html[data-ui="operations"] .shift-start-v24 form{grid-template-columns:1fr}
}

@media print{
  html[data-ui="operations"] .sidebar,html[data-ui="operations"] .topbar,html[data-ui="operations"] .shift-actions-v24,html[data-ui="operations"] .shift-denom-v24{display:none!important}
  html[data-ui="operations"] .shift-page-v24{max-width:none;padding:0!important;background:#fff}
}
