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-line[data-application-context="true"] .op-order-edit-line-product > span {
  white-space: normal;
  overflow-wrap: anywhere;
}

.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-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: var(--app-action-hover);
  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: var(--app-surface-sunken);
  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-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 > .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-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: 900px;
}

.store-products-table .store-product-description {
  display: block;
  max-width: 420px;
  overflow: hidden;
  color: var(--app-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-products-table .store-save-column form {
  display: inline-block;
}

.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;
}

.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;
  }
}

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

/* Shared order navigation */
.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;
}

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

.store-products-table .store-edit-column {
  width: 92px;
}

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

.store-products-table .store-save-column {
  white-space: nowrap;
  width: 1%;
}

.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-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;
}

.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-search--type { grid-template-columns: minmax(0, 32rem) minmax(12rem, 18rem) auto; }

.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: var(--app-action-hover);
  border-color: var(--app-action-hover);
}

.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-reason { flex: 1 1 280px; display: grid; gap: 4px; min-width: 0; }
.sbi-session-reason label { font-weight: 600; font-size: .9rem; }

.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 {
  color: #1a5c9c;
}

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

.op-summary-prepared strong {
  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 {
  display: block;
}

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

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

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

.op-priority,
.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;
}

.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-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: var(--app-border);
  --sn-dark: var(--app-ink);
  --sn-darker: var(--app-ink);
  --sn-orange: var(--status-wait-bg);
  --sn-red: var(--app-danger);
  --sn-green: var(--status-done-ink);
  --sn-grey: var(--app-surface-sunken);
  color: var(--app-ink);
  margin: 0 auto;
  max-width: 1760px;
}

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

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

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

.so-status-draft {
  background: var(--status-wait-bg);
  color: var(--status-wait-ink);
}

.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-demand-grid { min-width: 860px; }

.sn-selection-count { align-items: center; display: flex; gap: 5px; white-space: nowrap; }
.sn-selection-count strong { color: #b55f00; font-size: 22px; }

/* Supplier purchasing workspace */
.sp-page {
  --sp-border: var(--app-border);
  --sp-border-strong: var(--app-border-input);
  --sp-ink: var(--app-ink);
  --sp-muted: var(--app-ink-2);
  --sp-soft: var(--app-surface-soft);
  --sp-orange: var(--app-action);
  --sp-orange-dark: var(--app-action-hover);
  --sp-blue: var(--app-action);
  --sp-red: var(--app-danger);
  --sp-green: var(--status-done-ink);
  color: var(--sp-ink);
  margin: 0 auto;
  max-width: 1760px;
  min-width: 0;
}

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

.sp-module-header h1 {
  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,
.sp-section-heading p {
  color: var(--sp-muted);
  font-size: 13px;
  margin: 0;
}

.sp-eyebrow {
  color: var(--app-ink-3);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

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

.sp-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 {
  border-color: #b9c0c9;
  box-shadow: 0 3px 10px rgba(29, 37, 48, .08);
  color: #171d25;
}

.sp-btn-primary {
  background: var(--app-action);
  border-color: var(--sp-orange);
  color: #fff;
}

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

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

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

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

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

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

.sp-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 {
  color: var(--sp-orange);
}

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

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

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

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

.sp-table th {
  background: var(--app-surface-sunken);
  border: 0;
  color: var(--app-ink);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .015em;
  padding: 9px 10px;
  text-transform: none;
  white-space: nowrap;
}

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

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

.sp-table tbody tr:hover td {
  background: #fffaf6;
}

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

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

.sp-document-link {
  color: var(--app-action);
  font-weight: 760;
}

.sp-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; }

.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;
}

.sp-count-badge {
  background: #f0f2f5;
  border-radius: 999px;
  color: #596473;
  font-size: 10px;
  font-weight: 750;
  padding: 5px 9px;
}

.sp-description-cell {
  min-width: 190px;
  white-space: normal;
}

@media (max-width: 700px) {
  .sp-module-header,
.sp-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .sp-header-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 {
    width: 100%;
  }

}

/* Point of Sales */
.pos-home {
    min-height: calc(100vh - 190px);
    background: #f4f4f4;
    border: 1px solid #d6d6d6;
    padding: 24px;
}

.pos-home-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 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.pos-home-checkout {
    align-items: center;
    background: var(--app-action);
    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: var(--app-action-hover);
    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-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;
}

.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-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-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_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: var(--app-action);
    border: 2px solid var(--app-action);
    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: var(--app-action-hover);
    border-color: var(--app-action-hover);
}

