:root {
  color-scheme: light;
  --ink: #202020;
  --muted: #707070;
  --line: #d7d7d7;
  --soft-line: #ececec;
  --surface: #ffffff;
  --background: #f7f7f7;
  --sidebar: #666666;
  --sidebar-deep: #555555;
  --sidebar-active: #e7e7e7;
  --blue: #1769aa;
  --blue-dark: #0e4f86;
  --green: #0f8f68;
  --green-soft: #dcf8ec;
  --amber: #b7791f;
  --amber-soft: #fff2d6;
  --danger: #b42318;
  --danger-soft: #fee4e2;
  --info-soft: #e2f2ff;
  --shadow: 0 12px 28px rgba(30, 48, 74, 0.08);
  font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--background);
}

.loading-screen {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  background: #ffffff;
}

.loading-screen[hidden],
.app-shell[hidden] {
  display: none;
}

.loading-header {
  display: grid;
  place-items: center;
  min-height: 169px;
  border-bottom: 1px solid #d8d8d8;
}

.loading-main {
  display: grid;
  place-items: center;
  padding: 72px 24px 140px;
}

.loading-card {
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(520px, 100%);
  color: #202020;
  text-align: center;
}

.loading-card h1 {
  margin: 8px 0 0;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0;
}

.loading-card p {
  margin: 0;
  color: #666666;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.35;
}

.loading-spinner {
  width: 54px;
  height: 54px;
  border: 4px solid #dddddd;
  border-top-color: #666666;
  border-radius: 50%;
  animation: cosmos-spin 0.9s linear infinite;
}

.login-page {
  display: grid;
  min-height: 100vh;
  background: #ffffff;
}

.login-preview {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 48px 24px 96px;
}

.login-card {
  display: grid;
  gap: 18px;
  width: min(430px, 100%);
  padding: 34px;
  border: 1px solid #dedede;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(32, 32, 32, 0.08);
}

.login-card h1 {
  margin: 0;
  color: #202020;
  font-size: 34px;
  font-weight: 800;
}

.login-card label {
  display: grid;
  gap: 8px;
  color: #5d6875;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-card input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #d7dce2;
  border-radius: 8px;
  color: #202020;
  font: inherit;
}

.login-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.login-submit,
.login-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.login-submit {
  border: 1px solid #152238;
  color: #ffffff;
  background: #152238;
}

.login-secondary {
  border: 1px solid #d7dce2;
  color: #2d425d;
  background: #ffffff;
}

@keyframes cosmos-spin {
  to {
    transform: rotate(360deg);
  }
}

.stepper-wordmark {
  display: grid;
  justify-items: center;
  color: #777777;
  line-height: 1;
  text-decoration: none;
}

.loading-logo img {
  display: block;
  width: min(68vw, 620px);
  height: auto;
  opacity: 0.62;
}

.cookie-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 86px;
  padding: 16px 52px;
  color: #d8d8d8;
  background: #5d5d5d;
  font-size: 26px;
  font-weight: 300;
}

.cookie-bar span {
  flex: 1;
}

.cookie-bar button {
  width: 166px;
  min-height: 56px;
  border: 1px solid #e2e2e2;
  color: #666666;
  background: #ffffff;
  font-size: 28px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 26px 18px 22px;
  background: var(--sidebar);
  color: #ffffff;
  border-right: 1px solid #555555;
}

.sidebar-stepper-logo {
  display: block;
  width: 190px;
  margin-bottom: 28px;
  text-decoration: none;
}

.sidebar-stepper-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: invert(1) brightness(1.85);
  opacity: 0.92;
}

.sidebar-stepper-logo:hover img,
.sidebar-stepper-logo:focus-visible img {
  opacity: 1;
}

.brand-row,
.topbar,
.page-heading,
.table-toolbar,
.panel-title,
.heading-actions,
.toolbar-icons,
.subnav-row,
.assistant-workbench,
.prompt-actions,
.metric-row,
.tracking-panel,
.upload-layout {
  display: flex;
  align-items: center;
}

.brand-row {
  justify-content: space-between;
  min-height: 52px;
  margin-bottom: 28px;
}

.brand-mark {
  color: #ffffff;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-subtitle {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.brand-home {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.primary-nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 400;
}

.nav-item svg,
.icon-button svg,
.cart-button svg,
.primary-button svg,
.secondary-button svg,
.panel-title svg,
.subnav-pill svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-item.active {
  color: #202020;
  background: var(--sidebar-active);
  border-color: #e7e7e7;
  box-shadow: none;
  font-weight: 800;
}

.account-area {
  position: relative;
  margin-top: auto;
}

.account-switch {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 7px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  text-align: left;
}

.account-switch:hover,
.account-switch:focus-visible,
.account-switch[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.28);
}

.account-switch > svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  color: #ffffff;
  background: var(--blue-dark);
  font-weight: 850;
}

.account-name strong {
  font-size: 12px;
}

.account-name {
  display: block;
  min-width: 0;
}

.account-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  left: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 7px;
  background: rgba(82, 82, 82, 0.98);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.account-menu-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  text-align: left;
  font-size: 13px;
}

.account-menu-item svg {
  width: 18px;
  height: 18px;
}

.account-menu-item:hover,
.account-menu-item:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  gap: 12px;
  min-height: 60px;
  margin: -24px -24px 22px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.global-search-shell {
  position: relative;
  width: min(640px, 100%);
  margin-inline: auto;
}

.global-search {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #7c8998;
  background: #ffffff;
}

.global-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 650;
}

.global-search kbd {
  padding: 3px 7px;
  border: 1px solid #d8dee6;
  border-radius: 4px;
  color: #788697;
  background: #f5f7f9;
  font-family: inherit;
  font-size: 10px;
  font-weight: 750;
}

.global-search-shell.search-open .global-search {
  border-color: #6ca9cf;
  box-shadow: 0 0 0 3px rgba(34, 127, 184, 0.12);
}

.global-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 80;
  width: 100%;
  overflow: hidden;
  border: 1px solid #d8e0e8;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(31, 48, 65, 0.18);
}

.search-results-content {
  max-height: min(620px, calc(100vh - 108px));
  overflow-y: auto;
}

.search-results-header,
.search-results-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.search-results-header {
  color: #536477;
  background: #f7f9fb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-results-header span:last-child {
  color: #8b98a6;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.search-result-group + .search-result-group {
  border-top: 1px solid #e8edf2;
}

.search-result-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 10px 16px;
  border: 0;
  border-top: 1px solid #eef2f5;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
}

.search-result-item:hover,
.search-result-item.active {
  background: #eef7fc;
}

.search-result-thumb,
.search-result-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 46px;
  border-radius: 7px;
  background: #f5f7f8;
}

.search-result-thumb img {
  width: 50px;
  height: 34px;
  object-fit: contain;
}

.search-result-icon svg {
  width: 21px;
  height: 21px;
  color: #317da9;
}

.search-result-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.search-result-copy strong,
.search-result-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-copy strong {
  font-size: 13px;
}

.search-result-copy span,
.search-result-meta {
  color: #758395;
  font-size: 11px;
  font-weight: 650;
}

.search-result-meta {
  display: grid;
  gap: 3px;
  text-align: right;
}

.search-result-meta strong {
  color: #425469;
  font-size: 12px;
}

.search-match {
  color: #0d689e;
  background: #dceffc;
}

.search-results-footer {
  border-top: 1px solid #e4eaf0;
  color: #596b7e;
  background: #fbfcfd;
  font-size: 11px;
}

.search-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  color: #126eaa;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.search-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 190px;
  padding: 30px;
  color: #788697;
  text-align: center;
}

.search-empty svg {
  width: 30px;
  height: 30px;
  color: #9aa8b5;
}

.search-empty strong {
  color: #34485d;
  font-size: 14px;
}

.topbar-status {
  display: grid;
  gap: 1px;
  min-width: 72px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.topbar-status strong {
  color: var(--ink);
  font-size: 13px;
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #435469;
  background: #ffffff;
}

.icon-button.ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.alert-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--danger);
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
}

.alert-dot::after {
  content: attr(data-count);
}

.alert-dot[hidden] {
  display: none;
}

.cart-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.cart-button,
.primary-button {
  border: 1px solid var(--blue);
  color: #ffffff;
  background: var(--blue);
}

.primary-button:hover {
  background: var(--blue-dark);
}

.secondary-button {
  border: 1px solid var(--line);
  color: #30445a;
  background: #ffffff;
}

.small-button {
  min-height: 32px;
}

.full-width {
  width: 100%;
}

.view {
  display: none;
}

.active-view {
  display: block;
}

.page-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.compact-heading {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.16;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 16px;
  letter-spacing: 0;
}

.page-note {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.segmented-control {
  display: inline-grid;
  grid-auto-flow: column;
  max-width: 100%;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow-x: auto;
  background: #ffffff;
}

.pos-allowance-strip {
  display: none;
  grid-template-columns: minmax(180px, 0.8fr) minmax(620px, 2.2fr);
  gap: 18px;
  align-items: center;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f2f2f2;
}

body[data-order-tab="pos"] .pos-allowance-strip {
  display: grid;
}

.pos-search {
  position: relative;
  display: flex;
  align-items: center;
}

.pos-search svg {
  position: absolute;
  left: 11px;
  width: 17px;
  height: 17px;
  color: #7b8794;
}

.pos-search input {
  width: 100%;
  min-height: 38px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.pos-allowance-strip dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.pos-allowance-strip dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-left: 1px solid #d8d8d8;
}

.pos-allowance-strip dt {
  color: #5d6874;
  font-size: 11px;
  line-height: 1.35;
}

.pos-allowance-strip dd {
  margin: 0;
  color: #202020;
  font-size: 17px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.segment {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  color: #536274;
  background: transparent;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.segment.active {
  color: #ffffff;
  background: var(--blue);
}

.subnav-row {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.subnav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #475467;
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.subnav-pill.active {
  color: var(--blue-dark);
  border-color: rgba(23, 105, 170, 0.32);
  background: #e8f3fb;
}

.order-layout {
  display: grid;
  grid-template-columns: 214px minmax(600px, 1fr) 250px;
  gap: 16px;
  align-items: start;
}

.filter-panel,
.product-panel,
.right-panel > section,
.cart-lines,
.checkout-box,
.utility-view,
.upload-zone,
.state-card,
.tracking-panel,
.prompt-card,
.answer-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.filter-panel,
.right-panel > section,
.cart-lines,
.checkout-box,
.utility-view,
.prompt-card,
.answer-card,
.tracking-panel {
  padding: 16px;
}

.panel-title {
  gap: 8px;
  margin-bottom: 12px;
  color: #21364c;
}

.filter-panel label,
.checkout-box label,
.prompt-card label {
  display: grid;
  gap: 6px;
  margin-bottom: 13px;
  color: #475467;
  font-size: 12px;
  font-weight: 780;
}

.filter-backdrop {
  display: none;
  position: fixed;
  z-index: 70;
  inset: 0;
  border: 0;
  background: rgba(25, 32, 39, 0.36);
  backdrop-filter: blur(2px);
}

.filter-panel {
  display: none;
  position: fixed;
  z-index: 71;
  top: 76px;
  right: 24px;
  bottom: 24px;
  left: 272px;
  max-width: 1180px;
  margin-left: auto;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #f6f7f8;
  box-shadow: 0 22px 60px rgba(22, 31, 40, 0.24);
}

body.filter-open {
  overflow: hidden;
}

body.filter-open .filter-backdrop {
  display: block;
}

body.filter-open .filter-panel {
  display: flex !important;
  flex-direction: column;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.filter-header h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.filter-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #607080;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-kicker svg,
.filter-close svg {
  width: 17px;
  height: 17px;
}

.filter-close {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #34465a;
  background: #ffffff;
}

.filter-scroll-area {
  flex: 1;
  min-height: 0;
  padding: 18px 20px 26px;
  overflow: auto;
}

.filter-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.filter-column {
  display: grid;
  align-content: start;
  gap: 14px;
}

.filter-group {
  overflow: hidden;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  background: #ffffff;
}

.filter-group summary {
  position: relative;
  padding: 13px 42px 13px 14px;
  color: #25384c;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 850;
}

.filter-group summary::-webkit-details-marker {
  display: none;
}

.filter-group summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  color: #718093;
  font-size: 18px;
  font-weight: 500;
}

.filter-group[open] summary::after {
  content: "−";
}

.filter-options {
  display: grid;
  gap: 2px;
  padding: 0 10px 12px;
}

.filter-panel .filter-options label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin: 0;
  padding: 5px 7px;
  border-radius: 5px;
  color: #4d5966;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.filter-panel .filter-options label:hover {
  background: #f3f6f8;
}

.filter-panel input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--blue);
}

.filter-wide {
  margin-top: 16px;
}

.colour-options {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px 8px;
}

.measurement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 4px 14px 18px;
}

