html {
  font-size: 14px;
}

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

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

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

body {
  margin-bottom: 60px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.quantity-input {
  width: 5rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

.sbi-page .sbi-main-actions {
  align-items: center;
  background: #fafafa;
  border: 1px solid var(--sbi-border);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin-bottom: 10px;
  min-height: 94px;
  padding: 16px;
}

.sbi-page .div_sbi_notifications {
  min-width: min(360px, 100%);
}

.sbi-page #div_instruction {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.sbi-page #div_message {
  font-size: 18px;
  font-weight: 700;
  min-height: 32px;
  padding-top: 5px;
  overflow-wrap: anywhere;
}

.sbi-page .message-ok {
  color: green;
}

.sbi-page .message-error {
  color: red;
}

.sbi-page .sbi-page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.sbi-page .sbi-save-button {
  background: var(--sbi-primary);
  border: 0;
  color: #fff;
  font-weight: 700;
  min-height: 46px;
  min-width: 70px;
  padding: 0 18px;
}

.sbi-page .sbi-mode {
  background: transparent;
  border: 0;
  color: #41362f;
  font-weight: 700;
  min-height: 36px;
  padding: 4px 0;
}

.sbi-page .sbi-button-selected span {
  color: red;
  font-weight: 700;
}

.sbi-page .sbi-button span {
  color: #41362f;
}

.sbi-page .sbi-product-panel {
  background: #fafafa;
  border: 1px solid var(--sbi-border);
  margin-top: 10px;
  text-align: center;
}

.sbi-page .sbi-product-layout {
  align-items: center;
  display: inline-grid;
  gap: 24px;
  grid-template-columns: 240px minmax(320px, 760px);
  min-height: 260px;
  padding: 20px;
}

.sbi-page .sbi-product-image-wrap {
  align-items: center;
  background: #fff;
  border: 1px solid #e2e2e2;
  display: grid;
  height: 220px;
  justify-content: center;
  overflow: hidden;
  width: 220px;
}

.sbi-page #product_image {
  max-height: 200px;
  max-width: 220px;
  object-fit: contain;
}

.sbi-page .sbi-product-image-placeholder {
  color: #777;
  font-size: 16px;
  font-weight: 700;
}

.sbi-page .sbi-product-info {
  min-width: 0;
}

.sbi-page .sbi-product-name {
  display: block;
  font-size: 32px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  padding: 10px;
}

.sbi-page .sbi-product-sku {
  display: block;
  font-size: 24px;
  font-style: italic;
  line-height: 1.2;
  overflow-wrap: anywhere;
  padding: 10px;
}

.sbi-page .sbi-product-misc,
.sbi-page .sbi-product-location {
  display: block;
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  padding: 8px 10px;
}

.sbi-page .sbi-product-location {
  font-style: italic;
}

.sbi-page .sbi-product-stock {
  display: block;
  padding: 10px;
}

.sbi-page .sbi-btn-change-qty {
  background-color: var(--sbi-orange);
  border: 1px solid var(--sbi-orange-border);
  color: #000;
  font-size: 24px;
  font-weight: 700;
  height: 42px;
  line-height: 1;
  padding: 3px;
  text-align: center;
  width: 50px;
}

.sbi-page .sbi-qty-field {
  border: 1px solid #8a8a8a;
  font-size: 24px;
  height: 42px;
  margin: 0 6px;
  text-align: center;
  width: 100px;
}

.sbi-page .sbi-btn-commit {
  background-color: var(--sbi-orange);
  border: 1px solid var(--sbi-orange-border);
  color: #000;
  font-size: 24px;
  font-weight: 700;
  margin-top: 20px;
  min-width: 140px;
  padding: 10px 18px;
}

.sbi-page .sbi-content-header {
  margin: 28px 0 8px;
}

.sbi-page .sbi-content-header h3 {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
}

.sbi-page .sbi-history-panel {
  background: #fafafa;
  border: 1px solid var(--sbi-border);
  text-align: center;
}

.sbi-page #table_history {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.sbi-page .sbi-history-image-col {
  width: 88px;
}

.sbi-page .sbi-table-header {
  background-color: var(--sbi-header);
  border: 1px solid #777;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  height: 34px;
  text-align: center;
}

.sbi-page .sbi-table-cell {
  border: 1px solid var(--sbi-border);
  font-size: 18px;
  min-height: 42px;
  overflow-wrap: anywhere;
  padding: 6px 8px;
  text-align: center;
  vertical-align: middle;
}

.sbi-page .sbi-table-cell code {
  color: #303030;
  font-size: .95em;
}

.sbi-page .sbi-history-image {
  height: 34px;
  max-width: 52px;
  object-fit: contain;
}

.sbi-page .sbi-empty-history {
  color: #777;
  padding: 18px 8px;
}

.sbi-page .sbi-action-increase {
  color: green;
  font-weight: 700;
}

.sbi-page .sbi-action-decrease {
  color: red;
  font-weight: 700;
}

.sbi-page button:disabled {
  opacity: .65;
}

@media (max-width: 900px) {
  .sbi-page .sbi-main-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .sbi-page .sbi-page-actions {
    justify-content: flex-start;
  }

  .sbi-page .sbi-product-layout {
    grid-template-columns: 1fr;
  }

  .sbi-page .sbi-product-image-wrap {
    justify-self: center;
  }
}

@media (max-width: 575.98px) {
  .sbi-page #div_instruction {
    font-size: 21px;
  }

  .sbi-page .sbi-product-name {
    font-size: 25px;
  }

  .sbi-page .sbi-product-sku {
    font-size: 20px;
  }

  .sbi-page .sbi-table-header,
  .sbi-page .sbi-table-cell {
    font-size: 15px;
  }
}

