.sales-pager-row > td { background:#faf7f2 !important; padding:10px 12px !important; }
.sales-pager { display:flex; gap:10px; align-items:center; justify-content:flex-end; flex-wrap:wrap; font-size:12px; color:#685e55; }
.sales-pager span { margin-right:auto; }
.sales-pager button { min-width:66px; padding:6px 10px; }
.staff-products .col-resizer { width:12px; right:-5px; cursor:col-resize; }
.staff-products th:hover .col-resizer::after { background:#fff; width:2px; }

/* 2026-10-15: Excel-style filter values. Global `label input {width:100%}` previously
 * stretched checkboxes to the entire popover width, hiding every text label. */
.supplier-filter-menu .supplier-filter-options {
  width:100%; box-sizing:border-box; max-height:245px; overflow-y:auto; overflow-x:hidden;
}
.supplier-filter-menu .supplier-filter-option {
  display:grid; grid-template-columns:18px minmax(0,1fr); align-items:center;
  column-gap:9px; width:100%; min-height:32px; margin:0; padding:5px 7px;
  box-sizing:border-box; color:#29251e; cursor:pointer;
}
.supplier-filter-menu .supplier-filter-option input[type="checkbox"] {
  display:block; width:16px !important; min-width:16px; max-width:16px;
  height:16px; margin:0; flex:0 0 16px; padding:0;
}
.supplier-filter-menu .supplier-filter-option span {
  display:block; flex:none; width:auto; min-width:0; max-width:100%;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  color:#29251e; font-size:12px; line-height:1.5; text-align:left;
}
/* Simple inline two-currency exchange rate control for internal sales only. */
.sales-fx-form {
  display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:12px 0;
}
.sales-fx-form label {flex:1 1 175px; max-width:290px;}
.sales-fx-form input {box-sizing:border-box; width:100%;}
.sales-fx-form input[readonly] {background:#f5f1ea; color:#746a60;}
.sales-fx-form button {margin-bottom:0; white-space:nowrap;}
@media (max-width:720px) { .sales-fx-form label {max-width:none; flex-basis:100%;} .sales-fx-form button {width:100%;} }

.supplier-filter-menu .supplier-filter-tools {align-items:center; gap:8px; flex-wrap:wrap;}
.supplier-filter-menu .supplier-filter-count {margin-left:auto; color:#6e6359; font-size:11px; white-space:nowrap;}

/* Internal combined-sales status sections: local bulk actions, no header button. */
.sales-status-section-row > td,
.unpublished-section-row > td { padding: 0 !important; }
.sales-status-section {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px; min-height: 46px; padding: 7px 14px;
  background: #f6f1eb;
}
.sales-published-section-row > td { border-top: 2px solid #d6c8b7; }
.sales-status-section strong { color: #4b1823; }
.sales-status-count { background:#e9ded3; border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
.sales-status-note { color:#77706a; font-size:12px; }
.sales-status-section .sales-section-bulk { margin-left: auto; width: auto; white-space: normal; max-width: 100%; }
.sales-unpublished-section { background:#f2f0ed; }
.sales-unpublished-section .unpublished-toggle { min-width: 190px; width:auto; flex:1; padding: 6px 2px; }
.sales-unpublished-section .unpublished-toggle small { margin-left: 8px; }
@media (max-width:720px) {
  .sales-status-section .sales-section-bulk { margin-left:0; }
  .sales-status-note { width: 100%; }
}

/* Sales merge: brand titles are neutral labels. Genuine conflicts remain an
   adjacent textual warning; do not recolor brand names as if they are errors. */
.quote-table.staff-products.sales-combined-stock .brand-cell,
.quote-table.staff-products.sales-combined-stock .brand-group-cell .sheet-brand {
  color: #393634;
}
/* Independent unpublished COM and supplier sections, with soft neutral dividers. */
.sales-combined-stock .unpublished-com-section-row > td {
  border-top: 2px solid #ccc5bc;
}
.sales-combined-stock .unpublished-supplier-section-row > td {
  border-top: 2px solid #ccc5bc;
}
.sales-combined-stock .unpublished-com-section-row .sales-unpublished-section {
  background: #f5f3f0;
}
.sales-combined-stock .unpublished-supplier-section-row .sales-unpublished-section {
  background: #efede9;
}

/* Source-by-source unpublished preview.  The actual published sales quote
   remains one EAN with one common editable QTY and price. */
.sales-combined-stock .source-section-label,
.sales-combined-stock .source-section-qty-note {
  font-size: 10px; line-height: 1.35; color: #80776d; margin-top: 3px;
  white-space: normal; overflow-wrap: anywhere;
}
/* Never tint a brand rowspan because one SKU is below supplier cost. */
.quote-table.staff-products.sales-combined-stock tr.below-cost-row > td.brand-cell {
  background: #fcfaf7 !important;
}

/* Editable per-EAN brand cells, visually continuous like a merged Excel brand column.
   Do not use rowspan across distinct EANs: each item must remain independently correctable. */
.supplier-quote-table .supplier-brand-ean-cell,
.quote-table.staff-products .brand-ean-cell {
  background: #fcfaf7;
  vertical-align: middle;
  color: #393634;
  text-align: center;
  border-bottom-color: transparent;
}
.supplier-quote-table .supplier-brand-ean-cell.brand-visual-continuation,
.quote-table.staff-products .brand-ean-cell.brand-visual-continuation {
  border-top-color: transparent;
}
.supplier-quote-table .supplier-brand-ean-cell.brand-visual-last,
.quote-table.staff-products .brand-ean-cell.brand-visual-last {
  border-bottom-color: #e7ded4;
}
.supplier-quote-table .supplier-brand-ean-cell .supplier-brand-field {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 650;
  white-space: normal;
  overflow-wrap: anywhere;
}
.supplier-quote-table .brand-continuation-hint {
  visibility: hidden;
  font-size: 13px;
  color: #907965;
}
.supplier-quote-table .supplier-brand-ean-cell:hover .brand-continuation-hint,
.supplier-quote-table .supplier-brand-ean-cell:focus-within .brand-continuation-hint {
  visibility: visible;
}
.quote-table.staff-products .brand-ean-cell .sheet-brand {
  display: block;
  min-height: 28px;
  width: 100%;
  text-align: center;
  font-weight: 650;
  color: #393634;
}
.quote-table.staff-products .brand-ean-cell.brand-visual-continuation .sheet-brand:not(:hover):not(:focus) {
  color: transparent;
}
.quote-table.staff-products .brand-ean-cell.brand-visual-continuation:hover .sheet-brand,
.quote-table.staff-products .brand-ean-cell.brand-visual-continuation:focus-within .sheet-brand {
  color: #393634;
}
/* Product-level alerts must never tint the whole visual brand group. */
.supplier-quote-table tr.supplier-needs-review > td.supplier-brand-ean-cell,
.supplier-quote-table tr.below-cost-row > td.supplier-brand-ean-cell {
  background: #fcfaf7;
}

/* Sales combined stock: show responsive loading feedback while requests are pending. */
.quote-draft-loading {
  margin-top: 18px;
  padding: 24px 28px;
  min-height: 290px;
}
.quote-draft-loading-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}
.quote-draft-loading-heading h3,
.quote-draft-loading-heading p { margin: 0 0 5px; }
.quote-draft-loading-heading .stock-loading-spinner { flex: 0 0 34px; }
.quote-draft-loading-placeholder { margin: 25px 0 0; display: grid; gap: 17px; }
.quote-draft-loading-line {
  height: 22px;
  width: 75%;
  max-width: 920px;
  border-radius: 6px;
  background: linear-gradient(95deg, #f5efe8 15%, #e8dfd4 50%, #f5efe8 85%);
  background-size: 200% 100%;
  animation: quote-loading-glow 1.6s ease-in-out infinite;
}
.quote-draft-loading-line.medium { width: 54%; }
.quote-draft-loading-line.wide { width: 95%; }
@keyframes quote-loading-glow { to { background-position-x: -200%; } }
.in-stock-time-cell { white-space: normal; line-height: 1.45; }
.in-stock-time-cell .com-stock-start-date { display: block; font-weight: 600; }
.in-stock-time-cell .com-stock-age { display: block; font-size: 11px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .quote-draft-loading-line { animation: none; }
}

/* HK recent-arrivals admin: separate brand value for EVERY arrival record.
   Visually continuous like a merged group without a multi-record rowspan. */
.arrival-inline-table .arrival-brand-ean-cell {
  background: #f8e7c4;
  text-align: center;
  vertical-align: middle;
  border-bottom-color: transparent;
}
.arrival-inline-table .arrival-brand-ean-cell.brand-visual-continuation {
  border-top-color: transparent;
}
.arrival-inline-table .arrival-brand-ean-cell.brand-visual-last {
  border-bottom-color: #e0ccaa;
}
.arrival-inline-table .arrival-brand-ean-cell .sheet-brand {
  display: block;
  width: 100%;
  min-height: 29px;
  color: #393634;
  text-align: center;
  font-weight: 650;
  cursor: text;
}
.arrival-inline-table .arrival-brand-ean-cell.brand-visual-continuation .sheet-brand:not(:hover):not(:focus) {
  color: transparent;
}
.arrival-inline-table .arrival-brand-ean-cell.brand-visual-continuation:hover .sheet-brand,
.arrival-inline-table .arrival-brand-ean-cell.brand-visual-continuation:focus-within .sheet-brand {
  color: #393634;
}
.arrival-inline-table tr.unpublished-row > td.arrival-brand-ean-cell {
  background: #f8e7c4;
}

/* Internal stock + arrivals: true visually centered brand rowspan,
   while every EAN/arrival row has its own editable brand control by the barcode. */
.quote-table.staff-products td.staff-merged-brand,
.arrival-inline-table td.staff-merged-brand {
  background: #fcfaf7 !important;
  vertical-align: middle !important;
  text-align: center !important;
  color: #393634 !important;
  font-weight: 650;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  line-height: 1.55;
  padding: 10px 8px;
}
.arrival-inline-table td.arrival-merged-brand { background: #f8e7c4 !important; }
.staff-merged-brand-label { display:block; width:100%; text-align:center; }
.staff-merged-brand:focus-visible { outline: 2px solid #b48b55; outline-offset: -3px; }
.staff-products .barcode-cell .brand-edit-trigger,
.arrival-inline-table .barcode-cell .brand-edit-trigger {
  display: block;
  margin: 2px auto 0;
  font-size: 10px;
  line-height: 1.25;
  padding: 2px 5px;
  width: fit-content;
  opacity: .72;
}
.staff-products .barcode-cell .brand-edit-trigger:hover,
.staff-products .barcode-cell .brand-edit-trigger:focus-visible,
.arrival-inline-table .barcode-cell .brand-edit-trigger:hover,
.arrival-inline-table .barcode-cell .brand-edit-trigger:focus-visible { opacity: 1; }
.staff-products .barcode-cell .brand-row-editor,
.arrival-inline-table .barcode-cell .brand-row-editor {
  width: 100%;
  min-height: 34px;
  font-weight: 600;
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 5px 4px;
  margin-top: 5px;
  border-color: #b48b55;
  background: #fff;
}
.staff-products .barcode-cell .brand-row-editor[hidden],
.arrival-inline-table .barcode-cell .brand-row-editor[hidden] { display: none !important; }
.staff-products tr.brand-editing-row > .barcode-cell,
.arrival-inline-table tr.brand-editing-row > .barcode-cell { background: #fff8e9; }

/* 2026-10-19: retain all four customer export choices without replacing the legacy modes. */
.export-language-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.export-language-grid button { min-height: 72px; }

/* Sales order figures: centered only within the order-entry table. */
#orderLines .order-number { text-align: center; font-variant-numeric: tabular-nums; }