.measurement-card {
  min-width: 0;
}

.measurement-card h3 {
  margin: 0 0 10px;
  color: #858585;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
}

.measurement-options {
  gap: 6px;
  padding: 0;
}

.filter-panel .measurement-options label {
  min-height: 38px;
  padding: 4px 2px;
  color: #111111;
  font-size: 14px;
  font-weight: 650;
}

.filter-panel .measurement-options label:hover {
  background: transparent;
}

.filter-panel .measurement-options input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.filter-actions button {
  min-width: 132px;
}

select,
input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
  background: #ffffff;
}

textarea {
  min-height: 112px;
  padding: 10px;
  resize: vertical;
  line-height: 1.45;
}

.check-row {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
}

.range-field span {
  color: var(--muted);
  font-size: 12px;
}

.product-panel {
  min-width: 0;
  overflow: hidden;
}

.table-toolbar {
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--soft-line);
}

.table-toolbar span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.mobile-filter {
  display: none;
}

.list-result-count {
  margin: 0 !important;
  color: #7a8794 !important;
  font-size: 12px !important;
  font-weight: 750;
}

.catalog-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 124px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.sort-control select {
  width: 100%;
  min-height: 36px;
  padding: 0 38px 0 13px;
  border: 0;
  outline: 0;
  appearance: none;
  color: #202020;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.sort-control svg {
  position: absolute;
  right: 12px;
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.export-menu {
  position: relative;
}

.export-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #30445a;
  background: #ffffff;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 800;
}

.export-menu summary::-webkit-details-marker {
  display: none;
}

.export-menu summary svg {
  width: 16px;
  height: 16px;
}

.export-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  width: 150px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.export-options button {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  color: #30445a;
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 750;
}

.export-options button:hover {
  background: #f0f3f6;
}

body[data-order-tab="available"] .subnav-row,
body[data-order-tab="sale"] .subnav-row,
body[data-order-tab="pos"] .subnav-row {
  display: none;
}

body[data-order-tab="available"] .product-table,
body[data-order-tab="sale"] .product-table,
body[data-order-tab="pos"] .product-table {
  min-width: 1120px;
}

body[data-order-tab="pos"] .table-toolbar {
  display: none;
}

.discount-col {
  min-width: 110px;
}

.discount-value {
  color: #e08b1a !important;
  font-weight: 850;
}

.price-col {
  min-width: 100px;
}

.pos-price {
  font-variant-numeric: tabular-nums;
}

.pos-thumb {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 52px;
  border: 1px solid var(--soft-line);
  border-radius: 5px;
  color: #36485a;
  background: #fafafa;
}

.pos-thumb svg {
  width: 29px;
  height: 29px;
  stroke-width: 1.5;
}

.product-table .mobile-pos-thumb {
  display: none;
}

.pos-row .model-cell strong,
.pos-row .sku-cell strong {
  font-size: 12px;
}

.pos-cart-line .pos-thumb {
  width: 86px;
  height: 54px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 54px 28px;
  padding: 28px 4px 46px;
}

.product-card {
  position: relative;
  display: grid;
  min-width: 0;
  background: #ffffff;
}

.model-ribbon {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  min-height: 26px;
  padding: 6px 10px;
  color: #242424;
  background: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 390px;
  padding: 54px 24px 36px;
  overflow: hidden;
  background: #f8f8f8;
}

.product-media img {
  width: 100%;
  max-width: 430px;
  height: 265px;
  object-fit: contain;
  transform: scale(1.18);
  transition: transform 220ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.24);
}

.product-card-copy {
  display: grid;
  gap: 13px;
  padding: 18px 2px 0;
}

.product-collection {
  margin: 0;
  color: #858585;
  font-size: 13px;
}

.model-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.product-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.product-description {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.model-stock {
  display: grid;
  justify-items: end;
  min-width: 78px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.model-stock strong {
  font-size: 20px;
  line-height: 1;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 38px;
}

.colour-swatches,
.colour-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}

.colour-swatches {
  flex-wrap: wrap;
}

.swatch {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 1px solid rgba(23, 32, 47, 0.18);
  border-radius: 50%;
  background: var(--swatch);
}

.product-order-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  color: #202020;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.product-order-link svg {
  width: 15px;
  height: 15px;
}

body[data-order-mode="grid"] .order-layout {
  display: block;
}

body[data-order-mode="grid"] .filter-panel,
body[data-order-mode="grid"] .right-panel {
  display: none;
}

body[data-order-mode="grid"] .filter-panel.open {
  display: grid;
  max-width: 980px;
  margin: 0 0 20px;
}

body[data-order-mode="grid"] .product-panel {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-order-mode="grid"] .table-toolbar {
  padding: 14px 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

body[data-order-mode="grid"] .mobile-filter {
  display: inline-flex;
}

body[data-order-mode="list"] .order-layout,
body[data-order-mode="sku"] .order-layout {
  display: block;
}

body[data-order-mode="list"] .filter-panel,
body[data-order-mode="list"] .right-panel,
body[data-order-mode="sku"] .filter-panel,
body[data-order-mode="sku"] .right-panel {
  display: none;
}

body[data-order-mode="list"] .mobile-filter,
body[data-order-mode="sku"] .mobile-filter {
  display: inline-flex;
}

body[data-order-mode="list"] .product-panel,
body[data-order-mode="sku"] .product-panel {
  overflow: hidden;
}

@media (min-width: 1700px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.sku-matrix-wrap {
  overflow: auto;
}

.sku-matrix {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.sku-matrix th:nth-child(1),
.sku-matrix td:nth-child(1) {
  width: 46%;
}

.sku-matrix th:nth-child(2),
.sku-matrix td:nth-child(2) {
  width: 17%;
}

.sku-matrix th:nth-child(3),
.sku-matrix td:nth-child(3) {
  width: 12%;
}

.sku-matrix th:nth-child(4),
.sku-matrix td:nth-child(4) {
  width: 25%;
}

.sku-matrix th,
.sku-matrix td {
  height: 44px;
  padding: 8px 9px;
  border-bottom: 1px solid var(--soft-line);
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
}

.sku-matrix th {
  color: #435469;
  background: #f4f7fa;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.sku-matrix td span,
.sku-matrix td strong {
  display: block;
}

.sku-matrix td span:not(.swatch) {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.sku-matrix .qty-control input {
  min-width: 0;
  padding: 0;
}

.text-button {
  margin-top: 10px;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 12px;
  font-weight: 850;
}

.table-frame {
  overflow: auto;
}

.product-table,
.business-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
}

.product-table {
  min-width: 1540px;
}

.product-table th,
.product-table td,
.business-table th,
.business-table td {
  height: 62px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--soft-line);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.product-table th,
.business-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #34465a;
  background: #e9f0f6;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.business-table tbody tr:hover,
.product-table tbody tr:hover {
  background: #fbfdff;
}

.business-table td span,
.product-table td span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.product-table .photo-col,
.product-table .photo-cell {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 126px;
  min-width: 126px;
  max-width: 126px;
  background: #ffffff;
}

.product-table .model-col,
.product-table .model-cell {
  position: sticky;
  left: 126px;
  z-index: 3;
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  background: #ffffff;
}

.product-table .sku-col,
.product-table .sku-cell {
  position: sticky;
  left: 276px;
  z-index: 3;
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  background: #ffffff;
  box-shadow: 10px 0 16px -16px rgba(30, 42, 55, 0.72);
}

.product-table .photo-col,
.product-table th.model-col,
.product-table th.sku-col {
  z-index: 5;
  background: #e9f0f6;
}

.model-cell {
  white-space: nowrap;
}

.frame-thumb {
  width: 102px;
  height: 54px;
  object-fit: contain;
  background: #ffffff;
}

.variant-thumb {
  transform: scale(0.94);
}

.mobile-model-thumb {
  display: none;
}

.model-link {
  padding: 0;
  border: 0;
  color: #26384b;
  background: transparent;
  font: inherit;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.model-link:hover {
  color: var(--blue);
  text-decoration-color: currentColor;
}

.variant-model {
  color: #8a96a3 !important;
  font-size: 11px !important;
}

.model-summary-row td {
  background: #f9fbfd;
  font-weight: 750;
}

.model-summary-row .photo-cell,
.model-summary-row .model-cell,
.model-summary-row .sku-cell {
  background: #f9fbfd;
}

.variant-row td {
  height: 72px;
}

.model-sku-note {
  margin: 0 !important;
  color: #718093 !important;
}

.ranking-cell {
  min-width: 150px;
}

.ranking-mark {
  display: inline-block !important;
  width: 22px;
  height: 4px;
  margin: 0 7px 0 0 !important;
  border-radius: 2px;
  vertical-align: middle;
}

.ranking-mark.top {
  background: #56c78a;
}

.ranking-mark.standard {
  background: #f2b24e;
}

.ranking-empty {
  color: #a3adb7 !important;
}

.stock-total {
  color: #26384b;
  font-weight: 850;
}

.history-col,
.open-col,
.waiting-col {
  min-width: 104px;
}

.available-col {
  min-width: 158px;
}

.customers-col {
  min-width: 145px;
}

.collection-col {
  min-width: 150px;
}

.stock-good {
  color: var(--green);
  font-weight: 850;
}

.stock-low {
  color: var(--amber);
  font-weight: 850;
}

.stock-out {
  color: var(--danger);
  font-weight: 850;
}

.qty-control {
  display: grid;
  grid-template-columns: 32px 54px 32px;
  width: 118px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.compact-qty {
  grid-template-columns: 28px 44px 28px;
  width: 100px;
  margin-left: auto;
}

.qty-control button,
.qty-control input {
  height: 32px;
  border: 0;
  text-align: center;
  background: #ffffff;
}

.qty-control button {
  color: var(--blue);
  font-weight: 850;
}

.right-panel {
  display: grid;
  gap: 16px;
}

.assistant-panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.rec-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--soft-line);
}

.rec-card strong,
.cart-line strong {
  display: block;
}

.rec-card span,
.cart-line span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.mini-add {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(23, 105, 170, 0.25);
  border-radius: 6px;
  color: var(--blue);
  background: #e8f3fb;
  font-weight: 900;
}

.mini-add:disabled {
  color: #8a97a6;
  background: #eef2f6;
  cursor: not-allowed;
}

.cart-summary dl,
.checkout-box dl {
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
}

.cart-summary dl div,
.checkout-box dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--soft-line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 850;
}

.cart-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

.cart-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 12px 0;
  border-top: 1px solid var(--soft-line);
}

.cart-view {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.cart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.cart-heading h1 {
  margin: 0;
  font-size: 29px;
}

.cart-clear-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 4px;
  border: 0;
  color: #cf3c35;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  font-weight: 900;
}

.cart-clear-button svg {
  width: 14px;
  height: 14px;
}

.cart-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.cart-stock-group h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: #172a2c;
  font-size: 16px;
}

.cart-stock-group h2 > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #24bd69;
}

