:root {
  --bg: #eef7fb;
  --panel: #fbfdff;
  --ink: #172033;
  --muted: #64748b;
  --line: #cfdde0;
  --primary: #2f9ed8;
  --primary-ink: #0b3d5c;
  --surface: rgba(251, 253, 252, .9);
  --surface-soft: rgba(243, 248, 247, .82);
  --accent-amber: #d97706;
  --accent-blue: #2563eb;
  --blue: #2563eb;
  --warn: #d97706;
  --danger: #c2410c;
  --field-ink: #050816;
  --field-placeholder: #334155;
  --field-bg: #f8fbff;
  --radius: 8px;
  --shadow: 0 10px 24px rgba(47, 158, 216, .075);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  user-select: text;
  -webkit-user-select: text;
}
button, input, select, textarea { font: inherit; }
input, textarea, select, [contenteditable="true"] {
  user-select: text;
  -webkit-user-select: text;
}
button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  min-height: 34px;
  border-radius: var(--radius);
  padding: 7px 10px;
  cursor: pointer;
}
button.primary, .primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
}
button:disabled,
button.primary:disabled,
.primary:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}
button.ghost, .ghost { background: #f8fafc; }
button.danger, .danger {
  background: #fff7ed;
  border-color: #fed7aa;
  color: var(--danger);
  font-weight: 800;
}
input, select, textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  background: var(--field-bg);
  color: var(--field-ink);
  font-weight: 600;
  border-radius: var(--radius);
  padding: 7px 9px;
  outline: none;
}
input::placeholder,
textarea::placeholder {
  color: var(--field-placeholder);
  opacity: 1;
}
input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  padding: 0;
  accent-color: var(--primary);
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 158, 216, .14); }
label { display: grid; gap: 5px; font-size: 12px; color: var(--muted); min-width: 0; }
h1, h2, h3 { margin: 0; }
.hidden { display: none !important; }
.empty { padding: 18px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); background: #fbfcfe; }

.phone-input {
  display: grid;
  grid-template-columns: minmax(0, .46fr) minmax(0, .54fr);
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.phone-input .phone-country,
.phone-input .phone-local {
  min-width: 0;
}
.region-field {
  min-width: 0;
}
.region-input {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.region-input.has-address {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}
.region-input select,
.region-input input {
  min-width: 0;
}
.region-input.has-address .region-address {
  grid-column: 1 / -1;
}
.row.two .region-field,
.grid-form .region-field {
  grid-column: 1 / -1;
}
.grid-form .phone-field,
.admin-form-grid .phone-field,
.admin-inline-grid .phone-field,
.profile-grid .phone-field,
.self-form-grid .phone-field,
.ai-config-form .phone-field {
  grid-column: span 2;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(420px, 1.05fr);
}
.auth-brand {
  background: #102a2c;
  color: white;
  padding: 38px;
  display: grid;
  align-content: space-between;
  gap: 24px;
}
.auth-identity { display: grid; align-content: start; gap: 14px; max-width: 560px; }
.auth-logo-card {
  width: min(280px, 100%);
  background: #fff;
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
}
.auth-logo {
  display: block;
  width: 100%;
  height: auto;
}
.auth-brand h1 { font-size: 48px; }
.auth-brand p { color: rgba(255,255,255,.76); max-width: 520px; line-height: 1.6; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.demo-grid button { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); text-align: left; }
.demo-grid span { display: block; color: rgba(255,255,255,.62); font-size: 12px; margin-top: 3px; }
.demo-role-select { display: grid; gap: 5px; margin: 0; }
.demo-role-select span { color: var(--muted); font-size: 12px; font-weight: 800; }
.demo-role-select select { width: 100%; min-height: 40px; }
.auth-panel { padding: 34px; display: grid; align-content: start; gap: 18px; background: var(--panel); }
.tabs { display: flex; gap: 8px; }
.tabs button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.stack { display: grid; gap: 12px; }
.row { display: grid; gap: 10px; }
.row.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.crop-row { display: grid; grid-template-columns: max-content minmax(230px,1fr); gap: 12px; align-items: start; }
.cropper { position: relative; display: grid; grid-template-columns: var(--cw) max-content; align-items: start; gap: 8px; min-width: 0; overflow: visible; }
.cropper canvas { width: var(--cw); height: var(--ch); max-width: 100%; border-radius: 6px; border: 1px solid var(--line); background: #eef2f6; cursor: grab; touch-action: none; }
.cropper input[type="range"] { width: 100%; min-width: 0; }
.crop-title { color: var(--ink); font-weight: 700; font-size: 13px; }

.auth-body {
  background: #e7edf2;
}
.auth-body .auth-screen {
  min-height: 100dvh;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 14px 12px 22px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 12px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line);
}
html.unisale-mobile-device body.auth-body .auth-screen {
  background: var(--bg);
  box-shadow: none;
}
html.unisale-mobile-device body.auth-body .auth-section {
  border-color: rgba(192, 209, 214, .82);
  background-color: rgba(255, 255, 255, .62);
  box-shadow: 0 10px 28px rgba(38, 67, 76, .09);
  -webkit-backdrop-filter: blur(9px) saturate(1.04);
  backdrop-filter: blur(9px) saturate(1.04);
}
.auth-phone-header {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(140px, 170px);
  justify-content: end;
  gap: 12px;
  align-items: center;
}
.auth-language {
  width: 100%;
  min-height: 42px;
  align-self: center;
}
.auth-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .055);
}
.auth-section-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.auth-register-actions {
  gap: 10px;
}
.auth-register-actions button,
.auth-section .primary {
  width: 100%;
  min-height: 46px;
  font-weight: 900;
}
.auth-page-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.auth-page-title h2 {
  font-size: 21px;
  line-height: 1.2;
}
.auth-page-title button {
  width: auto;
  min-height: 36px;
}
.auth-body .demo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.auth-body .demo-grid button {
  width: 100%;
  min-height: 52px;
  color: var(--ink);
  background: #f8fafc;
  border-color: var(--line);
  text-align: left;
  min-width: 0;
}
.auth-body .demo-grid span {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.auth-body .demo-role-select span {
  margin: 0;
  color: var(--muted);
}
.auth-company-intro {
  display: grid;
  gap: 7px;
  padding: 3px 1px 6px;
}
.auth-promotion-card {
  gap: 8px;
}
.auth-promotion-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.auth-promotion-brand {
  color: #187c73;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.auth-promotion-language {
  width: min(170px, 58%);
  min-height: 38px;
}
.auth-promotion-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.auth-promotion-actions .auth-promotion-enterprise-register {
  grid-column: 2;
  justify-self: center;
  width: auto;
  min-height: 34px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
}
.auth-promotion-actions .auth-quick-login-trigger {
  grid-column: 3;
  justify-self: end;
}
.auth-company-intro h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.28;
}
.auth-company-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}
.auth-section .auth-quick-login-trigger {
  justify-self: end;
  width: auto;
  min-height: 34px;
  padding: 5px 9px;
  border-color: transparent;
  background: transparent;
  color: #71808e;
  font-size: 12px;
  font-weight: 750;
}
.auth-section .auth-quick-login-trigger:hover {
  border-color: var(--line);
  background: #f4f7f9;
  color: var(--ink);
}
.auth-quick-login-panel {
  display: grid;
  gap: 10px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.auth-quick-login-unlock {
  display: grid;
  gap: 9px;
}
.auth-quick-login-unlock label {
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.auth-quick-login-unlock p,
.auth-quick-login-message {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.auth-body .crop-row {
  grid-template-columns: 1fr;
}
.auth-body .cropper canvas {
  width: 100%;
  height: auto;
}

.desktop-body {
  background: linear-gradient(135deg, #edf4f4, #f8fbfa 52%, #eef6f2);
}
.top-nav-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.top-nav-bar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  border-bottom: 1px solid rgba(203, 213, 225, .70);
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .80));
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .045);
}
.top-nav-brand {
  flex: 0 1 238px;
  min-width: 168px;
}
.top-nav-menu {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 2px;
  scrollbar-width: thin;
}
.top-nav-menu button {
  position: relative;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 13px;
  border-radius: var(--radius);
  color: #213042;
  border-color: rgba(148, 163, 184, .34);
  background: rgba(255, 255, 255, .62);
  font-weight: 750;
}
.top-nav-menu button:hover {
  border-color: rgba(47, 158, 216, .30);
  background: rgba(234, 246, 252, .88);
}
.top-nav-menu button.active {
  color: var(--primary-ink);
  border-color: rgba(47, 158, 216, .32);
  background: #fff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(47, 158, 216, .14);
}
.top-nav-menu button.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}
.top-nav-group {
  flex: 0 0 auto;
  position: relative;
  display: inline-flex;
  align-items: stretch;
}
.top-nav-group.active {
  z-index: 40;
}
.top-nav-group-title {
  min-height: 40px;
  padding: 6px 30px 6px 14px;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}
.top-nav-group-title::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  opacity: .65;
}
.top-nav-group-title.active,
.top-nav-group:focus-within .top-nav-group-title,
.top-nav-group:hover .top-nav-group-title {
  color: var(--primary);
  border-color: rgba(47, 158, 216, .26);
  background: rgba(234, 246, 252, .94);
}
.top-nav-subitems {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  display: none;
  min-width: 190px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .18);
}
.top-nav-group:hover .top-nav-subitems,
.top-nav-group:focus-within .top-nav-subitems {
  display: grid;
  gap: 5px;
}
.top-nav-subitems button {
  width: 100%;
  justify-content: flex-start;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 12px;
  box-shadow: none;
}
.top-nav-tools {
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.top-nav-tools .side-language-select {
  width: 190px;
}
.top-nav-tools .side-site-select {
  width: 180px;
}
.top-nav-tools .user-menu-popover {
  left: auto;
  right: 0;
}
.top-nav-shell > main {
  min-width: 0;
  min-height: 0;
  overflow: auto;
}
.top-nav-shell > main.manager-inventory-main {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
}
body.role-admin {
  min-width: 0;
  overflow-x: hidden;
}
body.role-admin .top-nav-shell {
  min-width: 0;
}
body.role-admin .top-nav-bar {
  flex-wrap: nowrap;
}
body.role-admin .top-nav-menu {
  order: 0;
  width: auto;
  min-width: 0;
  flex-wrap: wrap;
  overflow: visible;
}
.manager-inventory-main > .content {
  min-width: 0;
  overflow: auto;
}
.manager-inventory-subnav {
  min-width: 0;
  min-height: calc(100dvh - 68px);
  padding: 14px 10px;
  border-right: 1px solid rgba(203, 213, 225, .78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(247, 251, 250, .72)),
    rgba(255, 255, 255, .68);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 10px 0 26px rgba(15, 23, 42, .05);
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
}
.manager-inventory-subnav-title {
  padding: 4px 8px 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.manager-inventory-subnav nav {
  display: grid;
  gap: 8px;
}
.manager-inventory-subnav button {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}
.manager-inventory-subnav button:hover {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(203, 213, 225, .82);
}
.manager-inventory-subnav button.active {
  border-color: rgba(47, 125, 116, .30);
  background: rgba(255, 255, 255, .88);
  color: var(--primary);
  box-shadow: inset 3px 0 0 var(--primary), 0 8px 18px rgba(15, 23, 42, .045);
}
.inventory-dashboard-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 108px;
  padding: 18px 20px;
  border: 1px solid rgba(203, 213, 225, .72);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(228, 244, 241, .96), rgba(255, 255, 255, .94) 54%, rgba(239, 246, 255, .78)),
    repeating-linear-gradient(135deg, rgba(47, 125, 116, .06) 0 1px, transparent 1px 12px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}
.inventory-dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary), #60a5fa);
}
.inventory-dashboard-hero span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.inventory-dashboard-hero h2 {
  margin: 3px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}
.inventory-dashboard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}
.inventory-dashboard-meta strong {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(47, 158, 216, .20);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .68);
  color: #31525a;
  font-size: 12px;
}
.inventory-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(124px, 1fr));
  gap: 10px;
}
.inventory-action-card,
.inventory-status-row,
.inventory-dashboard-quick button {
  position: relative;
  border: 1px solid rgba(203, 213, 225, .86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .86);
  color: var(--ink);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.inventory-action-card:hover,
.inventory-status-row:hover,
.inventory-dashboard-quick button:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 125, 116, .35);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}
.inventory-action-card:active,
.inventory-status-row:active,
.inventory-dashboard-quick button:active {
  transform: translateY(0) scale(.99);
}
.inventory-action-card {
  min-width: 0;
  padding: 12px 14px;
  text-align: left;
  overflow: hidden;
}
.inventory-action-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--primary);
}
.inventory-action-card.route-stockOut::before {
  background: var(--accent-amber);
}
.inventory-action-card span,
.inventory-dashboard-quick span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.inventory-action-card b {
  display: block;
  margin-top: 3px;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}
.inventory-action-card em,
.inventory-dashboard-quick em,
.inventory-status-row em,
.inventory-dashboard-metric em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.inventory-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .32fr);
  gap: 14px;
  align-items: start;
}
.inventory-dashboard-main {
  display: grid;
  gap: 14px;
}
.inventory-dashboard-card {
  overflow: hidden;
}
.inventory-dashboard-metrics {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.inventory-dashboard-metric {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(203, 213, 225, .82);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, rgba(248, 251, 253, .86));
}
.inventory-dashboard-metric::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(47, 158, 216, .88), rgba(37, 99, 235, .55));
}
.inventory-dashboard-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.inventory-dashboard-metric b {
  display: block;
  margin-top: 5px;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.inventory-status-list {
  padding: 12px;
  display: grid;
  gap: 8px;
}
.inventory-status-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto minmax(160px, .9fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  text-align: left;
  background: linear-gradient(90deg, rgba(255, 255, 255, .94), rgba(248, 251, 253, .82));
}
.inventory-status-row span {
  font-weight: 900;
}
.inventory-status-row b {
  color: var(--primary);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.taskflow-panel {
  overflow: hidden;
}
.taskflow-list {
  padding: 12px;
  display: grid;
  gap: 10px;
}
.taskflow-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(203, 213, 225, .86);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, rgba(248, 251, 253, .9));
}
.taskflow-card.approval {
  border-left: 4px solid #e59f25;
}
.taskflow-card.execution {
  border-left: 4px solid var(--primary);
}
.taskflow-card.pending {
  border-left-color: #dc2626;
}
.taskflow-card.pending .taskflow-card-kicker,
.taskflow-card.pending h3 {
  color: #b91c1c;
}
.taskflow-card.closed {
  border-left-color: #111827;
  color: #111827;
}
.taskflow-card.closed .taskflow-card-kicker,
.taskflow-card.closed h3,
.taskflow-card.closed p {
  color: #111827;
}
.taskflow-card-kicker {
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
}
.taskflow-card h3 {
  margin: 3px 0 4px;
  font-size: 18px;
}
.taskflow-card p {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}
.taskflow-fields {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.taskflow-fields div {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 8px;
  background: rgba(248, 250, 252, .72);
}
.taskflow-fields span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.taskflow-fields b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}
.taskflow-card.closed .taskflow-fields b {
  color: #111827;
}
.taskflow-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.taskflow-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(226, 232, 240, .55);
}
.taskflow-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.taskflow-table-wrap {
  max-height: calc(100vh - 190px);
  overflow: auto;
}
.taskflow-table {
  min-width: 980px;
}
.taskflow-table-row td {
  vertical-align: middle;
}
.taskflow-table-row td:first-child {
  display: grid;
  gap: 2px;
}
.taskflow-table-row td:first-child b {
  font-size: 13px;
  line-height: 1.2;
}
.taskflow-table-row td:first-child span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.taskflow-table-row.unhandled td,
.taskflow-table-row.unhandled td:first-child span {
  color: #b91c1c;
}
.taskflow-table-row.unhandled td:first-child b {
  color: #b91c1c;
}
.taskflow-table-row.handled td,
.taskflow-table-row.handled td:first-child b,
.taskflow-table-row.handled td:first-child span {
  color: #111827;
}
.taskflow-detail-panel.unhandled {
  border-left: 4px solid #dc2626;
}
.taskflow-detail-panel.handled {
  border-left: 4px solid #111827;
}
.taskflow-detail-panel .taskflow-card-kicker {
  padding: 0 12px 4px;
}
.taskflow-detail-fallback-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.taskflow-return-button {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(47, 158, 216, .24);
  min-height: 32px;
  padding: 7px 12px;
  white-space: nowrap;
}
.taskflow-detail-head {
  gap: 12px;
}
.taskflow-detail-head h3 {
  min-width: 0;
}
.detail-fields {
  padding: 0 12px 12px;
}
.taskflow-detail-document {
  margin-top: 10px;
}
.taskflow-detail-summary {
  padding: 12px;
  font-weight: 800;
}
.taskflow-detail-actions {
  margin-top: 10px;
}
.taskflow-detail-action-row {
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.taskflow-detail-action-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.promotion-product-pick {
  display: flex;
  align-items: center;
  gap: 8px;
}
.promotion-product-pick input[type="checkbox"] {
  flex: 0 0 32px;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 7px;
  accent-color: var(--primary);
}
.promotion-product-pick span {
  display: block;
  min-width: 0;
}
.promotion-product-pick em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  margin-top: 2px;
}
.promotion-suggestion-table input[type="number"] {
  width: 74px;
}
.purchase-suggestion-section + .purchase-suggestion-section {
  border-top: 1px solid #d8e0ec;
}
.purchase-suggestion-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #d8e0ec;
}
.purchase-suggestion-section-head h4 {
  margin: 0;
  font-size: 13px;
}
.purchase-suggestion-section-head span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}
.inventory-dashboard-quick {
  padding: 12px;
  display: grid;
  gap: 9px;
}
.inventory-dashboard-quick button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 10px 12px;
  text-align: left;
}
.inventory-dashboard-quick button::after {
  content: ">";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--muted);
  font-weight: 900;
}
.inventory-dashboard-quick span {
  grid-column: 1;
  color: var(--ink);
  font-size: 15px;
}
.inventory-dashboard-quick em {
  grid-column: 1;
}
.desktop-shell {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(236px, 268px) minmax(0,1fr);
}
.nav-sidebar-pin {
  position: relative;
  z-index: 110;
  width: 36px;
  min-width: 36px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  justify-self: end;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 158, 216, .38);
  border-radius: 11px;
  color: var(--primary);
  background: rgba(251, 253, 255, .94);
  box-shadow: 0 8px 22px rgba(11, 61, 92, .14);
  transition: background .15s ease, transform .15s ease;
}
.nav-sidebar-pin:hover,
.nav-sidebar-pin:focus-visible {
  background: #eaf6fc;
  border-color: var(--primary);
  transform: translateY(-1px);
}
.nav-sidebar-pin img {
  width: 19px;
  height: 19px;
  filter: invert(55%) sepia(86%) saturate(1072%) hue-rotate(165deg) brightness(91%) contrast(87%);
}
.nav-sidebar-pin::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(-3px);
  width: max-content;
  max-width: 180px;
  padding: 6px 8px;
  color: #fff;
  background: #0b2538;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}
.nav-sidebar-pin:hover::after,
.nav-sidebar-pin:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.desktop-shell > aside {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 12px;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.24);
  background:
    linear-gradient(145deg, rgba(9, 30, 42, .82), rgba(20, 95, 134, .64)),
    rgba(255,255,255,.12);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    inset -1px 0 0 rgba(255,255,255,.20),
    18px 0 45px rgba(15, 23, 42, .12);
}
.brand {
  padding: 9px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 18px 40px rgba(0,0,0,.14);
}
.brand .side-site-select,
.brand .side-language-select {
  grid-column: 1 / -1;
}
.desktop-shell > aside .user-menu-context,
.desktop-shell > aside .user-menu-text strong {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,.18);
}
.user-menu {
  position: relative;
  min-width: 0;
}
.user-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 6px;
  min-width: 0;
}
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover,
.user-menu[open] summary {
  background: #eaf6fc;
  border-color: rgba(47,158,216,.20);
}
.desktop-shell > aside .user-menu summary:hover,
.desktop-shell > aside .user-menu[open] summary {
  background: transparent;
  border-color: transparent;
}
.desktop-shell > aside .user-menu summary {
  gap: 8px;
  padding: 0;
  border-color: transparent;
  background: transparent;
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: #0f3f62;
  border: 1px solid rgba(15,23,42,.08);
  font-size: 12px;
  font-weight: 800;
}
.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.desktop-shell > aside .user-avatar {
  width: 32px;
  height: 32px;
}
.user-menu-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.user-menu-context {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-text strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-text em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.desktop-shell > aside .user-menu-text em,
.desktop-shell > aside .user-menu-context,
.desktop-shell > aside .side-language-select {
  color: rgba(255,255,255,.72);
}
.desktop-shell > aside .user-menu-context {
  font-size: 11px;
}
.desktop-shell > aside .user-menu-text strong {
  font-size: 13px;
}
.desktop-shell > aside .user-menu-text em {
  font-size: 11px;
}
.user-menu-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 80;
  min-width: 164px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
}
.user-menu-popover button {
  width: 100%;
  text-align: left;
  border-color: transparent;
  background: transparent;
  color: var(--ink);
}
.user-menu-popover button:hover { background: #eaf6fc; }
.side-site-select select,
.side-language-select select {
  width: 100%;
  min-height: 36px;
  font-size: 12px;
}
.desktop-shell > aside .side-site-select select,
.desktop-shell > aside .side-language-select select {
  min-height: 34px;
  padding: 7px 24px 7px 10px;
  font-size: 12px;
  color: #fff;
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.desktop-shell > aside select option {
  color: var(--ink);
  background: #fff;
}
.side-language-select {
  font-size: 12px;
  color: var(--muted);
}
.desktop-shell > aside > nav { display: grid; gap: 6px; }
.desktop-shell > aside > nav > button {
  min-height: 39px;
  padding: 7px 10px;
  text-align: left;
  color: rgba(255,255,255,.86);
  border-color: rgba(255,255,255,.13);
  border-radius: 12px;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}
.desktop-shell .nav-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}
.desktop-shell .nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bottom-nav .nav-icon { display: none; }
.desktop-shell > aside > nav > button:hover {
  color: #fff;
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.24);
}
.desktop-shell > aside > nav > button.active {
  color: #0b3550;
  background: rgba(255,255,255,.78);
  border-color: rgba(255,255,255,.72);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.8);
}
.desktop-shell .store-workbench-nav-group {
  position: relative;
  display: grid;
  gap: 5px;
}
.desktop-shell .store-workbench-nav-group > summary {
  min-height: 39px;
  padding: 7px 10px;
  align-items: center;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 16px;
  gap: 9px;
  cursor: pointer;
  list-style: none;
  color: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.desktop-shell .store-workbench-nav-group > summary::-webkit-details-marker { display: none; }
.desktop-shell .store-workbench-nav-group > summary:hover {
  color: #fff;
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.24);
}
.desktop-shell .store-workbench-nav-group.active > summary {
  color: #0b3550;
  background: rgba(255,255,255,.78);
  border-color: rgba(255,255,255,.72);
  font-weight: 900;
}
.desktop-shell .store-workbench-nav-group[open] > summary .nav-expand-cue { transform: rotate(180deg); }
.desktop-shell .store-workbench-subnav {
  margin-left: 13px;
  padding: 5px 0 4px 10px;
  display: grid;
  gap: 4px;
  border-left: 1px solid rgba(255,255,255,.28);
}
.desktop-shell .store-workbench-subnav > button {
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  text-align: left;
  color: rgba(255,255,255,.82);
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
}
.desktop-shell .store-workbench-subnav > button:hover {
  color: #fff;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
}
.desktop-shell .store-workbench-subnav > button.active {
  color: #0b3550;
  border-color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.72);
  font-weight: 900;
}
.desktop-shell > main {
  min-width: 0;
  height: 100dvh;
  overflow: auto;
}

@media (min-width: 761px) {
  body.nav-sidebar-auto-hide .desktop-shell.nav-sidebar-shell {
    --nav-sidebar-collapsed-width: 58px;
    --nav-sidebar-expanded-width: min(268px, 88vw);
    grid-template-columns: var(--nav-sidebar-collapsed-width) minmax(0, 1fr);
  }

  body.nav-sidebar-auto-hide .desktop-shell.nav-sidebar-shell > aside {
    z-index: 90;
    width: var(--nav-sidebar-collapsed-width);
    transform: none;
    transition: width .18s ease;
    overflow-x: hidden;
    will-change: width;
  }

  body.nav-sidebar-auto-hide .desktop-shell.nav-sidebar-shell > aside:hover,
  body.nav-sidebar-auto-hide .desktop-shell.nav-sidebar-shell > aside:focus-within {
    width: var(--nav-sidebar-expanded-width);
  }

  body.nav-sidebar-auto-hide .desktop-shell.nav-sidebar-shell > aside .brand {
    width: 244px;
  }
  body.nav-sidebar-auto-hide .desktop-shell.nav-sidebar-shell > aside > nav,
  body.nav-sidebar-auto-hide .desktop-shell.nav-sidebar-shell > aside .store-workbench-nav-group {
    width: 244px;
  }
  body.nav-sidebar-auto-hide .desktop-shell.nav-sidebar-shell > aside:not(:hover):not(:focus-within) .brand {
    visibility: hidden;
  }
  body.nav-sidebar-auto-hide .desktop-shell.nav-sidebar-shell > aside:not(:hover):not(:focus-within) > nav > button,
  body.nav-sidebar-auto-hide .desktop-shell.nav-sidebar-shell > aside:not(:hover):not(:focus-within) .store-workbench-nav-group > summary {
    width: 34px;
    min-width: 34px;
    padding-left: 6px;
    padding-right: 6px;
    grid-template-columns: 22px;
    gap: 0;
  }
  body.nav-sidebar-auto-hide .desktop-shell.nav-sidebar-shell > aside:not(:hover):not(:focus-within) .nav-label,
  body.nav-sidebar-auto-hide .desktop-shell.nav-sidebar-shell > aside:not(:hover):not(:focus-within) .nav-expand-cue,
  body.nav-sidebar-auto-hide .desktop-shell.nav-sidebar-shell > aside:not(:hover):not(:focus-within) .store-workbench-subnav {
    display: none;
  }

  body.nav-sidebar-auto-hide .desktop-shell.nav-sidebar-shell > aside:not(:hover):not(:focus-within) .nav-sidebar-pin {
    justify-self: center;
    width: 34px;
    min-width: 34px;
  }

  body.nav-sidebar-auto-hide .desktop-shell.nav-sidebar-shell > main {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 760px) {
  .nav-sidebar-pin { display: none; }
}

.desktop-shell > main.manager-inventory-main {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
}
.content { padding: 16px 18px 34px; display: grid; gap: 14px; }
.content.compact { padding: 10px 10px 74px; }

.phone-body { background: #e7edf2; }
.phone-shell {
  min-height: 100vh;
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line);
  position: relative;
}
.phone-shell header {
  height: 54px;
  padding: 10px 12px;
  background: #102a2c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.phone-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}
.phone-header-language select {
  width: 88px;
  min-height: 34px;
  padding: 4px 24px 4px 8px;
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 13px;
}
.phone-header-language option {
  color: var(--ink);
  background: #fff;
}
.phone-shell header .user-menu summary { color: #fff; padding: 4px; }
.phone-shell header .user-menu summary:hover,
.phone-shell header .user-menu[open] summary {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.14);
}
.phone-shell header .user-avatar {
  width: 32px;
  height: 32px;
}
.phone-shell header .user-menu-text strong { color: #fff; max-width: 110px; }
.phone-shell header .user-menu-text em { color: rgba(255,255,255,.72); }
.phone-shell header .user-menu-popover {
  left: auto;
  right: 0;
}
.phone-toolbar { display: flex; gap: 8px; padding: 8px; background: #fff; border-bottom: 1px solid var(--line); }
.self-checkout-body {
  background: #dfe7ec;
}
.self-checkout-shell {
  width: min(720px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line);
}
.self-checkout-shell header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 80;
  width: min(720px, 100%);
  min-height: 66px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transform: translate(-50%, calc(-100% - 2px));
  transition: transform .2s ease;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
}
.self-header-open .self-checkout-shell header,
.self-checkout-shell header:focus-within {
  transform: translate(-50%, 0);
}
.self-checkout-top-hotspot {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 81;
  width: min(720px, 100%);
  height: 24px;
  transform: translateX(-50%);
  touch-action: pan-y;
}
.self-header-open .self-checkout-top-hotspot {
  pointer-events: none;
}
.self-checkout-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.self-checkout-tools .side-language-select {
  width: 190px;
}
.self-checkout-content {
  padding: 12px;
}
.self-kiosk-body {
  background: #eef3f5;
  user-select: none;
}
.self-kiosk-shell {
  width: min(920px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  background: #f8fafc;
  box-shadow: 0 0 0 1px var(--line);
}
.self-kiosk-content {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 0;
}
.self-kiosk-header {
  min-height: 76px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.self-kiosk-header > div:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.self-kiosk-header span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.self-kiosk-header strong {
  color: var(--ink);
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.1;
}
.self-kiosk-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.self-kiosk-header-actions button {
  min-height: 48px;
  font-size: 16px;
  font-weight: 900;
}
.self-kiosk-header-actions button.primary {
  display: flex;
  align-items: center;
  gap: 8px;
}
.self-kiosk-header-actions button.primary b,
.self-kiosk-header-actions button.primary em {
  font-style: normal;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
}
.self-kiosk-ad-header {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 70px;
  padding: 8px 12px;
}
.self-kiosk-logo-button {
  width: 54px;
  min-width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(74, 123, 139, .24);
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  box-shadow: none;
}
.self-kiosk-logo-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.self-kiosk-ad-header .self-kiosk-header-checkout {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  width: 126px;
  min-width: 126px;
  height: 54px;
  min-height: 54px;
  margin: 0;
  padding: 5px 10px 7px;
  border-radius: 11px;
  white-space: nowrap;
}
.self-kiosk-ad-header .self-kiosk-header-checkout small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, .82);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.self-kiosk-ad-header .self-kiosk-header-checkout strong {
  color: #fff;
  font-size: 20px;
  line-height: 1;
}
.self-kiosk-ad-header .self-checkout-mobile-ad-viewport {
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}
.self-kiosk-ad-header .self-checkout-mobile-ad-viewport::-webkit-scrollbar {
  display: none;
}
.self-kiosk-ad-header .self-checkout-mobile-ad-track {
  display: flex;
  gap: 7px;
}
.self-kiosk-ad-header .self-checkout-mobile-ad {
  position: relative;
  display: grid;
  flex: 0 0 calc((100% - 14px) / 3);
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  height: 52px;
  min-height: 52px;
  padding: 5px 7px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgba(74, 123, 139, .2);
  border-radius: 11px;
  background: #f8fbfc;
  box-shadow: none;
  color: var(--ink);
  text-align: left;
}
.self-kiosk-ad-header .self-checkout-mobile-ad:nth-child(3n + 1) {
  scroll-snap-align: start;
}
.self-kiosk-ad-header .self-checkout-mobile-ad:active {
  transform: scale(.98);
}
.self-kiosk-ad-header .self-checkout-mobile-ad:disabled {
  opacity: .58;
}
.self-kiosk-ad-header .self-checkout-mobile-ad-image {
  display: grid;
  width: 42px;
  height: 42px;
  overflow: hidden;
  place-items: center;
  border-radius: 8px;
  background: #e8eef2;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}
.self-kiosk-ad-header .self-checkout-mobile-ad-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.self-kiosk-ad-header .self-checkout-mobile-ad-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.self-kiosk-ad-header .self-checkout-mobile-ad-copy strong,
.self-kiosk-ad-header .self-checkout-mobile-ad-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.self-kiosk-ad-header .self-checkout-mobile-ad-copy strong {
  font-size: 12px;
  line-height: 1.15;
}
.self-kiosk-ad-header .self-checkout-mobile-ad-copy small {
  color: #d05a24;
  font-size: 11px;
  font-weight: 900;
}
.self-kiosk-ad-header .self-checkout-mobile-ad-added {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: rgba(22, 140, 195, .9);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  pointer-events: none;
}
.self-kiosk-ad-header .self-checkout-mobile-ad-empty {
  min-width: 0;
  height: 52px;
}
.self-kiosk-restaurant-layout {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  height: calc(100dvh - 84px);
  min-height: 0;
  background: #f6f8fb;
}
.self-kiosk-category-rail {
  min-width: 0;
  overflow-y: auto;
  padding: 10px 8px 18px;
  display: grid;
  align-content: start;
  gap: 8px;
  background: #fff;
  border-right: 1px solid var(--line);
}
.self-kiosk-category-rail button {
  position: relative;
  width: 100%;
  min-height: 102px;
  padding: 7px 5px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #fff;
  font-weight: 800;
}
.self-kiosk-category-rail button > span {
  width: 62px;
  height: 54px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #eef3f7;
  color: var(--primary);
  font-size: 24px;
}
.self-kiosk-category-rail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.self-kiosk-category-rail strong {
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
}
.self-kiosk-category-rail small {
  position: absolute;
  right: 4px;
  top: 4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e8eef4;
  color: var(--muted);
  font-size: 11px;
}
.self-kiosk-category-rail button.active {
  border-color: var(--primary);
  background: #eaf5f2;
  color: var(--primary);
  box-shadow: inset 3px 0 0 var(--primary);
}
.self-kiosk-category-rail button.active small {
  background: var(--primary);
  color: #fff;
}
.self-kiosk-restaurant-layout > .self-kiosk-main {
  min-height: 0;
  overflow-y: auto;
}
.self-kiosk-main {
  padding: 14px;
  min-width: 0;
}
.self-kiosk-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.self-kiosk-product-card {
  position: relative;
  min-height: 244px;
  padding: 10px;
  display: grid;
  gap: 8px;
  text-align: left;
  align-content: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}
.self-kiosk-product-card.is-changed {
  border-color: var(--primary);
  animation: self-kiosk-product-pulse 700ms ease-out;
}
.self-kiosk-product-card .self-kiosk-product-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.22;
  border-radius: 10px;
  overflow: hidden;
  background: #e8eef2;
}
.self-kiosk-product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.self-kiosk-product-card .self-kiosk-product-image em {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 10px;
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
  text-align: center;
}
.self-kiosk-product-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.self-kiosk-product-card > span:not(.self-kiosk-product-image) {
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
}
.self-kiosk-product-stepper {
  display: grid;
  grid-template-columns: 44px minmax(42px, 1fr) 44px;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.self-kiosk-product-stepper button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 10px;
  background: #eef5f8;
  color: var(--primary);
  font-size: 25px;
  font-weight: 900;
  box-shadow: none;
}
.self-kiosk-product-stepper button:last-child {
  background: var(--primary);
  color: #fff;
}
.self-kiosk-product-stepper b {
  min-width: 0;
  text-align: center;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.self-kiosk-change-feedback {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(22, 140, 195, .92);
  color: #fff;
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
  pointer-events: none;
  animation: self-kiosk-change-pop 700ms ease-out forwards;
}
.self-kiosk-scan-main {
  display: grid;
  gap: 14px;
  align-content: start;
}
.self-kiosk-scan-card,
.self-kiosk-cart-brief,
.self-kiosk-payment-card,
.self-kiosk-cart-list {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}
.self-kiosk-scan-card {
  padding: 16px;
  display: grid;
  gap: 14px;
}
.self-kiosk-scan-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 900;
}
.self-kiosk-scan-card input {
  min-height: 74px;
  font-size: 30px;
  font-weight: 900;
}
.self-kiosk-cart-brief {
  padding: 16px;
  display: grid;
  gap: 10px;
}
.self-kiosk-cart-brief > strong {
  font-size: 24px;
}
.self-kiosk-cart-brief > span {
  color: var(--green);
  font-size: 30px;
  font-weight: 900;
}
.self-kiosk-mini-cart {
  display: grid;
  gap: 6px;
}
.self-kiosk-mini-cart div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.self-kiosk-cart-page {
  padding-bottom: 112px;
}
.self-kiosk-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 800;
}
.self-kiosk-cart-list {
  overflow: hidden;
}
.self-kiosk-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.self-kiosk-cart-row:last-child {
  border-bottom: 0;
}
.self-kiosk-cart-row strong {
  display: block;
  font-size: 18px;
}
.self-kiosk-cart-row span {
  color: var(--muted);
  font-weight: 800;
}
.self-kiosk-qty-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.self-kiosk-qty-actions button {
  width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 999px;
  font-size: 24px;
  font-weight: 900;
}
.self-kiosk-qty-actions b {
  min-width: 58px;
  text-align: center;
}
.self-kiosk-footer {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(920px, 100%);
  transform: translateX(-50%);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr);
  gap: 12px;
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  z-index: 25;
}
.self-kiosk-footer div {
  display: grid;
  gap: 2px;
}
.self-kiosk-footer span {
  color: var(--muted);
  font-weight: 800;
}
.self-kiosk-footer strong {
  color: var(--green);
  font-size: 28px;
}
.self-kiosk-footer button {
  min-height: 64px;
  font-size: 22px;
  font-weight: 900;
}
.self-kiosk-payment-page {
  display: grid;
  place-items: center;
}
.self-kiosk-payment-card {
  width: min(620px, 100%);
  min-height: 320px;
  padding: 28px;
  display: grid;
  gap: 18px;
  place-items: center;
  text-align: center;
}
.self-kiosk-payment-card.busy::before {
  content: "";
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 8px solid #dbeafe;
  border-top-color: var(--primary);
  animation: self-kiosk-spin 1s linear infinite;
}
.self-kiosk-payment-card strong {
  font-size: clamp(24px, 5vw, 38px);
}
.self-kiosk-payment-card span {
  color: var(--green);
  font-size: clamp(28px, 6vw, 46px);
  font-weight: 900;
}
.self-kiosk-payment-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}
.self-kiosk-config {
  padding-bottom: 28px;
}
@keyframes self-kiosk-spin {
  to { transform: rotate(360deg); }
}
@keyframes self-kiosk-product-pulse {
  0% { transform: scale(.98); background: #e7f6fb; }
  45% { transform: scale(1.015); }
  100% { transform: scale(1); background: #fff; }
}
@keyframes self-kiosk-change-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.7); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  72% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.15); }
}
@media (max-width: 620px) {
  .self-kiosk-header:not(.self-kiosk-ad-header) {
    align-items: flex-start;
    flex-direction: column;
  }
  .self-kiosk-header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .self-kiosk-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .self-kiosk-restaurant-layout {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .self-kiosk-category-rail button {
    min-height: 92px;
  }
  .self-kiosk-category-rail button > span {
    width: 52px;
    height: 46px;
  }
  .self-kiosk-product-card {
    min-height: 214px;
    padding: 7px;
  }
  .self-kiosk-product-card strong {
    font-size: 14px;
  }
  .self-kiosk-product-card > span:not(.self-kiosk-product-image) {
    font-size: 14px;
  }
  .self-kiosk-product-stepper {
    grid-template-columns: 38px minmax(32px, 1fr) 38px;
    gap: 3px;
  }
  .self-kiosk-product-stepper button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }
  .self-kiosk-ad-header {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 5px;
    padding: 6px 8px;
  }
  .self-kiosk-logo-button {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
  }
  .self-kiosk-ad-header .self-checkout-mobile-ad {
    flex-basis: calc((100% - 7px) / 2);
    grid-template-columns: 32px minmax(0, 1fr);
    height: 46px;
    min-height: 46px;
    padding: 4px;
  }
  .self-kiosk-ad-header .self-checkout-mobile-ad-image {
    width: 32px;
    height: 36px;
  }
  .self-kiosk-ad-header .self-checkout-mobile-ad-copy strong {
    font-size: 9px;
  }
  .self-kiosk-ad-header .self-checkout-mobile-ad-copy small {
    font-size: 8px;
  }
  .self-kiosk-ad-header .self-kiosk-header-checkout {
    width: 94px;
    min-width: 94px;
    height: 46px;
    min-height: 46px;
    padding: 4px 6px 6px;
  }
  .self-kiosk-ad-header .self-kiosk-header-checkout small {
    font-size: 6px;
  }
  .self-kiosk-ad-header .self-kiosk-header-checkout strong {
    font-size: 16px;
  }
  .self-kiosk-footer {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .self-kiosk-ad-header .self-checkout-mobile-ad-viewport {
    scroll-behavior: auto;
  }
  .self-kiosk-product-card.is-changed,
  .self-kiosk-change-feedback {
    animation-duration: 1ms;
  }
}
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(440px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 4px;
  padding: 7px;
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: 30;
}
.bottom-nav button { font-size: 12px; padding: 6px 4px; }
.bottom-nav button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.bottom-nav .store-workbench-nav-group { position: relative; min-width: 0; }
.bottom-nav .store-workbench-nav-group > summary {
  min-height: 34px;
  padding: 6px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.bottom-nav .store-workbench-nav-group > summary::-webkit-details-marker { display: none; }
.bottom-nav .store-workbench-nav-group.active > summary { color: #fff; border-color: var(--primary); background: var(--primary); }
.bottom-nav .store-workbench-subnav {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 45;
  width: min(220px, 82vw);
  padding: 7px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}
.bottom-nav .store-workbench-subnav > button { width: 100%; min-height: 36px; text-align: left; }
.phone-shell .grid-form,
.phone-shell .metrics,
.phone-shell .stock-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.phone-shell .grid-form .wide {
  grid-column: 1 / -1;
}
.phone-shell .panel {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: none;
}
.phone-shell .panel-head {
  min-height: 42px;
}
.phone-shell button,
.phone-shell .button-link {
  min-height: 42px;
}
.mobile-list {
  display: grid;
  gap: 10px;
  padding: 10px;
}
.mobile-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.mobile-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}
.mobile-card-head strong {
  overflow-wrap: anywhere;
}
.mobile-card-head span {
  color: var(--primary);
  font-weight: 800;
  white-space: nowrap;
}
.mobile-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.mobile-route span {
  overflow-wrap: anywhere;
}
.mobile-route b {
  color: var(--muted);
}
.mobile-meta {
  display: grid;
  gap: 7px;
}
.mobile-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.mobile-meta span {
  color: var(--muted);
}
.mobile-meta strong {
  text-align: right;
  overflow-wrap: anywhere;
}
.mobile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.button-link {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 7px 10px;
}
.button-link.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
}

.panel {
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,252,250,.9));
  border: 1px solid rgba(153, 174, 180, .48);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(47, 158, 216, .055);
  overflow: hidden;
}
.panel-head {
  min-height: 39px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-head h3 { font-size: 15px; }
.panel-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.panel-head.action-head {
  justify-content: flex-start;
}
.panel-head.action-head .primary {
  min-width: 150px;
}
.split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; align-items: start; }
.split.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-form {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  align-items: end;
}
.grid-form .wide { grid-column: span 2; }
.grid-form button { align-self: end; }
.manual-upload-body {
  padding: 10px 12px 14px;
  display: grid;
  gap: 10px;
}
.manual-upload-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.manual-upload-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.manual-upload-drop {
  min-height: 86px;
  border: 2px dashed var(--line);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(56, 128, 116, .08), rgba(100, 116, 139, .05));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.manual-upload-drop strong {
  color: var(--text);
  font-size: 16px;
}
.manual-upload-drop::after {
  content: attr(data-target-path);
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}
.manual-upload-drop.dragover {
  border-color: var(--brand);
  background: rgba(56, 128, 116, .12);
  color: var(--brand);
}
.manual-upload-drop.uploading {
  border-color: var(--brand);
  background: rgba(56, 128, 116, .1);
  color: var(--brand);
}
.manual-upload-progress {
  width: min(420px, 92%);
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, .12);
}
.manual-upload-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #63b3a6);
  transition: width .2s ease;
}
.manual-upload-drop em {
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
  color: var(--text);
  font-weight: 800;
}
.manual-browser-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-height: calc(100vh - 190px);
}
.manual-browser-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.manual-browser-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}
.manual-browser-breadcrumbs button {
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 128, 116, .08);
}
.manual-browser-panel {
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  gap: 10px;
  min-width: 0;
}
.manual-browser-panel.dragover .manual-browser-list {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 2px rgba(56, 128, 116, .16);
}
.manual-browser-drop {
  min-height: 78px;
}
.manual-browser-tree-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(248,250,252,.86));
  overflow: auto;
}
.manual-browser-tree {
  padding: 8px;
  display: grid;
  gap: 3px;
}
.manual-tree-row {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: 18px 22px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  padding: 5px 8px 5px calc(8px + var(--level, 0) * 18px);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-weight: 800;
}
.manual-tree-row:hover {
  background: rgba(56, 128, 116, .08);
}
.manual-tree-row.active {
  color: var(--brand);
  background: rgba(56, 128, 116, .14);
  box-shadow: inset 3px 0 0 var(--brand);
}
.manual-tree-caret,
.manual-tree-icon {
  color: var(--muted);
}
.manual-tree-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.manual-browser-list {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
  background: var(--panel);
}
.manual-browser-row {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 96px auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}
.manual-browser-row:last-child {
  border-bottom: 0;
}
.manual-browser-row.directory {
    color: var(--brand);
    font-weight: 800;
  }
.manual-browser-row.directory:hover {
  background: rgba(56, 128, 116, .08);
}
.manual-browser-icon,
.manual-browser-size {
  color: var(--muted);
  font-weight: 800;
}
.manual-browser-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .manual-browser-name[data-rename-path] {
    cursor: text;
  }
  .manual-browser-name.manual-browser-link {
    cursor: pointer;
  }
  .manual-browser-name.renaming {
    overflow: visible;
  }
  .manual-rename-input {
    width: 100%;
    min-height: 34px;
    padding: 4px 8px;
    border: 1px solid var(--brand);
    border-radius: 8px;
    background: #fffef4;
    color: var(--text);
    font: inherit;
    font-weight: 800;
    outline: none;
  }
.manual-browser-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 6px;
}
.manual-browser-actions button {
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 13px;
}
.manual-browser-actions button.danger {
  color: #b91c1c;
}
.manual-upload-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}
.manual-upload-list-head,
.manual-upload-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 90px 110px minmax(200px, 1fr);
  gap: 10px;
  align-items: center;
}
.manual-upload-list-head {
  color: var(--muted);
  font-weight: 700;
  padding: 0 4px;
}
.manual-upload-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--panel);
}
.manual-upload-row.uploading {
  border-color: rgba(234, 160, 31, .55);
  background: rgba(234, 160, 31, .08);
}
.manual-upload-row.done {
  border-color: rgba(56, 128, 116, .4);
  background: rgba(56, 128, 116, .07);
}
.manual-upload-row.failed {
  border-color: rgba(185, 28, 28, .35);
  background: rgba(185, 28, 28, .06);
}
.manual-upload-row.skipped {
  border-color: rgba(100, 116, 139, .35);
  background: rgba(100, 116, 139, .06);
}
.manual-upload-path,
.manual-upload-result {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.manual-upload-size,
.manual-upload-status {
  color: var(--muted);
  font-weight: 700;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .48);
}
.manual-conflict-card {
  width: min(520px, calc(100vw - 36px));
}
.manual-conflict-card .modal-body {
  display: grid;
  gap: 8px;
}
.manual-preview-card {
  width: min(1120px, calc(100vw - 48px));
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.manual-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.manual-preview-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.manual-preview-head .icon-button {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
}
.manual-preview-body {
  display: grid;
  place-items: center;
  min-height: min(62vh, 620px);
  max-height: calc(100vh - 128px);
  overflow: hidden;
  padding: 14px;
  background: #0f172a;
}
.manual-preview-stage {
  width: 100%;
  height: min(72vh, 720px);
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.manual-preview-stage:active {
  cursor: grabbing;
}
.manual-preview-body img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  transform-origin: center center;
  user-select: none;
  pointer-events: none;
}
.cropper-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.cropper-actions button { width: 38px; min-width: 38px; min-height: 38px; padding: 5px; }
.cropper-rotate {
  position: absolute;
  top: 8px;
  left: calc(var(--cw) - 44px);
  z-index: 2;
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(9, 55, 59, .68);
  border-color: rgba(255, 255, 255, .72);
  font-size: 22px;
  line-height: 1;
  backdrop-filter: blur(4px);
}
.admin-management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  align-items: start;
}
.enterprise-create-card { grid-column: 1 / -1; }
.admin-form-body {
  padding: 12px;
  display: grid;
  gap: 12px;
}
.admin-groupbox {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  padding: 14px;
  display: grid;
  gap: 12px;
  min-width: 0;
}
.admin-groupbox legend {
  padding: 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  align-items: end;
}
.admin-form-grid .wide { grid-column: span 2; }
.admin-form-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.admin-person-create-card {
  grid-column: 1 / -1;
  width: min(1080px, 100%);
}
.admin-media-row {
  display: grid;
  gap: 12px;
  align-items: start;
  min-width: 0;
}
.admin-media-row .cropper { width: 100%; }
.admin-media-row.one { grid-template-columns: 260px; }
.admin-media-row.two { grid-template-columns: 260px 180px; }
.admin-media-row.three { grid-template-columns: 260px 180px 260px; }
.admin-management-card button[type="submit"] { justify-self: start; min-width: 150px; }
.admin-list-card .table-wrap { max-height: none; }
body.role-admin .admin-list-card .table-wrap,
body.role-admin .admin-enterprise-detail-pane .table-wrap {
  overflow-x: auto;
}
body.role-admin .admin-list-card table,
body.role-admin .admin-enterprise-detail-pane table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
}
body.role-admin .admin-list-card th,
body.role-admin .admin-list-card td,
body.role-admin .admin-enterprise-detail-pane th,
body.role-admin .admin-enterprise-detail-pane td {
  min-width: 0;
  white-space: nowrap;
  overflow-wrap: anywhere;
}
body.role-admin .admin-list-card th:last-child,
body.role-admin .admin-list-card td:last-child,
body.role-admin .admin-enterprise-detail-pane th:last-child,
body.role-admin .admin-enterprise-detail-pane td:last-child {
  width: 82px;
  text-align: right;
}
.admin-three-pane {
  display: grid;
  grid-template-columns: minmax(380px, 460px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}
.admin-enterprise-list-pane {
  position: sticky;
  top: 0;
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
.admin-enterprise-detail-pane {
  position: relative;
  overflow-anchor: none;
}
.admin-enterprise-detail-pane.detail-loading::after {
  content: "…";
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 4;
  min-width: 30px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  text-align: center;
  font-weight: 900;
}
.enterprise-select-list {
  display: grid;
}
.enterprise-select-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
}
.enterprise-select-row:hover,
.enterprise-select-row.active {
  background: #d7eee8;
}
.enterprise-select-row.active {
  color: var(--primary-ink);
  background: #c9e7df !important;
  box-shadow: inset 5px 0 0 var(--primary), inset 0 0 0 1px #80b9ae;
}
.enterprise-select-row span {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.enterprise-select-row strong,
.enterprise-select-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.enterprise-select-row strong {
  color: var(--ink);
  font-size: 15px;
}
.enterprise-select-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}
.enterprise-select-row b {
  color: var(--primary);
  font-size: 12px;
  white-space: nowrap;
}
.admin-enterprise-detail-pane {
  min-width: 0;
}
.admin-lazy-detail-toggle {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.admin-lazy-detail-toggle > span {
  margin-left: auto;
  font-size: 18px;
}
.admin-lazy-detail-toggle:disabled {
  cursor: default;
  opacity: .7;
}
.admin-lazy-detail-body {
  border-top: 1px solid var(--line);
}
.admin-lazy-detail-retry {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.admin-enterprise-empty-detail {
  min-height: 280px;
  padding: 28px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
}
.admin-enterprise-empty-detail strong {
  color: var(--ink);
  font-size: 18px;
}
.admin-pane-back {
  display: none;
}
.admin-detail-page {
  display: grid;
  gap: 14px;
}
.admin-detail-toolbar {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-detail-toolbar h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}
.admin-detail-toolbar span {
  color: var(--muted);
  font-size: 12px;
}
.admin-detail-toolbar .danger {
  margin-left: auto;
}
.admin-detail-form {
  display: grid;
  gap: 10px;
}
.admin-detail-groupbox {
  margin: 0;
}
.admin-login-note {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  color: var(--ink);
  font-size: 13px;
}
.admin-login-note strong { overflow-wrap: anywhere; }
.admin-login-note span {
  color: var(--muted);
  font-size: 12px;
}
.profile-stack {
  display: grid;
  gap: 14px;
}
.profile-panel {
  max-width: 1240px;
}
.profile-panel .panel-head span {
  color: var(--muted);
  font-size: 12px;
}
.profile-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}
.profile-summary .user-avatar {
  width: 58px;
  height: 58px;
  font-size: 16px;
}
.profile-summary h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}
.profile-summary span {
  color: var(--muted);
  font-size: 12px;
}
.profile-edit-form {
  display: grid;
  gap: 14px;
  padding: 14px;
}
.profile-tabbar { margin: -4px -2px 0; }
.profile-basic-avatar-tab {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, .85fr);
  gap: 14px;
  align-items: stretch;
}
.profile-tab-panel > .profile-telegram-bind { min-height: 100%; }
.profile-semantic-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfc;
  overflow: hidden;
}
.profile-section-head {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  justify-content: space-between;
  gap: 10px;
}
.profile-section-head h3 {
  margin: 0;
  font-size: 15px;
}
.profile-basic-card .profile-summary {
  padding-bottom: 4px;
}
.profile-grid {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(200px, 260px) minmax(180px, 220px);
  justify-content: start;
  gap: 10px;
  padding: 8px 12px 12px;
}
.profile-basic-card .profile-grid {
  grid-template-columns: minmax(180px, 220px) minmax(200px, 260px) minmax(180px, 220px) !important;
}
.profile-basic-card .profile-grid > .wide,
body.desktop-body .profile-basic-card .profile-grid > .wide,
body.desktop-body .profile-basic-card .profile-grid > .phone-field {
  grid-column: span 2 !important;
}
.profile-grid label { min-width: 0; }
.profile-grid > .wide { grid-column: span 2; }
.profile-grid input:disabled {
  background: #f8fafc;
  color: var(--muted);
}
.profile-side-cards {
  display: grid;
  grid-template-columns: minmax(520px, 1.45fr) minmax(390px, 1fr);
  gap: 14px;
  align-items: stretch;
}
.profile-telegram-bind {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
  min-width: 0;
}
.profile-telegram-bind.no-method {
  grid-template-columns: 1fr;
}
.telegram-bind-copy,
.telegram-bind-title {
  min-width: 0;
}
.telegram-bind-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-telegram-bind strong {
  display: inline-flex;
}
.profile-telegram-bind p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.profile-telegram-bind #telegramBindBadge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #f1d0a6;
  border-radius: 999px;
  color: #9a5b10;
  background: #fff7ed;
  font-weight: 800;
}
.profile-telegram-bind #telegramBindBadge.ok {
  border-color: #b8d8cc;
  color: var(--primary);
  background: #eaf7f1;
}
.telegram-bind-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.profile-telegram-bind .telegram-bind-actions {
  justify-content: center;
}
.telegram-bind-actions .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
  background: #fff;
}
.telegram-bind-method {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.telegram-bind-method p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.telegram-open-primary {
  min-height: 48px;
  font-size: 17px;
  border-color: rgba(56, 126, 112, .25) !important;
  color: var(--primary) !important;
  background: #eef8f4 !important;
}
.telegram-bind-qr {
  min-height: 250px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  overflow-wrap: anywhere;
}
.profile-telegram-qr-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.telegram-qr-instruction {
  margin: 0 !important;
  line-height: 1.5;
}
.telegram-bind-qr-code {
  width: min(230px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.telegram-bind-qr svg {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
}
.profile-telegram-qr-block.hidden,
.telegram-bind-qr.hidden,
.telegram-bind-method.hidden,
.telegram-bind-qr .hidden {
  display: none;
}
.profile-avatar-edit {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  min-width: 0;
}
.profile-avatar-edit .cropper {
  margin: 14px;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) max-content;
  width: calc(100% - 28px);
}
.profile-avatar-edit .cropper canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}
.profile-avatar-edit .cropper-actions {
  min-width: 0;
  height: 100%;
  justify-content: space-between;
  align-items: flex-end;
}
.profile-avatar-edit .cropper-actions .cropper-action-labeled {
  width: fit-content;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 68px;
  flex: 1 1 0;
  padding: 7px 10px;
  white-space: nowrap;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.profile-avatar-edit .cropper-actions .cropper-action-labeled:hover,
.profile-avatar-edit .cropper-actions .cropper-action-labeled:focus-visible {
  background: transparent;
  box-shadow: none;
}
.profile-avatar-edit .cropper-actions .cropper-action-labeled b {
  font-size: 27px;
  line-height: 1;
  font-weight: 400;
}
.profile-avatar-edit .cropper-actions .cropper-action-labeled span {
  font-size: 12px;
  line-height: 1.2;
}
.profile-avatar-hint {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.platform-product-search {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: min(620px, 100%);
}
.profile-section-head .profile-save-button { width: auto; min-width: 82px; min-height: 34px; margin: 0; padding: 5px 14px; }
.profile-return-row { display: flex; justify-content: flex-start; padding: 10px 14px 0; }
.platform-product-search input { min-width: 0; flex: 1; }
.platform-product-source-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.platform-product-source-select select {
  width: auto;
  min-width: 148px;
  max-width: 210px;
  min-height: 38px;
}
.platform-product-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 8px 11px 10px;
  border-bottom: 1px solid var(--line);
}
.platform-product-source-filters {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}
.platform-product-source-filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-weight: 700;
}
.platform-product-source-filters input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  margin: 0;
  flex: 0 0 18px;
}
.platform-product-search button,
.platform-product-pagination button { width: auto; flex: 0 0 auto; }
.desktop-body .platform-product-list-toolbar .platform-product-source-filters {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}
.desktop-body .platform-product-list-toolbar .platform-product-search {
  width: min(780px, 58%);
  margin-left: auto;
}
.platform-product-pagination {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  padding: 14px 11px;
}
.platform-product-list-panel .platform-product-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  margin: 0;
  padding: 0;
}
.platform-product-list-panel .platform-product-select > input[type="checkbox"] {
  width: 18px !important;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--primary);
}
.platform-product-list-panel .platform-product-batch-actions {
  width: 100%;
  flex-wrap: wrap;
}
.platform-product-list-panel .platform-product-batch-actions [data-admin-platform-select-page] {
  margin-left: auto;
}
.platform-product-list-panel .platform-product-batch-actions [data-admin-platform-delete-selected] {
  width: auto;
}
.platform-product-list-panel tr.clickable-row.selected-row > td,
.platform-product-list-panel tr.clickable-row.selected-row:hover > td {
  color: var(--primary-ink);
  background: #bfe2d9 !important;
  border-top-color: #5b9f92;
  border-bottom-color: #5b9f92;
}
.platform-product-list-panel tr.clickable-row.selected-row > td:first-child {
  box-shadow: inset 6px 0 0 var(--primary);
}
.platform-product-list-panel .platform-product-gtin.invalid {
  color: #c62828 !important;
  font-weight: 800;
}
.platform-product-list-panel .platform-product-gtin.non-public {
  color: #1d4ed8 !important;
  font-weight: 800;
}
.platform-product-list-panel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.platform-product-list-panel > .table-wrap {
  width: 100%;
  max-width: 100%;
  max-height: calc(100dvh - 250px);
  overflow-x: scroll !important;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #7d909b #e6edef;
}
.platform-product-list-panel > .table-wrap::-webkit-scrollbar {
  height: 14px;
}
.platform-product-list-panel > .table-wrap::-webkit-scrollbar-track {
  background: #e6edef;
  border-radius: 999px;
}
.platform-product-list-panel > .table-wrap::-webkit-scrollbar-thumb {
  min-width: 48px;
  border: 3px solid #e6edef;
  border-radius: 999px;
  background: #7d909b;
}
.platform-product-list-panel > .table-wrap > table {
  width: max-content;
  min-width: 100%;
}
.platform-product-detail-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.platform-product-detail-form .wide { grid-column: 1 / -1; }
.platform-product-detail-form .platform-package-code-field { display: grid; grid-template-columns: minmax(0,1fr); gap: 5px; }
.platform-product-detail-form .platform-package-code-field small { min-height: 20px; color: var(--muted); font-weight: 600; line-height: 1.45; }
.platform-product-detail-image { display: grid; gap: 10px; }
.platform-product-image-editor-layout { display: grid; grid-template-columns: minmax(0,480px) max-content; gap: 10px; align-items: stretch; }
.platform-product-detail-image .curator-image-crop-viewport { width: 100%; max-width: 480px; margin-inline: 0; }
.platform-product-image-toolbar { flex-direction: column; justify-content: space-around; align-items: center; padding: 2px 0; }
.platform-product-detail-image img { width: 180px; height: 180px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.platform-product-detail-image .curator-image-crop-viewport img { display: none; }
.platform-product-correction-form { display: grid; gap: 10px; margin-top: 14px; }
.platform-product-correction-form textarea { min-height: 100px; }
.platform-product-opinions { margin-bottom: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.platform-product-opinions h4 { margin: 0 0 8px; }
.platform-product-opinions > div { padding: 8px 0; border-top: 1px solid var(--line); }
.platform-product-opinions > div:first-of-type { border-top: 0; }
.platform-product-opinions span { margin-left: 10px; color: var(--muted); font-size: 12px; }
.platform-product-opinions p { margin: 5px 0 0; }
@media (max-width: 700px) { .platform-product-detail-form { grid-template-columns: 1fr; } .platform-product-detail-form .wide { grid-column: auto; } }
.site-category-tree-layout{display:block;padding:12px}.site-category-tree-manager .category-merge-drop-panel{min-width:0}.sales-category-manager-head{align-items:flex-start}.sales-category-head-actions{display:flex;justify-content:flex-end;gap:10px;flex:1 1 680px;min-width:0;flex-wrap:wrap}.sales-category-head-actions .category-create-form{flex:1 1 340px;width:auto;margin-left:0}.sales-category-preset-form{display:grid;grid-template-columns:minmax(190px,1fr) auto;gap:8px;flex:1 1 360px;min-width:0}.sales-category-preset-form select{width:100%;min-width:0}.sales-category-preset-form button{width:auto;white-space:nowrap}.sales-category-preset-preview{margin:0 12px;padding:9px 11px;border:1px solid #d7e4ec;border-radius:9px;background:#f7fbfd;color:#607486;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.borrowed-catalog-search{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:end}@media(max-width:620px){.site-category-tree-layout{padding:8px}.sales-category-head-actions,.sales-category-preset-form{display:grid;grid-template-columns:1fr;flex-basis:100%}.sales-category-preset-form button{justify-self:start}.sales-category-preset-preview{margin:0 8px}}
.sales-category-preset-form{grid-template-columns:minmax(190px,1fr) auto auto}.sales-category-preset-mode{display:inline-flex;align-items:center;gap:6px 12px;min-width:max-content;margin:0;padding:3px 8px;border:1px solid var(--line);border-radius:var(--radius)}.sales-category-preset-mode legend{padding:0 4px;color:var(--muted);font-size:11px}.sales-category-preset-mode label{display:inline-flex;align-items:center;gap:5px;color:var(--ink);font-size:12px;white-space:nowrap}.sales-category-preset-mode input[type="radio"]{width:18px;min-width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:0;padding:0;accent-color:var(--primary)}@media(max-width:620px){.sales-category-preset-form{grid-template-columns:1fr}.sales-category-preset-mode{justify-self:start}}
@media(min-width:621px){.sales-category-preset-form{grid-template-columns:minmax(300px,1fr) auto auto;flex-basis:470px}}
.site-category-tree-manager>.sales-category-head-actions{display:grid;grid-template-columns:minmax(0,1fr) 1px minmax(0,.9fr);align-items:stretch;gap:16px;padding:12px;border-bottom:1px solid var(--line)}
.raw-material-category-manager>.sales-category-head-actions{display:block}
.raw-material-category-manager .sales-category-create-group{grid-template-columns:minmax(0,1fr);max-width:720px}
.sales-category-operation-group{position:relative;display:grid;gap:8px;min-width:0;padding:2px 8px}
.sales-category-operation-title,.sales-category-list-title{display:flex;align-items:center;gap:7px;color:var(--ink);font-size:13px;font-weight:900}
.sales-category-operation-divider{width:1px;background:var(--line)}
.sales-category-preset-form{display:grid;grid-template-columns:minmax(240px,1fr) auto auto;align-items:center;gap:8px;min-width:0}
.sales-category-preset-form button{width:auto;min-height:38px;padding-inline:16px;white-space:nowrap}
.sales-category-create-group .category-create-form{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:8px;width:100%;margin:0}
.sales-category-create-group .category-create-form .primary{width:auto;min-width:94px;min-height:38px;padding:8px 15px;white-space:nowrap}
.sales-category-preset-preview{position:absolute;z-index:20;top:100%;left:8px;right:8px;margin:6px 0 0;padding:9px 11px;border:1px solid #334155;border-radius:8px;background:#172033;color:#fff;box-shadow:0 8px 22px #1720332b;font-size:12px;line-height:1.45}
.sales-category-preset-preview[hidden]{display:none}
.category-help{position:relative;display:inline-flex;align-items:center}
.category-help-trigger{display:inline-grid;width:18px;height:18px;min-width:18px;min-height:18px;padding:0;place-items:center;border:1px solid #8a94a8;border-radius:50%;background:#fff;color:#667189;font-size:11px;font-weight:900;line-height:1;cursor:help}
.category-help-tooltip{position:absolute;z-index:30;top:calc(100% + 8px);left:50%;display:none;min-width:max-content;max-width:360px;padding:8px 11px;transform:translateX(-22px);border-radius:7px;background:#172033;color:#fff;box-shadow:0 8px 22px #17203335;font-size:12px;font-weight:700;line-height:1.5;white-space:normal}
.category-help-tooltip:before{content:"";position:absolute;bottom:100%;left:16px;border:6px solid transparent;border-bottom-color:#172033}
.category-help-tooltip span{display:block}
.category-help:hover .category-help-tooltip,.category-help:focus-within .category-help-tooltip{display:block}
.sales-category-list-title{margin:0 0 8px;padding:0 2px;font-size:15px}
.site-category-tree-manager .category-source-field>span,.site-category-tree-manager .category-source-field>em{display:none}
@media (max-width: 900px) {
  .profile-basic-avatar-tab,
  .profile-side-cards,
  .profile-telegram-bind {
    grid-template-columns: 1fr;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-basic-card .profile-grid {
    grid-template-columns: 1fr !important;
  }
  .profile-grid > .wide {
    grid-column: span 1;
  }
  .profile-basic-card .profile-grid > .wide,
  body.desktop-body .profile-basic-card .profile-grid > .wide,
  body.desktop-body .profile-basic-card .profile-grid > .phone-field {
    grid-column: span 1 !important;
  }
  .profile-avatar-edit .cropper {
    grid-template-columns: minmax(0, var(--cw)) minmax(150px, max-content);
  }
}
@media (max-width: 520px) {
  .profile-avatar-edit .cropper {
    grid-template-columns: 1fr;
  }
  .profile-avatar-edit .cropper-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .profile-avatar-edit .cropper-actions .cropper-action-labeled {
    width: 100%;
  }
}
.payment-security-note {
  margin: 12px 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.payment-grid .wide {
  grid-column: span 2;
}
.payment-reference {
  align-self: end;
  min-height: 34px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.self-service-stack { display: grid; gap: 14px; }
.manager-config-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.manager-config-tools-grid > .panel {
  min-width: 0;
}
.manager-config-tabs-shell {
  min-width: 0;
  display: grid;
  gap: 12px;
}
.manager-config-tabbar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.manager-config-tabbar > button {
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
  border: 1px solid transparent;
  border-bottom: 3px solid transparent;
  border-radius: 8px 8px 0 0;
  background: transparent;
  box-shadow: none;
}
.manager-config-tabbar > button:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--line);
  background: var(--soft);
  box-shadow: none;
}
.manager-config-tabbar > button.active,
.manager-config-tabbar > button.active:hover:not(:disabled) {
  color: var(--primary);
  border-color: var(--line);
  border-bottom-color: var(--primary);
  background: #f7fbfa;
  font-weight: 900;
}
.manager-config-tab-panel.hidden { display: none; }
.manager-config-tab-panel > .panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.manager-config-tab-panel > .panel > .panel-head > h3 { display: none; }
.manager-config-tab-panel > .panel > .panel-head:has(> h3:only-child) { display: none; }
.manager-config-tab-panel > .panel > .panel-head:not(:has(> h3:only-child)) { justify-content: flex-end; }
.admin-config-grid {
  display: block;
  columns: 2 420px;
  column-gap: 14px;
}
.admin-config-tabs-shell {
  display: grid;
  gap: 12px;
}
.admin-config-tabs-shell .admin-config-grid {
  columns: auto;
}
.admin-config-tabbar,
.barcode-provider-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.desktop-shell .admin-config-tabbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px;
}
.admin-config-tabbar button,
.barcode-provider-tabs button {
  min-width: max-content;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-bottom: 3px solid transparent;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}
.desktop-shell .admin-config-tabbar button {
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  min-height: 38px;
  padding: 0 14px;
  text-align: center;
  color: var(--muted);
  border: 1px solid transparent;
  border-bottom: 3px solid transparent;
  border-radius: 8px 8px 0 0;
  background: transparent;
  box-shadow: none;
}
.admin-config-tabbar button.active,
.barcode-provider-tabs button.active {
  color: var(--primary);
  background: #f7fbfa;
  border-color: var(--line);
  border-bottom-color: var(--primary);
}
.desktop-shell .admin-config-tabbar button.active {
  color: var(--primary);
  background: #f7fbfa;
  border-color: var(--line);
  border-bottom-color: var(--primary);
  box-shadow: none;
}
.desktop-shell .admin-config-tabbar button:hover:not(:disabled) {
  color: var(--text);
  background: var(--soft);
  border-color: var(--line);
  border-bottom-color: var(--line);
  box-shadow: none;
}
.desktop-shell .admin-config-tabbar button.active:hover:not(:disabled) {
  color: var(--primary);
  background: #f7fbfa;
  border-color: var(--line);
  border-bottom-color: var(--primary);
}
.admin-config-tab-panel.hidden,
.barcode-provider-panel.hidden {
  display: none !important;
}
.admin-config-grid > .panel,
.admin-config-grid > .ai-config-panel {
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  break-inside: avoid;
}
.admin-config-tabs-shell .admin-config-grid > .panel,
.admin-config-tabs-shell .admin-config-grid > .ai-config-panel {
  display: block;
  margin: 0;
}
.admin-config-grid .ai-config-panel {
  min-width: 0;
}
.admin-config-grid .ai-config-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.barcode-provider-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ai-config-panel .panel-head {
  align-items: center;
}
.config-head {
  justify-content: flex-start;
  gap: 10px;
}
.config-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.config-head .primary {
  min-width: max-content;
  height: 34px;
  padding: 0 14px;
}
.config-head .secondary {
  min-width: max-content;
  height: 34px;
  padding: 0 14px;
}
.email-test-actions {
  flex: 1 1 420px;
}
.email-test-actions input {
  width: min(260px, 28vw);
  min-width: 180px;
  height: 34px;
  padding: 0 10px;
}
.sms-config-head-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.sms-test-phone-group {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.sms-test-phone-group input {
  width: min(300px, 28vw);
  min-width: 190px;
}
.sms-test-phone-group button {
  flex: 0 0 auto;
}
.sms-config-save {
  flex: 0 0 auto;
}
.ai-config-form .sms-mode-selector {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 10px 14px;
}
.ai-config-form .sms-mode-selector legend {
  padding: 0 6px;
  font-weight: 800;
}
.ai-config-form .sms-mode-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}
.ai-config-form .sms-mode-options label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--ink);
  white-space: nowrap;
}
.ai-config-form .sms-mode-options input[type="radio"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
}
.config-help-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--primary);
  background: #eef8f4;
  border: 1px solid rgba(47, 158, 216, .30);
}
.email-config-help {
  padding: 10px 12px;
  border: 1px solid rgba(47, 158, 216, .24);
  border-radius: 8px;
  background: #f0fdfa;
  color: #0f3f3a;
  line-height: 1.65;
  font-size: 13px;
  font-weight: 700;
}
.email-test-result {
  min-width: 0;
}
.email-test-diagnostics {
  padding: 10px 12px;
  border: 1px solid rgba(47, 158, 216, .22);
  border-radius: 8px;
  background: #f8fafc;
  display: grid;
  gap: 8px;
}
.email-test-diagnostics.failed {
  border-color: rgba(185, 28, 28, .3);
  background: #fff7f7;
}
.email-test-diagnostics.ok {
  border-color: rgba(47, 158, 216, .30);
  background: #f0fdfa;
}
.email-test-diagnostics h4 {
  margin: 0;
  font-size: 14px;
}
.email-test-diagnostics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.email-test-diagnostics-head .secondary {
  height: 30px;
  padding: 0 10px;
}
.email-test-diagnostics dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(120px, max-content) minmax(0, 1fr);
  gap: 5px 10px;
  font-size: 12px;
}
.email-test-diagnostics dt {
  color: var(--muted);
  font-weight: 800;
}
.email-test-diagnostics dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.email-test-diagnostics ol {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
}
.email-test-diagnostics pre {
  margin: 0;
  padding: 10px;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: #111827;
  color: #e5e7eb;
  font-size: 12px;
  line-height: 1.45;
}
#setTelegramWebhook {
  background: #facc15;
  border-color: #eab308;
  color: #111827;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(234, 179, 8, .22);
}
#setTelegramWebhook:hover:not(:disabled) {
  background: #fde047;
  border-color: #ca8a04;
}
#setTelegramWebhook:disabled {
  opacity: .65;
  box-shadow: none;
}
.config-head .ai-config-status {
  margin-left: auto;
}
.site-payment-config-head {
  justify-content: space-between;
  flex-wrap: wrap;
}
.ai-config-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.ai-config-form {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.ai-config-form .wide {
  grid-column: 1 / -1;
}
.config-active-cell {
  text-align: center;
}
.logistics-carrier-config-wrap {
  overflow-x: auto;
}
.logistics-carrier-config-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
}
.logistics-carrier-config-table th,
.logistics-carrier-config-table td {
  padding: 6px;
}
.logistics-carrier-config-table th:nth-child(1) { width: 140px; }
.logistics-carrier-config-table th:nth-child(2) { width: 180px; }
.logistics-carrier-config-table th:nth-child(3) { width: 130px; }
.logistics-carrier-config-table th:nth-child(4) { width: 190px; }
.logistics-carrier-config-table th:nth-child(5) { width: 130px; }
.logistics-carrier-config-table th:nth-child(6) { width: 130px; }
.logistics-carrier-config-table th:nth-child(7) { width: 120px; }
.logistics-carrier-config-table th:nth-child(8) { width: 48px; }
.logistics-carrier-config-table input {
  width: 100%;
  min-width: 0;
  padding: 6px 5px;
}
.site-payment-config-body {
  padding: 12px;
  display: grid;
  gap: 12px;
}
.site-payment-site-select {
  width: min(360px, 52vw);
  max-width: 100%;
  gap: 0;
}
.site-payment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.site-payment-copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(148,163,184,.26);
  border-radius: 14px;
  background: rgba(255,255,255,.58);
}
.site-payment-copy-row label {
  flex: 1 1 260px;
  gap: 5px;
}
.site-payment-copy-row button {
  width: auto;
  min-width: max-content;
  height: 44px;
  padding: 0 16px;
}
.site-payment-tab {
  width: auto;
  min-width: 136px;
  min-height: 44px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(15,23,42,.05);
}
.site-payment-tab.active {
  border-color: rgba(48,128,116,.42);
  background: rgba(230,245,240,.9);
  color: var(--brand);
}
.site-payment-tab input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 auto;
}
.site-payment-tab-status {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(48,128,116,.12);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.site-payment-form-actions {
  display: flex;
  justify-content: flex-start;
}
.site-payment-form-actions .primary {
  width: auto;
  min-width: max-content;
  padding-inline: 22px;
}
.pos-terminal-manager {
  display: grid;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(148,163,184,.24);
}
.pos-terminal-manager .compact-head {
  padding-inline: 0;
  border: 0;
  background: transparent;
}
.pos-terminal-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(148,163,184,.28);
  border-radius: var(--radius);
  background: rgba(248,251,253,.88);
  align-items: end;
}
.pos-terminal-form .wide {
  grid-column: span 2;
}
.pos-terminal-active {
  min-height: 46px;
}
.pos-terminal-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pos-terminal-form-actions button {
  width: auto;
  min-width: max-content;
  padding-inline: 16px;
}
.pos-terminal-table-wrap {
  border: 1px solid rgba(148,163,184,.28);
  border-radius: var(--radius);
  background: rgba(255,255,255,.74);
}
.pos-terminal-table {
  min-width: max(860px, 100%);
}
.pos-terminal-table .small {
  width: auto;
  min-width: max-content;
  min-height: 34px;
  padding: 6px 10px;
}
.pos-terminal-empty {
  border: 1px dashed rgba(148,163,184,.38);
  border-radius: var(--radius);
  background: rgba(255,255,255,.68);
}
.payment-config-readonly-grid {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.payment-config-readonly-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255,255,255,.74);
}
.payment-config-readonly-row span {
  color: var(--muted);
  font-weight: 800;
}
.panel-subsection {
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.compact-head {
  min-height: 42px;
  background: #fbfcfe;
}
.checkbox-inline {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.checkbox-inline input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
}
.self-helper-body { padding: 12px; }
.terminal-print-agent-form {
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.terminal-print-agent-form .wide {
  grid-column: auto;
}
.terminal-print-agent-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.terminal-print-agent-form .muted {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.self-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; align-items: end; }
.self-form-grid > .target-language-card,
.self-form-grid > .image-file-row,
.self-form-grid > .image-preview-grid,
.self-form-grid > .self-submit { grid-column: 1 / -1; }
.target-language-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  padding: 10px;
  display: grid;
  gap: 8px;
}
.target-language-title { color: var(--muted); font-size: 12px; font-weight: 700; }
.language-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap: 6px 10px; max-height: 180px; overflow: auto; }
.language-check { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--ink); }
.language-check input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
}
.language-check span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden-file { display: none; }
.image-file-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.image-file-row button { min-width: 150px; }
.image-file-row span { color: var(--muted); font-size: 12px; }
.image-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px,1fr)); gap: 10px; }

.inline-upload-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 84px;
  margin: 8px 12px 8px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f6;
  color: var(--muted);
  overflow: hidden;
  vertical-align: middle;
}

.inline-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-thumb {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.image-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #eef2f6; }
.image-thumb figcaption { padding: 6px 7px; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barcode-print-helper {
  display: grid;
  gap: 10px;
  padding: 12px;
}
.barcode-product-print-options {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.barcode-product-print-options > .crystal-check {
  width: auto;
  min-height: 36px;
  padding: 6px 10px;
}
.barcode-product-print-options > button {
  width: auto;
  min-height: 36px;
  padding: 6px 18px;
}
.barcode-product-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.barcode-print-search {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.barcode-print-search > * { min-width: 0; }
.barcode-print-search > button { width: auto; }
.barcode-print-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.barcode-print-pagination > button { width: auto; }
.barcode-product-group {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.barcode-product-group > h3 {
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #f3f7fb;
  font-size: 15px;
}
.barcode-product-table-wrap {
  max-height: min(56vh, 560px);
  overflow: auto;
}
.barcode-print-helper .barcode-product-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.barcode-print-helper .barcode-product-table th,
.barcode-print-helper .barcode-product-table td {
  padding: 5px 7px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  line-height: 1.25;
}
.barcode-print-helper .barcode-product-table th:first-child { width: auto; }
.barcode-print-helper .barcode-product-table th:nth-child(2) { width: 118px; }
.barcode-print-helper .barcode-product-table th:nth-child(3) { width: 68px; }
.barcode-print-helper .barcode-product-table th:last-child { width: 150px; }
.barcode-print-helper .barcode-product-table td:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.barcode-print-helper .barcode-product-table input[data-barcode-print-quantity] {
  width: 52px;
  min-height: 32px;
  padding: 4px 6px;
  text-align: center;
}
.barcode-print-helper .barcode-product-table code {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  white-space: nowrap;
}
.inline-photo-link {
  border: 0;
  padding: 0;
  min-height: 0;
  color: var(--primary);
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
}
.inline-photo-link:active {
  transform: none;
}
.mobile-photo-viewer-open {
  overflow: hidden;
}
.mobile-photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #05070c;
  color: #fff;
}
.mobile-photo-viewer-top {
  min-height: 56px;
  padding: max(12px, env(safe-area-inset-top)) 14px 10px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 8px;
  background: rgba(5, 7, 12, .94);
}
.mobile-photo-viewer-top strong {
  text-align: center;
  font-size: 17px;
}
.mobile-photo-viewer-top .ghost {
  min-height: 38px;
  color: #fff;
  border-color: rgba(255,255,255,.38);
  background: rgba(255,255,255,.08);
}
.mobile-photo-viewer-body {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 12px;
}
.mobile-photo-viewer-body img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.desktop-photo-preview {
  position: fixed;
  z-index: 10000;
  width: min(360px, 42vw);
  max-height: min(440px, 72vh);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .22);
  pointer-events: none;
}
.desktop-photo-preview img {
  display: block;
  width: 100%;
  max-height: calc(min(440px, 72vh) - 16px);
  object-fit: contain;
  border-radius: 6px;
  background: #f8fafc;
}
.fullscreen-camera-open {
  overflow: hidden;
}
.fullscreen-camera-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #05070c;
  color: #fff;
}
.fullscreen-camera-top {
  min-height: 56px;
  padding: max(12px, env(safe-area-inset-top)) 14px 10px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 8px;
  background: rgba(5, 7, 12, .88);
}
.fullscreen-camera-top strong {
  text-align: center;
  font-size: 17px;
}
.fullscreen-camera-top .ghost {
  min-height: 38px;
  color: #fff;
  border-color: rgba(255,255,255,.38);
  background: rgba(255,255,255,.08);
}
.fullscreen-camera-view {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}
.fullscreen-camera-view video,
.fullscreen-camera-view img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.fullscreen-camera-view span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 10px 12px;
  border-radius: 999px;
  text-align: center;
  background: rgba(0, 0, 0, .48);
  color: #fff;
  font-size: 14px;
}
.fullscreen-camera-bottom {
  padding: 16px 14px max(22px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(5, 7, 12, .92);
}
.fullscreen-camera-bottom button {
  min-height: 54px;
  font-size: 18px;
  font-weight: 900;
}
.fullscreen-camera-bottom .camera-shutter {
  width: 74px;
  height: 74px;
  min-height: 74px;
  padding: 0;
  border-radius: 999px;
  border: 5px solid rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .2);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .18), 0 12px 32px rgba(0, 0, 0, .42);
}
.fullscreen-camera-bottom .camera-shutter::after {
  content: "";
  display: block;
  width: 50px;
  height: 50px;
  margin: 7px auto;
  border-radius: inherit;
  background: #fff;
}
.fullscreen-camera-bottom .camera-shutter:active::after {
  transform: scale(.92);
}
.attachment-photo-camera-card {
  width: min(720px, calc(100vw - 28px));
  display: grid;
  gap: 10px;
}
.attachment-photo-camera-card .camera-capture-frame {
  min-height: 320px;
}
.attachment-photo-camera-card .camera-capture-frame video {
  width: 100%;
  height: 100%;
  max-height: 58vh;
  object-fit: cover;
}
.attachment-photo-camera-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.purchase-form {
  display: grid;
  gap: 10px;
  padding: 12px;
}
.purchase-meta {
  display: grid;
  grid-template-columns: minmax(180px, .5fr) minmax(240px, 1fr);
  gap: 10px;
}
.trade-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
  padding: 12px;
}
.trade-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
}
.trade-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.trade-card-head strong { display: block; }
.trade-card-head span {
  color: var(--muted);
  font-size: 12px;
}
.trade-card-items {
  display: grid;
  gap: 6px;
}
.trade-card-item-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 82px auto;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.trade-card-item-row input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
}
.trade-card-item-row span {
  overflow-wrap: anywhere;
}
.trade-card-item-row b {
  white-space: nowrap;
  font-size: 12px;
}
.purchase-edit-item {
  grid-template-columns: minmax(0, 1fr) 90px 110px auto;
}
.trade-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.purchase-supplier-offline-warnings {
  display: grid;
  gap: 5px;
}
.purchase-supplier-offline-warnings[hidden] {
  display: none;
}
.trade-card .supplier-offline-warning {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid #ef4444;
  border-left-width: 4px;
  border-radius: 7px;
  background: #fff1f2;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}
.supplier-offline-warning strong {
  flex: 0 0 auto;
  color: #991b1b;
}
.supplier-offline-warning span {
  color: inherit;
}
.blacklist-shell {
  display: grid;
  gap: 12px;
  padding: 12px;
}
.blacklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}
.blacklist-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  padding: 12px;
  display: grid;
  gap: 12px;
}
.blacklist-card form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.blacklist-card h4 {
  margin: 0;
  font-size: 14px;
}
.blacklist-list {
  display: grid;
  gap: 8px;
}
.blacklist-row,
.blacklist-current {
  border: 1px solid #d7e3ed;
  border-radius: var(--radius);
  background: #fff;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.blacklist-row span,
.blacklist-current span {
  display: grid;
  gap: 2px;
}
.blacklist-row em,
.blacklist-current span {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}
.purchase-offers,
.purchase-offer-form,
.purchase-supply-list {
  display: grid;
  gap: 8px;
}
.purchase-offer-card {
  border: 1px solid #d7e3ed;
  border-radius: var(--radius);
  background: #fbfcfe;
  padding: 10px;
  display: grid;
  gap: 8px;
}
.purchase-supply-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) 90px 110px;
  gap: 8px;
  align-items: center;
}
.purchase-supply-row span {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.purchase-offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.purchase-approval-grid {
  grid-template-columns: 1fr;
}
.purchase-approval-card {
  min-width: 0;
}
.purchase-approval-items {
  display: grid;
  gap: 4px;
  overflow-x: auto;
}
.purchase-approval-item-head,
.purchase-approval-item {
  min-width: 920px;
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(140px, .7fr) minmax(190px, 1fr) 120px 120px 64px;
  gap: 8px;
}
.purchase-approval-item-head {
  align-items: center;
  padding: 0 8px 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.purchase-approval-item {
  align-items: center;
  padding: 5px 8px;
  border: 1px solid #d7e3ed;
  border-radius: 6px;
  background: #fbfcfe;
}
.purchase-approval-item strong {
  overflow-wrap: anywhere;
}
.purchase-approval-item span {
  color: var(--muted);
  font-weight: 800;
}
.purchase-approval-item .purchase-approval-reason {
  color: #4b5563;
  overflow-wrap: anywhere;
}
.purchase-approval-item input,
.purchase-approval-item select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
}
.purchase-approval-item b {
  align-self: center;
  white-space: nowrap;
}
.purchase-approval-attachment-hint {
  margin: 6px 0 0;
  padding: 6px 8px;
  border: 1px solid #d7e3ed;
  border-radius: 6px;
  background: #f8fafc;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.replenishment-inbound-notice {
  margin: 0 0 10px;
  padding: 8px 12px;
  border: 1px solid #f59e0b;
  border-left: 4px solid #d97706;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  display: inline-flex;
  width: fit-content;
  height: fit-content;
  max-width: 100%;
  min-height: 0;
  align-self: start;
  justify-self: start;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}
.replenishment-inbound-page {
  display: grid;
  gap: 10px;
  align-content: start;
}
.replenishment-inbound-page .replenishment-inbound-notice {
  margin-bottom: 0;
}
.purchase-approval-controls {
  display: grid;
  grid-template-columns: minmax(150px, 180px) minmax(260px, 1.2fr) minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: end;
}
.purchase-approval-controls label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.purchase-approval-controls input,
.purchase-approval-controls select {
  width: 100%;
  min-width: 0;
}
.purchase-proof-field {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.purchase-proof-field > span {
  flex: 0 0 auto;
}
.purchase-proof-field .file-button,
.purchase-proof-field button {
  width: auto;
  min-width: max-content;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}
.purchase-proof-field .captured-attachment-list {
  flex-basis: 100%;
}
.purchase-request-card h4 {
  margin: 2px 0 0;
  font-size: 13px;
}
.purchase-suggestion-table input {
  width: 100%;
  min-width: 96px;
}
.purchase-suggestion-call-supplier-hint {
  margin: 8px 12px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.purchase-suggestion-table td:first-child,
.promotion-suggestion-table td:first-child {
  min-width: 180px;
}
.purchase-suggestion-table td:first-child span,
.promotion-suggestion-table td:first-child span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.table-wrap {
  max-width: 100%;
  overflow: auto;
}
table {
  width: fit-content;
  min-width: 0;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 13px;
}
th, td {
  width: auto;
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
th { color: var(--muted); background: #f3f7f7; font-size: 11px; }
.sortable-table-head {
  padding: 0;
}
.table-sort-button {
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 8px 9px;
  font-size: inherit;
  font-weight: 800;
  text-align: left;
}
.table-sort-button:hover,
.table-sort-button.active {
  background: #edf6f3;
  color: var(--primary-ink);
}
.table-sort-button::after {
  content: "";
  color: var(--primary);
  font-size: 10px;
  line-height: 1;
}
.table-sort-button[data-sort-direction="asc"]::after {
  content: "^";
}
.table-sort-button[data-sort-direction="desc"]::after {
  content: "v";
}
.clickable-row {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(47, 158, 216, .14);
}
.clickable-row:hover td { background: #f6faf9; }
.inline-edit-row td {
  background: #e7f4f1;
  padding: 0;
  border-bottom-color: #bfd9d4;
  white-space: normal;
}
.inline-edit-panel {
  margin: 8px;
  border: 1px solid #bfd9d4;
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  background: #eef8f5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
  padding: 12px;
}
.inline-edit-panel h4 {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: 0;
}
.clickable-row.selected-row td,
.clickable-row.selected-row:hover td {
  color: var(--primary-ink);
  background: #dceff9 !important;
  border-top-color: #80b9ae;
  border-bottom-color: #80b9ae;
  font-weight: 700;
}
.clickable-row.selected-row td:first-child {
  box-shadow: inset 5px 0 0 var(--primary);
}
.admin-inline-form {
  display: grid;
  gap: 10px;
}
.admin-inline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  align-items: end;
}
.inline-grid-actions {
  min-width: 0;
  align-self: end;
  justify-self: start;
}
.inline-grid-actions button {
  width: max-content;
  max-width: 100%;
  min-width: 86px;
  padding-inline: 22px;
}
.inline-compact-pair {
  min-width: 0;
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}
.inline-compact-pair .edit-check-group,
.inline-compact-pair .edit-radio-group {
  flex: 0 1 auto;
}
.inline-compact-pair .inline-grid-actions {
  flex: 0 0 auto;
}
.inline-edit-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.row-actions { white-space: nowrap; }
.row-actions a { margin-right: 8px; color: var(--blue); }
.inline-row-edit-wrap table {
  min-width: max(980px, 100%);
}
.inline-row-edit-cell {
  min-width: 130px;
}
.inline-row-edit-cell input,
.inline-row-edit-cell select,
.inline-row-edit-cell textarea {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 7px;
  border: 1px solid #d8e2ea;
  background: #fff;
  font: inherit;
}
.inline-row-edit-cell input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--primary);
}
.inline-row-dirty-cell input,
.inline-row-dirty-cell select,
.inline-row-dirty-cell textarea {
  border-color: #ef4444;
  background: #fff1f2;
  color: #991b1b;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, .12);
}
.inline-row-dirty-cell input[type="checkbox"] {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .16);
}
.inline-row-edit-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inline-row-edit-actions button {
  min-width: 72px;
  padding: 8px 12px;
}
.inline-row-edit-actions button:disabled {
  opacity: .42;
  cursor: default;
}
.supplier-inline-edit-wrap {
  overflow-x: auto;
}
.supplier-inline-edit-wrap table {
  width: 100%;
  min-width: max-content;
  table-layout: auto;
}
.supplier-inline-edit-table th,
.supplier-inline-edit-table td {
  padding: 6px 6px;
}
.supplier-inline-edit-table th:nth-child(1),
.supplier-inline-edit-table td:nth-child(1) { width: 12%; }
.supplier-inline-edit-table th:nth-child(2),
.supplier-inline-edit-table td:nth-child(2) { width: 11%; }
.supplier-inline-edit-table th:nth-child(3),
.supplier-inline-edit-table td:nth-child(3) { width: 11%; }
.supplier-inline-edit-table th:nth-child(4),
.supplier-inline-edit-table td:nth-child(4) { width: 17%; }
.supplier-inline-edit-table th:nth-child(5),
.supplier-inline-edit-table td:nth-child(5) { width: 13%; }
.supplier-inline-edit-table th:nth-child(6),
.supplier-inline-edit-table td:nth-child(6) { width: 8%; }
.supplier-inline-edit-table th:nth-child(7),
.supplier-inline-edit-table td:nth-child(7) { width: 92px; text-align: center; }
.supplier-inline-edit-table th:nth-child(8),
.supplier-inline-edit-table td:nth-child(8) { width: 44px; text-align: center; }
.supplier-inline-edit-table .inline-row-edit-cell {
  min-width: 0;
}
.supplier-inline-edit-table .inline-row-edit-cell input,
.supplier-inline-edit-table .inline-row-edit-cell select {
  min-height: 32px;
  padding: 5px 6px;
  font-size: 12px;
}
.supplier-inline-edit-table .inline-row-edit-actions {
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.supplier-inline-edit-table .inline-row-edit-actions button {
  min-width: 52px;
  padding: 6px 8px;
  font-size: 12px;
}
.supplier-inline-edit-table .inline-row-edit-actions [data-supplier-bind-email] {
  min-width: 116px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}
.metrics div {
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(249,253,251,.88));
  border: 1px solid rgba(153, 174, 180, .46);
  border-radius: 8px;
  min-height: 58px;
  padding: 8px 10px;
}
.metrics span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.25;
  min-height: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metrics b {
  display: block;
  font-size: 18px;
  line-height: 1.15;
  margin-top: 4px;
  white-space: nowrap;
}
.overview-chart-stack {
  display: grid;
  gap: 14px;
}
.overview-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.overview-chart-card {
  min-width: 0;
}
.overview-chart-canvas-wrap {
  padding: 10px 12px 12px;
  min-width: 0;
}
.overview-chart-canvas {
  display: block;
  width: 100%;
  height: 300px;
  background: #fff;
  border-radius: 4px;
}
.mini-list { display: grid; gap: 0; }
.mini-list div { padding: 10px 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.mini-list strong { overflow-wrap: anywhere; }
.mini-list span { color: var(--muted); }

.pos-layout { display: grid; gap: 14px; }
.pos-grid { display: grid; grid-template-columns: minmax(0,1fr) 350px; gap: 14px; align-items: start; }
.self-checkout-body .pos-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}
.self-checkout-body .pos-side {
  position: static;
  gap: 10px;
}
.self-checkout-body .pos-work {
  gap: 10px;
}
.self-checkout-body .pos-work.has-dish-menu {
  grid-template-columns: 1fr;
}
.self-checkout-body .pos-dish-section {
  grid-column: 1 / -1;
}
.self-checkout-body .dish-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.self-checkout-body .product-card {
  min-height: 188px;
}
.self-checkout-body .product-card strong {
  font-size: 18px;
}
.self-checkout-body .scan-line input,
.self-checkout-body .scan-line button {
  min-height: 54px;
  font-size: 18px;
}
.pos-side {
  display: grid;
  gap: 14px;
  align-content: start;
  position: sticky;
  top: 78px;
  min-width: 0;
}
.pos-work { padding: 12px; display: grid; gap: 12px; }
.pos-work.has-dish-menu {
  grid-template-columns: minmax(360px, 1.45fr) minmax(260px, .8fr);
  align-items: start;
}
.pos-work.has-dish-menu .frontdesk-ad-picker {
  grid-column: 1 / -1;
}
.pos-section {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}
.pos-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(210, 222, 235, .75);
}
.pos-section-head strong {
  color: var(--ink);
  font-size: 16px;
}
.pos-section-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.pos-dish-section {
  border-color: #cfe5df;
  background: linear-gradient(180deg, #fff, #f7fbfa);
}
.pos-scan-section {
  border-color: #f0d19b;
  background: linear-gradient(180deg, #fff, #fffaf0);
}
.pos-scan-area {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}
.scan-line {
  display: grid;
  grid-template-columns: minmax(14ch, 22ch) minmax(7ch, 9ch) max-content;
  justify-content: start;
  align-items: end;
  gap: 8px;
}
.scan-line input {
  width: 22ch;
  max-width: 100%;
}
.scan-line .scan-qty {
  width: 9ch;
}
.scan-line button {
  min-width: max-content;
}
.self-checkout-body .scan-line {
  grid-template-columns: minmax(16ch, 1fr) minmax(88px, 120px) auto;
  justify-content: stretch;
  position: relative;
  z-index: 1;
}
.self-checkout-body .scan-line input:not(.scan-qty) {
  width: 100%;
  min-width: 16ch;
}
.dish-board { display: grid; gap: 12px; }
.dish-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.dish-tab {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}
.dish-tab.active {
  color: var(--green);
  border-color: #b8d8cf;
  background: #eaf7f1;
}
.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.restaurant-pos .dish-grid {
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 10px;
}
.frontdesk-ad-picker {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  padding: 10px;
  display: grid;
  gap: 10px;
}
.frontdesk-ad-manager {
  margin-top: 14px;
}
.frontdesk-ad-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.frontdesk-ad-picker-head strong {
  font-size: 16px;
  color: var(--ink);
}
.frontdesk-ad-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px;
}
.frontdesk-ad-tabs .dish-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.frontdesk-ad-tabs small {
  color: var(--muted);
  font-weight: 900;
}
.frontdesk-ad-summary {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: grid;
  gap: 8px;
}
.frontdesk-ad-summary div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.frontdesk-ad-summary em {
  color: var(--muted);
  font-style: normal;
}
.frontdesk-ad-chip {
  border: 1px solid rgba(61, 128, 116, .28);
  background: rgba(61, 128, 116, .1);
  color: var(--green);
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 900;
}
.cashier-pickup-panel {
  display: grid;
  gap: 8px;
  padding: 8px;
  border-style: dashed;
  background: rgba(255, 255, 255, 0.72);
}
.cashier-pickup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.cashier-pickup-head strong {
  font-size: 14px;
  color: var(--ink);
}
.cashier-pickup-head button {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 13px;
}
.cashier-pickup-list {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}
.cashier-pickup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: #fbfcfe;
}
.cashier-pickup-row.ready {
  border-color: rgba(61, 128, 116, .32);
  background: rgba(61, 128, 116, .08);
}
.cashier-pickup-main {
  min-width: 0;
}
.cashier-pickup-row strong {
  display: block;
  font-size: 16px;
}
.cashier-pickup-row span {
  display: block;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cashier-pickup-row time {
  grid-column: 1 / 2;
  color: var(--muted);
  font-size: 12px;
}
.cashier-pickup-row button {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-height: 34px;
  white-space: nowrap;
}
.frontdesk-ad-dish {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  min-height: 156px;
  display: grid;
  grid-template-rows: auto 72px auto auto;
  gap: 6px;
  cursor: pointer;
}
.frontdesk-ad-dish input {
  width: auto;
  min-height: auto;
  justify-self: start;
}
.frontdesk-ad-dish > span {
  border-radius: 6px;
  background: #eef2f6;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.frontdesk-ad-dish .product-image-gallery-inline {
  display: grid;
  width: 100%;
  height: 100%;
  gap: 0;
  overflow: hidden;
}
.frontdesk-ad-dish img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  outline: 0 !important;
  object-fit: contain !important;
}
.frontdesk-ad-dish .product-image-gallery-inline img:not(:first-child) {
  display: none;
}
.frontdesk-ad-dish strong,
.frontdesk-ad-dish small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.frontdesk-ad-dish small {
  color: var(--muted);
  font-weight: 700;
}
.dish-edit-card.inactive {
  opacity: .55;
  filter: grayscale(.45);
}
.dish-edit-card.inactive .dish-edit-card-body strong {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.dish-active-check {
  align-self: end;
}
.scan-product-preview {
  min-height: 132px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  color: var(--muted);
}
.scan-product-preview.active {
  border-style: solid;
  background: #fff;
  color: var(--ink);
}
.scan-product-image {
  width: 144px;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #eef2f6;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}
.scan-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scan-product-preview strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.scan-product-preview em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}
.product-card {
  min-height: 142px;
  text-align: left;
  display: grid;
  gap: 5px;
  padding: 8px;
  background: #fff;
  border-color: var(--line);
}
.product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #eef2f6; }
.product-card strong { font-size: 13px; overflow-wrap: anywhere; }
.product-card span { color: var(--muted); font-size: 12px; }
.restaurant-pos .product-card {
  min-height: 176px;
}
.restaurant-pos .product-card strong {
  font-size: 15px;
}
.restaurant-pos .product-card img {
  aspect-ratio: 1.12;
}
.outbound-layout { display: grid; gap: 14px; }
.outbound-summary-card {
  padding: 12px;
  display: grid;
  gap: 10px;
}
.outbound-summary-card button.primary {
  width: 100%;
}
.outbound-receipt-shell {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.replenishment-confirmation-shell {
  width: min(1080px, 100%);
  grid-template-columns: minmax(440px, 560px) minmax(320px, 1fr);
}
.modal-card.replenishment-confirmation-card {
  width: 100%;
  padding: 18px;
}
.replenishment-confirmation-card p {
  margin: 0;
  line-height: 1.5;
}
.replenishment-confirmation-card table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}
.replenishment-confirmation-card td{vertical-align:top}.replenishment-confirmation-card .replenishment-product-name{width:auto;overflow-wrap:anywhere;word-break:break-word}.replenishment-confirmation-card .replenishment-quantity{width:90px;text-align:right;white-space:nowrap}.replenishment-confirmation-card .replenishment-amount{width:150px;text-align:right;white-space:nowrap}
.outbound-evidence-card {
  width: 100%;
}
.outbound-evidence-card .camera-capture-frame video {
  aspect-ratio: 16 / 10;
}
.compact-head {
  align-items: center;
  min-height: 46px;
}
.compact-head small {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}
.inbound-layout {
  display: grid;
  gap: 10px;
}
.inbound-workbench {
  display: grid;
  grid-template-columns: minmax(520px, 1.16fr) minmax(420px, .84fr);
  gap: 12px;
  align-items: start;
}
.inbound-product-panel,
.inbound-cart-panel {
  overflow: hidden;
}
.inbound-product-panel .panel-head,
.inbound-cart-panel .panel-head {
  padding: 9px 12px;
}
.stock-form.inbound-item-form {
  padding: 10px 12px 12px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}
.stock-form.inbound-item-form > label {
  min-width: 0;
}
.stock-form.inbound-item-form input,
.stock-form.inbound-item-form select {
  min-height: 42px;
}
.product-unit-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.product-unit-radio label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-weight: 800;
  white-space: nowrap;
}
.product-unit-radio input {
  min-height: 0;
  width: auto;
  accent-color: var(--green);
}
.stock-form.inbound-item-form .stock-barcode-row {
  grid-column: 1 / span 3;
  grid-row: 1;
  grid-template-columns: 20ch max-content;
  justify-content: start;
}
.stock-form.inbound-item-form .stock-product-image-card {
  grid-column: 9 / -1;
  grid-row: 1 / span 5;
  min-height: 252px;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(216px, 1fr) max-content;
  align-items: start;
  gap: 6px;
  padding: 10px;
  background: #f5f8f8;
}
.stock-form.inbound-item-form .stock-product-image-card > strong:empty {
  display: none;
}
.stock-form.inbound-item-form .stock-product-image-card > strong {
  grid-column: 1;
  grid-row: 1;
}
.stock-form.inbound-item-form .stock-product-image-card small {
  grid-column: 1;
  grid-row: 2;
  color: var(--muted);
  line-height: 1.35;
  align-self: start;
  margin: 0;
}
.stock-form.inbound-item-form .stock-product-image-preview {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-height: 216px;
  align-self: start;
  justify-self: center;
}
.stock-form.inbound-item-form .field-name { grid-column: 4 / span 3; grid-row: 1; }
.stock-form.inbound-item-form .field-category { grid-column: 7 / span 2; grid-row: 1; }
.stock-form.inbound-item-form .field-unit { grid-column: 1 / span 8; grid-row: 2; }
.stock-form.inbound-item-form .field-price { grid-column: 1 / span 2; grid-row: 3; }
.stock-form.inbound-item-form .field-cost { grid-column: 3 / span 2; grid-row: 3; }
.stock-form.inbound-item-form .field-qty { grid-column: 5 / span 2; grid-row: 3; }
.stock-form.inbound-item-form .field-low { grid-column: 7 / span 2; grid-row: 3; }
.stock-form.inbound-item-form .field-expire { grid-column: 1 / span 8; grid-row: 4; }
.stock-form.outbound-item-form {
  padding: 10px 12px 12px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}
.stock-form.outbound-item-form > label {
  min-width: 0;
}
.stock-form.outbound-item-form input,
.stock-form.outbound-item-form select {
  min-height: 42px;
}
.stock-form.outbound-item-form .stock-barcode-row {
  grid-column: 1 / span 3;
  grid-row: 1;
  grid-template-columns: 20ch max-content;
  justify-content: start;
}
.stock-form.outbound-item-form .stock-product-image-card {
  grid-column: 9 / -1;
  grid-row: 1 / span 3;
  min-height: 250px;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(178px, 1fr) auto;
  align-items: stretch;
  gap: 8px;
  padding: 10px;
  background: #f5f8f8;
}
.stock-form.outbound-item-form .stock-product-image-card > strong {
  grid-column: 1;
  grid-row: 1;
}
.stock-form.outbound-item-form .stock-product-image-card small {
  grid-column: 1;
  grid-row: 3;
  color: var(--muted);
  line-height: 1.35;
}
.stock-form.outbound-item-form .stock-product-image-preview {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  min-height: 178px;
}
.stock-form.outbound-item-form .field-name { grid-column: 4 / span 3; grid-row: 1; }
.stock-form.outbound-item-form .field-category { grid-column: 7 / span 2; grid-row: 1; }
.stock-form.outbound-item-form .field-unit { grid-column: 1 / span 2; grid-row: 2; }
.stock-form.outbound-item-form .field-original-cost { grid-column: 3 / span 2; grid-row: 2; }
.stock-form.outbound-item-form .field-original-sale { grid-column: 5 / span 2; grid-row: 2; }
.stock-form.outbound-item-form .field-price { grid-column: 7 / span 1; grid-row: 2; }
.stock-form.outbound-item-form .field-qty { grid-column: 8 / span 1; grid-row: 2; }
.stock-form.outbound-item-form .outbound-add-button {
  grid-column: 1 / span 8;
  grid-row: 3;
  min-height: 44px;
  align-self: end;
  white-space: nowrap;
  justify-self: stretch;
}
.inbound-cart-list {
  max-height: min(58vh, 640px);
  padding: 8px;
}
.inbound-list-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 8px;
  align-items: end;
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--line);
}
.inbound-list-toolbar input {
  min-height: 42px;
}
.supplier-mix-warning {
  color: #9a3412;
  font-weight: 750;
}
.inbound-list-toolbar .inbound-supplier-label-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}
.inbound-list-toolbar .inbound-supplier-label-line > .supplier-mix-warning {
  display: inline;
  margin: 0;
}
.inbound-list-toolbar button.primary {
  min-height: 42px;
  width: auto;
  min-width: max-content;
  padding-inline: 18px;
  white-space: nowrap;
}
.inbound-list-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}
.inbound-draft-table-wrap {
  overflow-x: auto;
}
.inbound-list-table th,
.inbound-list-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.inbound-list-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.inbound-list-table td {
  font-weight: 700;
}
.inbound-cart-panel .inbound-list-table input {
  width: 100%;
  min-width: 76px;
  min-height: 36px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffef4;
  color: var(--ink);
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.inbound-cart-panel .inbound-list-table input:focus {
  border-color: var(--primary);
  outline: 2px solid rgba(47, 158, 216, .16);
}
.inbound-draft-barcode {
  width: 132px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.inbound-draft-name {
  min-width: 170px;
  overflow-wrap: anywhere;
}
.inbound-draft-quantity {
  max-width: 92px;
}
.inbound-draft-price {
  max-width: 120px;
}
.inbound-draft-remove {
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 8px;
}
.inbound-qty-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  white-space: nowrap;
}
.inbound-qty-cell span {
  min-width: 64px;
  text-align: right;
}
.inbound-qty-cell button {
  width: 28px;
  min-height: 28px;
  border-radius: 7px;
}
.inbound-note-field {
  display: block;
  padding: 8px 12px 12px;
  border-top: 1px solid var(--line);
}
.inbound-note-field input {
  min-height: 42px;
}
.inbound-evidence-field {
  display: grid;
  gap: 8px;
  padding: 8px 12px 12px;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
}
.inbound-evidence-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.inbound-evidence-status em {
  font-style: normal;
  color: var(--muted);
}
.inbound-evidence-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.inbound-evidence-actions button,
.inbound-evidence-actions .file-button {
  width: auto;
  min-width: max-content;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13px;
}
.inbound-cart-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  padding: 8px 9px;
}
.inbound-cart-row .cart-info {
  min-width: 0;
}
.inbound-cart-row .cart-info strong {
  font-size: 14px;
}
.inbound-cart-row .cart-info span {
  display: block;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbound-line-total {
  color: var(--green);
  font-size: 14px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.inbound-cart-row .cart-actions {
  gap: 4px;
}
.inbound-cart-row button {
  width: 28px;
  min-height: 28px;
  border-radius: 7px;
}
.inbound-history-panel {
  overflow: hidden;
}
@media (max-width: 1280px) {
  .inbound-workbench {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .48fr);
  }
}
@media (max-width: 900px) {
  .inbound-workbench {
    grid-template-columns: 1fr;
  }
  .stock-form.inbound-item-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stock-form.inbound-item-form .stock-barcode-row,
  .stock-form.inbound-item-form .stock-product-image-card,
  .stock-form.inbound-item-form .field-name,
  .stock-form.inbound-item-form .field-category,
  .stock-form.inbound-item-form .field-unit,
  .stock-form.inbound-item-form .field-price,
  .stock-form.inbound-item-form .field-cost,
  .stock-form.inbound-item-form .field-qty,
  .stock-form.inbound-item-form .field-low,
  .stock-form.inbound-item-form .field-expire {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .stock-form.inbound-item-form .stock-product-image-card {
    grid-row: auto;
    min-height: 260px;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(210px, 1fr) auto;
  }
  .stock-form.outbound-item-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stock-form.outbound-item-form .stock-barcode-row,
  .stock-form.outbound-item-form .stock-product-image-card,
  .stock-form.outbound-item-form .field-name,
  .stock-form.outbound-item-form .field-category,
  .stock-form.outbound-item-form .field-unit,
  .stock-form.outbound-item-form .field-original-cost,
  .stock-form.outbound-item-form .field-original-sale,
  .stock-form.outbound-item-form .field-price,
  .stock-form.outbound-item-form .field-qty,
  .stock-form.outbound-item-form .outbound-add-button {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .stock-form.outbound-item-form .stock-product-image-card {
    grid-row: auto;
    min-height: 240px;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(188px, 1fr) auto;
  }
  .inbound-list-toolbar {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .stock-form.inbound-item-form {
    grid-template-columns: 1fr;
  }
  .stock-form.inbound-item-form .stock-product-image-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(190px, 1fr) auto;
    min-height: 238px;
  }
  .stock-form.inbound-item-form .stock-product-image-preview {
    width: 100%;
    min-height: 190px;
  }
  .stock-form.outbound-item-form {
    grid-template-columns: 1fr;
  }
  .stock-form.outbound-item-form .stock-product-image-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(176px, 1fr) auto;
    min-height: 226px;
  }
  .stock-form.outbound-item-form .stock-product-image-preview {
    width: 100%;
    min-height: 176px;
  }
  .inbound-cart-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .inbound-line-total {
    grid-column: 1;
    justify-self: start;
  }
}
.inbound-product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.inbound-product-head > div {
  min-width: 0;
}
.stock-form.inbound-item-form.inbound-sheet-form {
  display: block;
  padding: 0;
  overflow: hidden;
}
.inbound-sheet-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: auto;
}
.inbound-sheet-table th,
.inbound-sheet-table td {
  border: 1px solid var(--line);
}
.inbound-sheet-table th {
  width: 88px;
  padding: 6px 8px;
  background: #eef3f7;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.inbound-sheet-table td {
  padding: 0;
  background: #fffef4;
  vertical-align: middle;
}
.inbound-sheet-table input,
.inbound-sheet-table select {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 5px 8px;
  font-size: 13px;
  font-weight: 700;
}
.inbound-sheet-table input[readonly] {
  background: #eef2f7;
  color: #475569;
}
.inbound-sheet-table .inbound-fiscal-row th {
  color: #334155;
}
.inbound-sheet-table .inbound-fiscal-row td {
  background: #f8fbff;
}
.inbound-fiscal-status {
  display: block;
  padding: 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 34px;
}
.inbound-mxik-info-row > td {
  padding: 4px;
  background: #f8fbff;
}
.inbound-mxik-info-box {
  width: 100%;
}
.inbound-mxik-info-empty {
  padding: 7px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.inbound-mxik-info-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.inbound-mxik-info-table th,
.inbound-mxik-info-table td {
  border: 1px solid var(--line);
  padding: 5px 7px;
  font-size: 12px;
  line-height: 1.25;
  vertical-align: top;
}
.inbound-mxik-info-table th {
  width: 150px;
  color: #475569;
  background: #eef3f7;
  font-weight: 800;
  text-align: left;
}
.inbound-mxik-info-table td {
  color: var(--ink);
  background: #fff;
  font-weight: 600;
  word-break: break-word;
}
.inbound-sheet-table .inbound-unit-row td {
  padding: 4px 8px;
  background: #fffef4;
}
.inbound-sheet-table .inbound-unit-radio {
  display: flex;
  width: 100%;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
}
.inbound-sheet-table .inbound-unit-radio label {
  min-height: 30px;
  padding: 4px 10px;
}
.inbound-sheet-table .inbound-unit-radio input[type="radio"] {
  width: 14px;
  min-height: 14px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  accent-color: var(--primary);
}
.inbound-expiry-cell {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  min-height: 34px;
}
.inbound-expiry-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 3px 8px;
  border-left: 1px solid var(--line);
}
.inbound-expiry-quick label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 24px;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.inbound-expiry-quick input {
  width: 13px;
  min-height: 13px;
  padding: 0;
  accent-color: var(--primary);
}
.inbound-sheet-image-row {
  border: 1px solid var(--line);
  border-top: 0;
  background: #f8fafc;
  padding: 6px;
}
.stock-form.inbound-item-form.inbound-sheet-form .stock-product-image-card {
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 6px 10px;
  align-items: center;
  justify-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.stock-form.inbound-item-form.inbound-sheet-form .stock-product-image-card > strong {
  font-size: 12px;
  grid-column: 1;
}
.stock-form.inbound-item-form.inbound-sheet-form .stock-product-image-card small {
  font-size: 12px;
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  text-align: center;
}
.stock-form.inbound-item-form.inbound-sheet-form .stock-product-image-preview {
  grid-column: 1;
  width: 240px;
  min-height: 180px;
  border-radius: 6px;
}
.stock-form.inbound-item-form.inbound-sheet-form .stock-product-image-preview video,
.stock-form.inbound-item-form.inbound-sheet-form .stock-product-image-preview img {
  max-height: 200px;
}
.inbound-scan-panel {
  margin: 8px 0 10px;
}
.inbound-scan-panel .panel-head {
  padding: 8px 12px;
}
.inbound-scan-panel .panel-head .primary {
  width: auto;
  min-width: max-content;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13px;
}
.inbound-scan-warning {
  border-color: rgba(190, 76, 37, .5);
  background: #fffaf0;
}
.inbound-scan-warning p {
  margin: 0;
  padding: 9px 12px;
  color: #9a3412;
  font-weight: 800;
}
.inbound-scan-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
}
.inbound-scan-summary span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid rgba(148,163,184,.32);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.inbound-scan-summary b {
  color: var(--ink);
}
.electronic-waybill-items {
  width: calc(100% - 24px);
  margin: 0 12px 10px;
}
.electronic-waybill-items th,
.electronic-waybill-items td {
  padding: 6px 8px;
}
.package-relation-card {
  width: min(760px, calc(100vw - 48px));
}
.package-relation-body {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.package-relation-body > label,
.package-relation-warning,
.package-relation-hint,
.package-relation-preview {
  grid-column: 1 / -1;
}
.package-relation-warning {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(217,119,6,.42);
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
}
.package-relation-hint {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(217,119,6,.34);
  border-radius: 8px;
  background: #fffaf0;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
}
.package-relation-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.package-relation-manual-product {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(59,130,246,.22);
  border-radius: 8px;
  background: #f8fbff;
}
.package-relation-manual-product.hidden {
  display: none;
}
.package-relation-manual-product p,
.package-relation-unit-field {
  grid-column: 1 / -1;
}
.package-relation-manual-product p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.package-relation-preview {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px dashed rgba(148,163,184,.46);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}
.package-relation-preview span {
  color: var(--muted);
  font-size: 12px;
}
.goods-receipt-action-card {
  padding: 12px;
  display: grid;
  gap: 12px;
}

.goods-receipt-live-layout {
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(320px, 1.05fr);
  gap: 14px;
  align-items: stretch;
}

.goods-receipt-live-frame {
  min-height: 340px;
}

.goods-receipt-live-frame video {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.goods-receipt-form {
  align-content: start;
}

.goods-receipt-form textarea {
  min-height: 128px;
  resize: vertical;
}
.goods-receipt-page {
  display: grid;
  gap: 12px;
}

.goods-receipt-form .primary {
  width: fit-content;
  min-width: 148px;
  padding-inline: 28px;
}
.goods-receipt-modal-card {
  width: min(760px, calc(100vw - 28px));
}
.inbound-evidence-camera-card {
  width: min(760px, calc(100vw - 28px));
}
.inbound-evidence-camera-card .camera-capture-frame {
  min-height: min(58vh, 460px);
}
.inbound-evidence-camera-card .camera-capture-frame video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.goods-receipt-modal-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 700;
}
.goods-receipt-modal-card .camera-capture-frame {
  min-height: min(58vh, 460px);
}
.goods-receipt-modal-card .camera-capture-frame video {
  aspect-ratio: 16 / 9;
}

@media (max-width: 900px) {
  .goods-receipt-live-layout {
    grid-template-columns: 1fr;
  }
  .goods-receipt-live-frame {
    min-height: 280px;
  }
}
.stock-document-items {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(30, 64, 90, .12);
  border-radius: 14px;
  padding: 14px;
}
.stock-document-items h4 {
  margin: 0 0 10px;
}
.payment-card {
  z-index: 2;
}
.payment-card .panel-head { min-height: 38px; }
.cart-head .primary {
  min-width: max-content;
}
.quick-pay-methods {
  padding: 0 12px 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
}
.quick-pay-methods button {
  min-height: 72px;
  font-size: 18px;
  font-weight: 900;
}
.pos-config-summary {
  margin: 0 12px 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fbfcfe;
  font-size: 13px;
}
.pos-terminal-settings {
  margin: 0 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.pos-terminal-settings summary {
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 800;
}
.pos-terminal-config {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.pos-terminal-config .wide {
  grid-column: 1 / -1;
}
.frontdesk-pos-info .readonly-field {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}
.frontdesk-pos-info .readonly-field span {
  color: var(--muted);
  font-size: 12px;
}
.frontdesk-pos-info .readonly-field strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.frontdesk-pos-info > button,
.frontdesk-pos-info > a.secondary {
  width: fit-content;
  min-width: 0;
  justify-self: start;
}
.self-pos-config-page {
  min-height: calc(100vh - 24px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}
.self-config-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px 2px;
}
.self-config-topbar h3 {
  margin: 0;
  font-size: 22px;
}
.self-pos-config-panel {
  padding: 8px;
}
.self-pos-config-panel .pos-terminal-config {
  padding: 12px;
}
.pos-terminal-config button[type="submit"] {
  justify-self: start;
  min-width: max-content;
}
.self-payment-page {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: #eef3f5;
  display: grid;
}
.self-payment-shell {
  width: min(720px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  background: #f8fafc;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}
.self-payment-header {
  min-height: 72px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.self-payment-header strong {
  font-size: 22px;
  color: var(--ink);
  text-align: center;
}
.self-payment-header em {
  font-style: normal;
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}
.self-payment-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
  padding: 12px;
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid var(--line);
}
.self-payment-tabs button {
  min-height: 60px;
  font-size: 18px;
  font-weight: 900;
  background: #fff;
}
.self-payment-tabs button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.self-payment-main {
  padding: 14px;
  display: grid;
  align-items: start;
}
.self-payment-method-card {
  min-height: 44vh;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  display: grid;
  gap: 18px;
  align-content: start;
  box-shadow: var(--shadow);
}
.self-payment-method-card > strong {
  font-size: 30px;
  color: var(--ink);
}
.self-payment-method-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}
.self-dynamic-pay-grid {
  display: grid;
  grid-template-columns: minmax(190px, .62fr) minmax(300px, 1.28fr) minmax(230px, .72fr);
  gap: 14px;
}
.self-payment-mode-choice {
  margin-top: -4px;
}
.self-payment-method-card .hidden {
  display: none;
}
.self-payment-scan,
.self-payment-brief {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.self-payment-scan > span,
.self-payment-brief > span {
  color: var(--muted);
  font-weight: 900;
}
.self-payment-camera-frame {
  min-height: 240px;
  background: #111827;
}
.self-payment-camera-frame video {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}
.self-payment-brief {
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}
.self-payment-brief > strong {
  color: var(--green);
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1;
}
.self-payment-brief p {
  font-size: 16px;
  line-height: 1.35;
}
.click-card-pay-button {
  justify-self: start;
  min-height: 44px;
  font-weight: 900;
}
.self-payment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.self-payment-meta span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 800;
}
.self-payment-code {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}
.self-payment-code input {
  min-height: 68px;
  font-size: 24px;
}
.self-payment-total {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.self-payment-total span {
  color: var(--muted);
  font-weight: 800;
}
.self-payment-total strong {
  color: var(--green);
  font-size: 34px;
  font-weight: 900;
}
.self-payment-actions {
  padding: 14px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.self-payment-actions button {
  width: 100%;
  min-height: 72px;
  font-size: 24px;
  font-weight: 900;
}
@media (max-width: 760px) {
  .self-dynamic-pay-grid {
    grid-template-columns: 1fr;
  }
  .self-payment-camera-frame,
  .self-payment-camera-frame video {
    min-height: 220px;
  }
}
.cart-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  max-height: 34vh;
  overflow: auto;
  user-select: none;
  -webkit-user-select: none;
}
.cart-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  touch-action: pan-y;
  will-change: transform;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.cart-row-swiping { transition: border-color .12s ease, background .12s ease; }
.cart-row-delete-ready { background: #fff1f2; border-color: #fecdd3; }
.cart-row strong { display: block; overflow-wrap: anywhere; }
.cart-row span { color: var(--muted); font-size: 12px; }
.cart-actions { display: flex; gap: 6px; }
.cart-row button { width: 30px; min-height: 30px; padding: 0; }
.total-row { padding: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 18px; }
.cash-control {
  padding: 0 12px 10px;
  display: grid;
  gap: 8px;
}
.cash-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 7px;
  align-items: center;
  padding: 0;
}
.cash-line span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.cash-line input { min-height: 40px; }
.cash-line button {
  min-height: 40px;
  padding: 0 10px;
}
.cash-inline-submit {
  min-width: 92px;
  white-space: nowrap;
}
.cash-control.keypad-open .cash-inline-submit { display: none; }
.cash-keypad {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(5, 46px);
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  overflow: visible;
}
.cash-keypad button {
  min-height: 46px;
  padding: 0;
  background: #fff;
  border-color: var(--line);
  font-size: 16px;
  font-weight: 800;
}
.cash-key-1 { grid-column: 1 / 3; grid-row: 1; }
.cash-key-2 { grid-column: 3 / 5; grid-row: 1; }
.cash-key-3 { grid-column: 5 / 7; grid-row: 1; }
.cash-key-4 { grid-column: 1 / 3; grid-row: 2; }
.cash-key-5 { grid-column: 3 / 5; grid-row: 2; }
.cash-key-6 { grid-column: 5 / 7; grid-row: 2; }
.cash-key-7 { grid-column: 1 / 3; grid-row: 3; }
.cash-key-8 { grid-column: 3 / 5; grid-row: 3; }
.cash-key-9 { grid-column: 5 / 7; grid-row: 3; }
.cash-key-00 { grid-column: 1 / 3; grid-row: 4; }
.cash-key-0 { grid-column: 3 / 5; grid-row: 4; }
.cash-key-dot { grid-column: 5 / 7; grid-row: 4; }
.cash-key-backspace {
  grid-column: 1 / 3;
  grid-row: 5;
  color: var(--ink);
}
.cash-keypad .cash-key-submit {
  grid-column: 3 / 7;
  grid-row: 5;
  position: relative;
  display: grid;
  place-items: center;
  line-height: 1.25;
  writing-mode: horizontal-tb;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0;
  padding: 6px 10px;
  font-size: 15px;
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(47, 158, 216, .20);
}
.cash-keypad .cash-key-submit:focus { outline: 2px solid rgba(37, 99, 235, .35); outline-offset: 2px; }
.cart-panel > button { margin: 0 12px 12px; width: calc(100% - 24px); }

.inventory-layout {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr);
  grid-template-rows: auto auto;
  gap: 14px;
  align-items: stretch;
}
.camera-panel {
  grid-row: span 2;
  position: relative;
  overflow: hidden;
}
.stock-operation-layout .camera-panel { grid-row: auto; }
.camera-panel video, .modal video {
  width: 100%;
  background: #111827;
  display: block;
}
.camera-panel video { aspect-ratio: 16 / 10; }
.camera-capture-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111827;
}
.camera-capture-frame video {
  width: 100%;
  display: block;
}
.camera-flip-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .58);
  background: linear-gradient(145deg, rgba(255, 255, 255, .44), rgba(255, 255, 255, .16));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .46), 0 12px 34px rgba(15, 23, 42, .34);
  backdrop-filter: blur(12px) saturate(1.45);
  -webkit-backdrop-filter: blur(12px) saturate(1.45);
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}
.camera-flip-button svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.camera-flip-button:disabled {
  opacity: .42;
  filter: grayscale(1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 22px rgba(15, 23, 42, .18);
  cursor: not-allowed;
}
.camera-flip-button.is-switching {
  opacity: .62;
  cursor: wait;
}
.camera-panel .camera-flip-button {
  top: 58px;
}
.camera-frame-shutter {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 7;
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  padding: 0;
  transform: translateX(-50%);
  border-radius: 999px;
  border: 5px solid rgba(255, 255, 255, .94);
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .16), 0 14px 34px rgba(0, 0, 0, .42);
  backdrop-filter: blur(10px) saturate(1.35);
  -webkit-backdrop-filter: blur(10px) saturate(1.35);
  cursor: pointer;
}
.camera-frame-shutter::after {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  margin: 7px auto;
  border-radius: inherit;
  background: #fff;
  transition: transform .12s ease;
}
.camera-frame-shutter:active::after {
  transform: scale(.9);
}
.camera-frame-shutter:disabled {
  opacity: .58;
  cursor: wait;
}
.camera-capture-frame.scanner-mode video {
  opacity: 1;
}
.payment-scan-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 38%, rgba(5, 7, 13, .3) 76%),
    rgba(5, 7, 13, .08);
  pointer-events: none;
}
.payment-scan-mask::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .45;
}
.payment-scan-window {
  position: relative;
  width: min(68%, 420px);
  aspect-ratio: 1;
  border-radius: 22px;
  border: 2px solid rgba(226, 232, 240, .36);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 24px 80px rgba(0, 0, 0, .32);
  overflow: hidden;
}
.payment-scan-window::before,
.payment-scan-window::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  border-color: rgba(94, 234, 212, .9);
  border-style: solid;
}
.payment-scan-window::before {
  left: 16px;
  top: 16px;
  border-width: 4px 0 0 4px;
}
.payment-scan-window::after {
  right: 16px;
  bottom: 16px;
  border-width: 0 4px 4px 0;
}
.payment-scan-window span {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 16px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, .98), transparent);
  box-shadow: 0 0 22px rgba(94, 234, 212, .82);
  animation: payment-scan-line 1.65s ease-in-out infinite;
}
@keyframes payment-scan-line {
  0% { top: 16px; opacity: .35; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: calc(100% - 20px); opacity: .35; }
}
.capture-preview {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 112px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .35);
  background: #eef2f6;
}
.camera-overlay-text {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, .68);
  color: #fff;
  font-weight: 800;
  text-align: center;
  pointer-events: none;
}
.noncash-payment-modal {
  padding: 8px;
  overflow: hidden;
}
.modal-card.noncash-checkout-card {
  width: min(1280px, 100%);
  height: min(820px, calc(100dvh - 16px));
  max-height: calc(100dvh - 16px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: clamp(6px, 1vh, 10px);
  padding: clamp(8px, 1.2vh, 14px);
}
.noncash-head,
.noncash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.noncash-head h3 {
  margin: 0;
  font-size: clamp(20px, 3vh, 30px);
  line-height: 1.08;
}
.noncash-head span,
.noncash-panel-head span,
.compact-hint {
  color: var(--muted);
  font-weight: 700;
}
.compact-label {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--muted);
}
.noncash-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.noncash-summary div,
.noncash-camera-panel,
.noncash-code-panel,
.noncash-qr-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: clamp(7px, 1vh, 10px);
}
.noncash-summary span {
  display: block;
  color: var(--muted);
  font-weight: 700;
}
.noncash-summary strong {
  display: block;
  margin-top: 2px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(18px, 3.1vw, 24px);
  line-height: 1.05;
}
.noncash-methods {
  display: grid;
  grid-template-columns: repeat(6, minmax(70px, 1fr));
  gap: 8px;
}
.noncash-methods button {
  min-height: clamp(34px, 5vh, 42px);
  padding-inline: 6px;
  background: #fff;
}
.noncash-methods button.active {
  border-color: var(--primary);
  background: #e7f6f0;
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(46, 125, 114, .18);
}
.payment-qr-mode-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.payment-qr-mode-choice.hidden {
  display: none;
}
.payment-qr-mode-choice button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}
.payment-qr-mode-choice button.active {
  border-color: var(--primary);
  background: #e7f6f0;
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(46, 125, 114, .18);
}
.noncash-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  gap: 12px;
  min-height: 0;
}
.noncash-body.qr-layout {
  grid-template-columns: minmax(210px, .68fr) minmax(330px, 1.28fr) minmax(250px, .74fr);
}
.noncash-body.qr-layout.customer-code-only {
  grid-template-columns: minmax(220px, .78fr) minmax(250px, .72fr);
}
.noncash-body.evidence-only {
  grid-template-columns: 1fr;
}
.noncash-camera-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
}
.noncash-camera-frame {
  min-height: 0;
  height: 100%;
}
.noncash-camera-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111827;
}
.noncash-body.qr-layout .noncash-camera-panel {
  min-height: 0;
}
.noncash-body.qr-layout .noncash-camera-frame {
  align-self: center;
  height: auto;
  aspect-ratio: 1;
  min-height: 220px;
  max-height: 330px;
}
.noncash-body.qr-layout .noncash-camera-frame video {
  object-fit: cover;
}
.noncash-body.qr-layout .payment-scan-window {
  width: min(72%, 220px);
  aspect-ratio: 1;
}
.noncash-code-panel label {
  display: grid;
  gap: 6px;
}
.noncash-code-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
}
.noncash-code-panel input {
  width: 100%;
}
.noncash-code-panel.hidden {
  display: none;
}
.noncash-qr-summary {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
}
.noncash-qr-summary.hidden {
  display: none;
}
.noncash-qr-summary span,
.noncash-qr-summary label {
  color: var(--muted);
  font-weight: 800;
}
.noncash-qr-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: clamp(24px, 3.3vw, 38px);
  line-height: 1.05;
}
.noncash-qr-summary em {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-style: normal;
  font-weight: 900;
}
.noncash-qr-summary p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}
.noncash-qr-summary label {
  display: grid;
  gap: 6px;
}
.noncash-qr-summary input {
  width: 100%;
}
.noncash-actions {
  justify-content: flex-end;
}
@media (max-width: 760px) {
  .noncash-payment-modal {
    padding: 6px;
  }
  .modal-card.noncash-checkout-card {
    height: calc(100dvh - 12px);
    max-height: calc(100dvh - 12px);
    overflow: hidden;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  }
  .noncash-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .noncash-body {
    grid-template-columns: 1fr;
  }
  .noncash-body.qr-layout {
    grid-template-columns: minmax(160px, .75fr) minmax(220px, 1.25fr);
  }
  .noncash-body.qr-layout .noncash-qr-summary {
    grid-column: 1 / -1;
  }
  .noncash-methods {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.stock-form { padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; align-items: end; }
.stock-form button.primary {
  grid-column: auto;
  justify-self: stretch;
  min-width: min(220px, 100%);
}
.stock-barcode-row {
  display: grid;
  grid-template-columns: max-content;
  gap: 6px;
  align-items: end;
}
.stock-barcode-row label { min-width: 0; }
.stock-barcode-row .barcode-20ch {
  width: 20ch;
  max-width: 20ch;
}
.stock-barcode-row .barcode-20ch input { width: 20ch; }
.stock-standard-checkbox {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: fit-content;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
}
.stock-standard-checkbox input { width: 18px; height: 18px; }
.stock-image-url-field { grid-column: 1 / -1; }
.manufactured-create-form {
  display: grid;
  grid-template-columns: minmax(560px, 1.25fr) minmax(380px, .75fr);
  gap: 12px;
  align-items: start;
}
.manufactured-components-panel,
.manufactured-form-panel {
  min-width: 0;
}
.manufactured-component-table {
  min-width: 0;
}
.manufactured-component-search {
  flex-wrap: nowrap;
}
.manufactured-component-search label {
  display: grid;
  gap: 4px;
  min-width: 260px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.manufactured-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.manufactured-component-search-button {
  justify-self: start;
  width: fit-content;
  min-width: 74px;
  padding-left: 16px;
  padding-right: 16px;
}
.manufactured-components-wrap table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
}
.manufactured-components-wrap th:first-child,
.manufactured-components-wrap td:first-child {
  width: 100%;
}
.manufactured-components-wrap th:nth-child(2),
.manufactured-components-wrap td:nth-child(2),
.manufactured-components-wrap th:nth-child(3),
.manufactured-components-wrap td:nth-child(3) {
  width: 1%;
  white-space: nowrap;
}
.manufactured-component-name-cell {
  min-width: 260px;
}
.manufactured-component-choice {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 32px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.manufactured-component-choice input {
  flex: 0 0 auto;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
}
.manufactured-component-choice span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.manufactured-components-wrap input[type="number"] {
  width: 94px;
  min-width: 94px;
}
.stock-count-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}
.stock-count-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0 0 2px;
}
.stock-count-tabs .stock-count-tab {
  width: auto;
  min-width: 0;
  min-height: 32px;
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f8fa;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 850;
  box-shadow: none;
}
.stock-count-tabs .stock-count-tab.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.stock-count-table-wrap {
  max-height: calc(100dvh - 180px);
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.stock-count-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
.stock-count-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #edf2f5;
}
.stock-count-table th,
.stock-count-table td {
  padding: 6px 9px;
  border-right: 1px solid #dbe4ea;
  border-bottom: 1px solid #dbe4ea;
  text-align: left;
  vertical-align: middle;
}
.stock-count-table th:last-child,
.stock-count-table td:last-child { border-right: 0; }
.stock-count-table th:nth-child(1) { width: 12%; }
.stock-count-table th:nth-child(2) { width: 61%; }
.stock-count-table th:nth-child(3) { width: 7%; }
.stock-count-table th:nth-child(4) { width: 7%; }
.stock-count-table th:nth-child(5) { width: 13%; }
.stock-count-table th:nth-child(2),
.stock-count-table td:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-empty-row td {
  height: 58px;
  padding: 14px;
  color: var(--muted);
  background: #fff;
  text-align: center;
  white-space: normal;
}
.stock-count-table tbody tr { transition: background-color .16s ease, box-shadow .16s ease; }
.stock-count-table tbody tr.is-active {
  background: #fff3a8;
  box-shadow: inset 4px 0 #e5a900;
}
.stock-count-table tbody tr.is-unknown { color: #a13227; }
.stock-count-table tbody tr.is-unknown.is-active { background: #ffe0dc; box-shadow: inset 4px 0 #d64535; }
.stock-count-table tbody tr.is-counted:not(.has-difference) > td {
  color: #24743c;
  background: #eef9f1;
}
.stock-count-table tbody tr.is-counted:not(.has-difference) .stock-count-actual-input { color: #24743c; }
.stock-count-table tbody tr.is-counted.has-difference > td {
  color: #a66a00;
  background: #fff7d9;
}
.stock-count-table tbody tr.is-counted.has-difference .stock-count-actual-input { color: #a66a00; }
.stock-count-table tbody tr.is-unknown > td {
  color: #b52d24;
  background: #ffefed;
}
.stock-count-table.is-virtualized tbody tr[data-inventory-count-row] {
  height: 50px;
}
.stock-count-table .stock-count-virtual-spacer,
.stock-count-table .stock-count-virtual-spacer:hover {
  height: auto;
  background: transparent;
  box-shadow: none;
  transition: none;
}
.stock-count-table .stock-count-virtual-spacer > td {
  box-sizing: border-box;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.stock-count-barcode { font-weight: 850; font-variant-numeric: tabular-nums; }
.stock-count-actual-input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 5px 8px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.stock-count-actual-input:focus {
  border-color: #e5a900;
  outline: 3px solid rgba(229,169,0,.2);
}
.stock-category-table th:nth-child(1) { width: 14%; }
.stock-category-table th:nth-child(2) { width: 43%; }
.stock-category-table th:nth-child(3) { width: 11%; }
.stock-category-table th:nth-child(4) { width: 24%; }
.stock-category-table th:nth-child(5) { width: 8%; }
.stock-category-table th:nth-child(4),
.stock-category-table td:nth-child(4) {
  overflow: visible;
  white-space: normal;
}
.stock-category-table select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 5px 28px 5px 8px;
}
.stock-category-table .stock-category-delete-button {
  width: auto;
  min-width: 0;
  min-height: 32px;
  padding: 5px 10px;
  white-space: nowrap;
}
.stock-count-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 8px 0 2px;
}
.stock-count-actions > button {
  min-width: 112px;
}
.taskflow-stocktake-camera {
  display: grid;
  grid-template-columns: auto minmax(120px, 220px);
  gap: 10px;
  align-items: start;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}
.taskflow-stocktake-camera span {
  color: var(--muted);
  font-weight: 800;
}
.taskflow-stocktake-camera img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.stock-count-history-panel .table-wrap {
  max-height: 220px;
  overflow: auto;
}
.category-tools-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 12px;
  align-items: start;
}
.category-tool-panel {
  min-width: 0;
}
.category-dish-column {
  min-width: 0;
  display: grid;
  gap: 12px;
}
.category-tool-panel .panel-head,
.dish-category-panel .panel-head {
  flex-wrap: wrap;
}
.category-create-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) max-content;
  gap: 10px;
  align-items: end;
  margin-left: auto;
  width: min(420px, 62%);
  max-width: 100%;
}
.category-create-form input {
  min-height: 42px;
}
.category-create-form .primary {
  width: auto;
  min-width: 124px;
  white-space: nowrap;
}
.category-delete-button {
  width: auto;
  min-width: 72px;
  padding: 7px 12px;
  white-space: nowrap;
}
.category-merge-form {
  grid-template-columns: 1fr;
}
.category-source-field {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
}
.category-source-field em {
  font-style: normal;
  color: #8a6b12;
}
.category-source-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  align-items: flex-start;
  padding: 8px;
  border: 1px solid rgba(203, 213, 225, .8);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(248, 250, 252, .86), rgba(226, 232, 240, .42));
}
.category-source-button {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 999px;
  color: #0f172a;
  font-weight: 800;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(226, 232, 240, .56)),
    radial-gradient(circle at 30% 12%, rgba(255, 255, 255, .95), transparent 34%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 6px 16px rgba(15, 23, 42, .08);
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease, opacity .14s ease;
}
.category-source-button small {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
}
.category-source-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}
.category-image-control {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  cursor: pointer;
  touch-action: manipulation;
}
.category-image-control > span {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, .7);
  border-radius: 6px;
  background: #fff;
  color: var(--primary);
}
.category-image-control img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-image-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.category-source-name[contenteditable] {
  cursor: text;
  user-select: text;
  outline: 0;
  border-radius: 999px;
  padding: 2px 4px;
}
.category-source-name[contenteditable]:focus {
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 2px rgba(50, 125, 114, .22);
}
.category-source-button.selected {
  border-color: rgba(50, 125, 114, .55);
  color: #1f6f66;
  background:
    linear-gradient(145deg, rgba(236, 253, 245, .95), rgba(187, 247, 208, .48)),
    radial-gradient(circle at 24% 10%, rgba(255, 255, 255, .96), transparent 35%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 8px 20px rgba(31, 111, 102, .16);
}
.category-source-button.selected small {
  background: rgba(31, 111, 102, .12);
  color: #1f6f66;
}
.category-source-button.protected {
  cursor: default;
  border-color: rgba(50, 125, 114, .34);
  background:
    linear-gradient(145deg, rgba(236, 253, 245, .92), rgba(204, 251, 241, .48)),
    radial-gradient(circle at 24% 10%, rgba(255, 255, 255, .96), transparent 35%);
}
.category-source-button.protected .category-source-name::after {
  content: " *";
  color: #1f6f66;
}
.category-source-button.dragging {
  opacity: .54;
  cursor: grabbing;
  transform: scale(.96);
}
.category-source-button.drop-target {
  border-color: rgba(234, 179, 8, .72);
  background:
    linear-gradient(145deg, rgba(255, 251, 235, .98), rgba(254, 240, 138, .52)),
    radial-gradient(circle at 24% 10%, rgba(255, 255, 255, .98), transparent 35%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 10px 24px rgba(234, 179, 8, .22);
  transform: translateY(-1px);
}
.category-source-button.drop-target small {
  background: rgba(234, 179, 8, .18);
  color: #854d0e;
}
.category-merge-panel[data-category-merge-scope="product"] .category-source-buttons {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  padding: 12px;
}
.category-merge-panel[data-category-merge-scope="product"] .category-source-button {
  min-height: 54px;
  padding: 12px 16px;
  font-size: 16px;
}
.category-merge-panel[data-category-merge-scope="product"] .category-source-button small {
  min-width: 28px;
  height: 28px;
  font-size: 13px;
}
.category-drag-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 5000;
  pointer-events: none;
  opacity: .9;
  cursor: grabbing;
  transform-origin: center;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .22);
}
body.category-drag-active {
  cursor: grabbing;
}
.category-merge-form select[multiple] {
  min-height: 96px;
}
.inventory-product-panel .table-wrap,
.dish-list-panel .table-wrap {
  border-top: 1px solid var(--line);
}
@media (max-width: 700px) {
  .category-tools-row,
  .category-merge-form,
  .category-create-form {
    grid-template-columns: 1fr;
  }
}
.product-inline-edit-panel,
.dish-editor-panel {
  background: #f8fbfd;
}
.dish-manage-page {
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(560px, 1.45fr);
  gap: 12px;
  align-items: start;
}
.dish-library-panel,
.dish-editor-panel {
  overflow: hidden;
}
.dish-library-head,
.dish-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.dish-library-head h3,
.dish-editor-head h3 {
  margin: 0;
}
.dish-library-head .category-create-form {
  width: min(420px, 70%);
}
.dish-editor-head .primary {
  width: auto;
  min-width: max-content;
  white-space: nowrap;
}
.dish-category-panel {
  display: grid;
  gap: 12px;
}
.dish-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 8px;
}
.dish-category-tab {
  min-width: 0;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 800;
  background: #f3f7f9;
  border: 2px solid rgba(91, 115, 133, .38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  padding: 8px 12px;
}
.dish-category-tab.active {
  background: #e7f6f2;
  color: var(--primary);
  border-color: rgba(58, 126, 114, .72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .78), 0 0 0 1px rgba(58, 126, 114, .1);
}
.dish-category-tab.dragging {
  opacity: .54;
  cursor: grabbing;
  transform: scale(.96);
}
.dish-category-tab.drop-target {
  border-color: rgba(234, 179, 8, .72);
  background: rgba(254, 240, 138, .52);
  color: #854d0e;
}
.dish-category-tab .category-image-control {
  width: 30px;
  height: 30px;
}
.dish-category-name {
  align-items: center;
  align-self: stretch;
  background: #eaf1f5;
  border: 1px solid rgba(91, 115, 133, .16);
  border-radius: 9px;
  cursor: text;
  display: inline-flex;
  min-width: 28px;
  outline: 0;
  padding: 5px 9px;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
  user-select: text;
}
.dish-category-tab.active .dish-category-name {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(58, 126, 114, .22);
}
.dish-category-name:focus {
  background: #ffffff;
  border-color: rgba(58, 126, 114, .4);
  box-shadow: 0 0 0 2px rgba(58,126,114,.24);
}
.dish-category-name.readonly {
  cursor: default;
  user-select: none;
}
.dish-category-count {
  align-items: center;
  align-self: stretch;
  background: rgba(91, 115, 133, .1);
  border-radius: 9px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  flex: 1 0 52px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  justify-content: center;
  min-height: 32px;
  min-width: 52px;
  padding: 0 14px;
  transition: background-color .18s ease, color .18s ease;
}
.dish-category-tab:hover .dish-category-count,
.dish-category-tab:focus-visible .dish-category-count {
  background: rgba(58, 126, 114, .16);
  color: var(--primary);
}
.dish-category-tab:active .dish-category-count {
  background: rgba(58, 126, 114, .24);
}
.product-category-name {
  border-radius: 6px;
  cursor: text;
  display: inline-block;
  min-width: 64px;
  outline: 0;
  padding: 3px 6px;
  user-select: text;
}
.product-category-name:focus {
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(58,126,114,.24), 0 1px 4px rgba(15,23,42,.08);
}
.product-category-name.locked {
  color: #1f6f66;
  cursor: default;
  font-weight: 900;
  user-select: none;
}
.dish-edit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 8px 12px 14px;
  max-height: min(58vh, 620px);
  overflow: auto;
}
.dish-edit-card {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 8px 74px 8px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.dish-edit-card:hover {
  transform: translateY(-1px);
  border-color: rgba(50, 125, 114, .36);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}
.dish-edit-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 158, 216, .14);
}
.dish-edit-thumb {
  width: 68px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f6;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
}
.dish-edit-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dish-edit-card-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.dish-edit-card strong {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dish-edit-card span {
  font-weight: 800;
  color: var(--primary);
}
.dish-edit-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.dish-card-active-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid rgba(50, 125, 114, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}
.dish-card-active-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
}
.dish-edit-card.inactive .dish-card-active-toggle {
  color: var(--muted);
  border-color: var(--line);
}
.dish-recipe-fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  display: grid;
  gap: 8px;
}
.dish-editor-form {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
}
.dish-editor-main {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.dish-basic-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}
.dish-basic-fields label:first-child {
  grid-column: 1 / -1;
}
.dish-image-tools {
  display: grid;
  gap: 8px;
  align-content: start;
}
.dish-image-picker {
  display: grid;
  gap: 8px;
  align-content: start;
}
.dish-image-picker .inline-upload-preview {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 10px;
}
.dish-image-editor-frame {
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(148, 163, 184, .15) 25%, transparent 25%, transparent 75%, rgba(148, 163, 184, .15) 75%),
    linear-gradient(45deg, rgba(148, 163, 184, .15) 25%, transparent 25%, transparent 75%, rgba(148, 163, 184, .15) 75%),
    #f8fafc;
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;
  border: 1px solid var(--line);
}
.dish-image-editor-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: default;
  touch-action: auto;
}
.dish-image-editor-canvas:active {
  cursor: default;
}
.dish-image-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.dish-image-actions > .dish-image-action {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 8px;
  font-size: 20px;
  line-height: 1;
}
.dish-ai-enhance {
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
}
.dish-recipe-fieldset legend {
  padding: 0 8px;
  font-weight: 900;
  color: var(--ink);
}
.dish-recipe-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.dish-recipe-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.dish-recipe-table th,
.dish-recipe-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.dish-recipe-table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  background: #f8fafc;
}
.dish-recipe-table tr:last-child td {
  border-bottom: 0;
}
.dish-recipe-table td:nth-child(2),
.dish-recipe-table td:nth-child(3) {
  white-space: nowrap;
}
.dish-recipe-qty {
  width: 120px;
  min-height: 36px;
}
@media (max-width: 1100px) {
  .dish-manage-page {
    grid-template-columns: 1fr;
  }
  .dish-edit-grid {
    max-height: none;
  }
}
@media (max-width: 760px) {
  .dish-editor-main,
  .dish-basic-fields {
    grid-template-columns: 1fr;
  }
}
.stock-product-image-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 136px minmax(0,1fr);
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #f8fafc;
}
.stock-product-image-card > strong { grid-column: 1 / -1; }
.stock-product-image-preview {
  width: 136px;
  aspect-ratio: 4 / 3;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #eef2f6;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
}
.stock-product-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stock-product-camera-frame {
  width: 100%;
  height: 100%;
  min-height: 100%;
}
.stock-product-camera-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stock-image-actions {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(0,1fr);
  gap: 8px;
  align-items: end;
}
.file-button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.file-button input { display: none; }
.crystal-check {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  font-weight: 900;
}
.crystal-check input {
  width: 18px;
  height: 18px;
}

.leaflet-map-panel {
  height: calc(100vh - 112px);
  min-height: 560px;
  background: #eef3f8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.leaflet-map {
  width: 100%;
  height: 100%;
  display: block;
}
.leaflet-map .unisale-map-popup .leaflet-popup-content {
  margin: 12px;
}
.leaflet-map .map-entity-popup {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--ink);
  line-height: 1.35;
}
.leaflet-map .map-entity-popup > strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}
.leaflet-map .map-entity-popup > span,
.leaflet-map .map-entity-popup > small,
.leaflet-map .map-entity-popup > address {
  color: var(--muted);
  font-style: normal;
}
.leaflet-map .map-shop-phone,
.leaflet-map .map-shop-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}
.leaflet-map .leaflet-popup-content .map-shop-qr {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-top: 7px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}
.leaflet-map .leaflet-popup-content .map-shop-qr-code {
  display: block;
  width: 164px;
  height: 164px;
  padding: 4px;
  background: #fff;
}
.leaflet-map .leaflet-popup-content .map-shop-qr-code > svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  background: #fff;
}
.leaflet-map .leaflet-popup-content .map-shop-qr > b {
  color: var(--primary);
  font-size: 13px;
}
.leaflet-map .leaflet-popup-content .map-shop-qr > small {
  color: var(--muted);
  font-size: 11px;
}
.map-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #eef3f8;
  padding: 18px;
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .48);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 80;
}
.modal-card, .receipt {
  width: min(520px, 100%);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 36px);
  overflow: auto;
}
.ui-dialog-modal {
  z-index: 160;
  background: rgba(15, 23, 42, .42);
}
.ui-dialog-card {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.ui-dialog-body {
  display: grid;
  gap: 6px;
  padding: 16px 18px 12px;
  color: #172033;
  font-weight: 750;
  line-height: 1.45;
}
.ui-dialog-body p {
  margin: 0;
  overflow-wrap: anywhere;
}
.ui-prompt-card input {
  width: calc(100% - 36px);
  margin: 0 18px 14px;
}
.ui-dialog-actions {
  justify-content: flex-end;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--line);
  background: #f8fbfd;
}
.edit-modal-backdrop {
  padding: 24px;
  align-items: start;
}
.edit-modal-card {
  width: min(1120px, calc(100vw - 48px));
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.edit-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.edit-modal-head h3 {
  margin: 0;
  font-size: 18px;
}
.edit-modal-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}.edit-modal-head-actions>button:not(.icon-button){width:auto;min-width:88px}.admin-site-active-toggle{display:inline-flex;align-items:center;gap:8px;font-weight:800;color:var(--ink);white-space:nowrap}.admin-site-active-toggle>input{width:20px;height:20px;margin:0;accent-color:var(--primary)}.edit-modal-body .admin-site-coordinate-form>.admin-inline-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-site-coordinate-note{margin:10px 2px 0;color:var(--muted);font-size:13px;font-weight:700}
.edit-modal-head .icon-button {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
}
.edit-modal-body {
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 14px 16px 16px;
  background: #f8fbfb;
}
.edit-modal-body .inline-edit-panel {
  margin: 0;
  border: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.json-detail-modal .edit-modal-card {
  width: min(1180px, calc(100vw - 48px));
}
.inventory-photo-modal .edit-modal-card {
  width: min(960px, calc(100vw - 48px));
}
.inventory-photo-modal-body {
  display: grid;
  place-items: center;
  min-height: 260px;
}
.inventory-photo-modal-body img {
  max-width: 100%;
  max-height: min(74vh, 760px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .18);
  background: #fff;
}
.json-detail-viewer {
  display: grid;
  gap: 12px;
}
.history-evidence-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.json-table-widget {
  display: grid;
  gap: 10px;
}
.json-table-wrap {
  max-height: min(68vh, 720px);
  overflow: auto;
  border: 1px solid #d8e4ec;
  border-radius: 12px;
  background: #fff;
}
.json-detail-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.json-detail-table th,
.json-detail-table td {
  padding: 9px 11px;
  border-bottom: 1px solid #e2ebf1;
  border-right: 1px solid #edf3f6;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  max-width: 320px;
}
.json-detail-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f6fafb;
  color: var(--muted);
  font-size: 12px;
}
.json-detail-table tr:last-child td {
  border-bottom: 0;
}
.json-table-code {
  display: block;
  max-width: 360px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}
.json-table-empty {
  border: 1px dashed #d8e4ec;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  background: #fff;
}
.json-string {
  color: var(--primary);
  overflow-wrap: anywhere;
}
.json-number {
  color: #6d28d9;
  font-weight: 700;
}
.json-boolean {
  color: #b45309;
  font-weight: 700;
}
.json-null,
.json-empty {
  color: var(--muted);
  font-style: italic;
}
.admin-delete-card {
  border-top: 4px solid var(--danger);
}
.admin-delete-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.admin-delete-card > strong {
  color: var(--ink);
}
.modal-card video { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.dish-ai-modal-card {
  width: min(720px, calc(100vw - 28px));
}
.dish-ai-head {
  display: grid;
  gap: 4px;
}
.dish-ai-head h3,
.dish-ai-head p {
  margin: 0;
}
.dish-ai-head p {
  color: var(--muted);
  font-weight: 800;
}
.dish-ai-camera-frame {
  min-height: min(48vh, 420px);
}
.dish-ai-camera-frame video {
  aspect-ratio: 16 / 9;
}
.edit-radio-group,
.edit-check-group {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.edit-radio-group legend,
.edit-check-group legend {
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: -2px;
}
.edit-radio-group label,
.edit-check-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}
.edit-radio-group input,
.edit-check-group input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
}
.pay-methods { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.pay-methods label { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; display: flex; gap: 6px; color: var(--ink); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.receipt { width: 360px; color: #111; }
.receipt h3 { text-align: center; }
.receipt p { margin: 0; line-height: 1.45; }
.receipt table { min-width: 0; font-size: 12px; }

#toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  display: grid;
  gap: 8px;
}
.toast-msg {
  background: #172033;
  color: white;
  padding: 10px 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 360px;
}

@media (max-width: 1000px) {
  .auth-screen, .split, .split.four, .pos-grid, .inventory-layout, .admin-management-grid, .overview-chart-grid, .stock-count-page { grid-template-columns: 1fr; }
  .pos-work.has-dish-menu { grid-template-columns: 1fr; }
  .pos-work.has-dish-menu .frontdesk-ad-picker { grid-column: auto; }
  .stock-count-page {
    min-height: auto;
  }
  .outbound-receipt-shell { grid-template-columns: 1fr; }
  .top-nav-shell > main.manager-inventory-main { grid-template-columns: minmax(150px, 28vw) minmax(0, 1fr); }
  .manager-inventory-subnav { padding: 12px 8px; }
  .inventory-dashboard-grid { grid-template-columns: 1fr; }
  .inventory-dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-status-row { grid-template-columns: minmax(0, 1fr) auto; }
  .inventory-status-row em { grid-column: 1 / -1; }
  .desktop-body.nav-sidebar-body .desktop-shell { grid-template-columns: minmax(0, 50vw) minmax(0, 50vw); }
  .admin-three-pane { grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); }
  .pos-side { position: static; order: -1; }
  .self-checkout-body .pos-side { order: initial; }
  .top-nav-bar {
    flex-wrap: wrap;
  }
  .top-nav-menu {
    order: 3;
    width: 100%;
  }
  body.role-admin .top-nav-bar {
    flex-wrap: nowrap;
  }
  body.role-admin .top-nav-menu {
    order: 0;
    width: auto;
  }
  .grid-form, .metrics, .self-form-grid, .ai-config-form, .admin-form-grid, .admin-inline-grid, .profile-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .enterprise-create-card { grid-column: auto; }
  .admin-media-row.three { grid-template-columns: repeat(2, minmax(0,260px)); }
}
@media (max-width: 760px) {
  .top-nav-shell > main.manager-inventory-main {
    grid-template-columns: 124px minmax(0, 1fr);
  }
  .manager-inventory-subnav {
    min-height: calc(100dvh - 112px);
  }
  .manager-inventory-subnav-title {
    display: none;
  }
  .manager-inventory-subnav button {
    min-height: 40px;
    padding: 8px;
    font-size: 13px;
  }
  .inventory-dashboard-hero {
    grid-template-columns: 1fr;
  }
  .inventory-dashboard-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inventory-dashboard-metrics {
    grid-template-columns: 1fr;
  }
  body.desktop-body.nav-sidebar-body {
    overflow: hidden;
  }
  .desktop-body.nav-sidebar-body .desktop-shell {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    grid-template-columns: 100vw 100vw;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .desktop-body.nav-sidebar-body .desktop-shell::-webkit-scrollbar {
    display: none;
  }
  .desktop-body.nav-sidebar-body .desktop-shell > aside,
  .desktop-body.nav-sidebar-body .desktop-shell > main {
    scroll-snap-align: start;
    width: 100vw;
    min-width: 100vw;
    height: 100dvh;
  }
  .desktop-body.nav-sidebar-body .desktop-shell > aside {
    position: relative;
    border-right: 0;
    box-shadow: inset -1px 0 0 rgba(255,255,255,.12);
  }
  .desktop-body.nav-sidebar-body .desktop-shell > main {
    background: rgba(243,246,248,.96);
  }
  .desktop-body.nav-sidebar-body .content {
    min-height: 100dvh;
    padding: 12px 12px 32px;
  }
  .admin-three-pane {
    display: flex;
    width: 100%;
    min-height: calc(100dvh - 44px);
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
  }
  .admin-three-pane::-webkit-scrollbar {
    display: none;
  }
  .admin-enterprise-list-pane,
  .admin-enterprise-detail-pane {
    flex: 0 0 100%;
    min-width: 100%;
    min-height: calc(100dvh - 44px);
    scroll-snap-align: start;
  }
  .admin-enterprise-list-pane {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .admin-enterprise-detail-pane {
    padding-left: 12px;
  }
  .admin-pane-back {
    display: inline-flex;
  }
  body.role-admin .admin-three-pane {
    display: grid;
    grid-template-columns: minmax(360px, 440px) minmax(720px, 1fr);
    width: auto;
    min-height: auto;
    overflow: visible;
    scroll-snap-type: none;
    scroll-behavior: auto;
    gap: 14px;
  }
  body.role-admin .admin-enterprise-list-pane,
  body.role-admin .admin-enterprise-detail-pane {
    flex: initial;
    width: auto;
    min-width: 0;
    min-height: auto;
    scroll-snap-align: none;
  }
  body.role-admin .admin-enterprise-list-pane {
    position: sticky;
    max-height: calc(100dvh - 120px);
    overflow: auto;
  }
  body.role-admin .admin-enterprise-detail-pane {
    padding-left: 0;
  }
  body.role-admin .admin-pane-back {
    display: none;
  }
}
.curator-organization-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.curator-create-panel .property-grid-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.curator-owned-list {
  min-width: 0;
  grid-column: 1 / -1;
}

.curator-stock-form {
  display: grid;
  grid-template-columns: minmax(540px, 1fr) minmax(440px, .82fr) 210px;
  gap: 12px;
  align-items: start;
  padding: 12px;
}

.curator-stock-form .property-grid-form {
  grid-template-columns: 1fr;
  margin: 0;
}

.curator-stock-form .property-grid-form > label.wide {
  grid-column: 1 / -1;
}

.curator-stock-form .product-unit-radio {
  min-height: 44px;
  border-left: 1px solid #cfdce8;
  background: #fffdf4;
}

.curator-product-preview {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.curator-product-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid #d7e1eb;
  border-radius: 7px;
  background: #fff;
}

.curator-product-preview p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.curator-recent-stock-panel {
  margin-top: 12px;
}

@media (max-width: 1280px) {
  .curator-stock-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .curator-product-preview {
    grid-column: 1 / -1;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: start;
  }
}
@media (max-width: 340px) {
  .auth-panel, .auth-brand { padding: 20px; }
  .auth-logo-card { width: min(220px, 100%); }
  .row.two, .crop-row, .grid-form, .metrics, .stock-form, .self-form-grid, .terminal-print-agent-form, .ai-config-form, .admin-form-grid, .admin-inline-grid, .admin-form-grid.two, .admin-media-row.two, .admin-media-row.three, .profile-grid, .purchase-supply-row, .blacklist-card form, .blacklist-grid, .category-create-form { grid-template-columns: 1fr; }
  .stock-product-image-card, .stock-image-actions { grid-template-columns: 1fr; }
  .admin-form-grid .wide, .grid-form .wide, .profile-grid .wide, .payment-grid .wide, .pos-terminal-config .wide, .grid-form .phone-field, .admin-form-grid .phone-field, .admin-inline-grid .phone-field, .profile-grid .phone-field, .self-form-grid .phone-field, .ai-config-form .phone-field { grid-column: auto; }
  .demo-grid, .pay-methods { grid-template-columns: 1fr; }
  .dish-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .manager-config-tools-grid { grid-template-columns: 1fr; }
  .quick-pay-methods, .pos-terminal-config, .terminal-print-agent-actions { grid-template-columns: 1fr; }
  .overview-chart-canvas {
    height: 260px;
  }
}
@media print {
  body.printing #app, body.printing #toast { display: none; }
  body.printing .modal { position: static; display: block; background: white; padding: 0; }
  body.printing .no-print { display: none !important; }
  body.printing .receipt { box-shadow: none; width: 80mm; border-radius: 0; }
  body.printing .modal-actions { display: none; }
}

@media screen {
  body.desktop-body {
    min-width: 1280px;
    overflow-x: auto;
  }

  body.desktop-body.role-admin {
    min-width: 0;
    overflow-x: hidden;
  }

  body.desktop-body.role-admin .top-nav-shell {
    min-width: 0;
  }

  body.desktop-body.role-admin .top-nav-shell > main,
  body.desktop-body.role-admin .content {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  body.desktop-body .top-nav-shell {
    min-width: inherit;
  }

  body.desktop-body .top-nav-bar,
  body.desktop-body .top-nav-left,
  body.desktop-body .top-nav-menu {
    flex-wrap: nowrap;
  }

  body.desktop-body .top-nav-menu {
    order: 0;
    width: auto;
  }

  body.desktop-body.role-admin .top-nav-bar,
  body.desktop-body.role-admin .top-nav-menu {
    flex-wrap: wrap;
    overflow: visible;
  }

  body.desktop-body .top-nav-shell > main.manager-inventory-main {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  body.desktop-body .manager-inventory-subnav-title {
    display: block;
  }

  body.desktop-body .manager-inventory-subnav button {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 15px;
  }

  body.desktop-body .split,
  body.desktop-body .row.two,
  body.desktop-body .overview-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.desktop-body .split.four {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
  }

  body.desktop-body .metrics {
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  }

  body.desktop-body .pos-grid {
    grid-template-columns: minmax(0, 1fr) 350px;
  }

  body.desktop-body .pos-side {
    order: initial;
  }

  body.desktop-body .inventory-layout {
    grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr);
  }

  body.desktop-body .stock-count-page {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  body.desktop-body .grid-form,
  body.desktop-body .admin-form-grid,
  body.desktop-body .admin-inline-grid,
  body.desktop-body .profile-grid,
  body.desktop-body .ai-config-form,
  body.desktop-body .terminal-print-agent-form,
  body.desktop-body .self-form-grid,
  body.desktop-body .stock-form,
  body.desktop-body .purchase-supply-row,
  body.desktop-body .blacklist-grid,
  body.desktop-body .category-create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.desktop-body .admin-form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.desktop-body .crop-row {
    grid-template-columns: 170px minmax(230px, 1fr);
  }

  body.desktop-body .admin-media-row.two {
    grid-template-columns: 260px 180px;
  }

  body.desktop-body .admin-media-row.three {
    grid-template-columns: 260px 180px 260px;
  }

  body.desktop-body .admin-form-grid .wide,
  body.desktop-body .grid-form .wide,
  body.desktop-body .profile-grid .wide,
  body.desktop-body .payment-grid .wide,
  body.desktop-body .pos-terminal-config .wide,
  body.desktop-body .grid-form .phone-field,
  body.desktop-body .admin-form-grid .phone-field,
  body.desktop-body .admin-inline-grid .phone-field,
  body.desktop-body .profile-grid .phone-field,
  body.desktop-body .self-form-grid .phone-field,
  body.desktop-body .ai-config-form .phone-field {
    grid-column: span 2;
  }

  body.desktop-body .admin-three-pane {
    display: grid;
    grid-template-columns: minmax(360px, 440px) minmax(720px, 1fr);
    gap: 14px;
    overflow: visible;
    scroll-snap-type: none;
  }

  body.desktop-body .admin-enterprise-list-pane,
  body.desktop-body .admin-enterprise-detail-pane {
    flex: initial;
    width: auto;
    min-width: 0;
    min-height: auto;
    scroll-snap-align: none;
  }

  body.desktop-body .admin-pane-back {
    display: none;
  }
}

/* Excel-like property grids for edit/config surfaces. Keep checkout/payment
   collection layouts out of this scope; those have their own dense workflows. */
.admin-form-body .admin-form-grid,
.admin-detail-form > .admin-inline-grid,
.admin-inline-form > .admin-inline-grid,
.profile-edit-form > .profile-grid,
.ai-config-panel > .ai-config-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: 0;
  align-items: stretch;
  padding: 0;
  border: 1px solid #d9e4ee;
  border-radius: 10px;
  overflow: hidden;
  background: #d9e4ee;
}

.admin-form-body .admin-form-grid > label,
.admin-detail-form > .admin-inline-grid > label,
.admin-inline-form > .admin-inline-grid > label,
.profile-edit-form > .profile-grid > label,
.ai-config-panel > .ai-config-form > label {
  display: grid;
  grid-template-columns: minmax(108px, 138px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 44px;
  padding: 0;
  border-right: 1px solid #d9e4ee;
  border-bottom: 1px solid #d9e4ee;
  background: #f4f7fb;
  color: #506079;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.admin-form-body .admin-form-grid > label,
.admin-detail-form > .admin-inline-grid > label,
.admin-inline-form > .admin-inline-grid > label,
.profile-edit-form > .profile-grid > label,
.ai-config-panel > .ai-config-form > label {
  align-items: center;
  padding-left: 10px;
}

.admin-form-body .admin-form-grid > label > input,
.admin-form-body .admin-form-grid > label > select,
.admin-form-body .admin-form-grid > label > textarea,
.admin-detail-form > .admin-inline-grid > label > input,
.admin-detail-form > .admin-inline-grid > label > select,
.admin-detail-form > .admin-inline-grid > label > textarea,
.admin-inline-form > .admin-inline-grid > label > input,
.admin-inline-form > .admin-inline-grid > label > select,
.admin-inline-form > .admin-inline-grid > label > textarea,
.profile-edit-form > .profile-grid > label > input,
.profile-edit-form > .profile-grid > label > select,
.profile-edit-form > .profile-grid > label > textarea,
.ai-config-panel > .ai-config-form > label > input,
.ai-config-panel > .ai-config-form > label > select,
.ai-config-panel > .ai-config-form > label > textarea {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-left: 1px solid #d9e4ee;
  border-radius: 0;
  box-shadow: none;
  background: #fffdf7;
  color: #111827;
  padding: 0 12px;
  font-size: 14px;
}

.admin-form-body .admin-form-grid > label > textarea,
.admin-detail-form > .admin-inline-grid > label > textarea,
.admin-inline-form > .admin-inline-grid > label > textarea,
.profile-edit-form > .profile-grid > label > textarea,
.ai-config-panel > .ai-config-form > label > textarea {
  min-height: 70px;
  padding-top: 10px;
  resize: vertical;
}

.admin-form-body .admin-form-grid > label > input:focus,
.admin-form-body .admin-form-grid > label > select:focus,
.admin-form-body .admin-form-grid > label > textarea:focus,
.admin-detail-form > .admin-inline-grid > label > input:focus,
.admin-detail-form > .admin-inline-grid > label > select:focus,
.admin-detail-form > .admin-inline-grid > label > textarea:focus,
.admin-inline-form > .admin-inline-grid > label > input:focus,
.admin-inline-form > .admin-inline-grid > label > select:focus,
.admin-inline-form > .admin-inline-grid > label > textarea:focus,
.profile-edit-form > .profile-grid > label > input:focus,
.profile-edit-form > .profile-grid > label > select:focus,
.profile-edit-form > .profile-grid > label > textarea:focus,
.ai-config-panel > .ai-config-form > label > input:focus,
.ai-config-panel > .ai-config-form > label > select:focus,
.ai-config-panel > .ai-config-form > label > textarea:focus {
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(47, 158, 216, .24);
}

.admin-form-body .admin-form-grid > label.checkbox-inline,
.admin-detail-form > .admin-inline-grid > label.checkbox-inline,
.admin-inline-form > .admin-inline-grid > label.checkbox-inline,
.profile-edit-form > .profile-grid > label.checkbox-inline,
.ai-config-panel > .ai-config-form > label.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  background: #fffdf7;
  color: #111827;
}

.admin-form-body .admin-form-grid > label.checkbox-inline > input,
.admin-detail-form > .admin-inline-grid > label.checkbox-inline > input,
.admin-inline-form > .admin-inline-grid > label.checkbox-inline > input,
.profile-edit-form > .profile-grid > label.checkbox-inline > input,
.ai-config-panel > .ai-config-form > label.checkbox-inline > input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  border: 1px solid #cbd5e1;
  box-shadow: none;
  accent-color: var(--primary);
}

.admin-form-body .admin-form-grid > p.wide,
.admin-detail-form > .admin-inline-grid > p.wide,
.admin-inline-form > .admin-inline-grid > p.wide,
.profile-edit-form > .profile-grid > p.wide,
.ai-config-panel > .ai-config-form > p.wide {
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border-right: 1px solid #d9e4ee;
  border-bottom: 1px solid #d9e4ee;
  background: #f8fafc;
}

.admin-form-body .admin-form-grid > label.phone-field,
.admin-detail-form > .admin-inline-grid > label.phone-field,
.admin-inline-form > .admin-inline-grid > label.phone-field,
.profile-edit-form > .profile-grid > label.phone-field,
.ai-config-panel > .ai-config-form > label.phone-field {
  grid-column: span 1;
}

.admin-form-body .admin-form-grid > label.phone-field .phone-input,
.admin-detail-form > .admin-inline-grid > label.phone-field .phone-input,
.admin-inline-form > .admin-inline-grid > label.phone-field .phone-input,
.profile-edit-form > .profile-grid > label.phone-field .phone-input,
.ai-config-panel > .ai-config-form > label.phone-field .phone-input {
  border-left: 1px solid #d9e4ee;
  background: #fffdf7;
  gap: 0;
}

.admin-form-body .admin-form-grid > label.region-field .region-input,
.admin-detail-form > .admin-inline-grid > label.region-field .region-input,
.admin-inline-form > .admin-inline-grid > label.region-field .region-input,
.profile-edit-form > .profile-grid > label.region-field .region-input,
.ai-config-panel > .ai-config-form > label.region-field .region-input {
  border-left: 1px solid #d9e4ee;
  background: #fffdf7;
  gap: 0;
}

.admin-form-body .admin-form-grid > label.phone-field .phone-input select,
.admin-form-body .admin-form-grid > label.phone-field .phone-input input,
.admin-detail-form > .admin-inline-grid > label.phone-field .phone-input select,
.admin-detail-form > .admin-inline-grid > label.phone-field .phone-input input,
.admin-inline-form > .admin-inline-grid > label.phone-field .phone-input select,
.admin-inline-form > .admin-inline-grid > label.phone-field .phone-input input,
.profile-edit-form > .profile-grid > label.phone-field .phone-input select,
.profile-edit-form > .profile-grid > label.phone-field .phone-input input,
.ai-config-panel > .ai-config-form > label.phone-field .phone-input select,
.ai-config-panel > .ai-config-form > label.phone-field .phone-input input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.admin-form-body .admin-form-grid > label.region-field .region-input select,
.admin-form-body .admin-form-grid > label.region-field .region-input input,
.admin-detail-form > .admin-inline-grid > label.region-field .region-input select,
.admin-detail-form > .admin-inline-grid > label.region-field .region-input input,
.admin-inline-form > .admin-inline-grid > label.region-field .region-input select,
.admin-inline-form > .admin-inline-grid > label.region-field .region-input input,
.profile-edit-form > .profile-grid > label.region-field .region-input select,
.profile-edit-form > .profile-grid > label.region-field .region-input input,
.ai-config-panel > .ai-config-form > label.region-field .region-input select,
.ai-config-panel > .ai-config-form > label.region-field .region-input input {
  min-height: 44px;
  border: 0;
  border-radius: 0;
  border-right: 1px solid #d9e4ee;
  box-shadow: none;
  background: transparent;
  padding: 0 10px;
}

.admin-form-body .admin-form-grid > label.region-field .region-input > :last-child,
.admin-detail-form > .admin-inline-grid > label.region-field .region-input > :last-child,
.admin-inline-form > .admin-inline-grid > label.region-field .region-input > :last-child,
.profile-edit-form > .profile-grid > label.region-field .region-input > :last-child,
.ai-config-panel > .ai-config-form > label.region-field .region-input > :last-child {
  border-right: 0;
}

.admin-form-body .admin-form-grid > label.phone-field .phone-input input,
.admin-detail-form > .admin-inline-grid > label.phone-field .phone-input input,
.admin-inline-form > .admin-inline-grid > label.phone-field .phone-input input,
.profile-edit-form > .profile-grid > label.phone-field .phone-input input,
.ai-config-panel > .ai-config-form > label.phone-field .phone-input input {
  border-left: 1px solid #d9e4ee;
}

.admin-form-body .admin-form-grid > .wide,
.admin-detail-form > .admin-inline-grid > .wide,
.admin-inline-form > .admin-inline-grid > .wide,
.profile-edit-form > .profile-grid > .wide,
.ai-config-panel > .ai-config-form > .wide {
  grid-column: span 2;
}

.admin-form-body .admin-form-grid > .edit-check-group,
.admin-form-body .admin-form-grid > .edit-radio-group,
.admin-detail-form > .admin-inline-grid > .edit-check-group,
.admin-detail-form > .admin-inline-grid > .edit-radio-group,
.admin-inline-form > .admin-inline-grid > .edit-check-group,
.admin-inline-form > .admin-inline-grid > .edit-radio-group,
.profile-edit-form > .profile-grid > .edit-check-group,
.profile-edit-form > .profile-grid > .edit-radio-group,
.ai-config-panel > .ai-config-form > .edit-check-group,
.ai-config-panel > .ai-config-form > .edit-radio-group,
.admin-detail-form > .admin-inline-grid > .inline-compact-pair,
.admin-inline-form > .admin-inline-grid > .inline-compact-pair {
  min-height: 44px;
  border: 0;
  border-right: 1px solid #d9e4ee;
  border-bottom: 1px solid #d9e4ee;
  border-radius: 0;
  background: #f4f7fb;
  padding: 0 10px;
}

.admin-detail-form > .admin-inline-grid > .inline-grid-actions,
.admin-inline-form > .admin-inline-grid > .inline-grid-actions,
.admin-form-body .admin-form-grid > .inline-grid-actions,
.profile-edit-form > .profile-grid > .inline-grid-actions,
.ai-config-panel > .ai-config-form > .inline-grid-actions {
  min-height: 44px;
  align-self: stretch;
  justify-self: stretch;
  display: flex;
  align-items: stretch;
  border-right: 1px solid #d9e4ee;
  border-bottom: 1px solid #d9e4ee;
  background: #eef8f5;
  padding: 4px;
}

.admin-detail-form > .admin-inline-grid > .inline-grid-actions button,
.admin-inline-form > .admin-inline-grid > .inline-grid-actions button,
.admin-form-body .admin-form-grid > .inline-grid-actions button,
.profile-edit-form > .profile-grid > .inline-grid-actions button,
.ai-config-panel > .ai-config-form > .inline-grid-actions button {
  width: auto;
  min-width: max-content;
  height: auto;
  padding: 0 18px;
  border-radius: 7px;
}

.property-grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: 0;
  align-items: stretch;
  padding: 0;
  margin: 12px;
  border: 1px solid #d9e4ee;
  border-radius: 10px;
  overflow: hidden;
  background: #d9e4ee;
}

.property-grid-form > label {
  display: grid;
  grid-template-columns: minmax(108px, 138px) minmax(0, 1fr);
  gap: 0;
  align-items: center;
  min-height: 44px;
  padding: 0 0 0 10px;
  border-right: 1px solid #d9e4ee;
  border-bottom: 1px solid #d9e4ee;
  background: #f4f7fb;
  color: #506079;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.property-grid-form > label > input,
.property-grid-form > label > select,
.property-grid-form > label > textarea {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-left: 1px solid #d9e4ee;
  border-radius: 0;
  box-shadow: none;
  background: #fffdf7;
  color: #111827;
  padding: 0 12px;
  font-size: 14px;
}

.property-grid-form > label > input:focus,
.property-grid-form > label > select:focus,
.property-grid-form > label > textarea:focus {
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(47, 158, 216, .24);
}

.property-grid-form > label.phone-field,
.property-grid-form > label.region-field {
  grid-column: span 1;
}

.property-grid-form > label.phone-field .phone-input,
.property-grid-form > label.region-field .region-input {
  border-left: 1px solid #d9e4ee;
  background: #fffdf7;
  gap: 0;
}

.property-grid-form > label.phone-field .phone-input select,
.property-grid-form > label.phone-field .phone-input input,
.property-grid-form > label.region-field .region-input select,
.property-grid-form > label.region-field .region-input input {
  min-height: 44px;
  border: 0;
  border-radius: 0;
  border-right: 1px solid #d9e4ee;
  box-shadow: none;
  background: transparent;
  padding: 0 10px;
}

.property-grid-form > label.phone-field .phone-input input {
  border-left: 1px solid #d9e4ee;
}

.property-grid-form > label.phone-field .phone-input > :last-child,
.property-grid-form > label.region-field .region-input > :last-child {
  border-right: 0;
}

.property-grid-form > .wide {
  grid-column: span 1;
}

.property-grid-form > button {
  min-height: 44px;
  height: auto;
  align-self: stretch;
  justify-self: stretch;
  border-radius: 0;
  border-right: 1px solid #d9e4ee;
  border-bottom: 1px solid #d9e4ee;
  margin: 0;
}

body.desktop-body .property-grid-form {
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
}

body.desktop-body .property-grid-form > .wide,
body.desktop-body .property-grid-form > label.phone-field,
body.desktop-body .property-grid-form > label.region-field {
  grid-column: span 1;
}

.admin-form-body:has(> .admin-form-grid + .admin-media-row),
.admin-groupbox:has(> .admin-form-grid + .admin-media-row) {
  grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
  align-items: start;
  column-gap: 14px;
}

.admin-form-body:has(> .admin-form-grid + .admin-media-row) > .admin-form-grid,
.admin-groupbox:has(> .admin-form-grid + .admin-media-row) > .admin-form-grid {
  grid-column: 1;
  grid-template-columns: 1fr;
  align-self: start;
}

.admin-form-body:has(> .admin-form-grid + .admin-media-row) > .admin-form-grid .wide,
.admin-groupbox:has(> .admin-form-grid + .admin-media-row) > .admin-form-grid .wide {
  grid-column: auto;
}

.admin-form-body:has(> .admin-form-grid + .admin-media-row) > .admin-media-row {
  grid-column: 2;
  grid-row: 1;
}

.admin-groupbox:has(> .admin-form-grid + .admin-media-row) > legend {
  grid-column: 1 / -1;
}

.admin-groupbox:has(> .admin-form-grid + .admin-media-row) > .admin-media-row {
  grid-column: 2;
  grid-row: 1;
}

.admin-form-body:has(> .admin-form-grid + .admin-media-row) > .admin-media-row,
.admin-groupbox:has(> .admin-form-grid + .admin-media-row) > .admin-media-row {
  justify-self: end;
  align-self: start;
}

/* Design audit polish layer */
button,
.dish-tab,
.enterprise-select-row,
.top-nav-menu button {
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

button:hover:not(:disabled),
.dish-tab:hover:not(:disabled),
.enterprise-select-row:hover {
  transform: translateY(-1px);
}

button:active:not(:disabled),
.dish-tab:active:not(:disabled) {
  transform: translateY(0);
}

.empty {
  min-height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(203, 213, 225, .72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(247, 251, 250, .92)),
    radial-gradient(circle at 18% 10%, rgba(47, 158, 216, .09), transparent 34%);
  color: #66758b;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .80);
}

.empty.compact {
  min-height: 44px;
  padding: 10px 12px;
}

body.desktop-body.role-admin .top-nav-bar {
  flex-wrap: nowrap;
  align-items: center;
  min-height: 64px;
  padding: 8px 14px;
  gap: 10px;
}

body.desktop-body.role-admin .top-nav-brand {
  flex: 0 0 auto;
  max-width: 220px;
}

body.desktop-body.role-admin .top-nav-menu {
  flex-wrap: nowrap;
  overflow: visible;
  gap: 6px;
  padding: 4px 2px;
}

body.desktop-body.role-admin .top-nav-tools {
  flex: 0 0 auto;
}

body.desktop-body.role-admin .top-nav-tools .side-language-select {
  width: 166px;
}

.top-nav-group-title {
  min-height: 38px;
  padding: 6px 28px 6px 12px;
  border-radius: 14px;
  box-shadow: none;
}

.top-nav-subitems {
  display: grid;
  gap: 5px;
  min-width: 216px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.top-nav-group:hover .top-nav-subitems,
.top-nav-group:focus-within .top-nav-subitems {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.top-nav-subitems button {
  justify-content: flex-start;
  text-align: left;
  background: #fff;
}

.top-nav-subitems button.active {
  background: #e9f6f2;
}

.admin-config-grid > .panel,
.admin-config-grid > .ai-config-panel,
.admin-form-body,
.admin-groupbox,
.pos-section,
.cart-panel,
.payment-card {
  box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
}

.admin-config-grid > .panel,
.admin-config-grid > .ai-config-panel {
  border-radius: 12px;
}

.admin-form-body .admin-form-grid,
.admin-detail-form > .admin-inline-grid,
.admin-inline-form > .admin-inline-grid,
.profile-edit-form > .profile-grid,
.ai-config-panel > .ai-config-form,
.property-grid-form {
  border-color: #cfdce8;
  background: #cfdce8;
}

.admin-form-body .admin-form-grid > label,
.admin-detail-form > .admin-inline-grid > label,
.admin-inline-form > .admin-inline-grid > label,
.profile-edit-form > .profile-grid > label,
.ai-config-panel > .ai-config-form > label,
.property-grid-form > label {
  grid-template-columns: minmax(96px, 124px) minmax(0, 1fr);
  color: #475569;
  background: #eef4f8;
}

.admin-form-body .admin-form-grid > label > input,
.admin-form-body .admin-form-grid > label > select,
.admin-form-body .admin-form-grid > label > textarea,
.admin-detail-form > .admin-inline-grid > label > input,
.admin-detail-form > .admin-inline-grid > label > select,
.admin-detail-form > .admin-inline-grid > label > textarea,
.admin-inline-form > .admin-inline-grid > label > input,
.admin-inline-form > .admin-inline-grid > label > select,
.admin-inline-form > .admin-inline-grid > label > textarea,
.profile-edit-form > .profile-grid > label > input,
.profile-edit-form > .profile-grid > label > select,
.profile-edit-form > .profile-grid > label > textarea,
.ai-config-panel > .ai-config-form > label > input,
.ai-config-panel > .ai-config-form > label > select,
.ai-config-panel > .ai-config-form > label > textarea,
.property-grid-form > label > input,
.property-grid-form > label > select,
.property-grid-form > label > textarea {
  background: #fffdf4;
  color: #0f172a;
}

.admin-form-body .admin-form-grid > label.region-field,
.admin-detail-form > .admin-inline-grid > label.region-field,
.admin-inline-form > .admin-inline-grid > label.region-field,
.profile-edit-form > .profile-grid > label.region-field,
.ai-config-panel > .ai-config-form > label.region-field,
.property-grid-form > label.region-field,
body.desktop-body .admin-form-grid > label.region-field,
body.desktop-body .admin-inline-grid > label.region-field,
body.desktop-body .property-grid-form > label.region-field {
  grid-column: 1 / -1;
}

.admin-form-body .admin-form-grid > label.region-field .region-input.has-address,
.admin-detail-form > .admin-inline-grid > label.region-field .region-input.has-address,
.admin-inline-form > .admin-inline-grid > label.region-field .region-input.has-address,
.profile-edit-form > .profile-grid > label.region-field .region-input.has-address,
.ai-config-panel > .ai-config-form > label.region-field .region-input.has-address,
.property-grid-form > label.region-field .region-input.has-address {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.admin-form-body .admin-form-grid > label.region-field .region-input.has-address .region-address,
.admin-detail-form > .admin-inline-grid > label.region-field .region-input.has-address .region-address,
.admin-inline-form > .admin-inline-grid > label.region-field .region-input.has-address .region-address,
.profile-edit-form > .profile-grid > label.region-field .region-input.has-address .region-address,
.ai-config-panel > .ai-config-form > label.region-field .region-input.has-address .region-address,
.property-grid-form > label.region-field .region-input.has-address .region-address {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(203, 213, 225, .86);
  border-radius: 0;
}

.pos-grid {
  grid-template-columns: minmax(760px, 1fr) minmax(350px, 390px);
}

body.desktop-body .pos-grid {
  grid-template-columns: minmax(760px, 1fr) minmax(350px, 390px);
}

.pos-work {
  border: 1px solid rgba(203, 213, 225, .72);
  border-radius: 14px;
  background: rgba(255, 255, 255, .74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .84);
}

.pos-work.has-dish-menu {
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, .82fr);
}

.pos-section {
  border-radius: 12px;
}

.pos-section-head {
  min-height: 34px;
  padding-bottom: 6px;
}

.pos-section-head strong {
  font-size: 15px;
}

.scan-product-preview {
  min-height: 104px;
  border-color: rgba(203, 213, 225, .82);
  background:
    linear-gradient(135deg, #ffffff, #f7fafc),
    radial-gradient(circle at 12% 15%, rgba(234, 179, 8, .12), transparent 32%);
}

.scan-product-preview:not(.active) {
  justify-content: center;
}

.scan-product-image {
  width: 168px;
  border-radius: 8px;
}

.cart-panel .panel-head,
.payment-card .panel-head {
  background: linear-gradient(180deg, rgba(248, 250, 252, .96), rgba(239, 246, 244, .88));
}

.self-checkout-shell,
.self-checkout-shell header,
.self-checkout-top-hotspot {
  width: min(920px, 100%);
}

.self-checkout-content {
  padding: 18px 20px 40px;
}

.self-checkout-body .pos-grid,
body.desktop-body .self-checkout-body .pos-grid {
  grid-template-columns: 1fr;
}

.self-checkout-body .dish-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.self-checkout-body .product-card {
  min-height: 220px;
  border-radius: 12px;
}

.self-checkout-body .product-card strong {
  font-size: 20px;
}

.self-checkout-body .scan-line {
  grid-template-columns: minmax(18ch, 1fr) minmax(92px, 120px) max-content;
}

@media (max-width: 1280px) {
  body.desktop-body.role-admin .top-nav-brand {
    max-width: 178px;
  }

  body.desktop-body.role-admin .top-nav-tools .side-language-select {
    width: 148px;
  }

  body.desktop-body.role-admin .top-nav-menu button,
  body.desktop-body.role-admin .top-nav-group-title {
    padding-left: 10px;
    padding-right: 24px;
    font-size: 13px;
  }
}

/* Table action columns must behave like toolbars, not wrapping text cells. */
.table-wrap table:has(td:last-child button) th:last-child,
.table-wrap table:has(td:last-child button) td:last-child {
  width: 124px;
  min-width: 124px;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.table-wrap td:last-child button {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  min-width: max-content;
  line-height: 1.15;
}

.supplier-inline-edit-wrap table:has(td:last-child button) th:last-child,
.supplier-inline-edit-wrap table:has(td:last-child button) td:last-child {
  width: 238px;
  min-width: 238px;
  text-align: left;
}

.supplier-inline-edit-wrap td:last-child button {
  min-width: 52px;
  white-space: nowrap;
}

/* Supplier list follows its intrinsic column width instead of stretching across the panel. */
.supplier-inline-edit-wrap > .supplier-inline-edit-table {
  width: fit-content;
  max-width: none;
}
.supplier-inline-edit-table th:nth-child(-n+6),
.supplier-inline-edit-table td:nth-child(-n+6) {
  width: auto;
}
.supplier-inline-edit-table td:nth-child(-n+5) input,
.supplier-inline-edit-table td:nth-child(7) select {
  width: 100%;
  min-width: 0;
  max-width: none;
}
.supplier-inline-edit-table th {
  position: relative;
}
.supplier-column-resize-handle {
  position: absolute;
  z-index: 3;
  top: 0;
  right: -4px;
  width: 9px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
}
.supplier-column-resize-handle::after {
  content: "";
  position: absolute;
  top: 20%;
  bottom: 20%;
  left: 4px;
  width: 1px;
  background: var(--line);
}
.supplier-column-resize-handle:hover::after,
.supplier-column-resize-handle:active::after {
  width: 2px;
  background: var(--primary);
}
body.resizing-table-column {
  cursor: col-resize;
  user-select: none;
}

body.role-admin .admin-list-card table:has(td:last-child button) th:last-child,
body.role-admin .admin-list-card table:has(td:last-child button) td:last-child,
body.role-admin .admin-enterprise-detail-pane table:has(td:last-child button) th:last-child,
body.role-admin .admin-enterprise-detail-pane table:has(td:last-child button) td:last-child {
  width: 132px;
  min-width: 132px;
  text-align: right;
}

body.role-admin .admin-list-card table:has(td:last-child button) tbody tr,
body.role-admin .admin-enterprise-detail-pane table:has(td:last-child button) tbody tr {
  min-height: 56px;
}

.taskflow-attachments-panel {
  margin-top: 10px;
}

.taskflow-attachments-panel .panel-head.compact-head {
  min-height: 34px;
}

.taskflow-attachments-panel .panel-head h3 {
  font-size: 14px;
  font-weight: 800;
}

.taskflow-attachment-list {
  list-style: none;
  margin: 0;
  padding: 8px 12px;
  display: grid;
  gap: 6px;
}

.taskflow-attachment-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid #d8e0ec;
  border-radius: 6px;
  background: #fbfcfe;
}

.taskflow-attachment-list a {
  color: #245f56;
  font-weight: 800;
  text-decoration: none;
}

.taskflow-attachment-list span {
  color: #6d7787;
  font-size: 12px;
}

.taskflow-attachment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px 10px;
}

.taskflow-attachment-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: max-content;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.taskflow-attachment-upload input {
  display: none;
}

.captured-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 10px;
}

.captured-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 6px 4px 8px;
  border: 1px solid #d8e0ec;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
}

.captured-attachment-chip a {
  color: #245f56;
  text-decoration: none;
  max-width: min(320px, 52vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.captured-attachment-chip button {
  min-height: 24px;
  padding: 2px 7px;
  font-size: 11px;
}

.taskflow-attachments-panel.embedded {
  margin: 0;
  box-shadow: none;
}

.wholesale-payment-summary-head {
  position: relative;
  justify-content: center;
  min-height: 54px;
  padding-left: 128px;
  padding-right: 128px;
}

.wholesale-payment-summary-head .taskflow-return-button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.taskflow-money-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-bottom: 1px solid #d8e0ec;
}

.taskflow-money-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #d8e0ec;
  border-radius: 6px;
  background: #fffef6;
  color: #4b566a;
  font-size: 12px;
}

.taskflow-money-summary b {
  color: #172033;
  font-size: 13px;
}

.taskflow-money-summary.in-title {
  justify-content: center;
  padding: 0;
  border-bottom: 0;
}

.wholesale-payment-title-attachments {
  background: #f7fbff;
  max-width: 420px;
}

.wholesale-payment-title-attachments em {
  color: #5d6878;
  font-style: normal;
  font-weight: 800;
}

.wholesale-payment-title-attachments a {
  color: #245f56;
  font-weight: 800;
  text-decoration: none;
  max-width: 136px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wholesale-payment-title-attachments a:hover {
  text-decoration: underline;
}

.wholesale-payment-tabs {
  border-top: 1px solid #d8e0ec;
  background: #fff;
}

.wholesale-payment-tab-list {
  display: flex;
  align-items: flex-end;
  gap: 0;
  padding: 8px 12px 0;
  border-bottom: 1px solid #2f7d6f;
  background: #edf2f7;
}

.wholesale-payment-tab {
  min-height: 38px;
  padding: 0 22px;
  border: 1px solid #c8d2df;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #e6edf5;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: -1px;
}

.wholesale-payment-tab + .wholesale-payment-tab {
  margin-left: 6px;
}

.wholesale-payment-tab:hover {
  background: #f6faf9;
}

.wholesale-payment-tab.active {
  border-color: #2f7d6f;
  border-bottom: 1px solid #fff;
  background: #fff;
  color: #245f56;
}

.wholesale-payment-tab-panel {
  display: none;
  padding: 10px 12px 12px;
  border: 1px solid #2f7d6f;
  border-top: 0;
  background: #fff;
}

.wholesale-payment-tab-panel.active {
  display: grid;
  gap: 10px;
}

.wholesale-payment-tab-panel .taskflow-detail-action-row {
  padding: 0;
}

.wholesale-payment-tab-panel .taskflow-attachments-panel {
  border-radius: 6px;
}

.wholesale-payment-closed-summary {
  display: grid;
  gap: 10px;
  padding: 10px 12px 12px;
  border-top: 1px solid #d8e0ec;
}

.wholesale-payment-closed-summary .taskflow-detail-action-row {
  padding: 0;
}

.wholesale-payment-secondary-actions {
  display: grid;
  grid-template-columns: minmax(280px, 560px) auto;
  gap: 8px;
  align-items: end;
}

.wholesale-payment-secondary-actions.transfer {
  grid-template-columns: minmax(260px, 420px) minmax(280px, 1fr) auto;
}

.wholesale-payment-resubmit-actions {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  gap: 8px;
  align-items: end;
  padding: 8px 12px 12px;
}

.wholesale-payment-secondary-actions label,
.wholesale-payment-resubmit-actions label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wholesale-payment-secondary-actions textarea,
.wholesale-payment-secondary-actions select,
.wholesale-payment-resubmit-actions select {
  min-height: 34px;
}

.order-sale-footer-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 12px 12px;
}
.order-sale-footer-actions > button {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}

.order-sale-cashier-camera-modal {
  padding: 0;
  background: #05090d;
}

.order-sale-cashier-camera-card {
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: #05090d;
}

.order-sale-cashier-camera-card .camera-capture-frame,
.order-sale-cashier-camera-card video {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.order-sale-cashier-camera-card video {
  object-fit: cover;
}

.order-sale-cashier-camera-actions {
  position: absolute;
  z-index: 8;
  right: 14px;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.order-sale-cashier-camera-actions > button {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  border-color: rgba(255,255,255,.58);
  background: rgba(248,252,254,.86);
  backdrop-filter: blur(16px);
}

.order-sale-cashier-camera-actions > .primary {
  border-color: rgba(48,151,205,.76);
  background: rgba(64,155,207,.9);
}

.order-sale-click-card {
  display: grid;
  grid-template-rows: auto minmax(280px, 1fr) auto;
  gap: 10px;
  width: min(92vw, 680px);
  max-height: min(92vh, 820px);
  padding: 14px;
}

.order-sale-click-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 42px;
  align-items: center;
  gap: 12px;
}

.order-sale-click-head > div {
  min-width: 0;
}

.order-sale-click-head h3,
.order-sale-click-head span {
  display: block;
  margin: 0;
}

.order-sale-click-head span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-sale-click-head > strong {
  color: #123f58;
  font-size: 22px;
  white-space: nowrap;
}

.order-sale-click-head > button {
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  font-size: 26px;
  line-height: 1;
}

.order-sale-click-camera {
  min-height: 280px;
}

.order-sale-click-camera video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-sale-click-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.order-sale-click-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
}

.order-sale-click-footer > button {
  width: auto;
  min-width: max-content;
  min-height: 34px;
  padding: 5px 12px;
}

.order-sale-click-status.error {
  color: #bf2f35;
}

.order-sale-inventory-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.order-sale-inventory-head .order-sale-search-form {
  display: grid;
  grid-template-columns: 260px auto;
  gap: 8px;
  align-items: center;
}

.order-sale-inventory-head .order-sale-search-form input {
  min-height: 34px;
}

.order-sale-inventory-head .order-sale-search-form button {
  min-height: 34px;
  padding: 0 14px;
}

.order-sale-selected-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 560px) minmax(0, 1fr);
  align-items: center;
}

.order-sale-selected-head h3 {
  justify-self: start;
  white-space: nowrap;
}

.order-sale-selected-head select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
}

.order-sale-selected-head select:invalid {
  border-color: #d89189;
  background: #fff4f2;
  color: #a3372d;
}

.order-sale-selected-head #orderSaleRequestBtn {
  justify-self: end;
}

@media (max-width: 760px) {
  .order-sale-selected-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

.order-sale-inventory-browser {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 360px;
  border-top: 1px solid #d8e0ec;
}

.order-sale-category-list {
  display: grid;
  align-content: start;
  gap: 4px;
  max-height: 520px;
  overflow: auto;
  padding: 6px;
  border-right: 1px solid #d8e0ec;
  background: #f8fafc;
}

.order-sale-category-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 28px;
  padding: 3px 6px;
  border: 1px solid #d8e0ec;
  border-radius: 6px;
  background: #fffef6;
  color: #172033;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}

.order-sale-category-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-sale-category-button small {
  min-width: 20px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #e6edf5;
  color: #667189;
  font-size: 9px;
  text-align: center;
}

.order-sale-category-button.active {
  border-color: #377f73;
  background: #e8f4ef;
  color: #245f56;
}

.order-sale-category-button.active small {
  background: #377f73;
  color: #ffffff;
}

.order-sale-category-products {
  min-width: 0;
  overflow: auto;
}

.order-sale-category-products .order-sale-inventory-wrap {
  border: 0;
  border-radius: 0;
  margin: 0;
}

.order-sale-category-products .order-sale-inventory-wrap table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.order-sale-category-products .order-sale-inventory-wrap th,
.order-sale-category-products .order-sale-inventory-wrap td {
  width: auto;
  max-width: 360px;
  height: 26px;
  padding: 1px 5px;
  line-height: 1.05;
}

.order-sale-category-products .order-sale-inventory-wrap th:nth-child(1),
.order-sale-category-products .order-sale-inventory-wrap td:nth-child(1) {
  width: 44%;
  min-width: 170px;
}

.order-sale-category-products .order-sale-inventory-wrap th:nth-child(2),
.order-sale-category-products .order-sale-inventory-wrap td:nth-child(2) {
  width: auto;
  max-width: 420px;
}

.order-sale-category-products .order-sale-inventory-wrap td:nth-child(1),
.order-sale-category-products .order-sale-inventory-wrap td:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-sale-category-products .order-sale-inventory-wrap th:nth-child(3),
.order-sale-category-products .order-sale-inventory-wrap td:nth-child(3) {
  width: 92px;
  min-width: 92px;
  text-align: right;
}

.order-sale-category-products .order-sale-inventory-wrap th:last-child,
.order-sale-category-products .order-sale-inventory-wrap td:last-child {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
}

.order-sale-take-cell {
  display: table-cell;
  white-space: nowrap;
}

.order-sale-take-cell input {
  width: 58px;
  min-width: 58px;
  min-height: 24px;
  height: 24px;
  margin-right: 4px;
  padding: 1px 5px;
  vertical-align: middle;
}

.order-sale-take-cell .compact-button {
  min-width: 68px;
  min-height: 24px;
  height: 24px;
  padding: 1px 6px;
  border-radius: 6px;
  line-height: 1;
  vertical-align: middle;
}

.order-sale-selected-wrap th,
.order-sale-selected-wrap td {
  height: 26px;
  padding: 1px 5px;
  line-height: 1.05;
}

.order-sale-selected-wrap td:nth-child(1),
.order-sale-selected-wrap td:nth-child(2) {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-sale-selected-wrap .compact-button {
  min-height: 24px;
  padding: 1px 6px;
  border-radius: 6px;
  line-height: 1;
}

.shop-order-review-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.shop-order-review-fields div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #d8e0ec;
  border-radius: 6px;
  background: #fffef6;
}

.shop-order-review-fields span {
  color: #667189;
  font-size: 12px;
  font-weight: 800;
}

.shop-order-review-fields b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.shop-order-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shop-manager-page {
  display: grid;
  gap: 10px;
}

.shop-manager-settings-card .panel-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d5deeb;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font-weight: 800;
  text-decoration: none;
}

.shop-manager-settings-form {
  display: grid;
  grid-template-columns: minmax(180px, 240px) auto minmax(320px, 1fr);
  align-items: end;
  gap: 10px 14px;
  padding: 10px;
}

/* Desktop POS: cart first, settlement second, product entry below. */
.desktop-cashier-pos .pos-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px;
}

.desktop-pos-checkout-stack {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.desktop-cashier-pos .pos-work,
.desktop-cashier-pos .cashier-pickup-panel {
  grid-column: 1 / -1;
}

.desktop-pos-scan-capture {
  position: fixed;
  left: -10000px;
  top: -10000px;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.desktop-cashier-pos .desktop-cart-panel {
  min-width: 0;
  overflow: hidden;
}

.desktop-cart-table-wrap {
  max-height: min(46vh, 560px);
  overflow: auto;
}

.desktop-cart-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.desktop-cart-table th,
.desktop-cart-table td {
  height: 42px;
  padding: 6px 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.desktop-cart-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  background: #edf2f6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.desktop-cart-table th:nth-child(1) { width: 15%; }
.desktop-cart-table th:nth-child(2) { width: 31%; }
.desktop-cart-table th:nth-child(3) { width: 14%; }
.desktop-cart-table th:nth-child(4) { width: 10%; }
.desktop-cart-table th:nth-child(5) { width: 18%; }
.desktop-cart-table th:nth-child(6) { width: 12%; }

.desktop-cart-table th:last-child,
.desktop-cart-table td:last-child {
  border-right: 0;
}

.desktop-cart-table tbody tr:last-child td {
  border-bottom: 0;
}

.desktop-cart-barcode,
.desktop-cart-name,
.desktop-cart-table td:nth-child(4),
.desktop-cart-table td:nth-child(5),
.desktop-cart-table td:nth-child(6) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-cart-barcode {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.desktop-cart-quantity {
  display: grid;
  grid-template-columns: 30px minmax(32px, 1fr) 30px;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.desktop-cart-quantity button {
  width: 30px;
  min-height: 30px;
  padding: 0;
}

.desktop-cart-empty td {
  height: 72px;
  color: var(--muted);
  text-align: center;
}

.desktop-cashier-pos .payment-card {
  position: static;
  z-index: auto;
}

.desktop-payment-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 420px) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.desktop-payment-row .total-row {
  padding: 0;
  border: 0;
  font-size: 18px;
}

.desktop-payment-row .total-row strong {
  font-size: 24px;
}

.desktop-payment-row .cash-line {
  grid-template-columns: auto minmax(0, 1fr);
}

.desktop-payment-row .cash-line input,
.desktop-payment-row .cash-submit {
  min-height: 42px;
}

.desktop-payment-row .cash-submit {
  min-width: 112px;
  white-space: nowrap;
}

.shop-manager-settings-form > .shop-coordinate-fields {
  display: flex;
  align-items: end;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.shop-manager-settings-form > .shop-coordinate-fields > label {
  flex: 0 1 15ch;
  min-width: 0;
}

.shop-manager-settings-form > .shop-coordinate-fields > label > input {
  width: 15ch;
  max-width: 100%;
}

.shop-manager-settings-form > .shop-public-link-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-column: auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.shop-manager-settings-form > .shop-public-link-field > label { min-width: 0; }
.shop-manager-settings-form > .shop-public-link-field > label > input { width: 100%; }
.shop-manager-settings-form .shop-public-link-qr { width: 72px; height: 72px; }
.shop-manager-settings-form .shop-public-link-qr svg { display: block; width: 100%; height: 100%; }

.shop-manager-settings-form p {
  grid-column: 1 / -1;
  margin: 0;
  color: #667189;
  font-weight: 700;
}

.shop-manager-settings-form .wide {
  grid-column: 1 / -1;
}

.shop-manager-settings-form .shop-setting-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-manager-settings-form .shop-setting-info {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid #8a94a8;
  border-radius: 50%;
  color: #667189;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
  cursor: help;
}

.shop-manager-settings-form .shop-setting-info:focus-visible {
  outline: 2px solid #5b9bd5;
  outline-offset: 2px;
}

.shop-manager-settings-form .shop-delivery-radius-control {
  position: relative;
  display: block;
}

.shop-manager-settings-form .shop-delivery-radius-control > input {
  width: 100%;
  padding-right: 112px;
}

.shop-manager-settings-form .shop-delivery-disabled {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  padding: 3px 7px;
  border-radius: 999px;
  background: #edf1f6;
  color: #667189;
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}

.shop-manager-settings-form .shop-delivery-disabled[hidden] {
  display: none;
}

.shop-manager-settings-form > .shop-payment-instructions-field {
  display: grid;
  grid-template-columns: 145px minmax(360px, 1fr) minmax(280px, auto);
  align-items: center;
  gap: 12px;
}

.shop-manager-settings-form > .shop-payment-instructions-field > textarea {
  min-height: 54px;
  height: 54px;
}

.shop-manager-settings-form > .shop-payment-instructions-field > small {
  max-width: 520px;
}

.shop-manager-grid {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(360px, 1fr) minmax(340px, 420px);
  gap: 10px;
  align-items: start;
}

.shop-manager-card {
  min-width: 0;
}

.shop-category-tree,
.shop-product-list {
  display: grid;
  gap: 6px;
  padding: 8px;
}

.shop-category-node,
.shop-product-row {
  display: grid;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #fffef6;
  color: #172033;
  cursor: pointer;
}

.shop-category-node {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 42px;
  padding: 6px 8px;
}

.shop-category-node:first-child {
  grid-template-columns: minmax(0, 1fr) auto;
}

.shop-category-node span,
.shop-product-row-main strong,
.shop-product-row-main em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-category-node span small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.shop-category-node b {
  min-width: 28px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e8edf5;
  color: #667189;
  text-align: center;
}

.shop-category-node.active,
.shop-product-row.active {
  border-color: #377f73;
  color: var(--primary-ink);
  background: #dceff9 !important;
  box-shadow: inset 5px 0 0 var(--primary), 0 0 0 1px rgba(47, 158, 216, .20);
}

.shop-category-node.muted,
.shop-product-row.muted {
  opacity: 0.56;
}

.shop-product-row {
  grid-template-columns: auto 46px minmax(0, 1fr) fit-content(160px);
  min-height: 58px;
  padding: 6px 8px;
}

.shop-product-row-image {
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 6px;
  background: #eef2f6;
}

.shop-product-row-image img,
.shop-product-row-image .product-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-product-row-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.shop-product-row-main em {
  color: #667189;
  font-style: normal;
  font-size: 12px;
}

.shop-product-row b {
  white-space: nowrap;
}

.shop-product-detail {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
}

.shop-product-detail-image {
  display: grid;
  place-items: center;
  width: 132px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #eef2f6;
}

.shop-product-detail-image img,
.shop-product-detail-image .product-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-product-detail-fields {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.shop-product-detail-fields label,
.shop-manager-settings-form label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #667189;
  font-weight: 800;
}

.shop-manager-settings-form small {
  color: #8a94a8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.shop-product-detail-fields input,
.shop-manager-settings-form input,
.shop-manager-settings-form textarea {
  min-width: 0;
  min-height: 38px;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  padding: 0 10px;
  background: #fffef6;
  color: #172033;
  font: inherit;
  font-weight: 800;
}

.shop-manager-settings-form textarea {
  min-height: 76px;
  padding: 10px;
  resize: vertical;
  line-height: 1.45;
}

.shop-product-detail-fields input[readonly],
.shop-manager-settings-form input[readonly] {
  background: #f7f9fc;
}

@media (max-width: 1260px) {
  .shop-manager-grid {
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  }

  .shop-product-detail-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .shop-order-review-fields {
    grid-template-columns: 1fr;
  }

  .shop-manager-settings-form,
  .shop-manager-grid,
  .shop-product-detail {
    grid-template-columns: 1fr;
  }
}

.curator-stock-header-actions{display:flex;align-items:center;gap:12px;flex:1;max-width:620px;min-width:0;flex-wrap:nowrap}.curator-stock-header-actions select{flex:1;min-width:0}.curator-stock-header-actions button{flex:0 0 auto;white-space:nowrap}.curator-stock-form{grid-template-columns:1fr!important}.curator-stock-two-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}.curator-brand-control{display:flex;gap:6px;align-items:center}.curator-brand-control input{flex:1;min-width:0}.curator-brand-control button{width:38px;padding:6px}.curator-brand-menu{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;border:1px solid var(--line);border-radius:8px}.curator-brand-menu button{color:#a33;background:none;border:0}.curator-expiry-row{display:flex;align-items:center;gap:7px;min-width:0;overflow-x:auto;padding:4px 0}.curator-expiry-row>input[type=date]{flex:0 0 145px;min-width:145px}.curator-expiry-shortcuts{display:flex;flex:0 0 auto;flex-wrap:nowrap;align-items:center;gap:4px;margin:0}.curator-expiry-option{display:inline-flex;align-items:center;gap:2px;padding:3px 5px;border:1px solid var(--line);border-radius:6px;white-space:nowrap}.curator-expiry-shortcuts input{width:13px!important;height:13px!important;min-width:13px;margin:0}.curator-shop-visible-compact{display:flex!important;align-items:center;gap:8px;min-height:38px}.curator-shop-visible-compact input{width:16px!important;height:16px!important;min-width:16px;margin:0}.curator-mxik-details dl{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px}.curator-mxik-details dl div{display:flex;gap:6px}.curator-mxik-details dt{font-weight:700}.curator-mxik-details dd{margin:0}.curator-product-preview img{max-width:100%;max-height:320px;object-fit:contain;display:block;margin:auto}@media(max-width:900px){.curator-stock-two-columns{grid-template-columns:1fr}.curator-stock-entry-panel .panel-head{align-items:center}.curator-stock-header-actions{max-width:none}.curator-mxik-details dl{grid-template-columns:1fr}}

.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.curator-image-field{display:grid;grid-template-columns:168px minmax(0,1fr);align-items:center;border:1px solid var(--line);border-radius:8px;overflow:hidden}.curator-image-label{align-self:stretch;display:flex;align-items:center;padding:10px 12px;background:var(--soft)}.curator-image-toolbar{display:flex;align-items:center;gap:7px;padding:7px 12px}.curator-image-icon{width:40px;height:38px;min-width:40px;padding:0!important;display:inline-grid;place-items:center;font-size:20px;line-height:1}.curator-image-crop-viewport{position:relative;width:min(100%,640px);aspect-ratio:1;background:#eef2f5;border:1px solid var(--line);border-radius:10px;overflow:hidden;touch-action:none;cursor:grab;margin-inline:auto}.curator-image-crop-viewport:active{cursor:grabbing}.curator-image-crop-viewport canvas{display:block;width:100%;height:100%}.curator-image-crop-viewport>img{display:none!important}.curator-image-rotate{position:absolute;z-index:5;right:12px;top:12px;width:44px;height:44px;border:0;border-radius:50%;background:rgba(18,44,52,.62);color:#fff;font-size:27px;line-height:1;display:grid;place-items:center;box-shadow:0 2px 9px rgba(0,0,0,.2)}.curator-image-rotate:hover,.curator-image-rotate:focus-visible{background:rgba(18,44,52,.82)}.curator-camera-modal{position:fixed;z-index:1200;inset:0;background:rgba(10,22,28,.78);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px}.curator-camera-modal.hidden{display:none}.curator-camera-modal video{width:min(92vw,720px);max-height:72vh;background:#000;border-radius:12px}.curator-camera-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:center}@media(max-width:700px){.curator-image-field{grid-template-columns:120px minmax(0,1fr)}}

.curator-product-lookup-status{padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--soft);font-size:1rem;line-height:1.45}.site-brand-manager{display:grid;gap:10px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.site-brand-add,.site-brand-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;align-items:center}.site-brand-add{grid-template-columns:minmax(0,1fr) auto}.site-brand-list{display:grid;gap:7px}.site-brand-row .danger{color:#a33}.site-brand-manager-full{border:0;padding:0}@media(max-width:600px){.site-brand-row{grid-template-columns:1fr 1fr}.site-brand-row input{grid-column:1/-1}}

.editable-supplier-combobox{position:relative;display:block;min-width:0}.editable-supplier-input{display:grid;grid-template-columns:minmax(0,1fr) 38px}.editable-supplier-input input{min-width:0;border-radius:7px 0 0 7px}.editable-supplier-input button{border:1px solid var(--line);border-left:0;border-radius:0 7px 7px 0;background:var(--soft);font-size:20px;padding:0}.editable-supplier-options{position:absolute;z-index:80;left:0;right:0;top:calc(100% + 4px);max-height:220px;overflow:auto;padding:5px;background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:0 10px 24px rgba(20,38,48,.18)}.editable-supplier-options button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:8px 9px;border-radius:6px}.editable-supplier-options button:hover,.editable-supplier-options button:focus{background:var(--soft)}

.curator-camera-stage{position:relative;width:min(94vw,760px);max-height:86vh;border-radius:22px;overflow:hidden;background:#050708;box-shadow:0 24px 70px rgba(0,0,0,.48)}.curator-camera-stage video{display:block;width:100%;max-height:86vh;object-fit:contain;border-radius:0}.curator-camera-glass{position:absolute;z-index:2;display:grid;place-items:center;border:1px solid rgba(255,255,255,.4);background:linear-gradient(145deg,rgba(255,255,255,.32),rgba(255,255,255,.12));color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 5px 18px rgba(0,0,0,.3);backdrop-filter:blur(14px) saturate(145%);-webkit-backdrop-filter:blur(14px) saturate(145%);text-shadow:0 1px 3px rgba(0,0,0,.5)}.curator-camera-glass:hover,.curator-camera-glass:focus-visible{background:linear-gradient(145deg,rgba(255,255,255,.43),rgba(255,255,255,.18));transform:scale(1.04)}.curator-camera-close,.curator-camera-switch{width:48px;height:48px;border-radius:50%;font-size:23px}.curator-camera-close{left:16px;top:16px}.curator-camera-switch{right:18px;bottom:22px;font-size:29px}.curator-camera-shutter{left:50%;bottom:18px;transform:translateX(-50%);width:70px;height:70px;border-radius:50%;padding:6px}.curator-camera-shutter:hover,.curator-camera-shutter:focus-visible{transform:translateX(-50%) scale(1.04)}.curator-camera-shutter span{width:50px;height:50px;border-radius:50%;background:rgba(255,255,255,.92);box-shadow:inset 0 0 0 2px rgba(255,255,255,.65),0 2px 9px rgba(0,0,0,.25)}
.curator-camera-stage{width:min(94vw,760px);height:min(86vh,760px);max-height:none}.curator-camera-stage video{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover}
.curator-camera-glass:hover:not(:disabled),.curator-camera-glass:focus-visible,.curator-camera-glass:active:not(:disabled){transform:none!important}.curator-camera-shutter,.curator-camera-shutter:hover:not(:disabled),.curator-camera-shutter:focus-visible,.curator-camera-shutter:active:not(:disabled){transform:translateX(-50%)!important}
.curator-inbound-draft-panel{margin-top:14px}.curator-inbound-draft-table{min-width:1500px}.curator-inbound-draft-table input,.curator-inbound-draft-table select{min-width:92px;width:100%;padding:7px}.curator-inbound-draft-table input[type="checkbox"]{min-width:18px;width:18px}.curator-inbound-draft-table td:nth-child(2){min-width:140px}.curator-inbound-draft-table td:nth-child(8),.curator-inbound-draft-table td:nth-child(11){min-width:150px}
.same-gtin-comparison{display:grid;gap:.5rem}.same-gtin-candidate{display:grid;grid-template-columns:minmax(9rem,1fr) 2fr 1fr 1fr auto;gap:.5rem;align-items:center;padding:.45rem;border-bottom:1px solid var(--line)}.review-product-comparison{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.enterprise-product-platform-review>.actions{display:flex;gap:.6rem;justify-content:flex-end;margin-top:.8rem}@media(max-width:800px){.same-gtin-candidate,.review-product-comparison{grid-template-columns:1fr}}
.product-image-gallery{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}.product-image-gallery img{width:88px;height:88px;object-fit:contain;border:1px solid var(--line);border-radius:8px;background:#fff}.product-image-gallery>img:first-child{outline:3px solid var(--accent);outline-offset:1px}
.product-image-gallery-item{position:relative;display:inline-grid;cursor:grab}.product-image-gallery-item:first-child img{outline:3px solid var(--accent);outline-offset:1px}.product-image-gallery-item>button{position:absolute;right:3px;top:3px;width:24px;height:24px;padding:0;border-radius:50%;border:0;background:rgba(25,35,40,.72);color:#fff;font-size:18px;line-height:1}.product-image-gallery-item:active{cursor:grabbing}
.platform-product-visual-search-card>.platform-product-visual-search{top:auto;right:3px;bottom:3px;display:grid;place-items:center;width:28px;min-width:28px;height:28px;min-height:28px;padding:0;border:1px solid rgba(255,255,255,.8);border-radius:50%;background:rgba(15,23,42,.72);color:#fff;font-size:15px;line-height:1;box-shadow:0 3px 10px rgba(15,23,42,.25);backdrop-filter:blur(8px)}.platform-product-visual-search-card>.platform-product-visual-search:hover,.platform-product-visual-search-card>.platform-product-visual-search:focus-visible{border-color:#fff;background:rgba(37,99,235,.84);color:#fff;transform:none}
.platform-product-visual-search-card>.platform-product-readonly-image{cursor:zoom-in}
.ai-config-panel>.ai-config-form>label.image-prefix-field>input,.ai-config-panel>.ai-config-form>label.image-prefix-field>input:hover{background:#fffdf4;color:#0f172a;border-left:1px solid #d9e4ee}.ai-config-panel>.ai-config-form>label.image-prefix-field>input:focus{background:#fff;color:#0f172a;box-shadow:inset 0 0 0 2px rgba(47,158,216,.24)}
.catalog-image-download-progress{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-width:0;flex:1;flex-wrap:wrap;color:#526077;font-size:12px;line-height:1.35}.catalog-image-download-progress span{white-space:nowrap}.catalog-image-download-progress b{color:#27354a}.catalog-image-download-progress.is-loading{color:#758197}
.curator-organization-grid>.curator-enterprise-product-library{grid-column:1/-1}.curator-enterprise-product-search{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:min(620px,70vw)}.curator-enterprise-product-search select{flex:1 1 260px;min-width:180px}.curator-enterprise-product-search input{flex:1 1 240px;min-width:160px}.curator-enterprise-product-pager{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px}.curator-enterprise-product-pager button{width:auto}@media(max-width:900px){.curator-enterprise-product-search{min-width:0;width:100%;flex-wrap:wrap}.curator-enterprise-product-search select,.curator-enterprise-product-search input{flex:1 1 100%}}
.platform-product-detail-image>.official-product-image-gallery{--detail-gallery-size:88px;align-items:flex-start}.platform-product-detail-image>.official-product-image-gallery .product-image-gallery-item>img{width:var(--detail-gallery-size)!important;height:var(--detail-gallery-size)!important}.official-product-image-gallery>.official-image-candidate{display:grid;gap:7px;cursor:default}.official-product-image-gallery .official-image-candidate-layout{display:grid;grid-template-columns:var(--detail-gallery-size) 36px;gap:8px;align-items:stretch}.official-product-image-gallery .official-image-candidate-layout>.curator-image-crop-viewport{width:var(--detail-gallery-size)!important;height:var(--detail-gallery-size)!important;max-width:var(--detail-gallery-size);aspect-ratio:1;margin:0;border:1px solid var(--line)!important;background:#eef2f5}.official-product-image-gallery .official-image-candidate-layout .curator-image-rotate{right:5px;top:5px;width:30px;height:30px;font-size:20px}.official-product-image-gallery .official-image-candidate-layout>.curator-image-toolbar{display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;padding:0}.official-product-image-gallery .official-image-candidate-layout>.curator-image-toolbar>.curator-image-icon{width:36px;height:26px;min-width:36px;min-height:26px;padding:0;border:0;font-size:17px}.official-product-image-gallery>.official-image-candidate>[data-official-image-save]{width:100%}

.store-workbench{display:grid;gap:18px;padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:0 8px 24px rgba(28,54,64,.07)}
.store-workbench-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.store-workbench-header h2{margin:0;color:#172033;font-size:1.35rem}
.store-workbench-header p{margin:6px 0 0;color:#667189}
.store-workbench-grid{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:12px}
.store-workbench-grid>button{min-height:88px;padding:16px;border:1px solid #bfd3d2;border-radius:12px;background:#f7fbfa;color:#244846;font-weight:800;text-align:left;box-shadow:none}
.store-workbench-grid>button:hover:not(:disabled),.store-workbench-grid>button:focus-visible{border-color:var(--accent);background:#e8f4f1;color:#173f3c;box-shadow:0 5px 14px rgba(39,104,98,.13);transform:none}
.store-workbench-grid>button:active:not(:disabled){background:#dcefeb;transform:none}
@media(max-width:760px){.store-workbench-grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.store-workbench{padding:14px}.store-workbench-grid{grid-template-columns:1fr}}

.platform-product-modal-backdrop{z-index:1100;padding:24px;align-items:start}
.platform-product-modal-backdrop>.platform-product-modal-card{width:min(1180px,calc(100vw - 48px));max-height:calc(100vh - 48px);padding:0;gap:0;overflow:hidden;background:var(--panel)}
.platform-product-modal-card>.platform-product-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);background:var(--panel)}
.platform-product-modal-head>h3{margin:0;font-size:18px}.platform-product-modal-head>div{display:flex;align-items:center;gap:8px}
.platform-product-modal-head [data-platform-product-modal-close]{display:grid;place-items:center;width:38px;height:38px;min-width:38px;padding:0;border:0;background:transparent;color:var(--ink);font-size:26px;line-height:1;box-shadow:none}
.platform-product-modal-head [data-platform-product-modal-close]:hover,.platform-product-modal-head [data-platform-product-modal-close]:focus-visible{background:var(--soft);color:var(--ink);transform:none}
.hot-product-image-status{display:inline-flex;align-items:center;gap:5px;min-width:0}.hot-product-image-status>.product-image-status-icon{display:inline-grid;place-items:center;width:24px;height:24px;padding:0;border:0;background:transparent;font-size:19px;line-height:1}.hot-product-image-status>.product-image-status-icon.available{filter:none;opacity:1}.hot-product-image-status>.product-image-status-icon.missing{filter:grayscale(1);opacity:.2}.platform-product-modal-head [data-product-image-search]{display:inline-flex;align-items:center;gap:5px;min-height:38px;padding:7px 12px;background:var(--soft);border:1px solid var(--line);color:var(--ink);box-shadow:none}.platform-product-modal-head [data-product-image-search]:hover,.platform-product-modal-head [data-product-image-search]:focus-visible{background:#dcebe7;border-color:var(--accent);color:var(--ink);transform:none}
.platform-product-modal-card>.platform-product-modal-body{overflow:auto;padding:16px;max-height:calc(100vh - 111px)}
.curator-stock-image-gallery{--detail-gallery-size:88px;align-items:flex-start}.curator-stock-gallery-items{display:contents}.curator-stock-image-gallery>.curator-stock-image-candidate{display:grid}.curator-stock-image-gallery [data-curator-image-search]{width:100%;min-height:30px;padding:4px 7px;border:1px solid var(--line);background:var(--soft);color:var(--ink);box-shadow:none;font-size:12px}.curator-stock-image-gallery [data-curator-image-search]:hover,.curator-stock-image-gallery [data-curator-image-search]:focus-visible{border-color:var(--accent);background:#dcebe7;color:var(--ink);transform:none}.curator-stock-form [data-curator-package-editor]{display:block}.curator-stock-form [data-curator-package-editor]>select,.curator-stock-form [data-curator-package-editor]>input{width:100%}.curator-stock-form [data-curator-package-description]{display:block;min-height:18px;margin-top:3px;color:var(--muted)}
.curator-stock-form .borrowed-catalog-search{grid-column:1/-1;display:grid;grid-template-columns:minmax(220px,.8fr) auto minmax(320px,1.4fr);gap:8px;align-items:end}.curator-stock-form .borrowed-catalog-search.hidden{display:none!important}.curator-stock-form .borrowed-catalog-search>label{min-width:0}.curator-stock-form .borrowed-catalog-search select{width:100%}.curator-stock-form .borrowed-catalog-search>small.wide{grid-column:1/-1;color:var(--muted)}@media(max-width:1000px){.curator-stock-form .borrowed-catalog-search{grid-template-columns:minmax(0,1fr) auto}.curator-stock-form .borrowed-catalog-search>label:last-of-type{grid-column:1/-1}}
.platform-product-modal-backdrop .official-image-candidate-actions{display:flex;align-items:stretch;gap:6px}.platform-product-modal-backdrop .official-image-candidate-actions>button{width:auto;min-height:32px;padding:5px 9px;font-size:12px;box-shadow:none}.platform-product-modal-backdrop .official-image-candidate-actions>[data-product-image-search]{border:1px solid var(--line);background:var(--soft);color:var(--ink)}.platform-product-modal-backdrop .official-image-candidate-actions>[data-product-image-search]:hover,.platform-product-modal-backdrop .official-image-candidate-actions>[data-product-image-search]:focus-visible{border-color:var(--accent);background:#dcebe7;color:var(--ink);transform:none}.platform-product-modal-head button[type="submit"]:disabled{opacity:.38;cursor:not-allowed;filter:grayscale(1);transform:none}
.curator-enterprise-list-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:min(680px,72vw)}.curator-enterprise-list-actions>form{display:flex;align-items:center;gap:8px;flex:1}.curator-enterprise-list-actions input{min-width:0;flex:1}.curator-enterprise-list-actions button{width:auto;white-space:nowrap}.curator-enterprise-create-lookup{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--line)}.curator-enterprise-create-lookup>input{min-width:0;flex:1}.curator-enterprise-readonly{padding:12px}.curator-enterprise-list-page tr.clickable-row:hover>td{background:#e8f4f1;color:var(--ink)}@media(max-width:800px){.curator-enterprise-list-actions{width:100%;min-width:0;flex-wrap:wrap}.curator-enterprise-list-actions>form{flex-basis:100%}}
.enterprise-local-image-status{display:inline-grid;place-items:center;width:24px;height:24px;font-size:19px;line-height:1}.enterprise-local-image-status.available{filter:none;opacity:1}.enterprise-local-image-status.missing{filter:grayscale(1);opacity:.2}.enterprise-product-modal-backdrop{z-index:1120;padding:24px;align-items:start}.enterprise-product-modal-card{width:min(1080px,calc(100vw - 48px));max-height:calc(100vh - 48px);padding:0;gap:0;overflow:hidden}.enterprise-product-image-candidate{display:grid;grid-template-columns:calc(var(--detail-gallery-size,88px) + 44px);gap:7px;margin-top:8px}.enterprise-product-image-candidate .official-image-candidate-layout{display:grid;grid-template-columns:var(--detail-gallery-size,88px) 36px;gap:8px}.enterprise-product-image-candidate .curator-image-crop-viewport{width:var(--detail-gallery-size,88px)!important;height:var(--detail-gallery-size,88px)!important;margin:0}.enterprise-product-image-candidate .curator-image-toolbar{display:flex;flex-direction:column;justify-content:space-between;padding:0}.enterprise-product-image-candidate .curator-image-icon{width:36px;height:26px;min-width:36px;min-height:26px;padding:0!important;border:0;font-size:17px}

/* Product images keep their full composition: fixed preview height and aspect-ratio width. */
.curator-image-crop-viewport{height:var(--image-preview-height,320px)!important;width:auto!important;max-width:none;aspect-ratio:auto;touch-action:auto;cursor:default}
.curator-image-crop-viewport:active{cursor:default}
.curator-image-crop-viewport canvas{display:block!important;height:100%!important;width:auto!important;max-width:none}
.product-image-gallery img,.product-image-gallery-item>img{height:var(--detail-gallery-size,88px)!important;width:auto!important;max-width:none!important;object-fit:contain!important}
.official-product-image-gallery .official-image-candidate-layout,.enterprise-product-image-candidate .official-image-candidate-layout{display:flex!important;grid-template-columns:none!important;gap:8px;align-items:stretch}
.official-product-image-gallery .official-image-candidate-layout>.curator-image-crop-viewport,.enterprise-product-image-candidate .curator-image-crop-viewport{--image-preview-height:var(--detail-gallery-size,88px);height:var(--detail-gallery-size,88px)!important;width:auto!important;max-width:none!important;aspect-ratio:auto;margin:0}
.enterprise-product-image-candidate{grid-template-columns:max-content!important}
.enterprise-product-modal-card>.platform-product-modal-head{display:flex;align-items:center;justify-content:space-between}
.enterprise-product-modal-card .platform-product-modal-head [data-enterprise-product-close]{display:grid;place-items:center;width:38px;height:38px;min-width:38px;padding:0;border:0;background:transparent;color:var(--ink);font-size:26px;line-height:1;box-shadow:none}
.enterprise-product-modal-card .platform-product-modal-head [data-enterprise-product-close]:hover,.enterprise-product-modal-card .platform-product-modal-head [data-enterprise-product-close]:focus-visible{background:var(--soft);color:var(--ink);transform:none}
.enterprise-product-image-actions{display:flex;align-items:stretch;gap:6px}.enterprise-product-image-actions>button{width:auto;min-height:32px;padding:5px 9px;font-size:12px;box-shadow:none}.enterprise-product-image-actions>[data-enterprise-image-search]{border:1px solid var(--line);background:var(--soft);color:var(--ink)}.enterprise-product-image-actions>[data-enterprise-image-search]:hover,.enterprise-product-image-actions>[data-enterprise-image-search]:focus-visible{border-color:var(--accent);background:#dcebe7;color:var(--ink);transform:none}
.enterprise-product-modal-card [data-enterprise-product-gallery]{display:flex;flex-wrap:nowrap;align-items:flex-start;overflow-x:auto;overflow-y:hidden;padding:3px 3px 8px}
.enterprise-product-modal-card [data-enterprise-product-gallery]>.product-image-gallery-item,.enterprise-product-modal-card [data-enterprise-product-gallery]>.enterprise-product-image-candidate{flex:0 0 auto}
.stock-form.inbound-item-form.inbound-sheet-form .stock-product-image-card{display:block}
.inbound-product-image-strip{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:10px;width:100%;overflow-x:auto;padding:4px 0}
.stock-form.inbound-item-form.inbound-sheet-form .inbound-product-image-strip>.stock-product-image-preview{flex:0 0 88px;width:88px;min-width:88px;height:88px;min-height:88px;border-radius:8px}
.stock-form.inbound-item-form.inbound-sheet-form .inbound-product-image-strip>.stock-product-image-preview.has-images{flex-basis:auto;width:auto;min-width:0;border:0;background:transparent;overflow:visible}
.inbound-product-image-gallery{--detail-gallery-size:88px;display:flex;flex-wrap:nowrap;overflow:visible;gap:8px;align-items:flex-start}.inbound-product-image-gallery .product-image-gallery-item{flex:0 0 88px}.inbound-product-image-gallery .product-image-gallery-item>img{width:88px!important;height:88px!important;max-width:88px!important;object-fit:contain!important}
.platform-product-detail-form .product-description-label-row,.curator-stock-form .product-description-label-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:5px}.platform-product-detail-form .product-description-label-row>button,.curator-stock-form .product-description-label-row>button{flex:0 0 auto;width:auto;min-height:32px;padding:5px 10px;white-space:nowrap;color:var(--ink)}
.hot-product-description-field{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;gap:10px}.hot-description-save-toggle{display:inline-flex!important;align-items:center;gap:6px;color:var(--muted);font-size:12px;font-weight:800;white-space:nowrap}.hot-description-save-toggle>input[type="checkbox"]{width:17px!important;min-width:17px!important;height:17px!important;min-height:17px!important;margin:0;padding:0;accent-color:var(--primary)}.hot-product-description-field>textarea{width:100%;min-height:58px}
.stock-form.inbound-item-form.inbound-sheet-form .inbound-platform-image{cursor:default}
.stock-form.inbound-item-form.inbound-sheet-form .inbound-pricing-row>td,.stock-form.inbound-item-form.inbound-sheet-form .inbound-fiscal-row>td{padding:0}
.stock-form.inbound-item-form.inbound-sheet-form .inbound-field-grid{display:grid;align-items:stretch;width:100%;min-width:0}
.stock-form.inbound-item-form.inbound-sheet-form .inbound-pricing-grid{grid-template-columns:88px minmax(0,1fr) 88px minmax(0,1fr) 88px minmax(0,4fr);background:#fffef4}
.stock-form.inbound-item-form.inbound-sheet-form .inbound-fiscal-grid{grid-template-columns:88px minmax(0,1fr) 88px minmax(0,.5fr) 88px minmax(0,1.5fr);background:#f8fbff}
.stock-form.inbound-item-form.inbound-sheet-form .inbound-field-grid>*{min-width:0;border-right:1px solid var(--line)}
.stock-form.inbound-item-form.inbound-sheet-form .inbound-field-grid>:last-child{border-right:0}
.stock-form.inbound-item-form.inbound-sheet-form .inbound-grid-label{display:flex;align-items:center;padding:6px 8px;background:#eef3f7;color:#475569;font-size:12px;font-weight:800;white-space:nowrap}
.replenishment-inbound-page .inbound-required-label>b{display:none;margin-left:2px;color:#c62828;font:inherit}.replenishment-inbound-page .inbound-required-label.is-required{color:#c62828!important}.replenishment-inbound-page .inbound-required-label.is-required>b{display:inline}
.stock-form.inbound-item-form.inbound-sheet-form .inbound-field-grid>input,.stock-form.inbound-item-form.inbound-sheet-form .inbound-field-grid>select{width:100%;min-width:0;min-height:34px;border:0;border-radius:0;background:transparent;padding:5px 8px;font-size:13px;font-weight:700}
.stock-form.inbound-item-form.inbound-sheet-form .inbound-package-cell{display:grid;grid-template-columns:minmax(96px,.42fr) minmax(0,1fr);align-items:stretch;min-width:0;overflow:hidden}
.stock-form.inbound-item-form.inbound-sheet-form .inbound-package-cell>input{width:100%;min-width:0;min-height:34px;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;padding:5px 8px;font-size:13px;font-weight:700}
.stock-form.inbound-item-form.inbound-sheet-form .inbound-package-cell>small{display:block;min-width:0;overflow:hidden;padding:8px;color:var(--muted);font-size:11px;font-weight:700;line-height:18px;text-overflow:ellipsis;white-space:nowrap}
.stock-form.inbound-item-form.inbound-sheet-form .inbound-psid-cell{display:grid;grid-template-rows:auto minmax(0,auto);align-content:start;min-width:0;overflow:hidden}
.stock-form.inbound-item-form.inbound-sheet-form .inbound-psid-cell>input{width:100%;min-width:0;min-height:34px;border:0;border-radius:0;background:transparent;padding:5px 8px;font-size:13px;font-weight:700}
.stock-form.inbound-item-form.inbound-sheet-form .inbound-psid-cell>.inbound-fiscal-status{display:block;min-height:18px;overflow:hidden;padding:0 8px 4px;color:var(--muted);font-size:11px;font-weight:700;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.stock-form.inbound-item-form.inbound-sheet-form .inbound-name-brand-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(8rem,1fr);align-items:stretch;gap:8px;width:100%;min-width:0}
.stock-form.inbound-item-form.inbound-sheet-form .inbound-name-brand-grid>input{width:100%;min-width:0}
.stock-form.inbound-item-form.inbound-sheet-form .inbound-name-brand-grid>label,.stock-form.inbound-item-form.inbound-sheet-form .inbound-name-brand-grid>label:hover{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px;width:100%;min-width:0;margin:0;padding:0;border:0;background:transparent!important;color:var(--ink)!important}
.stock-form.inbound-item-form.inbound-sheet-form .inbound-name-brand-grid>label>span{white-space:nowrap;font-size:12px;font-weight:800;color:#475569}
.stock-form.inbound-item-form.inbound-sheet-form .inbound-name-brand-grid>label>input{width:100%;min-width:0}
@media(max-width:700px){.stock-form.inbound-item-form.inbound-sheet-form .inbound-name-brand-grid{grid-template-columns:1fr}}
.enterprise-product-evidence{display:grid;gap:10px;margin-top:14px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.enterprise-product-evidence>h4{margin:0;color:var(--ink)}
.enterprise-evidence-summary-row{display:grid;grid-template-columns:minmax(90px,.24fr) minmax(0,1fr);gap:10px;align-items:start}
.enterprise-evidence-summary-row>span{display:flex;flex-wrap:wrap;gap:6px}
.enterprise-evidence-chip{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:999px;background:#e5f3f8;color:var(--ink)}
.enterprise-evidence-chip>small{color:var(--muted)}
.enterprise-product-evidence button.enterprise-evidence-chip{width:auto;min-height:0;border:1px solid transparent;box-shadow:none;font-weight:600;transform:none}
.enterprise-product-evidence button.enterprise-evidence-chip:hover,.enterprise-product-evidence button.enterprise-evidence-chip:focus-visible{border-color:var(--primary);background:#d5edf6;color:var(--ink);transform:none}
.hot-enterprise-product-page{padding:0;overflow:visible}.hot-enterprise-product-page>.platform-product-modal-body{max-height:none;overflow:visible;padding:18px 22px}.hot-enterprise-product-page #hotEnterprisePromoteForm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:18px;min-height:0}.hot-enterprise-product-page #hotEnterprisePromoteForm.official-catalog-capture{grid-template-columns:minmax(0,1fr)}.hot-product-main-fields,.hot-product-secondary-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:10px;min-width:0}.hot-product-main-fields>.wide,.hot-product-secondary-fields>.wide{grid-column:1/-1}.hot-enterprise-product-page #hotEnterprisePromoteForm>[data-hot-enterprise-evidence]{grid-column:2;min-width:0;align-self:start}.hot-enterprise-product-page #hotEnterprisePromoteForm.capture-review-layout>[data-hot-enterprise-evidence]{grid-column:1/-1}.hot-enterprise-product-page #hotEnterprisePromoteForm.official-catalog-capture>[data-hot-enterprise-evidence]{display:none}.hot-enterprise-product-page .enterprise-product-evidence{margin-top:0}.hot-enterprise-product-page [data-hot-psid-results]{max-height:none;overflow:visible}.hot-product-image-editor{display:grid;gap:8px}.hot-product-image-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.hot-product-image-heading>[data-hot-image-text-search]{width:auto;min-height:34px;padding:5px 10px;white-space:nowrap}.hot-product-image-editor>.product-image-gallery{min-height:96px}.hot-product-image-editor>.curator-camera-modal{position:fixed;z-index:1200}
.page-heading-with-back{display:flex;align-items:center;gap:12px;min-width:0}.page-heading-with-back>.page-return-button{flex:0 0 auto;width:auto}.page-heading-with-back>h1,.page-heading-with-back>h2,.page-heading-with-back>h3,.page-heading-with-back>h4{margin:0;min-width:0}
.page-return-button,.shop-detail-back,#backToSelfCheckout,#selfPayBack,#mobilePhotoBack,[data-auth-page="home"]{color:var(--primary)!important}.page-return-button{border-color:color-mix(in srgb,var(--primary) 38%,var(--line));background:var(--panel)}.page-return-button:hover,.page-return-button:focus-visible{color:var(--primary-strong)!important;background:var(--soft)}.hot-enterprise-product-page>.platform-product-modal-head{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center}.hot-enterprise-product-page>.platform-product-modal-head>.page-heading-with-back{grid-column:1;flex-wrap:nowrap;white-space:nowrap}.hot-enterprise-product-page>.platform-product-modal-head>h3{grid-column:2;margin:0;text-align:center}.hot-enterprise-product-page>.platform-product-modal-head>div:last-child{grid-column:3}.hot-enterprise-product-page>.platform-product-modal-head>.page-heading-with-back>button{width:auto;flex:0 0 auto}
body.desktop-body .site-category-tree-manager .sales-category-create-group .category-create-form{grid-template-columns:minmax(220px,1fr) max-content}
body.desktop-body .site-category-tree-manager .sales-category-create-group .category-create-form>.primary{width:auto;min-width:94px}
.hot-psid-picker{display:grid;gap:6px}.hot-psid-picker>label>span{display:flex;gap:7px}.hot-psid-picker>label>span>input{flex:1;min-width:0}.hot-psid-picker>label>span>button{flex:0 0 auto}
[data-hot-psid-results]{display:grid;gap:5px;max-height:210px;overflow:auto}.hot-psid-result,.hot-psid-selected{display:grid;grid-template-columns:15ch minmax(180px,1fr) minmax(140px,.65fr);gap:8px;align-items:center;padding:7px 9px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--ink);text-align:left;box-shadow:none;transform:none}.hot-psid-result:hover,.hot-psid-result:focus-visible{border-color:var(--primary);background:var(--soft);transform:none}.hot-psid-result small,.hot-psid-selected small{color:var(--muted)}
.curator-capture-psid-panel{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:10px 18px;width:100%}.curator-capture-psid-panel>.curator-psid-panel-title{display:flex;align-items:center;gap:9px;white-space:nowrap}.curator-capture-psid-panel>.curator-psid-panel-title>h4{margin:0}.curator-capture-psid-panel>.curator-psid-panel-title>button{width:auto;min-height:36px;padding:6px 12px;white-space:nowrap}.curator-capture-psid-panel>[data-hot-psid-results]{grid-column:1/-1;max-height:calc(100vh - 230px);overflow:auto}.curator-capture-psid-panel .hot-psid-result{grid-template-columns:14ch minmax(180px,1fr);align-items:start}.curator-capture-psid-panel .hot-psid-result>small{grid-column:1/-1}.curator-capture-psid-panel .hot-psid-result.selected{border-color:var(--primary);background:var(--soft);box-shadow:inset 4px 0 0 var(--primary)}
.curator-capture-psid-panel>.hot-psid-search-bar{display:flex;flex-wrap:nowrap;align-items:center;justify-self:end;gap:8px;width:100%;min-width:0}.curator-capture-psid-panel>.hot-psid-search-bar>input{width:auto;min-width:0;flex:1 1 auto}.curator-capture-psid-panel>.hot-psid-search-bar>button{width:auto;flex:0 0 auto;white-space:nowrap}
.curator-psid-tree{display:grid;gap:6px}.curator-psid-tree-node{margin:0;border:1px solid var(--line);border-radius:8px;background:var(--panel);overflow:hidden}.curator-psid-tree-node>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 11px;cursor:pointer;font-weight:800;color:var(--ink);list-style-position:inside}.curator-psid-tree-node>summary>small{flex:0 0 auto;color:var(--muted)}.curator-psid-tree-node>div{display:grid;gap:5px;padding:0 7px 7px 18px}.curator-psid-tree-node.level-2,.curator-psid-tree-node.level-3,.curator-psid-tree-node.level-4{border-left:3px solid color-mix(in srgb,var(--primary) 28%,var(--line))}.curator-capture-psid-panel .curator-psid-tree-leaf{display:grid;width:100%;min-width:0;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:9px;margin:0}.curator-capture-psid-panel .curator-psid-leaf-image{display:grid;width:44px;height:44px;min-width:44px;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--muted)}.curator-capture-psid-panel .curator-psid-leaf-image>img{display:block;width:100%;height:100%;object-fit:contain}.curator-capture-psid-panel .curator-psid-leaf-copy{display:grid;min-width:0;gap:2px;line-height:1.3}.curator-capture-psid-panel .curator-psid-leaf-copy>b{display:block;min-width:0;overflow:hidden;font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap}.curator-capture-psid-panel .curator-psid-leaf-copy>span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hot-enterprise-image-options{display:grid;grid-template-columns:minmax(90px,.24fr) minmax(0,1fr);gap:10px;align-items:start}.hot-enterprise-image-options>div{display:flex;flex-wrap:wrap;gap:8px}.hot-enterprise-image-options label{position:relative;display:block;cursor:pointer}.hot-enterprise-image-options input{position:absolute;top:5px;left:5px;width:18px;min-height:18px;accent-color:var(--primary)}.hot-enterprise-image-options img{display:block;width:88px;height:88px;object-fit:contain;border:2px solid transparent;border-radius:8px;background:#fff}.hot-enterprise-image-options input:checked+img{border-color:var(--primary)}
.hot-extra-images>input{width:100%}
@media(max-width:700px){.hot-psid-result,.hot-psid-selected{grid-template-columns:1fr}.hot-enterprise-image-options{grid-template-columns:1fr}}
.hot-name-search{display:flex;gap:8px}.hot-name-search>input{flex:1;min-width:0}.hot-name-search>button{flex:0 0 auto;white-space:nowrap}.hot-fiscal-category-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hot-fiscal-category-picker>.wide{grid-column:1/-1}.hot-product-image-editor .product-image-gallery-item>img{cursor:zoom-in}.hot-image-viewer{position:fixed;z-index:3000;inset:0;display:grid;place-items:center;background:rgba(2,6,23,.9);touch-action:none}.hot-image-viewer-stage{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;cursor:grab}.hot-image-viewer-stage:active{cursor:grabbing}.hot-image-viewer-stage>img{max-width:80vw;max-height:80vh;user-select:none;pointer-events:none;transform-origin:center;will-change:transform}.hot-image-viewer-actions{position:absolute;z-index:1;top:18px;right:18px;display:flex;gap:8px}.hot-image-viewer-actions>button{min-width:48px;height:48px;padding:0;border:1px solid rgba(255,255,255,.55);background:rgba(15,23,42,.72);color:#fff;font-size:22px;box-shadow:none;backdrop-filter:blur(8px)}.hot-image-viewer-actions>.hot-image-viewer-ocr{width:64px;border-radius:50%;background:linear-gradient(145deg,rgba(255,255,255,.38),rgba(59,130,246,.42));font-size:15px;font-weight:900;box-shadow:inset 0 1px 1px rgba(255,255,255,.7),inset 0 -8px 18px rgba(15,23,42,.25),0 8px 24px rgba(0,0,0,.35);backdrop-filter:blur(12px) saturate(1.4)}.hot-image-viewer-nav{position:absolute;z-index:2;top:50%;width:64px;min-width:64px;height:82px;padding:0;transform:translateY(-50%);border:1px solid rgba(255,255,255,.5);border-radius:18px;background:rgba(15,23,42,.68);color:#fff;font-size:54px;font-weight:300;line-height:1;box-shadow:0 8px 24px rgba(0,0,0,.35);backdrop-filter:blur(10px)}.hot-image-viewer-nav.previous{left:24px}.hot-image-viewer-nav.next{right:24px}
.simple-product-image-viewer .hot-image-viewer-stage{cursor:default}.simple-product-image-viewer .hot-image-viewer-stage>img{max-width:92vw;max-height:92vh;pointer-events:auto;cursor:zoom-out;object-fit:contain}
.curator-mobile-capture-body{margin:0;overflow:hidden;background:#000}.curator-mobile-capture-shell,#content:has(>.curator-mobile-capture){width:100%;height:100dvh;margin:0;padding:0!important;overflow:hidden}.curator-mobile-capture{position:relative;width:100%;height:100dvh;overflow:hidden;background:#000;color:#fff}.curator-mobile-capture>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.curator-capture-guide{position:absolute;inset:18% 8% 31%;display:grid;place-items:center;pointer-events:none}.curator-capture-guide>span{width:100%;height:42%;border:2px solid rgba(255,255,255,.92);border-radius:16px;box-shadow:0 0 0 9999px rgba(0,0,0,.18)}.curator-capture-status{position:absolute;top:max(20px,env(safe-area-inset-top));left:16px;right:16px;display:grid;gap:4px;padding:10px 13px;border-radius:12px;background:rgba(8,15,24,.68);backdrop-filter:blur(8px);text-align:center}.curator-capture-status>strong{font-size:18px;overflow-wrap:anywhere}.curator-capture-status>small{color:#e2e8f0}.curator-capture-thumbnails{position:absolute;left:12px;right:12px;bottom:calc(94px + env(safe-area-inset-bottom));display:flex;gap:8px;overflow-x:auto;padding:6px}.curator-capture-thumbnails>span{position:relative;flex:0 0 66px}.curator-capture-thumbnails img{display:block;width:66px;height:66px;object-fit:cover;border:2px solid #fff;border-radius:9px}.curator-capture-thumbnails button{position:absolute;top:-6px;right:-6px;width:24px;min-width:24px;height:24px;min-height:24px;padding:0;border-radius:50%;background:#dc2626;color:#fff;box-shadow:none}.curator-capture-actions{position:absolute;left:12px;right:12px;bottom:max(14px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.curator-capture-actions>button{min-width:0;min-height:58px;border:1px solid rgba(255,255,255,.45);border-radius:16px;background:rgba(15,23,42,.8);color:#fff;font-size:17px;font-weight:800;box-shadow:0 5px 18px rgba(0,0,0,.3);backdrop-filter:blur(8px);transform:none}.curator-capture-actions>button.primary{background:rgba(37,99,235,.9)}.curator-capture-actions>button:disabled{opacity:.42;transform:none}.curator-capture-table-images{display:flex;flex-wrap:wrap;gap:5px}.curator-capture-table-images>img{width:48px;height:48px;object-fit:cover;border:1px solid var(--line);border-radius:6px;background:#fff}
.curator-capture-guide{z-index:1}.curator-capture-detection{position:absolute;z-index:2;inset:0;width:100%;height:100%;opacity:0;pointer-events:none;filter:drop-shadow(0 0 5px rgba(250,204,21,.85));transition:opacity .12s ease}.curator-capture-detection.visible{opacity:1}.curator-capture-detection>polygon{fill:rgba(250,204,21,.13);stroke:#facc15;stroke-width:7;vector-effect:non-scaling-stroke;stroke-linejoin:round}.curator-capture-detection-label{position:absolute;z-index:3;top:calc(max(20px,env(safe-area-inset-top)) + 82px);left:18px;right:18px;display:none;padding:9px 12px;border:2px solid #facc15;border-radius:10px;background:rgba(20,17,3,.82);color:#fef08a;font-size:15px;font-weight:800;line-height:1.35;text-align:center;overflow-wrap:anywhere;box-shadow:0 4px 18px rgba(0,0,0,.35);backdrop-filter:blur(6px)}.curator-capture-detection-label.visible{display:block}.curator-capture-status,.curator-capture-thumbnails,.curator-capture-actions{z-index:3}
.curator-mobile-capture .curator-capture-actions{left:50%;right:auto;bottom:max(104px,calc(env(safe-area-inset-bottom) + 88px));display:flex;align-items:center;justify-content:center;gap:44px;transform:translateX(-50%)}.curator-mobile-capture .curator-capture-actions>.curator-capture-crystal{display:grid;place-items:center;width:64px;min-width:64px;height:64px;min-height:64px;padding:0;border:1px solid rgba(255,255,255,.72);border-radius:50%;background:linear-gradient(145deg,rgba(255,255,255,.34),rgba(148,163,184,.18));color:#fff;box-shadow:inset 0 1px 1px rgba(255,255,255,.65),inset 0 -8px 18px rgba(15,23,42,.22),0 8px 24px rgba(0,0,0,.34);backdrop-filter:blur(12px) saturate(1.35)}.curator-mobile-capture .curator-capture-actions>.curator-capture-crystal.primary{background:linear-gradient(145deg,rgba(96,165,250,.92),rgba(37,99,235,.72))}.curator-mobile-capture .curator-capture-actions>.curator-capture-crystal svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.curator-mobile-capture .curator-capture-actions>.curator-capture-crystal:disabled{opacity:.32}.curator-mobile-capture .curator-capture-thumbnails{bottom:calc(max(104px,calc(env(safe-area-inset-bottom) + 88px)) + 82px)}.curator-mobile-capture.code-recognized .curator-capture-guide{display:none}.curator-mobile-capture .existing-product-warning{color:#ff3b30;font-weight:900;text-shadow:0 0 9px rgba(255,0,0,.75);animation:curator-existing-product-flash .72s steps(2,end) infinite}@keyframes curator-existing-product-flash{0%,100%{opacity:1}50%{opacity:.18}}
.curator-mobile-capture .curator-capture-status>small{white-space:pre-line}
.curator-capture-table-panel .curator-capture-records-table{width:100%;min-width:900px;table-layout:fixed}
.curator-capture-table-panel .curator-capture-records-table tbody tr{cursor:pointer}
.curator-capture-table-panel .curator-capture-records-table tbody tr:hover td,.curator-capture-table-panel .curator-capture-records-table tbody tr:focus-visible td{background:var(--soft)}
.curator-capture-table-panel .curator-capture-records-table th:nth-child(1),
.curator-capture-table-panel .curator-capture-records-table td:nth-child(1){width:150px}
.curator-capture-table-panel .curator-capture-records-table th:nth-child(2),
.curator-capture-table-panel .curator-capture-records-table td:nth-child(2){width:180px}
.curator-capture-table-panel .curator-capture-records-table th:nth-child(3),
.curator-capture-table-panel .curator-capture-records-table td:nth-child(3){width:92px}
.curator-capture-table-panel .curator-capture-records-table th:nth-child(4),
.curator-capture-table-panel .curator-capture-records-table td:nth-child(4){width:240px;max-width:240px}
.curator-capture-table-panel .curator-capture-records-table th:nth-child(5),
.curator-capture-table-panel .curator-capture-records-table td:nth-child(5){width:165px}
.curator-capture-table-panel .curator-capture-records-table th:nth-child(6),
.curator-capture-table-panel .curator-capture-records-table td:nth-child(6){width:170px}
.curator-capture-table-panel .curator-capture-records-table th:last-child,
.curator-capture-table-panel .curator-capture-records-table td:last-child{display:none}
.curator-capture-table-panel .curator-capture-table-images{display:flex;flex-wrap:nowrap;gap:5px;width:100%;overflow-x:auto;overflow-y:hidden;padding-bottom:2px}
.curator-capture-table-panel .curator-capture-table-images>img{flex:0 0 48px}
.curator-capture-product-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.curator-mobile-capture .curator-capture-product{position:absolute;z-index:4;top:calc(max(20px,env(safe-area-inset-top)) + 92px);left:16px;right:16px;display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:12px;min-height:104px;padding:9px;border:1px solid rgba(255,255,255,.62);border-radius:15px;background:rgba(8,15,24,.78);color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.3);backdrop-filter:blur(10px)}.curator-mobile-capture .curator-capture-product[hidden]{display:none!important}.curator-mobile-capture .curator-capture-product>img,.curator-mobile-capture .curator-capture-product-placeholder{display:grid;place-items:center;width:88px;height:88px;border-radius:10px;background:#f1f5f9;color:#64748b;object-fit:contain}.curator-mobile-capture .curator-capture-product>div{display:grid;gap:5px;min-width:0}.curator-mobile-capture .curator-capture-product strong{font-size:18px;line-height:1.18}.curator-mobile-capture .curator-capture-product small{color:#dbe7ef;font-size:13px;line-height:1.25}
.curator-mobile-workflow-body{overflow:auto;background:#f3f7f8}.curator-mobile-workflow-body .curator-mobile-capture-shell,.curator-mobile-workflow-body #content{height:auto;min-height:100dvh;overflow:visible}.curator-mobile-choice{display:grid;align-content:center;min-height:100dvh;padding:28px;background:radial-gradient(circle at 18% 10%,rgba(91,166,214,.22),transparent 35%),linear-gradient(160deg,#f8fcfd,#eaf3f5)}.curator-mobile-choice>h1{margin:0;text-align:center;font-size:46px}.curator-mobile-choice>p{text-align:center;color:var(--muted)}.curator-mobile-choice>div{display:grid;gap:18px;margin-top:28px}.curator-mobile-choice button{min-height:84px;border-radius:18px;font-size:20px;font-weight:900}.curator-mobile-step{display:grid;gap:18px;min-height:100dvh;padding:18px;background:#f5f9fa;color:var(--ink)}.curator-mobile-step>header{display:flex;align-items:flex-start;gap:12px}.curator-mobile-step>header>div{min-width:0}.curator-mobile-step>header h2{margin:2px 0 0;font-size:24px}.curator-mobile-step>header p,.curator-mobile-step>header small{margin:3px 0;color:var(--muted)}.curator-mobile-back{flex:0 0 auto;min-width:0;padding:9px 12px;color:var(--primary)!important}.curator-mobile-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.curator-mobile-select-label,.curator-mobile-simple-form>label{display:grid;gap:7px;font-weight:800}.curator-mobile-select-label select,.curator-mobile-simple-form input,.curator-mobile-simple-form select,.curator-mobile-search input{min-height:50px}.curator-mobile-wide-action{width:100%;min-height:54px}.curator-mobile-simple-form{display:grid;align-content:start;gap:14px}.curator-mobile-simple-form>label>span,.curator-assist-required-row label>span{color:var(--ink)}.curator-mobile-simple-form>label>span:has(+input[required]),.curator-assist-required-row label>span{color:#c62828!important}.curator-mobile-simple-form>button.primary{min-height:54px;margin-top:8px}.curator-assist-scan-head{position:absolute;z-index:4;top:max(14px,env(safe-area-inset-top));left:14px;right:14px;display:flex;align-items:center;gap:10px;padding:8px;border-radius:14px;background:rgba(8,15,24,.72);backdrop-filter:blur(8px)}.curator-assist-scan-head>span{display:grid;min-width:0}.curator-assist-scan-head b,.curator-assist-scan-head small{overflow:hidden;color:#fff;text-overflow:ellipsis;white-space:nowrap}.curator-assist-hid{position:absolute;z-index:4;top:calc(max(14px,env(safe-area-inset-top)) + 76px);left:14px;right:14px}.curator-assist-hid input{width:100%;min-height:48px;border:2px solid rgba(255,255,255,.8);background:rgba(255,255,255,.9);color:#111}.curator-assist-scan>.curator-capture-status{top:auto;bottom:max(28px,env(safe-area-inset-bottom))}.curator-universal-back{position:absolute;z-index:6;top:max(16px,env(safe-area-inset-top));left:16px;background:rgba(255,255,255,.88)}.curator-assist-required-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.curator-assist-required-row>label{display:grid;gap:7px;font-weight:800}.curator-assist-required-row>label:last-child{grid-column:1/-1}.curator-assist-camera{position:relative;overflow:hidden;border-radius:16px;background:#050708;aspect-ratio:4/3}.curator-assist-camera>video{display:block;width:100%;height:100%;object-fit:cover}.curator-assist-camera>.curator-assist-shutter{left:50%;bottom:16px;width:68px;height:68px;padding:8px;border-radius:50%;transform:translateX(-50%)}.curator-assist-camera>.curator-assist-shutter:hover,.curator-assist-camera>.curator-assist-shutter:focus-visible{transform:translateX(-50%) scale(1.04)}.curator-assist-camera>.curator-assist-shutter>span{display:block;width:48px;height:48px;border-radius:50%;background:#fff}.curator-assist-confirm [data-curator-assist-photo-hint]{margin:0;text-align:center;color:var(--muted);font-weight:800}.curator-assist-photos{display:flex;gap:8px;overflow-x:auto;min-height:84px;padding:4px}.curator-assist-photos>span{position:relative;flex:0 0 78px}.curator-assist-photos img{display:block;width:78px;height:78px;border-radius:10px;object-fit:cover}.curator-assist-photos button{position:absolute;top:-4px;right:-4px;width:25px;min-width:25px;height:25px;min-height:25px;padding:0;border-radius:50%;background:#b91c1c;color:#fff}.curator-assist-confirm [data-curator-assist-submit]{min-height:58px}.curator-assist-confirm [data-curator-assist-submit]:disabled{opacity:.45}
.curator-capture-focus{position:absolute;z-index:3;width:70px;height:70px;border:3px solid #facc15;border-radius:12px;pointer-events:none;opacity:0;transform:translate(-50%,-50%) scale(1.25)}.curator-capture-focus.active{animation:curator-focus-pulse .8s ease-out}@keyframes curator-focus-pulse{0%{opacity:1;transform:translate(-50%,-50%) scale(1.25)}45%{opacity:1;transform:translate(-50%,-50%) scale(.9)}100%{opacity:0;transform:translate(-50%,-50%) scale(1)}}
.curator-assist-scan>video{touch-action:none}
.inline-ocr-inspector{margin-top:14px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.inline-ocr-inspector-head{display:flex;align-items:center;gap:12px;margin-bottom:10px}.inline-ocr-inspector-head>strong{font-size:17px}.inline-ocr-languages{display:flex;align-items:center;gap:12px;min-width:0;margin:0;padding:6px 10px;border:1px solid var(--line);border-radius:10px}.inline-ocr-languages>label{display:inline-flex;align-items:center;gap:5px;margin:0;white-space:nowrap;cursor:pointer}.inline-ocr-languages input[type="radio"]{appearance:auto!important;width:17px!important;min-width:17px!important;height:17px!important;margin:0!important;padding:0!important;accent-color:var(--accent)}.inline-ocr-inspector-head>[data-inline-ocr-status]{flex:1;color:var(--muted)}.inline-ocr-head-actions{display:flex;flex:0 0 auto;gap:8px}.inline-ocr-head-actions>button{min-width:0;padding:7px 14px}.inline-ocr-inspector-head>[data-inline-ocr-close]{width:38px;min-width:38px;height:38px;padding:0;color:var(--accent);font-size:24px}.inline-ocr-image-wrap{position:relative;width:min(100%,1100px);margin:auto;background:#111;line-height:0}.inline-ocr-image-wrap>img{display:block;width:100%;height:auto}.inline-ocr-text-layer{position:absolute;z-index:1;inset:0;overflow:hidden;user-select:text;line-height:1;cursor:text}.inline-ocr-text-layer>span{position:absolute;display:block;box-sizing:content-box;margin-left:-12px;padding-left:12px;overflow:visible;color:transparent;white-space:nowrap;line-height:1;user-select:text;text-shadow:none}.inline-ocr-text-layer>span.selection-locked{user-select:none}.inline-ocr-text-layer>span:hover{color:rgba(255,255,255,.72);background:rgba(37,99,235,.2)}.inline-ocr-text-layer>span::selection{color:#fff;background:#2563eb}.inline-ocr-nav{position:absolute;z-index:2;top:50%;width:52px;min-width:52px;height:70px;padding:0;transform:translateY(-50%)!important;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease!important;border:1px solid rgba(255,255,255,.58);border-radius:14px;background:rgba(15,23,42,.68);color:#fff;font-size:44px;line-height:1;box-shadow:0 6px 20px rgba(0,0,0,.3)}.inline-ocr-nav:hover:not(:disabled),.inline-ocr-nav:focus-visible,.inline-ocr-nav:active:not(:disabled){transform:translateY(-50%)!important}.inline-ocr-nav.previous{left:12px}.inline-ocr-nav.next{right:12px}.inline-ocr-copy-row{margin-top:9px}.inline-ocr-copy-row>small{color:var(--muted)}
.enterprise-product-evidence details>summary{cursor:pointer;font-weight:800;color:var(--primary)}
.enterprise-product-evidence table{min-width:900px}
.enterprise-evidence-images{display:flex;gap:4px;align-items:center}
.enterprise-evidence-images>img{width:36px;height:36px;object-fit:contain;border:1px solid var(--line);border-radius:5px;background:#fff}
.ai-config-panel>.ai-config-form>fieldset.product-image-source-selector{display:flex;align-items:center;gap:18px;min-width:0;margin:0;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink)}
.ai-config-panel>.ai-config-form>fieldset.product-image-source-selector>legend{padding:0 6px;color:var(--ink);font-weight:800}
.ai-config-panel>.ai-config-form>fieldset.product-image-source-selector>.product-image-source-options{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px}
.ai-config-panel>.ai-config-form>fieldset.product-image-source-selector>.product-image-source-options>label,.ai-config-panel>.ai-config-form>fieldset.product-image-source-selector>.product-image-source-options>label:hover{display:inline-flex;flex-direction:row;align-items:center;gap:7px;width:auto;min-width:0;margin:0;padding:5px 8px;border-radius:6px;background:#eef6f9!important;color:var(--ink)!important;white-space:nowrap}
.ai-config-panel>.ai-config-form>fieldset.product-image-source-selector>.product-image-source-options>label:hover{background:#dceef5!important}
.ai-config-panel>.ai-config-form>fieldset.product-image-source-selector input[type="radio"],.ai-config-panel>.ai-config-form>fieldset.product-image-source-selector input[type="radio"]:focus,.ai-config-panel>.ai-config-form>fieldset.product-image-source-selector input[type="radio"]:checked{appearance:auto;flex:0 0 auto;width:18px;height:18px;min-height:18px;margin:0;padding:0;opacity:1;accent-color:var(--primary)}
.ai-config-panel>.ai-config-form>fieldset.product-image-source-selector>p{flex:1;min-width:220px;margin:0;font-size:13px;line-height:1.35}
.inline-ocr-inspector-head>[data-inline-ocr-status]{display:inline-flex;flex:0 0 auto;align-items:center;min-height:30px;margin-left:auto;padding:4px 9px;border-radius:999px;font-size:13px;font-weight:700;white-space:nowrap}.inline-ocr-inspector-head>[data-inline-ocr-status]:empty{display:none}.inline-ocr-inspector-head>[data-inline-ocr-status].is-success{color:#166534;background:#dcfce7}.inline-ocr-inspector-head>[data-inline-ocr-status].is-warning{color:#92400e;background:#fef3c7}.inline-ocr-inspector-head>[data-inline-ocr-status].is-error{max-width:260px;overflow:hidden;color:#b91c1c;background:#fee2e2;text-overflow:ellipsis}.inline-ocr-head-actions>[data-inline-ocr-run].is-recognizing{display:inline-flex;align-items:center;gap:7px}.inline-ocr-head-actions>[data-inline-ocr-run].is-recognizing::before{width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;content:"";animation:inline-ocr-spin .7s linear infinite}@keyframes inline-ocr-spin{to{transform:rotate(360deg)}}
.hot-product-image-editor .product-image-gallery-item.hot-visual-search-card{position:relative;cursor:default}.hot-product-image-editor .product-image-gallery-item>button{width:30px;min-width:30px;height:30px;min-height:30px;padding:0;border-radius:50%;line-height:1}.hot-product-image-editor .product-image-gallery-item>.hot-visual-search-button{position:absolute;top:auto;right:5px;bottom:5px;display:grid;place-items:center;width:30px;min-width:30px;height:30px;min-height:30px;padding:0;border:1px solid rgba(255,255,255,.8);border-radius:50%;background:rgba(15,23,42,.7);color:#fff;font-size:16px;line-height:1;box-shadow:0 3px 10px rgba(15,23,42,.25);backdrop-filter:blur(8px)}.hot-product-image-editor .product-image-gallery-item>.hot-visual-search-button:hover,.hot-product-image-editor .product-image-gallery-item>.hot-visual-search-button:focus-visible{border-color:#fff;background:rgba(37,99,235,.82);color:#fff;transform:none}

/* Curator stock entry: keep the description control in the value column. */
.curator-stock-form .property-grid-form>label.curator-description-field{grid-template-columns:minmax(96px,124px) minmax(0,1fr);align-items:stretch}
.curator-stock-form .curator-description-editor{display:grid;grid-template-columns:minmax(0,1fr) max-content;min-width:0;border-left:1px solid #cfdce8;background:#fffdf4}
.curator-stock-form .curator-description-editor>textarea{width:100%;min-width:0;min-height:68px;padding:10px 12px;border:0;border-radius:0;background:#fffdf4;color:#0f172a;resize:vertical}
.curator-stock-form .curator-description-editor>textarea:focus{outline:0;background:#fff;box-shadow:inset 0 0 0 2px rgba(47,158,216,.24)}
.curator-stock-form .curator-description-editor>[data-curator-product-translate]{align-self:stretch;width:auto;min-width:max-content;padding:7px 11px;border:0;border-left:1px solid #cfdce8;border-radius:0;background:#f4f8fb;color:var(--ink);white-space:nowrap;box-shadow:none}
.curator-stock-form .curator-description-editor>[data-curator-product-translate]:hover,.curator-stock-form .curator-description-editor>[data-curator-product-translate]:focus-visible{background:#dceef5;color:var(--ink);transform:none}
.product-inline-translations{grid-column:1/-1;display:grid;grid-template-columns:1fr;margin:4px 0 10px;border:1px solid #cfdce8;border-bottom:0;background:#fff}.product-translation-card{display:grid;grid-template-columns:110px minmax(0,1fr);min-width:0;margin:0;background:#fff}.product-translation-card strong,.product-translation-card div{min-height:34px;padding:6px 9px;border-bottom:1px solid #cfdce8;display:flex;align-items:center}.product-translation-card strong{border-right:1px solid #cfdce8;background:#f1f5f8;color:var(--muted);font-size:.8rem}.product-translation-card div{white-space:pre-wrap;overflow-wrap:anywhere}.product-translation-status{padding:10px 12px;border-bottom:1px solid #cfdce8;background:#eef6fb;color:var(--muted)}.product-translation-status.error{background:#fff0f0;color:#b42318}.hot-product-main-fields>label:not(.hot-description-save-toggle){display:grid;grid-template-columns:110px minmax(0,1fr);align-items:center;column-gap:10px}.hot-product-main-fields>label:not(.hot-description-save-toggle)>small{grid-column:2}.hot-product-main-fields>.hot-product-name-field>.hot-name-search{min-width:0}
.hot-enterprise-product-page #hotEnterprisePromoteForm.capture-review-layout .hot-product-main-fields>label.hot-captioned-field{grid-template-columns:110px minmax(0,1fr);column-gap:7px}.hot-enterprise-product-page #hotEnterprisePromoteForm.capture-review-layout .hot-product-main-fields>label.hot-captioned-field>.hot-field-caption{justify-self:end;text-align:right}.hot-enterprise-product-page #hotEnterprisePromoteForm.capture-review-layout .hot-product-secondary-fields>label.hot-control-only{display:grid;grid-template-columns:minmax(0,1fr);align-items:start}.hot-enterprise-product-page #hotEnterprisePromoteForm.capture-review-layout .hot-product-secondary-fields>label.hot-control-only>.hot-field-caption{display:none}.hot-enterprise-product-page #hotEnterprisePromoteForm.capture-review-layout .hot-product-secondary-fields>label.hot-control-only>small{grid-column:1}.hot-enterprise-product-page>.platform-product-modal-head>div:last-child{justify-self:end}
.curator-capture-source-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:linear-gradient(120deg,var(--soft),var(--panel))}.curator-capture-source-actions>button{width:auto;min-height:36px;padding:6px 11px}.curator-capture-source-actions>small{flex-basis:100%;color:var(--muted)}.curator-capture-source-actions>button.danger{border-color:#c62828;background:#c62828;color:#fff}.curator-capture-source-actions>button.danger:hover,.curator-capture-source-actions>button.danger:focus-visible{background:#9f1f1f;color:#fff}
.curator-source-result-backdrop{position:fixed;inset:0;z-index:1320;display:grid;place-items:center;padding:22px;background:rgba(15,23,42,.58);backdrop-filter:blur(5px)}.curator-source-result-card{display:grid;grid-template-rows:auto auto minmax(0,1fr);width:fit-content;min-width:min(720px,calc(100vw - 44px));max-width:calc(100vw - 44px);max-height:calc(100vh - 44px);overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:0 24px 70px rgba(15,23,42,.28)}.curator-source-result-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border-bottom:1px solid var(--line);background:linear-gradient(110deg,var(--soft),var(--panel))}.curator-source-result-card>header>div{display:flex;align-items:center;gap:9px}.curator-source-result-card h3{margin:0}.curator-source-result-card [data-curator-source-close]{display:grid;place-items:center;width:38px;min-width:38px;height:38px;padding:0;border:0;background:transparent;color:var(--ink);font-size:26px;box-shadow:none}.curator-source-paid{padding:3px 8px;border-radius:999px;background:#c62828;color:#fff;font-size:.76rem;font-weight:800}.curator-source-result-actions{display:flex;flex-wrap:wrap;gap:8px;padding:10px 15px;border-bottom:1px solid var(--line);background:var(--soft)}.curator-source-result-actions>button{width:auto;min-height:34px;padding:5px 11px}.curator-source-result-list{display:grid;width:fit-content;max-width:100%;gap:12px;overflow:auto;padding:15px}.curator-source-result{display:grid;width:fit-content;min-width:100%;max-width:100%;gap:9px;padding:13px;border:1px solid var(--line);border-radius:11px;background:var(--panel)}.curator-source-result-field{display:grid;width:fit-content;max-width:100%;grid-template-columns:auto max-content max-content auto;align-items:center;gap:10px}.curator-source-result-field>input[type=checkbox]{width:18px;height:18px;margin:0}.curator-source-result-field>input[type=text]{width:fit-content;max-width:min(70vw,760px)}.curator-source-result-field>b{max-width:260px;white-space:normal}.curator-source-result-field>button{width:auto;min-height:32px;padding:5px 10px}.curator-source-result-images{display:flex;gap:9px;overflow-x:auto;padding:3px 0}.curator-source-result-images figure{display:grid;flex:0 0 auto;gap:5px;margin:0}.curator-source-result-images img{display:block;width:110px;height:110px;object-fit:contain;border:1px solid var(--line);border-radius:8px;background:#fff}.curator-source-result-images button{width:100%;min-height:30px;padding:4px 8px}.curator-source-result>a{justify-self:start;color:var(--primary)}
@media(max-width:640px){.curator-source-result-backdrop{padding:0;place-items:stretch}.curator-source-result-card{width:100%;min-width:0;max-width:100%;max-height:100vh;border-radius:0}.curator-source-result-list,.curator-source-result{width:100%}.curator-source-result-field{width:100%;grid-template-columns:auto minmax(0,1fr)}.curator-source-result-field>b,.curator-source-result-field>input[type=text],.curator-source-result-field>button{grid-column:2;max-width:100%}.curator-source-result-field>input[type=checkbox]{grid-column:1;grid-row:1}.curator-source-result-field>button{justify-self:start}.curator-source-result-images img{width:92px;height:92px}}
.platform-product-detail-form>label:has(>input),.platform-product-detail-form>label:has(>select),.platform-product-detail-form>label:has(>textarea),.platform-product-detail-form>.platform-product-name-field{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:center;column-gap:10px}.platform-product-detail-form>.platform-package-code-field>small{grid-column:2}.platform-product-detail-form>.platform-product-name-field>.hot-name-search{min-width:0}
.product-translation-sheet{position:relative}.product-translation-sheet.is-translating::after{content:attr(data-translation-status);position:absolute;top:7px;right:9px;padding:3px 9px;border-radius:999px;background:rgba(255,255,255,.92);border:1px solid #b9d4e5;color:var(--primary);font-size:.76rem;font-weight:700;box-shadow:0 2px 8px rgba(15,23,42,.08);pointer-events:none}
.platform-product-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}.platform-product-summary-grid>.product-inline-translations{grid-column:auto;margin:0}.platform-product-summary-left{display:grid;gap:8px;min-width:0}.platform-product-summary-left>label{display:grid!important;grid-template-columns:110px minmax(0,1fr)!important;align-items:center;column-gap:10px;min-width:0}.platform-product-summary-left>.platform-package-code-field>select{width:100%;min-width:0;max-width:none}.platform-product-summary-left>.platform-package-code-field>small{grid-column:2}.platform-product-description-input{width:100%;min-height:78px;box-sizing:border-box;resize:vertical}
.platform-product-detail-form>.platform-product-detail-image,.platform-product-detail-form>.platform-product-detail-image>.official-product-image-gallery{width:100%;min-width:0;max-width:none;box-sizing:border-box}.platform-product-detail-form>.platform-product-detail-image>.official-product-image-gallery{align-self:stretch}
.curator-stock-entry-panel .curator-stock-form .curator-required-label,.curator-stock-entry-panel .curator-stock-form .curator-required-label>b{color:#c62828!important;font:inherit;font-weight:800}.curator-stock-entry-panel .curator-stock-form .curator-required-label>b{margin-left:3px}
.curator-stock-entry-panel .curator-stock-header-actions>.curator-stock-site-required,.curator-stock-entry-panel .curator-stock-header-actions>.curator-stock-site-required>b{flex:0 0 auto;color:#c62828!important;font:inherit;font-weight:800;white-space:nowrap}.curator-stock-entry-panel .curator-stock-header-actions>.curator-stock-site-required>b{margin-left:3px}

@keyframes curator-stock-site-reminder-pulse{0%,76%,100%{border-color:var(--line);box-shadow:0 0 0 0 rgba(52,158,214,0);background:var(--panel)}84%{border-color:#55a9d5;box-shadow:0 0 0 4px rgba(52,158,214,.18);background:#eef9ff}92%{border-color:var(--line);box-shadow:0 0 0 0 rgba(52,158,214,0);background:var(--panel)}}
.curator-stock-header-actions>select.curator-stock-site-reminder{animation:curator-stock-site-reminder-pulse 7s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.curator-stock-header-actions>select.curator-stock-site-reminder{animation:none;border-color:#55a9d5;box-shadow:0 0 0 2px rgba(52,158,214,.12)}}

.curator-inbound-result{margin:0 12px 10px;padding:9px 11px;border:1px solid var(--line);border-radius:8px;overflow-wrap:anywhere}
.curator-inbound-result.success{border-color:#8bc9b7;background:#edf9f4;color:#1f6b57}
.curator-inbound-result.error{border-color:#e7aaa3;background:#fff1ef;color:#9d3027}
@media(max-width:700px){.curator-stock-form .curator-description-editor{grid-template-columns:1fr}.curator-stock-form .curator-description-editor>[data-curator-product-translate]{border-left:0;border-top:1px solid #cfdce8}}
.curator-platform-found{display:grid;gap:5px;padding:14px;border:1px solid #8cc5ab;border-radius:14px;background:#edf9f3;color:#174d35}.curator-platform-found strong{color:#08724a}.curator-platform-found small{color:#477261}
.curator-mobile-choice>small{position:absolute;top:max(18px,env(safe-area-inset-top));right:22px;color:var(--muted);font-weight:800}.curator-mobile-step{align-content:start;grid-auto-rows:max-content}.curator-mobile-step>.curator-mobile-create-action{justify-self:start;width:auto;min-height:44px;padding:9px 14px;font-size:14px;font-weight:800}.curator-assist-photo-tools{display:flex;justify-content:center;gap:10px}.curator-assist-photo-tools>button,.curator-assist-photo-tools>label{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px!important;margin:0!important;padding:8px 13px!important;border:1px solid var(--line)!important;border-radius:10px!important;background:var(--panel)!important;color:var(--primary)!important;font-size:14px!important;font-weight:800!important;cursor:pointer}.curator-assist-confirm [data-curator-assist-submit]:disabled{background:#d5e3e9!important;color:#526973!important;opacity:1!important}
.curator-mobile-enterprise-picker{width:100%;min-width:0;overflow:visible}.curator-mobile-enterprise-picker>.curator-mobile-wheel-select{display:block;width:100%!important;max-width:none!important;min-width:0!important;min-height:58px!important;padding-right:42px!important;appearance:auto!important;-webkit-appearance:menulist!important;font-size:17px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.curator-mobile-enterprise-picker>.curator-mobile-wheel-select option{white-space:nowrap!important}
.curator-mobile-forward{position:fixed!important;z-index:20;top:max(18px,env(safe-area-inset-top));right:18px;width:52px!important;min-width:52px!important;height:46px;min-height:46px!important;padding:0!important;color:var(--primary)!important;font-size:25px!important;line-height:1!important}.curator-mobile-forward:disabled{color:var(--muted)!important;opacity:.38}.curator-assist-scan .curator-mobile-forward{top:max(22px,calc(env(safe-area-inset-top) + 8px));right:22px;background:rgba(255,255,255,.9)!important}
.curator-mobile-wheel-field{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;width:100%!important;min-width:0!important;min-height:58px!important;padding:10px 16px!important;border:1px solid var(--line)!important;border-radius:12px!important;background:var(--panel)!important;color:var(--ink)!important;text-align:left!important;box-shadow:none!important}.curator-mobile-wheel-field>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important}.curator-mobile-wheel-field>b{font-size:22px}.curator-mobile-wheel-sheet{position:fixed;z-index:1000;inset:0}.curator-mobile-wheel-backdrop{position:absolute!important;inset:0;width:100%!important;height:100%!important;padding:0!important;border:0!important;border-radius:0!important;background:rgba(0,0,0,.42)!important}.curator-mobile-wheel-sheet>section{position:absolute;right:0;bottom:0;left:0;padding-bottom:env(safe-area-inset-bottom);background:#f8fafc;box-shadow:0 -12px 36px rgba(15,23,42,.24)}.curator-mobile-wheel-sheet>section>header{display:flex;align-items:center;justify-content:space-between;height:48px;padding:0 16px;border-bottom:1px solid #dbe4ea}.curator-mobile-wheel-sheet>section>header>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.curator-mobile-wheel-sheet>section>header>button{width:auto!important;min-width:0!important;min-height:36px!important;padding:5px 10px!important;border:0!important;background:transparent!important;color:var(--primary)!important;font-weight:900!important;box-shadow:none!important}.curator-mobile-wheel-window{position:relative;height:260px;overflow:hidden;background:linear-gradient(#eef2f5 0,#fff 38%,#fff 62%,#eef2f5 100%)}.curator-mobile-wheel-list{position:absolute;z-index:2;inset:0;overflow-y:auto;overscroll-behavior:contain;padding:104px 12px;scroll-snap-type:y mandatory;scrollbar-width:none}.curator-mobile-wheel-list::-webkit-scrollbar{display:none}.curator-mobile-wheel-list>button{display:block!important;width:100%!important;height:52px!important;min-height:52px!important;padding:0 12px!important;border:0!important;background:transparent!important;color:#718096!important;font-size:17px!important;font-weight:600!important;box-shadow:none!important;scroll-snap-align:center;transform:none!important}.curator-mobile-wheel-list>button>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important}.curator-mobile-wheel-list>button.active{color:var(--ink)!important;font-size:19px!important;font-weight:900!important}.curator-mobile-wheel-highlight{position:absolute;z-index:1;top:104px;right:12px;left:12px;height:52px;border-top:1px solid #cbd5df;border-bottom:1px solid #cbd5df;border-radius:8px;background:rgba(255,255,255,.58);pointer-events:none}
.curator-assist-confirm .curator-mobile-simple-form{gap:12px}.curator-assist-inline-row{display:grid;align-items:center;gap:8px}.curator-assist-inline-row>label{margin:0;color:#c62828;font-weight:800;white-space:nowrap}.curator-assist-inline-row>input,.curator-assist-inline-row>select{width:100%;min-width:0;min-height:46px}.curator-assist-barcode-row{grid-template-columns:auto minmax(0,1fr)}.curator-assist-quantity-row{grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr)}.curator-assist-price-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.curator-assist-price-row>label{display:grid;gap:6px;font-weight:800}.curator-assist-price-row>label:last-child>span{color:#c62828}.curator-assist-catalog{display:grid;gap:9px;padding:11px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.curator-assist-catalog>div:first-child{display:flex;justify-content:space-between;gap:10px;min-width:0}.curator-assist-catalog>div:first-child>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.curator-assist-catalog>div:first-child>span{flex:0 0 auto;color:var(--muted);white-space:nowrap}.curator-assist-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.curator-assist-gallery>button,.curator-assist-gallery>span{position:relative;display:grid!important;place-items:center;width:100%!important;min-width:0!important;aspect-ratio:1;padding:0!important;overflow:hidden;border:1px solid var(--line)!important;border-radius:11px!important;background:#edf2f5!important;box-shadow:none!important}.curator-assist-gallery img{display:block;width:100%;height:100%;object-fit:contain}.curator-assist-gallery>span>button:first-child{width:100%!important;height:100%!important;padding:0!important;border:0!important;background:transparent!important}.curator-assist-gallery>span>button:last-child{position:absolute;top:4px;right:4px;width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;border:0!important;border-radius:50%!important;background:rgba(153,27,27,.88)!important;color:#fff!important}.curator-assist-photo-empty{color:#8798a5;font-weight:800}.curator-assist-open-camera{justify-self:center;width:auto!important;min-height:44px!important}.curator-assist-end-option{display:flex!important;align-items:center;gap:9px;width:max-content;font-weight:800}.curator-assist-end-option>input{appearance:auto!important;width:20px!important;min-width:20px!important;height:20px!important;min-height:20px!important;margin:0!important;accent-color:var(--primary)}.curator-assist-full-camera{position:fixed;z-index:1200;inset:0;background:#000}.curator-assist-full-camera>video{display:block;width:100%;height:100%;object-fit:cover}.curator-assist-full-camera>.curator-camera-switch{right:22px;bottom:max(28px,env(safe-area-inset-bottom))}.curator-assist-full-camera>.curator-camera-shutter{bottom:max(24px,env(safe-area-inset-bottom))}.curator-assist-camera-finish{top:max(18px,env(safe-area-inset-top));right:18px;width:auto!important;min-width:74px!important;height:46px!important;padding:0 14px!important;border-radius:23px!important;font-weight:900!important}.curator-assist-photo-viewer{position:fixed!important;z-index:1400;inset:0;display:grid!important;place-items:center;width:100%!important;height:100%!important;padding:18px!important;border:0!important;border-radius:0!important;background:rgba(0,0,0,.92)!important}.curator-assist-photo-viewer>img{max-width:100%;max-height:100%;object-fit:contain}
.curator-assist-finish-only input:disabled,.curator-assist-finish-only select:disabled{border-color:#d7e0e5!important;background:#e7ecef!important;color:#8a989f!important;opacity:1!important}.curator-assist-finish-only .curator-assist-end-option{color:#87949b}.curator-assist-finish-only .curator-assist-end-option>input:disabled{filter:grayscale(1);opacity:.72!important}.curator-assist-disabled-catalog{background:#e7ecef!important;opacity:.72}
.curator-assist-known-catalog>div:first-child{display:grid;justify-content:stretch;gap:4px}.curator-assist-known-catalog>div:first-child>strong,.curator-assist-known-catalog>div:first-child>span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.curator-assist-known-catalog>div:first-child>span{justify-self:start}
.curator-assist-known-catalog>div:first-child>strong{overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;line-height:1.35}.curator-assist-known-catalog>div:first-child>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.curator-mobile-workflow-body input,.curator-mobile-workflow-body select,.curator-mobile-workflow-body textarea{font-size:16px!important}
.curator-assist-submit-row{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:12px}.curator-assist-submit-row>.curator-assist-end-option{margin:0;white-space:nowrap}.curator-assist-submit-row>button{width:100%!important;min-width:0!important;min-height:52px!important;margin:0!important}
.curator-mobile-step,.curator-mobile-choice{position:relative}.curator-mobile-nav-glass{position:absolute!important;z-index:30;top:max(16px,env(safe-area-inset-top));display:grid!important;place-items:center;width:54px!important;min-width:54px!important;height:54px!important;min-height:54px!important;margin:0!important;padding:0!important;border:1px solid rgba(255,255,255,.78)!important;border-radius:50%!important;background:linear-gradient(145deg,rgba(255,255,255,.78),rgba(134,205,238,.34))!important;color:#087fb9!important;box-shadow:inset 0 1px 1px rgba(255,255,255,.95),inset 0 -10px 20px rgba(20,119,170,.12),0 8px 24px rgba(16,80,112,.25)!important;backdrop-filter:blur(18px) saturate(1.7);-webkit-backdrop-filter:blur(18px) saturate(1.7);transform:none!important}.curator-mobile-nav-glass.curator-mobile-back{left:16px}.curator-mobile-nav-glass.curator-mobile-forward{right:16px}.curator-mobile-nav-glass>svg{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:3.1;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 1px rgba(255,255,255,.7))}.curator-mobile-nav-glass>svg.forward{transform:rotate(180deg)}.curator-mobile-nav-glass:hover:not(:disabled),.curator-mobile-nav-glass:focus-visible:not(:disabled),.curator-mobile-nav-glass:active:not(:disabled){border-color:#fff!important;background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(92,187,231,.48))!important;color:#036895!important;box-shadow:inset 0 1px 2px #fff,0 9px 28px rgba(0,110,165,.34)!important;transform:scale(1.04)!important}.curator-mobile-nav-glass:disabled{color:#8ba4b0!important;opacity:.42!important;filter:saturate(.55)}.curator-mobile-step>header{min-height:58px;padding:0 62px;justify-content:center!important;text-align:center}.curator-mobile-step>header>div{width:100%}.curator-assist-scan-head{min-height:62px;padding:8px 68px!important}.curator-assist-scan .curator-mobile-nav-glass,.curator-mobile-capture>.curator-universal-back{top:max(18px,env(safe-area-inset-top));border-color:rgba(255,255,255,.58)!important;background:linear-gradient(145deg,rgba(255,255,255,.34),rgba(44,151,205,.24))!important;color:#fff!important;box-shadow:inset 0 1px 1px rgba(255,255,255,.65),inset 0 -10px 18px rgba(2,28,46,.2),0 8px 24px rgba(0,0,0,.38)!important}.curator-assist-scan .curator-mobile-nav-glass.curator-mobile-back{left:22px}.curator-assist-scan .curator-mobile-nav-glass.curator-mobile-forward{right:22px}.curator-universal-back{position:absolute!important}
.curator-assist-confirm>header h2{display:none}.curator-assist-confirm>header{align-items:center}.curator-assist-confirm>header small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.curator-assist-confirm{overflow-x:hidden}.curator-assist-confirm .curator-mobile-simple-form{width:100%;min-width:0;overflow:hidden}.curator-assist-confirm .curator-mobile-simple-form input,.curator-assist-confirm .curator-mobile-simple-form select{max-width:100%;min-width:0!important}.curator-assist-confirm .curator-assist-barcode-row{grid-template-columns:max-content minmax(90px,1fr)}.curator-assist-confirm .curator-assist-quantity-row{grid-template-columns:max-content minmax(54px,.72fr) max-content minmax(76px,1fr);gap:7px}.curator-assist-confirm .curator-assist-price-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.curator-assist-confirm .curator-assist-price-row>label{min-width:0}.curator-assist-confirm .curator-assist-price-row input{width:100%}.curator-assist-confirm .curator-assist-submit-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.curator-assist-confirm .curator-assist-submit-row>.curator-assist-end-option{box-sizing:border-box;width:100%;min-width:0;min-height:52px;padding:8px 10px;border:2px solid #f2a91f;border-radius:12px;background:#fff4c7;color:#8a4b00;justify-content:center;font-weight:900}.curator-assist-confirm .curator-assist-submit-row>.curator-assist-end-option:has(input:checked){border-color:#e38b09;background:#ffe49a;color:#713b00;box-shadow:0 0 0 3px rgba(238,157,20,.16)}.curator-assist-confirm .curator-assist-submit-row>.curator-assist-end-option>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.curator-assist-finish-only .curator-assist-submit-row>.curator-assist-end-option,.curator-assist-finish-only .curator-assist-submit-row>.curator-assist-end-option:has(input:checked){border-color:#cbd5da;background:#e7ecef;color:#87949b;box-shadow:none}.curator-assist-confirm>header{box-sizing:border-box;width:100%;min-height:62px;padding-right:70px!important;padding-left:70px!important}.curator-assist-confirm>header>div{min-width:0;max-width:100%}.curator-assist-confirm>header small{max-width:100%;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;line-height:1.25}.curator-assist-confirm .curator-mobile-nav-glass.curator-mobile-forward{right:4px}.curator-assist-confirm .curator-mobile-nav-glass.curator-mobile-back{left:8px}
.curator-assist-confirm .curator-assist-end-option{position:relative;overflow:hidden;border-width:2px!important;background:linear-gradient(145deg,#fffdf6,#fff0ba)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 4px 12px rgba(155,98,0,.12)!important;cursor:pointer}.curator-assist-confirm .curator-assist-end-option>input{position:absolute!important;width:1px!important;min-width:1px!important;height:1px!important;min-height:1px!important;margin:0!important;padding:0!important;overflow:hidden;opacity:0!important;pointer-events:none}.curator-assist-confirm .curator-assist-end-option>span{display:flex;align-items:center;justify-content:center;gap:9px}.curator-assist-confirm .curator-assist-end-option>span::before{box-sizing:border-box;flex:0 0 27px;width:27px;height:27px;border:2px solid #d48a0b;border-radius:8px;background:#fff;content:"";box-shadow:inset 0 1px 2px rgba(71,42,0,.08),0 1px 3px rgba(115,70,0,.12);transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}.curator-assist-confirm .curator-assist-end-option>input:focus-visible+span::before{outline:3px solid rgba(14,165,233,.28);outline-offset:2px}.curator-assist-confirm .curator-assist-end-option>input:checked+span::before{border-color:#d67b00;background-color:#ed920e;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.2 4.2L19 7.4' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:center;background-repeat:no-repeat;background-size:21px;box-shadow:inset 0 1px 1px rgba(255,255,255,.38),0 3px 8px rgba(206,112,0,.28)}.curator-assist-confirm .curator-assist-end-option:has(input:checked){background:linear-gradient(145deg,#fff4c9,#ffdf82)!important}.curator-assist-finish-only .curator-assist-submit-row>.curator-assist-end-option,.curator-assist-finish-only .curator-assist-submit-row>.curator-assist-end-option:has(input:checked){background:#e7ecef!important;box-shadow:none!important;cursor:default}.curator-assist-finish-only .curator-assist-end-option>span::before,.curator-assist-finish-only .curator-assist-end-option>input:checked+span::before{border-color:#aebbc2;background-color:#b8c3c8;filter:grayscale(1);box-shadow:none}

#content>.panel,#content>:where(div,main,section):not(.panel)>.panel{overflow:visible!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}

#content>.order-sale-layout>.order-sale-selected-panel{border-top:1px solid var(--line)!important}

/* Replenishment: scan first, then edit the compact temporary order in place. */
.replenishment-inbound-page .inbound-workbench{grid-template-columns:minmax(0,1fr);gap:8px}
.replenishment-inbound-page .inbound-scan-panel{margin:0}
.replenishment-inbound-page .inbound-cart-panel{min-width:0;overflow:hidden}
.replenishment-inbound-page .inbound-cart-list{max-height:min(56vh,620px);padding:0;border:1px solid #cbd8e2;border-radius:9px 9px 0 0;background:#fff}
.replenishment-inbound-page .inbound-list-table{min-width:980px;table-layout:fixed}
.replenishment-inbound-page .inbound-list-table th,.replenishment-inbound-page .inbound-list-table td{height:34px;padding:3px 4px;border-right:1px solid #dbe4ea;border-bottom:1px solid #dbe4ea}
.replenishment-inbound-page .inbound-list-table th:last-child,.replenishment-inbound-page .inbound-list-table td:last-child{border-right:0}
.replenishment-inbound-page .inbound-list-table th{background:#edf2f5;color:#526574;font-size:11px;line-height:1.2;white-space:nowrap}
.replenishment-inbound-page .inbound-list-table td{background:#fffef7;font-size:12px;font-weight:650}
.replenishment-inbound-page .inbound-list-table th:nth-child(1){width:132px}.replenishment-inbound-page .inbound-list-table th:nth-child(2){width:74px}.replenishment-inbound-page .inbound-list-table th:nth-child(3){width:230px}.replenishment-inbound-page .inbound-list-table th:nth-child(4),.replenishment-inbound-page .inbound-list-table th:nth-child(5){width:105px}.replenishment-inbound-page .inbound-list-table th:nth-child(6){width:92px}.replenishment-inbound-page .inbound-list-table th:nth-child(7){width:170px}.replenishment-inbound-page .inbound-list-table th:nth-child(8){width:102px}.replenishment-inbound-page .inbound-list-table th:nth-child(9){width:36px}
.replenishment-inbound-page .inbound-draft-barcode{width:auto;padding-left:8px!important;font-size:11px;font-weight:800}
.replenishment-inbound-page .inbound-cart-panel .inbound-list-table input,.replenishment-inbound-page .inbound-cart-panel .inbound-list-table select{width:100%;min-width:0;max-width:none;min-height:28px;padding:3px 5px;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--ink);font:inherit;font-variant-numeric:tabular-nums;box-shadow:none}
.replenishment-inbound-page .inbound-cart-panel .inbound-list-table input:hover,.replenishment-inbound-page .inbound-cart-panel .inbound-list-table select:hover{border-color:#c7d6e1;background:#fff}
.replenishment-inbound-page .inbound-cart-panel .inbound-list-table input:focus,.replenishment-inbound-page .inbound-cart-panel .inbound-list-table select:focus{border-color:#58a9d3;background:#fff;outline:2px solid rgba(47,158,216,.15)}
.replenishment-inbound-page .inbound-cart-panel .inbound-list-table input:disabled,.replenishment-inbound-page .inbound-cart-panel .inbound-list-table select:disabled{border-color:transparent;background:#edf2f5;color:#7b8b96;opacity:1;cursor:not-allowed}
.replenishment-inbound-page .inbound-list-footer :disabled,.replenishment-inbound-page .inbound-evidence-actions .file-button.disabled{opacity:.58;cursor:not-allowed;pointer-events:none}
.replenishment-inbound-page .inbound-draft-quantity,.replenishment-inbound-page .inbound-draft-price{max-width:none;text-align:right}
.replenishment-inbound-page .inbound-draft-name-input{font-weight:750!important}
.replenishment-inbound-page .inbound-draft-remove{width:27px;min-width:27px;min-height:27px;border-radius:5px;font-size:15px;box-shadow:none}
.replenishment-inbound-page .inbound-list-table tbody tr.is-active{background:#fff3a8;box-shadow:inset 4px 0 #e5a900}
.replenishment-inbound-page .inbound-list-table tbody tr.is-public-gtin>td{background:#f0faf3}
.replenishment-inbound-page .inbound-list-table tbody tr.is-public-gtin .inbound-draft-barcode{color:#237a3c;box-shadow:inset 4px 0 #38a75a}
.replenishment-inbound-page .inbound-list-table tbody tr.is-enterprise-code>td{background:#fff8df}
.replenishment-inbound-page .inbound-list-table tbody tr.is-enterprise-code .inbound-draft-barcode{color:#a66a00;box-shadow:inset 4px 0 #e2aa20}
.replenishment-inbound-page .inbound-list-table tbody tr.is-unknown-code>td{background:#ffefed}
.replenishment-inbound-page .inbound-list-table tbody tr.is-unknown-code .inbound-draft-barcode{color:#b52d24;box-shadow:inset 4px 0 #d9473d}
.replenishment-inbound-page .inbound-list-footer{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;padding:8px;border:1px solid #cbd8e2;border-top:0;border-radius:0 0 9px 9px;background:#f8fafb}
.replenishment-inbound-page .inbound-footer-first-row{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;min-width:0}
.replenishment-inbound-page .inbound-footer-supplier,.replenishment-inbound-page .inbound-note-field{box-sizing:border-box;width:100%;min-width:0;min-height:34px;margin:0;padding:5px 8px;border:1px solid #cbd8e2;border-radius:7px;background:#fff;font-size:12px}
.replenishment-inbound-page .inbound-footer-second-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.replenishment-inbound-page .inbound-evidence-actions{display:flex;align-items:center;gap:5px;min-width:0;flex-wrap:nowrap}
.replenishment-inbound-page .inbound-evidence-actions button,.replenishment-inbound-page .inbound-evidence-actions .file-button{min-height:32px;padding:5px 9px;font-size:11px}
.replenishment-inbound-page .inbound-evidence-actions .inbound-evidence-camera-icon{display:grid;width:34px;min-width:34px;height:34px;min-height:34px;padding:0;place-items:center;font-size:18px;line-height:1}
.replenishment-inbound-page .inbound-evidence-actions .inbound-evidence-camera-icon.has-evidence{border-color:#3f9b77;background:#e6f6ef}
.replenishment-inbound-page .inbound-evidence-link{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.replenishment-inbound-page .inbound-list-submit{display:grid;grid-template-columns:auto minmax(220px,32vw) auto;align-items:center;justify-content:end;gap:8px;min-width:0;margin-left:auto}
.replenishment-inbound-page .inbound-list-submit>.inbound-footer-supplier{width:100%;max-width:420px}
.replenishment-inbound-page .inbound-submit-summary{color:var(--muted);font-size:12px;font-weight:800;white-space:nowrap}
.replenishment-inbound-page .inbound-list-submit>button{width:auto;min-width:132px;min-height:36px;padding:6px 15px;white-space:nowrap}
/* The curator phone shell owns the only persistent chrome; workflow children use the full viewport. */
body.curator-mobile-capture-body .curator-mobile-capture-shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:100%;height:100dvh;min-height:100dvh;background:#f3f7f8}
body.curator-mobile-capture-body .curator-mobile-shell-header{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:64px;padding:8px 14px;border-bottom:1px solid var(--line);background:rgba(250,253,254,.96)}
body.curator-mobile-capture-body .curator-mobile-shell-header[hidden],body.curator-mobile-capture-body .curator-mobile-shell-nav[hidden]{display:none!important}
body.curator-mobile-capture-body .curator-mobile-brand,body.curator-mobile-capture-body .curator-mobile-account{display:flex!important;align-items:center;min-width:0!important;min-height:46px!important;margin:0!important;padding:2px 4px!important;border:0!important;background:transparent!important;color:var(--ink)!important;box-shadow:none!important;transform:none!important}
body.curator-mobile-capture-body .curator-mobile-brand{gap:9px;text-align:left!important}
body.curator-mobile-capture-body .curator-mobile-brand>img{width:40px;height:40px;object-fit:contain}
body.curator-mobile-capture-body .curator-mobile-brand>span{display:grid;line-height:1.08}
body.curator-mobile-capture-body .curator-mobile-brand strong{font-size:20px}
body.curator-mobile-capture-body .curator-mobile-brand small{overflow:hidden;max-width:34vw;color:var(--muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}
body.curator-mobile-capture-body .curator-mobile-account{gap:7px;justify-content:flex-end;text-align:right!important}
body.curator-mobile-capture-body .curator-mobile-account>.user-avatar{width:38px;height:38px;min-width:38px}
body.curator-mobile-capture-body .curator-mobile-account>strong{overflow:hidden;max-width:28vw;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
body.curator-mobile-capture-body .curator-mobile-shell-content{min-width:0;min-height:0;overflow:auto}
body.curator-mobile-capture-body .curator-mobile-shell-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:7px 12px calc(7px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:rgba(250,253,254,.97)}
body.curator-mobile-capture-body .curator-mobile-shell-nav>button{display:grid!important;grid-template-columns:auto auto;align-items:center;justify-content:center;gap:8px;min-width:0!important;min-height:50px!important;padding:6px 9px!important;border:0!important;border-radius:14px!important;background:transparent!important;color:var(--muted)!important;box-shadow:none!important;transform:none!important}
body.curator-mobile-capture-body .curator-mobile-shell-nav>button:first-child{background:#dff1f8!important;color:#087fb9!important}
body.curator-mobile-capture-body .curator-mobile-shell-nav>button>.nav-icon{width:25px;height:25px}
body.curator-mobile-capture-body .curator-mobile-shell-nav>button>strong{font-size:13px;white-space:nowrap}
body.curator-mobile-capture-body.curator-mobile-shell-home .curator-mobile-choice{min-height:100%;align-content:center;padding:20px 24px;background:radial-gradient(circle at 18% 10%,rgba(91,166,214,.22),transparent 35%),linear-gradient(160deg,#f8fcfd,#eaf3f5)}
body.curator-mobile-capture-body.curator-mobile-shell-home #content{height:auto!important;min-height:0!important;overflow:auto!important}
body.curator-mobile-capture-body.curator-mobile-shell-home .curator-mobile-choice>p{margin:0 0 18px;font-weight:800}
body.curator-mobile-capture-body.curator-mobile-shell-home .curator-mobile-choice>div{margin-top:0}
body.curator-mobile-capture-body.curator-mobile-shell-child .curator-mobile-capture-shell{grid-template-rows:0 minmax(0,1fr) 0}
body.curator-mobile-capture-body.curator-mobile-shell-child .curator-mobile-shell-content{height:100dvh;overflow:auto}
body.curator-mobile-capture-body.curator-mobile-shell-child.curator-mobile-workflow-body .curator-mobile-capture-shell,body.curator-mobile-capture-body.curator-mobile-shell-child.curator-mobile-workflow-body #content{min-height:100dvh;height:100dvh;overflow:auto}
body.curator-mobile-capture-body .curator-mobile-profile{gap:12px;padding-bottom:24px}
body.curator-mobile-capture-body .curator-mobile-profile-card{display:grid;gap:12px;padding:15px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}
body.curator-mobile-capture-body .curator-mobile-profile-card>h3,body.curator-mobile-capture-body .curator-mobile-profile-card>p{margin:0}
body.curator-mobile-capture-body .curator-mobile-profile-card>p{color:var(--muted);font-weight:800}
body.curator-mobile-capture-body .curator-mobile-profile-card>p.ok{color:#16835c}
body.curator-mobile-capture-body .curator-mobile-profile-card>form{display:grid;gap:11px}
body.curator-mobile-capture-body .curator-mobile-profile-card label{display:grid;gap:5px;font-weight:800}
body.curator-mobile-capture-body .curator-mobile-profile-card input{min-height:48px}
body.curator-mobile-capture-body .curator-mobile-profile-card button{min-height:48px}
body.curator-mobile-capture-body .curator-mobile-logout{min-height:50px!important;border-color:#e8b8b8!important;background:#fff2f2!important;color:#b42318!important;font-weight:900!important}
body.curator-mobile-capture-body .mobile-curator-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body.curator-mobile-capture-body .curator-mobile-product-list-page{gap:10px;padding:12px}
body.curator-mobile-capture-body .curator-mobile-list-head{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;min-height:58px;padding:0 60px;text-align:center}
body.curator-mobile-capture-body .curator-mobile-list-head h2{margin:0;font-size:23px;line-height:1.15}
body.curator-mobile-capture-body .curator-mobile-abnormal-filter{display:inline-flex;align-items:center;justify-content:center;gap:6px;margin-top:4px;color:#b42318;font-size:13px;font-weight:900;white-space:nowrap}
body.curator-mobile-capture-body .curator-mobile-abnormal-filter input{width:18px;min-height:18px;margin:0}
body.curator-mobile-capture-body .curator-mobile-product-search{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:7px}
body.curator-mobile-capture-body .curator-mobile-product-search input{min-width:0;min-height:46px}
body.curator-mobile-capture-body .curator-mobile-product-search button{width:48px!important;min-width:48px!important;min-height:46px!important;padding:0!important;font-size:25px!important}
body.curator-mobile-capture-body .curator-mobile-product-list{display:grid;gap:7px;min-width:0}
body.curator-mobile-capture-body .curator-mobile-product-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr);min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:none}
body.curator-mobile-capture-body article.curator-mobile-product-row{grid-template-columns:minmax(0,1fr) 42px}
body.curator-mobile-capture-body .curator-mobile-product-open{display:grid!important;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:10px;width:100%!important;min-width:0!important;min-height:86px!important;margin:0!important;padding:7px 9px!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--ink)!important;text-align:left!important;box-shadow:none!important;transform:none!important}
body.curator-mobile-capture-body button.curator-mobile-product-row.curator-mobile-product-open{grid-template-columns:72px minmax(0,1fr);border:1px solid var(--line)!important;border-radius:14px!important;background:var(--panel)!important}
body.curator-mobile-capture-body .curator-mobile-product-thumb{display:grid;place-items:center;width:72px;height:72px;overflow:hidden;border-radius:10px;background:#eef3f5}
body.curator-mobile-capture-body .curator-mobile-product-thumb img{display:block;width:100%;height:100%;padding:4px;box-sizing:border-box;object-fit:contain}
body.curator-mobile-capture-body .curator-mobile-product-placeholder{font-size:30px;opacity:.58}
body.curator-mobile-capture-body .curator-mobile-product-lines{display:grid;gap:3px;min-width:0}
body.curator-mobile-capture-body .curator-mobile-product-lines strong,body.curator-mobile-capture-body .curator-mobile-product-lines span,body.curator-mobile-capture-body .curator-mobile-product-lines small{display:block;overflow:hidden;text-overflow:ellipsis}
body.curator-mobile-capture-body .curator-mobile-product-lines strong{font-size:16px;line-height:1.25;white-space:normal}
body.curator-mobile-capture-body .curator-mobile-product-lines span{font-size:14px;font-weight:800;white-space:nowrap}
body.curator-mobile-capture-body .curator-mobile-product-lines small{color:var(--muted);font-size:12px;line-height:1.25;white-space:normal}
body.curator-mobile-capture-body .curator-mobile-product-delete{align-self:stretch;width:42px!important;min-width:42px!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-left:1px solid #efcaca!important;border-radius:0!important;background:#fff4f4!important;color:#b42318!important;font-size:25px!important;box-shadow:none!important}
body.curator-mobile-capture-body .curator-mobile-list-empty{padding:28px 12px;border:1px solid var(--line);border-radius:14px;color:var(--muted);text-align:center;font-weight:800}
body.curator-mobile-capture-body .curator-mobile-list-pagination{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px}
body.curator-mobile-capture-body .curator-mobile-list-pagination button{width:auto!important;min-width:76px!important;min-height:42px!important;padding:6px 10px!important}
body.curator-mobile-capture-body .curator-mobile-list-pagination span{text-align:center;color:var(--muted);font-size:12px;font-weight:800}
body.curator-mobile-capture-body .platform-product-gtin.invalid{color:#c62828!important;font-weight:900}
body.curator-mobile-capture-body .curator-mobile-platform-product-list-panel{gap:0;padding:10px 0 0}
body.curator-mobile-capture-body .curator-mobile-platform-product-list-panel>.curator-mobile-list-head{margin:0 10px 8px}
body.curator-mobile-capture-body .curator-mobile-platform-product-list-panel>.platform-product-list-toolbar{display:grid;gap:8px;padding:8px 10px}
body.curator-mobile-capture-body .curator-mobile-platform-product-list-panel .platform-product-source-filters{gap:7px 12px}
body.curator-mobile-capture-body .curator-mobile-platform-product-list-panel .platform-product-source-filters label{font-size:12px}
body.curator-mobile-capture-body .curator-mobile-platform-product-list-panel .platform-product-search{width:100%}
body.curator-mobile-capture-body .curator-mobile-platform-product-list-panel>.table-wrap{max-height:calc(100dvh - 264px);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
body.curator-mobile-capture-body .curator-mobile-platform-product-list-panel>.platform-product-pagination{box-sizing:border-box;justify-content:space-between;width:100%;gap:6px;padding:8px 10px 12px}
body.curator-mobile-capture-body .curator-mobile-platform-product-list-panel>.platform-product-pagination button{min-height:40px;padding:6px 10px}
body.curator-mobile-capture-body .curator-mobile-platform-product-list-panel>.platform-product-pagination span{color:var(--muted);font-size:11px;font-weight:800;text-align:center}
body.curator-mobile-capture-body .platform-product-gtin.non-public{color:#1d4ed8!important;font-weight:900}

/* Personal cash account. Desktop and phone layouts are deliberately independent. */
.cash-account-page{display:grid;gap:12px;width:100%;min-width:0}
.cash-account-summary{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:1px;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--line)}
.cash-account-summary>div{display:grid;gap:4px;padding:14px 16px;background:var(--panel)}
.cash-account-summary span{color:var(--muted);font-size:13px;font-weight:800}.cash-account-summary strong{font-size:24px;line-height:1.1}
.cash-settlement-form{display:grid;grid-template-columns:auto minmax(190px,.6fr) minmax(260px,1fr) minmax(180px,1fr) auto;align-items:end;gap:10px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.cash-settlement-methods{display:flex;align-items:center;gap:6px}.cash-settlement-methods label{display:flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:11px;font-weight:800;white-space:nowrap}.cash-settlement-methods input{width:18px;height:18px}
.cash-settlement-amount{display:grid;gap:3px}.cash-settlement-amount span{color:var(--muted);font-size:12px;font-weight:800}.cash-settlement-amount input,.cash-settlement-form>input{width:100%;min-width:0;min-height:44px}
.cash-settlement-evidence{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;min-width:0}.cash-settlement-evidence label{display:flex;align-items:center;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:11px;background:#edf5fa;color:var(--primary);font-weight:850;cursor:pointer;white-space:nowrap}.cash-settlement-evidence input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}.cash-settlement-evidence>span{overflow:hidden;color:var(--muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.cash-settlement-form>button{min-height:44px;white-space:nowrap}
.cash-settlement-evidence label[hidden]{display:none!important}
.cash-account-table{overflow:auto;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.cash-account-table h3{margin:0;padding:10px 12px;border-bottom:1px solid var(--line);font-size:16px}.cash-account-table table{width:100%;border-collapse:collapse}.cash-account-table th,.cash-account-table td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}.cash-account-table th{background:#eaf1f4;color:#526474;font-size:12px}.cash-account-table td{font-size:13px}.cash-account-table .cash-credit{color:#147a55;font-weight:850}.cash-account-table .cash-debit{color:#bb2929;font-weight:850}
.cash-management-evidence{display:block;width:min(100%,520px);margin:12px 0}.cash-management-evidence img{display:block;width:100%;max-height:420px;border:1px solid var(--line);border-radius:12px;object-fit:contain}
.manager-mobile-body .cash-account-page{gap:10px;padding:0 2px}.manager-mobile-body .cash-account-summary{grid-template-columns:1fr}.manager-mobile-body .cash-account-summary>div{grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:10px 12px}.manager-mobile-body .cash-account-summary strong{font-size:19px}.manager-mobile-body .cash-settlement-form{grid-template-columns:1fr;padding:10px}.manager-mobile-body .cash-settlement-methods{display:grid;grid-template-columns:1fr 1fr}.manager-mobile-body .cash-settlement-methods label{justify-content:center}.manager-mobile-body .cash-settlement-evidence{grid-template-columns:1fr}.manager-mobile-body .cash-settlement-evidence label{justify-content:center}.manager-mobile-body .cash-account-table{overflow:visible}.mobile-cash-account-list{display:grid}.mobile-cash-account-list article{display:grid;gap:5px;padding:10px 12px;border-bottom:1px solid var(--line)}.mobile-cash-account-list article:last-child{border-bottom:0}.mobile-cash-account-list article>div{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.mobile-cash-account-list article span,.mobile-cash-account-list article time{overflow:hidden;color:var(--muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.mobile-cash-account-list article b{font-size:16px}.mobile-cash-account-list .empty{padding:16px;text-align:center}

/* Administrative read-only values remain selectable for copying, but look and behave non-editable. */
.phone-input.phone-input-readonly {
  background: #edf2f5 !important;
}
.phone-input.phone-input-readonly > select:disabled,
.phone-input.phone-input-readonly > input[readonly],
.admin-inline-form input[readonly],
.admin-detail-form input[readonly],
.staff-readonly-detail input[readonly],
.enterprise-information-config input[readonly] {
  background: #edf2f5 !important;
  color: #667680 !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

.business-logo-editor {
  display: grid;
  grid-template-columns: minmax(110px,138px) max-content;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border-right: 1px solid #d9e4ee;
  border-bottom: 1px solid #d9e4ee;
  background: #f4f7fb;
  color: #506079;
  font-size: 13px;
  font-weight: 850;
}
.property-grid-form > .business-logo-editor { grid-column: 1 / -1; }
.business-logo-editor .cropper { width: max-content; max-width: 100%; }
.business-logo-editor .cropper-actions button {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 5px;
}
.site-information-config-form {
  display: grid;
  grid-template-columns: max-content minmax(320px,1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
}
.site-information-readonly { display: grid; gap: 7px; }
.site-information-readonly label {
  display: grid;
  grid-template-columns: 90px minmax(0,1fr);
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}
.site-information-readonly input {
  min-width: 0;
  width: 100%;
  background: #edf2f5;
}
.site-information-readonly .site-order-contact-field input {
  background: #fff;
}
.site-information-readonly .site-order-contact-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}
.restaurant-waiter-page{display:grid;gap:12px;padding:8px 8px 28px}
.restaurant-waiter-page>h1{margin:0;text-align:center;font-size:1.35rem;line-height:1.2}
.restaurant-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:38px}
.restaurant-section-head strong{font-size:1rem}
.restaurant-check-picker,.restaurant-order-context,.restaurant-menu,.restaurant-draft,.restaurant-existing-items{border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.72);padding:10px}
.restaurant-check-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 4px}
.restaurant-check-chips>button{flex:0 0 148px;display:grid;gap:2px;text-align:left;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.restaurant-check-chips>button.active{border-color:var(--primary);background:var(--primary-soft)}
.restaurant-check-chips b,.restaurant-check-chips span,.restaurant-check-chips em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.restaurant-check-chips span{font-size:.76rem;color:var(--muted)}
.restaurant-check-chips em{font-style:normal;font-weight:800;color:var(--primary)}
.restaurant-empty-inline{padding:8px;color:var(--muted)}
.restaurant-order-context{display:grid;grid-template-columns:minmax(100px,140px) 1fr auto;gap:8px;align-items:end}
.restaurant-order-context>label{display:grid;gap:3px}
.restaurant-order-context input[type=number]{width:100%;min-height:42px;font-size:16px}
.restaurant-order-context fieldset{display:flex;align-items:center;gap:10px;min-width:0;min-height:42px;padding:4px 8px;border:1px solid var(--line);border-radius:12px}
.restaurant-order-context fieldset label{display:flex;align-items:center;gap:5px;min-width:0}
.restaurant-order-context fieldset span{white-space:nowrap;font-size:.84rem}
.restaurant-category-strip{display:flex;gap:7px;overflow-x:auto;padding-bottom:8px}
.restaurant-category-strip button{flex:0 0 auto;padding:7px 12px;border-radius:999px}
.restaurant-category-strip button.active{color:#fff;background:var(--primary)}
.restaurant-dish-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.restaurant-dish-grid>button{display:grid;grid-template-columns:58px minmax(0,1fr);grid-template-rows:auto auto;gap:3px 8px;align-items:center;min-height:72px;padding:7px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.restaurant-dish-grid>button>span{grid-row:1/3;width:58px;height:58px;border-radius:9px;overflow:hidden;background:var(--surface-soft)}
.restaurant-dish-grid>button img{width:100%;height:100%;object-fit:cover}
.restaurant-dish-grid>button strong{align-self:end;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.restaurant-dish-grid>button b{align-self:start;color:var(--primary)}
.restaurant-draft-list{display:grid}
.restaurant-draft-list>div:not(.empty){display:grid;grid-template-columns:48px minmax(0,1fr) auto 38px 34px 38px;gap:6px;align-items:center;min-height:58px;padding:5px 0;border-bottom:1px solid var(--line)}
.restaurant-draft-list>div>span:first-child{width:48px;height:48px;border-radius:9px;overflow:hidden;background:var(--surface-soft);display:grid;place-items:center}
.restaurant-draft-list img{width:100%;height:100%;object-fit:cover}
.restaurant-draft-list small{color:var(--primary);font-weight:800}
.restaurant-draft-list button{min-width:44px;min-height:44px;padding:0;border-radius:10px}
.dish-image-action svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.restaurant-submit-order{width:100%;margin-top:10px}
.restaurant-existing-items{display:grid;gap:8px}
.restaurant-existing-items article{border:1px solid var(--line);border-radius:12px;padding:8px}
.restaurant-existing-items article header{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center}
.restaurant-existing-items article header span{color:var(--muted)}
.restaurant-existing-items article>div{display:flex;flex-wrap:wrap;gap:4px 12px;padding:6px 0;font-size:.86rem}
.restaurant-existing-items article footer{display:flex;justify-content:flex-end;gap:8px}
.restaurant-payment-modal{position:fixed;inset:0;z-index:1500;display:grid;place-items:center;padding:16px;background:rgba(7,18,32,.74)}
.restaurant-payment-modal>section{width:min(520px,100%);padding:12px;border-radius:18px;background:var(--surface)}
.restaurant-payment-modal header{display:flex;align-items:center;justify-content:space-between}
.restaurant-payment-modal header button{min-width:42px;min-height:42px;padding:0}
.restaurant-click-camera{position:relative;aspect-ratio:3/4;margin-top:8px;overflow:hidden;border-radius:14px;background:#07111e}
.restaurant-click-camera video{width:100%;height:100%;object-fit:cover}
.restaurant-click-camera>div{position:absolute;inset:24%;border:3px solid #38e1c1;border-radius:14px;box-shadow:0 0 0 999px rgba(0,0,0,.22)}
.restaurant-payment-modal p{margin:8px 0 0;text-align:center;font-weight:700}
.restaurant-cashier-panel{margin-top:12px}
.restaurant-cashier-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:12px}
.restaurant-cashier-layout>nav{display:grid;align-content:start;gap:6px;max-height:430px;overflow-y:auto}
.restaurant-cashier-layout>nav button{display:grid;grid-template-columns:1fr auto;gap:2px 8px;text-align:left;padding:8px 10px}
.restaurant-cashier-layout>nav button.active{border-color:var(--primary);background:var(--primary-soft)}
.restaurant-cashier-layout>nav button span{grid-column:1;color:var(--muted);font-size:.8rem}
.restaurant-cashier-layout>nav button em{grid-column:2;grid-row:1/3;align-self:center;font-style:normal;font-weight:800}
.restaurant-cashier-detail>header{display:flex;justify-content:space-between;gap:12px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.restaurant-cashier-detail>header>div{display:grid;gap:2px}
.restaurant-cashier-detail>header>div:last-child{text-align:right}
.restaurant-cashier-items{display:grid;max-height:270px;overflow-y:auto}
.restaurant-cashier-items>div{display:grid;grid-template-columns:32px 1fr auto;gap:8px;padding:7px 0;border-bottom:1px solid var(--line)}
.restaurant-cashier-settle,.restaurant-receipts{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:10px}
.mobile-office-body .restaurant-waiter-page{padding-inline:4px}
.mobile-office-body .restaurant-order-context{grid-template-columns:105px 1fr}
.mobile-office-body .restaurant-order-context>button{grid-column:1/-1}

/* Platform product detail has a dedicated phone layout; it never inherits the desktop modal grid. */
body.curator-mobile-capture-body .mobile-platform-product-detail,
body.mobile-office-body .mobile-platform-product-detail{position:relative;display:grid;gap:10px;box-sizing:border-box;width:100%;min-width:0;padding:10px 10px 30px;color:var(--ink)}
body.curator-mobile-capture-body .mobile-platform-product-head,
body.mobile-office-body .mobile-platform-product-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:9px;min-height:58px;padding:0 2px 8px;border-bottom:1px solid var(--line)}
body.curator-mobile-capture-body .mobile-platform-product-head{padding-right:64px;padding-left:64px}
body.curator-mobile-capture-body .mobile-platform-product-head>div,
body.mobile-office-body .mobile-platform-product-head>div{display:grid;min-width:0;text-align:left}
body.curator-mobile-capture-body .mobile-platform-product-head h1,
body.mobile-office-body .mobile-platform-product-head h1{overflow:hidden;margin:0;font-size:21px;line-height:1.12;text-overflow:ellipsis;white-space:nowrap}
body.curator-mobile-capture-body .mobile-platform-product-head small,
body.mobile-office-body .mobile-platform-product-head small{overflow:hidden;color:var(--muted);font-size:11px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
body.curator-mobile-capture-body .mobile-platform-product-head>button,
body.mobile-office-body .mobile-platform-product-head>button{width:auto!important;min-width:70px!important;min-height:40px!important;margin:0!important;padding:6px 12px!important;border-radius:10px!important;box-shadow:none!important}
body.curator-mobile-capture-body .mobile-platform-product-form,
body.mobile-office-body .mobile-platform-product-form{display:grid;gap:10px;min-width:0}
body.curator-mobile-capture-body .mobile-platform-fields,
body.mobile-office-body .mobile-platform-fields{display:grid;gap:1px;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--line)}
body.curator-mobile-capture-body .mobile-platform-fields>label,
body.mobile-office-body .mobile-platform-fields>label{display:grid;grid-template-columns:60px minmax(0,1fr);align-items:center;gap:7px;min-width:0;margin:0;padding:6px 8px;background:var(--panel)}
body.curator-mobile-capture-body .mobile-platform-fields>label>span:first-child,
body.mobile-office-body .mobile-platform-fields>label>span:first-child{overflow:hidden;color:var(--muted);font-size:12px;font-weight:850;text-overflow:ellipsis;white-space:nowrap}
body.curator-mobile-capture-body .mobile-platform-fields input,
body.mobile-office-body .mobile-platform-fields input{box-sizing:border-box;width:100%;min-width:0!important;min-height:40px!important;margin:0;padding:7px 9px;border-radius:8px;font-size:16px!important}
body.curator-mobile-capture-body .mobile-platform-fields input[readonly],
body.mobile-office-body .mobile-platform-fields input[readonly]{border-color:transparent;background:#f3f6f7;color:#667680}
body.curator-mobile-capture-body .mobile-platform-name>span:last-child,
body.mobile-office-body .mobile-platform-name>span:last-child{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:6px;min-width:0}
body.curator-mobile-capture-body .mobile-platform-name button,
body.mobile-office-body .mobile-platform-name button{width:42px!important;min-width:42px!important;min-height:40px!important;margin:0!important;padding:0!important;border-radius:8px!important;box-shadow:none!important}
body.curator-mobile-capture-body .mobile-platform-translations,
body.mobile-office-body .mobile-platform-translations{display:grid;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--line)}
body.curator-mobile-capture-body .mobile-platform-translations>div,
body.mobile-office-body .mobile-platform-translations>div{display:grid;grid-template-columns:92px minmax(0,1fr);gap:8px;padding:7px 9px;background:var(--panel)}
body.curator-mobile-capture-body .mobile-platform-translations>div+div,
body.mobile-office-body .mobile-platform-translations>div+div{border-top:1px solid var(--line)}
body.curator-mobile-capture-body .mobile-platform-translations b,
body.mobile-office-body .mobile-platform-translations b{color:var(--muted);font-size:12px}
body.curator-mobile-capture-body .mobile-platform-translations span,
body.mobile-office-body .mobile-platform-translations span{min-width:0;overflow-wrap:anywhere;font-size:13px;line-height:1.3}
body.curator-mobile-capture-body .mobile-platform-translations>p,
body.mobile-office-body .mobile-platform-translations>p{margin:0;padding:12px;background:var(--panel);color:var(--muted);text-align:center}
body.curator-mobile-capture-body .mobile-platform-reference,
body.mobile-office-body .mobile-platform-reference{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--line)}
body.curator-mobile-capture-body .mobile-platform-reference>div,
body.mobile-office-body .mobile-platform-reference>div{display:grid;align-content:start;gap:3px;min-width:0;padding:8px 9px;background:var(--panel)}
body.curator-mobile-capture-body .mobile-platform-reference>div:nth-child(even),
body.mobile-office-body .mobile-platform-reference>div:nth-child(even){border-left:1px solid var(--line)}
body.curator-mobile-capture-body .mobile-platform-reference>div:nth-child(n+3),
body.mobile-office-body .mobile-platform-reference>div:nth-child(n+3){border-top:1px solid var(--line)}
body.curator-mobile-capture-body .mobile-platform-reference b,
body.mobile-office-body .mobile-platform-reference b{color:var(--muted);font-size:11px}
body.curator-mobile-capture-body .mobile-platform-reference span,
body.mobile-office-body .mobile-platform-reference span{min-width:0;overflow:hidden;font-size:13px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
body.curator-mobile-capture-body .mobile-platform-reference span.multiline,
body.mobile-office-body .mobile-platform-reference span.multiline{overflow:visible;text-overflow:clip;white-space:pre-line}
body.curator-mobile-capture-body .mobile-platform-gallery-block,
body.mobile-office-body .mobile-platform-gallery-block{display:grid;gap:7px;min-width:0;padding-top:2px}
body.curator-mobile-capture-body .mobile-platform-gallery-block>header,
body.mobile-office-body .mobile-platform-gallery-block>header{display:flex;align-items:center;justify-content:space-between;min-height:28px;padding:0 2px}
body.curator-mobile-capture-body .mobile-platform-gallery-block h2,
body.mobile-office-body .mobile-platform-gallery-block h2{margin:0;font-size:16px}
body.curator-mobile-capture-body .mobile-platform-gallery-block>header span,
body.mobile-office-body .mobile-platform-gallery-block>header span{color:var(--muted);font-size:12px;font-weight:850}
body.curator-mobile-capture-body .mobile-platform-gallery,
body.mobile-office-body .mobile-platform-gallery{display:flex;gap:8px;min-width:0;overflow-x:auto;padding:0 1px 5px;scrollbar-width:thin}
body.curator-mobile-capture-body .mobile-platform-gallery article,
body.mobile-office-body .mobile-platform-gallery article{position:relative;flex:0 0 112px;width:112px;height:112px;overflow:hidden;border:1px solid var(--line);border-radius:11px;background:#eef3f5}
body.curator-mobile-capture-body .mobile-platform-image-preview,
body.mobile-office-body .mobile-platform-image-preview{display:block!important;width:100%!important;min-width:0!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;transform:none!important}
body.curator-mobile-capture-body .mobile-platform-image-preview img,
body.mobile-office-body .mobile-platform-image-preview img{display:block;width:100%;height:100%;object-fit:contain}
body.curator-mobile-capture-body .mobile-platform-image-search,
body.mobile-office-body .mobile-platform-image-search{position:absolute!important;right:5px;bottom:5px;display:grid!important;place-items:center;width:44px!important;max-width:none!important;min-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;border:1px solid rgba(255,255,255,.78)!important;border-radius:999px!important;background:rgba(27,54,68,.76)!important;color:#fff!important;font-size:17px!important;font-weight:900!important;line-height:1!important;white-space:nowrap;box-shadow:none!important;backdrop-filter:blur(8px)}
body.curator-mobile-capture-body .mobile-platform-gallery>p,
body.mobile-office-body .mobile-platform-gallery>p{box-sizing:border-box;width:100%;margin:0;padding:22px 10px;border:1px dashed var(--line);border-radius:11px;color:var(--muted);text-align:center}
body.curator-mobile-capture-body .mobile-platform-upload-actions,
body.mobile-office-body .mobile-platform-upload-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
body.curator-mobile-capture-body .mobile-platform-upload-actions label,
body.mobile-office-body .mobile-platform-upload-actions label,
body.curator-mobile-capture-body .mobile-platform-text-image-search,
body.mobile-office-body .mobile-platform-text-image-search{display:grid!important;place-items:center;width:100%!important;min-width:0!important;min-height:42px!important;margin:0!important;padding:5px!important;border:1px solid #9dc4d6!important;border-radius:10px!important;background:#e9f4f9!important;color:#086f9d!important;font-size:20px!important;font-weight:900!important;line-height:1!important;text-align:center;white-space:normal;box-shadow:none!important;transform:none!important;cursor:pointer}
body.curator-mobile-capture-body .mobile-platform-upload-actions label,
body.mobile-office-body .mobile-platform-upload-actions label{font-size:20px!important;line-height:1!important}
body.curator-mobile-capture-body .mobile-platform-upload-actions input,
body.mobile-office-body .mobile-platform-upload-actions input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}
body.curator-mobile-capture-body .mobile-platform-description,
body.mobile-office-body .mobile-platform-description{display:grid;gap:5px;min-width:0}
body.curator-mobile-capture-body .mobile-platform-description>span,
body.mobile-office-body .mobile-platform-description>span{padding-left:2px;color:var(--muted);font-size:12px;font-weight:850}
body.curator-mobile-capture-body .mobile-platform-description textarea,
body.mobile-office-body .mobile-platform-description textarea{box-sizing:border-box;width:100%;min-width:0;min-height:84px;padding:9px;border-radius:11px;font-size:16px!important;line-height:1.35}
body.curator-mobile-capture-body .mobile-platform-detail-error,
body.mobile-office-body .mobile-platform-detail-error{margin:20px 0;padding:30px 12px;border:1px solid var(--line);border-radius:12px;color:var(--muted);text-align:center;font-weight:800}

/* Desktop restaurant cashier and order management are purpose-built layouts. */
.desktop-cashier-pos.restaurant-pos .pos-grid{display:block}
.restaurant-desktop-pos-shell{display:grid;grid-template-columns:minmax(480px,44%) minmax(560px,1fr);gap:12px;min-width:0}
.restaurant-pos-menu-browser{display:grid;grid-template-columns:150px minmax(0,1fr);min-width:0;min-height:calc(100vh - 96px);overflow:hidden;padding:0}
.restaurant-pos-category-menu{display:grid;align-content:start;gap:1px;overflow-y:auto;border-right:1px solid var(--line);background:#edf3f6}
.restaurant-pos-category-menu>button{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-height:48px;padding:8px 10px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;text-align:left;box-shadow:none}
.restaurant-pos-category-menu>button strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.restaurant-pos-category-menu>button span{display:grid;place-items:center;min-width:24px;height:24px;padding:0 5px;border-radius:999px;background:rgba(255,255,255,.72);color:var(--muted);font-size:11px;font-weight:900}
.restaurant-pos-category-menu>button.active{background:var(--primary-soft);color:var(--primary)}
.restaurant-pos-menu-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:8px;min-width:0;overflow-y:auto;padding:10px}
.restaurant-pos-menu-items .product-card{display:grid;grid-template-columns:64px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:3px 9px;min-width:0;min-height:76px;padding:6px;text-align:left}
.restaurant-pos-menu-items .product-card>img,.restaurant-pos-menu-items .product-card>.product-card-image-placeholder{grid-row:1/3;width:64px;height:64px;border-radius:9px;object-fit:cover}
.restaurant-pos-menu-items .product-card>strong,.restaurant-pos-menu-items .product-card>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.restaurant-pos-sale-pane{display:grid;grid-template-rows:auto minmax(0,1fr);align-content:start;gap:10px;min-width:0}
.restaurant-desktop-payment-card{position:relative;padding:0;overflow:visible}
.restaurant-desktop-payment-row{display:grid;grid-template-columns:minmax(130px,.65fr) minmax(92px,.35fr) minmax(180px,.85fr);align-items:stretch;gap:8px;padding:8px 8px 4px}
.restaurant-desktop-payment-row .total-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:0 8px;border:0}
.restaurant-desktop-payment-row .total-row span{color:var(--muted);font-size:11px;font-weight:850}
.restaurant-desktop-payment-row .total-row strong{overflow:hidden;font-size:16px;text-overflow:ellipsis;white-space:nowrap}
.restaurant-desktop-cash-field,.restaurant-desktop-table-field{display:flex;align-items:center;gap:7px;min-width:0;margin:0;padding:0 8px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.restaurant-desktop-cash-field>span,.restaurant-desktop-table-field>span{flex:0 0 auto;color:var(--muted);font-size:12px;font-weight:850}
.restaurant-desktop-cash-field>input,.restaurant-desktop-table-field>input{box-sizing:border-box;width:100%;min-width:0;min-height:42px;padding:5px 7px;border:0!important;background:transparent!important;font-size:18px;font-weight:900;box-shadow:none!important;cursor:pointer}
.restaurant-desktop-payment-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:4px 8px 8px;border-top:1px solid rgba(210,222,228,.62)}
.restaurant-desktop-payment-actions>button{min-height:40px;padding:5px 17px;white-space:nowrap}
.restaurant-desktop-number-keypad{position:absolute;z-index:80;top:106px;left:50%;display:grid;width:286px;padding:9px;border:1px solid rgba(137,163,176,.82);border-radius:14px;background:rgba(248,252,253,.96);box-shadow:0 14px 38px rgba(31,55,68,.24);transform:translateX(-50%);backdrop-filter:blur(14px)}
.restaurant-desktop-number-keypad.hidden{display:none!important}
.restaurant-desktop-number-display{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-height:38px;padding:0 5px 7px;border-bottom:1px solid var(--line)}
.restaurant-desktop-number-display>span{overflow:hidden;color:var(--muted);font-size:12px;font-weight:850;text-overflow:ellipsis;white-space:nowrap}
.restaurant-desktop-number-display>strong{font-size:20px;white-space:nowrap}
.restaurant-desktop-number-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding-top:7px}
.restaurant-desktop-number-grid>button{min-width:0;min-height:42px;padding:4px;border-radius:9px;font-size:18px;font-weight:900;box-shadow:none}
.restaurant-desktop-number-grid>.restaurant-desktop-number-confirm{grid-column:span 2}
.restaurant-desktop-cart-panel{min-height:0;padding:0;overflow:hidden}
.restaurant-desktop-cart-list{display:grid;align-content:start;max-height:calc(100vh - 220px);overflow-y:auto}
.restaurant-desktop-cart-swipe{position:relative;min-width:0;overflow:hidden;border-bottom:1px solid var(--line);background:#d94747}
.restaurant-desktop-cart-item{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;min-height:40px;padding:3px 9px;border-bottom:0;background:var(--panel);transition:transform .16s ease}
.restaurant-desktop-cart-swipe.group-0 .restaurant-desktop-cart-item{background:linear-gradient(90deg,rgba(89,159,214,.13),var(--panel) 22%)}
.restaurant-desktop-cart-swipe.group-1 .restaurant-desktop-cart-item{background:linear-gradient(90deg,rgba(61,174,126,.13),var(--panel) 22%)}
.restaurant-desktop-cart-swipe.group-2 .restaurant-desktop-cart-item{background:linear-gradient(90deg,rgba(226,166,55,.14),var(--panel) 22%)}
.restaurant-desktop-cart-swipe.group-3 .restaurant-desktop-cart-item{background:linear-gradient(90deg,rgba(153,112,206,.13),var(--panel) 22%)}
.restaurant-desktop-cart-swipe.pending .restaurant-desktop-cart-item{box-shadow:inset 4px 0 0 var(--primary)}
.restaurant-desktop-cart-swipe.existing .restaurant-desktop-quantity-value:disabled{opacity:1;color:var(--text);cursor:default}
.restaurant-desktop-cart-swipe.delete-revealed .restaurant-desktop-cart-item{transform:translateX(-92px)}
.restaurant-desktop-cart-delete{position:absolute;z-index:0;top:0;right:0;width:92px;height:100%;min-height:0;padding:0;border:0;border-radius:0;background:#d94747;color:#fff;font-weight:900;box-shadow:none}
.restaurant-desktop-cart-item:last-child{border-bottom:0}
.restaurant-desktop-cart-name{min-width:0;overflow:hidden;font-size:15px;text-overflow:ellipsis;white-space:nowrap}
.restaurant-desktop-cart-price{color:var(--primary);font-size:14px;font-weight:900;white-space:nowrap}
.restaurant-desktop-cart-quantity{display:grid;grid-template-columns:34px minmax(42px,auto) 34px;align-items:center;justify-content:end;gap:5px}
.restaurant-desktop-cart-quantity button{width:34px;min-width:34px;min-height:30px;padding:0}
.restaurant-desktop-cart-quantity .restaurant-desktop-quantity-value{min-width:48px;min-height:30px;padding:2px 7px;border-color:transparent;background:var(--surface-soft);font-weight:900;text-align:center;box-shadow:none}

.restaurant-order-management-page{display:grid;gap:10px;min-width:0}
.restaurant-order-management-head{display:flex;align-items:end;justify-content:space-between;gap:12px;min-height:42px;padding:0 2px 8px;border-bottom:1px solid var(--line)}
.restaurant-order-management-head h2{margin:0;font-size:21px}
.restaurant-order-management-head span{color:var(--muted);font-size:13px;font-weight:800}
.restaurant-order-management-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:12px;min-width:0;min-height:calc(100vh - 150px)}
.restaurant-order-list,.restaurant-order-detail{min-width:0;padding:0;overflow:hidden}
.restaurant-order-list-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:46px;padding:7px 9px;border-bottom:1px solid var(--line)}
.restaurant-order-list-head button{min-height:32px;padding:4px 10px}
.restaurant-order-list>nav{display:grid;align-content:start;max-height:calc(100vh - 205px);overflow-y:auto}
.restaurant-order-list>nav>button{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;min-height:62px;padding:8px 10px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;text-align:left;box-shadow:none}
.restaurant-order-list>nav>button.active{background:var(--primary-soft);color:var(--primary)}
.restaurant-order-list>nav>button.closed{opacity:.72}
.restaurant-order-list>nav>button>span{display:flex;align-items:center;gap:7px;min-width:0}
.restaurant-order-list>nav>button>span strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.restaurant-order-list>nav>button small{grid-column:1;color:var(--muted)}
.restaurant-order-list>nav>button em{grid-column:2;grid-row:1/3;align-self:center;font-style:normal;font-weight:900;white-space:nowrap}
.restaurant-order-detail{padding:12px}
.restaurant-order-detail>header{display:flex;align-items:start;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.restaurant-order-detail>header>div{display:grid;gap:3px}
.restaurant-order-detail>header>div:last-child{text-align:right}
.restaurant-order-detail>header strong,.restaurant-order-detail>header b{font-size:18px}
.restaurant-order-detail>header span,.restaurant-order-detail>header small{color:var(--muted)}
.restaurant-order-detail .restaurant-cashier-items{display:grid;max-height:calc(100vh - 320px);overflow-y:auto}
.restaurant-order-detail .restaurant-cashier-items>article{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}
.restaurant-order-detail .restaurant-cashier-items>article>div{display:flex;flex-wrap:wrap;align-content:start;gap:4px 14px;min-width:0}
.restaurant-order-detail .restaurant-cashier-items>article>div span{min-width:160px}
.restaurant-order-detail .restaurant-cashier-items>article>aside{display:grid;justify-items:end;gap:5px}
.restaurant-order-detail .restaurant-cashier-items>article em{font-style:normal;font-weight:900;white-space:nowrap}
.restaurant-order-detail .restaurant-cashier-items small{color:var(--muted);font-weight:800}
.restaurant-order-detail .restaurant-cashier-items small.ready{color:#158052}
.restaurant-order-detail .restaurant-cashier-items button{min-height:32px;padding:4px 10px}
.restaurant-cashier-order-actions{display:flex;justify-content:flex-end;gap:8px;padding:10px 0;border-top:1px solid var(--line)}
.restaurant-cashier-order-actions>button{min-height:38px;padding:5px 14px}
.restaurant-pickup-order-items{display:grid;gap:1px;margin-top:10px;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:var(--line)}
.restaurant-pickup-order-items>span{padding:9px 11px;background:var(--panel);font-weight:750}

body.mobile-office-body .restaurant-waiter-page,
body.mobile-office-body .waiter-order-management{display:grid;gap:10px;padding:2px 4px 24px}
body.mobile-office-body .restaurant-waiter-title,
body.mobile-office-body .waiter-order-management>header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:44px}
body.mobile-office-body .restaurant-waiter-title h1,
body.mobile-office-body .waiter-order-management>header h1{grid-column:2;margin:0;text-align:center;font-size:21px}
body.mobile-office-body .restaurant-waiter-title>button{grid-column:3;justify-self:end;min-height:36px;padding:5px 12px}
body.mobile-office-body .restaurant-check-picker,
body.mobile-office-body .restaurant-order-context,
body.mobile-office-body .restaurant-menu,
body.mobile-office-body .restaurant-draft,
body.mobile-office-body .restaurant-existing-items{padding:9px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}
body.mobile-office-body .restaurant-check-chips{display:flex;gap:7px;overflow-x:auto;padding-block:6px}
body.mobile-office-body .restaurant-check-chips>button{flex:0 0 150px;min-width:0}
body.mobile-office-body .restaurant-order-context{display:grid;grid-template-columns:minmax(90px,.45fr) minmax(0,1fr);gap:8px}
body.mobile-office-body .restaurant-order-context fieldset{min-width:0}
body.mobile-office-body .restaurant-dish-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body.mobile-office-body .restaurant-dish-grid>button{min-width:0}
body.mobile-office-body .waiter-active-orders{display:grid;gap:7px}
body.mobile-office-body .waiter-active-orders>button{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;min-height:64px;padding:9px 11px;text-align:left}
body.mobile-office-body .waiter-active-orders>button>span{color:var(--muted);font-size:12px}
body.mobile-office-body .waiter-active-orders>button>b{grid-column:2;grid-row:1/3;align-self:center;color:var(--primary);white-space:nowrap}
body.mobile-office-body .waiter-active-orders>button.active{border-color:var(--primary);background:var(--primary-soft)}
body.mobile-office-body .waiter-active-order-detail{display:grid;gap:8px;padding:9px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}
body.mobile-office-body .waiter-active-order-detail>div{display:grid}
body.mobile-office-body .waiter-active-order-detail article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px 8px;padding:8px 2px;border-bottom:1px solid var(--line)}
body.mobile-office-body .waiter-active-order-detail article strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.mobile-office-body .waiter-active-order-detail article b{white-space:nowrap}
body.mobile-office-body .waiter-active-order-detail article button{grid-column:1/-1;justify-self:end;min-height:44px;padding:7px 12px;font-size:12px}
body.mobile-office-body .waiter-active-order-detail>footer{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap}
/* unisale-social-auth */
.social-login-panel {
  margin-top: 18px;
}
.social-login-tagline {
  margin: 0;
  text-align: center;
}
.social-login-divider {
  align-items: center;
  color: var(--muted, #66706a);
  display: flex;
  font-size: 12px;
  gap: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.social-login-divider::before,
.social-login-divider::after {
  background: currentColor;
  content: "";
  flex: 1;
  height: 1px;
  opacity: .24;
}
.social-login-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}
.social-login-button {
  border: 1px solid rgba(25, 34, 29, .18);
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  padding: 9px 12px;
}
.social-login-button:hover {
  filter: brightness(.96);
  transform: translateY(-1px);
}
.social-google {
  background: #4285f4;
  border-color: #4285f4;
  color: #fff;
}
.social-facebook {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}
.social-instagram {
  background: linear-gradient(115deg, #f9ce34, #ee2a7b 48%, #6228d7);
  border-color: transparent;
  color: #fff;
}
.social-telegram {
  background: #229ed9;
  border-color: #229ed9;
  color: #fff;
}
.social-login-panel.auth-section {
  position: relative;
  padding-top: calc(25% + 18px);
  overflow: hidden;
  background-color: #f5f8fa;
  background-image: var(--social-login-background-image, url('/toc_ru.jpg'));
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
}
.auth-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 4px 10px;
}
.auth-entry-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.auth-entry-brand > img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.auth-entry-brand > strong {
  color: #073477;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1;
}
.auth-entry-header > .auth-language {
  width: auto;
  min-width: 132px;
  max-width: 48%;
  min-height: 42px;
  margin: 0;
  background-color: rgba(255,255,255,.88);
}
@media(max-width:480px) {
  .auth-entry-header { padding-inline: 2px; }
  .auth-entry-brand { gap: 7px; }
  .auth-entry-brand > img { width: 40px; height: 40px; }
  .auth-entry-header > .auth-language { min-width: 116px; max-width: 52%; }
}
.social-login-panel.auth-section .social-login-grid {
  position: relative;
  z-index: 1;
}
.auth-promotion-card.auth-section {
  position: relative;
  padding-top: calc(40% + 18px);
  overflow: hidden;
  background-color: #f5f8fa;
  background-image: var(--business-promotion-background-image, url('/tob_ru.jpg'));
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
}
.auth-promotion-card.auth-section .auth-company-intro > h2 {
  display: none;
}
.auth-promotion-card.auth-section .auth-company-intro,
.auth-promotion-card.auth-section .auth-promotion-actions {
  position: relative;
  z-index: 1;
}
@media(max-width:640px) {
  .auth-promotion-card.auth-section {
    padding-top: 265px;
    background-position: left top;
    background-size: auto 250px;
  }
}
@media(max-width:640px) {
  .social-login-panel.auth-section {
    padding-top: 190px;
    background-size: auto 176px;
  }
}
.curator-capture-table-panel .curator-capture-records-table tbody tr.curator-capture-pending-row td {
  color: #b42318;
}
.curator-capture-table-panel .curator-capture-records-table .curator-capture-library-gtin {
  display: inline;
  width: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
  transform: none;
}
.curator-capture-table-panel .curator-capture-records-table .curator-capture-library-gtin:hover,
.curator-capture-table-panel .curator-capture-records-table .curator-capture-library-gtin:focus-visible {
  color: var(--primary-strong);
  background: transparent;
  box-shadow: none;
  transform: none;
}
.curator-product-information-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(82,129,145,.24);
  border-radius: 20px;
  background: linear-gradient(145deg,rgba(255,255,255,.98),rgba(239,248,250,.94));
  box-shadow: 0 14px 34px rgba(31,70,84,.09);
}
.curator-product-information-card-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(82,129,145,.18);
}
.curator-product-information-card-head small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.curator-product-information-card-head h4 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}
.curator-product-information-card > .wide {
  grid-column: 1 / -1;
}
.curator-product-information-card .hot-product-image-editor .curator-gallery-icon-button {
  display: inline-grid !important;
  place-items: center;
  flex: 0 0 42px;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 12px !important;
  font-size: 19px !important;
  line-height: 1 !important;
}
.curator-product-information-card .hot-product-image-editor {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(60,108,126,.28);
  border-radius: 18px;
  background: linear-gradient(145deg,rgba(246,251,252,.98),rgba(231,243,247,.9));
  box-shadow: 0 12px 30px rgba(31,70,84,.08);
}
.curator-product-information-card .hot-product-image-editor > .product-image-gallery {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 14px;
  width: 100%;
  min-width: 0;
  overflow: visible;
}
.curator-gallery-existing-card,
.curator-gallery-capture-card,
.curator-gallery-candidate-card {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(82,129,145,.2);
  border-radius: 16px;
  background: rgba(255,255,255,.76);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.curator-gallery-existing-toolbar,
.curator-gallery-capture-toolbar {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(82,129,145,.18);
}
.curator-gallery-existing-toolbar strong,
.curator-gallery-capture-toolbar strong,
.curator-gallery-candidate-toolbar > strong {
  color: var(--text);
  font-size: 16px;
}
.curator-existing-gallery-items,
.curator-gallery-capture-card .curator-stock-gallery-items {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) !important;
  align-items: start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  overflow: visible;
}
.curator-gallery-existing-card .product-image-gallery-item,
.curator-gallery-capture-card .product-image-gallery-item {
  display: grid;
  width: min(100%,240px);
  max-width: 240px;
  margin: 0;
}
.curator-gallery-existing-card .product-image-gallery-item > img,
.curator-gallery-capture-card .product-image-gallery-item > img {
  width: 100%;
  max-width: 100%;
}
.curator-gallery-empty {
  width: 100%;
  padding: 18px;
  border: 1px dashed rgba(82,129,145,.28);
  border-radius: 12px;
  background: rgba(244,249,250,.78);
  text-align: center;
}
.curator-gallery-candidate-toolbar {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(82,129,145,.18);
}
.curator-product-information-card .hot-product-image-editor .curator-gallery-text-search {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0 !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 15px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  line-height: 1 !important;
  white-space: nowrap;
}
.curator-product-information-card .hot-product-image-editor [class*="action"],
.curator-product-information-card .hot-product-image-editor [class*="tool"] {
  align-items: center;
  gap: 8px;
}
.curator-gallery-image-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}
.curator-product-information-card .hot-product-image-editor .curator-gallery-image-actions .curator-gallery-icon-button {
  position: static !important;
  inset: auto !important;
  float: none !important;
  transform: none !important;
}
/* mobile-capture-detail-phone-layout */
@media (max-width: 760px) {
  .hot-enterprise-product-page {
    border-radius: 0;
    box-sizing: border-box;
    margin: 0;
    max-width: none;
    min-height: 100dvh;
    padding: 12px;
    width: 100%;
  }
  .hot-enterprise-product-page > .platform-product-modal-head {
    align-items: stretch;
    background: var(--surface, #fff);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: -12px -12px 14px;
    padding: 12px;
    position: sticky;
    top: 0;
    z-index: 8;
  }
  .hot-enterprise-product-page > .platform-product-modal-head button,
  .platform-product-modal-head button[form="hotEnterprisePromoteForm"] {
    min-height: 44px;
    width: 100%;
  }
  #hotEnterprisePromoteForm.capture-review-layout,
  .hot-product-main-fields,
  .hot-product-secondary-fields {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
  #hotEnterprisePromoteForm input,
  #hotEnterprisePromoteForm select,
  #hotEnterprisePromoteForm textarea,
  #hotEnterprisePromoteForm button {
    box-sizing: border-box;
    max-width: 100%;
  }
  .curator-capture-source-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr);
  }
  .curator-capture-source-actions button {
    min-height: 46px;
    white-space: normal;
    width: 100%;
  }
  .curator-capture-psid-panel {
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 12px;
  }
  .hot-product-image-editor > .product-image-gallery {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    width: 100%;
  }
  .hot-product-image-editor img {
    height: auto;
    max-width: 100%;
  }
}
.hot-product-image-editor .hot-image-adopt{position:static!important;inset:auto!important;width:100%;min-height:34px;margin-top:6px}
.curator-capture-psid-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.curator-capture-psid-controls .hot-fiscal-category-picker{grid-column:1/-1}
@media(max-width:720px){.curator-capture-psid-controls{grid-template-columns:1fr}}
.curator-capture-source-actions [data-curator-source] {
  min-height: 30px;
  padding: 4px 9px;
  font-size: 0.78rem;
  line-height: 1.15;
}
.hot-image-adopt {
  display: grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 5px;
}
.hot-image-adopt svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gds-source-result-card header small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}
.gds-source-result-field {
  grid-template-columns: minmax(150px, max-content) minmax(260px, 1fr);
}
.gds-source-result-card > header > [data-gds-apply-all] {
  margin-left: auto;
  width: auto;
  min-width: 84px;
}
.icecat-source-result-card > header > [data-icecat-apply] {
  margin-left: auto;
  width: auto;
  min-width: 84px;
}
.gds-source-result-gtin {
  margin-left: 12px;
  font-size: 0.82em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.gds-source-result-field > span {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.gds-source-result-field > span:empty {
  display: none;
}
@media (max-width: 700px) {
  .gds-source-result-field {
    grid-template-columns: 1fr;
  }
}

/* Curator capture review gallery actions */
.capture-review-layout [data-hot-existing-image-gallery] .hot-image-adopt,
.capture-review-layout [data-hot-existing-image-gallery] [data-hot-visual-search],
.capture-review-layout [data-hot-image-gallery] [data-hot-image-delete] {
  display: none !important;
}
.capture-review-layout .product-image-gallery-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.capture-review-layout .product-image-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.capture-review-layout .product-image-gallery-item.is-portrait img {
  object-position: left center;
}
.capture-review-layout .product-image-gallery-item.is-landscape img {
  object-position: center top;
}
.capture-review-layout .curator-gallery-image-actions {
  position: absolute;
  right: .45rem;
  bottom: .45rem;
  display: flex;
  gap: .35rem;
  z-index: 2;
}
.capture-review-layout .product-image-gallery-item.is-portrait .curator-gallery-image-actions {
  top: 50%;
  right: .45rem;
  bottom: auto;
  flex-direction: column;
  transform: translateY(-50%);
}
.capture-review-layout .product-image-gallery-item.is-landscape .curator-gallery-image-actions {
  left: 50%;
  right: auto;
  bottom: .45rem;
  flex-direction: row;
  transform: translateX(-50%);
}
.capture-review-layout .curator-gallery-image-actions button,
.capture-review-layout .curator-image-toolbar button {
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}
.capture-review-layout .official-image-candidate-layout {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
}
.capture-review-layout .curator-image-toolbar {
  display: grid !important;
  grid-template-columns: repeat(4, 2.75rem);
  gap: .5rem;
  align-content: center;
  justify-content: center;
}
.capture-review-layout .official-image-candidate.is-portrait .official-image-candidate-layout {
  flex-direction: row;
  align-items: center;
}
.capture-review-layout .official-image-candidate.is-portrait .curator-image-toolbar {
  grid-template-columns: repeat(2, 2.75rem);
}
.capture-review-layout .official-image-candidate.is-landscape .official-image-candidate-layout {
  flex-direction: column;
}
.capture-review-layout .official-image-candidate.is-landscape .curator-image-toolbar {
  grid-template-columns: repeat(4, 2.75rem);
}
.capture-review-layout .curator-gallery-text-search {
  font-size: 1.1rem;
}

/* Desktop curator capture review columns */
@media (min-width: 901px) {
  .capture-review-layout .hot-product-main-fields {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, .82fr);
    align-items: start;
    gap: 1.25rem;
  }
  .capture-review-layout .hot-product-main-fields > .curator-product-information-card {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    width: 100%;
  }
  .capture-review-layout .hot-product-main-fields > .hot-product-image-editor {
    grid-column: 2 !important;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    margin: 0;
  }
}
@media (max-width: 900px) {
  .capture-review-layout .hot-product-main-fields {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
  }
  .capture-review-layout .hot-product-main-fields > .curator-product-information-card {
    grid-column: 1;
    grid-row: 1;
  }
  .capture-review-layout .hot-product-main-fields > .hot-product-image-editor {
    grid-column: 1 !important;
    grid-row: 2;
  }
}

/* Desktop product-image subcards in one row */
@media (min-width: 901px) {
  .capture-review-layout .hot-product-image-editor .curator-stock-image-gallery {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: .75rem;
  }
  .capture-review-layout .hot-product-image-editor .curator-gallery-existing-card,
  .capture-review-layout .hot-product-image-editor .curator-gallery-capture-card,
  .capture-review-layout .hot-product-image-editor .curator-gallery-candidate-card {
    grid-column: auto !important;
    min-width: 0;
    width: 100%;
    margin: 0;
  }
}
@media (max-width: 900px) {
  .capture-review-layout .hot-product-image-editor .curator-stock-image-gallery {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Full-width capture review cards */
.capture-review-layout .hot-product-image-editor {
  box-sizing: border-box;
  background: rgba(255, 255, 255, .82);
  border: 1px solid #d3e0e6;
  border-radius: 1.4rem;
  padding: 1rem;
  box-shadow: 0 1rem 2.5rem rgba(41, 66, 79, .08);
}
.capture-review-layout .hot-product-image-editor > .hot-product-image-heading {
  margin: 0 0 1rem;
  padding: 0 0 .8rem;
  border-bottom: 1px solid #dbe5ea;
}
@media (min-width: 901px) {
  .capture-review-layout > .hot-product-main-fields {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) !important;
  }
  .capture-review-layout .hot-product-main-fields > .curator-product-information-card,
  .capture-review-layout .hot-product-main-fields > .hot-product-image-editor {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
  }
}
@media (max-width: 900px) {
  .capture-review-layout > .hot-product-main-fields,
  .capture-review-layout .hot-product-main-fields > .curator-product-information-card,
  .capture-review-layout .hot-product-main-fields > .hot-product-image-editor {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Curator PSID workbench */
.capture-review-layout .curator-capture-psid-panel {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 1rem 1.15rem;
  width: 100%;
  padding: 1.15rem;
  background:
    linear-gradient(135deg, rgba(237, 248, 250, .72), rgba(255, 255, 255, .92) 42%),
    #fff;
  border: 1px solid #cddde4;
  border-top: .28rem solid #287b88;
  border-radius: 1.25rem;
  box-shadow: 0 .8rem 2rem rgba(39, 75, 88, .07);
}
.capture-review-layout .curator-psid-panel-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.5rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid #d8e5e9;
}
.capture-review-layout .curator-psid-panel-title h4 {
  margin: 0;
  color: #183640;
  font-size: 1.05rem;
  letter-spacing: .08em;
}
.capture-review-layout [data-hot-psid-expand-all]:disabled {
  display: none;
}
.capture-review-layout .curator-capture-psid-controls {
  grid-column: 1 / span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 1rem;
  min-width: 0;
}
.capture-review-layout .curator-capture-psid-controls > label {
  display: grid;
  gap: .4rem;
  min-width: 0;
}
.capture-review-layout .curator-capture-psid-controls .hot-fiscal-category-picker {
  grid-column: 1 / -1;
}
.capture-review-layout .curator-capture-psid-controls .hot-fiscal-category-picker:not(:has([data-hot-fiscal-level]:not(.hidden))) {
  display: none;
}
.capture-review-layout .curator-capture-psid-controls input,
.capture-review-layout .curator-capture-psid-controls select,
.capture-review-layout .hot-psid-search-bar input,
.capture-review-layout .hot-psid-search-bar button {
  box-sizing: border-box;
  min-height: 3.25rem;
}
.capture-review-layout .hot-psid-search-bar {
  grid-column: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: .55rem;
  min-width: 0;
  margin: 0;
}
.capture-review-layout .hot-psid-search-bar input {
  min-width: 0;
  font-weight: 600;
}
.capture-review-layout .hot-psid-search-bar button {
  min-width: 4.5rem;
  padding-inline: 1rem;
}
.capture-review-layout .curator-capture-psid-panel > [data-hot-psid-results] {
  grid-column: 1 / -1;
  box-sizing: border-box;
  min-height: 4.5rem;
  margin: 0;
  display: grid;
  align-items: center;
  border-radius: .85rem;
  background: rgba(255, 255, 255, .72);
}
@media (max-width: 1100px) {
  .capture-review-layout .curator-capture-psid-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .capture-review-layout .curator-capture-psid-controls,
  .capture-review-layout .hot-psid-search-bar,
  .capture-review-layout .curator-capture-psid-panel > [data-hot-psid-results] {
    grid-column: 1;
  }
}
@media (max-width: 640px) {
  .capture-review-layout .curator-capture-psid-panel {
    gap: .85rem;
    padding: .9rem;
    border-radius: 1rem;
  }
  .capture-review-layout .curator-capture-psid-controls {
    grid-template-columns: minmax(0, 1fr);
  }
  .capture-review-layout .curator-capture-psid-controls .hot-fiscal-category-picker {
    grid-column: 1;
  }
  .capture-review-layout .hot-psid-search-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* Double the actual curator review images, not their outer cards. */
.capture-review-layout .curator-stock-image-gallery {
  --detail-gallery-size: 176px;
}
.capture-review-layout .curator-existing-gallery-items,
.capture-review-layout .curator-gallery-capture-card .curator-stock-gallery-items {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: flex-start;
  gap: .75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: .45rem;
}
.capture-review-layout .curator-gallery-existing-card,
.capture-review-layout .curator-gallery-capture-card {
  align-self: start;
}
.capture-review-layout .curator-existing-gallery-items .product-image-gallery-item,
.capture-review-layout .curator-stock-gallery-items .product-image-gallery-item {
  box-sizing: border-box;
  width: max-content !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  flex: 0 0 auto !important;
}
.capture-review-layout .curator-existing-gallery-items .product-image-gallery-item > img,
.capture-review-layout .curator-stock-gallery-items .product-image-gallery-item > img {
  width: auto !important;
  max-width: 100% !important;
  height: var(--detail-gallery-size) !important;
}

/* Product-image subcards stack on every screen size. */
.capture-review-layout .hot-product-image-editor .curator-stock-image-gallery {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start;
  gap: .9rem;
}
.capture-review-layout .hot-product-image-editor .curator-gallery-existing-card,
.capture-review-layout .hot-product-image-editor .curator-gallery-capture-card,
.capture-review-layout .hot-product-image-editor .curator-gallery-candidate-card {
  grid-column: 1 !important;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.capture-review-layout .curator-gallery-existing-card:has([data-hot-existing-image-gallery] > .curator-gallery-empty) {
  display: none !important;
}

/* Fit-content flowing product-image subcards. */
.capture-review-layout .hot-product-image-editor .curator-stock-image-gallery {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: flex-start;
  align-content: flex-start;
  justify-content: flex-start;
  gap: .9rem;
}
.capture-review-layout .hot-product-image-editor .curator-gallery-existing-card,
.capture-review-layout .hot-product-image-editor .curator-gallery-capture-card,
.capture-review-layout .hot-product-image-editor .curator-gallery-candidate-card {
  flex: 0 1 auto;
  width: fit-content !important;
  min-width: 0;
  max-width: 100%;
  height: fit-content;
  align-self: flex-start;
  margin: 0;
}

/* Translucent image controls anchored to corners. */
.capture-review-layout .product-image-gallery-item .curator-gallery-image-actions,
.capture-review-layout .product-image-gallery-item.is-portrait .curator-gallery-image-actions,
.capture-review-layout .product-image-gallery-item.is-landscape .curator-gallery-image-actions {
  top: auto !important;
  right: .4rem !important;
  bottom: .4rem !important;
  left: auto !important;
  flex-direction: row !important;
  gap: .3rem;
  transform: none !important;
}
.capture-review-layout .curator-gallery-image-actions button,
.capture-review-layout .curator-gallery-image-actions button.primary,
.capture-review-layout .official-image-candidate .curator-image-rotate {
  border: 1px solid rgba(255, 255, 255, .72) !important;
  background: rgba(20, 31, 40, .52) !important;
  color: #fff !important;
  box-shadow: 0 .25rem .8rem rgba(15, 23, 42, .22) !important;
  backdrop-filter: blur(8px) saturate(1.15);
}
.capture-review-layout .curator-gallery-image-actions button:hover:not(:disabled),
.capture-review-layout .curator-gallery-image-actions button:focus-visible,
.capture-review-layout .official-image-candidate .curator-image-rotate:hover,
.capture-review-layout .official-image-candidate .curator-image-rotate:focus-visible {
  background: rgba(20, 31, 40, .78) !important;
}
.capture-review-layout .curator-gallery-image-actions button:disabled {
  opacity: .58;
}
.capture-review-layout .official-image-candidate .curator-image-rotate {
  top: .4rem !important;
  right: .4rem !important;
}

/* Image controls stay visually bare until interaction. */
.capture-review-layout .curator-gallery-image-actions button,
.capture-review-layout .curator-gallery-image-actions button.primary,
.capture-review-layout .official-image-candidate .curator-image-rotate {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.capture-review-layout .curator-gallery-image-actions button:hover:not(:disabled),
.capture-review-layout .curator-gallery-image-actions button:focus-visible,
.capture-review-layout .official-image-candidate .curator-image-rotate:hover,
.capture-review-layout .official-image-candidate .curator-image-rotate:focus-visible {
  border-color: rgba(255, 255, 255, .75) !important;
  background: rgba(20, 31, 40, .64) !important;
  box-shadow: 0 .25rem .8rem rgba(15, 23, 42, .2) !important;
  backdrop-filter: blur(8px) saturate(1.1) !important;
}

.capture-review-layout .curator-gallery-capture-card:has([data-hot-image-gallery] > .curator-gallery-empty) {
  display: none !important;
}

/* Explicit close control for the simple fullscreen image viewer. */
.simple-product-image-viewer > .hot-image-viewer-close {
  position: fixed;
  z-index: 4;
  top: max(14px, env(safe-area-inset-top));
  left: max(14px, env(safe-area-inset-left));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: auto;
  min-width: 5.5rem;
  min-height: 3.25rem;
  padding: .65rem 1rem;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #162033;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 .5rem 1.4rem rgba(0, 0, 0, .32);
  backdrop-filter: blur(10px);
}
.simple-product-image-viewer > .hot-image-viewer-close:hover,
.simple-product-image-viewer > .hot-image-viewer-close:focus-visible {
  background: #fff;
  color: #0f172a;
}

.simple-product-image-viewer .hot-image-viewer-stage > img {
  touch-action: none;
  -webkit-user-drag: none;
  transition: transform .22s ease, opacity .18s ease;
}
.simple-product-image-viewer .hot-image-viewer-stage > img.is-dragging {
  cursor: grabbing;
  transition: none;
}