/* 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-header-meta {
  color: #625b55;
  font-size: 14px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@media (max-width: 1200px) {
  .sn-toolbar,
  .sn-summary-row,
  .so-summary-row {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

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

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

.pos-home-header,
.pos-checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.pos-kicker {
    color: #6d625a;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pos-home h1,
.pos-checkout-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.pos-home-checkout {
    align-items: center;
    background: #eb5202;
    color: #fff;
    display: inline-flex;
    font-size: 1.2rem;
    font-weight: 700;
    gap: 10px;
    min-height: 58px;
    padding: 12px 22px;
    text-decoration: none;
}

.pos-home-checkout:hover {
    background: #c84400;
    color: #fff;
}

.pos-home-checkout-icon {
    align-items: center;
    background: rgba(0, 0, 0, .18);
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.pos-home-menu {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pos-home-tile {
    background: #f2f2f2;
    border: 1px solid #d5d0cc;
    color: #2f2925;
    min-height: 112px;
    padding: 18px;
    text-decoration: none;
}

.pos-home-tile-primary {
    background: #fff;
    border-top: 5px solid #eb5202;
}

.pos-home-tile-disabled {
    color: #777;
    cursor: not-allowed;
}

.pos-home-tile-title {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
}

.pos-home-tile-subtitle {
    color: #777;
    display: block;
    margin-top: 8px;
}

.pos_checkout_main,
.commerce-checkout-main {
    background: #fff;
    border: 1px solid #d6d6d6;
    min-height: calc(100vh - 185px);
    overflow: hidden;
    padding: 18px;
    position: relative;
}

.pos-message-strip,
.commerce-checkout-message-strip {
    background: #f2f2f2;
    border-left: 5px solid #eb5202;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    min-height: 54px;
    padding: 10px 14px;
}

#posInstruction,
.commerce-checkout-instruction {
    color: #514943;
    font-size: 1.15rem;
    font-weight: 700;
}

#posMessage,
.commerce-checkout-message {
    font-size: 1rem;
    font-weight: 700;
    text-align: right;
}

.pos-message-ok {
    color: #297a36;
}

.pos-message-error {
    color: #b42318;
}

.pos_checkout_area_products,
.commerce-checkout-products-area {
    bottom: 88px;
    left: 18px;
    overflow: auto;
    position: absolute;
    right: 390px;
    top: 156px;
}

.pos_checkout_area_totals,
.commerce-checkout-sidebar {
    bottom: 88px;
    overflow: auto;
    position: absolute;
    right: 18px;
    top: 156px;
    width: 350px;
}

.pos_checkout_area_buttons {
    bottom: 18px;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr 1.4fr;
    left: 18px;
    position: absolute;
    right: 18px;
}

.pos-products-container,
.commerce-checkout-product-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    padding-right: 8px;
}

.pos-empty-cart {
    align-items: center;
    background: #f2f2f2;
    color: #777;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    min-height: 180px;
    grid-column: 1 / -1;
    padding: 24px;
    text-align: center;
}

.pos-empty-cart-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.pos-empty-cart-description {
    display: block;
    font-size: .95rem;
    font-weight: 400;
    line-height: 1.45;
    max-width: 42rem;
}

.pos-panel,
.commerce-checkout-panel {
    background: #f2f2f2;
    border: 1px solid #ddd;
    margin-bottom: 12px;
    padding: 12px;
}

.pos-field-label,
.commerce-checkout-panel-title {
    color: #514943;
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.pos-select,
.pos-search-input {
    border-radius: 0;
}

.pos-search-row {
    display: flex;
    gap: 8px;
}

.pos-search-button {
    border-radius: 0;
    min-width: 84px;
}

.pos-search-results {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.pos-product-search-item {
    background: #fff;
    border: 1px solid #d7d7d7;
    display: grid;
    gap: 8px;
    grid-template-columns: 58px 1fr;
    min-height: 100px;
    padding: 8px;
    position: relative;
}

.pos-product-search-item-image-wrap {
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.pos-product-search-item-image {
    max-height: 54px;
    max-width: 54px;
}

.pos-product-search-item-information {
    min-width: 0;
    padding-right: 72px;
}

.pos-product-search-item-sku,
.pos_product_sku {
    color: #514943;
    font-size: .95rem;
    font-style: italic;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.pos-product-search-item-name,
.pos_product_name {
    color: #2f2925;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.pos-product-search-item-meta,
.pos_product_stock {
    color: #6d625a;
    font-size: .88rem;
    margin-top: 4px;
}

.pos-product-search-item-price {
    color: #c62828;
    font-size: 1.05rem;
    font-weight: 800;
    position: absolute;
    right: 8px;
    top: 8px;
}

.pos-search-add {
    border-radius: 0;
    bottom: 8px;
    position: absolute;
    right: 8px;
}

.pos-product-warning {
    color: #b42318;
    font-size: .85rem;
    font-weight: 700;
    margin-top: 4px;
}

.pos_product,
.commerce-cart-item {
    background: #f2f2f2;
    min-height: 164px;
    padding: 10px;
    position: relative;
}

.pos_product_image_container,
.commerce-cart-item-visual {
    align-items: center;
    background: #fff;
    display: flex;
    float: left;
    height: 132px;
    justify-content: center;
    margin-right: 12px;
    width: 132px;
}

.pos_product_image {
    max-height: 126px;
    max-width: 126px;
}

.pos-product-image-placeholder {
    color: #999;
    font-size: .82rem;
    font-weight: 700;
    text-align: center;
}

.pos_product_information,
.commerce-cart-item-content {
    min-width: 0;
    padding-right: 30px;
}

.pos_product_price,
.commerce-cart-item-price {
    color: #c62828;
    float: right;
    font-size: 1.45rem;
    font-weight: 800;
    margin-left: 8px;
}

.pos_product_remove,
.commerce-cart-item-remove {
    background: transparent;
    border: 0;
    color: #514943;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    position: absolute;
    right: 8px;
    top: 8px;
}

.pos_product_checkout_details,
.commerce-cart-item-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.pos_product_qty,
.commerce-cart-item-quantity {
    border: 1px solid #ccc;
    font-size: 1.25rem;
    height: 34px;
    text-align: center;
    width: 58px;
}

.pos_product_quantity_button,
.commerce-cart-item-quantity-button {
    background: #fff;
    border: 1px solid #ccc;
    font-size: 1.25rem;
    font-weight: 800;
    height: 34px;
    width: 34px;
}

.pos-line-total,
.commerce-cart-item-line-total {
    font-size: 1.1rem;
    font-weight: 800;
    margin-left: auto;
}

.pos-total-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.pos-total-grand {
    border-top: 2px solid #514943;
    color: #c62828;
    font-size: 1.3rem;
    font-weight: 800;
}

.pos_bottom_zone,
.commerce-checkout-action {
    background: #eb5202;
    border: 2px solid #eb5202;
    color: #fff;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 800;
    min-height: 54px;
    text-align: center;
}

.pos_bottom_zone:hover,
.commerce-checkout-action:hover {
    background: #c84400;
    border-color: #c84400;
}

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

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

.pos-bottom-danger {
    background: #b42318;
    border-color: #b42318;
}

.pos-bottom-danger:hover {
    background: #8f1d14;
    border-color: #8f1d14;
}

@media (max-width: 1100px) {
    .pos-home-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pos_checkout_main,
    .commerce-checkout-main {
        overflow: visible;
    }

    .pos_checkout_area_products,
    .commerce-checkout-products-area,
    .pos_checkout_area_totals,
    .commerce-checkout-sidebar,
    .pos_checkout_area_buttons {
        bottom: auto;
        left: auto;
        position: static;
        right: auto;
        top: auto;
        width: auto;
    }

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

    .pos_checkout_area_buttons {
        margin-top: 16px;
    }
}

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

    .pos-home-header,
    .pos-checkout-header,
    .pos-message-strip,
    .commerce-checkout-message-strip {
        align-items: stretch;
        flex-direction: column;
    }

    #posMessage,
    .commerce-checkout-message {
        text-align: left;
    }

    .pos-home-menu,
    .pos-products-container,
    .commerce-checkout-product-grid,
    .pos_checkout_area_buttons {
        grid-template-columns: 1fr;
    }

    .pos_product_image_container,
    .commerce-cart-item-visual {
        float: none;
        margin-bottom: 10px;
        margin-right: 0;
    }
}
/* POS shell */
.pos-shell {
    background: #fff;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: calc(100vh - 118px);
    overflow: hidden;
}

.pos-sidebar {
    background: #332f2c;
    color: #bdb6af;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 118px);
}

.pos-sidebar-brand,
.pos-sidebar-brand:link,
.pos-sidebar-brand:visited {
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.18);
    color: #eb5202;
    display: flex;
    height: 72px;
    justify-content: center;
    text-decoration: none;
}

.pos-sidebar-brand:hover,
.pos-sidebar-brand:focus,
.pos-sidebar-brand:active {
    color: #ff7a2d;
    text-decoration: none;
}

.pos-sidebar-brand:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

.pos-sidebar-brand-mark {
    border: 3px solid #eb5202;
    color: #eb5202;
    display: inline-flex;
    font-size: .8rem;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    letter-spacing: 0;
    line-height: 32px;
    width: 38px;
}

.pos-sidebar-brand-icon-mark {
    align-items: center;
}

.commerce-workspace-brand-icon {
    display: block;
    height: 1.4rem;
    width: 1.4rem;
}

.pos-sidebar-nav {
    display: flex;
    flex-direction: column;
}

.pos-sidebar-item,
.pos-sidebar-item:link,
.pos-sidebar-item:visited {
    align-items: center;
    border-left: 4px solid transparent;
    color: #bdb6af;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 70px;
    padding: 10px 4px;
    text-align: center;
    text-decoration: none;
}

.pos-sidebar-item > .pos-sidebar-label {
    color: inherit;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
    text-transform: uppercase;
}

.pos-sidebar-icon {
    align-items: center;
    color: #dfd8d1;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 900;
    height: 22px;
    justify-content: center;
    letter-spacing: 0;
    width: 42px;
}

.pos-sidebar-icon svg {
    display: block;
    fill: none;
    height: 22px;
    stroke: currentColor;
    width: 22px;
}

.pos-sidebar-item:hover,
.pos-sidebar-item:focus,
.pos-sidebar-item:focus-visible,
.pos-sidebar-item:active,
.pos-sidebar-item-active,
.pos-sidebar-item.is-active {
    background: #403a35;
    border-left-color: #eb5202;
    color: #fff;
    text-decoration: none;
}

.pos-sidebar-item:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

.pos-content {
    background: #fff;
    min-width: 0;
    overflow: hidden;
}

.pos-topbar,
.pos-toolbar {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 28px;
}

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

.pos-client-context {
    align-items: center;
    color: #3b332e;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
}

.pos-context-pill {
    font-size: 1rem;
    white-space: nowrap;
}

.pos-context-time {
    font-size: 1.45rem;
    white-space: nowrap;
}

.pos-body {
    min-height: calc(100vh - 190px);
    overflow: auto;
}

.pos-content-loyalty .pos-body,
.pos-content-sales .pos-body {
    padding-inline: 28px;
}

.pos-module-panel {
    background: #fff;
    min-height: calc(100vh - 190px);
    padding: 24px 28px;
}

.pos-module-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.pos-button-orange,
.pos-button-gray,
.pos-button-red {
    border: 0;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 42px;
    min-width: 150px;
    padding: 10px 18px;
    text-decoration: none;
}

.pos-button-orange {
    background: #eb5202;
}

.pos-button-orange:hover {
    background: #c84400;
    color: #fff;
}

.pos-button-gray {
    background: #dddddd;
    color: #2f2925;
}