.backorder-stock-group h2 > span {
  background: #ff914d;
}

.cart-table-card {
  overflow: hidden;
  border: 1px solid #e1e6ea;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(38, 51, 66, 0.06);
}

.cart-column-head,
.cart-line {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 150px 88px;
  gap: 18px;
  align-items: center;
}

.cart-column-head {
  min-height: 54px;
  padding: 0 24px;
  border-bottom: 1px solid #edf0f2;
  color: #6f7b88;
  background: #fafbfc;
  font-size: 11px;
}

.cart-line {
  min-height: 94px;
  padding: 14px 24px;
  border-top: 1px solid #edf0f2;
}

.cart-column-head + div .cart-line:first-child {
  border-top: 0;
}

.cart-product-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
}

.cart-product-image {
  display: block;
  width: 106px;
  height: 58px;
  object-fit: contain;
}

.cart-product-thumb .pos-thumb {
  width: 72px;
  height: 54px;
}

.cart-product-copy {
  min-width: 0;
}

.cart-product-copy strong {
  display: block;
  overflow: hidden;
  color: #394654;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.cart-product-copy span {
  display: block;
  margin-top: 5px;
  color: #8290a0;
  font-size: 11px;
}

.cart-quantity-field {
  display: block;
}

.cart-quantity-field > span {
  display: none;
}

.cart-quantity-input {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #cfd6dc;
  border-radius: 5px;
  color: #24364a;
  background: #ffffff;
  font-size: 12px;
}

.cart-remove-button {
  justify-self: end;
  padding: 8px 0;
  border: 0;
  color: #8293a7;
  background: transparent;
  text-decoration: underline;
  font-size: 10px;
  font-weight: 750;
}

.cart-remove-button:hover {
  color: #c63d35;
}

.cart-group-empty {
  display: grid;
  place-items: center;
  min-height: 88px;
  padding: 18px;
  color: #8a96a4;
  font-size: 12px;
}

.checkout-box {
  padding: 26px 28px 24px;
  border: 0;
  border-radius: 24px;
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(23, 105, 170, 0.18);
}

.checkout-box h2 {
  margin: 0 0 20px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 13px;
}

.checkout-box dl {
  display: grid;
  gap: 0;
  margin: 0 0 18px;
}

.checkout-box dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-box dt,
.checkout-box dd {
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.checkout-box .backorder-total dt,
.checkout-box .backorder-total dd {
  color: #ff8c2e;
}

.checkout-box .cart-grand-total {
  min-height: 58px;
  border-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.checkout-box .cart-grand-total dt {
  font-size: 10px;
}

.checkout-box .cart-grand-total dd {
  font-size: 25px;
}

.checkout-fields {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.checkout-box .checkout-fields label {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 48px;
  margin: 0;
  padding: 6px 10px 6px 16px;
  border-radius: 8px;
  color: #24364a;
  background: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  font-size: 11px;
  font-weight: 850;
}

.checkout-fields input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d7dde3;
  border-radius: 4px;
  color: #24364a;
  background: #ffffff;
}

.cart-confirm-button,
.cart-continue-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 900;
}

.cart-confirm-button {
  gap: 12px;
  border: 1px solid #ffffff;
  color: var(--blue);
  background: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.cart-confirm-button svg {
  width: 16px;
  height: 16px;
}

.cart-continue-button {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #d7deea;
  background: transparent;
}

.cart-confirm-button:hover {
  background: #f3f7fa;
}

.cart-continue-button:hover {
  border-color: rgba(255, 255, 255, 0.36);
  color: #ffffff;
}

.eos-page {
  min-height: 100vh;
  background: #f7f7f7;
}

.eos-shell {
  box-sizing: border-box;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 22px 22px 36px;
}

.eos-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 94px;
  padding: 18px 22px;
  border: 1px solid #e1e6ea;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(38, 51, 66, 0.06);
}

.eos-logo img {
  display: block;
  width: min(360px, 62vw);
  height: auto;
  opacity: 0.64;
}

.eos-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eos-icon-button,
.eos-user-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #d9dde1;
  border-radius: 999px;
  color: #394654;
  background: #ffffff;
}

.eos-icon-button {
  position: relative;
  width: 46px;
  padding: 0;
}

.eos-icon-button svg,
.eos-user-pill svg {
  width: 18px;
  height: 18px;
}

.eos-icon-button strong {
  position: absolute;
  top: -7px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue);
  font-size: 10px;
}

.eos-user-pill {
  gap: 7px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 850;
}

.eos-title-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 14px;
  padding: 4px 4px 14px;
  border-bottom: 1px solid #d8dde2;
}

.eos-title-strip h1 {
  margin: 3px 0 0;
  color: #202020;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 29px;
  font-weight: 850;
}

.eos-step-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.eos-step-nav button {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid #dce2e7;
  border-radius: 12px;
  color: #536273;
  background: #ffffff;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.eos-step-nav button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #7d8996;
  background: #edf1f4;
  font-size: 11px;
}

.eos-step-nav button.active {
  border-color: var(--blue);
  color: #ffffff;
  background: var(--blue);
}

.eos-step-nav button.active span {
  color: var(--blue);
  background: #ffffff;
}

.eos-workspace {
  display: grid;
  gap: 18px;
}

.eos-panel {
  min-width: 0;
  border: 1px solid #e1e6ea;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(38, 51, 66, 0.06);
}

.eos-customer-panel,
.eos-scan-panel,
.eos-cart-panel {
  padding: 24px;
}

.eos-panel-heading,
.eos-scan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.eos-panel-heading h2,
.eos-scan-header h2 {
  margin: 3px 0 0;
  color: #202b36;
  font-size: 24px;
}

.eos-panel-heading > svg {
  width: 34px;
  height: 34px;
  color: var(--blue);
}

.eos-search-field,
.eos-scan-field > div {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 52px;
  border: 1px solid #cfd6dc;
  border-radius: 12px;
  background: #fbfcfd;
}

.eos-search-field {
  padding: 0 14px;
}

.eos-search-field svg,
.eos-scan-field svg {
  width: 18px;
  height: 18px;
  color: #7a8795;
}

.eos-search-field input,
.eos-scan-field input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #1f2e3e;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 750;
}

.eos-customer-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.eos-customer-list button {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid #e2e7eb;
  border-radius: 12px;
  color: #27384a;
  background: #ffffff;
  text-align: left;
}

.eos-customer-list button.active {
  border-color: rgba(23, 105, 170, 0.34);
  background: #edf7ff;
}

.eos-customer-list strong,
.eos-customer-list span,
.eos-customer-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eos-customer-list strong {
  color: var(--blue);
  font-size: 12px;
}

.eos-customer-list span {
  font-size: 15px;
  font-weight: 850;
}

.eos-customer-list small {
  color: #7a8795;
  font-size: 12px;
}

.eos-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 130px));
  gap: 10px;
  margin-bottom: 18px;
}

.eos-stat-row div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #e2e8ee;
  border-radius: 12px;
  background: #fbfcfd;
}

.eos-stat-row span {
  color: #536273;
  font-size: 13px;
  font-weight: 850;
}

.eos-stat-row strong {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  color: #ffffff;
  background: var(--blue);
  font-size: 13px;
}

.eos-scan-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.eos-scan-field > span,
.eos-add-row label > span {
  color: #607080;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
  font-weight: 900;
}

.eos-scan-field > div {
  padding: 0 14px;
}

.eos-product-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 190px;
  padding: 18px;
  border: 1px solid #e2e7eb;
  border-radius: 18px;
  background: #ffffff;
}

.eos-product-card img {
  width: 100%;
  height: 130px;
  object-fit: contain;
}

.eos-product-code {
  display: inline-flex;
  margin-bottom: 8px;
  color: #728091;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 900;
}

.eos-product-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: #24364a;
  font-size: 23px;
}

.eos-product-card small {
  display: block;
  margin-top: 7px;
  color: #7a8795;
  font-size: 13px;
}

.eos-add-row {
  display: grid;
  grid-template-columns: 150px minmax(190px, 1fr) 56px;
  gap: 10px;
  align-items: end;
  min-width: 0;
  margin-top: 14px;
}

.eos-add-row label {
  display: grid;
  gap: 7px;
}

.eos-add-row input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #cfd6dc;
  border-radius: 8px;
  color: #24364a;
  background: #ffffff;
  font-size: 15px;
  font-weight: 760;
}

.eos-add-row .primary-button {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  overflow: hidden;
}

.eos-reference-toggle {
  display: grid;
  place-items: center;
  width: 56px;
  min-height: 46px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  color: var(--blue);
  background: #ffffff;
}

.eos-reference-toggle svg {
  width: 19px;
  height: 19px;
}

.eos-reference-toggle.active {
  color: #ffffff;
  background: var(--blue);
}

.eos-reference-panel {
  max-width: 100%;
  min-width: 0;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #e2e7eb;
  border-radius: 18px;
  background: #ffffff;
}

.eos-reference-table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.eos-reference-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  color: #263646;
}

.eos-reference-table th,
.eos-reference-table td {
  min-height: 58px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf0f2;
  text-align: center;
  vertical-align: middle;
  font-size: 13px;
}

.eos-reference-table th {
  color: #202b36;
  background: #f7f8fa;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.eos-reference-table tbody td {
  height: 68px;
  color: #526272;
  font-weight: 750;
}

.eos-reference-table th + th,
.eos-reference-table td + td {
  border-left: 1px solid #edf0f2;
}

.eos-reference-ranking {
  display: grid;
  gap: 8px;
  min-width: 130px;
  text-align: left;
}

.eos-reference-ranking p {
  margin: 0;
  color: #5f7f93;
  font-size: 12px;
  white-space: nowrap;
}