.pos-bottom-secondary {
    background: #dddddd;
    border-color: #dddddd;
    color: #2f2925;
}

.pos-bottom-secondary:hover {
    background: #cfcfcf;
    border-color: #cfcfcf;
}

@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 {
        bottom: auto;
        left: auto;
        position: static;
        right: auto;
        top: auto;
        width: auto;
    }

    .pos_checkout_area_totals,
    .commerce-checkout-sidebar {
        margin-top: 16px;
    }

}

@media (max-width: 720px) {
    .pos-home,
    .pos_checkout_main,
    .commerce-checkout-main {
        padding: 12px;
    }

    .pos-home-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 {
        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-content {
    background: #fff;
    min-width: 0;
    overflow: hidden;
}

.pos-module-title {
    color: #3b332e;
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0;
    margin: 0;
}

.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-button-orange {
    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: var(--app-action);
}

.pos-button-orange:hover {
    background: var(--app-action-hover);
    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-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 {
    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;
}

@media (max-width: 1280px) {
    .app-user-identity {
        display: none;
    }
}

@media (max-width: 1180px) {
    .pos-shell {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .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-bottom-bar,
    .commerce-checkout-actions {
        grid-template-columns: 1fr;
    }
}
/* Saved Carts */

.rw-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: #2f2a27;
}

.rw-header,
.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 {
    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 {
    display: flex;
    gap: .45rem;
    color: #4a423c;
    font-weight: 600;
}

.rw-field-grid label {
    flex-direction: column;
}

.rw-toggle {
    align-items: center;
}

.rw-actions {
    display: flex;
    justify-content: flex-end;
}

.rw-preview {
    border-top: 4px solid #e85d04;
}

.rw-big-number {
    line-height: 1;
    color: #e85d04;
    font-weight: 800;
}

.rw-big-number {
    font-size: 4rem;
}

.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-tiers-table {
    min-width: 900px;
}

.rw-tiers-table .form-control {
    min-width: 100px;
}

.rw-tiers-table td:nth-child(2) {
    min-width: 180px;
}

.rw-tiers-table .rw-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.rw-tiers-table th:nth-child(n+3):nth-child(-n+5) {
    text-align: right;
}

.rw-tiers-table td:nth-child(6),
.rw-tiers-table th:nth-child(6) {
    text-align: center;
}

@media (max-width: 900px) {
    .rw-header,
.rw-layout,
.rw-field-grid {
        grid-template-columns: 1fr;
    }

    .rw-actions {
        justify-content: stretch;
    }

    .rw-actions .btn {
        width: 100%;
    }
}

/* Store navigation and notifications */

.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-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%;
}

/* Shared POS customer selector */
.commerce-workspace-customer,
.pos-customer-button {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid var(--app-border, #e3e7ee);
    border-radius: 8px;
    color: var(--app-ink, #1d2330);
    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: var(--app-action, #1a56db);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, .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-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-done,
.pos-customer-search-row button {
    background: var(--app-action);
    border: 1px solid var(--app-action);
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    padding: .58rem .85rem;
}

.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-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-order {
    background: var(--app-surface, #fff);
    border: 1px solid var(--app-border, #e3e7ee);
    border-radius: 8px;
    color: var(--app-ink, #1d2330);
    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;
}

.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, Carts, Sales and Loyalty. */
.commerce-workspace-header-pos,
.pos-mpf-panel .pos-mpf-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,
.pos-mpf-panel .pos-mpf-hero .commerce-workspace-logo {
    height: 42px;
    max-width: 132px;
}

.commerce-workspace-header-pos .commerce-workspace-eyebrow,
.pos-mpf-panel .pos-mpf-hero .commerce-workspace-eyebrow {
    color: #4f5c70;
    font-size: .74rem;
}

.commerce-workspace-header-pos .commerce-workspace-title,
.pos-mpf-panel .pos-mpf-hero .commerce-workspace-title {
    color: #121b28;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.commerce-workspace-header-pos .commerce-workspace-actions,
.pos-mpf-panel .pos-mpf-hero .commerce-workspace-actions {
    flex-basis: 500px;
}

.commerce-workspace-header-pos :is(.pos-customer-button, .commerce-workspace-cart-summary),
.pos-mpf-panel .pos-mpf-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 .commerce-workspace-cart-summary,
.pos-mpf-panel .pos-mpf-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,
.pos-mpf-panel .pos-mpf-hero .pos-module-current-summary {
    font-size: .94rem;
}

.commerce-workspace-header-pos .pos-module-current-total.has-total,
.pos-mpf-panel .pos-mpf-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-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;
}

.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 {
    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;
}

.commerce-finalization-summary {
    display: grid;
    gap: .45rem .9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.commerce-finalization-summary div {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.commerce-finalization-summary dt {
    color: #6d625a;
    font-weight: 500;
}

.commerce-finalization-summary dd {
    font-weight: 700;
    margin: 0;
    text-align: right;
}

.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,
.commerce-finalization-summary {
        grid-template-columns: 1fr;
    }

    .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%;
    }
}

@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 {
        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-current-card {
    background: #f8f6f3;
    border: 1px solid #dfdad4;
    display: grid;
    gap: .2rem;
    margin-bottom: .75rem;
    padding: .85rem;
}

.pos-customer-current-card span {
    color: #6d625a;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.pos-customer-current-card 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-form-actions button {
    background: var(--app-action);
    border: 1px solid var(--app-action);
    color: #ffffff;
    cursor: pointer;
    font-weight: 900;
    padding: .58rem .8rem;
}

.pos-customer-form-actions button:hover,
.pos-customer-form-actions button:focus-visible {
    background: var(--app-action-hover);
    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-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-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 var(--app-border-action);
    color: var(--app-action);
    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;
}

@media (max-width: 760px) {
    .pos-customer-modal {
        max-height: calc(100vh - 1rem);
        width: calc(100vw - 1rem);
    }

    .pos-customer-form-grid {
        grid-template-columns: 1fr;
    }

    .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: calc(100vw - 2rem);
    width: 980px;
    border-radius: .5rem;
}

.pos-customer-modal--centralized .pos-customer-modal-foot {
    justify-content: space-between;
    flex-shrink: 0;
}

.pos-customer-modal--centralized .pos-customer-message:empty { display: none; }
.pos-customer-selection[hidden],
.pos-customer-quick-actions[hidden] { display: none; }
.pos-customer-modal-foot .pos-customer-done { margin-left: auto; }

.pos-customer-current-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .7rem .85rem;
    border: 1px solid #dfdad4;
    border-radius: .35rem;
    background: #f8f6f3;
}

.pos-customer-current-bar .pos-customer-current-card {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.pos-customer-current-bar .pos-customer-edit-current { flex-shrink: 0; }
.pos-customer-current-card .pos-customer-badge { margin-left: .4rem; }

.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: .7rem;
    min-height: 0;
    grid-template-rows: auto auto auto minmax(0, 1fr);
}

.pos-customer-edit-current {
    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;
}

/* The table scrolls independently so the current customer and actions stay visible. */
.pos-customer-search-meta {
    display: flex;
    justify-content: space-between;
    gap: .6rem;
    color: #6d625a;
    font-size: .78rem;
}

.pos-customer-table-scroll {
    overflow: auto;
    max-height: 360px;
    min-height: 96px;
    border: 1px solid #e1ddd8;
    border-radius: .35rem;
}

.pos-customer-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .86rem;
}

.pos-customer-table th,
.pos-customer-table td { padding: .5rem .65rem; text-align: left; vertical-align: middle; }
.pos-customer-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f1f2f4;
    font-size: .78rem;
    border-bottom: 1px solid #e1ddd8;
}
.pos-customer-table th:nth-child(1) { width: 28%; }
.pos-customer-table th:nth-child(2) { width: 17%; }
.pos-customer-table th:nth-child(3) { width: 31%; }
.pos-customer-table th:nth-child(4) { width: 9%; }
.pos-customer-table th:nth-child(5) { width: 15%; }
.pos-customer-table td { border-bottom: 1px solid #edeae6; overflow-wrap: anywhere; }
.pos-customer-table tr:last-child td { border-bottom: 0; }
.pos-customer-table tbody tr:nth-child(even) { background: #f7f7f8; }
.pos-customer-table tbody tr:hover,
.pos-customer-table tbody tr:focus-within { background: #fff4e9; }
.pos-customer-table tbody tr.is-selected { background: #edf5ff; }
.pos-customer-result-identity > strong { display: inline-block; max-width: 100%; vertical-align: middle; }
.pos-customer-result-identity > strong,
.pos-customer-result-identity > span:not(.pos-customer-badge) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-customer-result-identity > span:not(.pos-customer-badge) { display: block; color: #6d625a; font-size: .78rem; }
.pos-customer-result-identity .pos-customer-badge { display: inline-block; margin-left: .35rem; vertical-align: middle; }
.pos-customer-result-price { white-space: nowrap; }
.pos-customer-table button {
    width: 100%;
    border-radius: .25rem;
    background: var(--app-action);
    border: 1px solid var(--app-action);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: .45rem .3rem;
}
.pos-customer-table button:disabled { cursor: default; opacity: .65; }
.pos-customer-table .is-selected button { background: #e0f0e5; color: #24653d; border-color: #bddfc9; opacity: 1; }
.pos-customer-modal :is(button, a, input):focus-visible { outline: 2px solid #2364b4; outline-offset: 2px; }
.pos-customer-modal--centralized .pos-customer-search-row { display: flex; }
.pos-customer-modal--centralized .pos-customer-search-row input { border-radius: .3rem; min-height: 44px; }

.pos-customer-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

@media (max-width: 760px) {
    .pos-customer-table { min-width: 720px; }
    .pos-customer-current-bar { align-items: flex-start; flex-direction: column; gap: .35rem; }
    .pos-customer-search-meta { flex-direction: column; gap: .1rem; }
    .pos-customer-quick-actions { gap: .3rem; }
}
/* Dedicated customer editor reuses the existing administrative form. */
.commerce-customer-editor-dialog {
    width: min(1100px, calc(100vw - 32px));
    height: calc(100dvh - 48px);
    max-height: 900px;
    display: flex;
    flex-direction: column;
}
.commerce-customer-editor-dialog[hidden] { display: none; }
.commerce-customer-editor-dialog iframe { width: 100%; flex: 1; min-height: 0; border: 0; }

/* Quick report periods (prepared links, shared by consultation screens and reports). */
.report-period-links { display: flex; flex-wrap: wrap; gap: .35rem; }
.report-period-links .btn { min-height: 2.25rem; display: inline-flex; align-items: center; }

/* Report center and shared report layout. */
.report-center__search { min-width: min(22rem, 100%); }
.report-center__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.report-center__card { padding: 1rem 1.15rem; }
.report-center__card[hidden] { display: none; }
.report-center__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.report-center__list li { display: flex; flex-direction: column; gap: .1rem; }
.report-center__list li[hidden] { display: none; }
.report-center__list a { font-weight: 600; }
.report-center__list span { font-size: .85rem; color: var(--bs-secondary-color); }
.report-parameters { background: var(--bs-tertiary-bg); }
.report-parameters__grid { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; }
.report-parameters__grid > div { flex: 0 1 auto; min-width: 9.5rem; }
.financial-report__table { font-variant-numeric: tabular-nums; }
.financial-report__table td.text-end, .financial-report__table th.text-end { white-space: nowrap; }
.financial-report__section th { background: var(--bs-tertiary-bg); }
.financial-report__subtotal td { border-bottom: 2px solid var(--bs-border-color); }
.financial-report__ref { max-width: 14rem; }
.financial-report__ref a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.financial-report__desc { min-width: 12rem; max-width: 32rem; overflow-wrap: anywhere; }
.balance-sheet-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
@media (max-width: 991.98px) { .balance-sheet-columns { grid-template-columns: minmax(0, 1fr); } }