.pos-button-gray:hover {
    background: #cfcfcf;
    color: #2f2925;
}

.pos-button-red {
    background: #b42318;
}

.pos-button-red:hover {
    background: #8f1d14;
    color: #fff;
}

.pos-placeholder,
.pos-cart-empty {
    align-items: center;
    color: #514943;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    min-height: 420px;
    text-align: center;
}

.pos-placeholder h2,
.pos-cart-empty h2 {
    color: #3b332e;
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
}

.pos-cart-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.pos-shell .pos-home,
.pos-shell .pos-module-panel,
.pos-shell .pos_checkout_main,
.pos-shell .commerce-checkout-main {
    border: 0;
}

.pos-shell .pos_checkout_main,
.pos-shell .commerce-checkout-main {
    min-height: calc(100vh - 190px);
    padding: 18px;
    position: relative;
}

.pos-shell .pos_checkout_area_products,
.pos-shell .commerce-checkout-products-area {
    bottom: 88px;
    left: 18px;
    overflow: auto;
    right: 388px;
    top: 78px;
}

.pos-shell .pos_checkout_area_totals,
.pos-shell .commerce-checkout-sidebar {
    bottom: 88px;
    left: auto;
    overflow: auto;
    right: 18px;
    top: 78px;
    width: 352px;
}

.pos-bottom-bar,
.commerce-checkout-actions,
.pos_checkout_area_buttons {
    bottom: 18px;
    display: grid;
    gap: 34px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    left: 68px;
    position: absolute;
    right: 18px;
}

.pos-bottom-bar .pos_bottom_zone,
.commerce-checkout-actions .commerce-checkout-action {
    width: 100%;
}

.pos-total-panel,
.pos-panel,
.commerce-checkout-panel {
    border-radius: 0;
}

.pos-mpf-panel .mpf-shell {
    box-shadow: none;
    margin: 0;
}

.pos-mpf-panel .mpf-header {
    border-top: 0;
}

.pos-orderprep-panel {
    display: flex;
    flex-direction: column;
}

.pos-order-preparation-page {
    align-items: stretch;
    max-width: none;
    width: 100%;
}

.pos-order-preparation-header {
    border-bottom: 1px solid #d8d2cb;
    margin-bottom: 18px;
    padding-bottom: 14px;
}

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

.pos-order-preparation-header p {
    color: #625b55;
    font-size: 14px;
    margin: 0;
}

.pos-order-preparation-page .op-page {
    margin: 0;
    max-width: none;
    width: 100%;
}

.pos-order-preparation-page .op-grid-wrap {
    max-width: none;
    width: 100%;
}

.pos-order-preparation-page .op-grid {
    width: 100%;
}

.pos-orderprep-frame {
    border: 1px solid #d6d6d6;
    flex: 1 1 auto;
    min-height: calc(100vh - 255px);
    width: 100%;
}

.pos-sales-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.pos-sales-head h2 {
    font-size: 1.45rem;
    margin: 0;
}

.pos-sales-table {
    background: #fff;
    border: 1px solid #e1ddd9;
}

.pos-sales-table thead th {
    background: #f2f2f2;
    color: #3b332e;
    font-size: .82rem;
    text-transform: uppercase;
}

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

    .pos-sidebar-item > .pos-sidebar-label {
        font-size: .62rem;
        max-width: 100%;
        overflow-wrap: anywhere;
    }


    .pos-shell .pos_checkout_area_products,
    .pos-shell .commerce-checkout-products-area,
    .pos-shell .pos_checkout_area_totals,
    .pos-shell .commerce-checkout-sidebar,
    .pos-bottom-bar,
    .commerce-checkout-actions {
        position: static;
        width: auto;
    }

    .pos-bottom-bar,
    .commerce-checkout-actions {
        gap: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 16px;
    }
}

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

    .pos-sidebar {
        min-height: auto;
    }

    .pos-sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .pos-sidebar-brand {
        height: 54px;
    }

    .pos-sidebar-item {
        min-width: 94px;
    }

    .pos-topbar,
    .pos-toolbar,
    .pos-sales-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .pos-client-context {
        justify-content: flex-start;
    }

    .pos-bottom-bar,
    .commerce-checkout-actions {
        grid-template-columns: 1fr;
    }
}
/* Saved Carts */
.sc-page {
    --sc-border: #cfc8c2;
    --sc-dark: #4d453f;
    --sc-orange: #eb5202;
    --sc-orange-dark: #c84400;
    --sc-red: #b42318;
    --sc-muted: #6c625b;
    color: #2f2925;
}

.sc-header {
    align-items: flex-start;
    border-bottom: 3px solid var(--sc-orange);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
}

.sc-header h1,
.sc-header h2,
.sc-cart h2,
.sc-cart h3 {
    color: #322c27;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 4px;
}

.sc-header p,
.sc-cart p,
.sc-save-panel p {
    color: var(--sc-muted);
    margin: 0;
}

.sc-kicker,
.sc-source {
    color: var(--sc-orange);
    display: inline-block;
    font-size: .76rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.sc-message {
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 14px;
    padding: 11px 12px;
}

.sc-message-success {
    background: #e6f4e8;
    border-color: #8fc79b;
    color: #135f24;
}

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

.sc-save-panel {
    align-items: end;
    background: #f5f3f1;
    border: 1px solid var(--sc-border);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.2fr);
    margin-bottom: 16px;
    padding: 14px;
}

.sc-save-panel h2,
.sc-save-panel h3 {
    color: #322c27;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 4px;
}

.sc-save-form,
.pos-save-cart-form {
    display: grid;
    gap: 8px;
}

.sc-save-form {
    grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
}

.pos-save-cart-panel .pos-button-orange,
.sc-save-form .pos-button-orange,
.sc-actions .pos-button-orange,
.sc-actions .pos-button-red,
.sc-header-actions .pos-button-gray,
.sc-header-actions .pos-button-orange {
    min-width: 128px;
    white-space: nowrap;
}

.sc-empty {
    background: #f4f4f4;
    border: 1px dashed var(--sc-border);
    color: var(--sc-muted);
    font-size: 1.1rem;
    font-weight: 800;
    padding: 34px 14px;
    text-align: center;
}

.sc-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
}

.sc-cart {
    background: #fff;
    border: 1px solid var(--sc-border);
}

.sc-cart-head {
    align-items: flex-start;
    background: #f5f3f1;
    border-bottom: 1px solid var(--sc-border);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px;
}

.sc-note {
    background: #fff;
    border-left: 4px solid var(--sc-orange);
    margin-top: 8px !important;
    padding: 6px 8px;
}

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

.sc-actions form {
    margin: 0;
}

.sc-lines {
    overflow-x: auto;
}

.sc-lines table {
    border-collapse: collapse;
    min-width: 640px;
    width: 100%;
}

.sc-lines th {
    background: var(--sc-dark);
    border: 1px solid #3d3631;
    color: #fff;
    font-size: .82rem;
    padding: 8px;
    text-align: left;
    text-transform: uppercase;
}

.sc-lines td {
    border: 1px solid #e0dcd8;
    font-size: .92rem;
    padding: 8px;
    vertical-align: middle;
}

.sc-lines tbody tr:nth-child(even) td {
    background: #fbfaf9;
}

.sc-lines img,
.sc-no-image {
    align-items: center;
    background: #fff;
    border: 1px solid #e5e1dd;
    display: inline-flex;
    height: 48px;
    justify-content: center;
    object-fit: contain;
    text-align: center;
    width: 58px;
}

.sc-no-image {
    color: #8b837d;
    font-size: .68rem;
    font-weight: 800;
}

.sc-lines code {
    color: #322c27;
    display: block;
    font-size: .95rem;
    font-weight: 800;
}

.sc-lines td span {
    color: var(--sc-muted);
    display: block;
    font-size: .78rem;
    margin-top: 2px;
}

.sc-num {
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.pos-save-cart-form .form-control,
.sc-save-form .form-control {
    border-radius: 0;
}

.pos-save-cart-submit {
    width: 100%;
}

.garage-saved-carts {
    margin: 0 auto;
    max-width: 1600px;
}

@media (max-width: 980px) {
    .sc-header,
    .sc-cart-head,
    .sc-header-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .sc-save-panel,
    .sc-save-form,
    .sc-grid {
        grid-template-columns: 1fr;
    }

    .sc-actions {
        justify-content: flex-start;
    }
}
.rw-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: #2f2a27;
}

.rw-header,
.rw-hero,
.rw-layout {
    display: grid;
    gap: 1rem;
}

.rw-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.rw-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.rw-kicker {
    margin: 0 0 .25rem;
    color: #8b5a2b;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.rw-status {
    min-width: 96px;
    padding: .45rem .85rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 700;
}