.eos-go-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 48px;
  margin-top: 14px;
  padding: 0 22px;
  border: 1px solid #cfd6dc;
  border-radius: 8px;
  color: #24364a;
  background: #ffffff;
  font-size: 15px;
  font-weight: 850;
}

.eos-go-cart-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.eos-insight-card {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #e2e7eb;
  border-radius: 18px;
  background: #ffffff;
}

.eos-insight-card > div {
  min-height: 128px;
  padding: 18px;
  border-left: 1px solid #edf0f2;
}

.eos-insight-card > div:first-child {
  border-left: 0;
}

.eos-insight-card h3 {
  margin: 0 0 12px;
  color: #202b36;
  font-size: 15px;
}

.eos-insight-card p {
  margin: 9px 0 0;
  color: #5f7f93;
  font-size: 13px;
}

.rank-line {
  display: inline-block;
  width: 16px;
  height: 3px;
  margin-right: 8px;
  vertical-align: middle;
}

.rank-line.green {
  background: #57bd7f;
}

.rank-line.amber {
  background: #f4b24d;
}

.eos-insight-card strong {
  display: block;
  color: #24364a;
  font-size: 30px;
}

.eos-insight-card span {
  color: #7a8795;
  font-size: 12px;
}

.eos-cart-page {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.eos-submit-state {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #0f704f;
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 850;
}

@media (max-width: 760px) {
  .eos-shell {
    padding: 12px 10px 24px;
  }

  .eos-header {
    grid-template-columns: minmax(0, 1fr);
    min-height: 76px;
    padding: 14px;
    border-radius: 16px;
    justify-items: center;
  }

  .eos-header-actions {
    justify-self: center;
  }

  .eos-logo img {
    width: min(210px, 50vw);
  }

  .eos-user-pill {
    width: 44px;
    padding: 0;
  }

  .eos-user-pill svg {
    display: block;
  }

  .eos-user-pill {
    font-size: 0;
  }

  .eos-title-strip {
    align-items: flex-start;
    margin-top: 14px;
  }

  .eos-title-strip h1 {
    font-size: 21px;
    line-height: 1.2;
  }

  .eos-step-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .eos-step-nav button {
    justify-content: flex-start;
    min-height: 42px;
    padding: 0 12px;
    font-size: 10px;
  }

  .eos-step-nav button span {
    width: 20px;
    height: 20px;
  }

  .eos-customer-panel,
  .eos-scan-panel,
  .eos-cart-panel {
    padding: 14px;
    border-radius: 16px;
  }

  .eos-panel-heading,
  .eos-scan-header {
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .eos-panel-heading h2,
  .eos-scan-header h2 {
    font-size: 20px;
  }

  .eos-customer-list button {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    min-height: 68px;
  }

  .eos-customer-list strong,
  .eos-customer-list span,
  .eos-customer-list small {
    white-space: normal;
  }

  .eos-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eos-product-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    padding: 14px;
  }

  .eos-product-card img {
    height: 120px;
  }

  .eos-product-card strong {
    font-size: 16px;
  }

  .eos-add-row {
    grid-template-columns: 86px minmax(0, 1fr) 46px;
  }

  .eos-add-row .primary-button {
    padding: 0 12px;
  }

  .eos-reference-toggle {
    width: 46px;
  }

  .eos-reference-table {
    min-width: 980px;
  }

  .eos-insight-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eos-insight-card > div {
    min-height: 104px;
    padding: 14px;
    border-top: 1px solid #edf0f2;
  }

  .eos-insight-card > div:nth-child(odd) {
    border-left: 0;
  }

  .eos-insight-card > div:nth-child(-n + 2) {
    border-top: 0;
  }

  .eos-cart-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .eos-cart-panel .checkout-box {
    border-radius: 18px;
  }
}

@media (max-width: 430px) {
  body.eos-page {
    overflow-x: hidden;
  }

  .eos-header {
    gap: 8px;
  }

  .eos-logo img {
    width: 188px;
  }

  .eos-title-strip {
    display: grid;
  }

  .eos-title-strip .line-button {
    justify-self: start;
  }

  .eos-header-actions {
    min-width: 0;
    gap: 6px;
  }

  .eos-icon-button,
  .eos-user-pill {
    width: 38px;
    min-height: 38px;
  }

  .eos-step-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .eos-step-nav button {
    justify-content: flex-start;
    padding: 0 12px;
  }

  .eos-search-field,
  .eos-scan-field > div {
    min-height: 50px;
  }

  .eos-add-row {
    grid-template-columns: 78px minmax(0, 1fr) 42px;
  }

  .eos-reference-toggle {
    width: 42px;
  }

  .eos-insight-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .eos-insight-card > div,
  .eos-insight-card > div:nth-child(-n + 2) {
    border-top: 1px solid #edf0f2;
    border-left: 0;
  }

  .eos-insight-card > div:first-child {
    border-top: 0;
  }
}

.empty-state,
.state-preview {
  padding: 34px 18px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong,
.state-preview strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 16px;
}

.utility-view {
  max-width: 1040px;
}

.wide-view {
  max-width: none;
}

.info-board-view {
  max-width: 920px;
  margin: 10px auto 0;
}

.info-board-card {
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.info-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 40px 30px;
  border-bottom: 1px solid #eeeeee;
}

.info-board-header h1 {
  font-size: 30px;
  font-weight: 800;
}

.info-board-header p {
  margin: 4px 0 0;
  color: #777777;
  font-size: 16px;
}

.info-board-header svg {
  width: 25px;
  height: 25px;
  color: #888888;
}

.notice-list {
  display: grid;
}

.notice {
  padding: 28px 44px 30px;
  border-bottom: 1px solid #eeeeee;
  background: #ffffff;
}

.notice.unread {
  background: #f8fbff;
}

.notice.unread h2 {
  color: #0f355c;
}

.notice:last-child {
  border-bottom: 0;
}

.notice-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: #929292;
  font-size: 13px;
  font-weight: 700;
}

.notice-label {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 13px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 10px;
  font-weight: 800;
}

.notice-label.waiting {
  color: #b46420;
  background: #ffeddc;
}

.notice-label.order-update {
  color: #356db0;
  background: #e5eef9;
}

.notice-label.marketing {
  color: #416fa6;
  background: #e9eef5;
}

.notice-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--danger);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.notice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4c91e8;
}

.notice h2 {
  margin: 18px 0 8px;
  color: #202020;
  font-size: 20px;
  font-weight: 800;
}

.notice a {
  color: #2584d8;
  font-size: 18px;
  text-underline-offset: 3px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.status-badge.success {
  color: var(--green);
  background: var(--green-soft);
}

.status-badge.warning {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-badge.danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.status-badge.info {
  color: var(--blue-dark);
  background: var(--info-soft);
}

.status-badge.muted {
  color: #536274;
  background: #eef2f6;
}

.table-icon {
  width: 32px;
  height: 32px;
}

.assistant-workbench {
  align-items: stretch;
  gap: 16px;
  margin-bottom: 16px;
}

.prompt-card,
.answer-card {
  flex: 1;
}

.prompt-actions {
  justify-content: flex-end;
  gap: 10px;
}

.answer-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.metric-row {
  gap: 10px;
}

.metric-row div {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  background: #fbfdff;
}

.metric-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric-row strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.assistant-view {
  width: 100%;
  min-width: 0;
}

.assistant-intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 74px;
  margin-bottom: 16px;
  padding: 20px 22px;
  border: 1px solid #e5e5e5;
  border-radius: 22px;
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(32, 32, 32, 0.07);
}

.assistant-intro svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.assistant-intro strong {
  font-size: 16px;
  font-style: italic;
  line-height: 1.35;
}

.assistant-question {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #dedede;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(32, 32, 32, 0.07);
}

.assistant-question-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--blue);
}

.assistant-question-icon svg {
  width: 19px;
  height: 19px;
}

.assistant-question-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  max-height: 120px;
  padding: 11px 4px;
  resize: vertical;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
}

.assistant-question-field {
  min-width: 0;
}

.assistant-submit {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  border-radius: 18px;
  color: #ffffff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  box-shadow: 0 5px 12px rgba(23, 105, 170, 0.2);
}

.assistant-submit:hover {
  background: var(--blue-dark);
}

.assistant-response {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: 0 4px 10px;
  color: #526477;
  font-size: 12px;
}

.assistant-response svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.assistant-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.assistant-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #333333;
  background: #ffffff;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.assistant-tool-button.dark {
  border-color: var(--blue);
  color: #ffffff;
  background: var(--blue);
}

.assistant-tool-button svg {
  width: 14px;
  height: 14px;
}

.assistant-results-frame {
  width: 100%;
  overflow: auto;
  border: 1px solid #e3e3e3;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(32, 32, 32, 0.06);
}

.assistant-results-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.assistant-results-table th,
.assistant-results-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #eeeeee;
  text-align: left;
  vertical-align: middle;
}

.assistant-results-table th {
  height: 48px;
  color: #6c6c6c;
  background: #fbfbfb;
  font-size: 11px;
  font-weight: 700;
}

.assistant-results-table tbody tr:last-child td {
  border-bottom: 0;
}

.assistant-results-table tbody tr:hover td {
  background: #fafafa;
}

.assistant-results-table .num {
  text-align: center;
}

.assistant-photo-cell {
  width: 130px;
}

.assistant-photo-cell img {
  display: block;
  width: 108px;
  height: 54px;
  object-fit: contain;
}

.assistant-product-cell {
  min-width: 250px;
}

.assistant-product-cell strong,
.assistant-product-cell span {
  display: block;
}

.assistant-product-cell strong {
  color: #303030;
  font-size: 11px;
}

.assistant-product-cell span {
  margin-top: 4px;
  color: #868686;
  font-size: 10px;
}

.assistant-mobile-photo {
  display: none;
}

.assistant-rank {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 12px;
  color: #b45a12;
  background: #fff0df;
  font-size: 10px;
  font-weight: 850;
}

.assistant-row-action {
  width: 58px;
  text-align: center !important;
}

.assistant-row-action button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: var(--blue);
  background: #edf6fd;
}

.assistant-row-action svg {
  width: 16px;
  height: 16px;
}

.tracking-panel {
  align-items: flex-start;
  gap: 20px;
  margin-top: 16px;
}

.tracking-steps {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px;
}

.tracking-steps span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.tracking-steps .done {
  color: var(--green);
  border-color: rgba(15, 143, 104, 0.28);
  background: var(--green-soft);
}

.tracking-steps .active {
  color: var(--blue-dark);
  border-color: rgba(23, 105, 170, 0.3);
  background: var(--info-soft);
}

.upload-layout {
  align-items: stretch;
  gap: 16px;
}

.upload-zone {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 300px;
  flex: 1.2;
  padding: 24px;
  border-style: dashed;
  text-align: center;
}

.upload-zone svg {
  width: 42px;
  height: 42px;
  color: var(--blue);
}

.upload-zone span {
  color: var(--muted);
  font-size: 13px;
}

.state-stack {
  display: grid;
  gap: 12px;
  flex: 1;
}

.state-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  box-shadow: none;
}

.state-card svg {
  width: 24px;
  height: 24px;
}

.state-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.state-card.success svg {
  color: var(--green);
}

.state-card.error svg {
  color: var(--danger);
}

