html {
  font-size: 14px;
}

.store-maintenance {
  display: grid;
  min-height: min(70vh, 720px);
  place-items: center;
  padding: 2rem 1rem;
}

.store-maintenance__card {
  align-items: flex-start;
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--bs-warning-border-subtle, #ffe69c);
  border-radius: .75rem;
  box-shadow: 0 .75rem 2rem rgba(33, 37, 41, .08);
  display: flex;
  gap: 1rem;
  max-width: 720px;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  width: 100%;
}

.store-maintenance__icon {
  color: var(--bs-warning-text-emphasis, #664d03);
  flex: 0 0 auto;
  font-size: 2rem;
  line-height: 1;
}

@media (max-width: 575.98px) {
  .store-maintenance {
    padding-inline: 0;
  }

  .store-maintenance__card {
    border-radius: .5rem;
    display: block;
  }

  .store-maintenance__icon {
    margin-bottom: 1rem;
  }
}

.store-lifecycle-table-wrap {
  min-height: 18rem;
}

.store-lifecycle-table {
  min-width: 980px;
}

.store-lifecycle-actions {
  min-width: 150px;
  white-space: nowrap;
}

.store-lifecycle-menu-toggle {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  min-height: 31px;
  min-width: 34px;
}

.store-lifecycle-actions .dropdown-item.disabled {
  opacity: .65;
}

.store-rebuild-page {
  margin-inline: auto;
  max-width: 1440px;
  width: 100%;
}

.store-rebuild-back-link {
  display: inline-block;
  margin-bottom: .65rem;
  text-decoration: none;
}

.store-rebuild-section,
.store-rebuild-confirmation {
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: .75rem;
  margin-bottom: 1.5rem;
  padding: clamp(1rem, 2vw, 1.75rem);
}

.store-rebuild-section__heading,
.store-rebuild-garage-card__heading {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.store-rebuild-identity {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 1.5rem 0;
}

.store-rebuild-identity > div {
  min-width: 0;
}

.store-rebuild-identity dt {
  color: var(--bs-secondary-color, #6c757d);
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .25rem;
  text-transform: uppercase;
}

.store-rebuild-identity dd {
  font-size: 1rem;
  margin: 0;
  overflow-wrap: anywhere;
}

.store-rebuild-metrics {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.store-rebuild-metric {
  background: var(--bs-tertiary-bg, #f8f9fa);
  border-radius: .5rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1rem;
}

.store-rebuild-metric strong {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.1;
}

.store-rebuild-metric span {
  color: var(--bs-secondary-color, #6c757d);
  margin-top: .35rem;
}

.store-rebuild-details-breakdown,
.store-rebuild-profile-preview {
  border-top: 1px solid var(--bs-border-color, #dee2e6);
  margin-top: 1.25rem;
  padding-top: 1rem;
}

.store-rebuild-details-breakdown summary,
.store-rebuild-profile-preview summary {
  cursor: pointer;
  font-weight: 600;
}

.store-rebuild-details-breakdown dl,
.store-rebuild-profile-preview dl {
  display: grid;
  gap: .5rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin: 1rem 0 0;
}

.store-rebuild-details-breakdown dl {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.store-rebuild-details-breakdown dl > div,
.store-rebuild-profile-preview dl > div {
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  min-width: 0;
}

.store-rebuild-details-breakdown dl > div {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.store-rebuild-details-breakdown dt {
  min-width: 0;
  overflow-wrap: anywhere;
}

.store-rebuild-details-breakdown dd,
.store-rebuild-profile-preview dd {
  margin: 0;
  overflow-wrap: anywhere;
  text-align: end;
}

.store-rebuild-danger {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.store-rebuild-garage-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.store-rebuild-garage-card {
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: .625rem;
  padding: 1rem;
}

.store-rebuild-garage-issues {
  background: var(--bs-warning-bg-subtle, #fff3cd);
  border-radius: .4rem;
  color: var(--bs-warning-text-emphasis, #664d03);
  margin-top: 1rem;
  padding: .75rem 1rem;
}

.store-rebuild-resolution {
  border-top: 1px solid var(--bs-border-color, #dee2e6);
  margin-top: 1rem;
  padding-top: 1rem;
}

.store-rebuild-provided-values {
  border: 0;
  border-top: 1px dashed var(--bs-border-color, #dee2e6);
  margin-top: 1.25rem;
  padding: 1.25rem 0 0;
}

.store-rebuild-fields {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.store-rebuild-fields__wide {
  grid-column: 1 / -1;
}

.store-rebuild-confirmation {
  border-color: var(--bs-danger-border-subtle, #f1aeb5);
  max-width: 760px;
}

.store-rebuild-confirmation__field {
  max-width: 520px;
}

.store-rebuild-confirmation .validation-summary-valid {
  display: none;
}

@media (max-width: 767.98px) {
  .store-rebuild-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-rebuild-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .store-rebuild-fields__wide {
    grid-column: auto;
  }
}

.store-rebuild-recovery-page {
  margin-inline: auto;
  max-width: 1440px;
  width: 100%;
}

.store-rebuild-recovery-section {
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: .75rem;
  box-shadow: 0 .125rem .35rem rgba(33, 37, 41, .05);
  margin-bottom: 1.5rem;
  padding: 1.25rem;
}

.store-rebuild-recovery-heading {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.store-rebuild-recovery-identity,
.store-rebuild-recovery-checks {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.store-rebuild-recovery-identity > div,
.store-rebuild-recovery-checks > article,
.store-rebuild-recovery-actions > article {
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: .5rem;
  min-width: 0;
  padding: .85rem;
}

.store-rebuild-recovery-identity dt,
.store-rebuild-recovery-fingerprints dt {
  color: var(--bs-secondary-color, #6c757d);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.store-rebuild-recovery-identity dd,
.store-rebuild-recovery-fingerprints dd {
  margin: .25rem 0 0;
  overflow-wrap: anywhere;
}

.store-rebuild-recovery-checks {
  margin-top: 1rem;
}

.store-rebuild-recovery-checks article {
  align-items: center;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
}

.store-rebuild-recovery-fingerprints {
  margin-top: 1rem;
}

.store-rebuild-recovery-fingerprints dl {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0 0;
}

.store-rebuild-recovery-confirmation {
  max-width: 34rem;
}

.store-rebuild-recovery-actions {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.store-rebuild-recovery-actions article {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
}

.store-rebuild-recovery-actions article p {
  color: var(--bs-secondary-color, #6c757d);
  margin-bottom: 0;
}

.store-rebuild-recovery-actions .btn {
  align-self: flex-start;
}

@media (max-width: 767.98px) {
  .store-rebuild-recovery-identity,
  .store-rebuild-recovery-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .store-rebuild-recovery-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .store-rebuild-recovery-section {
    border-radius: .5rem;
    padding: 1rem;
  }

  .store-rebuild-recovery-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .store-rebuild-recovery-heading .badge {
    align-self: flex-start;
  }

  .store-rebuild-recovery-checks,
  .store-rebuild-recovery-fingerprints dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .store-rebuild-recovery-actions .btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .store-rebuild-section__heading,
  .store-rebuild-garage-card__heading {
    align-items: stretch;
    flex-direction: column;
  }

  .store-rebuild-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .store-rebuild-confirmation .btn {
    width: 100%;
  }
}

/* StoreAdmin order amendment */
.op-order-edit-page {
  --op-border: #d6d9de;
  --op-orange: #efab16;
  --op-orange-border: #c18400;
  --op-red: #c52b2b;
  --op-grey: #f6f7f8;
  color: #24282e;
  margin: 0 auto;
  max-width: 1680px;
  padding-bottom: 30px;
}

.op-order-edit-header {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.op-order-edit-header h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.op-order-edit-header p {
  color: #626974;
  margin: 6px 0 0;
}

.op-order-edit-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.op-order-edit-notice {
  align-items: center;
  background: #f5f8fc;
  border: 1px solid #ccd8e7;
  border-left: 4px solid #3977bb;
  border-radius: 3px;
  color: #38506c;
  display: flex;
  font-size: 13px;
  gap: 9px;
  margin-bottom: 12px;
  padding: 9px 12px;
}

.op-order-edit-feedback:not(:empty) {
  margin-bottom: 12px;
}

.op-order-edit-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 370px);
}

.op-order-edit-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.op-order-edit-customer,
.op-order-edit-panel {
  background: #fff;
  border: 1px solid var(--op-border);
  border-radius: 4px;
  min-width: 0;
}

.op-order-edit-customer {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  padding: 12px 15px;
}

.op-order-edit-customer > i {
  color: #4f5966;
  font-size: 27px;
}

.op-order-edit-customer > div,
.op-order-edit-readonly-meta {
  display: flex;
  flex-direction: column;
}

.op-order-edit-customer span,
.op-order-edit-line-quantity > span,
.op-order-edit-line-price > span,
.op-order-edit-line-total > span,
.op-order-edit-field-label {
  color: #68717d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.op-order-edit-customer small {
  color: #6f7782;
  margin-top: 2px;
}

.op-order-edit-readonly-meta {
  border-left: 1px solid #e3e6e9;
  min-width: 155px;
  padding-left: 18px;
}

.op-order-edit-panel > header {
  align-items: center;
  border-bottom: 1px solid #e6e8eb;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 11px 14px;
}

.op-order-edit-panel > header h2 {
  color: #3f454d;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.op-order-edit-panel > header p {
  color: #737b86;
  font-size: 12px;
  margin: 2px 0 0;
}

.op-order-edit-panel-heading > span {
  color: #69727e;
  font-size: 12px;
  white-space: nowrap;
}

.op-order-edit-search-bar {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 12px 14px 5px;
}

.op-order-edit-search-bar > i {
  color: #69727e;
}

.op-order-edit-search-bar input,
.op-order-edit-field input,
.op-order-edit-field select {
  background: #fff;
  border: 1px solid #bfc5cd;
  border-radius: 3px;
  color: #252a30;
  min-height: 38px;
  padding: 7px 10px;
  width: 100%;
}

.op-order-edit-search-bar input:focus,
.op-order-edit-field input:focus,
.op-order-edit-field select:focus {
  border-color: #4e7eb7;
  box-shadow: 0 0 0 3px rgb(78 126 183 / 15%);
  outline: 0;
}

.op-order-edit-search-message {
  color: #68717d;
  font-size: 12px;
  margin: 0;
  min-height: 25px;
  padding: 4px 14px 7px 38px;
}

.op-order-edit-search-results {
  border-top: 1px solid #eceef0;
  display: grid;
}

.op-order-edit-search-result {
  align-items: center;
  border-bottom: 1px solid #eceef0;
  display: grid;
  gap: 10px;
  grid-template-columns: 48px minmax(0, 1fr) minmax(100px, auto) auto;
  padding: 9px 14px;
}

.op-order-edit-search-result:last-child {
  border-bottom: 0;
}

.op-order-edit-search-result-image,
.op-order-edit-line-image {
  align-items: center;
  background: #f4f5f6;
  border: 1px solid #e1e4e7;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.op-order-edit-search-result-image {
  height: 42px;
  width: 48px;
}

.op-order-edit-search-result-image img,
.op-order-edit-line-image img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.op-order-edit-search-result-product,
.op-order-edit-line-product {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.op-order-edit-search-result-product span,
.op-order-edit-line-product > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.op-order-edit-search-result-product small,
.op-order-edit-line-product small {
  color: #6c7480;
  font-size: 11px;
  margin-top: 2px;
}

.op-order-edit-search-result-price {
  font-size: 13px;
  text-align: right;
}

.op-order-edit-lines {
  display: grid;
}

.op-order-edit-line {
  align-items: center;
  border-bottom: 1px solid #e6e8eb;
  display: grid;
  gap: 10px;
  grid-template-columns: 64px minmax(210px, 1fr) 126px 108px 105px auto;
  padding: 10px 14px;
  transition: background-color .2s ease;
}

.op-order-edit-line:last-child {
  border-bottom: 0;
}

.op-order-edit-line.is-highlighted {
  background: #fff8e5;
}

.op-order-edit-line-image {
  height: 52px;
  width: 62px;
}

.op-order-edit-line-image span,
.op-order-edit-search-result-image span {
  color: #9299a2;
  font-size: 21px;
}

.op-order-edit-line-quantity,
.op-order-edit-line-price,
.op-order-edit-line-total {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.op-order-edit-line-price,
.op-order-edit-line-total {
  text-align: right;
}

.op-order-edit-stepper {
  align-items: center;
  display: grid;
  grid-template-columns: 32px 42px 32px;
}

.op-order-edit-stepper button,
.op-order-edit-stepper output {
  align-items: center;
  background: #fff;
  border: 1px solid #bfc5cd;
  display: flex;
  font-weight: 700;
  height: 32px;
  justify-content: center;
}

.op-order-edit-stepper button {
  color: #1769d2;
  cursor: pointer;
  font-size: 18px;
}

.op-order-edit-stepper button:first-child {
  border-radius: 3px 0 0 3px;
}

.op-order-edit-stepper button:last-child {
  border-radius: 0 3px 3px 0;
}

.op-order-edit-stepper output {
  border-left: 0;
  border-right: 0;
  font-size: 13px;
}

.op-order-edit-remove {
  background: transparent;
  border: 0;
  color: #ad2929;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 4px;
}

.op-order-edit-empty {
  align-items: center;
  color: #656e79;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 24px;
  text-align: center;
}

.op-order-edit-empty > i {
  font-size: 27px;
}

.op-order-edit-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
}

.op-order-edit-field {
  min-width: 0;
}

.op-order-edit-field-wide {
  grid-column: 1 / -1;
}

.op-order-edit-field label {
  color: #4d555f;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
}

.op-order-edit-field label span {
  color: #a64220;
  font-size: 10px;
  margin-left: 4px;
  text-transform: uppercase;
}

.op-order-edit-field > span.field-validation-error {
  color: #b42323;
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

.op-order-edit-static-value {
  background: #f6f7f8;
  border: 1px solid #d7dbe0;
  border-radius: 3px;
  margin-top: 5px;
  min-height: 38px;
  padding: 8px 10px;
}

.op-order-edit-sidebar {
  min-width: 0;
  position: sticky;
  top: 16px;
}

.op-order-edit-summary dl {
  margin: 0;
  padding: 10px 14px 4px;
}

.op-order-edit-summary dl > div {
  align-items: baseline;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 6px 0;
}

.op-order-edit-summary dt {
  color: #59616c;
  font-weight: 400;
}

.op-order-edit-summary dd {
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.op-order-edit-summary-pending dd {
  color: #6d7580;
  font-size: 11px;
  font-weight: 500;
  max-width: 150px;
}

.op-order-edit-summary-total {
  border-top: 1px solid #d7dbe0;
  font-size: 15px;
  margin-top: 6px;
  padding: 12px 0 6px;
}

.op-order-edit-summary > p {
  color: #707985;
  font-size: 11px;
  line-height: 1.4;
  margin: 5px 14px 12px;
}

.op-order-edit-save {
  margin: 0 14px;
  width: calc(100% - 28px);
}

.op-order-edit-cancel {
  color: #555e69;
  display: block;
  font-size: 12px;
  font-weight: 700;
  padding: 11px 14px 13px;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 1199.98px) {
  .op-order-edit-layout {
    grid-template-columns: 1fr;
  }

  .op-order-edit-sidebar {
    position: static;
  }

  .op-order-edit-summary {
    margin-left: auto;
    max-width: 520px;
  }
}

@media (max-width: 899.98px) {
  .op-order-edit-line {
    grid-template-columns: 58px minmax(190px, 1fr) 116px 95px;
  }

  .op-order-edit-line-total {
    grid-column: 4;
  }

  .op-order-edit-remove {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 767.98px) {
  .op-order-edit-header,
  .op-order-edit-customer {
    display: grid;
  }

  .op-order-edit-header-actions {
    justify-content: flex-start;
  }

  .op-order-edit-customer {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .op-order-edit-readonly-meta {
    border-left: 0;
    border-top: 1px solid #e3e6e9;
    grid-column: 1 / -1;
    padding: 9px 0 0;
  }

  .op-order-edit-line {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .op-order-edit-line-quantity,
  .op-order-edit-line-price,
  .op-order-edit-line-total {
    text-align: left;
  }

  .op-order-edit-line-quantity {
    grid-column: 2;
  }

  .op-order-edit-line-price,
  .op-order-edit-line-total {
    grid-column: 3;
  }

  .op-order-edit-remove {
    grid-column: 1 / -1;
  }

  .op-order-edit-search-result {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .op-order-edit-search-result-price {
    grid-column: 2;
    text-align: left;
  }

  .op-order-edit-fields {
    grid-template-columns: 1fr;
  }

  .op-order-edit-field-wide {
    grid-column: auto;
  }
}

@media (max-width: 559.98px) {
  .op-order-edit-header-actions,
  .op-order-edit-header-actions .op-btn {
    width: 100%;
  }

  .op-order-edit-search-bar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .op-order-edit-search-bar .op-btn {
    grid-column: 1 / -1;
  }

  .op-order-edit-line {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .op-order-edit-line-quantity,
  .op-order-edit-line-price,
  .op-order-edit-line-total {
    grid-column: 2;
  }
}

/* Order preparation board */
.op-board-page {
  --op-board-blue: #1769d2;
  --op-board-orange: #e65300;
  max-width: none;
}

.op-board-page .op-header {
  margin-bottom: 12px;
}

.op-board-page .op-header h1 {
  font-size: 27px;
  font-weight: 700;
}

.op-board-page .op-header-meta {
  color: #625b55;
  font-size: 14px;
}

.op-board-page .op-notification-controls {
  background: #f8fcf8;
  border-color: #b9d8c0;
  border-radius: 5px;
  margin: 0 0 12px;
  min-height: 48px;
  padding: 7px 12px;
}

.op-board-page .op-notification-copy {
  align-items: center;
  gap: 6px;
}

.op-notification-icon {
  color: #398047;
  flex: 0 0 22px;
  height: 22px;
  margin-right: 3px;
  width: 22px;
}

.op-board-page .op-notification-controls strong {
  font-size: 14px;
}

.op-board-page .op-notification-controls span {
  font-size: 13px;
}

.op-board-page .op-notification-separator {
  color: #8b948d;
}

.op-board-page .op-notification-controls .op-btn {
  min-height: 32px;
  padding: 6px 12px;
}

.op-board-page .op-new-order-alert {
  border-radius: 5px;
  margin-bottom: 12px;
}

.op-board-page .op-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(125px, 1fr));
  margin-bottom: 12px;
}

.op-board-page .op-tab {
  background: #fff;
  border-color: #d7dce2;
  min-height: 48px;
  min-width: 0;
  padding: 8px 16px;
  position: relative;
}

.op-board-page .op-tab:first-child {
  border-radius: 5px 0 0 5px;
}

.op-board-page .op-tab:last-child {
  border-radius: 0 5px 5px 0;
}

.op-board-page .op-tab:hover {
  background: #f7f8fa;
  color: #24201c;
}

.op-board-page .op-tab strong {
  border-color: #d7dce2;
  font-size: 13px;
  min-width: 30px;
  padding: 3px 7px;
}

.op-board-page .op-tab-active,
.op-board-page .op-tab-active:hover {
  background: #45484c;
  border-color: #45484c;
  color: #fff;
}

.op-board-page .op-tab-active::after {
  background: var(--op-board-blue);
  bottom: -4px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

.op-board-page .op-filter-bar {
  background: #fbfcfd;
  border-color: #d7dce2;
  border-radius: 5px;
  gap: 10px 16px;
  grid-template-columns: minmax(280px, 1.7fr) minmax(150px, .75fr) minmax(150px, .75fr) minmax(210px, .95fr) auto;
  margin-bottom: 12px;
  padding: 12px 14px;
}

.op-board-page .op-filter-field label {
  color: #3f3a36;
  font-size: 11px;
  margin-bottom: 5px;
  text-transform: none;
}

.op-board-page .op-filter-field .form-control,
.op-board-page .op-filter-field .form-select {
  border-color: #cfd5dc;
  font-size: 13px;
  min-height: 38px;
}

.op-board-page .op-filter-actions {
  align-items: center;
}

.op-board-page .op-filter-actions .op-btn {
  min-height: 38px;
  min-width: 92px;
}

.op-board-page .op-filter-actions .op-btn-primary,
.op-board-page .op-row-actions .op-btn-primary {
  background: var(--op-board-orange);
  border-color: #c24600;
  color: #fff;
}

.op-board-page .op-filter-actions .op-btn-primary:hover,
.op-board-page .op-row-actions .op-btn-primary:hover {
  background: #c94700;
  color: #fff;
}

.op-board-page .op-summary-row {
  gap: 12px;
  margin-bottom: 12px;
}

.op-board-page .op-summary-box {
  align-items: center;
  border-color: #d7dce2;
  border-radius: 5px;
  display: flex;
  gap: 14px;
  min-height: 74px;
  padding: 9px 16px;
}

.op-board-page .op-summary-box > div {
  min-width: 0;
}

.op-board-page .op-summary-box span {
  font-size: 11px;
}

.op-board-page .op-summary-box strong {
  font-size: 23px;
  margin-top: 2px;
}

.op-summary-icon {
  color: var(--op-board-blue);
  flex: 0 0 34px;
  height: 34px;
  width: 34px;
}

.op-summary-ready .op-summary-icon { color: var(--op-board-orange); }
.op-summary-waiting .op-summary-icon { color: #c47700; }
.op-summary-prepared .op-summary-icon { color: var(--op-green); }

.op-board-page .op-grid-wrap {
  border-color: #d7dce2;
  border-radius: 5px 5px 0 0;
}

.op-board-page .op-grid {
  min-width: 1280px;
}

.op-board-page .op-grid th {
  background: #3d3f41;
  border-color: #5c5e60;
  font-size: 12px;
  padding: 8px 9px;
  white-space: nowrap;
}

.op-board-page .op-grid td {
  border-color: #dde1e5;
  font-size: 13px;
  line-height: 1.32;
  padding: 8px 9px;
}

.op-board-page .op-grid tbody tr:hover td {
  background: #f7faff;
}

.op-board-page .op-grid .op-row-progress td {
  background: #fffaf0;
}

.op-board-page .op-grid .op-row-progress:hover td {
  background: #fff6e2;
}

.op-board-page .op-grid .op-row-hold td {
  background: #fff5f2;
}

.op-board-page .op-grid time,
.op-board-page .op-grid time span {
  display: block;
  white-space: nowrap;
}

.op-order-link {
  color: #1769d2;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.op-order-link:hover {
  color: #0d4f9f;
}

.op-board-page .op-badge {
  border: 1px solid currentColor;
  border-radius: 4px;
  display: inline-flex;
  font-size: 11px;
  line-height: 1.15;
  padding: 4px 7px;
  white-space: nowrap;
}

.op-board-page .op-badge-ready {
  background: #edf5ff;
  color: #1769d2;
}

.op-board-page .op-badge-progress,
.op-board-page .op-badge-partial {
  background: #fff7e8;
  color: #bd6d00;
}

.op-board-page .op-badge-prepared {
  background: #edf8ef;
  color: #277739;
}

.op-board-page .op-badge-hold,
.op-board-page .op-badge-danger {
  background: #fff0ed;
  color: #b52b27;
}

.op-board-page .op-priority,
.op-board-page .op-hold-note {
  font-size: 11px;
  line-height: 1.25;
  margin-top: 4px;
}

.op-board-page .op-item-progress {
  font-size: 15px;
}

.op-board-page .op-item-progress span {
  color: var(--op-board-orange);
}

.op-board-page .order-prep-products {
  line-height: 1.3;
  min-width: 330px;
}

.op-board-page .order-prep-product-line {
  margin-bottom: 3px;
}

.op-board-page .order-prep-product-line strong {
  font-weight: 700;
}

.order-prep-product-more {
  color: #625b55;
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
}

.op-board-page .op-order-total {
  font-weight: 750;
}

.op-board-page .op-actions-col {
  min-width: 315px;
  width: 315px;
}

.op-board-page .op-row-actions {
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.op-board-page .op-row-actions form {
  margin: 0;
}

.op-board-page .op-row-actions .op-btn-small {
  border-radius: 4px;
  min-height: 31px;
  padding: 6px 10px;
}

.op-board-page .op-picking-list-action {
  flex: 1 1 132px;
}

.op-more-actions {
  flex: 0 0 34px;
}

.op-board-page .op-more-actions-toggle {
  font-size: 20px;
  min-width: 34px;
  padding-left: 7px;
  padding-right: 7px;
}

.op-more-actions .dropdown-menu {
  border-color: #cfd5dc;
  box-shadow: 0 8px 22px rgba(26, 32, 38, .14);
  font-size: 13px;
  min-width: 230px;
  padding: 4px;
}

.op-more-actions .dropdown-item {
  border: 0;
  border-radius: 3px;
  text-align: left;
}

.op-more-actions .dropdown-item:hover,
.op-more-actions .dropdown-item:focus {
  background: #f2f4f6;
}

.op-pagination-bar {
  align-items: center;
  border: 1px solid #d7dce2;
  border-radius: 0 0 5px 5px;
  border-top: 0;
  color: #625b55;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  min-height: 48px;
  padding: 7px 12px;
}

.op-board-page .op-pagination {
  gap: 7px;
  margin: 0;
}

.op-board-page .op-pagination .op-btn {
  min-height: 32px;
  min-width: 34px;
  padding: 5px 9px;
}

@media (max-width: 1200px) {
  .op-board-page .op-filter-bar {
    grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(145px, .8fr));
  }

  .op-board-page .op-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .op-board-page .op-tabs {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .op-board-page .op-tabs .op-tab,
  .op-board-page .op-tabs .op-tab:first-child,
  .op-board-page .op-tabs .op-tab:last-child {
    border-radius: 4px;
    border-left: 1px solid #d7dce2;
  }

  .op-board-page .op-tabs {
    gap: 6px;
  }

  .op-board-page .op-summary-row,
  .op-board-page .op-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .op-board-page .op-filter-search,
  .op-board-page .op-filter-actions {
    grid-column: 1 / -1;
  }

  .op-board-page .op-grid {
    min-width: 920px;
  }

  .op-board-page .op-col-delivery {
    display: none;
  }
}

@media (max-width: 640px) {
  .op-board-page .op-header h1 {
    font-size: 23px;
  }

  .op-board-page .op-notification-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .op-board-page .op-tabs,
  .op-board-page .op-summary-row,
  .op-board-page .op-filter-bar {
    grid-template-columns: 1fr;
  }

  .op-board-page .op-filter-search,
  .op-board-page .op-filter-actions {
    grid-column: auto;
  }

  .op-board-page .op-filter-actions {
    flex-direction: row;
  }

  .op-board-page .op-filter-actions .op-btn {
    flex: 1;
  }

  .op-board-page .op-summary-box {
    min-height: 66px;
  }

  .op-board-page .op-grid {
    min-width: 710px;
  }

  .op-board-page .op-col-date,
  .op-board-page .op-col-count {
    display: none;
  }

  .op-board-page .op-actions-col {
    min-width: 245px;
    width: 245px;
  }

  .op-pagination-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .op-board-page .op-pagination {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
}

.app-language-selector {
  align-items: center;
  color: #6c757d;
  display: inline-flex;
  font-size: 0.75rem;
  gap: 0.2rem;
  margin-inline: 0.35rem;
  white-space: nowrap;
}

.app-language-option {
  background: transparent;
  border: 0;
  border-radius: 0.25rem;
  color: #6c757d;
  font: inherit;
  line-height: 1.25;
  padding: 0.2rem 0.25rem;
}

.app-language-option:hover,
.app-language-option:focus-visible {
  color: #e65300;
  outline: 2px solid rgba(230, 83, 0, 0.3);
  outline-offset: 1px;
}

.app-language-option.active {
  color: #162033;
  font-weight: 700;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.validation-summary-valid {
  display: none;
}

.app-container-wide {
  max-width: none;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

.app-container-wide main {
  min-width: 0;
}

.app-container-wide .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.app-container-wide .table-responsive > .table {
  min-width: max-content;
}

.app-container-wide .table-responsive > .table th {
  white-space: nowrap;
}

.app-container-wide .table-responsive > .table td .btn,
.app-container-wide .table-responsive > .table td .btn-group,
.app-container-wide .table-responsive > .table td form {
  white-space: nowrap;
}

.app-container-wide .table-responsive > .table .table-action-sticky {
  background-color: var(--bs-body-bg, #fff);
  border-left: 8px solid var(--bs-body-bg, #fff);
  box-shadow: -1px 0 0 var(--bs-border-color, #dee2e6);
  min-width: 110px;
  padding-left: .75rem;
  position: sticky;
  right: 0;
  width: 110px;
  z-index: 2;
}

.app-container-wide .table-responsive > .table .table-last-import {
  min-width: 132px;
  padding-right: 1rem;
  white-space: nowrap;
  width: 132px;
}

.app-container-wide .table-responsive > .table thead .table-action-sticky {
  background-color: var(--bs-tertiary-bg, #f8f9fa);
  border-left-color: var(--bs-tertiary-bg, #f8f9fa);
  z-index: 3;
}

.app-container-wide .table-responsive > .table-striped > tbody > tr:nth-of-type(odd) > .table-action-sticky {
  background-color: var(--bs-table-striped-bg, #f8f9fa);
  border-left-color: var(--bs-table-striped-bg, #f8f9fa);
}

.app-container-wide .table-responsive > .product-listing-table {
  min-width: 1220px;
  table-layout: fixed;
  width: 100%;
}

.product-listing-table th {
  line-height: 1.15;
  white-space: normal;
}

.product-listing-table .product-image-column {
  width: 88px;
}

.product-listing-table .product-sku-column {
  white-space: nowrap;
  width: 108px;
}

.product-listing-table .product-class-code-column {
  width: 86px;
}

.product-listing-table .product-popularity-code-column {
  width: 104px;
}

.product-listing-table .product-description-column {
  max-width: 620px;
  min-width: 300px;
  width: 30%;
}

.product-description-clamp {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  line-height: 1.25;
  max-height: 2.5em;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.product-listing-table .product-class-description-column,
.product-listing-table .product-popularity-description-column {
  overflow-wrap: anywhere;
  width: 140px;
}

.product-listing-table .product-money-column,
.product-listing-table .product-quantity-column,
.product-listing-table .product-stock-column,
.product-listing-table .product-status-column {
  white-space: nowrap;
  width: 96px;
}

.product-listing-table .product-status-column {
  width: 108px;
}

.product-listing-table .table-last-import {
  width: 118px;
}

.app-container-wide .table-responsive > .product-listing-table .table-action-sticky {
  background-color: transparent;
  border-left: 1px solid var(--bs-border-color, #dee2e6);
  box-shadow: none;
  min-width: 0;
  padding-left: .5rem;
  position: static;
  right: auto;
  width: 100px;
  z-index: auto;
}

.product-image-frame {
  align-items: center;
  background: var(--bs-tertiary-bg, #f8f9fa);
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: .375rem;
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  overflow: hidden;
}

.product-image-frame-thumbnail {
  height: 56px;
  width: 72px;
}

.product-image-frame-detail {
  height: 220px;
  width: 280px;
}

.product-image-frame-compact,
.commerce-cart-line-image-frame {
  align-items: center;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: .375rem;
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  max-width: 96px;
  overflow: hidden;
  width: 100%;
}

.product-image-content {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.store-products-table {
  min-width: 1120px;
}

.store-products-table .store-product-column {
  min-width: 210px;
  width: 23%;
}

.store-product-identity,
.supplier-product-identity {
  align-items: center;
  display: flex;
  gap: .65rem;
  min-width: 0;
}

.store-products-table .product-image-frame-thumbnail,
.supplier-products-table .product-image-frame-thumbnail {
  height: 52px;
  width: 52px;
}

.store-product-image-link,
.supplier-product-image-link {
  border-radius: .375rem;
  display: inline-flex;
  flex: 0 0 auto;
}

.store-product-image-link:focus-visible,
.supplier-product-image-link:focus-visible,
.supplier-product-part-link:focus-visible {
  box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .25);
  outline: 0;
}

.store-product-part-number,
.supplier-product-part-number {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.store-product-class,
.supplier-product-class,
.supplier-popularity-description {
  display: block;
  font-size: .76rem;
  line-height: 1.2;
  margin-top: .2rem;
  overflow-wrap: anywhere;
}

.supplier-products-filters {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(210px, 2fr) minmax(210px, 2fr) repeat(4, minmax(130px, 1fr));
}

.app-container-wide .table-responsive > .supplier-products-table {
  min-width: 1020px;
  table-layout: fixed;
  width: 100%;
}

.app-container-wide .table-responsive > .supplier-products-table th {
  white-space: normal;
}

.supplier-products-table .supplier-product-column {
  min-width: 250px;
  width: 25%;
}

.supplier-product-part-link {
  display: inline-block;
  text-decoration: none;
}

.supplier-products-table .product-description-column {
  min-width: 240px;
  width: 27%;
}

.supplier-products-table .supplier-popularity-column {
  min-width: 150px;
  overflow-wrap: anywhere;
  width: 17%;
}

.supplier-popularity-code {
  display: block;
  font-weight: 600;
}

.supplier-products-table .supplier-rank-column {
  width: 80px;
}

.supplier-rank-display {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}

.supplier-rank-score,
.supplier-rank-position {
  white-space: nowrap;
}

.supplier-rank-score {
  font-weight: 600;
}

.supplier-rank-position {
  font-size: 0.75rem;
}

.supplier-products-table .supplier-quantity-column {
  width: 100px;
}

.supplier-products-table .supplier-status-column {
  overflow-wrap: anywhere;
  width: 110px;
}

.supplier-products-table .supplier-last-import-column {
  white-space: nowrap;
  width: 112px;
}

@media (max-width: 1199.98px) {
  .supplier-products-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .supplier-products-filters {
    grid-template-columns: 1fr;
  }
}

/* StoreAdmin order consultation */
.op-order-view-page {
  --op-border: #d6d9de;
  --op-orange: #efab16;
  --op-orange-border: #c18400;
  --op-red: #c52b2b;
  --op-green: #23843a;
  --op-grey: #f6f7f8;
  color: #24282e;
  margin: 0 auto;
  max-width: 1680px;
  padding-bottom: 28px;
}

.op-order-breadcrumb {
  align-items: center;
  color: #6b7280;
  display: flex;
  font-size: 13px;
  gap: 9px;
  margin-bottom: 18px;
}

.op-order-breadcrumb a {
  color: #1769d2;
  text-decoration: none;
}

.op-order-view-header {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.op-order-title-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.op-order-title-line h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.op-order-view-page .op-badge {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  padding: 5px 8px;
  white-space: nowrap;
}

.op-order-view-page .op-badge-ready {
  background: #fff8e8;
  color: #9a6500;
}

.op-order-view-page .op-badge-progress {
  background: #edf4ff;
  color: #1769d2;
}

.op-order-view-page .op-badge-prepared {
  background: #edf8ef;
  color: #217538;
}

.op-order-view-page .op-badge-partial,
.op-order-view-page .op-badge-hold {
  background: #fff5e6;
  color: #b56700;
}

.op-order-view-page .op-badge-danger {
  background: #fff0f0;
  color: #b42323;
}

.op-order-view-header p {
  color: #626974;
  margin: 6px 0 0;
}

.op-order-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.op-order-header-actions form {
  margin: 0;
}

.op-order-header-actions .op-btn {
  gap: 7px;
}

.op-order-context-message {
  align-items: flex-start;
  background: #fff8e5;
  border: 1px solid #eed69b;
  border-left: 4px solid #d79b0b;
  border-radius: 3px;
  color: #714f08;
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  padding: 11px 14px;
}

.op-order-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 18px;
}

.op-order-summary-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--op-border);
  border-radius: 4px;
  display: flex;
  gap: 14px;
  min-height: 104px;
  padding: 15px;
}

.op-order-summary-card > i {
  color: #555b63;
  flex: 0 0 auto;
  font-size: 31px;
}

.op-order-summary-card div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.op-order-summary-card span,
.op-order-panel > header h2 {
  color: #626974;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.op-order-summary-card strong {
  font-size: 16px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.op-order-summary-card small {
  color: #727985;
  margin-top: 3px;
}

.op-order-content-grid {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 2fr) minmax(330px, .85fr);
  margin-bottom: 12px;
}

.op-order-side-stack {
  display: grid;
  gap: 12px;
}

.op-order-panel {
  background: #fff;
  border: 1px solid var(--op-border);
  border-radius: 3px;
  min-width: 0;
}

.op-order-panel > header {
  border-bottom: 1px solid #e6e8eb;
  padding: 13px 15px;
}

.op-order-panel > header h2 {
  color: #41464d;
  margin: 0;
}

.op-order-products-table {
  border-collapse: collapse;
  font-size: 13px;
  min-width: 860px;
  width: 100%;
}

.op-order-products-table th {
  background: #3e4145;
  color: #fff;
  font-size: 12px;
  padding: 10px 9px;
  text-align: left;
  white-space: nowrap;
}

.op-order-products-table td {
  border-bottom: 1px solid #e4e6e9;
  padding: 10px 9px;
  vertical-align: middle;
}

.op-order-products-table tbody tr:last-child td {
  border-bottom: 0;
}

.op-order-products-table td > span:not(.op-badge):not(.op-order-product-placeholder) {
  color: #5e6570;
  display: block;
  line-height: 1.35;
  margin-top: 3px;
}

.op-order-products-panel > footer {
  border-top: 1px solid #e6e8eb;
  color: #6b7280;
  font-size: 12px;
  padding: 11px 15px;
  text-align: center;
}

.op-order-product-image-cell {
  width: 74px;
}

.op-order-product-image-cell img,
.op-order-product-placeholder {
  align-items: center;
  display: flex;
  height: 52px;
  justify-content: center;
  object-fit: contain;
  width: 62px;
}

.op-order-product-placeholder {
  background: #f2f3f5;
  border: 1px solid #e0e3e7;
  color: #8a919b;
  font-size: 23px;
}

.op-order-sku {
  color: #d22775;
}

.op-order-definition-list,
.op-order-financial-list {
  margin: 0;
  padding: 15px;
}

.op-order-definition-list > div {
  margin-bottom: 15px;
}

.op-order-definition-list > div:last-child {
  margin-bottom: 0;
}

.op-order-definition-list dt {
  color: #606770;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 3px;
}

.op-order-definition-list dd,
.op-order-financial-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.op-order-panel address,
.op-order-empty,
.op-order-note {
  font-style: normal;
  line-height: 1.55;
  margin: 0;
  padding: 15px;
}

.op-order-empty small,
.op-order-note {
  color: #6b7280;
}

.op-order-delivery-meta {
  border-top: 1px solid #eceef0;
  padding-top: 13px;
}

.op-order-bottom-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(320px, .8fr) minmax(0, 1.7fr);
}

.op-order-financial-list > div {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 5px 0;
}

.op-order-financial-list dt {
  font-weight: 400;
}

.op-order-financial-total {
  border-top: 1px solid #d6d9de;
  font-size: 16px;
  font-weight: 700;
  margin-top: 8px;
  padding-top: 13px !important;
}

.op-order-financial-total dt {
  font-weight: 700;
  text-transform: uppercase;
}

.op-order-timeline {
  list-style: none;
  margin: 0;
  padding: 15px 18px;
}

.op-order-timeline li {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  min-height: 48px;
  position: relative;
}

.op-order-timeline li::before {
  background: #d8dce1;
  content: "";
  left: 6px;
  position: absolute;
  top: 31px;
  bottom: -17px;
  width: 2px;
}

.op-order-timeline li:last-child::before {
  display: none;
}

.op-order-timeline li > span:first-child {
  background: #247f3a;
  border-radius: 50%;
  height: 12px;
  position: relative;
  width: 12px;
  z-index: 1;
}

.op-order-timeline .is-started > span:first-child,
.op-order-timeline .is-invoiced > span:first-child {
  background: #1769d2;
}

.op-order-timeline .is-cancelled > span:first-child {
  background: var(--op-red);
}

.op-order-timeline div {
  display: flex;
  flex-direction: column;
}

.op-order-timeline small,
.op-order-timeline time,
.op-order-timeline-no-date {
  color: #6b7280;
  font-size: 12px;
}

@media (max-width: 1399.98px) {
  .op-order-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .op-order-content-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(310px, .8fr);
  }
}

@media (max-width: 1299.98px) {
  .op-order-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .op-order-view-header,
  .op-order-content-grid {
    grid-template-columns: 1fr;
  }

  .op-order-view-header {
    display: grid;
  }

  .op-order-header-actions {
    justify-content: flex-start;
  }

  .op-order-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .op-order-summary-grid {
    grid-template-columns: 1fr;
  }

  .op-order-header-actions,
  .op-order-header-actions form,
  .op-order-header-actions .op-btn {
    width: 100%;
  }

  .op-order-timeline li {
    align-items: start;
    grid-template-columns: 14px minmax(0, 1fr);
    padding: 6px 0;
  }

  .op-order-timeline time,
  .op-order-timeline-no-date {
    grid-column: 2;
  }
}

.store-products-table .store-popularity-column {
  width: 72px;
}

.store-products-table .store-rank-column {
  width: 80px;
}

.store-products-table .store-supplier-quantity-column {
  width: 86px;
}

.store-products-table .store-edit-column {
  background: rgba(var(--bs-primary-rgb), .035);
  width: 92px;
}

.store-grid-input {
  min-width: 72px;
  text-align: right;
}

.store-products-table .store-save-column {
  min-width: 112px;
  width: 112px;
}

.store-grid-feedback {
  font-size: .72rem;
  line-height: 1.15;
  margin-top: .25rem;
  min-height: .85rem;
  white-space: normal;
}

.store-product-row-dirty > td {
  box-shadow: inset 0 2px 0 rgba(var(--bs-warning-rgb), .85), inset 0 -2px 0 rgba(var(--bs-warning-rgb), .85);
}

.store-product-row-saved > td {
  background-color: rgba(var(--bs-success-rgb), .12);
  transition: background-color .25s ease;
}

.commerce-cart-line-image {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.product-image-fallback {
  color: var(--bs-secondary-color, #6c757d);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.2;
  padding: .5rem;
  text-align: center;
}

.commerce-cart-line-image-fallback {
  color: var(--bs-secondary-color, #6c757d);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.2;
  padding: .35rem;
  text-align: center;
}

.product-image-frame-detail .product-image-fallback {
  font-size: 1rem;
}

.product-image-metrics {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}

.product-image-metrics > div {
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: .375rem;
  min-width: 0;
  padding: .75rem;
}

.product-image-metrics span,
.product-image-metrics strong {
  display: block;
}

.product-image-metrics span {
  color: var(--bs-secondary-color, #6c757d);
  font-size: .8rem;
}

.product-image-metrics strong {
  font-size: 1.2rem;
  margin-top: .1rem;
}

@media (max-width: 575.98px) {
  .app-container-wide {
    padding-left: 12px;
    padding-right: 12px;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.quantity-input {
  width: 5rem;
}

.app-logo {
  display: block;
  height: 40px;
  max-width: 180px;
  object-fit: contain;
  width: auto;
}

.logo-preview {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  display: block;
  max-height: 120px;
  max-width: min(320px, 100%);
  object-fit: contain;
  padding: .5rem;
  width: auto;
}

.barcode-scanner-surface,
.barcode-last-product {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  padding: 1rem;
}

.barcode-scan-input {
  font-size: 1.65rem;
  min-height: 4rem;
}

.barcode-mode-group {
  display: flex;
  min-height: 4rem;
  width: 100%;
}

.barcode-mode-group .btn {
  align-items: center;
  display: inline-flex;
  flex: 1 1 0;
  gap: .4rem;
  justify-content: center;
  white-space: nowrap;
}

.barcode-mode-symbol {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.barcode-quantity-input {
  min-height: 4rem;
  text-align: center;
}

.barcode-last-part {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.barcode-quantity-strip {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.barcode-quantity-strip > div {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  min-height: 4.25rem;
  padding: .65rem;
  text-align: center;
}

.barcode-quantity-strip strong {
  font-size: 1.35rem;
}
.checkout-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr 360px; align-items: start; }
.checkout-panel { background: #fff; border: 1px solid #dee2e6; border-radius: .5rem; padding: 1rem; }
.checkout-summary { background: #fff; border: 1px solid #dee2e6; border-radius: .5rem; padding: 1rem; position: sticky; top: 1rem; }
.checkout-panel h2 { font-size: 1rem; margin-bottom: .85rem; }
.checkout-summary h2 { font-size: 1rem; margin-bottom: .85rem; }
.checkout-address { display: grid; gap: .25rem; }
.checkout-option { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: .375rem; margin-bottom: 1rem; padding: .75rem; }
.checkout-option span { color: #6c757d; display: block; }
.checkout-summary-lines { display: grid; gap: .75rem; margin-bottom: 1rem; max-height: 42vh; overflow: auto; }
.checkout-line { border-bottom: 1px solid #eef0f2; display: grid; gap: .75rem; grid-template-columns: 72px 1fr; padding-bottom: .75rem; }
.checkout-line-image { align-items: center; aspect-ratio: 1; background: #f8f9fa; border: 1px solid #dee2e6; border-radius: .375rem; color: #6c757d; display: flex; font-size: .75rem; justify-content: center; overflow: hidden; text-align: center; }
.checkout-line-image img { height: 72px; object-fit: contain; width: 72px; }
.checkout-line-main p { color: #6c757d; margin: .15rem 0 .35rem; }
.checkout-line-meta { display: flex; flex-wrap: wrap; gap: .45rem .85rem; font-size: .875rem; }
.checkout-totals { display: grid; gap: .5rem; margin-bottom: 1rem; }
.checkout-totals div { display: flex; justify-content: space-between; }
.checkout-totals dd { margin-bottom: 0; }
.checkout-grand-total { border-top: 1px solid #dee2e6; font-size: 1.05rem; font-weight: 700; padding-top: .65rem; }
@media (max-width: 991.98px) { .checkout-grid { grid-template-columns: 1fr; } .checkout-summary { position: static; } }

.sbi-page {
  --sbi-accent: #eb5202;
  --sbi-border: var(--bs-border-color, #dee2e6);
  color: var(--bs-body-color, #212529);
  margin: 0 auto;
  max-width: 1760px;
}

/* Store settings / product lines */
.product-lines-page { min-width: 0; width: 100%; }
.product-lines-search {
    display: grid;
    grid-template-columns: minmax(0, 32rem) auto;
    gap: .5rem;
}

.product-lines-list {
    display: grid;
    gap: .75rem;
}

.product-line-summary {
    display: grid;
    grid-template-columns: 4.5rem minmax(12rem, 1fr) minmax(16rem, auto) auto;
    gap: 1rem;
    align-items: center;
}

.product-line-thumb,
.product-line-image-preview {
    width: 4.5rem;
    height: 4.5rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    object-fit: contain;
    display: grid;
    place-items: center;
    background: var(--bs-tertiary-bg);
    font-size: 1.5rem;
}

.product-line-summary-values {
    display: grid;
    gap: .25rem;
}

.product-line-config > summary {
    list-style: none;
    cursor: pointer;
}

.product-line-config > summary::-webkit-details-marker { display: none; }

.product-line-config[open] {
    grid-column: 1 / -1;
}

.product-line-config-panel {
    display: grid;
    grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
    gap: 1.5rem;
    padding-top: 1.25rem;
    margin-top: 1rem;
    border-top: 1px solid var(--bs-border-color);
}

.product-line-fields,
.product-line-fieldset { display: grid; gap: 1rem; }
.product-line-measures { display: grid; grid-template-columns: repeat(4, minmax(7rem, 1fr)); gap: .75rem; }
.product-line-gl { display: grid; grid-template-columns: repeat(3, minmax(10rem, 1fr)); gap: .75rem; }

@media (max-width: 767.98px) {
    .product-lines-search { grid-template-columns: 1fr; }
    .product-line-summary { grid-template-columns: 3.5rem minmax(0, 1fr); }
    .product-line-thumb { width: 3.5rem; height: 3.5rem; }
    .product-line-summary-values,
    .product-line-config { grid-column: 1 / -1; }
    .product-line-config-panel { grid-template-columns: 1fr; }
    .product-line-measures,
    .product-line-gl { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
    .product-line-measures,
    .product-line-gl { grid-template-columns: 1fr; }
}

.sbi-page-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.sbi-page-header h1 {
  font-size: clamp(1.65rem, 2vw, 2rem);
  font-weight: 700;
  margin: 0 0 .2rem;
}

.sbi-page-header p {
  color: var(--bs-secondary-color, #6c757d);
  margin: 0;
}

.sbi-card {
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--sbi-border);
  border-radius: .5rem;
  margin-bottom: 1rem;
}

.sbi-scanner-card {
  padding: 1.25rem;
}

.sbi-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.sbi-scan-grid {
  align-items: end;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(320px, 1.45fr) minmax(170px, .45fr) minmax(480px, 1.25fr);
}

.sbi-barcode-symbol {
  background: var(--bs-tertiary-bg, #f8f9fa);
  font-size: 1.45rem;
}

.sbi-page .barcode-scan-input {
  font-size: 1rem;
  min-height: 3rem;
}

.sbi-scanner-status-wrap {
  border-right: 1px solid var(--sbi-border);
  min-height: 4.65rem;
  padding-right: 1.5rem;
}

.sbi-scanner-status {
  align-items: center;
  background: #f3faf1;
  border: 1px solid #a8d5a1;
  border-radius: .375rem;
  color: #167018;
  display: inline-flex;
  font-weight: 600;
  gap: .55rem;
  min-height: 2.65rem;
  padding: .5rem .75rem;
}

.sbi-scanner-status > span {
  background: #249126;
  border-radius: 50%;
  height: .65rem;
  width: .65rem;
}

.sbi-scanner-status-busy {
  background: #fff7ed;
  border-color: #f1b780;
  color: #9a4700;
}

.sbi-scanner-status-busy > span {
  background: var(--sbi-accent);
}

.sbi-mode-fieldset {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.sbi-page .barcode-mode-group {
  min-height: 3rem;
}

.sbi-page .barcode-mode-group .btn {
  font-weight: 600;
}

.sbi-page .sbi-mode-button.btn-primary,
.sbi-page #saveSession.btn-primary,
.sbi-page .sbi-stepper .btn-primary {
  background-color: var(--sbi-accent);
  border-color: var(--sbi-accent);
}

.sbi-page .sbi-mode-button.btn-primary:hover,
.sbi-page #saveSession.btn-primary:hover,
.sbi-page .sbi-stepper .btn-primary:hover {
  background-color: #c74602;
  border-color: #c74602;
}

.sbi-page .sbi-mode-button:focus-visible,
.sbi-page button:focus-visible,
.sbi-page a:focus-visible,
.sbi-page input:focus-visible {
  box-shadow: 0 0 0 .25rem rgba(235, 82, 2, .24);
  outline: 2px solid transparent;
}

.sbi-feedback {
  border-radius: .375rem;
  font-weight: 600;
  margin-top: 1rem;
  padding: .65rem .8rem;
}

.sbi-feedback-success {
  background: #f3faf1;
  border: 1px solid #a8d5a1;
  color: #166b18;
}

.sbi-feedback-error {
  background: #fff2f2;
  border: 1px solid #e5aaaa;
  color: #a21d1d;
}

.sbi-last-product {
  border-top: 1px solid var(--sbi-border);
  margin-top: 1rem;
  padding-top: 1rem;
}

.sbi-last-product h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .85rem;
}

.sbi-last-product-grid {
  align-items: center;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 120px minmax(240px, 1.3fr) minmax(210px, .65fr) minmax(240px, .75fr);
}

.sbi-product-image-frame {
  align-items: center;
  background: var(--bs-tertiary-bg, #f8f9fa);
  border: 1px solid var(--sbi-border);
  border-radius: .375rem;
  color: var(--bs-secondary-color, #6c757d);
  display: flex;
  font-size: .75rem;
  height: 96px;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  width: 112px;
}

.sbi-product-image-frame img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.sbi-product-copy {
  display: grid;
  gap: .25rem;
  min-width: 0;
}

.sbi-product-copy > strong {
  font-size: 1.15rem;
}

.sbi-product-copy > span {
  overflow-wrap: anywhere;
}

.sbi-last-quantity label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .35rem;
  text-align: center;
}

.sbi-stepper {
  display: grid;
  gap: .5rem;
  grid-template-columns: 3rem minmax(4.5rem, 6rem) 3rem;
  justify-content: center;
}

.sbi-stepper .btn {
  font-size: 1.35rem;
  line-height: 1;
}

.sbi-stepper input {
  font-size: 1.1rem;
  text-align: center;
}

.sbi-last-totals {
  display: grid;
  gap: .55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.sbi-last-totals > div {
  background: var(--bs-tertiary-bg, #f8f9fa);
  border-radius: .375rem;
  padding: .65rem;
  text-align: center;
}

.sbi-last-totals dt {
  color: var(--bs-secondary-color, #6c757d);
  font-size: .78rem;
  font-weight: 500;
}

.sbi-last-totals dd {
  font-size: 1.2rem;
  font-weight: 700;
  margin: .2rem 0 0;
}

.sbi-section-heading {
  align-items: center;
  display: flex;
  gap: .65rem;
  padding: 1rem 1.25rem .8rem;
}

.sbi-section-heading h2 {
  margin: 0;
}

.sbi-pending-table thead th {
  background: var(--bs-tertiary-bg, #f8f9fa);
  border-top: 1px solid var(--sbi-border);
  font-size: .82rem;
  white-space: nowrap;
}

.sbi-pending-table td,
.sbi-pending-table th {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.sbi-table-product {
  align-items: center;
  display: grid;
  gap: .75rem;
  grid-template-columns: 54px minmax(180px, 1fr);
}

.sbi-table-product > div:last-child {
  display: grid;
  gap: .1rem;
}

.sbi-table-product span {
  color: var(--bs-secondary-color, #6c757d);
  font-size: .86rem;
  overflow-wrap: anywhere;
}

.sbi-table-image {
  align-items: center;
  background: var(--bs-tertiary-bg, #f8f9fa);
  border-radius: .25rem;
  color: var(--bs-secondary-color, #6c757d);
  display: flex;
  height: 44px;
  justify-content: center;
  overflow: hidden;
  width: 52px;
}

.sbi-table-image img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.sbi-remove-line {
  font-size: 1.3rem;
  line-height: 1;
  min-height: 2.2rem;
  min-width: 2.2rem;
}

.sbi-session-actions {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.sbi-session-summary,
.sbi-session-buttons {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.sbi-session-summary > span {
  border-left: 1px solid var(--sbi-border);
  padding-left: 1.5rem;
}

.sbi-session-buttons .btn {
  min-height: 2.8rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (max-width: 1199.98px) {
  .sbi-scan-grid {
    grid-template-columns: minmax(280px, 1fr) minmax(160px, .45fr);
  }

  .sbi-mode-fieldset {
    grid-column: 1 / -1;
  }

  .sbi-last-product-grid {
    grid-template-columns: 110px minmax(220px, 1fr) minmax(210px, .7fr);
  }

  .sbi-last-totals {
    grid-column: 2 / -1;
  }
}

@media (max-width: 767.98px) {
  .sbi-page-header,
  .sbi-session-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sbi-page-header .btn,
  .sbi-session-buttons .btn {
    width: 100%;
  }

  .sbi-scan-grid {
    grid-template-columns: 1fr;
  }

  .sbi-mode-fieldset {
    grid-column: auto;
  }

  .sbi-scanner-status-wrap {
    border-right: 0;
    min-height: 0;
    padding-right: 0;
  }

  .sbi-page .barcode-mode-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sbi-last-product-grid {
    align-items: start;
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .sbi-product-image-frame {
    height: 78px;
    width: 84px;
  }

  .sbi-last-quantity,
  .sbi-last-totals {
    grid-column: 1 / -1;
  }

  .sbi-session-summary,
  .sbi-session-buttons {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .sbi-session-summary > span {
    border-left: 0;
    padding-left: 0;
  }
}

/* Order Preparation legacy-inspired layout */
.op-page {
  --op-border: #c9c3bc;
  --op-dark: #514943;
  --op-darker: #3f3833;
  --op-orange: #f2a51f;
  --op-orange-border: #c07600;
  --op-red: #b52b27;
  --op-green: #207a34;
  --op-grey: #efefef;
  color: #2f2a26;
  margin: 0 auto;
  max-width: 1680px;
}

.op-page-fullwidth {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  width: 100%;
}

.op-header {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.op-header h1 {
  color: #2d2926;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 4px;
}

.op-details-page .op-header-meta {
  color: #625b55;
  font-size: 14px;
}

.op-header-actions,
.op-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.op-btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  min-height: 36px;
  padding: 8px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.op-btn:hover {
  text-decoration: none;
}

.op-btn-small {
  font-size: 12px;
  min-height: 30px;
  padding: 6px 10px;
}

.op-btn-primary {
  background: var(--op-orange);
  border-color: var(--op-orange-border);
  color: #1f1a16;
}

.op-btn-secondary {
  background: var(--op-grey);
  border-color: #adadad;
  color: #333;
}

.op-btn-danger {
  background: var(--op-red);
  border-color: #861b18;
  color: #fff;
}

.op-btn:disabled,
.op-btn.disabled {
  cursor: not-allowed;
  opacity: .55;
  pointer-events: none;
}

.op-message {
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.op-message-success {
  background: #e5f5e8;
  border-color: #91c99d;
  color: #135f24;
}

.op-message-error {
  background: #ffe2df;
  border-color: #d7837c;
  color: #8d1d19;
}

.op-tabs {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 14px;
}

.op-tab {
  align-items: center;
  background: #f5f5f5;
  border: 1px solid var(--op-border);
  color: #34302c;
  display: flex;
  font-weight: 700;
  gap: 9px;
  justify-content: space-between;
  min-height: 42px;
  min-width: 150px;
  padding: 9px 14px;
  text-decoration: none;
}

.op-tab + .op-tab {
  border-left: 0;
}

.op-tab strong {
  background: #fff;
  border: 1px solid #d7d1ca;
  border-radius: 999px;
  min-width: 28px;
  padding: 2px 7px;
  text-align: center;
}

.op-tab-active {
  background: var(--op-dark);
  border-color: var(--op-dark);
  color: #fff;
}

.op-tab-active strong {
  color: #2f2a26;
}

.op-filter-bar {
  align-items: end;
  background: #fafafa;
  border: 1px solid var(--op-border);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, .7fr)) auto;
  margin-bottom: 14px;
  padding: 12px;
}

.op-filter-field label,
.op-commit-panel label {
  color: #4f4943;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.op-filter-actions {
  display: flex;
  gap: 8px;
}

.op-summary-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  margin-bottom: 14px;
}

.op-details-summary {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.op-summary-box {
  background: #fff;
  border: 1px solid var(--op-border);
  min-height: 70px;
  padding: 10px 12px;
}

.op-summary-box span {
  color: #665f58;
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.op-summary-box strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  margin-top: 6px;
}

.op-summary-ready strong,
.op-ready {
  color: #1a5c9c;
}

.op-summary-waiting strong,
.op-waiting {
  color: #b46b00;
}

.op-summary-prepared strong,
.op-prepared {
  color: var(--op-green);
}

.op-grid-wrap {
  border: 1px solid var(--op-border);
  overflow-x: auto;
}

.op-grid {
  border-collapse: collapse;
  margin: 0;
  min-width: 1180px;
  table-layout: auto;
  width: 100%;
}

.op-grid th {
  background: var(--op-dark);
  border: 1px solid var(--op-darker);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 8px;
  text-align: left;
  vertical-align: middle;
}

.op-grid td {
  background: #fff;
  border: 1px solid var(--op-border);
  font-size: 13px;
  padding: 8px;
  vertical-align: middle;
}

.op-grid tbody tr:nth-child(even) td {
  background: #fbfbfb;
}

.op-grid .op-row-hold td {
  background: #fff0ed;
}

.op-grid .op-row-progress td {
  background: #fff8e7;
}

.op-num {
  text-align: right;
  white-space: nowrap;
}

.op-actions-col {
  min-width: 230px;
  text-align: right;
}

.op-products {
  max-width: 340px;
  overflow-wrap: anywhere;
}

.order-prep-products {
  line-height: 1.35;
  max-width: 620px;
  min-width: 360px;
}

.op-page-fullwidth .op-filter-bar,
.op-page-fullwidth .op-summary-row,
.op-page-fullwidth .op-grid-wrap {
  width: 100%;
}

.op-page-fullwidth .op-grid {
  min-width: 1320px;
  width: 100%;
}

.op-page-fullwidth .op-products,
.op-page-fullwidth .order-prep-products {
  max-width: none;
}

.op-page-fullwidth .op-grid th:nth-child(7),
.op-page-fullwidth .op-grid td:nth-child(7) {
  min-width: 420px;
  width: 42%;
}

.order-prep-product-line {
  margin-bottom: 2px;
}

.order-prep-product-line:last-child {
  margin-bottom: 0;
}

.order-prep-product-line.is-ready {
  color: var(--op-green);
}

.order-prep-product-line.is-backorder {
  color: var(--op-red);
}

.order-prep-product-line.is-partial {
  color: #d98200;
}

.order-prep-product-availability {
  font-weight: 700;
  white-space: nowrap;
}
.op-empty {
  color: #6f6963;
  font-weight: 700;
  padding: 18px 12px !important;
  text-align: center;
}

.op-badge,
.op-priority,
.op-hold-note,
.op-line-sub {
  display: block;
}

.op-badge {
  color: #312d29;
  font-weight: 700;
}

.op-badge-hold {
  color: var(--op-red);
}

.op-badge-progress {
  color: #9b5b00;
}

.op-priority,
.op-line-sub,
.op-hold-note {
  color: #6d655f;
  font-size: 12px;
  margin-top: 2px;
}

.op-hold-note {
  color: #8d1d19;
  max-width: 220px;
  overflow-wrap: anywhere;
}

.op-pagination {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.op-scan-panel {
  background: #fafafa;
  border: 1px solid var(--op-border);
  margin-bottom: 14px;
  padding: 16px;
  text-align: center;
}

.op-scan-panel #div_instruction {
  color: #2c2824;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.op-scan-paused #div_instruction {
  color: var(--op-red);
}

.op-scan-message {
  background: #efefef;
  border: 1px solid #d0cbc5;
  color: #3e3934;
  font-size: 16px;
  font-weight: 700;
  margin: 12px auto 0;
  max-width: 760px;
  padding: 10px;
}

.op-scan-success {
  background: #e5f5e8;
  border-color: #8fc79b;
  color: #135f24;
}

.op-scan-danger,
.op-scan-warning {
  background: #ffe2df;
  border-color: #d7837c;
  color: #8d1d19;
}

.op-info-panel {
  background: #fff;
  border: 1px solid var(--op-border);
  margin-bottom: 14px;
  padding: 12px;
}

.op-info-panel dl {
  display: grid;
  gap: 12px 24px;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  margin: 0;
}

.op-info-panel dt {
  color: #665f58;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.op-info-panel dd {
  margin: 3px 0 0;
}

.op-lines-grid {
  min-width: 1460px;
}

.op-product-image {
  align-items: center;
  background: #fff;
  border: 1px solid #d7d1ca;
  display: inline-flex;
  height: 58px;
  justify-content: center;
  max-width: 66px;
  object-fit: contain;
  width: 66px;
}

.op-product-image-empty {
  color: #777;
}

.op-line-actions {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.op-qty-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.op-qty-input {
  text-align: right;
  width: 74px;
}

.op-check {
  align-items: center;
  display: inline-flex;
  font-size: 12px;
  gap: 4px;
  margin: 0;
}

.packing-status {
  border-radius: 2px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  min-width: 96px;
  padding: 5px 8px;
  text-align: center;
}

.packing-status-ok {
  background: var(--op-green);
}

.packing-status-partial {
  background: var(--op-orange);
  color: #1f1a16;
}

.packing-status-none,
.packing-status-error {
  background: var(--op-red);
}

.order-prep-line.scan-highlight > td {
  background: #d8f2d8 !important;
  transition: background-color .18s ease;
}

.order-prep-line.scan-error > td {
  background: #ffd4d0 !important;
  transition: background-color .18s ease;
}

body.scan-highlight {
  box-shadow: inset 0 0 0 5px #5ba866;
}

body.scan-error {
  box-shadow: inset 0 0 0 5px var(--op-red);
}

.op-commit-panel {
  align-items: end;
  background: #fafafa;
  border: 1px solid var(--op-border);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(260px, 1fr) auto;
  margin-top: 14px;
  padding: 12px;
}

.op-commit-panel label,
.op-commit-panel textarea,
.op-form-help {
  grid-column: 1;
}

.op-commit-panel button {
  grid-column: 2;
  grid-row: 2;
}

.op-form-help {
  color: #7a7169;
  font-size: 12px;
}

.op-modal-order {
  color: #514943;
  font-weight: 700;
  margin-bottom: 10px;
}

@media (max-width: 1100px) {
  .op-filter-bar,
  .op-summary-row,
  .op-details-summary,
  .op-info-panel dl,
  .op-commit-panel {
    grid-template-columns: 1fr 1fr;
  }

  .op-filter-search,
  .op-commit-panel label,
  .op-commit-panel textarea,
  .op-form-help {
    grid-column: 1 / -1;
  }

  .op-commit-panel button {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 700px) {
  .op-header,
  .op-header-actions,
  .op-filter-actions,
  .op-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .op-filter-bar,
  .op-summary-row,
  .op-details-summary,
  .op-info-panel dl,
  .op-commit-panel {
    grid-template-columns: 1fr;
  }

  .op-tab {
    min-width: 100%;
  }

  .op-scan-panel #div_instruction {
    font-size: 22px;
  }
}

/* Supply Needs and Supplier Orders */
.sn-page,
.so-page {
  --sn-border: #c8c3bd;
  --sn-dark: #514943;
  --sn-darker: #3d3732;
  --sn-orange: #f0a22a;
  --sn-red: #b8322a;
  --sn-green: #2f7d42;
  --sn-grey: #f1f1f1;
  color: #302b27;
  margin: 0 auto;
  max-width: 1760px;
}

.sn-header,
.so-header {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sn-header h1,
.so-header h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 4px;
}

.sn-header-meta,
.so-header-meta {
  color: #675f58;
  font-size: 14px;
}

.sn-header-actions,
.so-header-actions,
.sn-toolbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sn-btn,
.so-btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  min-height: 36px;
  padding: 8px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.sn-btn-small,
.so-btn-small {
  font-size: 12px;
  min-height: 30px;
  padding: 6px 10px;
}

.sn-btn-primary,
.so-btn-primary {
  background: var(--sn-orange);
  border-color: #bd7200;
  color: #1e1a16;
}

.sn-btn-secondary,
.so-btn-secondary {
  background: var(--sn-grey);
  border-color: #aaa;
  color: #2f2a26;
}

.sn-btn:disabled,
.so-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.sn-message,
.so-message {
  background: #e8f5eb;
  border: 1px solid #93c99e;
  color: #175f28;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 10px 12px;
}

.sn-message-error {
  background: #ffe2df;
  border-color: #d7837c;
  color: #8d1d19;
}

.sn-message-success {
  background: #e8f5eb;
  border-color: #93c99e;
  color: #175f28;
}

.sn-tabs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.sn-tab {
  background: #f6f6f6;
  border: 1px solid var(--sn-border);
  color: #312d29;
  font-weight: 700;
  min-height: 40px;
  min-width: 155px;
  padding: 9px 14px;
  text-align: center;
  text-decoration: none;
}

.sn-tab + .sn-tab {
  border-left: 0;
}

.sn-tab-active {
  background: var(--sn-dark);
  border-color: var(--sn-dark);
  color: #fff;
}

.sn-toolbar {
  align-items: end;
  background: #fafafa;
  border: 1px solid var(--sn-border);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1.3fr) minmax(150px, .7fr) minmax(180px, .8fr) auto auto;
  margin-bottom: 12px;
  padding: 12px;
}

.sn-field label,
.sn-check {
  color: #4f4943;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.sn-field label {
  display: block;
  margin-bottom: 4px;
}

.sn-check {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  min-height: 36px;
}

.sn-summary-row,
.so-summary-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(145px, 1fr));
  margin-bottom: 12px;
}

.so-summary-row {
  grid-template-columns: repeat(3, minmax(160px, 1fr)) minmax(220px, auto);
}

.sn-summary-box,
.so-summary-box,
.so-summary-action {
  background: #fff;
  border: 1px solid var(--sn-border);
  min-height: 68px;
  padding: 10px 12px;
}

.so-summary-action {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.sn-summary-box span,
.so-summary-box span {
  color: #665f58;
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.sn-summary-box strong,
.so-summary-box strong {
  display: block;
  font-size: 23px;
  line-height: 1.2;
  margin-top: 6px;
}

.sn-summary-critical strong {
  color: var(--sn-red);
}

.sn-summary-warning strong,
.sn-summary-suggested strong {
  color: #a46100;
}

.sn-supplier-groups {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 12px;
}

.sn-supplier-group {
  background: #fff;
  border: 1px solid var(--sn-border);
  padding: 9px 10px;
}

.sn-supplier-group span,
.sn-supplier-group small {
  display: block;
}

.sn-supplier-group strong {
  color: #a46100;
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.sn-bulkbar {
  align-items: center;
  background: #fff8e8;
  border: 1px solid #e0b15e;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 10px 12px;
}

.sn-bulkbar span {
  color: #675f58;
  font-size: 13px;
  font-weight: 700;
}

.sn-grid-wrap,
.so-grid-wrap {
  border: 1px solid var(--sn-border);
  overflow-x: auto;
}

.sn-grid,
.so-grid {
  border-collapse: collapse;
  margin: 0;
  min-width: 1480px;
  width: 100%;
}

.so-grid {
  min-width: 1040px;
}

.sn-grid th,
.so-grid th {
  background: var(--sn-dark);
  border: 1px solid var(--sn-darker);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 8px;
  text-align: left;
  vertical-align: middle;
}

.sn-grid td,
.so-grid td {
  background: #fff;
  border: 1px solid var(--sn-border);
  font-size: 13px;
  padding: 8px;
  vertical-align: middle;
}

.sn-grid tbody tr:nth-child(even) td,
.so-grid tbody tr:nth-child(even) td {
  background: #fbfbfb;
}

.sn-grid tr.sn-critical td {
  background: #fff0ed;
}

.sn-grid tr.sn-warning td {
  background: #fff8e7;
}

.sn-grid tr.sn-ok td {
  background: #f5f7f5;
}

.sn-select-col {
  text-align: center;
  width: 42px;
}

.sn-num,
.so-num {
  text-align: right;
  white-space: nowrap;
}

.sn-product,
.so-notes {
  max-width: 320px;
  overflow-wrap: anywhere;
}

.sn-qty-input {
  margin-left: auto;
  text-align: right;
  width: 86px;
}

.sn-status,
.so-status {
  border-radius: 2px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 7px;
  white-space: nowrap;
}

.sn-status.sn-critical,
.so-status-cancelled {
  background: var(--sn-red);
  color: #fff;
}

.sn-status.sn-warning,
.so-status-draft,
.so-status-ordered,
.so-status-partial {
  background: var(--sn-orange);
  color: #1f1a16;
}

.sn-status.sn-ok,
.so-status-received {
  background: var(--sn-green);
  color: #fff;
}

.sn-reason {
  color: #655e58;
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.sn-actions-col,
.so-actions-col {
  min-width: 105px;
  text-align: right;
}

.sn-empty,
.so-empty {
  color: #6f6963;
  font-weight: 700;
  padding: 18px 12px !important;
  text-align: center;
}

.sn-consolidation-bar {
  align-items: end;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(210px, auto) minmax(260px, 1.2fr) auto;
}

.sn-target-choice {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.sn-target-choice legend {
  color: #4f4943;
  float: none;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.sn-target-choice label {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  white-space: nowrap;
}

.sn-assignment {
  border-bottom: 1px solid #ddd8d2;
  display: grid;
  gap: 3px;
  padding: 5px 0;
}

.sn-assignment:last-child {
  border-bottom: 0;
}

.sn-assignment-remove {
  align-items: center;
  display: flex;
  gap: 5px;
}

.sn-assignment-remove input {
  width: 70px;
}

.sn-unified-page { max-width: 1900px; }
.sn-workflow {
  align-items: center; background: #fff; border: 1px solid var(--sn-border); display: flex;
  gap: 10px; margin-bottom: 14px; overflow-x: auto; padding: 12px 16px;
}
.sn-workflow-step {
  align-items: center; color: #433d38; display: inline-flex; font-size: 13px; font-weight: 700;
  gap: 8px; min-width: max-content; text-decoration: none;
}
.sn-workflow-step span {
  align-items: center; border: 1px solid #aaa39d; border-radius: 50%; display: inline-flex;
  height: 34px; justify-content: center; width: 34px;
}
.sn-workflow-current span { border-color: var(--sn-orange); color: #b55f00; box-shadow: inset 0 0 0 2px #fff3df; }
.sn-workflow-arrow { color: #9c958f; flex: 0 0 auto; }
.sn-workspace { align-items: start; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) 320px; }
.sn-workspace-main { min-width: 0; }
.sn-section,
.sn-supplier-panel {
  background: #fff; border: 1px solid #ddd8d2; border-radius: 6px;
  box-shadow: 0 2px 10px rgba(56, 48, 42, .05);
}
.sn-section { margin-bottom: 14px; padding: 18px; }
.sn-section-header { align-items: flex-start; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 14px; }
.sn-section-header h1,
.sn-section-header h2 { font-size: 22px; font-weight: 700; margin: 0 0 3px; }
.sn-section-header p { color: #68615b; font-size: 13px; margin: 0; }
.sn-kpi-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(170px, 1fr)); margin-bottom: 14px; }
.sn-kpi-card { border: 1px solid #ddd8d2; border-left: 4px solid #1976d2; border-radius: 5px; min-height: 78px; padding: 13px 16px; }
.sn-kpi-card span { color: #554e48; display: block; font-size: 13px; font-weight: 700; }
.sn-kpi-card strong { display: block; font-size: 25px; margin-top: 4px; }
.sn-kpi-orange { border-left-color: var(--sn-orange); }
.sn-kpi-red { border-left-color: var(--sn-red); }
.sn-order-grid { min-width: 1120px; }
.sn-demand-grid { min-width: 1320px; }
.sn-row-actions { align-items: flex-end; display: flex; flex-direction: column; gap: 4px; }
.sn-icon-action { color: #1559a6; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.sn-icon-action:hover,
.sn-icon-action:focus-visible { text-decoration: underline; }
.sn-bill-menu { min-width: 120px; }
.sn-bill-menu summary { color: #1559a6; cursor: pointer; font-weight: 700; }
.sn-bill-menu a { display: block; margin-top: 4px; }
.sn-needs-summary { grid-template-columns: repeat(4, minmax(145px, 1fr)); }
.sn-selection-count { align-items: center; display: flex; gap: 5px; white-space: nowrap; }
.sn-selection-count strong { color: #b55f00; font-size: 22px; }
.sn-unified-page .sn-consolidation-bar { grid-template-columns: auto minmax(210px, 1fr) minmax(190px, auto) minmax(230px, 1fr) auto; }
.sn-supplier-panel { overflow: hidden; position: sticky; top: 12px; }
.sn-panel-header { border-bottom: 1px solid #e2ddd8; padding: 16px 18px; }
.sn-panel-header h2 { font-size: 19px; margin: 0; }
.sn-panel-empty,
.sn-panel-identity,
.sn-account-summary,
.sn-panel-actions { margin: 0; padding: 16px 18px; }
.sn-panel-identity { border-bottom: 1px solid #e2ddd8; }
.sn-panel-identity span,
.sn-panel-identity strong,
.sn-panel-identity small { display: block; }
.sn-panel-identity span,
.sn-panel-identity small { color: #6a635d; font-size: 12px; }
.sn-panel-identity strong { font-size: 18px; margin: 5px 0 2px; }
.sn-account-summary { border-bottom: 1px solid #e2ddd8; }
.sn-account-summary div { align-items: baseline; display: flex; gap: 10px; justify-content: space-between; margin-bottom: 12px; }
.sn-account-summary div:last-child { margin-bottom: 0; }
.sn-account-summary dt { color: #554f49; font-size: 13px; font-weight: 600; }
.sn-account-summary dd { font-size: 14px; font-weight: 700; margin: 0; text-align: right; }
.sn-account-summary div:first-child dd { color: var(--sn-red); font-size: 18px; }
.sn-panel-actions { display: grid; gap: 8px; }
.sn-panel-actions .sn-btn { width: 100%; }

@media (max-width: 1400px) {
  .sn-unified-page .sn-consolidation-bar {
    grid-template-columns: 1fr 1fr;
  }

  .sn-unified-page .sn-consolidation-bar > .sn-btn {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 1200px) {
  .sn-workspace {
    grid-template-columns: 1fr;
  }

  .sn-supplier-panel {
    position: static;
  }

  .sn-toolbar,
  .sn-summary-row,
  .so-summary-row {
    grid-template-columns: 1fr 1fr;
  }

  .sn-unified-page .sn-consolidation-bar {
    grid-template-columns: 1fr 1fr;
  }

  .sn-field-search,
  .so-summary-action {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .sn-header,
  .so-header,
  .sn-header-actions,
  .so-header-actions,
  .sn-bulkbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sn-toolbar,
  .sn-summary-row,
  .so-summary-row,
  .sn-supplier-groups,
  .sn-unified-page .sn-consolidation-bar {
    grid-template-columns: 1fr;
  }

  .sn-unified-page .sn-consolidation-bar > .sn-btn {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }

  .sn-tab {
    min-width: 100%;
  }

  .sn-section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .sn-kpi-grid,
  .sn-needs-summary {
    grid-template-columns: 1fr;
  }

  .sn-section {
    padding: 12px;
  }

  .sn-workflow {
    padding: 10px;
  }
}

/* Supplier purchasing workspace */
.sp-page {
  --sp-border: #e2e5e9;
  --sp-border-strong: #d4d9df;
  --sp-ink: #1d2530;
  --sp-muted: #697383;
  --sp-soft: #f7f8fa;
  --sp-orange: #ef6c00;
  --sp-orange-dark: #c95700;
  --sp-blue: #0d6efd;
  --sp-red: #d92d3a;
  --sp-green: #39854b;
  color: var(--sp-ink);
  margin: 0 auto;
  max-width: 1760px;
  min-width: 0;
}

.sp-workflow {
  align-items: center;
  background: #fff;
  border: 1px solid var(--sp-border);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(23, 32, 43, .045);
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
  overflow-x: auto;
  padding: 14px 20px;
  scrollbar-width: thin;
}

.sp-workflow__step {
  align-items: center;
  color: #46505e;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 650;
  gap: 9px;
  text-decoration: none;
}

.sp-workflow__step:hover,
.sp-workflow__step:focus-visible {
  color: var(--sp-orange);
}

.sp-workflow__icon {
  align-items: center;
  background: #fff;
  border: 1px solid #cfd5dc;
  border-radius: 50%;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  transition: border-color .18s ease, box-shadow .18s ease, color .18s ease;
  width: 42px;
}

.sp-workflow__icon svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 21px;
}

.sp-workflow__step.is-current {
  color: #272e37;
  font-weight: 750;
}

.sp-workflow__step.is-current .sp-workflow__icon {
  border-color: var(--sp-orange);
  box-shadow: 0 0 0 4px #fff0e5;
  color: var(--sp-orange);
}

.sp-workflow__connector {
  color: #a6adb6;
  display: inline-flex;
  flex: 0 0 30px;
}

.sp-workflow__connector svg {
  fill: none;
  height: 12px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
  width: 28px;
}

.sp-module-header {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sp-module-header h1,
.sn-section-header h1,
.sn-section-header h2 {
  color: var(--sp-ink);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 760;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 2px 0 5px;
}

.sp-module-header p,
.sn-section-header p,
.sp-section-heading p {
  color: var(--sp-muted);
  font-size: 13px;
  margin: 0;
}

.sp-eyebrow {
  color: #8a5a32;
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.sp-header-actions,
.sn-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.sp-btn,
.sn-btn,
.so-btn {
  align-items: center;
  background: #fff;
  border: 1px solid var(--sp-border-strong);
  border-radius: 7px;
  color: #2b3440;
  display: inline-flex;
  font-size: 12px;
  font-weight: 720;
  gap: 6px;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.sp-btn:hover,
.sp-btn:focus-visible,
.sn-btn:hover,
.sn-btn:focus-visible,
.so-btn:hover,
.so-btn:focus-visible {
  border-color: #b9c0c9;
  box-shadow: 0 3px 10px rgba(29, 37, 48, .08);
  color: #171d25;
}

.sp-btn-primary,
.sn-btn-primary,
.so-btn-primary {
  background: linear-gradient(180deg, #f67a10, var(--sp-orange));
  border-color: var(--sp-orange);
  color: #fff;
}

.sp-btn-primary:hover,
.sp-btn-primary:focus-visible,
.sn-btn-primary:hover,
.sn-btn-primary:focus-visible,
.so-btn-primary:hover,
.so-btn-primary:focus-visible {
  background: var(--sp-orange-dark);
  border-color: var(--sp-orange-dark);
  color: #fff;
}

.sp-btn-secondary,
.sn-btn-secondary,
.so-btn-secondary {
  background: #fff;
}

.sp-btn-quiet {
  background: transparent;
  border-color: transparent;
  color: #6b7480;
}

.sp-btn-danger {
  background: #fff;
  border-color: #edc5c8;
  color: #b4232e;
}

.sp-full-width {
  width: 100%;
}

.sp-surface,
.sn-section,
.sn-supplier-panel,
.sp-side-card {
  background: #fff;
  border: 1px solid var(--sp-border);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(23, 32, 43, .045);
}

.sn-section {
  margin-bottom: 16px;
  padding: 20px;
}

.sn-section-header,
.sp-section-heading {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sp-message,
.sn-message,
.so-message {
  border: 1px solid;
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 11px 14px;
}

.sp-message-success,
.sn-message-success {
  background: #eff8f1;
  border-color: #badfc1;
  color: #256a34;
}

.sp-message-error,
.sn-message-error {
  background: #fff2f3;
  border-color: #f0c4c8;
  color: #a51d29;
}

.sp-kpi-grid,
.sn-kpi-grid,
.sn-summary-row {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.sp-kpi-grid-three,
.sn-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sp-kpi-grid-four,
.sn-needs-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sp-kpi-card,
.sn-kpi-card {
  align-items: center;
  background: linear-gradient(145deg, #fff, #fbfcfd);
  border: 1px solid var(--sp-border);
  border-radius: 9px;
  display: flex;
  gap: 13px;
  min-height: 84px;
  padding: 14px 16px;
}

.sp-kpi-icon {
  align-items: center;
  background: #edf5ff;
  border-radius: 9px;
  color: var(--sp-blue);
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 20px;
  font-weight: 750;
  height: 42px;
  justify-content: center;
}

.sp-kpi-icon svg,
.sp-empty-icon svg,
.sp-icon-button svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 22px;
}

.sp-kpi-card > div > span,
.sn-kpi-card > div > span {
  color: #596473;
  display: block;
  font-size: 12px;
  font-weight: 650;
}

.sp-kpi-card strong,
.sn-kpi-card strong {
  color: #161d26;
  display: block;
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin-top: 3px;
}

.sp-kpi-orange .sp-kpi-icon { background: #fff1e6; color: var(--sp-orange); }
.sp-kpi-red .sp-kpi-icon { background: #fff0f1; color: var(--sp-red); }
.sp-kpi-green .sp-kpi-icon { background: #eef8f0; color: var(--sp-green); }
.sp-kpi-slate .sp-kpi-icon { background: #f0f2f5; color: #5d6774; }

.sn-workspace {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 23%);
}

.sn-workspace-main {
  min-width: 0;
}

.sp-list-controls {
  border-top: 1px solid #eef0f2;
  margin-top: 2px;
  padding-top: 15px;
}

.sp-tabs,
.sn-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.sp-tab,
.sn-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  color: #626d7a;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 680;
  padding: 8px 13px;
  text-decoration: none;
}

.sp-tab:hover,
.sp-tab:focus-visible,
.sn-tab:hover,
.sn-tab:focus-visible {
  color: var(--sp-orange);
}

.sp-tab.is-active,
.sn-tab-active {
  background: #fff8f2;
  border-bottom-color: var(--sp-orange);
  color: #9b4806;
}

.sp-searchbar,
.sn-toolbar {
  align-items: end;
  background: var(--sp-soft);
  border: 1px solid #eceef1;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  padding: 11px;
  position: relative;
}

.sp-searchbar input {
  padding-left: 30px;
}

.sp-search-icon {
  color: #818b98;
  left: 21px;
  position: absolute;
  top: 20px;
}

.sn-toolbar {
  grid-template-columns: minmax(220px, 1.35fr) minmax(150px, .7fr) minmax(170px, .85fr) auto auto;
}

.sn-field label,
.sn-check,
.sp-receipt-toolbar label {
  color: #5b6572;
  display: block;
  font-size: 11px;
  font-weight: 720;
  margin-bottom: 5px;
}

.sn-toolbar .form-control,
.sn-toolbar .form-select,
.sn-consolidation-bar .form-select,
.sp-receipt-toolbar .form-control {
  border-color: #d8dde3;
  border-radius: 6px;
  font-size: 12px;
  min-height: 36px;
}

.sn-check {
  align-items: center;
  display: flex;
  gap: 7px;
  margin: 0 4px 8px;
  white-space: nowrap;
}

.sn-check input {
  accent-color: var(--sp-orange);
}

.sn-toolbar-actions {
  align-items: center;
  display: flex;
  gap: 7px;
}

.sp-table-wrap,
.sn-grid-wrap,
.so-grid-wrap {
  border: 1px solid var(--sp-border);
  border-radius: 8px;
  max-width: 100%;
  overflow-x: auto;
}

.sp-table,
.sn-grid,
.so-grid {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  margin: 0;
  min-width: 100%;
  width: 100%;
}

.sp-orders-table,
.sn-order-grid {
  min-width: 1020px;
}

.sn-demand-grid {
  min-width: 1240px;
}

.sp-detail-lines-table {
  min-width: 1420px;
}

.sp-table th,
.sn-grid th,
.so-grid th {
  background: #292d31;
  border: 0;
  color: #fff;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .015em;
  padding: 9px 10px;
  text-transform: none;
  white-space: nowrap;
}

.sp-table td,
.sn-grid td,
.so-grid td {
  background: #fff;
  border: 0;
  border-bottom: 1px solid #eceef1;
  color: #323b47;
  padding: 10px;
  vertical-align: middle;
}

.sp-table tbody tr:last-child td,
.sn-grid tbody tr:last-child td,
.so-grid tbody tr:last-child td {
  border-bottom: 0;
}

.sp-table tbody tr:hover td,
.sn-grid tbody tr:hover td,
.so-grid tbody tr:hover td {
  background: #fffaf6;
}

.sp-table a,
.sn-grid a {
  text-decoration: none;
}

.sp-number,
.sn-num,
.so-num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.sp-remaining,
.sn-qty-suggested {
  color: #b14c00;
  font-weight: 760;
}

.sp-document-link {
  color: #d24d2f;
  font-weight: 760;
}

.sp-supplier-link {
  color: #27313d;
  display: inline-grid;
  gap: 1px;
}

.sp-supplier-link small {
  color: #7c8692;
  font-size: 10px;
}

.sp-bill-link {
  color: #1769b0;
  display: block;
  font-weight: 680;
}

.sp-status,
.so-status,
.sn-status {
  border-radius: 5px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.2;
  padding: 4px 7px;
  white-space: nowrap;
}

.so-status-draft { background: #eef0f3; color: #4d5662; }
.so-status-ordered { background: #eaf3ff; color: #165e9e; }
.so-status-partial { background: #fff2d9; color: #8b5500; }
.so-status-received { background: #e9f6ec; color: #2f713d; }
.so-status-closed { background: #f1edf8; color: #65438a; }
.so-status-cancelled { background: #fdebec; color: #a12630; }
.sn-status.sn-critical { background: #d92d3a; color: #fff; }
.sn-status.sn-warning { background: #fff0d7; color: #8d5600; }
.sn-status.sn-ok { background: #e9f6ec; color: #2f713d; }

.sp-actions-column,
.sn-actions-col,
.so-actions-col {
  text-align: right;
  white-space: nowrap;
}

.sp-row-actions,
.sn-row-actions {
  align-items: center;
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}

.sp-icon-button {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe0e5;
  border-radius: 5px;
  color: #5a6572;
  display: inline-flex;
  height: 29px;
  justify-content: center;
  width: 29px;
}

.sp-icon-button svg {
  height: 15px;
  width: 15px;
}

.sp-icon-button:hover,
.sp-icon-button:focus-visible {
  background: #fff3e9;
  border-color: #f3a363;
  color: var(--sp-orange);
}

.sp-empty-state,
.sn-panel-empty {
  align-items: center;
  color: var(--sp-muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  min-height: 180px;
  padding: 25px;
  text-align: center;
  white-space: normal;
}

.sp-empty-state span:not(.sp-empty-icon) {
  max-width: 520px;
}

.sp-empty-state strong,
.sn-panel-empty strong {
  color: #303945;
  font-size: 14px;
}

.sp-empty-state .sp-btn {
  margin-top: 8px;
}

.sp-empty-state-compact {
  min-height: 125px;
}

.sp-empty-icon {
  align-items: center;
  background: #fff1e6;
  border-radius: 50%;
  color: var(--sp-orange);
  display: inline-flex;
  font-size: 20px;
  height: 46px;
  justify-content: center;
  margin-bottom: 4px;
  width: 46px;
}

.sn-consolidation-bar {
  align-items: end;
  background: #fff8f2;
  border: 1px solid #f2d2b7;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(190px, 1fr) minmax(180px, auto) minmax(210px, 1fr) auto;
  margin: 14px 0 10px;
  padding: 11px;
}

.sn-selection-count {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 105px;
}

.sn-selection-count span {
  color: #4f5966;
  font-size: 11px;
}

.sn-selection-count strong {
  color: var(--sp-orange);
  font-size: 20px;
}

.sn-selection-count small {
  color: #7a6452;
  font-size: 10px;
}

.sn-selection-count small strong {
  font-size: 11px;
}

.sn-target-choice {
  align-items: center;
  border: 0;
  display: flex;
  gap: 10px;
  margin: 0;
  min-height: 36px;
  padding: 0;
}

.sn-target-choice legend {
  color: #5b6572;
  font-size: 11px;
  font-weight: 720;
  margin-bottom: 5px;
}

.sn-target-choice label {
  align-items: center;
  display: inline-flex;
  font-size: 11px;
  gap: 4px;
  white-space: nowrap;
}

.sn-target-choice input {
  accent-color: var(--sp-orange);
}

.sn-qty-input {
  margin-left: auto;
  max-width: 76px;
  min-width: 64px;
}

.sn-assignment {
  border-bottom: 1px solid #eceef1;
  display: grid;
  gap: 2px;
  padding: 4px 0;
}

.sn-assignment:last-child {
  border-bottom: 0;
}

.sn-assignment-remove {
  align-items: center;
  display: flex;
  gap: 5px;
}

.sn-assignment-remove input {
  width: 70px;
}

.sn-supplier-panel {
  overflow: hidden;
  position: sticky;
  top: 12px;
}

.sn-panel-header,
.sp-side-card-header {
  border-bottom: 1px solid #eceef1;
  padding: 16px 18px;
}

.sn-panel-header h2,
.sp-side-card-header h2 {
  font-size: 17px;
  font-weight: 750;
  margin: 2px 0 0;
}

.sn-panel-identity,
.sn-account-summary,
.sn-panel-actions {
  border-bottom: 1px solid #eceef1;
  margin: 0;
  padding: 16px 18px;
}

.sn-panel-identity span,
.sn-panel-identity strong,
.sn-panel-identity small {
  display: block;
}

.sn-panel-identity span,
.sn-panel-identity small {
  color: var(--sp-muted);
  font-size: 11px;
}

.sn-panel-identity strong {
  font-size: 18px;
  margin: 4px 0 2px;
}

.sn-account-summary div {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sn-account-summary div:last-child {
  margin-bottom: 0;
}

.sn-account-summary dt {
  color: #596473;
  font-size: 11px;
  font-weight: 620;
}

.sn-account-summary dd {
  font-size: 13px;
  font-weight: 750;
  margin: 0;
  text-align: right;
}

.sn-account-summary div:first-child dd {
  color: var(--sp-red);
  font-size: 18px;
}

.sn-panel-actions {
  border-bottom: 0;
  display: grid;
  gap: 8px;
}

.sn-panel-actions .sn-btn {
  width: 100%;
}

.sn-panel-activity {
  padding: 16px 18px;
}

.sn-panel-activity h3 {
  font-size: 13px;
  font-weight: 760;
  margin: 0 0 8px;
}

.sn-activity-list {
  display: grid;
}

.sn-activity-list > a {
  align-items: center;
  border-bottom: 1px solid #eceef1;
  color: #303945;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 9px 0;
  text-decoration: none;
}

.sn-activity-list > a:hover strong,
.sn-activity-list > a:focus-visible strong {
  color: var(--sp-orange);
}

.sn-activity-list span,
.sn-activity-list strong,
.sn-activity-list small {
  display: block;
}

.sn-activity-list strong {
  color: #1769b0;
  font-size: 11px;
}

.sn-activity-list small {
  color: var(--sp-muted);
  font-size: 9px;
}

.sn-activity-amount {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 720;
  text-align: right;
}

.sn-activity-amount.is-credit {
  color: var(--sp-green);
}

.sn-activity-all {
  color: var(--sp-orange);
  display: inline-flex;
  font-size: 10px;
  font-weight: 720;
  margin-top: 10px;
  text-decoration: none;
}

.sp-detail-header {
  align-items: flex-end;
}

.sp-back-link {
  color: #687381;
  display: inline-flex;
  font-size: 11px;
  margin-bottom: 10px;
  text-decoration: none;
}

.sp-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sp-title-row h1 {
  margin-right: 2px;
}

.sp-detail-actions form {
  margin: 0;
}

.sp-detail-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.sp-receiving-scroll {
  max-height: 65vh;
  overflow: auto;
}

.sp-receiving-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.sp-detail-main {
  min-width: 0;
}

.sp-detail-main .sp-surface {
  margin-bottom: 16px;
  padding: 20px;
}

.sp-count-badge {
  background: #f0f2f5;
  border-radius: 999px;
  color: #596473;
  font-size: 10px;
  font-weight: 750;
  padding: 5px 9px;
}

.sp-receipt-toolbar {
  align-items: end;
  background: #fff8f2;
  border: 1px solid #f1d7c0;
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 11px;
}

.sp-receipt-toolbar .sn-field {
  max-width: 360px;
  width: 100%;
}

.sp-receipt-toolbar > div:last-child {
  align-items: center;
  display: flex;
  gap: 12px;
}

.sp-receipt-toolbar > div:last-child span {
  color: #7a6452;
  font-size: 10px;
}

.sp-remainder-decision {
  background: #f8f5fb;
  border: 1px solid #ded3ea;
  border-radius: 7px;
  margin-bottom: 12px;
  padding: 10px 12px;
}

.sp-remainder-decision .form-check {
  margin: 0;
}

.sp-remainder-decision small {
  color: #675b72;
  display: block;
  margin-left: 1.5rem;
  margin-top: 3px;
}

.sp-description-cell {
  min-width: 190px;
  white-space: normal;
}

.sp-input-cell {
  min-width: 100px;
}

.sp-receipt-card {
  border: 1px solid #e5e8ec;
  border-radius: 8px;
  margin-top: 12px;
  overflow: hidden;
}

.sp-receipt-card > header {
  align-items: center;
  background: #f8f9fa;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 10px 12px;
}

.sp-receipt-card > header div {
  display: grid;
  gap: 2px;
}

.sp-receipt-card > header small {
  color: var(--sp-muted);
}

.sp-compact-table th {
  background: #454a50;
}

.sp-origin-chip {
  background: #f1f3f5;
  border-radius: 4px;
  display: inline-flex;
  font-size: 10px;
  margin: 1px 3px 1px 0;
  padding: 3px 5px;
}

.sp-detail-sidebar {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: static;
}

.sp-side-card {
  overflow: hidden;
}

.sp-detail-meta {
  margin: 0;
  padding: 15px 18px;
}

.sp-detail-meta div {
  border-bottom: 1px solid #eef0f2;
  display: grid;
  gap: 3px;
  padding: 9px 0;
}

.sp-detail-meta div:first-child {
  padding-top: 0;
}

.sp-detail-meta div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sp-detail-meta dt {
  color: var(--sp-muted);
  font-size: 10px;
  font-weight: 680;
}

.sp-detail-meta dd {
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}

.sp-detail-meta dd small {
  color: var(--sp-muted);
  display: block;
  font-size: 10px;
}

.sp-side-actions {
  border-top: 1px solid #eceef1;
  display: grid;
  gap: 8px;
  padding: 14px 18px;
}

.sp-side-empty {
  color: var(--sp-muted);
  padding: 18px;
  text-align: center;
}

.sp-side-empty > span {
  color: var(--sp-orange);
  font-size: 24px;
}

.sp-side-empty p {
  font-size: 11px;
  margin: 5px 0 0;
}

.sp-linked-documents {
  display: grid;
  padding: 8px 18px;
}

.sp-linked-documents a {
  border-bottom: 1px solid #eceef1;
  color: #1769b0;
  display: grid;
  gap: 2px;
  padding: 9px 0;
  text-decoration: none;
}

.sp-linked-documents a:last-child {
  border-bottom: 0;
}

.sp-linked-documents small {
  color: var(--sp-muted);
  font-size: 10px;
}

.sp-side-card > .sp-btn {
  margin: 0 18px 16px;
  width: calc(100% - 36px);
}

.sp-notes {
  color: #596473;
  font-size: 12px;
  margin: 0;
  padding: 16px 18px;
  white-space: pre-wrap;
}

@media (max-width: 1400px) {
  .sn-consolidation-bar {
    grid-template-columns: auto 1fr 1fr;
  }

  .sn-consolidation-bar > .sn-field:last-of-type {
    grid-column: 2 / -1;
  }

  .sn-consolidation-bar > .sn-btn {
    justify-self: end;
  }
}

@media (max-width: 1199px) {
  .sn-workspace,
  .sp-detail-layout {
    grid-template-columns: 1fr;
  }

  .sn-supplier-panel,
  .sp-detail-sidebar {
    position: static;
  }

  .sn-supplier-panel {
    display: grid;
    grid-template-columns: minmax(180px, .7fr) 1fr 1fr;
  }

  .sn-panel-header {
    grid-column: 1 / -1;
  }

  .sn-supplier-panel > .sn-panel-empty {
    grid-column: 1 / -1;
  }

  .sn-panel-identity,
  .sn-account-summary {
    border-bottom: 0;
    border-right: 1px solid #eceef1;
  }

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

  .sn-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .sn-field-search,
  .sn-toolbar-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .sp-kpi-grid-four,
  .sn-needs-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-workflow {
    justify-content: flex-start;
  }

  .sn-consolidation-bar {
    grid-template-columns: 1fr 1fr;
  }

  .sn-consolidation-bar > .sn-field:last-of-type {
    grid-column: auto;
  }

  .sn-consolidation-bar > .sn-btn {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 700px) {
  .sp-module-header,
  .sn-section-header,
  .sp-section-heading,
  .sp-receipt-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sp-header-actions,
  .sn-header-actions,
  .sp-detail-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .sp-header-actions .sp-btn,
  .sp-header-actions form,
  .sp-header-actions form .sp-btn,
  .sn-header-actions .sn-btn {
    width: 100%;
  }

  .sp-workflow {
    border-radius: 8px;
    gap: 8px;
    padding: 12px;
  }

  .sp-workflow__label {
    max-width: 92px;
  }

  .sp-kpi-grid-three,
  .sp-kpi-grid-four,
  .sn-kpi-grid,
  .sn-needs-summary,
  .sn-toolbar,
  .sn-consolidation-bar,
  .sn-supplier-panel,
  .sp-detail-sidebar {
    grid-template-columns: 1fr;
  }

  .sn-section,
  .sp-detail-main .sp-surface {
    padding: 14px;
  }

  .sp-kpi-card,
  .sn-kpi-card {
    min-height: 72px;
  }

  .sp-searchbar {
    grid-template-columns: 1fr;
  }

  .sp-search-icon {
    top: 20px;
  }

  .sn-field-search,
  .sn-toolbar-actions,
  .sn-consolidation-bar > .sn-field:last-of-type,
  .sn-consolidation-bar > .sn-btn {
    grid-column: auto;
  }

  .sn-toolbar-actions,
  .sn-consolidation-bar > .sn-btn {
    justify-self: stretch;
    width: 100%;
  }

  .sn-toolbar-actions .sn-btn {
    flex: 1;
  }

  .sn-panel-header,
  .sn-panel-identity,
  .sn-account-summary {
    border-right: 0;
  }

  .sn-panel-identity,
  .sn-account-summary {
    border-bottom: 1px solid #eceef1;
  }

  .sp-receipt-toolbar > div:last-child {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Point of Sales */
.pos-home {
    min-height: calc(100vh - 190px);
    background: #f4f4f4;
    border: 1px solid #d6d6d6;
    padding: 24px;
}

.pos-home-header,
.pos-checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.pos-kicker {
    color: #6d625a;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pos-home h1,
.pos-checkout-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.pos-home-checkout {
    align-items: center;
    background: #eb5202;
    color: #fff;
    display: inline-flex;
    font-size: 1.2rem;
    font-weight: 700;
    gap: 10px;
    min-height: 58px;
    padding: 12px 22px;
    text-decoration: none;
}

.pos-home-checkout:hover {
    background: #c84400;
    color: #fff;
}

.pos-home-checkout-icon {
    align-items: center;
    background: rgba(0, 0, 0, .18);
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.pos-home-menu {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pos-home-tile {
    background: #f2f2f2;
    border: 1px solid #d5d0cc;
    color: #2f2925;
    min-height: 112px;
    padding: 18px;
    text-decoration: none;
}

.pos-home-tile-primary {
    background: #fff;
    border-top: 5px solid #eb5202;
}

.pos-home-tile-disabled {
    color: #777;
    cursor: not-allowed;
}

.pos-home-tile-title {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
}

.pos-home-tile-subtitle {
    color: #777;
    display: block;
    margin-top: 8px;
}

.pos_checkout_main,
.commerce-checkout-main {
    background: #fff;
    border: 1px solid #d6d6d6;
    min-height: calc(100vh - 185px);
    overflow: hidden;
    padding: 18px;
    position: relative;
}

.pos-message-strip,
.commerce-checkout-message-strip {
    background: #f2f2f2;
    border-left: 5px solid #eb5202;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    min-height: 54px;
    padding: 10px 14px;
}

#posInstruction,
.commerce-checkout-instruction {
    color: #514943;
    font-size: 1.15rem;
    font-weight: 700;
}

#posMessage,
.commerce-checkout-message {
    font-size: 1rem;
    font-weight: 700;
    text-align: right;
}

.pos-message-ok {
    color: #297a36;
}

.pos-message-error {
    color: #b42318;
}

.pos_checkout_area_products,
.commerce-checkout-products-area {
    bottom: 88px;
    left: 18px;
    overflow: auto;
    position: absolute;
    right: 390px;
    top: 156px;
}

.pos_checkout_area_totals,
.commerce-checkout-sidebar {
    bottom: 88px;
    overflow: auto;
    position: absolute;
    right: 18px;
    top: 156px;
    width: 350px;
}

.pos_checkout_area_buttons {
    bottom: 18px;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr 1.4fr;
    left: 18px;
    position: absolute;
    right: 18px;
}

.pos-products-container,
.commerce-checkout-product-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    padding-right: 8px;
}

.pos-empty-cart {
    align-items: center;
    background: #f2f2f2;
    color: #777;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    min-height: 180px;
    grid-column: 1 / -1;
    padding: 24px;
    text-align: center;
}

.pos-empty-cart-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.pos-empty-cart-description {
    display: block;
    font-size: .95rem;
    font-weight: 400;
    line-height: 1.45;
    max-width: 42rem;
}

.pos-panel,
.commerce-checkout-panel {
    background: #f2f2f2;
    border: 1px solid #ddd;
    margin-bottom: 12px;
    padding: 12px;
}

.pos-field-label,
.commerce-checkout-panel-title {
    color: #514943;
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.pos-select,
.pos-search-input {
    border-radius: 0;
}

.pos-search-row {
    display: flex;
    gap: 8px;
}

.pos-search-button {
    border-radius: 0;
    min-width: 84px;
}

.pos-search-results {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.pos-product-search-item {
    background: #fff;
    border: 1px solid #d7d7d7;
    display: grid;
    gap: 8px;
    grid-template-columns: 58px 1fr;
    min-height: 100px;
    padding: 8px;
    position: relative;
}

.pos-product-search-item-image-wrap {
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.pos-product-search-item-image {
    max-height: 54px;
    max-width: 54px;
}

.pos-product-search-item-information {
    min-width: 0;
    padding-right: 72px;
}

.pos-product-search-item-sku,
.pos_product_sku {
    color: #514943;
    font-size: .95rem;
    font-style: italic;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.pos-product-search-item-name,
.pos_product_name {
    color: #2f2925;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.pos-product-search-item-meta,
.pos_product_stock {
    color: #6d625a;
    font-size: .88rem;
    margin-top: 4px;
}

.pos-product-search-item-price {
    color: #c62828;
    font-size: 1.05rem;
    font-weight: 800;
    position: absolute;
    right: 8px;
    top: 8px;
}

.pos-search-add {
    border-radius: 0;
    bottom: 8px;
    position: absolute;
    right: 8px;
}

.pos-product-warning {
    color: #b42318;
    font-size: .85rem;
    font-weight: 700;
    margin-top: 4px;
}

.pos_product,
.commerce-cart-item {
    background: #f2f2f2;
    min-height: 164px;
    padding: 10px;
    position: relative;
}

.pos_product_image_container,
.commerce-cart-item-visual {
    align-items: center;
    background: #fff;
    display: flex;
    float: left;
    height: 132px;
    justify-content: center;
    margin-right: 12px;
    width: 132px;
}

.pos_product_image {
    max-height: 126px;
    max-width: 126px;
}

.pos-product-image-placeholder {
    color: #999;
    font-size: .82rem;
    font-weight: 700;
    text-align: center;
}

.pos_product_information,
.commerce-cart-item-content {
    min-width: 0;
    padding-right: 30px;
}

.pos_product_price,
.commerce-cart-item-price {
    color: #c62828;
    float: right;
    font-size: 1.45rem;
    font-weight: 800;
    margin-left: 8px;
}

.pos_product_remove,
.commerce-cart-item-remove {
    background: transparent;
    border: 0;
    color: #514943;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    position: absolute;
    right: 8px;
    top: 8px;
}

.pos_product_checkout_details,
.commerce-cart-item-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.pos_product_qty,
.commerce-cart-item-quantity {
    border: 1px solid #ccc;
    font-size: 1.25rem;
    height: 34px;
    text-align: center;
    width: 58px;
}

.pos_product_quantity_button,
.commerce-cart-item-quantity-button {
    background: #fff;
    border: 1px solid #ccc;
    font-size: 1.25rem;
    font-weight: 800;
    height: 34px;
    width: 34px;
}

.pos-line-total,
.commerce-cart-item-line-total {
    font-size: 1.1rem;
    font-weight: 800;
    margin-left: auto;
}

.pos-total-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.pos-total-grand {
    border-top: 2px solid #514943;
    color: #c62828;
    font-size: 1.3rem;
    font-weight: 800;
}

.pos_bottom_zone,
.commerce-checkout-action {
    background: #eb5202;
    border: 2px solid #eb5202;
    color: #fff;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 800;
    min-height: 54px;
    text-align: center;
}

.pos_bottom_zone:hover,
.commerce-checkout-action:hover {
    background: #c84400;
    border-color: #c84400;
}

.pos-bottom-secondary {
    background: #dddddd;
    border-color: #dddddd;
    color: #2f2925;
}

.pos-bottom-secondary:hover {
    background: #cfcfcf;
    border-color: #cfcfcf;
}

.pos-bottom-danger {
    background: #b42318;
    border-color: #b42318;
}

.pos-bottom-danger:hover {
    background: #8f1d14;
    border-color: #8f1d14;
}

@media (max-width: 1100px) {
    .pos-home-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pos_checkout_main,
    .commerce-checkout-main {
        overflow: visible;
    }

    .pos_checkout_area_products,
    .commerce-checkout-products-area,
    .pos_checkout_area_totals,
    .commerce-checkout-sidebar,
    .pos_checkout_area_buttons {
        bottom: auto;
        left: auto;
        position: static;
        right: auto;
        top: auto;
        width: auto;
    }

    .pos_checkout_area_totals,
    .commerce-checkout-sidebar {
        margin-top: 16px;
    }

    .pos_checkout_area_buttons {
        margin-top: 16px;
    }
}

@media (max-width: 720px) {
    .pos-home,
    .pos_checkout_main,
    .commerce-checkout-main {
        padding: 12px;
    }

    .pos-home-header,
    .pos-checkout-header,
    .pos-message-strip,
    .commerce-checkout-message-strip {
        align-items: stretch;
        flex-direction: column;
    }

    #posMessage,
    .commerce-checkout-message {
        text-align: left;
    }

    .pos-home-menu,
    .pos-products-container,
    .commerce-checkout-product-grid,
    .pos_checkout_area_buttons {
        grid-template-columns: 1fr;
    }

    .pos_product_image_container,
    .commerce-cart-item-visual {
        float: none;
        margin-bottom: 10px;
        margin-right: 0;
    }
}
/* POS shell */
.pos-shell {
    background: #fff;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: calc(100vh - 118px);
    overflow: hidden;
}

.pos-sidebar {
    background: #332f2c;
    color: #bdb6af;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 118px);
}

.pos-sidebar-brand,
.pos-sidebar-brand:link,
.pos-sidebar-brand:visited {
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.18);
    color: #eb5202;
    display: flex;
    height: 72px;
    justify-content: center;
    text-decoration: none;
}

.pos-sidebar-brand:hover,
.pos-sidebar-brand:focus,
.pos-sidebar-brand:active {
    color: #ff7a2d;
    text-decoration: none;
}

.pos-sidebar-brand:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

.pos-sidebar-brand-mark {
    border: 3px solid #eb5202;
    color: #eb5202;
    display: inline-flex;
    font-size: .8rem;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    letter-spacing: 0;
    line-height: 32px;
    width: 38px;
}

.pos-sidebar-brand-icon-mark {
    align-items: center;
}

.commerce-workspace-brand-icon {
    display: block;
    height: 1.4rem;
    width: 1.4rem;
}

.pos-sidebar-nav {
    display: flex;
    flex-direction: column;
}

.pos-sidebar-item,
.pos-sidebar-item:link,
.pos-sidebar-item:visited {
    align-items: center;
    border-left: 4px solid transparent;
    color: #bdb6af;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 70px;
    padding: 10px 4px;
    text-align: center;
    text-decoration: none;
}

.pos-sidebar-item > .pos-sidebar-label {
    color: inherit;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
    text-transform: uppercase;
}

.pos-sidebar-icon {
    align-items: center;
    color: #dfd8d1;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 900;
    height: 22px;
    justify-content: center;
    letter-spacing: 0;
    width: 42px;
}

.pos-sidebar-icon svg {
    display: block;
    fill: none;
    height: 22px;
    stroke: currentColor;
    width: 22px;
}

.pos-sidebar-item:hover,
.pos-sidebar-item:focus,
.pos-sidebar-item:focus-visible,
.pos-sidebar-item:active,
.pos-sidebar-item-active,
.pos-sidebar-item.is-active {
    background: #403a35;
    border-left-color: #eb5202;
    color: #fff;
    text-decoration: none;
}

.pos-sidebar-item:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

.pos-content {
    background: #fff;
    min-width: 0;
    overflow: hidden;
}

.pos-topbar,
.pos-toolbar {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 28px;
}

.pos-module-title {
    color: #3b332e;
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0;
    margin: 0;
}

.pos-client-context {
    align-items: center;
    color: #3b332e;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
}

.pos-context-pill {
    font-size: 1rem;
    white-space: nowrap;
}

.pos-context-time {
    font-size: 1.45rem;
    white-space: nowrap;
}

.pos-body {
    min-height: calc(100vh - 190px);
    overflow: auto;
}

.pos-content-loyalty .pos-body,
.pos-content-sales .pos-body,
.pos-content-accounts-receivable .pos-body {
    padding-inline: 28px;
}

.pos-module-panel {
    background: #fff;
    min-height: calc(100vh - 190px);
    padding: 24px 28px;
}

.pos-module-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.pos-button-orange,
.pos-button-gray,
.pos-button-red {
    border: 0;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 42px;
    min-width: 150px;
    padding: 10px 18px;
    text-decoration: none;
}

.pos-button-orange {
    background: #eb5202;
}

.pos-button-orange:hover {
    background: #c84400;
    color: #fff;
}

.pos-button-gray {
    background: #dddddd;
    color: #2f2925;
}

.pos-button-gray:hover {
    background: #cfcfcf;
    color: #2f2925;
}

.pos-button-red {
    background: #b42318;
}

.pos-button-red:hover {
    background: #8f1d14;
    color: #fff;
}

.pos-placeholder,
.pos-cart-empty {
    align-items: center;
    color: #514943;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    min-height: 420px;
    text-align: center;
}

.pos-placeholder h2,
.pos-cart-empty h2 {
    color: #3b332e;
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
}

.pos-cart-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.pos-shell .pos-home,
.pos-shell .pos-module-panel,
.pos-shell .pos_checkout_main,
.pos-shell .commerce-checkout-main {
    border: 0;
}

.pos-shell .pos_checkout_main,
.pos-shell .commerce-checkout-main {
    min-height: calc(100vh - 190px);
    padding: 18px;
    position: relative;
}

.pos-shell .pos_checkout_area_products,
.pos-shell .commerce-checkout-products-area {
    bottom: 88px;
    left: 18px;
    overflow: auto;
    right: 388px;
    top: 78px;
}

.pos-shell .pos_checkout_area_totals,
.pos-shell .commerce-checkout-sidebar {
    bottom: 88px;
    left: auto;
    overflow: auto;
    right: 18px;
    top: 78px;
    width: 352px;
}

.pos-bottom-bar,
.commerce-checkout-actions,
.pos_checkout_area_buttons {
    bottom: 18px;
    display: grid;
    gap: 34px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    left: 68px;
    position: absolute;
    right: 18px;
}

.pos-bottom-bar .pos_bottom_zone,
.commerce-checkout-actions .commerce-checkout-action {
    width: 100%;
}

.pos-total-panel,
.pos-panel,
.commerce-checkout-panel {
    border-radius: 0;
}

.pos-mpf-panel .mpf-shell {
    box-shadow: none;
    margin: 0;
}

.pos-mpf-panel .mpf-header {
    border-top: 0;
}

.pos-orderprep-panel {
    display: flex;
    flex-direction: column;
}

.pos-order-preparation-page {
    align-items: stretch;
    max-width: none;
    width: 100%;
}

.pos-order-preparation-header {
    border-bottom: 1px solid #d8d2cb;
    margin-bottom: 18px;
    padding-bottom: 14px;
}

.pos-order-preparation-header h1 {
    color: #2d2926;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 4px;
}

.pos-order-preparation-header p {
    color: #625b55;
    font-size: 14px;
    margin: 0;
}

.pos-order-preparation-page .op-page {
    margin: 0;
    max-width: none;
    width: 100%;
}

.pos-order-preparation-page .op-grid-wrap {
    max-width: none;
    width: 100%;
}

.pos-order-preparation-page .op-grid {
    width: 100%;
}

.pos-orderprep-frame {
    border: 1px solid #d6d6d6;
    flex: 1 1 auto;
    min-height: calc(100vh - 255px);
    width: 100%;
}

.pos-sales-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.pos-sales-head h2 {
    font-size: 1.45rem;
    margin: 0;
}

.pos-sales-table {
    background: #fff;
    border: 1px solid #e1ddd9;
}

.pos-sales-table thead th {
    background: #f2f2f2;
    color: #3b332e;
    font-size: .82rem;
    text-transform: uppercase;
}

@media (max-width: 1280px) {
    .app-user-identity {
        display: none;
    }
}

@media (max-width: 1180px) {
    .pos-shell {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .pos-sidebar-item > .pos-sidebar-label {
        font-size: .62rem;
        max-width: 100%;
        overflow-wrap: anywhere;
    }


    .pos-shell .pos_checkout_area_products,
    .pos-shell .commerce-checkout-products-area,
    .pos-shell .pos_checkout_area_totals,
    .pos-shell .commerce-checkout-sidebar,
    .pos-bottom-bar,
    .commerce-checkout-actions {
        position: static;
        width: auto;
    }

    .pos-bottom-bar,
    .commerce-checkout-actions {
        gap: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 16px;
    }
}

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

    .app-user-identity {
        display: list-item;
    }

    .navbar.navbar-expand-sm {
        flex-wrap: wrap;
    }

    .navbar-expand-sm .navbar-toggler {
        display: block;
    }

    .navbar-expand-sm .navbar-collapse {
        display: none !important;
        flex-basis: 100%;
        flex-direction: column;
    }

    .navbar-expand-sm .navbar-collapse.show {
        display: flex !important;
    }

    .navbar-expand-sm .navbar-nav {
        flex-direction: column;
        width: 100%;
    }

    .pos-sidebar {
        min-height: auto;
    }

    .pos-sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .pos-sidebar-brand {
        height: 54px;
    }

    .pos-sidebar-item {
        min-width: 94px;
    }

    .pos-topbar,
    .pos-toolbar,
    .pos-sales-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .pos-client-context {
        justify-content: flex-start;
    }

    .pos-bottom-bar,
    .commerce-checkout-actions {
        grid-template-columns: 1fr;
    }
}
/* Saved Carts */
.sc-page {
    --sc-border: #cfc8c2;
    --sc-dark: #4d453f;
    --sc-orange: #eb5202;
    --sc-orange-dark: #c84400;
    --sc-red: #b42318;
    --sc-muted: #6c625b;
    color: #2f2925;
}

.sc-header {
    align-items: flex-start;
    border-bottom: 3px solid var(--sc-orange);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
}

.sc-header h1,
.sc-header h2,
.sc-cart h2,
.sc-cart h3 {
    color: #322c27;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 4px;
}

.sc-header p,
.sc-cart p,
.sc-save-panel p {
    color: var(--sc-muted);
    margin: 0;
}

.sc-kicker,
.sc-source {
    color: var(--sc-orange);
    display: inline-block;
    font-size: .76rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.sc-message {
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 14px;
    padding: 11px 12px;
}

.sc-message-success {
    background: #e6f4e8;
    border-color: #8fc79b;
    color: #135f24;
}

.sc-message-error {
    background: #ffe2df;
    border-color: #d7837c;
    color: #8d1d19;
}

.sc-save-panel {
    align-items: end;
    background: #f5f3f1;
    border: 1px solid var(--sc-border);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.2fr);
    margin-bottom: 16px;
    padding: 14px;
}

.sc-save-panel h2,
.sc-save-panel h3 {
    color: #322c27;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 4px;
}

.sc-save-form,
.pos-save-cart-form {
    display: grid;
    gap: 8px;
}

.sc-save-form {
    grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
}

.pos-save-cart-panel .pos-button-orange,
.sc-save-form .pos-button-orange,
.sc-actions .pos-button-orange,
.sc-actions .pos-button-red,
.sc-header-actions .pos-button-gray,
.sc-header-actions .pos-button-orange {
    min-width: 128px;
    white-space: nowrap;
}

.sc-empty {
    background: #f4f4f4;
    border: 1px dashed var(--sc-border);
    color: var(--sc-muted);
    font-size: 1.1rem;
    font-weight: 800;
    padding: 34px 14px;
    text-align: center;
}

.sc-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
}

.sc-cart {
    background: #fff;
    border: 1px solid var(--sc-border);
}

.sc-cart-head {
    align-items: flex-start;
    background: #f5f3f1;
    border-bottom: 1px solid var(--sc-border);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px;
}

.sc-note {
    background: #fff;
    border-left: 4px solid var(--sc-orange);
    margin-top: 8px !important;
    padding: 6px 8px;
}

.sc-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.sc-actions form {
    margin: 0;
}

.sc-lines {
    overflow-x: auto;
}

.sc-lines table {
    border-collapse: collapse;
    min-width: 640px;
    width: 100%;
}

.sc-lines th {
    background: var(--sc-dark);
    border: 1px solid #3d3631;
    color: #fff;
    font-size: .82rem;
    padding: 8px;
    text-align: left;
    text-transform: uppercase;
}

.sc-lines td {
    border: 1px solid #e0dcd8;
    font-size: .92rem;
    padding: 8px;
    vertical-align: middle;
}

.sc-lines tbody tr:nth-child(even) td {
    background: #fbfaf9;
}

.sc-lines img,
.sc-no-image {
    align-items: center;
    background: #fff;
    border: 1px solid #e5e1dd;
    display: inline-flex;
    height: 48px;
    justify-content: center;
    object-fit: contain;
    text-align: center;
    width: 58px;
}

.sc-no-image {
    color: #8b837d;
    font-size: .68rem;
    font-weight: 800;
}

.sc-lines code {
    color: #322c27;
    display: block;
    font-size: .95rem;
    font-weight: 800;
}

.sc-lines td span {
    color: var(--sc-muted);
    display: block;
    font-size: .78rem;
    margin-top: 2px;
}

.sc-num {
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.pos-save-cart-form .form-control,
.sc-save-form .form-control {
    border-radius: 0;
}

.pos-save-cart-submit {
    width: 100%;
}

.garage-saved-carts {
    margin: 0 auto;
    max-width: 1600px;
}

@media (max-width: 980px) {
    .sc-header,
    .sc-cart-head,
    .sc-header-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .sc-save-panel,
    .sc-save-form,
    .sc-grid {
        grid-template-columns: 1fr;
    }

    .sc-actions {
        justify-content: flex-start;
    }
}
.rw-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: #2f2a27;
}

.rw-header,
.rw-hero,
.rw-layout {
    display: grid;
    gap: 1rem;
}

.rw-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.rw-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.rw-kicker {
    margin: 0 0 .25rem;
    color: #8b5a2b;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.rw-status {
    min-width: 96px;
    padding: .45rem .85rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 700;
}

.rw-status-on {
    background: #e8f6ec;
    color: #176b35;
}

.rw-status-off {
    background: #f4e4df;
    color: #9d2c1d;
}

.rw-layout {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
}

.rw-panel,
.rw-hero {
    border: 1px solid #ddd5ce;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(47, 42, 39, .06);
}

.rw-panel {
    padding: 1rem;
}

.rw-panel-title {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ece6df;
    padding-bottom: .75rem;
}

.rw-panel-title h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.rw-panel-title span,
.rw-muted {
    color: #776f68;
}

.rw-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rw-field-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.rw-field-grid label,
.rw-toggle,
.rw-checks label,
.rw-inline-check {
    display: flex;
    gap: .45rem;
    color: #4a423c;
    font-weight: 600;
}

.rw-field-grid label {
    flex-direction: column;
}

.rw-toggle,
.rw-checks,
.rw-inline-check {
    align-items: center;
}

.rw-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.rw-actions {
    display: flex;
    justify-content: flex-end;
}

.rw-preview {
    border-top: 4px solid #e85d04;
}

.rw-big-number,
.rw-balance {
    line-height: 1;
    color: #e85d04;
    font-weight: 800;
}

.rw-big-number {
    font-size: 4rem;
}

.rw-balance {
    font-size: clamp(3.5rem, 8vw, 7rem);
}

.rw-hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(90deg, #ffffff 0%, #fff7f1 100%);
}

.rw-tier-card {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    border-left: 5px solid #e85d04;
    background: #fff;
    padding: 1rem;
}

.rw-tier-card strong {
    font-size: 1.75rem;
}

.rw-progress {
    height: 18px;
    overflow: hidden;
    border: 1px solid #d8cec5;
    border-radius: 999px;
    background: #f2eee9;
}

.rw-progress > div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #e85d04, #f59f00);
}

.rw-tier-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem;
}

.rw-tier-pill {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    border: 1px solid #ddd5ce;
    border-radius: 6px;
    padding: .8rem;
    background: #fff;
}

.rw-tier-current {
    border-color: #e85d04;
    box-shadow: inset 0 0 0 2px rgba(232, 93, 4, .18);
}

.rw-table {
    margin-bottom: 0;
    vertical-align: middle;
}

.rw-table thead th {
    border-bottom: 2px solid #d8cec5;
    color: #4a423c;
    font-size: .84rem;
    text-transform: uppercase;
}

.rw-tier-form {
    display: grid;
    grid-template-columns: 1.1fr 1.5fr minmax(110px, .8fr) minmax(100px, .7fr) minmax(80px, .55fr) minmax(80px, .55fr) auto;
    gap: .5rem;
    align-items: center;
}

.rw-inline-form {
    margin-top: .5rem;
}

.rw-positive {
    color: #176b35 !important;
    font-weight: 700;
}

.rw-negative {
    color: #a82016 !important;
    font-weight: 700;
}

@media (max-width: 900px) {
    .rw-header,
    .rw-layout,
    .rw-hero,
    .rw-field-grid,
    .rw-tier-form {
        grid-template-columns: 1fr;
    }

    .rw-actions {
        justify-content: stretch;
    }

    .rw-actions .btn,
    .rw-tier-form .btn {
        width: 100%;
    }
}
.pos-sales-page {
    color: #3b332e;
}

.pos-sales-filter {
    background: #f5f3f1;
    border: 1px solid #d8d2cd;
    border-radius: 4px;
    margin-bottom: 16px;
    padding: 14px;
}

.pos-sales-filter-title {
    align-items: baseline;
    border-bottom: 1px solid #ded8d2;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
}

.pos-sales-filter-title strong {
    font-size: 1.05rem;
}

.pos-sales-filter-title span {
    color: #736b64;
    font-size: .86rem;
}

.pos-sales-filter-row {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(150px, 1fr) minmax(145px, .8fr) minmax(145px, .8fr) minmax(170px, .9fr);
    margin-bottom: 10px;
}

.pos-sales-filter-row-secondary {
    grid-template-columns: minmax(130px, .7fr) minmax(130px, .7fr) minmax(260px, 1.3fr) minmax(230px, 1fr) auto;
    margin-bottom: 0;
}

.pos-sales-filter label {
    color: #514943;
    display: flex;
    flex-direction: column;
    font-size: .82rem;
    font-weight: 800;
    gap: 4px;
    text-transform: uppercase;
}

.pos-sales-current-only {
    align-items: center;
    flex-direction: row !important;
    gap: 8px !important;
    justify-content: center;
    min-height: 42px;
    text-transform: none !important;
}

.pos-sales-current-only input {
    height: 18px;
    width: 18px;
}

.pos-sales-filter-actions {
    align-items: end;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.pos-sales-summary {
    display: grid;
    gap: 10px;
    grid-template-columns: 1.6fr .8fr .8fr;
    margin-bottom: 14px;
}

.pos-sales-summary > div {
    background: #514943;
    border-radius: 3px;
    color: #fff;
    min-height: 64px;
    padding: 10px 12px;
}

.pos-sales-summary span {
    display: block;
    font-size: .75rem;
    opacity: .82;
    text-transform: uppercase;
}

.pos-sales-summary strong {
    display: block;
    font-size: 1.25rem;
    line-height: 1.25;
}

.pos-sales-grid {
    border: 1px solid #d6d2ce;
    border-radius: 3px;
    background: #fff;
}

.pos-sales-table {
    border: 0;
    margin-bottom: 0;
    vertical-align: middle;
}

.pos-sales-table thead th {
    background: #514943;
    border-color: #3b3330;
    color: #fff;
    font-size: .75rem;
    letter-spacing: 0;
    padding: 10px 8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.pos-sales-table tbody td {
    border-color: #e2ddd8;
    font-size: .88rem;
    padding: 9px 8px;
}

.pos-sales-table tbody tr:hover {
    background: #fff8f3;
}

.pos-sales-table code {
    color: #2f2925;
    font-weight: 800;
}

.pos-sales-table small {
    color: #766f69;
    display: block;
    font-size: .72rem;
    margin-top: 2px;
}

.pos-sales-products {
    min-width: 0;
    white-space: normal;
    width: auto;
}

.pos-sales-product-line {
    line-height: 1.35;
    min-width: 0;
    white-space: normal;
}

.pos-sales-product-line + .pos-sales-product-line {
    margin-top: 5px;
}

.pos-sales-product-prefix {
    font-weight: 800;
    white-space: nowrap;
}

.pos-sales-product-description {
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: normal;
}

.pos-sales-total {
    color: #2f2925;
    font-weight: 900;
}

.pos-sales-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: .75rem;
    font-weight: 900;
    justify-content: center;
    min-width: 96px;
    padding: 5px 9px;
    text-align: center;
}

.pos-sales-status-submitted {
    background: #e8f0ff;
    color: #174ea6;
}

.pos-sales-status-draft {
    background: #f1f1f1;
    color: #514943;
}

.pos-sales-status-preparing {
    background: #fff2d8;
    color: #8a4c00;
}

.pos-sales-status-prepared {
    background: #e8f6ec;
    color: #176b35;
}

.pos-sales-status-cancelled {
    background: #f8dfdc;
    color: #9d2c1d;
}

.pos-sales-actions {
    display: flex;
    gap: 6px;
}

.pos-sales-action {
    align-items: center;
    background: #eb5202;
    border: 0;
    color: #fff;
    display: inline-flex;
    font-size: .8rem;
    font-weight: 800;
    justify-content: center;
    min-height: 30px;
    min-width: 68px;
    padding: 5px 8px;
    text-decoration: none;
}

.pos-sales-action:hover {
    background: #c84400;
    color: #fff;
}

.pos-sales-action-disabled,
.pos-sales-action-disabled:hover {
    background: #ded8d2;
    color: #6f6760;
    cursor: not-allowed;
}

.pos-sales-empty {
    align-items: center;
    background: #fff7c2;
    border: 1px solid #e9d98b;
    border-radius: 3px;
    color: #3b332e;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 12px;
}

@media (max-width: 1180px) {
    .pos-sales-filter-row,
    .pos-sales-filter-row-secondary,
    .pos-sales-summary {
        grid-template-columns: 1fr 1fr;
    }

    .pos-sales-filter-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .pos-sales-filter-actions .pos-button-orange,
    .pos-sales-filter-actions .pos-button-gray {
        flex: 1 1 auto;
    }
}

@media (max-width: 760px) {
    .pos-sales-filter-row,
    .pos-sales-filter-row-secondary,
    .pos-sales-summary {
        grid-template-columns: 1fr;
    }

    .pos-sales-filter-title,
    .pos-sales-empty {
        align-items: stretch;
        flex-direction: column;
    }

    .pos-sales-actions {
        flex-direction: column;
    }
}

.op-notification-controls {
  align-items: center;
  background: #fafafa;
  border: 1px solid var(--op-border);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: -4px 0 14px;
  padding: 10px 12px;
}

.op-notification-controls > div {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.op-notification-controls strong {
  color: #2f2a26;
}

.op-notification-controls span {
  color: #625b55;
}

.op-new-order-alert {
  align-items: center;
  background: #fff3cd;
  border: 1px solid #e6c76c;
  color: #5c4300;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 10px 12px;
  text-decoration: none;
}

.op-new-order-alert:hover {
  color: #3f2e00;
  text-decoration: none;
}

@media (max-width: 760px) {
  .op-notification-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .op-notification-controls .op-btn {
    width: 100%;
  }
}
/* Store navigation and notifications */
.store-nav-link {
    align-items: center;
    display: flex;
    gap: .4rem;
    white-space: nowrap;
}

.store-nav-icon {
    color: #667085;
    flex: 0 0 auto;
    height: 1.05rem;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 1.05rem;
}

.store-nav-link.active {
    box-shadow: inset 0 -2px #eb5202;
}

.store-nav-link.active .store-nav-icon {
    color: #eb5202;
}

@media (min-width: 576px) and (max-width: 1399.98px) {
    .navbar-nav .store-nav-link {
        font-size: .9rem;
        gap: .28rem;
        padding-left: .42rem;
        padding-right: .42rem;
    }

    .store-nav-icon {
        height: .92rem;
        width: .92rem;
    }
}

.store-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    margin-left: 0.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.store-notifications-list {
    display: grid;
    gap: 0.85rem;
}

.store-notification-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-left: 5px solid #6c757d;
    border-radius: 0.5rem;
    background: #fff;
}

.store-notification-card.is-unread {
    border-left-color: #fd7e14;
    box-shadow: 0 0.5rem 1rem rgba(33, 37, 41, 0.06);
}

.store-notification-card.is-read {
    color: #6c757d;
    background: #f8f9fa;
}

.store-notification-main h2 {
    margin: 0.15rem 0 0.35rem;
    font-size: 1.05rem;
}

.store-notification-main p {
    margin: 0;
}

.store-notification-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    color: #6c757d;
    font-size: 0.85rem;
}

.store-notification-dot {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #fff3cd;
    color: #7a4b00;
    font-weight: 700;
}

.store-notification-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .store-notification-card {
        grid-template-columns: 1fr;
    }

    .store-notification-actions {
        justify-content: flex-start;
    }
}
.store-live-notification-region {
    position: fixed;
    top: 4.75rem;
    right: 1rem;
    z-index: 1080;
    display: flex;
    width: min(390px, calc(100vw - 2rem));
    flex-direction: column;
    align-items: flex-end;
    gap: .65rem;
    pointer-events: none;
}

.store-live-sound-menu-item {
    text-align: left;
}

.store-live-sound-menu-item.is-muted {
    color: #6c757d;
}

.store-live-toast-container {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: .75rem;
}

.store-live-toast {
    pointer-events: auto;
    overflow: hidden;
    border: 1px solid #e7eaf0;
    border-left: 5px solid #e85d04;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(20, 25, 33, .18);
    color: #222831;
    padding: .9rem;
}

.store-live-toast-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .45rem;
}

.store-live-toast-close {
    border: 0;
    background: transparent;
    color: #6c757d;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0 .1rem;
}

.store-live-toast-garage {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .45rem;
}

.store-live-toast-details {
    display: grid;
    gap: .2rem;
    color: #4c5563;
    font-size: .85rem;
    margin-bottom: .75rem;
}

.store-live-toast-link {
    width: 100%;
}
/* POS Saved Carts visual refinement */
:is(.commerce-saved-carts-panel, .pos-saved-carts-panel) {
    padding-top: 18px;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-module-header {
    border-bottom: 1px solid #d8d2cb;
    margin-bottom: 14px;
    padding-bottom: 14px;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-module-header h1 {
    font-size: 28px;
    font-weight: 650;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-module-header p {
    color: var(--sc-muted);
    font-size: 14px;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-client-card {
    align-items: center;
    background: #f7f6f4;
    border: 1px solid var(--sc-border);
    border-left: 4px solid var(--sc-orange);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 13px 14px;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-client-card h2 {
    color: #322c27;
    font-size: 1.35rem;
    font-weight: 750;
    margin: 0;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-current-cart {
    background: #ffffff;
    border: 1px solid #d6d2ce;
    min-width: 275px;
    padding: .55rem .75rem;
    text-align: left;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-current-cart span:first-child {
    color: var(--sc-muted);
    display: block;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: .18rem;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-current-cart strong {
    color: #2f2925;
    display: block;
    font-size: .95rem;
    line-height: 1.25;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-current-cart-total.has-total {
    color: var(--sc-orange-dark);
    font-weight: 900;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-save-panel {
    align-items: start;
    background: #f4f4f4;
    border-left: 4px solid var(--sc-orange);
    grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr);
    padding: 16px;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-save-copy p {
    font-size: .92rem;
    line-height: 1.35;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-save-help {
    color: #8a4b00;
    font-weight: 700;
    margin-top: .45rem;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-save-form {
    align-items: end;
    grid-template-columns: minmax(170px, 1fr) minmax(220px, 1.2fr) auto;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-save-form label {
    display: grid;
    gap: .25rem;
    margin: 0;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-save-form label span {
    color: #554c45;
    font-size: .78rem;
    font-weight: 800;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-save-button {
    min-height: 38px;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-empty {
    display: grid;
    gap: .35rem;
    justify-items: center;
    line-height: 1.35;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-empty span,
:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-empty p {
    color: var(--sc-muted);
    font-size: .95rem;
    font-weight: 600;
    margin: 0;
    max-width: 780px;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-cart {
    border-color: #d6d2ce;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-cart-summary {
    align-items: start;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(190px, 1.2fr) minmax(130px, .85fr) minmax(90px, .55fr) minmax(70px, .45fr) minmax(110px, .65fr) minmax(180px, 1fr) auto;
    padding: 12px;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-cart-name h3 {
    font-size: 1.05rem;
    line-height: 1.2;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-cell-label {
    color: var(--sc-muted);
    display: block;
    font-size: .72rem;
    font-weight: 800;
    margin-bottom: .16rem;
    text-transform: uppercase;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-cart-total {
    color: var(--sc-orange-dark);
    font-weight: 900;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-cart-note {
    min-width: 0;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-cart-note span:last-child {
    color: #514943;
    display: block;
    font-size: .88rem;
    overflow-wrap: anywhere;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-actions {
    align-items: start;
    justify-content: flex-end;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-action-import,
:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-action-details,
:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-action-delete {
    min-width: 96px;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-details {
    position: relative;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-details summary {
    cursor: pointer;
    list-style: none;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-details summary::-webkit-details-marker {
    display: none;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-details[open] {
    grid-column: 1 / -1;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-details[open] .sc-lines {
    margin-top: 10px;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-lines {
    border: 1px solid #d6d2ce;
    grid-column: 1 / -1;
}

@media (max-width: 1180px) {
    :is(.commerce-saved-carts, .pos-saved-carts-page) .sc-cart-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :is(.commerce-saved-carts, .pos-saved-carts-page) .sc-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    :is(.commerce-saved-carts, .pos-saved-carts-page) .sc-client-card,
    :is(.commerce-saved-carts, .pos-saved-carts-page) .sc-save-panel,
    :is(.commerce-saved-carts, .pos-saved-carts-page) .sc-save-form,
    :is(.commerce-saved-carts, .pos-saved-carts-page) .sc-cart-summary {
        grid-template-columns: 1fr;
    }

    :is(.commerce-saved-carts, .pos-saved-carts-page) .sc-client-card {
        align-items: stretch;
        display: grid;
    }

    :is(.commerce-saved-carts, .pos-saved-carts-page) .sc-current-cart {
        min-width: 0;
    }
}

/* POS Saved Carts MyPartFinder-style header */
:is(.commerce-saved-carts, .pos-saved-carts-page) {
    --sc-accent: #eb5202;
    --sc-accent-strong: #c84400;
    --sc-border: #d6d2ce;
    --sc-muted: #6d625a;
    --sc-text: #2f2925;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-hero {
    align-items: center;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: .55rem;
    padding-bottom: .7rem;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .mpf-title-wrap {
    align-items: center;
    display: flex;
    gap: .85rem;
    min-width: 0;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .mpf-store-logo {
    display: block;
    flex: 0 0 auto;
    height: 54px;
    max-width: 160px;
    object-fit: contain;
    width: auto;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .mpf-kicker {
    color: var(--sc-muted);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0 0 .2rem;
    text-transform: uppercase;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .mpf-header h1 {
    color: #3b332e;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.1;
    margin: 0;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-hero-status {
    background: #f4f4f4;
    border: 1px solid var(--sc-border);
    border-left: 4px solid var(--sc-accent);
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
    color: var(--sc-text);
    display: block;
    font-size: .92rem;
    min-width: 275px;
    padding: .55rem .75rem;
    text-align: left;
}


:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-hero-status-line {
    color: var(--sc-text);
    display: block;
    font-weight: 800;
    line-height: 1.25;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-hero-description {
    color: var(--sc-muted);
    font-size: .95rem;
    margin: 0 0 1rem;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-save-panel {
    margin-top: 1rem;
}

@media (max-width: 800px) {
    :is(.commerce-saved-carts, .pos-saved-carts-page) .sc-hero {
        align-items: stretch;
        display: grid;
        gap: .75rem;
    }

    :is(.commerce-saved-carts, .pos-saved-carts-page) .mpf-store-logo {
        height: 44px;
        max-width: 130px;
    }

    :is(.commerce-saved-carts, .pos-saved-carts-page) .sc-hero-status {
        min-width: 0;
        width: 100%;
    }
}
/* Saved Carts operational cards */
.pos-saved-carts-panel {
    background: #f5f7f9;
    min-width: 0;
    padding-top: 14px;
}

.pos-saved-carts-panel .pos-saved-carts-hero .pos-customer-button {
    border-left-width: 2px;
}

.pos-saved-carts-panel .commerce-workspace-description {
    color: #667085;
    margin: 0 4px 22px;
}

.pos-saved-carts-page {
    min-width: 0;
}

.pos-saved-carts-page .sc-message,
.pos-saved-carts-page .sc-empty {
    border-radius: 12px;
}

.pos-saved-carts-page .sc-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr);
}

.pos-saved-carts-page .sc-cart {
    background: #ffffff;
    border: 1px solid #e0e5eb;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(24, 34, 49, .05);
    min-width: 0;
    overflow: visible;
}

.pos-saved-carts-page .sc-cart-summary {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: 42px minmax(260px, 1.25fr) minmax(240px, .85fr) auto;
    min-height: 78px;
    padding: 16px 18px;
}

.pos-saved-carts-page .sc-cart-chevron {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e1e6ec;
    border-radius: 50%;
    color: #eb5202;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.35rem;
    height: 34px;
    justify-content: center;
    padding: 0;
    transition: transform .16s ease, border-color .16s ease;
    width: 34px;
}

.pos-saved-carts-page .sc-cart-chevron[aria-expanded="true"] {
    transform: rotate(180deg);
}

.pos-saved-carts-page .sc-cart-chevron:hover,
.pos-saved-carts-page .sc-cart-chevron:focus-visible {
    border-color: #eb5202;
    outline: none;
}

.pos-saved-carts-page .sc-cart-identity {
    min-width: 0;
}

.pos-saved-carts-page .sc-cart-identity h2 {
    color: #172033;
    font-size: 1.14rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 4px;
    overflow-wrap: anywhere;
}

.pos-saved-carts-page .sc-cart-meta {
    align-items: center;
    color: #667085;
    display: flex;
    flex-wrap: wrap;
    font-size: .88rem;
    gap: 7px;
}

.pos-saved-carts-page .sc-cart-meta strong {
    color: #667085;
    font-weight: 700;
}

.pos-saved-carts-page .sc-cart-note {
    color: #596273;
    font-size: .88rem;
    line-height: 1.35;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.pos-saved-carts-page .sc-cart-note span {
    color: #475467;
    font-weight: 700;
}

.pos-saved-carts-page .sc-actions {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: flex-end;
}

.pos-saved-carts-page .sc-actions form {
    margin: 0;
}

.pos-saved-carts-page .sc-action-import,
.pos-saved-carts-page .sc-action-details,
.pos-saved-carts-page .sc-more-menu summary {
    border-radius: 8px;
    min-height: 38px;
    white-space: nowrap;
}

.pos-saved-carts-page .sc-action-import {
    min-width: 104px;
}

.pos-saved-carts-page .sc-action-details {
    min-width: 132px;
}

.pos-saved-carts-page .sc-toggle-hide,
.pos-saved-carts-page [aria-expanded="true"] .sc-toggle-show {
    display: none;
}

.pos-saved-carts-page [aria-expanded="true"] .sc-toggle-hide {
    display: inline;
}

.pos-saved-carts-page .sc-more-menu {
    position: relative;
}

.pos-saved-carts-page .sc-more-menu summary {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d8dee7;
    color: #172033;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    list-style: none;
    min-width: 42px;
    padding: 0 10px;
}

.pos-saved-carts-page .sc-more-menu summary::-webkit-details-marker {
    display: none;
}

.pos-saved-carts-page .sc-more-menu-popover {
    background: #ffffff;
    border: 1px solid #d8dee7;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(24, 34, 49, .14);
    min-width: 150px;
    padding: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 8;
}

.pos-saved-carts-page .sc-action-delete {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #b42318;
    cursor: pointer;
    font-weight: 700;
    padding: 9px 10px;
    text-align: left;
    width: 100%;
}

.pos-saved-carts-page .sc-action-delete:hover,
.pos-saved-carts-page .sc-action-delete:focus-visible {
    background: #fff1f0;
    outline: none;
}

.pos-saved-carts-page .sc-cart-content {
    border-top: 1px solid #e6eaf0;
}

.pos-saved-carts-page .sc-cart-content[hidden] {
    display: none;
}

.pos-saved-carts-page .sc-lines {
    overflow-x: auto;
    padding: 12px 18px 18px;
}

.pos-saved-carts-page .sc-lines table {
    border: 1px solid #e0e5eb;
    border-collapse: separate;
    border-radius: 8px;
    border-spacing: 0;
    min-width: 680px;
    overflow: hidden;
    table-layout: fixed;
    width: 100%;
}

.pos-saved-carts-page .sc-lines th {
    background: #f8fafc;
    border: 0;
    border-bottom: 1px solid #e0e5eb;
    color: #667085;
    font-size: .74rem;
    font-weight: 800;
    padding: 12px 14px;
    text-align: left;
    text-transform: uppercase;
}

.pos-saved-carts-page .sc-lines th:first-child {
    width: 18%;
}

.pos-saved-carts-page .sc-lines th:nth-child(2) {
    width: 58%;
}

.pos-saved-carts-page .sc-lines th:nth-child(3),
.pos-saved-carts-page .sc-lines th:nth-child(4) {
    text-align: right;
    width: 12%;
}

.pos-saved-carts-page .sc-lines td {
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid #e6eaf0;
    color: #344054;
    font-size: .88rem;
    padding: 10px 14px;
    vertical-align: middle;
}

.pos-saved-carts-page .sc-lines tbody tr:last-child td {
    border-bottom: 0;
}

.pos-saved-carts-page .sc-part-cell {
    align-items: center;
    display: flex;
    gap: 12px;
}

.pos-saved-carts-page .sc-lines img {
    background: #ffffff;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    flex: 0 0 auto;
    height: 48px;
    object-fit: contain;
    width: 56px;
}

.pos-saved-carts-page .sc-lines td span,
.pos-saved-carts-page .sc-lines td small {
    color: #344054;
    display: block;
    font-size: .88rem;
    margin: 0;
}

.pos-saved-carts-page .sc-lines td small {
    color: #667085;
    font-size: .78rem;
    margin-top: 3px;
}

.pos-saved-carts-page .sc-quantity,
.pos-saved-carts-page .sc-num {
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 1250px) {
    .pos-saved-carts-page .sc-cart-summary {
        gap: 12px;
        grid-template-columns: 38px minmax(220px, 1fr) minmax(180px, .65fr) auto;
        padding-inline: 14px;
    }

    .pos-saved-carts-page .sc-actions {
        gap: 7px;
    }

    .pos-saved-carts-page .sc-action-import {
        min-width: 92px;
    }

    .pos-saved-carts-page .sc-action-details {
        min-width: 118px;
    }
}

@media (max-width: 1100px) {
    .pos-saved-carts-page .sc-cart-summary {
        align-items: start;
        grid-template-columns: 38px minmax(0, 1fr) auto;
    }

    .pos-saved-carts-page .sc-cart-note {
        grid-column: 2;
    }

    .pos-saved-carts-page .sc-actions {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}

@media (max-width: 800px) {
    .pos-saved-carts-page .sc-cart-summary {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .pos-saved-carts-page .sc-actions {
        grid-column: 1 / -1;
        grid-row: auto;
        justify-content: flex-start;
        padding-left: 50px;
    }

    .pos-saved-carts-page .sc-cart-note {
        grid-column: 2;
    }
}

/* Shared POS customer selector */
.commerce-workspace-customer,
.pos-customer-button {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #d6d2ce;
    border-left: 4px solid #eb5202;
    border-radius: 3px;
    color: #2f2925;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: .12rem;
    min-width: 220px;
    padding: .5rem .7rem;
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.commerce-workspace-customer {
    cursor: default;
    transition: none;
}


.pos-customer-button:hover,
.pos-customer-button:focus-visible {
    border-color: #eb5202;
    box-shadow: 0 0 0 3px rgba(235, 82, 2, .12);
    outline: 0;
}

.pos-customer-button:active {
    transform: translateY(1px);
}

.commerce-workspace-customer-label,
.pos-customer-button-label {
    color: #6d625a;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: uppercase;
}

.commerce-workspace-customer strong,
.pos-customer-button strong {
    color: #2f2925;
    font-size: .95rem;
    font-weight: 900;
    line-height: 1.18;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.commerce-workspace-customer small {
    color: #6d625a;
    font-size: .78rem;
    line-height: 1.2;
    margin-top: .18rem;
}

.pos-module-current-cart .pos-customer-button,
:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-hero-status .pos-customer-button {
    margin-bottom: .35rem;
    width: 100%;
}

.pos-customer-modal-backdrop {
    background: rgba(35, 31, 28, .42);
    inset: 0;
    position: fixed;
    z-index: 1100;
}

.pos-customer-modal {
    background: #ffffff;
    border: 1px solid #d6d2ce;
    box-shadow: 0 24px 70px rgba(35, 31, 28, .28);
    color: #2f2925;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    left: 50%;
    max-height: min(760px, calc(100vh - 48px));
    max-width: min(860px, calc(100vw - 32px));
    overflow: auto;
    padding: 1.15rem;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 760px;
    z-index: 1110;
}

.pos-customer-modal[hidden],
.pos-customer-modal-backdrop[hidden] {
    display: none;
}

body.pos-customer-modal-open {
    overflow: hidden;
}

.pos-customer-modal-head,
.pos-customer-modal-foot {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.pos-customer-modal-head p {
    color: #6d625a;
    font-size: .78rem;
    font-weight: 800;
    margin: 0 0 .15rem;
    text-transform: uppercase;
}

.pos-customer-modal-head h2 {
    font-size: 1.35rem;
    line-height: 1.15;
    margin: 0;
}

.pos-customer-modal-close {
    background: transparent;
    border: 0;
    color: #6d625a;
    cursor: pointer;
    font-size: 1.45rem;
    line-height: 1;
    padding: .25rem;
}

.pos-customer-modal-close:hover,
.pos-customer-modal-close:focus-visible {
    color: #2f2925;
    outline: 0;
}

.pos-customer-modal-actions {
    display: flex;
}

.pos-customer-counter,
.pos-customer-done,
.pos-customer-search-row button {
    background: #eb5202;
    border: 1px solid #d94900;
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    padding: .58rem .85rem;
}

.pos-customer-counter {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    min-width: 230px;
    text-align: left;
}

.pos-customer-counter span {
    font-size: .72rem;
    opacity: .86;
    text-transform: uppercase;
}

.pos-customer-search label {
    color: #3b332e;
    display: block;
    font-weight: 800;
    margin-bottom: .35rem;
}

.pos-customer-search-row {
    display: flex;
    gap: .45rem;
}

.pos-customer-search-row input {
    border: 1px solid #cfc8c1;
    flex: 1 1 auto;
    min-width: 0;
    padding: .58rem .7rem;
}

.pos-customer-message {
    color: #6d625a;
    min-height: 1.2rem;
}

.pos-customer-message.is-error {
    color: #b00020;
    font-weight: 800;
}

.pos-customer-results {
    border: 1px solid #e1ddd8;
    display: grid;
    max-height: 360px;
    overflow: auto;
}

.pos-customer-result {
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid #e8e4df;
    color: #2f2925;
    cursor: pointer;
    display: grid;
    gap: .18rem;
    padding: .72rem .85rem;
    text-align: left;
}

.pos-customer-result:last-child {
    border-bottom: 0;
}

.pos-customer-result:hover,
.pos-customer-result:focus-visible {
    background: #fff7f1;
    outline: 0;
}

.pos-customer-result span,
.pos-customer-empty {
    color: #6d625a;
    font-size: .9rem;
}

.pos-customer-empty {
    padding: .85rem;
}

@media (max-width: 800px) {
    .pos-customer-search-row {
        display: grid;
    }

    .pos-customer-button {
        min-width: 0;
        width: 100%;
    }
}
/* Shared POS module hero */
.commerce-workspace-mode-garage {
    --commerce-workspace-gutter: 28px;
}

.commerce-workspace-mode-garage .pos-body {
    padding-inline: var(--commerce-workspace-gutter);
}

.commerce-workspace-mode-garage .pos-body > :is(.pos-module-panel, .container-fluid) {
    padding-inline: 0;
}

.commerce-workspace-header,
.pos-module-hero {
    align-items: center;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: .55rem;
    padding-bottom: .7rem;
}

.commerce-workspace-mode-garage > .commerce-workspace-header {
    margin: 24px var(--commerce-workspace-gutter) .55rem;
}


.commerce-workspace-brand,
.pos-module-hero-brand {
    align-items: center;
    display: flex;
    gap: .85rem;
    min-width: 0;
}

.commerce-workspace-logo,
.pos-module-logo {
    display: block;
    flex: 0 0 auto;
    height: 54px;
    max-width: 160px;
    object-fit: contain;
    width: auto;
}

.commerce-workspace-eyebrow,
.pos-module-eyebrow {
    color: #6d625a;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0 0 .2rem;
    text-transform: uppercase;
}

.commerce-workspace-header .commerce-workspace-title,
.pos-module-hero .pos-module-title {
    color: #3b332e;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.1;
    margin: 0;
}

.commerce-workspace-actions,
.pos-module-hero-actions {
    align-items: stretch;
    display: flex;
    flex: 1 1 420px;
    gap: .7rem;
    justify-content: flex-end;
    min-width: min(520px, 48vw);
}

.commerce-workspace-actions .commerce-workspace-customer,
.commerce-workspace-actions .pos-customer-button,
.pos-module-hero-actions .pos-customer-button {
    flex: 1 1 220px;
    margin-bottom: 0;
    min-width: 210px;
    width: auto;
}

.commerce-workspace-cart-summary,
.pos-module-current-cart,
.pos-module-current-order {
    background: #f4f4f4;
    border: 1px solid #d6d2ce;
    border-left: 4px solid #eb5202;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
    color: #2f2925;
    display: block;
    flex: 1 1 230px;
    font-size: .92rem;
    min-width: 230px;
    padding: .55rem .75rem;
    text-align: left;
}

.pos-module-current-order[type="button"] {
    cursor: pointer;
}

.pos-module-current-order:not(button) {
    cursor: default;
}

.pos-module-current-customer {
    color: #6d625a;
    display: block;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: .18rem;
}

.commerce-workspace-cart-summary [data-order-status],
.pos-module-current-order [data-order-status],
.commerce-workspace-cart-copy,
.pos-module-current-summary {
    color: #2f2925;
    display: block;
    font-weight: 800;
    line-height: 1.25;
}

.commerce-workspace-cart-total.has-total,
.pos-module-current-total.has-total {
    color: #c84400;
    font-weight: 900;
    white-space: nowrap;
}

.commerce-workspace-description,
.pos-module-description {
    color: #6d625a;
    font-size: .95rem;
    margin: 0 0 1rem;
}

/* Shared operational header card used by Checkout, MyPartFinder, Saved Carts, Sales and Loyalty. */
.commerce-workspace-header-pos,
:is(.pos-mpf-panel, .pos-saved-carts-panel) :is(.pos-mpf-hero, .pos-saved-carts-hero) {
    background: #ffffff;
    border: 1px solid #edf0f2;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(24, 34, 49, .05);
    margin: 0 0 12px;
    padding: 12px 16px;
}

.commerce-workspace-header-pos .commerce-workspace-logo,
:is(.pos-mpf-panel, .pos-saved-carts-panel) :is(.pos-mpf-hero, .pos-saved-carts-hero) .commerce-workspace-logo {
    height: 42px;
    max-width: 132px;
}

.commerce-workspace-header-pos .commerce-workspace-eyebrow,
:is(.pos-mpf-panel, .pos-saved-carts-panel) :is(.pos-mpf-hero, .pos-saved-carts-hero) .commerce-workspace-eyebrow {
    color: #4f5c70;
    font-size: .74rem;
}

.commerce-workspace-header-pos .commerce-workspace-title,
:is(.pos-mpf-panel, .pos-saved-carts-panel) :is(.pos-mpf-hero, .pos-saved-carts-hero) .commerce-workspace-title {
    color: #121b28;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.commerce-workspace-header-pos .commerce-workspace-actions,
:is(.pos-mpf-panel, .pos-saved-carts-panel) :is(.pos-mpf-hero, .pos-saved-carts-hero) .commerce-workspace-actions {
    flex-basis: 500px;
}

.commerce-workspace-header-pos :is(.pos-customer-button, .commerce-workspace-cart-summary),
:is(.pos-mpf-panel, .pos-saved-carts-panel) :is(.pos-mpf-hero, .pos-saved-carts-hero) :is(.pos-customer-button, .commerce-workspace-cart-summary) {
    border: 1px solid #edf0f2;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(24, 34, 49, .05);
    min-height: 58px;
}

.commerce-workspace-header-pos .pos-customer-button,
:is(.pos-mpf-panel, .pos-saved-carts-panel) :is(.pos-mpf-hero, .pos-saved-carts-hero) .pos-customer-button {
    border-left: 4px solid #eb5202;
}

.pos-saved-carts-panel .pos-saved-carts-hero .pos-customer-button {
    border-left-width: 2px;
}

.commerce-workspace-header-pos .commerce-workspace-cart-summary,
:is(.pos-mpf-panel, .pos-saved-carts-panel) :is(.pos-mpf-hero, .pos-saved-carts-hero) .commerce-workspace-cart-summary {
    align-items: center;
    background: #ffffff;
    border-left: 1px solid #edf0f2;
    display: flex;
}

.commerce-workspace-cart-icon {
    align-items: center;
    color: #2f2925;
    display: inline-flex;
    flex: 0 0 auto;
}

.commerce-workspace-cart-icon .app-shell__nav-icon {
    height: 22px;
    width: 22px;
}

.commerce-workspace-header-pos .pos-module-current-summary,
:is(.pos-mpf-panel, .pos-saved-carts-panel) :is(.pos-mpf-hero, .pos-saved-carts-hero) .pos-module-current-summary {
    font-size: .94rem;
}

.commerce-workspace-header-pos .pos-module-current-total.has-total,
:is(.pos-mpf-panel, .pos-saved-carts-panel) :is(.pos-mpf-hero, .pos-saved-carts-hero) .pos-module-current-total.has-total {
    color: #eb5202;
}

@media (max-width: 800px) {
    .commerce-workspace-header,
    .pos-module-hero {
        align-items: stretch;
        display: grid;
        gap: .75rem;
    }

    .commerce-workspace-logo,
    .pos-module-logo {
        height: 44px;
        max-width: 130px;
    }

    .commerce-workspace-actions,
    .pos-module-hero-actions {
        display: grid;
        min-width: 0;
        width: 100%;
    }

    .commerce-workspace-actions .commerce-workspace-customer,
    .pos-module-hero-actions .pos-customer-button,
    .commerce-workspace-cart-summary,
    .pos-module-current-cart,
    .pos-module-current-order {
        min-width: 0;
        width: 100%;
    }

    .commerce-workspace-mode-garage {
        --commerce-workspace-gutter: 18px;
    }
}
.pos-checkout-page,
.commerce-checkout-page {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 110px);
    padding: 18px;
}

.pos-checkout-page .pos_checkout_main,
.commerce-checkout-page .commerce-checkout-main {
    border: 0;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
}

.pos-checkout-page .pos-message-strip,
.commerce-checkout-page .commerce-checkout-message-strip {
    margin-bottom: 12px;
    min-height: 46px;
    padding: 8px 12px;
}

.pos-checkout-page #posInstruction,
.commerce-checkout-page .commerce-checkout-instruction {
    font-size: 1rem;
}

.pos-checkout-page #posMessage,
.commerce-checkout-page .commerce-checkout-message {
    font-size: .95rem;
}

.pos-checkout-page .pos_checkout_area_products,
.commerce-checkout-page .commerce-checkout-products-area,
.pos-checkout-page .pos_checkout_area_totals,
.commerce-checkout-page .commerce-checkout-sidebar {
    top: 70px;
}

.pos-finalization-backdrop,
.commerce-finalization-backdrop {
    background: rgba(24, 19, 16, .58);
    inset: 0;
    position: fixed;
    z-index: 1070;
}

.pos-finalization-modal,
.commerce-finalization-modal,
.commerce-finalization-page-shell {
    background: #fff;
    border: 1px solid #d8d0c8;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(24, 19, 16, .3);
    display: flex;
    flex-direction: column;
    max-height: min(92vh, 820px);
    overflow: hidden;
    width: min(760px, calc(100vw - 2rem));
}

.pos-finalization-modal,
.commerce-finalization-modal {
    left: 50%;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1080;
}

.commerce-finalization-page {
    box-sizing: border-box;
    display: grid;
    justify-items: center;
    padding: clamp(1rem, 2vw, 2rem);
    width: 100%;
}

.commerce-finalization-page-shell {
    max-height: none;
    position: relative;
    width: min(760px, 100%);
}

.pos-finalization-modal[hidden],
.commerce-finalization-modal[hidden],
.commerce-finalization-page-shell[hidden],
.pos-finalization-backdrop[hidden],
.commerce-finalization-backdrop[hidden] {
    display: none;
}

body.pos-finalization-open,
body.commerce-finalization-open {
    overflow: hidden;
}

.pos-finalization-head,
.commerce-finalization-head,
.pos-finalization-foot,
.commerce-finalization-foot {
    align-items: center;
    background: #fff;
    display: flex;
    flex: 0 0 auto;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.pos-finalization-head,
.commerce-finalization-head {
    border-bottom: 1px solid #e5dfd9;
}

.pos-finalization-head h2,
.commerce-finalization-head h2 {
    font-size: 1.35rem;
    margin: 0;
}

.pos-finalization-kicker,
.commerce-finalization-kicker {
    color: #a64b16;
    display: block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pos-finalization-close,
.commerce-finalization-close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #3b332e;
    display: inline-flex;
    font-size: 1.8rem;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.pos-finalization-close:hover,
.pos-finalization-close:focus-visible,
.commerce-finalization-close:hover,
.commerce-finalization-close:focus-visible {
    background: #f2ece7;
}

.pos-finalization-body,
.commerce-finalization-body {
    display: grid;
    gap: 1rem;
    overflow-y: auto;
    padding: 1rem 1.25rem;
}

.pos-finalization-message,
.commerce-finalization-message {
    color: #555;
    min-height: 1.25rem;
}

.pos-finalization-message.is-error,
.commerce-finalization-message.is-error {
    color: #a51d22;
    font-weight: 700;
}

.pos-finalization-section,
.commerce-finalization-section {
    border: 1px solid #e5dfd9;
    border-radius: 10px;
    padding: .9rem;
}

.pos-finalization-section h3,
.commerce-finalization-section h3 {
    font-size: 1rem;
    margin: 0 0 .75rem;
}

.pos-finalization-summary,
.commerce-finalization-summary {
    display: grid;
    gap: .45rem .9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.pos-finalization-summary div,
.commerce-finalization-summary div {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.pos-finalization-summary dt,
.commerce-finalization-summary dt {
    color: #6d625a;
    font-weight: 500;
}

.pos-finalization-summary dd,
.commerce-finalization-summary dd {
    font-weight: 700;
    margin: 0;
    text-align: right;
}

.pos-finalization-summary .pos-finalization-total,
.pos-finalization-summary .commerce-finalization-total,
.commerce-finalization-summary .pos-finalization-total,
.commerce-finalization-summary .commerce-finalization-total {
    border-top: 1px solid #ded8d2;
    font-size: 1.08rem;
    grid-column: 1 / -1;
    margin-top: .25rem;
    padding-top: .65rem;
}

.pos-finalization-fields,
.commerce-finalization-fields {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pos-finalization-section label,
.commerce-finalization-section label {
    display: block;
    font-weight: 700;
    margin-bottom: .3rem;
}

.pos-finalization-hint,
.commerce-finalization-hint {
    color: #6d625a;
    font-size: .85rem;
    margin: -.35rem 0 .7rem;
}

.pos-finalization-hint.is-error,
.commerce-finalization-hint.is-error {
    color: #a51d22;
    font-weight: 700;
}

.pos-finalization-conditional,
.commerce-finalization-conditional {
    margin-top: .75rem;
}

.pos-finalization-change,
.commerce-finalization-change {
    display: flex;
    justify-content: space-between;
    margin-top: .4rem;
}

.pos-finalization-foot,
.commerce-finalization-foot {
    border-top: 1px solid #e5dfd9;
    gap: .75rem;
    justify-content: flex-end;
}

@media (max-width: 600px) {
    .pos-finalization-modal,
    .commerce-finalization-modal {
        border-radius: 10px 10px 0 0;
        bottom: 0;
        left: .5rem;
        max-height: calc(100vh - .5rem);
        right: .5rem;
        top: auto;
        transform: none;
        width: auto;
    }

    .commerce-finalization-page {
        padding: .5rem;
    }

    .commerce-finalization-page-shell {
        border-radius: 10px;
        width: 100%;
    }

    .pos-finalization-fields,
    .commerce-finalization-fields,
    .pos-finalization-summary,
    .commerce-finalization-summary {
        grid-template-columns: 1fr;
    }

    .pos-finalization-summary .pos-finalization-total,
    .pos-finalization-summary .commerce-finalization-total,
    .commerce-finalization-summary .pos-finalization-total,
    .commerce-finalization-summary .commerce-finalization-total {
        grid-column: auto;
    }

    .pos-finalization-foot,
    .commerce-finalization-foot {
        align-items: stretch;
        flex-direction: column;
    }

    .pos-finalization-foot .btn,
    .commerce-finalization-foot .btn {
        width: 100%;
    }
}

.pos-sales-page .pos-module-description {
    margin-bottom: 16px;
}

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

.pos-tax-details {
    display: grid;
    gap: .25rem;
    margin: -.35rem 0 .35rem;
}

.pos-tax-details:empty {
    display: none;
}

.pos-tax-details div {
    align-items: center;
    color: #6d625a;
    display: flex;
    font-size: .82rem;
    justify-content: space-between;
}

.pos-tax-details strong {
    color: #2f2925;
    font-size: .82rem;
}

@media (max-width: 1100px) {
    .pos-checkout-page .pos_checkout_main,
    .commerce-checkout-page .commerce-checkout-main {
        min-height: 0;
    }

    .pos-checkout-page .pos_checkout_area_products,
    .commerce-checkout-page .commerce-checkout-products-area,
    .pos-checkout-page .pos_checkout_area_totals,
    .commerce-checkout-page .commerce-checkout-sidebar {
        top: auto;
    }
}

@media (max-width: 800px) {
    .commerce-workspace-header,
    .pos-module-hero {
        align-items: stretch;
        display: grid;
        gap: .75rem;
    }

    .commerce-workspace-logo,
    .pos-module-logo {
        height: 44px;
        max-width: 130px;
    }

    .commerce-workspace-cart-summary,
    .pos-module-current-cart {
        min-width: 0;
        width: 100%;
    }
}
/* POS customer management modal */
.pos-customer-modal {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 3rem);
    max-width: 1120px;
    overflow: hidden;
    width: min(1120px, calc(100vw - 2rem));
}

.pos-customer-tabs {
    border-bottom: 1px solid #ded8d2;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin: .25rem 0 .75rem;
}

.pos-customer-tab {
    background: #f4f1ee;
    border: 1px solid #d8d1ca;
    border-bottom: 0;
    color: #2f2925;
    cursor: pointer;
    font-weight: 800;
    padding: .7rem .95rem;
}

.pos-customer-tab.is-active,
.pos-customer-tab:hover,
.pos-customer-tab:focus-visible {
    background: #ffffff;
    box-shadow: inset 0 3px 0 #eb5202;
    outline: 0;
}

.pos-customer-panel {
    min-height: 0;
    overflow: auto;
    padding-right: .25rem;
}

.pos-customer-panel[hidden] {
    display: none;
}

.pos-customer-current-card {
    background: #f8f6f3;
    border: 1px solid #dfdad4;
    display: grid;
    gap: .2rem;
    margin-bottom: .75rem;
    padding: .85rem;
}

.pos-customer-current-card span,
.pos-customer-details-summary span,
.pos-customer-readonly-item span {
    color: #6d625a;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.pos-customer-current-card strong,
.pos-customer-details-summary strong {
    color: #2f2925;
    font-size: 1.05rem;
}

.pos-customer-current-card em {
    color: #5f5650;
    font-style: normal;
}

.pos-customer-message.is-success {
    color: #1f6b42;
}

.pos-customer-results {
    border: 1px solid #e1ddd8;
    display: grid;
    max-height: 360px;
    overflow: auto;
}

.pos-customer-result {
    align-items: stretch;
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid #e8e4df;
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: .7rem .85rem;
}

.pos-customer-result:last-child {
    border-bottom: 0;
}

.pos-customer-result-main {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: grid;
    gap: .2rem;
    min-width: 0;
    padding: 0;
    text-align: left;
}

.pos-customer-result-main:hover strong,
.pos-customer-result-main:focus-visible strong {
    color: #eb5202;
}

.pos-customer-result-main:focus-visible {
    outline: 2px solid rgba(235, 82, 2, .35);
    outline-offset: 3px;
}

.pos-customer-result-main strong,
.pos-customer-result-main span {
    overflow-wrap: anywhere;
}

.pos-customer-result-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    justify-content: flex-end;
}

.pos-customer-result-actions button,
.pos-customer-form-actions button,
.pos-customer-details-summary button {
    background: #eb5202;
    border: 1px solid #d84b00;
    color: #ffffff;
    cursor: pointer;
    font-weight: 900;
    padding: .58rem .8rem;
}

.pos-customer-result-actions button:hover,
.pos-customer-result-actions button:focus-visible,
.pos-customer-form-actions button:hover,
.pos-customer-form-actions button:focus-visible,
.pos-customer-details-summary button:hover,
.pos-customer-details-summary button:focus-visible {
    background: #cf4700;
    outline: 0;
}

.pos-customer-badge {
    background: #e8f2ff;
    border: 1px solid #bfd6f3;
    color: #1c4d7a;
    font-size: .78rem;
    font-weight: 900;
    padding: .32rem .45rem;
}

.pos-customer-form {
    display: grid;
    gap: .9rem;
}

.pos-customer-form-grid {
    display: grid;
    gap: .8rem 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pos-customer-field {
    color: #2f2925;
    display: grid;
    gap: .3rem;
    font-weight: 800;
}

.pos-customer-field-wide {
    grid-column: 1 / -1;
}

.pos-customer-field input,
.pos-customer-field select,
.pos-customer-field textarea {
    border: 1px solid #cfc8c0;
    color: #2f2925;
    font: inherit;
    min-height: 2.35rem;
    padding: .45rem .55rem;
    width: 100%;
}

.pos-customer-field input:disabled,
.pos-customer-field select:disabled {
    background: #f4f1ee;
    color: #6d625a;
}

.pos-customer-field-check {
    align-items: center;
    display: flex;
    gap: .55rem;
}

.pos-customer-field-check input {
    min-height: 0;
    width: auto;
}

.pos-customer-details-summary {
    align-items: center;
    border-bottom: 1px solid #ded8d2;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding-bottom: .75rem;
}

.pos-customer-counter-readonly {
    background: #fff7e8;
    border: 1px solid #f0cf8c;
    color: #60430f;
    font-weight: 800;
    padding: .7rem .85rem;
}

.pos-customer-readonly-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pos-customer-readonly-item {
    background: #f8f6f3;
    border: 1px solid #dfdad4;
    display: grid;
    gap: .2rem;
    padding: .75rem;
}

.pos-customer-form-actions {
    display: flex;
    gap: .55rem;
    justify-content: flex-end;
}

.pos-delivery-address-manager {
    border-top: 1px solid #ded8d2;
    display: grid;
    gap: .75rem;
    padding-top: 1rem;
}

.pos-delivery-address-head {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.pos-delivery-address-head h3,
.pos-delivery-address-editor h4 {
    margin: 0 0 .2rem;
}

.pos-delivery-address-head p,
.pos-delivery-address-card p,
.pos-delivery-address-card small {
    color: #6d625a;
    margin: 0;
}

.pos-delivery-address-head-actions,
.pos-delivery-address-actions,
.pos-finalization-address-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.pos-delivery-address-head-actions button,
.pos-delivery-address-actions button,
.pos-finalization-address-actions button {
    background: #ffffff;
    border: 1px solid #d84b00;
    color: #b94000;
    cursor: pointer;
    font-weight: 800;
    padding: .5rem .7rem;
}

.pos-delivery-address-list {
    display: grid;
    gap: .55rem;
}

.pos-delivery-address-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfdad4;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: .75rem;
}

.pos-delivery-address-card.is-inactive {
    background: #f4f1ee;
    opacity: .78;
}

.pos-delivery-address-card strong + span {
    margin-left: .45rem;
}

.pos-delivery-address-card span {
    background: #e7f5ed;
    color: #1f6b42;
    font-size: .72rem;
    font-weight: 900;
    padding: .2rem .35rem;
}

.pos-delivery-address-card span.is-inactive {
    background: #eee9e4;
    color: #6d625a;
}

.pos-delivery-address-editor {
    background: #f8f6f3;
    border: 1px solid #dfdad4;
    padding: .85rem;
}

.pos-delivery-address-unavailable,
.pos-delivery-address-empty {
    background: #fff7e8;
    border: 1px solid #f0cf8c;
    margin: 0;
    padding: .7rem .85rem;
}

.pos-finalization-address-actions {
    margin-top: .65rem;
}

.pos-finalization-single-address {
    background: #f8f6f3;
    border: 1px solid #dfdad4;
    color: #2f2925;
    font-weight: 800;
    padding: .7rem .8rem;
}

@media (max-width: 760px) {
    .pos-customer-modal {
        max-height: calc(100vh - 1rem);
        width: calc(100vw - 1rem);
    }

    .pos-customer-result,
    .pos-customer-form-grid,
    .pos-customer-readonly-grid {
        grid-template-columns: 1fr;
    }

    .pos-customer-result-actions,
    .pos-customer-details-summary,
    .pos-customer-form-actions,
    .pos-delivery-address-head,
    .pos-delivery-address-card {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Centralized customer selector */
.pos-customer-modal--centralized {
    gap: .8rem;
    max-height: min(820px, calc(100vh - 2rem));
    max-width: min(920px, calc(100vw - 2rem));
    width: 760px;
}

.pos-customer-modal--centralized.pos-customer-modal--editor-open {
    height: min(820px, calc(100vh - 2rem));
    overflow: hidden;
}

.pos-customer-modal--centralized .pos-customer-modal-foot {
    justify-content: flex-end;
}

.pos-customer-modal--editor-open .pos-customer-modal-foot {
    border-top: 1px solid #ded8d2;
    padding-top: .8rem;
}

.pos-customer-modal-head > div {
    display: grid;
}

.pos-customer-modal-head > div > span {
    color: #6d625a;
    font-size: .85rem;
    margin-top: .2rem;
}

.pos-customer-selection {
    display: grid;
    gap: .75rem;
    min-height: 0;
}

.pos-customer-edit-current,
.pos-customer-editor-toolbar button {
    background: transparent;
    border: 0;
    color: #b94000;
    cursor: pointer;
    font-weight: 800;
    justify-self: start;
    padding: .15rem 0;
}

.pos-customer-edit-current:disabled {
    color: #938a83;
    cursor: not-allowed;
}

.pos-customer-results-heading,
.pos-customer-result--compact {
    align-items: center;
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(0, 1fr) 120px 90px;
}

.pos-customer-results-heading {
    color: #6d625a;
    font-size: .72rem;
    font-weight: 900;
    padding: 0 .85rem;
    text-transform: uppercase;
}

.pos-customer-result--compact {
    cursor: default;
}

.pos-customer-result-identity {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .45rem;
    min-width: 0;
}

.pos-customer-result-identity > strong,
.pos-customer-result-identity > span:not(.pos-customer-badge) {
    flex-basis: 100%;
    overflow-wrap: anywhere;
}

.pos-customer-result--compact > button {
    background: #eb5202;
    border: 1px solid #d94900;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    padding: .5rem .65rem;
}

.pos-customer-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.pos-customer-editor-panel {
    display: grid;
    flex: 1 1 auto;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
}

.pos-customer-editor-panel[hidden] {
    display: none;
}

.pos-customer-editor-toolbar {
    align-items: center;
    border-bottom: 1px solid #ded8d2;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding-bottom: .6rem;
}

.pos-customer-editor-panel iframe {
    background: #f5f6f8;
    border: 0;
    height: 100%;
    min-height: 0;
    width: 100%;
}

@media (max-width: 760px) {
    .pos-customer-results-heading {
        display: none;
    }

    .pos-customer-result--compact {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .pos-customer-result-price {
        grid-column: 1;
    }

    .pos-customer-result--compact > button {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}
/* Order preparation packing workspace */
.op-details-page {
  max-width: none;
}

.op-details-page .op-header {
  align-items: center;
  margin-bottom: 10px;
}

.op-details-page .op-header h1 {
  font-size: 26px;
}

.op-order-number,
.op-product-sku {
  color: #e65300;
  font-weight: 750;
}

.op-order-number {
  letter-spacing: .01em;
}

.op-header-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.op-meta-separator {
  color: #aaa39d;
}

.op-details-page .op-scan-panel {
  align-items: center;
  background: #f8fcf8;
  border-color: #69a978;
  border-radius: 6px;
  display: grid;
  gap: 12px;
  grid-template-columns: 40px auto minmax(220px, 1fr);
  margin-bottom: 10px;
  min-height: 66px;
  padding: 9px 16px;
  text-align: left;
}

.op-scan-icon {
  align-items: center;
  border: 2px solid #25893b;
  border-bottom-color: transparent;
  border-top-color: transparent;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.op-scan-icon::before {
  background: repeating-linear-gradient(90deg, #25893b 0 2px, transparent 2px 5px);
  content: "";
  height: 24px;
  width: 22px;
}

.op-details-page .op-scan-panel #div_instruction {
  font-size: 16px;
  line-height: 1.15;
}

.op-scan-state-row {
  align-items: center;
  display: flex;
  gap: 6px;
  margin-top: 3px;
}

.op-scan-state-dot {
  background: var(--op-green);
  border-radius: 50%;
  flex: 0 0 10px;
  height: 10px;
}

.op-details-page .op-scan-message {
  background: transparent;
  border: 0;
  color: var(--op-green);
  display: inline;
  font-size: 13px;
  margin: 0;
  max-width: none;
  padding: 0;
}

.op-details-page .op-scan-message.op-scan-danger,
.op-details-page .op-scan-message.op-scan-warning {
  color: var(--op-red);
}

.op-scan-hint {
  color: #625b55;
  font-size: 14px;
  justify-self: center;
}

.op-details-page .op-scan-paused {
  background: #fff8f7;
  border-color: #d7837c;
}

.op-scan-paused .op-scan-icon {
  border-left-color: var(--op-red);
  border-right-color: var(--op-red);
}

.op-scan-paused .op-scan-icon::before {
  background: repeating-linear-gradient(90deg, var(--op-red) 0 2px, transparent 2px 5px);
}

.op-scan-paused .op-scan-state-dot {
  background: var(--op-red);
}

body.op-scan-busy .op-scan-state-dot {
  background: #d98200;
}

.op-details-page .op-details-summary {
  gap: 8px;
  margin-bottom: 10px;
}

.op-details-page .op-summary-box {
  border-color: #d7dce2;
  border-radius: 5px;
  min-height: 76px;
  padding: 9px 12px;
}

.op-details-page .op-summary-box strong {
  font-size: 20px;
  margin-top: 3px;
}

.op-details-page .op-summary-box > span {
  font-size: 11px;
}

.op-progress-row {
  align-items: center;
  display: flex;
  gap: 7px;
  margin-top: 5px;
}

.op-progress {
  background: #e5e7ea;
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
  width: 100%;
}

.op-progress > span {
  background: var(--op-green);
  display: block;
  height: 100%;
  transition: width .18s ease;
}

.op-progress-label {
  color: #625b55;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.op-details-page .op-info-panel {
  border-color: #d7dce2;
  border-radius: 5px;
  margin-bottom: 10px;
  padding: 9px 12px;
}

.op-customer-summary {
  align-items: center;
  display: grid;
  gap: 8px 20px;
  grid-template-columns: minmax(230px, 1.6fr) minmax(175px, 1fr) minmax(75px, .45fr) minmax(105px, .65fr) auto;
}

.op-customer-summary > div {
  min-width: 0;
}

.op-customer-summary > div > span {
  color: #665f58;
  font-size: 11px;
  font-weight: 700;
  margin-right: 5px;
  text-transform: uppercase;
}

.op-customer-summary > div > strong {
  font-size: 13px;
}

.op-customer-details summary {
  background: #fff;
  border: 1px solid #b8bec6;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style-position: inside;
  padding: 6px 9px;
  white-space: nowrap;
}

.op-customer-details[open] {
  grid-column: 1 / -1;
}

.op-customer-details dl {
  border-top: 1px solid #e3e5e8;
  display: grid;
  gap: 9px 20px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  margin: 9px 0 0;
  padding-top: 9px;
}

.op-customer-details .op-customer-address {
  grid-column: span 2;
}

.op-packing-grid {
  min-width: 1280px;
  table-layout: fixed;
}

.op-packing-grid th,
.op-packing-grid td {
  line-height: 1.25;
  padding: 6px;
  vertical-align: middle;
}

.op-packing-grid th {
  font-size: 12px;
  white-space: nowrap;
}

.op-packing-grid th:nth-child(1) { width: 66px; }
.op-packing-grid th:nth-child(2) { width: 94px; }
.op-packing-grid th:nth-child(3) { width: 78px; }
.op-packing-grid th:nth-child(4) { width: 112px; }
.op-packing-grid th:nth-child(5) { width: 152px; }
.op-packing-grid th:nth-child(6) { width: 88px; }
.op-packing-grid th:nth-child(7) { width: 118px; }
.op-packing-grid th:nth-child(8) { width: 90px; }
.op-packing-grid th:nth-child(9) { width: 90px; }
.op-packing-grid th:nth-child(11) { width: 100px; }

.op-details-page .op-product-image {
  height: 46px;
  max-width: 54px;
  width: 54px;
}

.op-packed-quantity {
  align-items: baseline;
  display: inline-flex;
  font-size: 20px;
  font-weight: 800;
  gap: 3px;
  justify-content: flex-end;
  min-width: 78px;
  white-space: nowrap;
}

.op-packed-input {
  appearance: textfield;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  line-height: 1;
  padding: 0;
  text-align: right;
  width: 34px;
}

.op-packed-input::-webkit-inner-spin-button,
.op-packed-input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.op-packed-input:focus-visible {
  border-radius: 3px;
  outline: 2px solid #258cfb;
  outline-offset: 2px;
}

.op-packed-input:disabled {
  opacity: 1;
}

.op-packed-empty { color: var(--op-red); }
.op-packed-partial { color: #c56f00; }
.op-packed-complete { color: var(--op-green); }

.op-pack-step,
.op-pack-controls {
  text-align: center;
  white-space: nowrap;
}

.op-pack-adjust + .op-pack-adjust {
  margin-left: 3px;
}

.op-pack-adjust {
  background: #f7f8f9;
  border: 1px solid #b8bec6;
  border-radius: 4px;
  color: #24201c;
  font-size: 13px;
  font-weight: 800;
  height: 32px;
  min-width: 32px;
  padding: 3px 6px;
}

.op-pack-adjust:hover:not(:disabled) {
  background: #e9ecef;
  border-color: #858d96;
}

.op-pack-adjust:focus-visible {
  outline: 2px solid #258cfb;
  outline-offset: 1px;
}

.op-pack-adjust:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.op-packing-product {
  max-width: none;
  min-width: 210px;
  overflow-wrap: anywhere;
}

.op-packing-product strong {
  font-weight: 650;
}

.packing-status {
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  min-width: 84px;
  padding: 5px 8px;
}

.packing-status-packed,
.packing-status-ok {
  background: var(--op-green);
}

.packing-status-missing,
.packing-status-partial {
  background: #d98200;
  color: #fff;
}

.packing-status-not-packed,
.packing-status-none,
.packing-status-error {
  background: var(--op-red);
}

.op-parcel-panel {
  background: #fafafa;
  border: 1px solid var(--op-border);
  border-top: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  padding: 9px 12px;
}

.op-parcel-field label {
  color: #4f4943;
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.op-parcel-field .form-control {
  min-height: 34px;
  padding-block: 5px;
}

.op-input-unit {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.op-input-unit > span {
  font-size: 12px;
  font-weight: 700;
}

.op-packing-commit-panel {
  align-items: end;
  grid-template-columns: minmax(320px, 1fr) auto;
  margin-top: 10px;
  padding: 9px 12px;
}

.op-commit-note {
  min-width: 0;
}

.op-commit-note textarea {
  min-height: 38px;
  resize: vertical;
}

.op-commit-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.op-btn-success {
  background: var(--op-green);
  border-color: #176027;
  color: #fff;
  min-width: 245px;
}

.op-btn-success:hover {
  background: #176a2a;
  color: #fff;
}

.op-btn-hold {
  background: #fff;
  border-color: #c5cbd2;
  color: #34302c;
}

.op-btn-hold:hover {
  background: #f2f3f5;
  color: #34302c;
}

@media (max-width: 1200px) {
  .op-customer-summary {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .op-customer-details,
  .op-customer-details[open] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .op-parcel-panel,
  .op-packing-commit-panel {
    grid-template-columns: 1fr 1fr;
  }

  .op-customer-details dl {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 700px) {
  .op-details-page .op-scan-panel {
    grid-template-columns: 36px 1fr;
  }

  .op-scan-hint {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .op-customer-summary,
  .op-customer-details dl,
  .op-parcel-panel,
  .op-packing-commit-panel {
    grid-template-columns: 1fr;
  }

  .op-customer-details,
  .op-customer-details[open],
  .op-customer-details .op-customer-address {
    grid-column: 1;
  }

  .op-commit-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .op-btn-success {
    min-width: 0;
  }
}