.rw-status-on {
    background: #e8f6ec;
    color: #176b35;
}

.rw-status-off {
    background: #f4e4df;
    color: #9d2c1d;
}

.rw-layout {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
}

.rw-panel,
.rw-hero {
    border: 1px solid #ddd5ce;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(47, 42, 39, .06);
}

.rw-panel {
    padding: 1rem;
}

.rw-panel-title {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ece6df;
    padding-bottom: .75rem;
}

.rw-panel-title h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.rw-panel-title span,
.rw-muted {
    color: #776f68;
}

.rw-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rw-field-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.rw-field-grid label,
.rw-toggle,
.rw-checks label,
.rw-inline-check {
    display: flex;
    gap: .45rem;
    color: #4a423c;
    font-weight: 600;
}

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

.rw-toggle,
.rw-checks,
.rw-inline-check {
    align-items: center;
}

.rw-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

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

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

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

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

.rw-balance {
    font-size: clamp(3.5rem, 8vw, 7rem);
}

.rw-hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(90deg, #ffffff 0%, #fff7f1 100%);
}

.rw-tier-card {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    border-left: 5px solid #e85d04;
    background: #fff;
    padding: 1rem;
}

.rw-tier-card strong {
    font-size: 1.75rem;
}

.rw-progress {
    height: 18px;
    overflow: hidden;
    border: 1px solid #d8cec5;
    border-radius: 999px;
    background: #f2eee9;
}

.rw-progress > div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #e85d04, #f59f00);
}

.rw-tier-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem;
}

.rw-tier-pill {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    border: 1px solid #ddd5ce;
    border-radius: 6px;
    padding: .8rem;
    background: #fff;
}

.rw-tier-current {
    border-color: #e85d04;
    box-shadow: inset 0 0 0 2px rgba(232, 93, 4, .18);
}

.rw-table {
    margin-bottom: 0;
    vertical-align: middle;
}

.rw-table thead th {
    border-bottom: 2px solid #d8cec5;
    color: #4a423c;
    font-size: .84rem;
    text-transform: uppercase;
}

.rw-tier-form {
    display: grid;
    grid-template-columns: 1.1fr 1.5fr minmax(110px, .8fr) minmax(100px, .7fr) minmax(80px, .55fr) minmax(80px, .55fr) auto;
    gap: .5rem;
    align-items: center;
}

.rw-inline-form {
    margin-top: .5rem;
}

.rw-positive {
    color: #176b35 !important;
    font-weight: 700;
}

.rw-negative {
    color: #a82016 !important;
    font-weight: 700;
}

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

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

    .rw-actions .btn,
    .rw-tier-form .btn {
        width: 100%;
    }
}
.pos-sales-page {
    color: #3b332e;
}

.pos-sales-filter {
    background: #f5f3f1;
    border: 1px solid #d8d2cd;
    border-radius: 4px;
    margin-bottom: 16px;
    padding: 14px;
}

.pos-sales-filter-title {
    align-items: baseline;
    border-bottom: 1px solid #ded8d2;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
}

.pos-sales-filter-title strong {
    font-size: 1.05rem;
}

.pos-sales-filter-title span {
    color: #736b64;
    font-size: .86rem;
}

.pos-sales-filter-row {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(150px, 1fr) minmax(145px, .8fr) minmax(145px, .8fr) minmax(170px, .9fr);
    margin-bottom: 10px;
}

.pos-sales-filter-row-secondary {
    grid-template-columns: minmax(130px, .7fr) minmax(130px, .7fr) minmax(260px, 1.3fr) minmax(230px, 1fr) auto;
    margin-bottom: 0;
}

.pos-sales-filter label {
    color: #514943;
    display: flex;
    flex-direction: column;
    font-size: .82rem;
    font-weight: 800;
    gap: 4px;
    text-transform: uppercase;
}

.pos-sales-current-only {
    align-items: center;
    flex-direction: row !important;
    gap: 8px !important;
    justify-content: center;
    min-height: 42px;
    text-transform: none !important;
}

.pos-sales-current-only input {
    height: 18px;
    width: 18px;
}

.pos-sales-filter-actions {
    align-items: end;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.pos-sales-summary {
    display: grid;
    gap: 10px;
    grid-template-columns: 1.6fr .8fr .8fr;
    margin-bottom: 14px;
}

.pos-sales-summary > div {
    background: #514943;
    border-radius: 3px;
    color: #fff;
    min-height: 64px;
    padding: 10px 12px;
}

.pos-sales-summary span {
    display: block;
    font-size: .75rem;
    opacity: .82;
    text-transform: uppercase;
}

.pos-sales-summary strong {
    display: block;
    font-size: 1.25rem;
    line-height: 1.25;
}

.pos-sales-grid {
    border: 1px solid #d6d2ce;
    border-radius: 3px;
    background: #fff;
}

.pos-sales-table {
    border: 0;
    margin-bottom: 0;
    vertical-align: middle;
}

.pos-sales-table thead th {
    background: #514943;
    border-color: #3b3330;
    color: #fff;
    font-size: .75rem;
    letter-spacing: 0;
    padding: 10px 8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.pos-sales-table tbody td {
    border-color: #e2ddd8;
    font-size: .88rem;
    padding: 9px 8px;
}

.pos-sales-table tbody tr:hover {
    background: #fff8f3;
}

.pos-sales-table code {
    color: #2f2925;
    font-weight: 800;
}

.pos-sales-table small {
    color: #766f69;
    display: block;
    font-size: .72rem;
    margin-top: 2px;
}

.pos-sales-products {
    min-width: 0;
    white-space: normal;
    width: auto;
}

.pos-sales-product-line {
    line-height: 1.35;
    min-width: 0;
    white-space: normal;
}

.pos-sales-product-line + .pos-sales-product-line {
    margin-top: 5px;
}

.pos-sales-product-prefix {
    font-weight: 800;
    white-space: nowrap;
}

.pos-sales-product-description {
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: normal;
}

.pos-sales-total {
    color: #2f2925;
    font-weight: 900;
}

.pos-sales-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: .75rem;
    font-weight: 900;
    justify-content: center;
    min-width: 96px;
    padding: 5px 9px;
    text-align: center;
}

.pos-sales-status-submitted {
    background: #e8f0ff;
    color: #174ea6;
}

.pos-sales-status-draft {
    background: #f1f1f1;
    color: #514943;
}

.pos-sales-status-preparing {
    background: #fff2d8;
    color: #8a4c00;
}

.pos-sales-status-prepared {
    background: #e8f6ec;
    color: #176b35;
}

.pos-sales-status-cancelled {
    background: #f8dfdc;
    color: #9d2c1d;
}

.pos-sales-actions {
    display: flex;
    gap: 6px;
}

.pos-sales-action {
    align-items: center;
    background: #eb5202;
    border: 0;
    color: #fff;
    display: inline-flex;
    font-size: .8rem;
    font-weight: 800;
    justify-content: center;
    min-height: 30px;
    min-width: 68px;
    padding: 5px 8px;
    text-decoration: none;
}

.pos-sales-action:hover {
    background: #c84400;
    color: #fff;
}

.pos-sales-action-disabled,
.pos-sales-action-disabled:hover {
    background: #ded8d2;
    color: #6f6760;
    cursor: not-allowed;
}

.pos-sales-empty {
    align-items: center;
    background: #fff7c2;
    border: 1px solid #e9d98b;
    border-radius: 3px;
    color: #3b332e;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 12px;
}

@media (max-width: 1180px) {
    .pos-sales-filter-row,
    .pos-sales-filter-row-secondary,
    .pos-sales-summary {
        grid-template-columns: 1fr 1fr;
    }

    .pos-sales-filter-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .pos-sales-filter-actions .pos-button-orange,
    .pos-sales-filter-actions .pos-button-gray {
        flex: 1 1 auto;
    }
}

@media (max-width: 760px) {
    .pos-sales-filter-row,
    .pos-sales-filter-row-secondary,
    .pos-sales-summary {
        grid-template-columns: 1fr;
    }

    .pos-sales-filter-title,
    .pos-sales-empty {
        align-items: stretch;
        flex-direction: column;
    }

    .pos-sales-actions {
        flex-direction: column;
    }
}

.op-notification-controls {
  align-items: center;
  background: #fafafa;
  border: 1px solid var(--op-border);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: -4px 0 14px;
  padding: 10px 12px;
}

.op-notification-controls > div {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.op-notification-controls strong {
  color: #2f2a26;
}

.op-notification-controls span {
  color: #625b55;
}

.op-new-order-alert {
  align-items: center;
  background: #fff3cd;
  border: 1px solid #e6c76c;
  color: #5c4300;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 10px 12px;
  text-decoration: none;
}

.op-new-order-alert:hover {
  color: #3f2e00;
  text-decoration: none;
}

@media (max-width: 760px) {
  .op-notification-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .op-notification-controls .op-btn {
    width: 100%;
  }
}
/* Store notifications */
.store-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    margin-left: 0.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.store-notifications-list {
    display: grid;
    gap: 0.85rem;
}

.store-notification-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-left: 5px solid #6c757d;
    border-radius: 0.5rem;
    background: #fff;
}

.store-notification-card.is-unread {
    border-left-color: #fd7e14;
    box-shadow: 0 0.5rem 1rem rgba(33, 37, 41, 0.06);
}

.store-notification-card.is-read {
    color: #6c757d;
    background: #f8f9fa;
}

.store-notification-main h2 {
    margin: 0.15rem 0 0.35rem;
    font-size: 1.05rem;
}

.store-notification-main p {
    margin: 0;
}

.store-notification-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    color: #6c757d;
    font-size: 0.85rem;
}