.state-card.loading svg {
  color: var(--blue);
  animation: spin 1s linear infinite;
}

.sidebar-close {
  display: none;
}

.sidebar-open .sidebar {
  transform: translateX(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.history-view {
  max-width: 1160px;
  margin: 0 auto;
}

.history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.history-heading h1 {
  font-size: 29px;
}

.history-filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-date-control {
  position: relative;
  display: flex;
  align-items: center;
}

.history-date-control svg {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 18px;
  color: #728399;
  pointer-events: none;
}

.history-date-control input {
  width: 154px;
  min-height: 42px;
  padding: 0 10px 0 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #34465a;
  background: #ffffff;
}

.history-period {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid #152238;
  border-radius: 999px;
  color: #152238;
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.history-period.active {
  color: #ffffff;
  background: #152238;
}

.history-list {
  display: grid;
  gap: 14px;
}

.history-card {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  border: 1px solid #e1e6ea;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(38, 51, 66, 0.07);
}

.history-card:has(.history-export-toggle[aria-expanded="true"]) {
  z-index: 10;
}

.history-card summary {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(130px, 0.8fr) minmax(150px, 0.8fr) auto 24px;
  gap: 22px;
  align-items: center;
  min-height: 122px;
  padding: 20px 26px;
  cursor: pointer;
  list-style: none;
}

.history-card summary::-webkit-details-marker {
  display: none;
}

.history-order-identity time,
.history-order-metric span,
.history-order-status > span {
  display: block;
  margin-bottom: 10px;
  color: #8798ad;
  font-size: 11px;
  font-weight: 800;
}

.history-order-identity strong {
  display: block;
  color: #10203a;
  font-size: 21px;
}

.history-order-metric strong {
  color: #202020;
  font-size: 19px;
}

.history-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.history-status.processing {
  color: #68744f;
  border: 1px solid #dbe5c3;
  background: #eef5dd;
}

.history-status.delivered {
  color: #167a4e;
  background: #d8f7e6;
}

.history-export-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-export-actions button {
  font: inherit;
}

.history-export-menu {
  position: relative;
}

.history-export-actions .history-export-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 126px;
  height: 44px;
  padding: 0 14px;
  gap: 10px;
  border: 1px solid #d7dce2;
  border-radius: 9px;
  color: #2d425d;
  background: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.history-export-toggle svg {
  width: 18px;
  height: 18px;
}

.history-export-toggle svg:last-child {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.history-export-toggle[aria-expanded="true"] svg:last-child {
  transform: rotate(180deg);
}

.history-export-options {
  position: absolute;
  z-index: 8;
  top: calc(100% + 8px);
  left: 0;
  box-sizing: border-box;
  width: 190px;
  padding: 8px;
  border: 1px solid #d7dce2;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(25, 38, 53, 0.16);
}

.history-export-options[hidden] {
  display: none;
}

.history-export-actions .history-export-options button {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 7px;
  color: #2d425d;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.history-export-options button:hover {
  background: #f1f3f5;
}

.history-export-actions .history-reorder-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  min-width: 112px;
  height: 44px;
  padding: 0 15px;
  gap: 8px;
  border: 1px solid #152238;
  border-radius: 9px;
  color: #152238;
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.history-reorder-button svg {
  width: 15px;
  height: 15px;
}

.history-reorder-button:hover {
  color: #ffffff;
  background: #152238;
}

.search-target-row td {
  animation: search-target-flash 1.8s ease;
}

@keyframes search-target-flash {
  0%,
  70% {
    background: #e2f2ff;
  }
  100% {
    background: inherit;
  }
}

.reorder-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 30, 42, 0.42);
}

.reorder-dialog {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid #d7dce2;
  border-radius: 18px;
  color: #202020;
  background: #ffffff;
  box-shadow: 0 24px 58px rgba(25, 38, 53, 0.22);
}

.reorder-dialog-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #d7dce2;
  border-radius: 12px;
  color: #152238;
  background: #f7f9fb;
}

.reorder-dialog-icon svg {
  width: 20px;
  height: 20px;
}

.reorder-dialog-copy {
  display: grid;
  gap: 8px;
  padding-right: 28px;
}

.reorder-dialog-kicker {
  color: #718197;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.reorder-dialog h2 {
  margin: 0;
  color: #10203a;
  font-size: 22px;
}

.reorder-dialog p {
  margin: 0;
  color: #536274;
  font-size: 15px;
  line-height: 1.5;
}

.reorder-dialog-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}

.line-button,
.dark-line-button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.line-button {
  border: 1px solid #d7dce2;
  color: #2d425d;
  background: #ffffff;
}

.dark-line-button {
  border: 1px solid #152238;
  color: #ffffff;
  background: #152238;
}

.reorder-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  color: #728399;
  background: transparent;
}

.reorder-dialog-close svg {
  width: 18px;
  height: 18px;
}

.history-chevron {
  width: 18px;
  height: 18px;
  color: #77879a;
  transition: transform 160ms ease;
}

.history-card[open] .history-chevron {
  transform: rotate(180deg);
}

.history-card-detail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 26px 22px;
  border-top: 1px solid #edf0f2;
  background: #fbfcfd;
}

.history-card-detail div {
  padding: 12px;
  border: 1px solid #e5e9ec;
  border-radius: 7px;
  background: #ffffff;
}

.history-card-detail span,
.history-card-detail strong {
  display: block;
}

.history-card-detail span {
  margin-bottom: 5px;
  color: #8390a0;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.history-card-detail strong {
  color: #27394d;
  font-size: 13px;
}

.history-order-detail {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border-top: 1px solid #e4e8eb;
  border-radius: 0 0 24px 24px;
  background: #ffffff;
}

.history-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 26px;
  border-bottom: 1px solid #e4e8eb;
  background: #f8f9fa;
}

.history-detail-meta strong {
  color: #172a43;
  font-size: 17px;
}

.history-detail-meta time {
  color: #6e8093;
  font-size: 12px;
  font-weight: 800;
}

.history-detail-table-wrap {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border-radius: 0 0 24px 24px;
}

.history-detail-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: separate;
  border-spacing: 0;
  color: #283747;
  background: #ffffff;
}

.history-detail-table th,
.history-detail-table td {
  height: 70px;
  padding: 12px 16px;
  border-bottom: 1px solid #e6e9ec;
  background: #ffffff;
  vertical-align: middle;
  font-size: 12px;
}

.history-detail-table th {
  height: 66px;
  color: #607287;
  background: #f4f6f7;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: 10px;
  font-weight: 900;
}

.history-detail-table .history-photo {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 138px;
  min-width: 138px;
  max-width: 138px;
  text-align: center;
}

.history-detail-table .history-model {
  position: sticky;
  left: 138px;
  z-index: 3;
  width: 165px;
  min-width: 165px;
  max-width: 165px;
}

.history-detail-table .history-sku {
  position: sticky;
  left: 303px;
  z-index: 3;
  width: 310px;
  min-width: 310px;
  max-width: 310px;
  box-shadow: 10px 0 18px -18px rgba(29, 41, 55, 0.8);
}

.history-detail-table th.history-photo,
.history-detail-table th.history-model,
.history-detail-table th.history-sku {
  z-index: 5;
  background: #f4f6f7;
}

.history-detail-table .history-qty {
  min-width: 125px;
  text-align: center;
}

.history-detail-table img {
  display: block;
  width: 108px;
  height: 48px;
  margin: 0 auto;
  object-fit: contain;
}

.history-detail-table .history-model strong,
.history-detail-table .history-sku strong {
  color: #3e4d5c;
  font-size: 12px;
  font-weight: 750;
}

.history-sku-row td,
.history-sku-row .history-photo,
.history-sku-row .history-model,
.history-sku-row .history-sku {
  background: #fcfcfc;
}

.history-detail-table .history-qty-alert {
  color: #d93025;
  font-weight: 850;
}

.history-detail-table tfoot td {
  height: 58px;
  border-bottom: 0;
  background: #f8f9fa;
}

.history-detail-table tfoot .history-photo,
.history-detail-table tfoot .history-model,
.history-detail-table tfoot .history-sku {
  background: #f8f9fa;
}

.history-mobile-product {
  display: none;
}

.history-empty {
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 220px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: #748293;
  background: #ffffff;
}

.delivery-view {
  max-width: 1160px;
  margin: 0 auto;
}

.delivery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.delivery-heading h1 {
  font-size: 29px;
}

.delivery-filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

.delivery-date-control {
  position: relative;
  display: flex;
  align-items: center;
}

.delivery-date-control svg {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 18px;
  color: #728399;
  pointer-events: none;
}

.delivery-date-control input {
  width: 154px;
  min-height: 42px;
  padding: 0 10px 0 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #34465a;
  background: #ffffff;
}

.delivery-period {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid #152238;
  border-radius: 999px;
  color: #152238;
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.delivery-period.active {
  color: #ffffff;
  background: #152238;
}

.delivery-list {
  display: grid;
  gap: 14px;
}

.delivery-card {
  overflow: hidden;
  border: 1px solid #e1e6ea;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(38, 51, 66, 0.07);
}

.delivery-card-main {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(160px, 0.9fr) minmax(150px, 0.8fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 122px;
  padding: 20px 26px;
}

.delivery-order-identity time,
.delivery-date-metric span,
.delivery-order-status > span {
  display: block;
  margin-bottom: 10px;
  color: #8798ad;
  font-size: 11px;
  font-weight: 800;
}

.delivery-order-identity strong {
  display: block;
  color: #10203a;
  font-size: 21px;
}

.delivery-date-metric strong {
  display: inline-flex;
  min-height: 31px;
  padding: 5px 8px;
  color: #656565;
  background: #f3f3f3;
  font-size: 17px;
}

.tracking-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 146px;
  min-height: 44px;
  border: 1px solid #9fd5e5;
  border-radius: 4px;
  color: #315b6a;
  background: #a9dcec;
  font-size: 13px;
  font-weight: 850;
}

.tracking-button svg {
  width: 17px;
  height: 17px;
}

.tracking-button.active {
  color: #ffffff;
  border-color: var(--blue);
  background: var(--blue);
}

.delivery-tracking-detail {
  padding: 0;
  border-top: 1px solid #edf0f2;
  background: #fbfcfd;
}

.delivery-tracking-table-wrap {
  max-width: 100%;
  overflow: auto;
}

.delivery-tracking-table {
  width: 100%;
  min-width: 1280px;
  border-collapse: separate;
  border-spacing: 0;
}

.delivery-tracking-table th,
.delivery-tracking-table td {
  height: 74px;
  padding: 10px 12px;
  border-bottom: 1px solid #e7eaed;
  color: #56616d;
  background: #ffffff;
  text-align: left;
  vertical-align: middle;
  font-size: 11px;
}

.delivery-tracking-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 48px;
  color: #34465a;
  background: #f4f6f7;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.delivery-tracking-table .track-date {
  position: sticky;
  left: 0;
  z-index: 4;
  width: 120px;
  min-width: 120px;
  max-width: 120px;
}

.delivery-tracking-table .track-po {
  position: sticky;
  left: 120px;
  z-index: 4;
  width: 110px;
  min-width: 110px;
  max-width: 110px;
}