.store-notification-dot {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #fff3cd;
    color: #7a4b00;
    font-weight: 700;
}

.store-notification-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .store-notification-card {
        grid-template-columns: 1fr;
    }

    .store-notification-actions {
        justify-content: flex-start;
    }
}
.store-live-notification-region {
    position: fixed;
    top: 4.75rem;
    right: 1rem;
    z-index: 1080;
    display: flex;
    width: min(390px, calc(100vw - 2rem));
    flex-direction: column;
    align-items: flex-end;
    gap: .65rem;
    pointer-events: none;
}

.store-live-sound-menu-item {
    text-align: left;
}

.store-live-sound-menu-item.is-muted {
    color: #6c757d;
}

.store-live-toast-container {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: .75rem;
}

.store-live-toast {
    pointer-events: auto;
    overflow: hidden;
    border: 1px solid #e7eaf0;
    border-left: 5px solid #e85d04;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(20, 25, 33, .18);
    color: #222831;
    padding: .9rem;
}

.store-live-toast-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .45rem;
}

.store-live-toast-close {
    border: 0;
    background: transparent;
    color: #6c757d;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0 .1rem;
}

.store-live-toast-garage {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .45rem;
}

.store-live-toast-details {
    display: grid;
    gap: .2rem;
    color: #4c5563;
    font-size: .85rem;
    margin-bottom: .75rem;
}