.delivery-tracking-table .track-photo {
  position: sticky;
  left: 230px;
  z-index: 4;
  width: 138px;
  min-width: 138px;
  max-width: 138px;
  text-align: center;
}

.delivery-tracking-table .track-sku {
  position: sticky;
  left: 368px;
  z-index: 4;
  width: 290px;
  min-width: 290px;
  max-width: 290px;
  box-shadow: 10px 0 18px -18px rgba(29, 41, 55, 0.8);
}

.delivery-tracking-table th.track-date,
.delivery-tracking-table th.track-po,
.delivery-tracking-table th.track-photo,
.delivery-tracking-table th.track-sku {
  z-index: 6;
  background: #f4f6f7;
}

.delivery-tracking-table td.track-date,
.delivery-tracking-table td.track-po,
.delivery-tracking-table td.track-photo,
.delivery-tracking-table td.track-sku {
  background: #ffffff;
}

.delivery-tracking-table .track-sku strong {
  display: block;
  overflow: hidden;
  color: #4b5662;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.tracking-item-image,
.tracking-item-icon {
  width: 112px;
  height: 54px;
}

.tracking-item-image {
  object-fit: contain;
}

.tracking-item-icon {
  display: inline-grid;
  place-items: center;
  border: 1px solid #e0e4e7;
  border-radius: 5px;
  color: #384a5d;
  background: #fafafa;
}

.tracking-item-icon svg {
  width: 27px;
  height: 27px;
}

.track-mobile-product {
  display: none;
}

.tracking-empty {
  display: grid;
  gap: 5px;
  place-items: center;
  min-height: 150px;
  padding: 24px;
  color: #7a8795;
  text-align: center;
}

.tracking-empty strong,
.tracking-empty span {
  display: block;
}

.delivery-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.delivery-progress span {
  min-height: 34px;
  padding: 9px 10px;
  border: 1px solid #dce2e7;
  border-radius: 999px;
  color: #8390a0;
  background: #ffffff;
  text-align: center;
  font-size: 10px;
  font-weight: 850;
}

.delivery-progress span.done {
  color: #167a4e;
  border-color: #bfe7d1;
  background: #e2f8eb;
}

.delivery-progress span.active {
  color: var(--blue-dark);
  border-color: #afd5ee;
  background: #e7f4fc;
}

.delivery-tracking-detail p {
  margin: 12px 0 0;
  color: #6f7d8d;
  font-size: 12px;
}

.exhibition-view {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.exhibition-layout {
  display: grid;
  grid-template-columns: minmax(360px, 440px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.exhibition-device {
  overflow: hidden;
  border: 1px solid #dfe4e8;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(38, 51, 66, 0.09);
}

.exhibition-device-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 16px 18px;
  border-bottom: 1px solid #e7eaed;
  background: #ffffff;
}

.exhibition-device-logo img {
  display: block;
  width: 188px;
  max-width: 100%;
  height: auto;
  opacity: 0.68;
}

.exhibition-device-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.exhibition-icon-button,
.exhibition-user {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid #d9dde1;
  border-radius: 999px;
  color: #394654;
  background: #ffffff;
}

.exhibition-icon-button {
  position: relative;
  justify-content: center;
  width: 42px;
  padding: 0;
}

.exhibition-icon-button svg,
.exhibition-user svg {
  width: 18px;
  height: 18px;
}

.exhibition-icon-button strong {
  position: absolute;
  top: -6px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue);
  font-size: 10px;
}

.exhibition-user {
  gap: 6px;
  padding: 0 11px;
  font-size: 11px;
  font-weight: 850;
}

.exhibition-device-body {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #f6f7f8;
}

.exhibition-login-panel,
.exhibition-customer-panel,
.exhibition-scan-panel,
.exhibition-cart-panel,
.exhibition-flow-panel {
  border: 1px solid #e0e4e8;
  border-radius: 18px;
  background: #ffffff;
}

.exhibition-login-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

.exhibition-kicker {
  display: block;
  margin-bottom: 4px;
  color: #7a8795;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  font-weight: 900;
}

.exhibition-login-panel strong {
  color: #24364a;
  font-size: 16px;
}

.exhibition-customer-panel,
.exhibition-scan-panel,
.exhibition-cart-panel {
  padding: 14px;
}

.exhibition-field {
  display: grid;
  gap: 7px;
}

.exhibition-field span,
.exhibition-qty-field span {
  color: #607080;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
  font-weight: 900;
}

.exhibition-field input,
.exhibition-field select,
.exhibition-qty-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #cfd6dc;
  border-radius: 8px;
  color: #24364a;
  background: #ffffff;
  font-size: 14px;
  font-weight: 760;
}

.exhibition-scan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.exhibition-scan-head h2,
.exhibition-section-title h2,
.exhibition-flow-panel h2 {
  margin: 0;
  color: #202b36;
  font-size: 20px;
}

.exhibition-scan-head > svg {
  width: 34px;
  height: 34px;
  color: var(--blue);
}

.exhibition-scan-input {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #cfd6dc;
  border-radius: 12px;
  background: #fbfcfd;
}

.exhibition-scan-input svg {
  width: 20px;
  height: 20px;
  color: #6c7b8a;
}

.exhibition-scan-input input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #1f2e3e;
  background: transparent;
  font-size: 15px;
  font-weight: 850;
}

.exhibition-quick-scans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}

.exhibition-quick-scans button {
  min-height: 34px;
  border: 1px solid #d5dbe0;
  border-radius: 999px;
  color: #536273;
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.exhibition-quick-scans button.active {
  border-color: var(--blue);
  color: #ffffff;
  background: var(--blue);
}

.exhibition-product-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 142px;
  padding: 14px;
  border: 1px solid #e0e5e9;
  border-radius: 14px;
  background: #ffffff;
}

.exhibition-product-card > img {
  width: 100%;
  height: 72px;
  object-fit: contain;
}

.exhibition-product-model {
  display: block;
  color: #7d8996;
  font-size: 11px;
  font-weight: 850;
}

.exhibition-product-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: #24364a;
  font-size: 14px;
}

.exhibition-product-card small {
  display: block;
  margin-top: 4px;
  color: #7a8795;
  font-size: 11px;
  line-height: 1.35;
}

.exhibition-product-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.exhibition-product-card dl div {
  min-width: 0;
  padding: 8px;
  border-radius: 9px;
  background: #f5f7f9;
}

.exhibition-product-card dt {
  color: #7c8996;
  font-size: 9px;
  font-weight: 850;
}

.exhibition-product-card dd {
  overflow: hidden;
  color: #24364a;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.exhibition-empty-product,
.exhibition-empty-cart {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 120px;
  color: #7a8795;
  text-align: center;
}

.exhibition-empty-product svg,
.exhibition-empty-cart svg {
  width: 24px;
  height: 24px;
}

.exhibition-add-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.exhibition-add-row .primary-button {
  min-height: 44px;
}

.exhibition-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.exhibition-cart-lines {
  display: grid;
  gap: 8px;
}

.exhibition-cart-line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 70px 34px;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 10px;
  border: 1px solid #e4e8ec;
  border-radius: 12px;
  background: #ffffff;
}

.exhibition-cart-line img {
  width: 70px;
  height: 42px;
  object-fit: contain;
}

.exhibition-cart-line strong,
.exhibition-cart-line span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exhibition-cart-line strong {
  color: #263646;
  font-size: 12px;
}

.exhibition-cart-line span {
  margin-top: 3px;
  color: #7a8795;
  font-size: 10px;
}

.exhibition-cart-line input {
  width: 100%;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  color: #24364a;
  font-size: 12px;
}

.exhibition-cart-line button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e0e4e8;
  border-radius: 7px;
  color: #c63d35;
  background: #ffffff;
}

.exhibition-cart-line button svg {
  width: 15px;
  height: 15px;
}

.exhibition-checkout {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e6eaed;
}

.exhibition-checkout .cart-confirm-button {
  border-color: var(--blue);
  color: #ffffff;
  background: var(--blue);
}

.exhibition-checkout .cart-confirm-button:hover {
  background: var(--blue-dark);
}

.exhibition-submit-state {
  margin: 2px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #0f704f;
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 850;
}

.exhibition-flow-panel {
  padding: 24px;
}

.exhibition-flow-panel ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.exhibition-flow-panel li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #e1e6ea;
  border-radius: 12px;
  background: #fbfcfd;
  counter-increment: eos-step;
}

.exhibition-flow-panel li::before {
  content: counter(eos-step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #ffffff;
  background: #5f6d7a;
  font-size: 12px;
  font-weight: 900;
}

.exhibition-flow-panel strong,
.exhibition-flow-panel span {
  display: block;
  grid-column: 2;
}

.exhibition-flow-panel strong {
  color: #24364a;
  font-size: 14px;
}

.exhibition-flow-panel span {
  margin-top: 4px;
  color: #6d7b89;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1480px) {
  .app-shell {
    grid-template-columns: 228px minmax(0, 1fr);
  }

  .order-layout {
    grid-template-columns: 204px minmax(0, 1fr);
  }

  .right-panel {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px 22px;
  }

  .product-media {
    min-height: 320px;
  }

  .product-media img {
    height: 220px;
  }
}

@media (max-width: 1180px) {
  .product-table .sku-col,
  .product-table .sku-cell {
    position: static;
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    box-shadow: none;
  }

  .product-table .model-col,
  .product-table .model-cell {
    box-shadow: 10px 0 16px -16px rgba(30, 42, 55, 0.72);
  }

}

@media (max-width: 980px) {
  .loading-header {
    min-height: 132px;
  }

  .loading-main {
    padding: 64px 24px 120px;
  }

  .loading-card h1 {
    font-size: 30px;
  }

  .loading-card p {
    font-size: 21px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 50;
    width: 286px;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .sidebar-close {
    display: inline-grid;
  }

  .workspace {
    padding: 18px;
  }

  .topbar {
    margin: -18px -18px 18px;
    padding: 12px 18px;
  }

  .global-search-shell {
    margin-inline: 0;
  }

  .topbar-status {
    display: none;
  }

  .order-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-panel {
    display: none;
  }

  .filter-panel.open {
    display: grid;
  }

  .mobile-filter {
    display: inline-flex;
  }

  .right-panel,
  .cart-page,
  .assistant-workbench,
  .upload-layout,
  .tracking-panel,
  .exhibition-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-media {
    min-height: 340px;
  }
}

@media (max-width: 680px) {
  body {
    overflow-x: hidden;
  }

  .workspace {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .assistant-view,
  .assistant-intro,
  .assistant-question,
  .assistant-response,
  .assistant-toolbar,
  .assistant-results-frame {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    min-width: 0;
  }

  .topbar .global-search-shell {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
  }

  .history-view,
  .history-list,
  .history-card,
  .exhibition-view,
  .exhibition-layout,
  .exhibition-device {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .loading-header {
    min-height: 116px;
  }

  .loading-logo img {
    width: min(82vw, 360px);
  }

  .loading-main {
    padding: 96px 20px 120px;
  }

  .loading-card {
    gap: 18px;
  }

  .loading-card h1 {
    font-size: 28px;
  }

  .loading-card p {
    font-size: 19px;
  }

  .loading-spinner {
    width: 46px;
    height: 46px;
  }

  .cookie-bar {
    align-items: stretch;
    padding: 12px 16px;
    font-size: 15px;
  }

  .cookie-bar button {
    width: 68px;
    min-height: 40px;
    font-size: 18px;
  }

  h1 {
    font-size: 22px;
  }

  .topbar {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .global-search-shell {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .global-search kbd {
    display: none;
  }

  .global-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    border-radius: 12px;
  }

  .search-results-content {
    max-height: calc(100vh - 156px);
  }

  .search-result-item {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 82px;
    padding: 12px 14px;
  }

  .search-result-meta {
    grid-column: 2;
    display: flex;
    gap: 8px;
    text-align: left;
  }

  .search-results-footer {
    position: sticky;
    bottom: 0;
    justify-content: flex-end;
    padding-right: 28px;
  }

  .search-results-footer > span {
    display: none;
  }

  .cart-button {
    width: 38px;
    padding: 0;
  }

  .cart-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .page-heading {
    display: grid;
  }

  .exhibition-view .page-heading p {
    margin: 6px 0 0;
    font-size: 13px;
  }

  .exhibition-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .exhibition-device {
    width: calc(100vw - 36px);
    border-radius: 18px;
    box-shadow: none;
  }

  .exhibition-device-header {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 14px;
  }

  .exhibition-device-logo img {
    width: 172px;
  }

  .exhibition-device-actions {
    justify-content: space-between;
  }

  .exhibition-user {
    justify-content: center;
    width: 42px;
    padding: 0;
    font-size: 0;
  }

  .exhibition-device-body {
    padding: 12px;
  }

  .exhibition-login-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .exhibition-login-panel .line-button {
    width: 100%;
    padding-inline: 12px;
  }

  .exhibition-product-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .exhibition-product-card dl {
    grid-template-columns: 1fr;
  }

  .exhibition-add-row {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .exhibition-quick-scans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exhibition-quick-scans button:last-child {
    grid-column: 1 / -1;
  }

  .exhibition-cart-line {
    grid-template-columns: 62px minmax(0, 1fr) 62px 34px;
    gap: 8px;
    padding: 8px;
  }

  .exhibition-cart-line img {
    width: 58px;
  }

  .exhibition-flow-panel {
    padding: 18px;
  }

  .info-board-card {
    border-radius: 18px;
  }

  .info-board-header {
    padding: 24px 22px;
  }

  .info-board-header h1 {
    font-size: 25px;
  }

  .info-board-header p {
    font-size: 14px;
  }

  .notice {
    padding: 24px 22px;
  }

  .notice h2 {
    font-size: 18px;
  }

  .notice a {
    font-size: 16px;
  }

  .heading-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .segmented-control {
    width: 100%;
    grid-auto-columns: minmax(82px, 1fr);
  }

  .segment {
    padding-inline: 8px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 20px;
  }

  .product-media {
    min-height: 360px;
  }

  .product-media img {
    height: 245px;
  }

  .model-card-header,
  .product-card-footer {
    align-items: flex-start;
  }

  .sku-matrix,
  .sku-matrix tbody,
  .sku-matrix tr,
  .sku-matrix td {
    display: block;
  }

  .sku-matrix thead {
    display: none;
  }

  .sku-matrix tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--soft-line);
  }

  .sku-matrix td {
    width: auto !important;
    height: auto;
    padding: 0;
    border-bottom: 0;
  }

  .sku-matrix td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .sku-matrix td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    color: var(--muted);
  }

  .sku-matrix td:nth-child(2)::before {
    content: "Size ";
    font-weight: 850;
  }

  .sku-matrix td:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
    text-align: left;
  }

  .sku-matrix td:nth-child(3)::before {
    content: "Stock ";
    color: var(--muted);
    font-weight: 850;
  }

  .sku-matrix td:nth-child(4) {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .compact-qty {
    grid-template-columns: 26px 38px 26px;
    width: 90px;
  }

  .product-table,
  .business-table {
    min-width: 1100px;
  }

  .notice {
    grid-template-columns: 1fr;
  }

  .cart-line {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .cart-line .qty-control {
    grid-column: 2;
  }

  .product-table {
    min-width: 1420px;
  }

  body[data-order-tab="available"] .product-table,
  body[data-order-tab="sale"] .product-table,
  body[data-order-tab="pos"] .product-table {
    min-width: 1040px;
  }

  .product-table .photo-col,
  .product-table .photo-cell {
    display: none;
  }

  .product-table .model-col,
  .product-table .model-cell {
    left: 0;
    width: 214px;
    min-width: 214px;
    max-width: 214px;
    box-shadow: 10px 0 16px -16px rgba(30, 42, 55, 0.72);
  }

  .product-table th.model-col {
    font-size: 0;
  }

  .product-table th.model-col::after {
    content: "Product";
    font-size: 11px;
  }

  .product-table .model-cell {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
  }

  .product-table .sku-col,
  .product-table .sku-cell {
    position: static;
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    box-shadow: none;
  }

  .mobile-model-thumb {
    display: block;
    width: 78px;
    height: 48px;
    object-fit: contain;
  }

  .product-table .mobile-pos-thumb {
    display: inline-grid;
    width: 78px;
    height: 48px;
  }

  .pos-allowance-strip {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .pos-allowance-strip dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border-radius: 6px;
    background: #d8d8d8;
  }

  .pos-allowance-strip dl div {
    min-height: 62px;
    padding: 8px 10px;
    border-left: 0;
    background: #ffffff;
  }

  .pos-allowance-strip dd {
    font-size: 15px;
  }

  .variant-model {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .list-result-count {
    display: none !important;
  }

  .catalog-controls {
    flex-wrap: wrap;
  }

  .export-menu summary {
    padding-inline: 10px;
  }
}

@media (max-width: 1480px) {
  .filter-panel {
    left: 252px;
  }
}

@media (max-width: 1180px) {
  .filter-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-column {
    display: contents;
  }

  .colour-options {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .measurement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .filter-panel {
    inset: 18px;
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 680px) {
  .filter-panel {
    inset: 0;
    border: 0;
    border-radius: 0;
  }

  .filter-header {
    padding: 15px 16px;
  }

  .filter-header h2 {
    font-size: 18px;
  }

  .filter-scroll-area {
    padding: 14px 14px 24px;
  }

  .filter-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .colour-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .measurement-grid {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    padding: 12px 14px;
  }

  .filter-actions button {
    min-width: 0;
  }
}

@media (max-width: 980px) {
  .history-card summary {
    position: relative;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    min-height: 0;
    padding: 22px 24px;
  }

  .history-order-identity {
    padding-right: 28px;
  }

  .history-chevron {
    position: absolute;
    top: 24px;
    right: 22px;
  }

  .history-card-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-detail-table .history-photo {
    width: 112px;
    min-width: 112px;
    max-width: 112px;
  }

  .history-detail-table .history-model {
    left: 112px;
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    box-shadow: 10px 0 18px -18px rgba(29, 41, 55, 0.8);
  }

  .history-detail-table .history-sku {
    position: static;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    box-shadow: none;
  }

  .history-detail-table img {
    width: 86px;
    height: 44px;
  }

  .history-export-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .history-heading {
    display: grid;
    gap: 14px;
  }

  .history-heading h1 {
    font-size: 24px;
  }

  .history-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  }

  .history-date-control input {
    width: 100%;
  }

  .history-period {
    padding-inline: 13px;
    font-size: 9px;
  }

  .history-card {
    border-radius: 16px;
  }

  .history-order-detail,
  .history-detail-table-wrap {
    border-radius: 0 0 16px 16px;
  }

  .history-detail-meta {
    padding: 14px 18px;
  }

  .history-detail-table {
    min-width: 760px;
  }

  .history-detail-table .history-photo,
  .history-detail-table .history-model,
  .history-detail-table .history-sku {
    display: none;
  }

  .history-detail-table .history-mobile-product {
    display: table-cell;
    position: sticky;
    left: 0;
    z-index: 4;
    width: 230px;
    min-width: 230px;
    max-width: 230px;
    background: #ffffff;
    box-shadow: 10px 0 18px -18px rgba(29, 41, 55, 0.8);
  }

  .history-detail-table th.history-mobile-product {
    z-index: 6;
    background: #f4f6f7;
  }

  .history-detail-table tfoot .history-mobile-product {
    background: #f8f9fa;
  }

  .history-mobile-product > div {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  .history-mobile-product img {
    width: 76px;
    height: 44px;
  }

  .history-mobile-product span,
  .history-mobile-product strong,
  .history-mobile-product small {
    display: block;
  }

  .history-mobile-product small {
    margin-top: 4px;
    overflow: hidden;
    color: #7a8795;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
  }

  .history-detail-table .history-qty {
    min-width: 125px;
  }

  .history-card summary {
    gap: 17px 12px;
    padding: 20px 18px;
  }

  .history-order-identity {
    grid-column: 1 / -1;
  }

  .history-order-identity strong {
    font-size: 19px;
  }

  .history-order-metric,
  .history-order-status {
    align-self: start;
  }

  .history-export-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .history-export-menu,
  .history-export-actions .history-export-toggle {
    width: 100%;
    min-width: 0;
  }

  .history-export-options {
    width: min(210px, calc(100vw - 52px));
  }

  .history-export-actions .history-reorder-button {
    justify-content: center;
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
  }

  .history-chevron {
    top: 21px;
    right: 17px;
  }

  .history-card-detail {
    grid-template-columns: 1fr;
    padding: 14px 18px 18px;
  }
}

@media (max-width: 980px) {
  .delivery-card-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    min-height: 0;
    padding: 22px 24px;
  }

  .delivery-tracking-detail {
    padding: 0;
  }

  .delivery-tracking-table .track-date {
    width: 105px;
    min-width: 105px;
    max-width: 105px;
  }

  .delivery-tracking-table .track-po {
    left: 105px;
    width: 95px;
    min-width: 95px;
    max-width: 95px;
  }

  .delivery-tracking-table .track-photo {
    left: 200px;
    width: 110px;
    min-width: 110px;
    max-width: 110px;
  }

  .delivery-tracking-table .track-sku {
    left: 310px;
    width: 230px;
    min-width: 230px;
    max-width: 230px;
  }

  .tracking-item-image,
  .tracking-item-icon {
    width: 88px;
    height: 48px;
  }
}

@media (max-width: 680px) {
  .delivery-heading {
    display: grid;
    gap: 14px;
  }

  .delivery-heading h1 {
    font-size: 24px;
  }

  .delivery-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  }

  .delivery-date-control input {
    width: 100%;
  }

  .delivery-period {
    padding-inline: 13px;
    font-size: 9px;
  }

  .delivery-card {
    border-radius: 16px;
  }

  .delivery-card-main {
    gap: 17px 12px;
    padding: 20px 18px;
  }

  .delivery-order-identity {
    grid-column: 1 / -1;
  }

  .delivery-order-identity strong {
    font-size: 19px;
  }

  .tracking-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .delivery-tracking-detail {
    padding: 0;
  }

  .delivery-tracking-table {
    min-width: 920px;
  }

  .delivery-tracking-table .track-date,
  .delivery-tracking-table .track-po,
  .delivery-tracking-table .track-photo,
  .delivery-tracking-table .track-sku {
    display: none;
  }

  .delivery-tracking-table .track-mobile-product {
    display: table-cell;
    position: sticky;
    left: 0;
    z-index: 5;
    width: 238px;
    min-width: 238px;
    max-width: 238px;
    background: #ffffff;
    box-shadow: 10px 0 18px -18px rgba(29, 41, 55, 0.8);
  }

  .delivery-tracking-table th.track-mobile-product {
    z-index: 7;
    background: #f4f6f7;
  }

  .track-mobile-product > div {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
  }

  .track-mobile-product span,
  .track-mobile-product strong,
  .track-mobile-product small {
    display: block;
  }

  .track-mobile-product small {
    margin-top: 3px;
    overflow: hidden;
    color: #7a8795;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
  }

  .track-mobile-product .tracking-item-image,
  .track-mobile-product .tracking-item-icon {
    width: 76px;
    height: 44px;
  }
}

@media (max-width: 980px) {
  .cart-view {
    max-width: 100%;
  }

  .cart-column-head,
  .cart-line {
    grid-template-columns: 100px minmax(0, 1fr) 130px 72px;
    gap: 14px;
    padding-inline: 20px;
  }

  .cart-product-image {
    width: 90px;
    height: 52px;
  }

  .checkout-box {
    padding: 24px;
  }
}

@media (max-width: 680px) {
  .cart-heading {
    margin-bottom: 16px;
  }

  .cart-heading h1 {
    font-size: 24px;
  }

  .cart-clear-button {
    font-size: 9px;
  }

  .cart-page {
    gap: 18px;
  }

  .cart-stock-group h2 {
    font-size: 15px;
  }

  .cart-table-card {
    border-radius: 16px;
  }

  .cart-column-head {
    display: none;
  }

  .cart-line {
    position: relative;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 8px 14px;
    min-height: 132px;
    padding: 16px;
  }

  .cart-product-thumb {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
  }

  .cart-product-image {
    width: 78px;
    height: 50px;
  }

  .cart-product-thumb .pos-thumb {
    width: 66px;
    height: 50px;
  }

  .cart-product-copy {
    grid-column: 2;
    grid-row: 1;
    padding-right: 0;
  }

  .cart-product-copy strong {
    white-space: normal;
    font-size: 12px;
    line-height: 1.35;
  }

  .cart-quantity-field {
    display: grid;
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: auto 76px;
    gap: 10px;
    align-items: center;
    justify-content: start;
  }

  .cart-quantity-field > span {
    display: block;
    color: #77879a;
    font-size: 10px;
    font-weight: 800;
  }

  .cart-quantity-input {
    height: 36px;
  }

  .cart-remove-button {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
    padding: 2px 0;
  }

  .checkout-box {
    padding: 22px 18px 18px;
    border-radius: 18px;
  }

  .checkout-box h2 {
    margin-bottom: 14px;
  }

  .checkout-box .checkout-fields label {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 12px;
  }

  .cart-confirm-button,
  .cart-continue-button {
    min-height: 44px;
    font-size: 10px;
  }
}

@media (max-width: 1180px) {
  .assistant-results-table {
    min-width: 720px;
  }

  .assistant-product-cell {
    min-width: 220px;
  }
}

@media (max-width: 980px) {
  .assistant-intro {
    min-height: 68px;
    padding: 18px 20px;
  }

  .assistant-photo-cell,
  .assistant-results-table th:first-child {
    display: none;
  }

  .assistant-results-table {
    min-width: 690px;
  }

  .assistant-results-table th:nth-child(2),
  .assistant-product-cell {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 260px;
    min-width: 260px;
    background: #ffffff;
    box-shadow: 10px 0 16px -16px rgba(30, 42, 55, 0.72);
  }

  .assistant-results-table th:nth-child(2) {
    z-index: 3;
    background: #fbfbfb;
  }

  .assistant-product-cell {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  .assistant-mobile-photo {
    display: block;
    width: 88px;
    height: 48px;
    object-fit: contain;
  }
}

@media (max-width: 680px) {
  .assistant-view .page-heading {
    margin-bottom: 12px;
  }

  .assistant-intro {
    gap: 9px;
    min-height: 0;
    margin-bottom: 12px;
    padding: 15px 16px;
    border-radius: 16px;
    overflow: hidden;
  }

  .assistant-intro strong {
    min-width: 0;
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .assistant-question {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
    overflow: hidden;
  }

  .assistant-question-icon {
    width: 34px;
    height: 34px;
    align-self: start;
  }

  .assistant-question-field textarea {
    min-height: 76px;
    padding: 8px 2px;
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .assistant-submit {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 42px;
    border-radius: 8px;
  }

  .assistant-response {
    align-items: flex-start;
    margin: 0 2px 12px;
    line-height: 1.4;
  }

  .assistant-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assistant-tool-button {
    min-width: 0;
    min-height: 38px;
    padding-inline: 7px;
    font-size: 9px;
  }

  .assistant-results-frame {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .assistant-results-table,
  .assistant-results-table tbody,
  .assistant-results-table tr,
  .assistant-results-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .assistant-results-table thead {
    display: none;
  }

  .assistant-results-table tbody {
    display: grid;
    gap: 10px;
  }

  .assistant-results-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 14px;
    border: 1px solid #e3e3e3;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(32, 32, 32, 0.05);
  }

  .assistant-results-table th:nth-child(2),
  .assistant-product-cell {
    position: static;
    width: auto;
    min-width: 0;
    box-shadow: none;
  }

  .assistant-product-cell {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 0 42px 10px 0 !important;
    border-bottom: 1px solid #eeeeee !important;
  }

  .assistant-mobile-photo {
    width: 92px;
    height: 52px;
  }

  .assistant-product-cell strong {
    white-space: normal;
    font-size: 11px;
    line-height: 1.35;
  }

  .assistant-results-table td {
    padding: 0;
    border: 0;
    background: transparent !important;
  }

  .assistant-results-table .assistant-photo-cell {
    display: none !important;
  }

  .assistant-results-table td:nth-child(3),
  .assistant-results-table td:nth-child(4),
  .assistant-results-table td:nth-child(5) {
    text-align: left;
  }

  .assistant-results-table td:nth-child(3)::before,
  .assistant-results-table td:nth-child(4)::before,
  .assistant-results-table td:nth-child(5)::before {
    display: block;
    margin-bottom: 5px;
    color: #858585;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .assistant-results-table td:nth-child(3)::before {
    content: "Ranking";
  }

  .assistant-results-table td:nth-child(4)::before {
    content: "In Stock";
  }

  .assistant-results-table td:nth-child(5)::before {
    content: "History";
  }

  .assistant-row-action {
    position: absolute;
    top: 14px;
    right: 14px;
    width: auto !important;
  }

  .assistant-row-action button {
    width: 32px;
    height: 32px;
  }
}

.download-view {
  width: min(720px, 100%);
  min-width: 0;
}

.ean-download-card {
  overflow: hidden;
  border: 1px solid #e1e1e1;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(32, 32, 32, 0.06);
}

.ean-download-head,
.ean-download-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(280px, 1.28fr);
  align-items: center;
}

.ean-download-head {
  min-height: 58px;
  color: #353535;
  background: #f7f7f7;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.ean-download-head strong,
.ean-download-row > strong,
.ean-format-actions {
  padding: 0 22px;
}

.ean-download-head strong + strong,
.ean-format-actions {
  border-left: 1px solid #e5e5e5;
}

.ean-download-row {
  min-height: 62px;
  border-top: 1px solid #eeeeee;
}

.ean-download-row > strong {
  color: #5f5f5f;
  font-size: 13px;
  font-weight: 500;
}

.ean-format-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
}

.ean-format-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #dbe8dc;
  border-radius: 8px;
  color: #238348;
  background: #f2faf3;
}

.ean-format-actions button:last-child {
  color: #599c1f;
  border-color: #deebd3;
  background: #f7fbf1;
}

.ean-format-actions button:hover {
  color: #ffffff;
  border-color: #238348;
  background: #238348;
}

.ean-format-actions button:last-child:hover {
  border-color: #599c1f;
  background: #599c1f;
}

.ean-format-actions svg {
  width: 19px;
  height: 19px;
}

.ean-format-actions span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 980px) {
  .download-view {
    width: 100%;
  }

  .ean-download-card {
    width: min(680px, 100%);
  }
}

@media (max-width: 680px) {
  .download-view {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
  }

  .ean-download-card {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .ean-download-head {
    display: none;
  }

  .ean-download-list {
    display: grid;
    gap: 10px;
  }

  .ean-download-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 76px;
    padding: 14px;
    border: 1px solid #e1e1e1;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 5px 14px rgba(32, 32, 32, 0.05);
  }

  .ean-download-row > strong {
    padding: 0;
    color: #303030;
    font-size: 16px;
    font-weight: 800;
  }

  .ean-download-row > strong::after {
    content: "EAN Number";
    display: block;
    margin-top: 5px;
    color: #858585;
    font-size: 10px;
    font-weight: 650;
    text-transform: uppercase;
  }

  .ean-format-actions {
    gap: 6px;
    min-height: 0;
    padding: 0;
    border-left: 0;
  }

  .ean-format-actions button {
    width: auto;
    min-width: 58px;
    height: 42px;
    padding: 0 8px;
  }

  .ean-format-actions span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
  }
}

.upload-layout {
  min-width: 0;
}

.upload-zone {
  min-height: 360px;
  border-radius: 14px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.upload-zone.dragging {
  border-color: var(--blue);
  background: #f2f8fc;
  transform: translateY(-2px);
}

.upload-zone > strong {
  font-size: 18px;
}

.upload-file-name {
  max-width: min(460px, 100%);
  overflow: hidden;
  color: var(--blue) !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px !important;
  font-weight: 800;
}

.upload-zone[data-upload-state="error"] .upload-file-name {
  color: var(--danger) !important;
}

.state-stack {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.state-card {
  align-content: center;
  min-height: 164px;
  padding: 24px;
  border-radius: 14px;
  opacity: 0.88;
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.state-card.active {
  opacity: 1;
  border-color: currentColor;
  box-shadow: 0 8px 20px rgba(32, 32, 32, 0.08);
}

.state-card strong {
  font-size: 17px;
}

.state-card span {
  margin-top: 8px;
  color: #555555;
  font-size: 14px;
}

@media (max-width: 980px) {
  .upload-zone {
    min-height: 300px;
  }

  .state-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .state-card {
    min-height: 150px;
  }
}

@media (max-width: 680px) {
  .utility-view[data-page="upload"] {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    padding: 14px;
  }

  .utility-view[data-page="upload"] .eyebrow {
    margin-bottom: 5px;
  }

  .upload-layout {
    gap: 12px;
  }

  .upload-zone {
    min-height: 230px;
    gap: 14px;
    padding: 24px 18px;
  }

  .upload-zone > strong {
    font-size: 16px;
  }

  .upload-zone .primary-button {
    width: min(190px, 100%);
    min-height: 44px;
  }

  .state-stack {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .state-card {
    min-height: 0;
    padding: 18px;
  }

  .state-card strong {
    font-size: 15px;
  }

  .state-card span {
    font-size: 13px;
  }
}