.store-live-toast-link {
    width: 100%;
}
/* POS Saved Carts visual refinement */
:is(.commerce-saved-carts-panel, .pos-saved-carts-panel) {
    padding-top: 18px;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-module-header {
    border-bottom: 1px solid #d8d2cb;
    margin-bottom: 14px;
    padding-bottom: 14px;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-module-header h1 {
    font-size: 28px;
    font-weight: 650;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-module-header p {
    color: var(--sc-muted);
    font-size: 14px;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-client-card {
    align-items: center;
    background: #f7f6f4;
    border: 1px solid var(--sc-border);
    border-left: 4px solid var(--sc-orange);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 13px 14px;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-client-card h2 {
    color: #322c27;
    font-size: 1.35rem;
    font-weight: 750;
    margin: 0;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-current-cart {
    background: #ffffff;
    border: 1px solid #d6d2ce;
    min-width: 275px;
    padding: .55rem .75rem;
    text-align: left;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-current-cart span:first-child {
    color: var(--sc-muted);
    display: block;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: .18rem;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-current-cart strong {
    color: #2f2925;
    display: block;
    font-size: .95rem;
    line-height: 1.25;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-current-cart-total.has-total {
    color: var(--sc-orange-dark);
    font-weight: 900;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-save-panel {
    align-items: start;
    background: #f4f4f4;
    border-left: 4px solid var(--sc-orange);
    grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr);
    padding: 16px;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-save-copy p {
    font-size: .92rem;
    line-height: 1.35;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-save-help {
    color: #8a4b00;
    font-weight: 700;
    margin-top: .45rem;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-save-form {
    align-items: end;
    grid-template-columns: minmax(170px, 1fr) minmax(220px, 1.2fr) auto;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-save-form label {
    display: grid;
    gap: .25rem;
    margin: 0;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-save-form label span {
    color: #554c45;
    font-size: .78rem;
    font-weight: 800;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-save-button {
    min-height: 38px;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-empty {
    display: grid;
    gap: .35rem;
    justify-items: center;
    line-height: 1.35;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-empty span,
:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-empty p {
    color: var(--sc-muted);
    font-size: .95rem;
    font-weight: 600;
    margin: 0;
    max-width: 780px;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-cart {
    border-color: #d6d2ce;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-cart-summary {
    align-items: start;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(190px, 1.2fr) minmax(130px, .85fr) minmax(90px, .55fr) minmax(70px, .45fr) minmax(110px, .65fr) minmax(180px, 1fr) auto;
    padding: 12px;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-cart-name h3 {
    font-size: 1.05rem;
    line-height: 1.2;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-cell-label {
    color: var(--sc-muted);
    display: block;
    font-size: .72rem;
    font-weight: 800;
    margin-bottom: .16rem;
    text-transform: uppercase;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-cart-total {
    color: var(--sc-orange-dark);
    font-weight: 900;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-cart-note {
    min-width: 0;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-cart-note span:last-child {
    color: #514943;
    display: block;
    font-size: .88rem;
    overflow-wrap: anywhere;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-actions {
    align-items: start;
    justify-content: flex-end;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-action-import,
:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-action-details,
:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-action-delete {
    min-width: 96px;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-details {
    position: relative;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-details summary {
    cursor: pointer;
    list-style: none;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-details summary::-webkit-details-marker {
    display: none;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-details[open] {
    grid-column: 1 / -1;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-details[open] .sc-lines {
    margin-top: 10px;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-lines {
    border: 1px solid #d6d2ce;
    grid-column: 1 / -1;
}

@media (max-width: 1180px) {
    :is(.commerce-saved-carts, .pos-saved-carts-page) .sc-cart-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :is(.commerce-saved-carts, .pos-saved-carts-page) .sc-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    :is(.commerce-saved-carts, .pos-saved-carts-page) .sc-client-card,
    :is(.commerce-saved-carts, .pos-saved-carts-page) .sc-save-panel,
    :is(.commerce-saved-carts, .pos-saved-carts-page) .sc-save-form,
    :is(.commerce-saved-carts, .pos-saved-carts-page) .sc-cart-summary {
        grid-template-columns: 1fr;
    }

    :is(.commerce-saved-carts, .pos-saved-carts-page) .sc-client-card {
        align-items: stretch;
        display: grid;
    }

    :is(.commerce-saved-carts, .pos-saved-carts-page) .sc-current-cart {
        min-width: 0;
    }
}

/* POS Saved Carts MyPartFinder-style header */
:is(.commerce-saved-carts, .pos-saved-carts-page) {
    --sc-accent: #eb5202;
    --sc-accent-strong: #c84400;
    --sc-border: #d6d2ce;
    --sc-muted: #6d625a;
    --sc-text: #2f2925;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-hero {
    align-items: center;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: .55rem;
    padding-bottom: .7rem;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .mpf-title-wrap {
    align-items: center;
    display: flex;
    gap: .85rem;
    min-width: 0;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .mpf-store-logo {
    display: block;
    flex: 0 0 auto;
    height: 54px;
    max-width: 160px;
    object-fit: contain;
    width: auto;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .mpf-kicker {
    color: var(--sc-muted);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0 0 .2rem;
    text-transform: uppercase;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .mpf-header h1 {
    color: #3b332e;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.1;
    margin: 0;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-hero-status {
    background: #f4f4f4;
    border: 1px solid var(--sc-border);
    border-left: 4px solid var(--sc-accent);
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
    color: var(--sc-text);
    display: block;
    font-size: .92rem;
    min-width: 275px;
    padding: .55rem .75rem;
    text-align: left;
}


:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-hero-status-line {
    color: var(--sc-text);
    display: block;
    font-weight: 800;
    line-height: 1.25;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-hero-description {
    color: var(--sc-muted);
    font-size: .95rem;
    margin: 0 0 1rem;
}

:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-save-panel {
    margin-top: 1rem;
}

@media (max-width: 800px) {
    :is(.commerce-saved-carts, .pos-saved-carts-page) .sc-hero {
        align-items: stretch;
        display: grid;
        gap: .75rem;
    }

    :is(.commerce-saved-carts, .pos-saved-carts-page) .mpf-store-logo {
        height: 44px;
        max-width: 130px;
    }

    :is(.commerce-saved-carts, .pos-saved-carts-page) .sc-hero-status {
        min-width: 0;
        width: 100%;
    }
}
/* Shared POS customer selector */
.commerce-workspace-customer,
.pos-customer-button {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #d6d2ce;
    border-left: 4px solid #eb5202;
    border-radius: 3px;
    color: #2f2925;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: .12rem;
    min-width: 220px;
    padding: .5rem .7rem;
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.commerce-workspace-customer {
    cursor: default;
    transition: none;
}


.pos-customer-button:hover,
.pos-customer-button:focus-visible {
    border-color: #eb5202;
    box-shadow: 0 0 0 3px rgba(235, 82, 2, .12);
    outline: 0;
}

.pos-customer-button:active {
    transform: translateY(1px);
}

.commerce-workspace-customer-label,
.pos-customer-button-label {
    color: #6d625a;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: uppercase;
}

.commerce-workspace-customer strong,
.pos-customer-button strong {
    color: #2f2925;
    font-size: .95rem;
    font-weight: 900;
    line-height: 1.18;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.commerce-workspace-customer small {
    color: #6d625a;
    font-size: .78rem;
    line-height: 1.2;
    margin-top: .18rem;
}

.pos-module-current-cart .pos-customer-button,
:is(.commerce-saved-carts, .pos-saved-carts-page) .sc-hero-status .pos-customer-button {
    margin-bottom: .35rem;
    width: 100%;
}

.pos-customer-modal-backdrop {
    background: rgba(35, 31, 28, .42);
    inset: 0;
    position: fixed;
    z-index: 1100;
}

.pos-customer-modal {
    background: #ffffff;
    border: 1px solid #d6d2ce;
    box-shadow: 0 24px 70px rgba(35, 31, 28, .28);
    color: #2f2925;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    left: 50%;
    max-height: min(760px, calc(100vh - 48px));
    max-width: min(860px, calc(100vw - 32px));
    overflow: auto;
    padding: 1.15rem;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 760px;
    z-index: 1110;
}

.pos-customer-modal[hidden],
.pos-customer-modal-backdrop[hidden] {
    display: none;
}

body.pos-customer-modal-open {
    overflow: hidden;
}

.pos-customer-modal-head,
.pos-customer-modal-foot {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.pos-customer-modal-head p {
    color: #6d625a;
    font-size: .78rem;
    font-weight: 800;
    margin: 0 0 .15rem;
    text-transform: uppercase;
}

.pos-customer-modal-head h2 {
    font-size: 1.35rem;
    line-height: 1.15;
    margin: 0;
}

.pos-customer-modal-close {
    background: transparent;
    border: 0;
    color: #6d625a;
    cursor: pointer;
    font-size: 1.45rem;
    line-height: 1;
    padding: .25rem;
}

.pos-customer-modal-close:hover,
.pos-customer-modal-close:focus-visible {
    color: #2f2925;
    outline: 0;
}

.pos-customer-modal-actions {
    display: flex;
}

.pos-customer-counter,
.pos-customer-done,
.pos-customer-search-row button {
    background: #eb5202;
    border: 1px solid #d94900;
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    padding: .58rem .85rem;
}

.pos-customer-counter {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    min-width: 230px;
    text-align: left;
}

.pos-customer-counter span {
    font-size: .72rem;
    opacity: .86;
    text-transform: uppercase;
}

.pos-customer-search label {
    color: #3b332e;
    display: block;
    font-weight: 800;
    margin-bottom: .35rem;
}

.pos-customer-search-row {
    display: flex;
    gap: .45rem;
}

.pos-customer-search-row input {
    border: 1px solid #cfc8c1;
    flex: 1 1 auto;
    min-width: 0;
    padding: .58rem .7rem;
}

.pos-customer-message {
    color: #6d625a;
    min-height: 1.2rem;
}

.pos-customer-message.is-error {
    color: #b00020;
    font-weight: 800;
}

.pos-customer-results {
    border: 1px solid #e1ddd8;
    display: grid;
    max-height: 360px;
    overflow: auto;
}

.pos-customer-result {
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid #e8e4df;
    color: #2f2925;
    cursor: pointer;
    display: grid;
    gap: .18rem;
    padding: .72rem .85rem;
    text-align: left;
}

.pos-customer-result:last-child {
    border-bottom: 0;
}

.pos-customer-result:hover,
.pos-customer-result:focus-visible {
    background: #fff7f1;
    outline: 0;
}

.pos-customer-result span,
.pos-customer-empty {
    color: #6d625a;
    font-size: .9rem;
}

.pos-customer-empty {
    padding: .85rem;
}

@media (max-width: 800px) {
    .pos-customer-search-row {
        display: grid;
    }

    .pos-customer-button {
        min-width: 0;
        width: 100%;
    }
}
/* Shared POS module hero */
.commerce-workspace-mode-garage {
    --commerce-workspace-gutter: 28px;
}

.commerce-workspace-mode-garage .pos-body {
    padding-inline: var(--commerce-workspace-gutter);
}

.commerce-workspace-mode-garage .pos-body > :is(.pos-module-panel, .container-fluid) {
    padding-inline: 0;
}

.commerce-workspace-header,
.pos-module-hero {
    align-items: center;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: .55rem;
    padding-bottom: .7rem;
}

.commerce-workspace-mode-garage > .commerce-workspace-header {
    margin: 24px var(--commerce-workspace-gutter) .55rem;
}


.commerce-workspace-brand,
.pos-module-hero-brand {
    align-items: center;
    display: flex;
    gap: .85rem;
    min-width: 0;
}

.commerce-workspace-logo,
.pos-module-logo {
    display: block;
    flex: 0 0 auto;
    height: 54px;
    max-width: 160px;
    object-fit: contain;
    width: auto;
}

.commerce-workspace-eyebrow,
.pos-module-eyebrow {
    color: #6d625a;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0 0 .2rem;
    text-transform: uppercase;
}

.commerce-workspace-header .commerce-workspace-title,
.pos-module-hero .pos-module-title {
    color: #3b332e;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.1;
    margin: 0;
}

.commerce-workspace-actions,
.pos-module-hero-actions {
    align-items: stretch;
    display: flex;
    flex: 1 1 420px;
    gap: .7rem;
    justify-content: flex-end;
    min-width: min(520px, 48vw);
}

.commerce-workspace-actions .commerce-workspace-customer,
.commerce-workspace-actions .pos-customer-button,
.pos-module-hero-actions .pos-customer-button {
    flex: 1 1 220px;
    margin-bottom: 0;
    min-width: 210px;
    width: auto;
}

.commerce-workspace-cart-summary,
.pos-module-current-cart,
.pos-module-current-order {
    background: #f4f4f4;
    border: 1px solid #d6d2ce;
    border-left: 4px solid #eb5202;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
    color: #2f2925;
    display: block;
    flex: 1 1 230px;
    font-size: .92rem;
    min-width: 230px;
    padding: .55rem .75rem;
    text-align: left;
}

.pos-module-current-order[type="button"] {
    cursor: pointer;
}

.pos-module-current-order:not(button) {
    cursor: default;
}

.pos-module-current-customer {
    color: #6d625a;
    display: block;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: .18rem;
}

.commerce-workspace-cart-summary [data-order-status],
.pos-module-current-order [data-order-status],
.commerce-workspace-cart-copy,
.pos-module-current-summary {
    color: #2f2925;
    display: block;
    font-weight: 800;
    line-height: 1.25;
}

.commerce-workspace-cart-total.has-total,
.pos-module-current-total.has-total {
    color: #c84400;
    font-weight: 900;
    white-space: nowrap;
}

.commerce-workspace-description,
.pos-module-description {
    color: #6d625a;
    font-size: .95rem;
    margin: 0 0 1rem;
}

@media (max-width: 800px) {
    .commerce-workspace-header,
    .pos-module-hero {
        align-items: stretch;
        display: grid;
        gap: .75rem;
    }

    .commerce-workspace-logo,
    .pos-module-logo {
        height: 44px;
        max-width: 130px;
    }

    .commerce-workspace-actions,
    .pos-module-hero-actions {
        display: grid;
        min-width: 0;
        width: 100%;
    }

    .commerce-workspace-actions .commerce-workspace-customer,
    .pos-module-hero-actions .pos-customer-button,
    .commerce-workspace-cart-summary,
    .pos-module-current-cart,
    .pos-module-current-order {
        min-width: 0;
        width: 100%;
    }

    .commerce-workspace-mode-garage {
        --commerce-workspace-gutter: 18px;
    }
}
.pos-checkout-page,
.commerce-checkout-page {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 110px);
    padding: 18px;
}

.pos-checkout-page .pos_checkout_main,
.commerce-checkout-page .commerce-checkout-main {
    border: 0;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
}

.pos-checkout-page .pos-message-strip,
.commerce-checkout-page .commerce-checkout-message-strip {
    margin-bottom: 12px;
    min-height: 46px;
    padding: 8px 12px;
}

.pos-checkout-page #posInstruction,
.commerce-checkout-page .commerce-checkout-instruction {
    font-size: 1rem;
}

.pos-checkout-page #posMessage,
.commerce-checkout-page .commerce-checkout-message {
    font-size: .95rem;
}

.pos-checkout-page .pos_checkout_area_products,
.commerce-checkout-page .commerce-checkout-products-area,
.pos-checkout-page .pos_checkout_area_totals,
.commerce-checkout-page .commerce-checkout-sidebar {
    top: 70px;
}

.pos-finalization-backdrop,
.commerce-finalization-backdrop {
    background: rgba(24, 19, 16, .58);
    inset: 0;
    position: fixed;
    z-index: 1070;
}

.pos-finalization-modal,
.commerce-finalization-modal,
.commerce-finalization-page-shell {
    background: #fff;
    border: 1px solid #d8d0c8;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(24, 19, 16, .3);
    display: flex;
    flex-direction: column;
    max-height: min(92vh, 820px);
    overflow: hidden;
    width: min(760px, calc(100vw - 2rem));
}

.pos-finalization-modal,
.commerce-finalization-modal {
    left: 50%;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1080;
}

.commerce-finalization-page {
    box-sizing: border-box;
    display: grid;
    justify-items: center;
    padding: clamp(1rem, 2vw, 2rem);
    width: 100%;
}

.commerce-finalization-page-shell {
    max-height: none;
    position: relative;
    width: min(760px, 100%);
}

.pos-finalization-modal[hidden],
.commerce-finalization-modal[hidden],
.commerce-finalization-page-shell[hidden],
.pos-finalization-backdrop[hidden],
.commerce-finalization-backdrop[hidden] {
    display: none;
}

body.pos-finalization-open,
body.commerce-finalization-open {
    overflow: hidden;
}

.pos-finalization-head,
.commerce-finalization-head,
.pos-finalization-foot,
.commerce-finalization-foot {
    align-items: center;
    background: #fff;
    display: flex;
    flex: 0 0 auto;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.pos-finalization-head,
.commerce-finalization-head {
    border-bottom: 1px solid #e5dfd9;
}

.pos-finalization-head h2,
.commerce-finalization-head h2 {
    font-size: 1.35rem;
    margin: 0;
}

.pos-finalization-kicker,
.commerce-finalization-kicker {
    color: #a64b16;
    display: block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pos-finalization-close,
.commerce-finalization-close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #3b332e;
    display: inline-flex;
    font-size: 1.8rem;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.pos-finalization-close:hover,
.pos-finalization-close:focus-visible,
.commerce-finalization-close:hover,
.commerce-finalization-close:focus-visible {
    background: #f2ece7;
}

.pos-finalization-body,
.commerce-finalization-body {
    display: grid;
    gap: 1rem;
    overflow-y: auto;
    padding: 1rem 1.25rem;
}

.pos-finalization-message,
.commerce-finalization-message {
    color: #555;
    min-height: 1.25rem;
}

.pos-finalization-message.is-error,
.commerce-finalization-message.is-error {
    color: #a51d22;
    font-weight: 700;
}

.pos-finalization-section,
.commerce-finalization-section {
    border: 1px solid #e5dfd9;
    border-radius: 10px;
    padding: .9rem;
}

.pos-finalization-section h3,
.commerce-finalization-section h3 {
    font-size: 1rem;
    margin: 0 0 .75rem;
}

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

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

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

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

.pos-finalization-summary .pos-finalization-total,
.pos-finalization-summary .commerce-finalization-total,
.commerce-finalization-summary .pos-finalization-total,
.commerce-finalization-summary .commerce-finalization-total {
    border-top: 1px solid #ded8d2;
    font-size: 1.08rem;
    grid-column: 1 / -1;
    margin-top: .25rem;
    padding-top: .65rem;
}

.pos-finalization-fields,
.commerce-finalization-fields {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pos-finalization-section label,
.commerce-finalization-section label {
    display: block;
    font-weight: 700;
    margin-bottom: .3rem;
}

.pos-finalization-hint,
.commerce-finalization-hint {
    color: #6d625a;
    font-size: .85rem;
    margin: -.35rem 0 .7rem;
}

.pos-finalization-hint.is-error,
.commerce-finalization-hint.is-error {
    color: #a51d22;
    font-weight: 700;
}

.pos-finalization-conditional,
.commerce-finalization-conditional {
    margin-top: .75rem;
}

.pos-finalization-change,
.commerce-finalization-change {
    display: flex;
    justify-content: space-between;
    margin-top: .4rem;
}

.pos-finalization-foot,
.commerce-finalization-foot {
    border-top: 1px solid #e5dfd9;
    gap: .75rem;
    justify-content: flex-end;
}

@media (max-width: 600px) {
    .pos-finalization-modal,
    .commerce-finalization-modal {
        border-radius: 10px 10px 0 0;
        bottom: 0;
        left: .5rem;
        max-height: calc(100vh - .5rem);
        right: .5rem;
        top: auto;
        transform: none;
        width: auto;
    }

    .commerce-finalization-page {
        padding: .5rem;
    }

    .commerce-finalization-page-shell {
        border-radius: 10px;
        width: 100%;
    }

    .pos-finalization-fields,
    .commerce-finalization-fields,
    .pos-finalization-summary,
    .commerce-finalization-summary {
        grid-template-columns: 1fr;
    }

    .pos-finalization-summary .pos-finalization-total,
    .pos-finalization-summary .commerce-finalization-total,
    .commerce-finalization-summary .pos-finalization-total,
    .commerce-finalization-summary .commerce-finalization-total {
        grid-column: auto;
    }

    .pos-finalization-foot,
    .commerce-finalization-foot {
        align-items: stretch;
        flex-direction: column;
    }

    .pos-finalization-foot .btn,
    .commerce-finalization-foot .btn {
        width: 100%;
    }
}

.pos-sales-page .pos-module-description {
    margin-bottom: 16px;
}

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

.pos-tax-details {
    display: grid;
    gap: .25rem;
    margin: -.35rem 0 .35rem;
}

.pos-tax-details:empty {
    display: none;
}

.pos-tax-details div {
    align-items: center;
    color: #6d625a;
    display: flex;
    font-size: .82rem;
    justify-content: space-between;
}

.pos-tax-details strong {
    color: #2f2925;
    font-size: .82rem;
}

@media (max-width: 1100px) {
    .pos-checkout-page .pos_checkout_main,
    .commerce-checkout-page .commerce-checkout-main {
        min-height: 0;
    }

    .pos-checkout-page .pos_checkout_area_products,
    .commerce-checkout-page .commerce-checkout-products-area,
    .pos-checkout-page .pos_checkout_area_totals,
    .commerce-checkout-page .commerce-checkout-sidebar {
        top: auto;
    }
}

@media (max-width: 800px) {
    .commerce-workspace-header,
    .pos-module-hero {
        align-items: stretch;
        display: grid;
        gap: .75rem;
    }

    .commerce-workspace-logo,
    .pos-module-logo {
        height: 44px;
        max-width: 130px;
    }

    .commerce-workspace-cart-summary,
    .pos-module-current-cart {
        min-width: 0;
        width: 100%;
    }
}
/* POS customer management modal */
.pos-customer-modal {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 3rem);
    max-width: 1120px;
    overflow: hidden;
    width: min(1120px, calc(100vw - 2rem));
}

.pos-customer-tabs {
    border-bottom: 1px solid #ded8d2;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin: .25rem 0 .75rem;
}

.pos-customer-tab {
    background: #f4f1ee;
    border: 1px solid #d8d1ca;
    border-bottom: 0;
    color: #2f2925;
    cursor: pointer;
    font-weight: 800;
    padding: .7rem .95rem;
}

.pos-customer-tab.is-active,
.pos-customer-tab:hover,
.pos-customer-tab:focus-visible {
    background: #ffffff;
    box-shadow: inset 0 3px 0 #eb5202;
    outline: 0;
}

.pos-customer-panel {
    min-height: 0;
    overflow: auto;
    padding-right: .25rem;
}

.pos-customer-panel[hidden] {
    display: none;
}

.pos-customer-current-card {
    background: #f8f6f3;
    border: 1px solid #dfdad4;
    display: grid;
    gap: .2rem;
    margin-bottom: .75rem;
    padding: .85rem;
}

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

.pos-customer-current-card strong,
.pos-customer-details-summary strong {
    color: #2f2925;
    font-size: 1.05rem;
}

.pos-customer-current-card em {
    color: #5f5650;
    font-style: normal;
}

.pos-customer-message.is-success {
    color: #1f6b42;
}

.pos-customer-results {
    border: 1px solid #e1ddd8;
    display: grid;
    max-height: 360px;
    overflow: auto;
}

.pos-customer-result {
    align-items: stretch;
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid #e8e4df;
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: .7rem .85rem;
}

.pos-customer-result:last-child {
    border-bottom: 0;
}

.pos-customer-result-main {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: grid;
    gap: .2rem;
    min-width: 0;
    padding: 0;
    text-align: left;
}

.pos-customer-result-main:hover strong,
.pos-customer-result-main:focus-visible strong {
    color: #eb5202;
}

.pos-customer-result-main:focus-visible {
    outline: 2px solid rgba(235, 82, 2, .35);
    outline-offset: 3px;
}

.pos-customer-result-main strong,
.pos-customer-result-main span {
    overflow-wrap: anywhere;
}

.pos-customer-result-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    justify-content: flex-end;
}

.pos-customer-result-actions button,
.pos-customer-form-actions button,
.pos-customer-details-summary button {
    background: #eb5202;
    border: 1px solid #d84b00;
    color: #ffffff;
    cursor: pointer;
    font-weight: 900;
    padding: .58rem .8rem;
}

.pos-customer-result-actions button:hover,
.pos-customer-result-actions button:focus-visible,
.pos-customer-form-actions button:hover,
.pos-customer-form-actions button:focus-visible,
.pos-customer-details-summary button:hover,
.pos-customer-details-summary button:focus-visible {
    background: #cf4700;
    outline: 0;
}

.pos-customer-badge {
    background: #e8f2ff;
    border: 1px solid #bfd6f3;
    color: #1c4d7a;
    font-size: .78rem;
    font-weight: 900;
    padding: .32rem .45rem;
}

.pos-customer-form {
    display: grid;
    gap: .9rem;
}

.pos-customer-form-grid {
    display: grid;
    gap: .8rem 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pos-customer-field {
    color: #2f2925;
    display: grid;
    gap: .3rem;
    font-weight: 800;
}

.pos-customer-field-wide {
    grid-column: 1 / -1;
}

.pos-customer-field input,
.pos-customer-field select {
    border: 1px solid #cfc8c0;
    color: #2f2925;
    font: inherit;
    min-height: 2.35rem;
    padding: .45rem .55rem;
    width: 100%;
}

.pos-customer-field input:disabled,
.pos-customer-field select:disabled {
    background: #f4f1ee;
    color: #6d625a;
}

.pos-customer-field-check {
    align-items: center;
    display: flex;
    gap: .55rem;
}

.pos-customer-field-check input {
    min-height: 0;
    width: auto;
}

.pos-customer-details-summary {
    align-items: center;
    border-bottom: 1px solid #ded8d2;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding-bottom: .75rem;
}

.pos-customer-counter-readonly {
    background: #fff7e8;
    border: 1px solid #f0cf8c;
    color: #60430f;
    font-weight: 800;
    padding: .7rem .85rem;
}

.pos-customer-readonly-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pos-customer-readonly-item {
    background: #f8f6f3;
    border: 1px solid #dfdad4;
    display: grid;
    gap: .2rem;
    padding: .75rem;
}

.pos-customer-form-actions {
    display: flex;
    justify-content: flex-end;
}

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

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

    .pos-customer-result-actions,
    .pos-customer-details-summary,
    .pos-customer-form-actions {
        align-items: stretch;
        flex-direction: column;
    }
}
/* Packing table */
.op-packing-grid {
  min-width: 1560px;
}

.op-packing-grid th,
.op-packing-grid td {
  vertical-align: middle;
}

.op-packed-input {
  font-size: 20px;
  font-weight: 700;
  min-height: 44px;
  text-align: center;
  width: 86px;
}

.op-pack-step,
.op-pack-controls {
  text-align: center;
  white-space: nowrap;
}

.op-pack-adjust {
  background: #efefef;
  border: 1px solid #adadad;
  border-radius: 4px;
  color: #24201c;
  font-size: 15px;
  font-weight: 800;
  min-height: 34px;
  min-width: 38px;
  padding: 4px 8px;
}

.op-pack-adjust:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.op-packing-product {
  max-width: 460px;
  min-width: 300px;
}

.packing-status {
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  min-width: 118px;
  padding: 7px 12px;
}

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

.packing-status-missing,
.packing-status-partial {
  background: #d98200;
  color: #fff;
}

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

.op-parcel-panel {
  background: #fafafa;
  border: 1px solid var(--op-border);
  border-top: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  padding: 12px;
}

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

.op-packing-commit-panel {
  align-items: end;
  grid-template-columns: minmax(320px, 1fr) auto;
}

.op-commit-note {
  min-width: 0;
}

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

@media (max-width: 1100px) {
  .op-parcel-panel,
  .op-packing-commit-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .op-parcel-panel,
  .op-packing-commit-panel {
    grid-template-columns: 1fr;
  }

  .op-commit-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
/* Store product-line margins and ledger accounts */
.product-lines-page {
  box-sizing: border-box;
  max-width: none;
  min-width: 0;
  width: 100%;
}

.product-lines-page .card,
.product-lines-settings-layout,
.product-lines-settings-grid {
  min-width: 0;
}

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

.product-lines-settings-grid {
  align-items: end;
  display: grid;
  gap: .75rem 1rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  width: 100%;
}

.product-lines-settings-field {
  min-width: 0;
}

.product-lines-settings-margin,
.product-lines-settings-method {
  grid-column: span 3;
}

.product-lines-settings-customer {
  grid-column: span 4;
}

.product-lines-settings-save {
  grid-column: span 2;
}

.product-lines-settings-heading {
  grid-column: 1 / -1;
  margin-top: .25rem;
}

.product-lines-settings-gl {
  grid-column: span 4;
}

.product-lines-settings-field input,
.product-lines-settings-field select {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.product-lines-example {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.product-lines-table-card-body {
  min-width: 0;
  padding: .75rem;
}

.product-lines-table-wrapper {
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.product-lines-table-wrapper:focus-visible {
  outline: 3px solid rgba(13, 110, 253, .3);
  outline-offset: 2px;
}

.product-lines-table {
  min-width: 1320px;
  table-layout: fixed;
  width: 100%;
}

.product-lines-table .product-lines-col-code {
  width: 60px;
}

.product-lines-table .product-lines-col-description {
  width: 180px;
}

.product-lines-table .product-lines-col-products {
  width: 80px;
}

.product-lines-table .product-lines-col-margin {
  width: 86px;
}

.product-lines-table .product-lines-col-hidden {
  width: 80px;
}

.product-lines-table .product-lines-col-gl {
  width: 130px;
}

.product-lines-table .product-lines-col-save {
  width: 100px;
}

.product-lines-table th,
.product-lines-table td {
  box-sizing: border-box;
  padding: .35rem .3rem;
}

.product-lines-table thead th {
  background: var(--bs-tertiary-bg, #f8f9fa);
  line-height: 1.15;
  position: sticky;
  top: 0;
  vertical-align: middle;
  white-space: normal;
  z-index: 2;
}

.product-lines-table input.form-control {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.product-lines-table code,
.product-lines-description {
  overflow-wrap: anywhere;
}

.product-lines-description {
  line-height: 1.2;
  white-space: normal;
}

.product-lines-save-column .btn {
  width: 100%;
}

@media (max-width: 1499.98px) {
  .product-lines-settings-card .card-body,
  .product-lines-table-card-body {
    padding: .75rem;
  }

  .product-lines-table {
    font-size: .875rem;
  }
}

@media (max-width: 1199.98px) {
  .product-lines-settings-margin,
  .product-lines-settings-method,
  .product-lines-settings-customer,
  .product-lines-settings-save,
  .product-lines-settings-gl {
    grid-column: span 6;
  }

  .product-lines-table .product-lines-save-column {
    background: var(--bs-body-bg, #fff);
    border-left: 1px solid var(--bs-border-color, #dee2e6);
    box-shadow: -5px 0 8px rgba(33, 37, 41, .08);
    position: sticky;
    right: 0;
    z-index: 3;
  }

  .product-lines-table thead .product-lines-save-column {
    background: var(--bs-tertiary-bg, #f8f9fa);
    z-index: 4;
  }

  .product-lines-table.table-striped > tbody > tr:nth-of-type(odd) > .product-lines-save-column {
    background: #f2f2f2;
  }
}

@media (max-width: 767.98px) {
  .product-lines-settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-lines-settings-margin,
  .product-lines-settings-method,
  .product-lines-settings-customer,
  .product-lines-settings-save,
  .product-lines-settings-heading,
  .product-lines-settings-gl {
    grid-column: 1;
  }

  .product-lines-settings-card .card-body,
  .product-lines-table-card-body {
    padding: .625rem;
  }
}
