:root {
  --ink: #17212b;
  --muted: #687481;
  --line: #dbe2e7;
  --surface: #fff;
  --page: #f3f6f8;
  --nav: #19242d;
  --nav-muted: #aab6bf;
  --brand-leaf: #70ad25;
  --brand-lime: #a8cb2a;
  --topbar-bg: #19242d;
  --topbar-raised: #24343d;
  --topbar-separator: rgba(255, 255, 255, .1);
  --accent: #0f6d68;
  --accent-dark: #0b514e;
  --accent-soft: #e3f1ef;
  --warning: #b16c18;
  --warning-soft: #fff2d9;
  --grid-highlight-green: #e2f3e7;
  --grid-highlight-yellow: #fff4c7;
  --grid-highlight-blue: #e1eefb;
  --inventory-negative-background: #f3a6aa;
  --inventory-negative-ink: #4c111b;
  --danger: #b4403b;
  --button-border: #c3cfd3;
  --button-hover-border: #8eaaa8;
  --button-hover-background: #f0f6f5;
  --button-active-background: #dcebe8;
  --button-disabled-color: #758188;
  --button-disabled-border: #d6dfe2;
  --button-disabled-background: #edf1f3;
  --button-shadow: 0 1px 2px rgba(23, 33, 43, .07);
  --button-pressed-shadow: inset 0 1px 3px rgba(23, 33, 43, .14);
  --button-focus: #168780;
  --control-locked-color: #59666b;
  --control-locked-border: #b8c2c5;
  --control-locked-background: #dfe5e7;
  --shadow: 0 8px 24px rgba(23, 33, 43, .06);
  --topbar-height: 64px;
  --sidebar-width: 184px;
  --master-row-select-cursor: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%3E%3Cpath%20d='M2%209h12M10%205l4%204-4%204'%20fill='none'%20stroke='%2317212b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E") 2 9, e-resize;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}

/* Theme tokens are intentionally limited to chrome and shared surfaces so that
   workflow colors (warnings, errors and row states) keep their meaning. */
:root {
  --theme-chrome: #19242d;
  --theme-chrome-raised: #24343d;
  --theme-chrome-border: rgba(255, 255, 255, .1);
  --theme-accent: #0f6d68;
  --theme-accent-dark: #0b514e;
  --theme-accent-soft: #e3f1ef;
  --theme-focus: #a8cb2a;
}

:root[data-system-theme="ocean"] {
  --theme-chrome: #123b58;
  --theme-chrome-raised: #1b5273;
  --theme-chrome-border: rgba(190, 231, 255, .26);
  --theme-accent: #176b9c;
  --theme-accent-dark: #0f4c75;
  --theme-accent-soft: #e3f2fb;
  --theme-focus: #7bd2f6;
}
:root[data-system-theme="forest"] {
  --theme-chrome: #183c31;
  --theme-chrome-raised: #245643;
  --theme-chrome-border: rgba(192, 235, 204, .24);
  --theme-accent: #287553;
  --theme-accent-dark: #1d5a3f;
  --theme-accent-soft: #e3f3e9;
  --theme-focus: #9bd06b;
}
:root[data-system-theme="graphite"] {
  --theme-chrome: #30353b;
  --theme-chrome-raised: #424951;
  --theme-chrome-border: rgba(235, 240, 245, .25);
  --theme-accent: #586a78;
  --theme-accent-dark: #3e4d59;
  --theme-accent-soft: #edf1f4;
  --theme-focus: #b8c9d7;
}
:root[data-system-theme="rose"] {
  --theme-chrome: #512d3b;
  --theme-chrome-raised: #6b3b4d;
  --theme-chrome-border: rgba(255, 218, 230, .27);
  --theme-accent: #a44869;
  --theme-accent-dark: #7f3450;
  --theme-accent-soft: #f9e9ef;
  --theme-focus: #f3a9c1;
}
:root[data-system-theme="black"] {
  --theme-chrome: #1a2024;
  --theme-chrome-raised: #252d32;
  --theme-chrome-border: #465057;
  --theme-accent: #277e78;
  --theme-accent-dark: #185952;
  --theme-accent-soft: #dff4f1;
  --theme-focus: #b4ce7a;
}
:root[data-system-theme="warm"] {
  --theme-chrome: #4d4334;
  --theme-chrome-raised: #635543;
  --theme-chrome-border: rgba(255, 245, 215, .24);
  --theme-accent: #786641;
  --theme-accent-dark: #594a2f;
  --theme-accent-soft: #f5efdf;
  --theme-focus: #d5b85f;
}
:root[data-system-theme="white"] {
  --theme-chrome: #fff;
  --theme-chrome-raised: #f0f2f4;
  --theme-chrome-border: #c5ccd2;
  --theme-accent: #455a64;
  --theme-accent-dark: #000;
  --theme-accent-soft: #e8edf0;
  --theme-focus: #455a64;
}

/* Sales quote detail grid uses the same visual and interaction language as master data tables. */
#salesQuoteDetailTable,
#salesQuoteDetailSummaryTable {
  table-layout: fixed;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: #34424c;
}

#salesQuoteDetailTable thead {
  position: static;
  background: transparent;
}

#salesQuoteDetailTable th,
#salesQuoteDetailTable td,
#salesQuoteDetailSummaryTable th,
#salesQuoteDetailSummaryTable td {
  box-sizing: border-box;
  min-width: 0;
  border: 0;
  border-right: 1px solid #b8c4ca;
  border-bottom: 1px solid #b8c4ca;
  padding: .5em 8px;
  overflow: hidden;
  color: #34424c;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#salesQuoteDetailTable tr > :first-child,
#salesQuoteDetailSummaryTable tr > :first-child { border-left: 1px solid #b8c4ca; }
#salesQuoteDetailTable > thead > .master-title-row > th { border-top: 1px solid #b8c4ca; }
#salesQuoteDetailTable th:last-child,
#salesQuoteDetailTable td:last-child,
#salesQuoteDetailTable tbody tr:last-child td,
#salesQuoteDetailSummaryTable th:last-child,
#salesQuoteDetailSummaryTable td:last-child { border-color: #b8c4ca; }

#salesQuoteDetailTable > thead > tr > th {
  position: sticky;
  z-index: 6;
  top: 0;
  height: 32px;
  color: #52616a;
  background: #fafbfb;
  background-clip: border-box;
  box-shadow: inset 0 -1px 0 #aebbc1;
  font-weight: 600;
}

#salesQuoteDetailTable > thead > .master-title-row > th {
  z-index: 7;
  top: 0;
  box-shadow: inset 0 -1px 0 #b8c4ca, 0 -2px 0 #fafbfb;
}

#salesQuoteDetailTable > thead > .master-filter-row > th {
  z-index: 6;
  top: calc(var(--sticky-title-row-height, 40px) - 1px);
  height: 30px;
  background: #f7f9fa;
  box-shadow: inset 0 1px 0 #b8c4ca, inset 0 -1px 0 #aebbc1;
}

#salesQuoteDetailTable th.row-number,
#salesQuoteDetailTable td.row-number,
#salesQuoteDetailSummaryTable td.row-number {
  width: auto;
  min-width: 0;
  padding-right: 6px;
  padding-left: 6px;
  color: #738087;
  background: #f3f6f6;
  font-variant-numeric: tabular-nums;
}

#salesQuoteDetailTable tbody td.row-number { cursor: var(--master-row-select-cursor); }

#salesQuoteDetailTable tbody td.sales-quote-row-number { padding: 0; }

#salesQuoteDetailTable .sales-quote-row-number-layout {
  display: grid;
  width: 100%;
  height: 30px;
  min-height: 30px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}

#salesQuoteDetailTable .sales-quote-row-move-controls {
  display: grid;
  min-width: 0;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  border-right: 1px solid #c8d2d6;
}

#salesQuoteDetailTable .sales-quote-row-move-button {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #5e7178;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
}

#salesQuoteDetailTable .sales-quote-row-move-button:hover:not(:disabled),
#salesQuoteDetailTable .sales-quote-row-move-button:focus-visible {
  color: var(--accent-dark);
  background: rgba(15, 109, 104, .12);
  outline: 0;
}

#salesQuoteDetailTable .sales-quote-row-move-button:disabled {
  color: #b9c3c7;
  background: transparent;
  cursor: not-allowed;
  opacity: 1;
}

#salesQuoteDetailTable .sales-quote-row-number-value {
  display: grid;
  min-width: 0;
  place-items: center;
  color: #738087;
  font-variant-numeric: tabular-nums;
}

#salesQuoteDetailTable .master-select-column,
#salesQuoteDetailTable .master-select-cell,
#salesQuoteDetailSummaryTable .master-select-cell {
  width: auto;
  min-width: 0;
  padding: 0 8px;
}

#salesQuoteDetailTable .master-row-select,
#salesQuoteDetailTable .master-select-all {
  display: block;
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0 auto;
  padding: 0;
  border-radius: 2px;
  accent-color: var(--accent);
  box-shadow: none;
  cursor: pointer;
}

#salesQuoteDetailTable .master-row-select:focus-visible,
#salesQuoteDetailTable .master-select-all:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#salesQuoteDetailTable .master-select-all:disabled,
#salesQuoteDetailTable .master-row-select:disabled {
  cursor: not-allowed;
  opacity: .35;
}

#salesQuoteDetailTable .master-filter-cell,
#salesQuoteDetailTable .master-filter-spacer {
  padding: 3px 4px;
  background: #f7f9fa;
}

#salesQuoteDetailTable .master-column-filter-wrap {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

#salesQuoteDetailTable .master-column-filter {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 23px;
  border: 1px solid #c3cdd3;
  border-radius: 2px;
  padding: .35em 30px .35em .5em;
  color: #34424c;
  background: #fff;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

#salesQuoteDetailTable .master-column-filter::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
}

#salesQuoteDetailTable .master-column-filter-clear {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  display: grid;
  width: 26px;
  min-width: 26px;
  min-height: 0;
  place-items: center;
  border: 0;
  border-radius: 2px;
  padding: 0;
  color: #6f7d86;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

#salesQuoteDetailTable .master-column-filter-clear:hover,
#salesQuoteDetailTable .master-column-filter-clear:focus-visible {
  color: var(--accent-dark);
  background: rgba(15, 109, 104, .14);
  outline: 0;
}

#salesQuoteDetailTable .master-resizable-column {
  position: sticky;
  padding-right: 4px;
  padding-left: 6px;
  overflow: visible;
}

#salesQuoteDetailTable .master-draggable-column { cursor: grab; }
#salesQuoteDetailTable .master-draggable-column button { cursor: pointer; }
#salesQuoteDetailTable .master-draggable-column.is-column-dragging { opacity: .45; }

#salesQuoteDetailTable .master-column-resizer {
  position: absolute;
  z-index: 3;
  top: 0;
  right: -5px;
  width: 9px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
}

#salesQuoteDetailTable .master-column-resizer::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: transparent;
  content: "";
}

#salesQuoteDetailTable .master-column-resizer:hover::after,
#salesQuoteDetailTable .master-column-resizer.is-active::after { background: var(--accent); }

#salesQuoteDetailTable .master-title-row [data-sales-quote-column-slot].is-column-drop-before::before,
#salesQuoteDetailTable .master-title-row [data-sales-quote-column-slot].is-column-drop-after::after {
  position: absolute;
  z-index: 4;
  top: 1px;
  bottom: 1px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
}

#salesQuoteDetailTable .master-title-row [data-sales-quote-column-slot].is-column-drop-before::before { left: -2px; }
#salesQuoteDetailTable .master-title-row [data-sales-quote-column-slot].is-column-drop-after::after { right: -2px; }

#salesQuoteDetailTable tbody td {
  height: 31px;
  padding: 0;
  background: #fff;
}

#salesQuoteDetailTable > tbody > tr:first-child > td {
  border-top: 1px solid #b8c4ca;
}

#salesQuoteDetailTable tbody tr.is-material-empty td { background: #fbfcfc; }
#salesQuoteDetailTable tbody tr.is-selected td { background: #edf7f6; }
#salesQuoteDetailTable tbody td.sales-quote-purchase-derived-cell,
#salesQuoteDetailTable tbody tr.is-selected td.sales-quote-purchase-derived-cell {
  color: var(--control-locked-color);
  background: var(--control-locked-background);
  -webkit-user-select: none;
  user-select: none;
}
#salesQuoteDetailTable tbody td.sales-quote-purchase-derived-cell .sales-quote-line-input,
#salesQuoteDetailTable tbody td.sales-quote-purchase-derived-cell .sales-quote-material-input,
#salesQuoteDetailTable tbody td.sales-quote-purchase-derived-cell .sales-quote-brand-input {
  color: var(--control-locked-color);
  background: transparent;
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}
#salesQuoteDetailTable tbody td.sales-quote-purchase-editable-cell {
  color: #34424c;
  background: #fff;
}
#salesQuoteDetailTable tbody tr.is-active-purchase-source > td,
#salesQuoteDetailTable tbody tr.is-active-purchase-source > td.sales-quote-purchase-derived-cell,
#salesQuoteDetailTable tbody tr.is-active-purchase-source > td.sales-quote-purchase-editable-cell {
  background: #edf7f6;
}
#salesQuoteDetailTable tbody tr.is-active-purchase-source > td .sales-quote-line-input,
#salesQuoteDetailTable tbody tr.is-active-purchase-source > td .sales-quote-material-input,
#salesQuoteDetailTable tbody tr.is-active-purchase-source > td .sales-quote-brand-input {
  background: transparent;
}

#salesQuoteDetailTable tbody tr > td[data-control-locked="true"],
#salesQuoteDetailTable tbody tr:is(.is-material-empty, .is-selected, .is-active-purchase-source) > td[data-control-locked="true"] {
  color: var(--control-locked-color);
  background: var(--control-locked-background);
}

#salesQuoteDetailTable tbody tr > td[data-control-locked="true"] :is(
  .sales-quote-line-input,
  .sales-quote-material-input,
  .sales-quote-brand-input,
  .sales-quote-currency-prefix
) {
  color: var(--control-locked-color);
  background: transparent;
  -webkit-text-fill-color: var(--control-locked-color);
}

#salesQuoteDetailTable tbody td.sales-order-source-locked-cell,
#salesQuoteDetailTable tbody tr.is-selected td.sales-order-source-locked-cell {
  color: var(--control-locked-color);
  background: var(--control-locked-background);
  -webkit-user-select: none;
  user-select: none;
}
#salesQuoteDetailTable tbody td.sales-order-source-locked-cell :is(
  .sales-quote-material-input,
  .sales-quote-brand-input
) {
  color: var(--control-locked-color);
  background: transparent;
  opacity: 1;
  cursor: default;
  -webkit-text-fill-color: var(--control-locked-color);
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}
#salesQuoteDetailTable tbody tr.sales-quote-detail-empty-row td {
  height: 42px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

#salesQuoteDetailTable .sales-quote-grid-cell { position: relative; cursor: default; }

#salesQuoteDetailTable .sales-quote-line-input,
#salesQuoteDetailTable .sales-quote-material-input,
#salesQuoteDetailTable .sales-quote-brand-input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 30px;
  min-height: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  padding: .5em 10px;
  overflow: hidden;
  color: #34424c;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  cursor: default;
  text-align: center;
  text-overflow: ellipsis;
  line-height: 1.2;
  white-space: nowrap;
}

#salesQuoteDetailTable .sales-quote-material-input,
#salesQuoteDetailTable .sales-quote-brand-input {
  appearance: none;
  font-size: 12px;
}

#salesQuoteDetailTable :is(.sales-quote-material-cell, .sales-quote-brand-cell):not([data-control-locked="true"]) {
  cursor: pointer;
}

#salesQuoteDetailTable .purchase-order-tax-cell { text-align: center; }

#salesQuoteDetailTable .purchase-order-tax-checkbox {
  display: block;
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0 auto;
  padding: 0;
  border-radius: 2px;
  accent-color: #557d67;
  box-shadow: none;
  cursor: pointer;
}

#salesQuoteDetailTable .purchase-order-tax-checkbox:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#salesQuoteDetailTable .purchase-order-tax-checkbox:disabled {
  cursor: default;
  opacity: 1;
}

#salesQuoteDetailTable .sales-quote-material-input::placeholder,
#salesQuoteDetailTable .sales-quote-brand-input::placeholder { color: #356f6c; opacity: 1; }

#salesQuoteDetailTable .sales-quote-line-input.is-computed {
  color: var(--control-locked-color);
  background: var(--control-locked-background);
}

#salesQuoteDetailTable .sales-quote-currency-field:has(.sales-quote-line-input.is-computed) {
  background: var(--control-locked-background);
}

#salesQuoteDetailTable tbody tr.is-active-purchase-source > td .sales-quote-currency-field:has(.sales-quote-line-input.is-computed) {
  background: transparent;
}

#salesQuoteDetailTable .sales-quote-field-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 30px;
}

#salesQuoteDetailTable .sales-quote-currency-field {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  column-gap: 2px;
  box-sizing: border-box;
  padding: 0 4px;
}

#salesQuoteDetailTable .sales-quote-currency-field .sales-quote-line-input {
  padding-right: 0;
  padding-left: 0;
  appearance: textfield;
}

#salesQuoteDetailTable .sales-quote-currency-prefix {
  position: static;
  z-index: 1;
  color: #53636a;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
  transform: none;
}

#salesQuoteDetailSummaryTable {
  height: 31px;
  min-width: 0;
  max-width: none;
  transform-origin: left top;
  will-change: transform;
}

#salesQuoteDetailSummaryTable > tbody > tr > td {
  height: 31px;
  padding: 0 8px;
  border-top: 1px solid #aebbc1;
  color: #53636a;
  background: #e1e7e9;
  font-weight: 600;
}

#salesQuoteDetailSummaryTable > tbody > tr > td.row-number {
  background: #e1e7e9;
}

#salesQuoteDetailSummaryTable .sales-quote-detail-summary-count {
  padding-left: 20px;
  text-align: left;
}

#salesQuoteDetailSummaryTable .sales-quote-summary-value {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

#salesQuoteDetailTable tbody tr td.sales-quote-master-data-cell {
  color: var(--control-locked-color);
  background: var(--control-locked-background);
  -webkit-user-select: none;
  user-select: none;
}

#salesQuoteDetailTable .sales-quote-master-data-cell .sales-quote-line-input,
#salesQuoteDetailTable .sales-quote-master-data-cell .box-spec-readonly-editor .master-dimension-input,
#salesQuoteDetailTable .sales-quote-master-data-cell .box-spec-readonly-editor .master-box-spec-input {
  color: var(--control-locked-color);
  background: transparent;
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

#salesQuoteDetailTable :is(
  .sales-quote-edit-cell,
  .sales-quote-material-cell,
  .sales-quote-brand-cell
).is-editing:not(:has([data-keyboard-armed="true"])) {
  position: relative;
  z-index: 2;
  background: #fff;
  box-shadow: none;
}

#salesQuoteDetailTable :is(
  .sales-quote-edit-cell,
  .sales-quote-material-cell,
  .sales-quote-brand-cell
).is-editing:not(:has([data-keyboard-armed="true"]))::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  box-sizing: border-box;
  border: 1px solid var(--accent);
  box-shadow: none;
  pointer-events: none;
  content: "";
}

#salesQuoteDetailTable .sales-quote-material-cell.is-editing .sales-quote-material-input {
  background: #fff;
  pointer-events: auto;
  cursor: text;
  text-overflow: clip;
}

#salesQuoteDetailTable .sales-quote-brand-cell.is-editing .sales-quote-brand-input {
  background: #fff;
  pointer-events: auto;
  cursor: text;
  text-overflow: clip;
}

#salesQuoteDetailTable .sales-quote-edit-cell.is-editing .sales-quote-line-input {
  background: #fff;
  pointer-events: auto;
  cursor: text;
  text-overflow: clip;
}

#salesQuoteDetailTable .sales-quote-gift-cell { text-align: center; }
#salesQuoteDetailTable .sales-quote-gift-checkbox {
  display: block;
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0 auto;
  padding: 0;
  accent-color: #557d67;
}

#salesQuoteDetailTable .sales-quote-gift-checkbox:not(:disabled) { cursor: pointer; }
#salesQuoteDetailTable .sales-quote-gift-checkbox:disabled { cursor: default; }

#salesQuoteDetailTable .master-image-cell {
  position: relative;
  padding: 0 6px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

#salesQuoteDetailTable .master-image-cell-content {
  height: 28px;
}

#salesQuoteDetailTable .master-image-cell-content.is-empty {
  height: 28px;
}

#salesQuoteDetailTable .master-image-cell-layer {
  height: 26px;
}

#salesQuoteDetailTable .master-image-cell-layer img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100% - 4px);
  max-height: calc(100% - 4px);
  margin: auto;
  object-fit: contain;
  object-position: center;
}

#salesQuoteDetailTable .master-image-cell:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

#salesQuoteDetailTable .master-image-cell:hover .master-image-cell-layer.is-stack-0,
#salesQuoteDetailTable .master-image-cell:focus-visible .master-image-cell-layer.is-stack-0 {
  border-color: var(--accent);
  transform: translateY(-1px);
}

:is(
  #salesQuoteDetailTable,
  #purchaseQuoteDetailTable,
  #receiptDetailTable,
  #purchaseInboundDetailTable,
  #salesOutboundDetailTable,
  #packagingOutboundLeftTable,
  #packagingOutboundRightTable
) .document-image-cell.master-image-cell {
  position: relative;
  box-sizing: border-box;
  height: 30px;
  padding: 0 6px;
  font-size: 0;
  line-height: 0;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

:is(
  #salesQuoteDetailTable,
  #purchaseQuoteDetailTable,
  #receiptDetailTable,
  #purchaseInboundDetailTable,
  #salesOutboundDetailTable,
  #packagingOutboundLeftTable,
  #packagingOutboundRightTable
) .document-image-cell .master-image-cell-content {
  width: 50px;
  height: 28px;
}

:is(
  #salesQuoteDetailTable,
  #purchaseQuoteDetailTable,
  #receiptDetailTable,
  #purchaseInboundDetailTable,
  #salesOutboundDetailTable,
  #packagingOutboundLeftTable,
  #packagingOutboundRightTable
) .document-image-cell .master-image-cell-content.is-empty {
  width: 46px;
  height: 26px;
}

:is(
  #salesQuoteDetailTable,
  #purchaseQuoteDetailTable,
  #receiptDetailTable,
  #purchaseInboundDetailTable,
  #salesOutboundDetailTable,
  #packagingOutboundLeftTable,
  #packagingOutboundRightTable
) .document-image-cell .master-image-cell-layer {
  width: 30px;
  height: 26px;
}

:is(
  #salesQuoteDetailTable,
  #purchaseQuoteDetailTable,
  #receiptDetailTable,
  #purchaseInboundDetailTable,
  #salesOutboundDetailTable,
  #packagingOutboundLeftTable,
  #packagingOutboundRightTable
) .document-image-cell .master-image-cell-layer img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100% - 4px);
  max-height: calc(100% - 4px);
  margin: auto;
  object-fit: contain;
  object-position: center;
}

:is(
  #salesQuoteDetailTable,
  #purchaseQuoteDetailTable,
  #receiptDetailTable,
  #purchaseInboundDetailTable,
  #salesOutboundDetailTable,
  #packagingOutboundLeftTable,
  #packagingOutboundRightTable
) .document-image-cell:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

:is(
  #salesQuoteDetailTable,
  #purchaseQuoteDetailTable,
  #receiptDetailTable,
  #purchaseInboundDetailTable,
  #salesOutboundDetailTable,
  #packagingOutboundLeftTable,
  #packagingOutboundRightTable
) .document-image-cell:hover .master-image-cell-layer.is-stack-0,
:is(
  #salesQuoteDetailTable,
  #purchaseQuoteDetailTable,
  #receiptDetailTable,
  #purchaseInboundDetailTable,
  #salesOutboundDetailTable,
  #packagingOutboundLeftTable,
  #packagingOutboundRightTable
) .document-image-cell:focus-visible .master-image-cell-layer.is-stack-0 {
  border-color: var(--accent);
  transform: translateY(-1px);
}

#salesQuoteDetailTable .unit-suffix {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 6px;
  color: #718087;
  pointer-events: none;
  transform: translateY(-50%);
  font-size: 10px;
}

#salesQuoteDetailTable td.is-current-cell {
  position: relative;
  z-index: 1;
  box-shadow: inset 0 0 0 2px var(--accent);
}

#salesQuoteDetailTable td.is-current-cell::after,
#salesQuoteDetailTable td.is-range-selected::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  box-shadow: inset 0 0 0 2px var(--accent);
  pointer-events: none;
  content: "";
}

#salesQuoteDetailTable td.is-current-cell.is-editing:not(:has([data-keyboard-armed="true"])) {
  z-index: 2;
  background: #fff;
  box-shadow: none;
}
#salesQuoteDetailTable td.is-current-cell.is-editing:not(:has([data-keyboard-armed="true"]))::after { box-shadow: none; }
#salesQuoteDetailTable td.is-range-selected { position: relative; z-index: 1; }

.sales-quote-material-suggest {
  position: fixed;
  z-index: 1200;
  width: 390px;
  overflow: hidden;
  border: 1px solid #9eafb6;
  border-radius: 4px;
  color: #34424c;
  background: #fff;
  box-shadow: 0 10px 26px rgba(28, 43, 51, .2);
  font-size: 12px;
}

.sales-quote-material-suggest[hidden] { display: none; }

.sales-quote-material-suggest-head,
.sales-quote-material-suggest-filter,
.sales-quote-material-suggest-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
}

#salesQuoteMaterialSuggest .sales-quote-material-suggest-head,
#salesQuoteMaterialSuggest .sales-quote-material-suggest-filter,
#salesQuoteMaterialSuggest .sales-quote-material-suggest-row {
  grid-template-columns: minmax(0, 1fr) 180px;
}

#salesQuoteMaterialSuggest.has-supplemental-model .sales-quote-material-suggest-head,
#salesQuoteMaterialSuggest.has-supplemental-model .sales-quote-material-suggest-filter,
#salesQuoteMaterialSuggest.has-supplemental-model .sales-quote-material-suggest-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr);
}

#salesQuoteMaterialSupplementalHeader[hidden],
#salesQuoteMaterialSupplementalFilter[hidden] { display: none; }

.sales-quote-brand-suggest .sales-quote-material-suggest-head,
.sales-quote-brand-suggest .sales-quote-material-suggest-filter,
.sales-quote-brand-suggest .sales-quote-material-suggest-row {
  grid-template-columns: minmax(150px, .8fr) minmax(180px, 1.2fr);
}

.sales-quote-material-suggest-head {
  height: 29px;
  border-bottom: 1px solid #cbd5da;
  color: #5f6d75;
  background: #f7f9fa;
  font-weight: 600;
}

.sales-quote-material-suggest-head > span,
.sales-quote-material-suggest-row > span {
  min-width: 0;
  padding: 0 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-quote-material-suggest-head > span + span,
.sales-quote-material-suggest-row > span + span { border-left: 1px solid #e2e8eb; }

.sales-quote-material-suggest-filter {
  min-height: 31px;
  border-bottom: 1px solid #cbd5da;
  background: #f7f9fa;
}

.sales-quote-material-suggest-filter input {
  width: calc(100% - 10px);
  min-width: 0;
  height: 23px;
  min-height: 0;
  justify-self: center;
  border: 1px solid #b9c7cd;
  border-radius: 2px;
  padding: 0 6px;
  color: #34424c;
  background: #fff;
  box-shadow: none;
  font-size: 11px;
}

.sales-quote-material-suggest-filter input:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 1px var(--accent);
}

.sales-quote-material-suggest-row {
  width: 100%;
  height: 31px;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  border-radius: 0;
  padding: 0;
  color: inherit;
  background: #fff;
  cursor: default;
  text-align: left;
}

.sales-quote-material-suggest-row:hover,
.sales-quote-material-suggest-row.is-active {
  color: #173d3b;
  background: #e7f3f1;
  box-shadow: inset 3px 0 var(--accent);
}

.sales-quote-material-suggest-row:focus { outline: 0; }

.sales-quote-material-suggest-state {
  display: grid;
  min-height: 62px;
  place-items: center;
  padding: 10px;
  color: var(--muted);
  text-align: center;
}

.sales-quote-material-suggest-foot {
  display: flex;
  height: 31px;
  align-items: center;
  justify-content: flex-end;
  padding: 0 7px;
  background: #f7f9fa;
}

.sales-quote-material-suggest-foot button {
  min-width: 48px;
  height: 23px;
  border: 1px solid #b8c6cc;
  border-radius: 3px;
  padding: 0 9px;
  color: #315d5a;
  background: #fff;
  font-size: 11px;
}

.sales-quote-material-suggest-foot button:hover,
.sales-quote-material-suggest-foot button:focus-visible {
  border-color: var(--accent);
  outline: 0;
  color: var(--accent);
}

.sales-quote-material-suggest-foot button:disabled { opacity: .5; cursor: default; }

#salesQuoteMaterialSuggest .sales-quote-material-suggest-foot {
  gap: 8px;
  height: auto;
  min-height: 31px;
}

#salesQuoteMaterialSuggestTip {
  min-width: 0;
  margin-right: auto;
  padding: 4px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
  overflow-wrap: anywhere;
}

#salesQuoteMaterialSuggest .sales-quote-material-suggest-foot button { flex-shrink: 0; }

#salesQuoteMaterialSuggest .sales-quote-material-suggest-row.is-selected {
  color: #173d3b;
  background: #d6ebe8;
  box-shadow: inset 3px 0 var(--accent);
}

body.is-material-suggest-selecting,
body.is-material-suggest-selecting * { user-select: none !important; }

body.is-sales-quote-range-selecting,
body.is-purchase-quote-range-selecting { user-select: none !important; }

body.is-sales-quote-row-selecting,
body.is-sales-quote-row-selecting * { cursor: var(--master-row-select-cursor) !important; user-select: none; }

/* Sales quotation document detail. */
#salesQuoteDetailView {
  display: none;
}

#salesQuoteDetailView.is-active {
  position: static;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
}

.sales-quote-detail-view > .page-heading {
  flex: 0 0 50px;
  height: 50px;
  margin: 0;
  padding: 6px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.sales-quote-detail-view > .page-heading > .sales-quote-detail-heading {
  display: none;
}

.sales-quote-detail-actions {
  overflow: visible;
}

.sales-quote-detail-actions > .module-document-delete {
  flex: 0 0 auto;
}

.sales-quote-status-pill {
  display: inline-flex;
  min-width: 72px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6dde0;
  border-radius: 4px;
  color: #536269;
  background: #f4f6f7;
  font-size: 12px;
  font-weight: 700;
}

.sales-quote-status-pill[data-status="created"] { color: #496654; border-color: #cad9ce; background: #edf4ef; }
.sales-quote-status-pill[data-status="submitted"] { color: #3d657e; border-color: #c5d7e1; background: #eaf2f6; }
.sales-quote-status-pill[data-status="approved"] { color: #356044; border-color: #bad1c2; background: #e2eee6; }
.sales-quote-status-pill[data-status="reapproved"] { color: #765f2f; border-color: #ddcea9; background: #f6f0df; }

.sales-quote-detail-panel {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.sales-quote-header-pane {
  min-width: 0;
  min-height: 0;
  flex: 0 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f9fbfb;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 33, 43, .28) transparent;
}

.sales-quote-header-pane::-webkit-scrollbar { width: 6px; height: 0; }
.sales-quote-header-pane::-webkit-scrollbar-track { background: transparent; }
.sales-quote-header-pane::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(23, 33, 43, .28); }
.sales-quote-header-pane::-webkit-scrollbar-thumb:hover { background: rgba(23, 33, 43, .42); }

.sales-quote-header-form {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-content: start;
  column-gap: 12px;
  row-gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 20px;
  border-bottom: 0;
  background: #f9fbfb;
}

.sales-quote-header-form.is-purchase-order {
  grid-template-areas:
    "document-number document-date delivery-date supplier customer-country"
    "salesperson purchaser follower notes document-status"
    "release-status follow-status . . .";
}

.sales-quote-header-form.is-purchase-order #salesQuoteNumberField { grid-area: document-number; }
.sales-quote-header-form.is-purchase-order #salesQuoteDateField { grid-area: document-date; }
.sales-quote-header-form.is-purchase-order #purchaseOrderDeliveryDateField { grid-area: delivery-date; }
.sales-quote-header-form.is-purchase-order #purchaseOrderCustomerCountryField { grid-area: customer-country; }
.sales-quote-header-form.is-purchase-order #purchaseOrderSupplierField { grid-area: supplier; }
.sales-quote-header-form.is-purchase-order #salesQuoteSalespersonField { grid-area: salesperson; }
.sales-quote-header-form.is-purchase-order #purchaseOrderPurchaserField { grid-area: purchaser; }
.sales-quote-header-form.is-purchase-order #purchaseOrderFollowerField { grid-area: follower; }
.sales-quote-header-form.is-purchase-order #salesQuoteNotesField { grid-area: notes; }
.sales-quote-header-form.is-purchase-order #salesQuoteStatusField { grid-area: document-status; }
.sales-quote-header-form.is-purchase-order #purchaseOrderReleaseStatusField { grid-area: release-status; }
.sales-quote-header-form.is-purchase-order #purchaseOrderFollowStatusField { grid-area: follow-status; }

.sales-quote-header-form label {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: #536169;
  font-size: 12px;
  font-weight: 600;
}

.sales-quote-header-form label > span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}

.sales-quote-header-form label > span::after {
  content: "：";
  color: #536169;
}

.sales-quote-header-form :is(input, button, select) {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  height: 30px;
  border: 1px solid #ccd6da;
  border-radius: 4px;
  padding: 0 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  font-size: 12px;
  font-weight: 400;
}

.sales-quote-header-form input[readonly] {
  color: var(--control-locked-color);
  border-color: var(--control-locked-border);
  background: var(--control-locked-background);
  opacity: 1;
  -webkit-text-fill-color: var(--control-locked-color);
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

.sales-quote-header-form label:is(.sales-quote-purchase-locked-field, .sales-order-source-locked-field) :is(input, button, select) {
  color: var(--control-locked-color);
  border-color: var(--control-locked-border);
  background: var(--control-locked-background);
  opacity: 1;
  cursor: default;
  -webkit-text-fill-color: var(--control-locked-color);
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

.sales-quote-header-form.is-purchase-quote,
.sales-quote-header-form:is(.is-purchase-quote, .is-purchase-order) #salesQuoteNotesInput:not(.is-editing):not([data-control-locked="true"]) {
  -webkit-user-select: none;
  user-select: none;
}

.sales-quote-header-form:is(.is-purchase-quote, .is-purchase-order) #salesQuoteNotesInput:not(.is-editing) {
  caret-color: transparent;
}

.sales-quote-header-form.is-purchase-quote label.sales-quote-purchase-locked-field.is-document-header-active :is(input, button, select),
.sales-quote-header-form.is-purchase-quote label.sales-quote-purchase-locked-field :is(input, button, select):focus,
.sales-quote-header-form.is-purchase-quote label.sales-quote-purchase-locked-field :is(input, button, select):focus-visible {
  border-color: var(--accent) !important;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(15, 109, 104, .32) !important;
}

.sales-quote-header-form label.is-document-header-active :is(input, button, select) {
  border-color: #77979c !important;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(72, 112, 116, .12) !important;
}

#salesQuoteNoInput:disabled,
#salesQuoteDateInput:disabled,
#salesOrderExpectedDeliveryDateInput:disabled,
#purchaseOrderDeliveryDateInput:disabled { cursor: default; }

#salesQuoteNoInput:not(:disabled):not([data-control-locked="true"]),
#salesQuoteDateInput:not(:disabled):not([data-control-locked="true"]),
#salesOrderExpectedDeliveryDateInput:not(:disabled),
#purchaseOrderDeliveryDateInput:not(:disabled),
#salesQuoteNotesInput:not(:disabled) {
  color: var(--ink);
  background: #fff;
}

#salesQuoteNoInput:not(:disabled):not([data-control-locked="true"]):not(.is-editing) {
  cursor: default;
  caret-color: transparent;
}
#salesQuoteDateInput:not(:disabled):not([data-control-locked="true"]),
#salesOrderExpectedDeliveryDateInput:not(:disabled),
#purchaseOrderDeliveryDateInput:not(:disabled) { cursor: pointer; }

#purchaseOrderReleaseStatusSelect:disabled,
#purchaseOrderFollowStatusSelect:disabled {
  color: var(--control-locked-color);
  border-color: var(--control-locked-border);
  background: var(--control-locked-background);
  opacity: 1;
  cursor: default;
  -webkit-text-fill-color: var(--control-locked-color);
  caret-color: transparent;
}

#salesQuoteNotesInput:disabled {
  color: var(--control-locked-color);
  border-color: var(--control-locked-border);
  background: var(--control-locked-background);
  opacity: 1;
  -webkit-text-fill-color: var(--control-locked-color);
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

#salesQuoteNotesInput:not(:disabled) { cursor: default; }
#salesQuoteNotesInput.is-editing {
  color: var(--ink);
  background: #fff;
  cursor: text;
  caret-color: auto;
}

.sales-quote-header-form.is-purchase-order #salesQuoteNotesInput.is-editing {
  border-color: #77979c;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(72, 112, 116, .12);
}

.sales-quote-header-form:is([data-sales-quote-status="submitted"], [data-sales-quote-status="approved"]):not(.is-purchase-order) :is(
  #salesQuoteNoInput,
  #salesQuoteDateInput,
  #salesQuoteSalespersonButton,
  #salesQuoteCustomerButton,
  #salesQuoteCountryInput,
  #salesQuoteStatusInput,
  #purchaseOrderDeliveryDateInput,
  #purchaseOrderSupplierButton,
  #purchaseOrderPurchaserButton,
  #purchaseOrderFollowerButton,
  #purchaseOrderReleaseStatusSelect,
  #purchaseOrderFollowStatusSelect
),
.sales-quote-header-form.is-purchase-order[data-sales-quote-status="approved"] :is(
  #salesQuoteNoInput,
  #salesQuoteDateInput,
  #salesQuoteSalespersonButton,
  #salesQuoteCustomerButton,
  #salesQuoteCountryInput,
  #salesQuoteStatusInput,
  #purchaseOrderDeliveryDateInput,
  #purchaseOrderSupplierButton,
  #purchaseOrderPurchaserButton,
  #purchaseOrderFollowerButton,
  #purchaseOrderReleaseStatusSelect,
  #purchaseOrderFollowStatusSelect
),
.sales-quote-header-form:not(.is-purchase-order)[data-sales-quote-status="reapproved"] :is(
  #salesQuoteNoInput,
  #salesQuoteDateInput,
  #salesQuoteSalespersonButton,
  #salesQuoteCustomerButton,
  #salesQuoteCountryInput,
  #salesQuoteStatusInput,
  #purchaseOrderDeliveryDateInput,
  #purchaseOrderSupplierButton,
  #purchaseOrderPurchaserButton,
  #purchaseOrderFollowerButton,
  #purchaseOrderReleaseStatusSelect,
  #purchaseOrderFollowStatusSelect
),
.sales-quote-header-form:is([data-sales-quote-status="submitted"], [data-sales-quote-status="approved"]) #salesOrderExpectedDeliveryDateInput {
  color: var(--control-locked-color);
  border-color: var(--control-locked-border);
  background: var(--control-locked-background);
  opacity: 1;
  cursor: default;
  -webkit-text-fill-color: var(--control-locked-color);
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

#salesQuoteNoInput.is-editing {
  color: var(--ink);
  background: #fff;
  cursor: text;
  caret-color: auto;
}

#salesQuoteDateInput:not([data-control-locked="true"]) {
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

#salesOrderExpectedDeliveryDateInput:not([data-control-locked="true"]) {
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

#purchaseOrderDeliveryDateInput:not([data-control-locked="true"]) {
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

.sales-quote-header-form :is(input, button, select):focus-visible {
  border-color: #77979c;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(72, 112, 116, .12);
}

.sales-quote-choice-button::after {
  content: "▾";
  float: right;
  color: #718087;
}

.sales-quote-date-calendar {
  position: fixed;
  z-index: 1500;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid #aebdc3;
  border-radius: 4px;
  color: #34424c;
  background: #fff;
  box-shadow: 0 10px 24px rgba(28, 43, 51, .2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  -webkit-user-select: none;
  user-select: none;
}

.sales-quote-date-calendar-head {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  height: 32px;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.sales-quote-date-calendar-head strong {
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-quote-date-calendar-head button,
.sales-quote-date-day {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border: 0;
  border-radius: 3px;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.sales-quote-date-calendar-head button {
  width: 30px;
  height: 30px;
  font-size: 20px;
  line-height: 1;
}

.sales-quote-date-calendar-head button:hover,
.sales-quote-date-day:hover { background: #eaf1f1; }

.sales-quote-date-calendar-head button:focus-visible,
.sales-quote-date-day:focus-visible {
  outline: 2px solid rgba(15, 109, 104, .55);
  outline-offset: -2px;
}

.sales-quote-date-weekdays,
.sales-quote-date-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}

.sales-quote-date-weekdays span {
  display: grid;
  height: 24px;
  place-items: center;
  color: #718087;
  font-weight: 600;
}

.sales-quote-date-day {
  width: 100%;
  height: 30px;
}

.sales-quote-date-day.is-outside { color: #a1adb2; }
.sales-quote-date-day.is-today { box-shadow: inset 0 0 0 1px #77979c; }
.sales-quote-date-day.is-selected {
  color: #fff;
  background: #356f6c;
  box-shadow: none;
}

.sales-quote-date-day.is-selected:hover { background: #2e615e; }

.required-mark { color: #c44b45; font-size: 13px; }

#salesQuoteDetailError {
  flex: 0 0 auto;
  margin: 0;
  padding: 7px 20px;
  border-bottom: 1px solid #ecd3cf;
  background: #fff4f2;
}

.sales-quote-header-splitter {
  position: relative;
  z-index: 5;
  min-width: 0;
  height: 9px;
  flex: 0 0 9px;
  border-top: 1px solid #d2dadd;
  border-bottom: 1px solid #d2dadd;
  background: #f4f7f7;
  cursor: row-resize;
  touch-action: none;
  user-select: none;
}

.sales-quote-header-splitter:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px rgba(71, 104, 112, .18);
}

.sales-quote-header-splitter-controls {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: inline-flex;
  border: 1px solid #b9c5c9;
  border-radius: 3px;
  background: #fff;
  transform: translate(-50%, -50%);
}

.sales-quote-header-splitter-controls button {
  display: grid;
  width: 24px;
  height: 7px;
  place-items: center;
  border: 0;
  border-right: 1px solid #d2dadd;
  padding: 0;
  color: #53656c;
  background: #fff;
}

.sales-quote-header-splitter-controls button:last-child { border-right: 0; }
.sales-quote-header-splitter-controls button:hover,
.sales-quote-header-splitter-controls button:focus-visible { color: #294f54; background: #eaf1f1; outline: 0; }

.sales-quote-splitter-triangle {
  display: block;
  width: 0;
  height: 0;
}

.sales-quote-splitter-triangle.is-up {
  border-right: 3px solid transparent;
  border-bottom: 4px solid currentColor;
  border-left: 3px solid transparent;
}

.sales-quote-splitter-triangle.is-down {
  border-top: 4px solid currentColor;
  border-right: 3px solid transparent;
  border-left: 3px solid transparent;
}

.sales-quote-splitter-triangle.is-left {
  border-top: 3px solid transparent;
  border-right: 4px solid currentColor;
  border-bottom: 3px solid transparent;
}

.sales-quote-splitter-triangle.is-right {
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 4px solid currentColor;
}

body.is-sales-quote-header-resizing,
body.is-sales-quote-header-resizing * { cursor: row-resize !important; }

.sales-quote-body-pane {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.sales-order-body-modebar {
  min-width: 0;
  min-height: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 20px;
  border-bottom: 1px solid #b8c4ca;
  background: #f7f9fa;
}

.sales-order-body-mode-tabs {
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #aebbc1;
  border-radius: 4px;
  background: #fff;
}

.sales-order-body-mode-tabs button {
  min-width: 78px;
  height: 26px;
  border: 0;
  border-right: 1px solid #c7d1d5;
  padding: 0 12px;
  color: #52616a;
  background: #fff;
  font-size: 12px;
}

.sales-order-body-mode-tabs button:last-child { border-right: 0; }
.sales-order-body-mode-tabs button[aria-selected="true"] {
  color: #173f42;
  background: #dcebea;
  font-weight: 700;
}
.sales-order-body-mode-tabs button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #4c7c7d;
  outline-offset: -2px;
}
.sales-order-body-mode-tabs button:disabled {
  color: #929da2;
  background: #eef1f2;
  opacity: 1;
}

.sales-order-packing-overview {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: #53636a;
  font-size: 12px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-order-packing-view {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  overflow: hidden;
  background: #fff;
}

.sales-order-packing-pane {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.sales-order-packing-master-pane { flex: 0 0 56%; }
.sales-order-packing-container-pane { flex: 1 1 0; }

.sales-order-packing-splitter {
  position: relative;
  z-index: 8;
  width: 9px;
  min-width: 9px;
  flex: 0 0 9px;
  border: 0;
  border-right: 1px solid #8fa0a7;
  border-left: 1px solid #8fa0a7;
  background: #eef2f3;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
}

.sales-order-packing-splitter::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 3px;
  width: 1px;
  background: #a9b6bc;
  content: "";
}

.sales-order-packing-splitter > span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 42px;
  border: 1px solid #9eacb2;
  border-radius: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.sales-order-packing-splitter:hover,
.sales-order-packing-splitter:focus-visible {
  border-color: var(--accent);
  background: #e5f0ef;
  outline: 0;
}

body.is-sales-order-packing-pane-resizing,
body.is-sales-order-packing-pane-resizing * { cursor: col-resize !important; }

.sales-order-packing-toolbar,
.sales-order-packing-container-toolbar {
  min-width: 0;
  min-height: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 10px;
  border-bottom: 1px solid #b8c4ca;
  background: #fff;
  scrollbar-width: thin;
}

.sales-order-packing-toolbar strong {
  flex: 0 0 auto;
  color: #34434a;
  font-size: 12px;
}

.sales-order-packing-toolbar > span {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: #65737a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-order-packing-toolbar .button,
.sales-order-packing-container-toolbar .button {
  min-height: 28px;
  height: 28px;
  flex: 0 0 auto;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
}

.sales-order-packing-container-tabs {
  min-width: 92px;
  flex: 1 1 auto;
  display: flex;
  align-self: stretch;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.sales-order-packing-container-tab {
  min-width: 94px;
  height: 35px;
  flex: 0 0 auto;
  display: grid;
  grid-template-rows: 17px 13px;
  align-content: center;
  border: 0;
  border-right: 1px solid #c7d1d5;
  border-bottom: 3px solid transparent;
  padding: 1px 10px 0;
  color: #53636a;
  background: #f7f9fa;
  font-size: 11px;
  line-height: 1;
  text-align: left;
}

.sales-order-packing-container-tab strong,
.sales-order-packing-container-tab small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sales-order-packing-container-tab small { color: #738087; font-size: 10px; }

#salesOutboundPackingContainerTabs { min-width: 0; }
#salesOutboundPackingContainerTabs .sales-order-packing-container-tab {
  width: 94px;
  min-width: 94px;
  max-width: 94px;
  flex: 0 0 94px;
  overflow: hidden;
  box-sizing: border-box;
}
#salesOutboundPackingContainerTabs .sales-order-packing-container-tab strong {
  display: flex;
  min-width: 0;
}
#salesOutboundPackingContainerTabs .outbound-container-order {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
#salesOutboundPackingContainerTabs .outbound-container-number { flex: 0 0 auto; }

.sales-order-packing-container-tab.is-active {
  border-bottom-color: #28706f;
  color: #173f42;
  background: #e7f0ef;
}
.sales-order-packing-container-tab.has-issued-lines { box-shadow: inset 3px 0 0 #587874; }
.sales-order-packing-container-tab.is-over-capacity { border-bottom-color: #b64238; }
.sales-order-packing-container-tab:focus-visible { outline: 2px solid #4c7c7d; outline-offset: -2px; }

.sales-order-packing-table-wrap {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  scrollbar-gutter: stable;
  background: #fff;
}

.sales-order-packing-table {
  table-layout: fixed;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: #34424c;
  font-size: 12px;
}
.sales-order-packing-master-table { width: 1072px; min-width: 1072px; }
.sales-order-packing-container-table { width: 760px; min-width: 760px; }
.sales-order-packing-table th,
.sales-order-packing-table td {
  box-sizing: border-box;
  height: 34px;
  border: 0;
  border-right: 1px solid #b8c4ca;
  border-bottom: 1px solid #b8c4ca;
  padding: 0 8px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sales-order-packing-table tr > :first-child { border-left: 1px solid #b8c4ca; }
.sales-order-packing-table thead th {
  position: sticky;
  z-index: 4;
  top: 0;
  height: 34px;
  color: #52616a;
  background: #f6f8f9;
  box-shadow: inset 0 1px 0 #aebbc1, inset 0 -1px 0 #aebbc1;
  font-weight: 600;
}
.sales-order-packing-table tbody tr { background: #fff; }
.sales-order-packing-table tbody tr:hover { background: #f3f7f7; }
.sales-order-packing-table tbody tr.is-selected { background: #dcebea; }
.sales-order-packing-table tbody tr.is-partial > td:first-child { box-shadow: inset 3px 0 #c18a2d; }
.sales-order-packing-table tbody tr.is-complete { color: #65737a; background: #edf1f2; }
.sales-order-packing-table tbody tr.is-current { background: #dcebea; }
#salesOrderPackingContainerTable tbody tr.is-issued { color: #5e6c70; background: #f1f5f4; }
#salesOrderPackingContainerTable tbody tr.is-issued:hover { background: #eaf1ef; }
#salesOrderPackingContainerTable tbody tr.is-issued.is-selected,
#salesOrderPackingContainerTable tbody tr.is-issued.is-current { background: #dcebea; }
#salesOrderPackingContainerTable tbody tr.is-issued > td:first-child { box-shadow: inset 3px 0 #587874; }

.sales-order-packing-select-column { width: 34px; }
.sales-order-packing-material-column { width: 150px; }
.sales-order-packing-model-column { width: 105px; }
.sales-order-packing-quantity-column { width: 102px; }
.sales-order-packing-brand-column { width: 90px; }
.sales-order-packing-amount-column { width: 96px; }
.sales-order-packing-box-spec-column { width: 220px; }
.sales-order-packing-boxes-column { width: 82px; }
.sales-order-packing-volume-column { width: 96px; }
.sales-order-packing-weight-column { width: 96px; }
.sales-order-packing-select-cell { padding: 0 !important; }
.sales-order-packing-select-cell input { width: 14px; height: 14px; margin: 0; accent-color: #28706f; }

.sales-order-packing-quantity-value {
  display: block;
  line-height: 1;
}

.sales-order-packing-quantity-input {
  width: 100%;
  height: 26px;
  box-sizing: border-box;
  border: 1px solid #9baeb3;
  border-radius: 3px;
  padding: 0 6px;
  color: #26383f;
  background: #fff;
  font: inherit;
  text-align: right;
}
.sales-order-packing-quantity-editor {
  display: flex;
  align-items: center;
  gap: 4px;
}
.sales-order-packing-quantity-editor > span {
  min-width: 24px;
  overflow: hidden;
  color: #65737a;
  font-size: 10px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sales-order-packing-quantity-input:focus {
  border-color: #3d7778;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(61,119,120,.14);
}
.sales-order-packing-quantity-input:disabled {
  color: var(--control-locked-color);
  border-color: var(--control-locked-border);
  background: var(--control-locked-background);
  opacity: 1;
  -webkit-text-fill-color: var(--control-locked-color);
  caret-color: transparent;
}

.sales-order-packing-empty td {
  height: 80px !important;
  color: #7b878c;
  background: #fafbfb;
  text-align: center !important;
}

.sales-order-packing-summary {
  min-width: 0;
  min-height: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  overflow: hidden;
  padding: 0 10px;
  border-top: 1px solid #aebbc1;
  color: #53636a;
  background: #e1e7e9;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.sales-order-packing-summary span { overflow: hidden; text-overflow: ellipsis; }
.sales-order-packing-view.is-confirmed .sales-order-packing-toolbar,
.sales-order-packing-view.is-confirmed .sales-order-packing-container-toolbar { background: #f1f4f5; }

/* Packing grids use the same fixed-column, two-row header treatment as order detail. */
#salesOrderPackingMasterTable,
#salesOrderPackingContainerTable,
#salesOutboundPackingMasterTable,
#salesOutboundPackingContainerTable,
.sales-order-packing-summary-table {
  table-layout: fixed;
  min-width: 0;
  max-width: none;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: #34424c;
  font-size: 12px;
}

#salesOrderPackingMasterTable,
#salesOrderPackingContainerTable,
#salesOutboundPackingMasterTable,
#salesOutboundPackingContainerTable {
  --sticky-title-row-height: 40px;
  width: auto;
}

#salesOrderPackingMasterTable thead,
#salesOrderPackingContainerTable thead,
#salesOutboundPackingMasterTable thead,
#salesOutboundPackingContainerTable thead {
  position: static;
  background: transparent;
}

#salesOrderPackingMasterTable th,
#salesOrderPackingMasterTable td,
#salesOrderPackingContainerTable th,
#salesOrderPackingContainerTable td,
#salesOutboundPackingMasterTable th,
#salesOutboundPackingMasterTable td,
#salesOutboundPackingContainerTable th,
#salesOutboundPackingContainerTable td,
.sales-order-packing-summary-table td {
  box-sizing: border-box;
  min-width: 0;
  border: 0;
  border-right: 1px solid #b8c4ca;
  border-bottom: 1px solid #b8c4ca;
  overflow: hidden;
  color: #34424c;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#salesOrderPackingMasterTable tr > :first-child,
#salesOrderPackingContainerTable tr > :first-child,
#salesOutboundPackingMasterTable tr > :first-child,
#salesOutboundPackingContainerTable tr > :first-child,
.sales-order-packing-summary-table tr > :first-child {
  border-left: 1px solid #b8c4ca;
}

#salesOrderPackingMasterTable > thead > .master-title-row > th,
#salesOrderPackingContainerTable > thead > .master-title-row > th,
#salesOutboundPackingMasterTable > thead > .master-title-row > th,
#salesOutboundPackingContainerTable > thead > .master-title-row > th {
  border-top: 1px solid #b8c4ca;
}

#salesOrderPackingMasterTable > thead > tr > th,
#salesOrderPackingContainerTable > thead > tr > th,
#salesOutboundPackingMasterTable > thead > tr > th,
#salesOutboundPackingContainerTable > thead > tr > th {
  position: sticky;
  z-index: 6;
  top: 0;
  height: 32px;
  padding: .5em 8px;
  color: #52616a;
  background: #fafbfb;
  background-clip: border-box;
  box-shadow: inset 0 -1px 0 #aebbc1;
  font-weight: 600;
}

#salesOrderPackingMasterTable > thead > .master-title-row > th,
#salesOrderPackingContainerTable > thead > .master-title-row > th,
#salesOutboundPackingMasterTable > thead > .master-title-row > th,
#salesOutboundPackingContainerTable > thead > .master-title-row > th {
  z-index: 7;
  top: 0;
  height: 40px;
  box-shadow: inset 0 -1px 0 #b8c4ca, 0 -2px 0 #fafbfb;
}

#salesOrderPackingMasterTable > thead > .master-filter-row > th,
#salesOrderPackingContainerTable > thead > .master-filter-row > th,
#salesOutboundPackingMasterTable > thead > .master-filter-row > th,
#salesOutboundPackingContainerTable > thead > .master-filter-row > th {
  z-index: 6;
  top: calc(var(--sticky-title-row-height, 40px) - 1px);
  height: 30px;
  background: #f7f9fa;
  box-shadow: inset 0 1px 0 #b8c4ca, inset 0 -1px 0 #aebbc1;
}

#salesOrderPackingMasterTable :is(th.row-number, td.row-number),
#salesOrderPackingContainerTable :is(th.row-number, td.row-number),
#salesOutboundPackingMasterTable :is(th.row-number, td.row-number),
#salesOutboundPackingContainerTable :is(th.row-number, td.row-number),
.sales-order-packing-summary-table td.row-number {
  padding-right: 6px;
  padding-left: 6px;
  color: #738087;
  background: #f3f6f6;
  font-variant-numeric: tabular-nums;
}

#salesOrderPackingMasterTable tbody td.row-number,
#salesOrderPackingContainerTable tbody td.row-number,
#salesOutboundPackingMasterTable tbody td.row-number,
#salesOutboundPackingContainerTable tbody td.row-number {
  cursor: var(--master-row-select-cursor);
}

#salesOrderPackingMasterTable :is(.master-select-column, .master-select-cell),
#salesOrderPackingContainerTable :is(.master-select-column, .master-select-cell),
#salesOutboundPackingMasterTable :is(.master-select-column, .master-select-cell),
#salesOutboundPackingContainerTable :is(.master-select-column, .master-select-cell),
.sales-order-packing-summary-table .master-select-cell {
  padding: 0 8px;
}

#salesOrderPackingMasterTable :is(.master-row-select, .master-select-all),
#salesOrderPackingContainerTable :is(.master-row-select, .master-select-all),
#salesOutboundPackingMasterTable :is(.master-row-select, .master-select-all),
#salesOutboundPackingContainerTable :is(.master-row-select, .master-select-all) {
  display: block;
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0 auto;
  padding: 0;
  border-radius: 2px;
  accent-color: var(--accent);
  box-shadow: none;
  cursor: pointer;
}

#salesOrderPackingMasterTable :is(.master-row-select, .master-select-all):focus-visible,
#salesOrderPackingContainerTable :is(.master-row-select, .master-select-all):focus-visible,
#salesOutboundPackingMasterTable :is(.master-row-select, .master-select-all):focus-visible,
#salesOutboundPackingContainerTable :is(.master-row-select, .master-select-all):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#salesOrderPackingMasterTable :is(.master-row-select, .master-select-all):disabled,
#salesOrderPackingContainerTable :is(.master-row-select, .master-select-all):disabled,
#salesOutboundPackingMasterTable :is(.master-row-select, .master-select-all):disabled,
#salesOutboundPackingContainerTable :is(.master-row-select, .master-select-all):disabled {
  cursor: not-allowed;
  opacity: .35;
}

#salesOrderPackingMasterTable :is(.master-filter-cell, .master-filter-spacer),
#salesOrderPackingContainerTable :is(.master-filter-cell, .master-filter-spacer),
#salesOutboundPackingMasterTable :is(.master-filter-cell, .master-filter-spacer),
#salesOutboundPackingContainerTable :is(.master-filter-cell, .master-filter-spacer) {
  padding: 3px 4px;
  background: #f7f9fa;
}

#salesOrderPackingMasterTable .master-column-filter-wrap,
#salesOrderPackingContainerTable .master-column-filter-wrap,
#salesOutboundPackingMasterTable .master-column-filter-wrap,
#salesOutboundPackingContainerTable .master-column-filter-wrap {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

#salesOrderPackingMasterTable .master-column-filter,
#salesOrderPackingContainerTable .master-column-filter,
#salesOutboundPackingMasterTable .master-column-filter,
#salesOutboundPackingContainerTable .master-column-filter {
  width: 100%;
  min-width: 0;
  height: 23px;
  min-height: 0;
  box-sizing: border-box;
  border: 1px solid #c3cdd3;
  border-radius: 2px;
  padding: .35em 30px .35em .5em;
  color: #34424c;
  background: #fff;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

#salesOrderPackingMasterTable .master-column-filter::-webkit-search-cancel-button,
#salesOrderPackingContainerTable .master-column-filter::-webkit-search-cancel-button,
#salesOutboundPackingMasterTable .master-column-filter::-webkit-search-cancel-button,
#salesOutboundPackingContainerTable .master-column-filter::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
}

#salesOrderPackingMasterTable .master-column-filter-clear,
#salesOrderPackingContainerTable .master-column-filter-clear,
#salesOutboundPackingMasterTable .master-column-filter-clear,
#salesOutboundPackingContainerTable .master-column-filter-clear {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  display: grid;
  width: 26px;
  min-width: 26px;
  min-height: 0;
  place-items: center;
  border: 0;
  border-radius: 2px;
  padding: 0;
  color: #6f7d86;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

#salesOrderPackingMasterTable .master-column-filter-clear:hover,
#salesOrderPackingMasterTable .master-column-filter-clear:focus-visible,
#salesOrderPackingContainerTable .master-column-filter-clear:hover,
#salesOrderPackingContainerTable .master-column-filter-clear:focus-visible,
#salesOutboundPackingMasterTable .master-column-filter-clear:hover,
#salesOutboundPackingMasterTable .master-column-filter-clear:focus-visible,
#salesOutboundPackingContainerTable .master-column-filter-clear:hover,
#salesOutboundPackingContainerTable .master-column-filter-clear:focus-visible {
  color: var(--accent-dark);
  background: rgba(15, 109, 104, .14);
  outline: 0;
}

#salesOrderPackingMasterTable .master-resizable-column,
#salesOrderPackingContainerTable .master-resizable-column,
#salesOutboundPackingMasterTable .master-resizable-column,
#salesOutboundPackingContainerTable .master-resizable-column {
  position: sticky;
  padding-right: 4px;
  padding-left: 6px;
  overflow: visible;
}

#salesOrderPackingMasterTable .master-draggable-column,
#salesOrderPackingContainerTable .master-draggable-column,
#salesOutboundPackingMasterTable .master-draggable-column,
#salesOutboundPackingContainerTable .master-draggable-column { cursor: grab; }
#salesOrderPackingMasterTable .master-draggable-column :is(button, input),
#salesOrderPackingContainerTable .master-draggable-column :is(button, input),
#salesOutboundPackingMasterTable .master-draggable-column :is(button, input),
#salesOutboundPackingContainerTable .master-draggable-column :is(button, input) { cursor: pointer; }
#salesOrderPackingMasterTable .master-draggable-column.is-column-dragging,
#salesOrderPackingContainerTable .master-draggable-column.is-column-dragging,
#salesOutboundPackingMasterTable .master-draggable-column.is-column-dragging,
#salesOutboundPackingContainerTable .master-draggable-column.is-column-dragging { opacity: .45; }

#salesOrderPackingMasterTable .master-column-resizer,
#salesOrderPackingContainerTable .master-column-resizer,
#salesOutboundPackingMasterTable .master-column-resizer,
#salesOutboundPackingContainerTable .master-column-resizer {
  position: absolute;
  z-index: 9;
  top: 0;
  right: -5px;
  width: 9px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
}

#salesOrderPackingMasterTable .master-column-resizer::after,
#salesOrderPackingContainerTable .master-column-resizer::after,
#salesOutboundPackingMasterTable .master-column-resizer::after,
#salesOutboundPackingContainerTable .master-column-resizer::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: transparent;
  content: "";
}

#salesOrderPackingMasterTable .master-column-resizer:hover::after,
#salesOrderPackingMasterTable .master-column-resizer.is-active::after,
#salesOrderPackingContainerTable .master-column-resizer:hover::after,
#salesOrderPackingContainerTable .master-column-resizer.is-active::after,
#salesOutboundPackingMasterTable .master-column-resizer:hover::after,
#salesOutboundPackingMasterTable .master-column-resizer.is-active::after,
#salesOutboundPackingContainerTable .master-column-resizer:hover::after,
#salesOutboundPackingContainerTable .master-column-resizer.is-active::after { background: var(--accent); }

#salesOrderPackingMasterTable .master-title-row [data-sales-order-packing-column-slot].is-column-drop-before::before,
#salesOrderPackingMasterTable .master-title-row [data-sales-order-packing-column-slot].is-column-drop-after::after,
#salesOrderPackingContainerTable .master-title-row [data-sales-order-packing-column-slot].is-column-drop-before::before,
#salesOrderPackingContainerTable .master-title-row [data-sales-order-packing-column-slot].is-column-drop-after::after,
#salesOutboundPackingMasterTable .master-title-row [data-sales-outbound-packing-column-slot].is-column-drop-before::before,
#salesOutboundPackingMasterTable .master-title-row [data-sales-outbound-packing-column-slot].is-column-drop-after::after,
#salesOutboundPackingContainerTable .master-title-row [data-sales-outbound-packing-column-slot].is-column-drop-before::before,
#salesOutboundPackingContainerTable .master-title-row [data-sales-outbound-packing-column-slot].is-column-drop-after::after {
  position: absolute;
  z-index: 8;
  top: 1px;
  bottom: 1px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
}

#salesOrderPackingMasterTable .master-title-row [data-sales-order-packing-column-slot].is-column-drop-before::before,
#salesOrderPackingContainerTable .master-title-row [data-sales-order-packing-column-slot].is-column-drop-before::before,
#salesOutboundPackingMasterTable .master-title-row [data-sales-outbound-packing-column-slot].is-column-drop-before::before,
#salesOutboundPackingContainerTable .master-title-row [data-sales-outbound-packing-column-slot].is-column-drop-before::before { left: -2px; }
#salesOrderPackingMasterTable .master-title-row [data-sales-order-packing-column-slot].is-column-drop-after::after,
#salesOrderPackingContainerTable .master-title-row [data-sales-order-packing-column-slot].is-column-drop-after::after,
#salesOutboundPackingMasterTable .master-title-row [data-sales-outbound-packing-column-slot].is-column-drop-after::after,
#salesOutboundPackingContainerTable .master-title-row [data-sales-outbound-packing-column-slot].is-column-drop-after::after { right: -2px; }

#salesOrderPackingMasterTable tbody td,
#salesOrderPackingContainerTable tbody td,
#salesOutboundPackingMasterTable tbody td,
#salesOutboundPackingContainerTable tbody td {
  height: 31px;
  padding: 0 8px;
}

#salesOrderPackingMasterTable tbody td:not([data-control-locked="true"]):not(:has([data-control-locked="true"])),
#salesOrderPackingContainerTable tbody td:not([data-control-locked="true"]):not(:has([data-control-locked="true"])),
#salesOutboundPackingMasterTable tbody td:not([data-control-locked="true"]):not(:has([data-control-locked="true"])),
#salesOutboundPackingContainerTable tbody td:not([data-control-locked="true"]):not(:has([data-control-locked="true"])) {
  background: #fff;
}

#salesOrderPackingMasterTable > tbody > tr:first-child > td,
#salesOrderPackingContainerTable > tbody > tr:first-child > td,
#salesOutboundPackingMasterTable > tbody > tr:first-child > td,
#salesOutboundPackingContainerTable > tbody > tr:first-child > td {
  border-top: 1px solid #b8c4ca;
}

#salesOrderPackingMasterTable tbody tr:hover > td:not([data-control-locked="true"]):not(:has([data-control-locked="true"])),
#salesOrderPackingContainerTable tbody tr:hover > td:not([data-control-locked="true"]):not(:has([data-control-locked="true"])),
#salesOutboundPackingMasterTable tbody tr:hover > td:not([data-control-locked="true"]):not(:has([data-control-locked="true"])),
#salesOutboundPackingContainerTable tbody tr:hover > td:not([data-control-locked="true"]):not(:has([data-control-locked="true"])) { background: #f3f7f7; }

#salesOrderPackingMasterTable tbody tr:is(.is-selected, .is-current-row) > td:not([data-control-locked="true"]):not(:has([data-control-locked="true"])),
#salesOrderPackingContainerTable tbody tr:is(.is-selected, .is-current-row) > td:not([data-control-locked="true"]):not(:has([data-control-locked="true"])),
#salesOutboundPackingMasterTable tbody tr:is(.is-selected, .is-current-row) > td:not([data-control-locked="true"]):not(:has([data-control-locked="true"])),
#salesOutboundPackingContainerTable tbody tr:is(.is-selected, .is-current-row) > td:not([data-control-locked="true"]):not(:has([data-control-locked="true"])) { background: #edf7f6; }

#salesOrderPackingMasterTable tbody tr.is-complete > td:not([data-control-locked="true"]):not(:has([data-control-locked="true"])),
#salesOutboundPackingMasterTable tbody tr.is-complete > td:not([data-control-locked="true"]):not(:has([data-control-locked="true"])) { color: #65737a; background: #edf1f2; }
#salesOrderPackingMasterTable tbody tr.is-complete:is(.is-selected, .is-current-row) > td:not([data-control-locked="true"]):not(:has([data-control-locked="true"])),
#salesOutboundPackingMasterTable tbody tr.is-complete:is(.is-selected, .is-current-row) > td:not([data-control-locked="true"]):not(:has([data-control-locked="true"])) { background: #e1eceb; }
#salesOrderPackingMasterTable tbody tr.is-partial > td:first-child { box-shadow: inset 3px 0 #c18a2d; }

#salesOrderPackingMasterTable .sales-order-packing-grid-cell,
#salesOrderPackingContainerTable .sales-order-packing-grid-cell,
#salesOutboundPackingMasterTable .sales-order-packing-grid-cell,
#salesOutboundPackingContainerTable .sales-order-packing-grid-cell {
  position: relative;
  cursor: default;
}

#salesOrderPackingMasterTable .sales-order-packing-cell-value,
#salesOrderPackingContainerTable .sales-order-packing-cell-value,
#salesOrderPackingMasterTable .sales-order-packing-quantity-value,
#salesOrderPackingContainerTable .sales-order-packing-quantity-value,
#salesOutboundPackingMasterTable .sales-order-packing-cell-value,
#salesOutboundPackingContainerTable .sales-order-packing-cell-value,
#salesOutboundPackingMasterTable .sales-order-packing-quantity-value,
#salesOutboundPackingContainerTable .sales-order-packing-quantity-value {
  display: block;
  width: 100%;
  min-width: 0;
  height: 30px;
  overflow: hidden;
  line-height: 30px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#salesOrderPackingMasterTable tbody td[data-sales-order-packing-cell]:focus-visible,
#salesOrderPackingContainerTable tbody td[data-sales-order-packing-cell]:focus-visible,
#salesOutboundPackingMasterTable tbody td[data-sales-outbound-packing-cell]:focus-visible,
#salesOutboundPackingContainerTable tbody td[data-sales-outbound-packing-cell]:focus-visible {
  position: relative;
  z-index: 2;
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

#salesOrderPackingMasterTable td.is-current-cell,
#salesOrderPackingContainerTable td.is-current-cell,
#salesOutboundPackingMasterTable td.is-current-cell,
#salesOutboundPackingContainerTable td.is-current-cell {
  position: relative;
  z-index: 2;
  box-shadow: inset 0 0 0 2px var(--accent);
}

#salesOrderPackingMasterTable td.is-range-selected,
#salesOrderPackingContainerTable td.is-range-selected,
#salesOutboundPackingMasterTable td.is-range-selected,
#salesOutboundPackingContainerTable td.is-range-selected {
  position: relative;
  z-index: 1;
}

#salesOrderPackingMasterTable td.is-range-selected::before,
#salesOrderPackingContainerTable td.is-range-selected::before,
#salesOutboundPackingMasterTable td.is-range-selected::before,
#salesOutboundPackingContainerTable td.is-range-selected::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  box-shadow: inset 0 0 0 2px var(--accent);
  pointer-events: none;
  content: "";
}

#salesOrderPackingContainerTable td.is-editing:not(:has([data-keyboard-armed="true"])),
#salesOutboundPackingContainerTable td.is-editing:not(:has([data-keyboard-armed="true"])) {
  position: relative;
  z-index: 3;
  background: #fff;
  box-shadow: none;
}

#salesOrderPackingContainerTable td.is-editing:not(:has([data-keyboard-armed="true"]))::after,
#salesOutboundPackingContainerTable td.is-editing:not(:has([data-keyboard-armed="true"]))::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  box-sizing: border-box;
  border: 1px solid var(--accent);
  pointer-events: none;
  content: "";
}

#salesOrderPackingContainerTable .sales-order-packing-quantity-editor,
#salesOutboundPackingContainerTable .sales-order-packing-quantity-editor {
  width: 100%;
  height: 30px;
  -webkit-user-select: none;
  user-select: none;
}

#salesOrderPackingContainerTable .sales-order-packing-quantity-input,
#salesOutboundPackingContainerTable .sales-order-packing-quantity-input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 30px;
  min-height: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  padding: .5em 4px;
  overflow: hidden;
  color: #34424c;
  background: transparent;
  box-shadow: none;
  font: inherit;
  text-align: right;
  text-overflow: ellipsis;
}

#salesOrderPackingContainerTable .sales-order-packing-quantity-input:focus,
#salesOutboundPackingContainerTable .sales-order-packing-quantity-input:focus {
  border: 0;
  outline: 0;
  box-shadow: none;
}

#salesOrderPackingContainerTable .sales-order-packing-quantity-input[readonly],
#salesOrderPackingContainerTable .sales-order-packing-quantity-input:disabled,
#salesOutboundPackingContainerTable .sales-order-packing-quantity-input[readonly],
#salesOutboundPackingContainerTable .sales-order-packing-quantity-input:disabled {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

#salesOrderPackingContainerTable td.is-editing .sales-order-packing-quantity-input,
#salesOutboundPackingContainerTable td.is-editing .sales-order-packing-quantity-input {
  pointer-events: auto;
  cursor: text;
  -webkit-user-select: text;
  user-select: text;
}

#salesOrderPackingContainerTable .sales-order-packing-quantity-input::-webkit-inner-spin-button,
#salesOrderPackingContainerTable .sales-order-packing-quantity-input::-webkit-outer-spin-button,
#salesOutboundPackingContainerTable .sales-order-packing-quantity-input::-webkit-inner-spin-button,
#salesOutboundPackingContainerTable .sales-order-packing-quantity-input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

#salesOrderPackingContainerTable .sales-order-packing-quantity-input:disabled,
#salesOutboundPackingContainerTable .sales-order-packing-quantity-input:disabled {
  color: var(--control-locked-color);
  background: transparent;
  opacity: 1;
  cursor: default;
}

#salesOrderPackingMasterTable .sales-order-packing-empty td,
#salesOrderPackingContainerTable .sales-order-packing-empty td,
#salesOutboundPackingMasterTable .sales-order-packing-empty td,
#salesOutboundPackingContainerTable .sales-order-packing-empty td {
  height: 42px !important;
  color: var(--muted);
  background: #fff;
  text-align: center !important;
}

.sales-order-packing-table-wrap {
  position: relative;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 33, 43, .28) transparent;
}

.sales-order-packing-table-wrap::-webkit-scrollbar { width: 6px; height: 6px; }

.sales-order-packing-summary {
  display: block;
  min-width: 0;
  min-height: 31px;
  height: 31px;
  flex: 0 0 31px;
  overflow: hidden;
  padding: 0;
  border-top: 1px solid #aebbc1;
  background: #e1e7e9;
}

.sales-order-packing-summary-table {
  height: 31px;
  transform-origin: left top;
  will-change: transform;
}

.sales-order-packing-summary-table td {
  height: 31px;
  padding: 0 8px;
  border-top: 1px solid #aebbc1;
  color: #53636a;
  background: #e1e7e9;
  font-weight: 600;
}

.sales-order-packing-summary-table td.row-number { background: #e1e7e9; }
.sales-order-packing-summary-table .sales-order-packing-summary-count {
  padding-left: 20px;
  text-align: left;
}
.sales-order-packing-summary-table .sales-order-packing-summary-value {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

body.is-sales-order-packing-range-selecting,
body.is-sales-outbound-packing-range-selecting { user-select: none !important; }

body.is-sales-order-packing-row-selecting,
body.is-sales-order-packing-row-selecting * {
  cursor: var(--master-row-select-cursor) !important;
  user-select: none;
}

body.is-sales-order-packing-column-resizing,
body.is-sales-order-packing-column-resizing *,
body.is-sales-outbound-packing-column-resizing,
body.is-sales-outbound-packing-column-resizing * { cursor: col-resize !important; }

body.is-sales-order-packing-column-dragging,
body.is-sales-order-packing-column-dragging *,
body.is-sales-outbound-packing-column-dragging,
body.is-sales-outbound-packing-column-dragging * { cursor: grabbing !important; user-select: none; }

@media (max-width: 1080px) {
  .sales-order-packing-master-pane { flex-basis: 52%; }
  .sales-order-packing-overview { display: none; }
}

.sales-quote-body-split {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  overflow: hidden;
  background: #fff;
}

.sales-quote-body-main,
.sales-quote-body-side {
  min-width: 0;
  min-height: 0;
}

.sales-quote-body-main {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sales-quote-body-side {
  display: none;
  flex: 0 0 0;
  background: #fff;
}

.sales-quote-body-side.is-active {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  overflow: hidden;
}

.sales-quote-body-side:not(.is-active) > * { display: none; }

#purchaseQuoteDetailToolbar {
  display: flex;
  min-height: 29px;
  height: 29px;
  flex: 0 0 29px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow: visible;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

#purchaseQuoteDetailToolbar .button {
  min-height: 28px;
  height: 28px;
  margin: 0;
  padding: 0 12px;
  font-size: 12px;
}

.purchase-quote-detail-table-wrap {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  background: #fff;
}

.purchase-quote-detail-summary-wrap {
  min-width: 0;
  height: 31px;
  flex: 0 0 31px;
  overflow: hidden;
  border-top: 1px solid #aebbc1;
  background: #e1e7e9;
}

#purchaseQuoteDetailSummaryTable {
  table-layout: fixed;
  height: 31px;
  min-width: 0;
  max-width: none;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: #34424c;
  transform-origin: left top;
  will-change: transform;
}

#purchaseQuoteDetailSummaryTable td {
  box-sizing: border-box;
  min-width: 0;
  height: 31px;
  border: 0;
  border-top: 1px solid #aebbc1;
  border-right: 1px solid #b8c4ca;
  border-bottom: 1px solid #b8c4ca;
  padding: 0 8px;
  overflow: hidden;
  color: #53636a;
  background: #e1e7e9;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#purchaseQuoteDetailSummaryTable tr > :first-child { border-left: 1px solid #b8c4ca; }
#purchaseQuoteDetailSummaryTable .purchase-quote-detail-summary-count {
  padding-left: 20px;
  text-align: left;
}

#salesQuoteDetailTable tbody tr.is-active-purchase-source > td:first-child {
  box-shadow: inset 3px 0 var(--accent);
}

.sales-quote-body-split.is-purchase-quote :is(#salesQuoteDetailToolbar, #purchaseQuoteDetailToolbar) {
  display: none;
}

#purchaseQuoteDetailTable {
  table-layout: fixed;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: #34424c;
  font-size: 12px;
}

#purchaseQuoteDetailTable thead { position: static; background: transparent; }

#purchaseQuoteDetailTable th,
#purchaseQuoteDetailTable td {
  box-sizing: border-box;
  min-width: 0;
  border: 0;
  border-right: 1px solid #b8c4ca;
  border-bottom: 1px solid #b8c4ca;
  padding: .5em 8px;
  overflow: hidden;
  color: #34424c;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#purchaseQuoteDetailTable tr > :first-child { border-left: 1px solid #b8c4ca; }
#purchaseQuoteDetailTable > thead > .master-title-row > th { border-top: 1px solid #b8c4ca; }

#purchaseQuoteDetailTable > thead > tr > th {
  position: sticky;
  z-index: 6;
  top: 0;
  height: 32px;
  color: #52616a;
  background: #fafbfb;
  box-shadow: inset 0 -1px 0 #aebbc1;
  font-weight: 600;
}

#purchaseQuoteDetailTable > thead > .master-title-row > th { z-index: 7; }
#purchaseQuoteDetailTable > thead > .master-filter-row > th {
  top: calc(var(--sticky-title-row-height, 40px) - 1px);
  height: 30px;
  background: #f7f9fa;
  box-shadow: inset 0 1px 0 #b8c4ca, inset 0 -1px 0 #aebbc1;
}

#purchaseQuoteDetailTable .row-number {
  padding-right: 6px;
  padding-left: 6px;
  color: #738087;
  background: #f3f6f6;
  font-variant-numeric: tabular-nums;
}

#purchaseQuoteDetailTable tbody td.sales-quote-row-number { padding: 0; }
#purchaseQuoteDetailTable .sales-quote-row-number-layout {
  display: grid;
  width: 100%;
  height: 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
#purchaseQuoteDetailTable .sales-quote-row-move-controls {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  border-right: 1px solid #c8d2d6;
}
#purchaseQuoteDetailTable .sales-quote-row-move-button {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #5e7178;
  background: transparent;
  font-size: 11px;
  line-height: 1;
}
#purchaseQuoteDetailTable .sales-quote-row-move-button:hover:not(:disabled),
#purchaseQuoteDetailTable .sales-quote-row-move-button:focus-visible { color: var(--accent-dark); background: rgba(15,109,104,.12); outline: 0; }
#purchaseQuoteDetailTable .sales-quote-row-number-value { display: grid; place-items: center; }

#purchaseQuoteDetailTable .master-select-column,
#purchaseQuoteDetailTable .master-select-cell { padding: 0 8px; }
#purchaseQuoteDetailTable .master-row-select,
#purchaseQuoteDetailTable .master-select-all,
#purchaseQuoteDetailTable .purchase-quote-parent-child-checkbox,
#purchaseQuoteDetailTable .purchase-quote-tax-checkbox {
  display: block;
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0 auto;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
#purchaseQuoteDetailTable .purchase-quote-parent-child-checkbox:disabled {
  opacity: 1;
  cursor: default;
}
#purchaseQuoteDetailTable :is(.master-row-select, .master-select-all, .purchase-quote-tax-checkbox):disabled {
  cursor: default;
}

#purchaseQuoteDetailTable .master-filter-cell,
#purchaseQuoteDetailTable .master-filter-spacer { padding: 3px 4px; background: #f7f9fa; }
#purchaseQuoteDetailTable .master-column-filter-wrap { position: relative; display: block; width: 100%; }
#purchaseQuoteDetailTable .master-column-filter {
  width: 100%;
  min-width: 0;
  height: 23px;
  min-height: 0;
  border: 1px solid #c3cdd3;
  border-radius: 2px;
  padding: .35em 28px .35em .5em;
  color: #34424c;
  background: #fff;
  font-size: 12px;
  text-align: center;
}
#purchaseQuoteDetailTable .master-column-filter-clear {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 25px;
  border: 0;
  padding: 0;
  color: #6f7d86;
  background: transparent;
}
#purchaseQuoteDetailTable .master-column-filter-clear:hover,
#purchaseQuoteDetailTable .master-column-filter-clear:focus-visible {
  color: var(--accent-dark);
  background: rgba(15, 109, 104, .14);
  outline: 0;
}
#purchaseQuoteDetailTable .master-resizable-column {
  position: sticky;
  padding-right: 4px;
  padding-left: 6px;
  overflow: visible;
}

#purchaseQuoteDetailTable .master-draggable-column { cursor: grab; }
#purchaseQuoteDetailTable .master-draggable-column :is(button, input) { cursor: pointer; }
#purchaseQuoteDetailTable .master-draggable-column.is-column-dragging { opacity: .45; }

#purchaseQuoteDetailTable .master-title-row [data-purchase-quote-column-slot].is-column-drop-before::before,
#purchaseQuoteDetailTable .master-title-row [data-purchase-quote-column-slot].is-column-drop-after::after {
  position: absolute;
  z-index: 8;
  top: 1px;
  bottom: 1px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
}

#purchaseQuoteDetailTable .master-title-row [data-purchase-quote-column-slot].is-column-drop-before::before { left: -2px; }
#purchaseQuoteDetailTable .master-title-row [data-purchase-quote-column-slot].is-column-drop-after::after { right: -2px; }

#purchaseQuoteDetailTable .master-column-resizer {
  position: absolute;
  z-index: 9;
  top: 0;
  right: -5px;
  width: 9px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
}

#purchaseQuoteDetailTable .master-column-resizer::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: transparent;
  content: "";
}

#purchaseQuoteDetailTable .master-column-resizer:hover::after,
#purchaseQuoteDetailTable .master-column-resizer.is-active::after { background: var(--accent); }

#purchaseQuoteDetailTable tbody td { height: 31px; padding: 0; background: #fff; }
#purchaseQuoteDetailTable > tbody > tr:first-child > td { border-top: 1px solid #b8c4ca; }
#purchaseQuoteDetailTable tbody tr.is-selected td { background: #edf7f6; }
#purchaseQuoteDetailTable tbody tr.is-purchase-locked > td:not(.purchase-quote-person-cell),
#purchaseQuoteDetailTable tbody tr.is-purchase-locked.is-selected > td:not(.purchase-quote-person-cell) {
  color: var(--control-locked-color);
  background: var(--control-locked-background);
  -webkit-user-select: none;
  user-select: none;
}
#purchaseQuoteDetailTable tbody tr.is-purchase-locked > td:not(.purchase-quote-person-cell) :is(input, button) {
  color: var(--control-locked-color);
  background: transparent;
  opacity: 1;
  -webkit-text-fill-color: var(--control-locked-color);
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}
#purchaseQuoteDetailTable tbody tr.sales-quote-detail-empty-row td { height: 42px; color: var(--muted); background: #fff; }
#purchaseQuoteDetailTable .sales-quote-grid-cell { position: relative; cursor: default; }

#purchaseQuoteDetailTable .sales-quote-line-input,
#purchaseQuoteDetailTable .sales-quote-material-input,
#purchaseQuoteDetailTable .purchase-quote-reference-input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 30px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: .5em 10px;
  overflow: hidden;
  color: #34424c;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  cursor: default;
  text-align: center;
  text-overflow: ellipsis;
  line-height: 1.2;
  white-space: nowrap;
}

#purchaseQuoteDetailTable :is(.sales-quote-material-cell, .purchase-quote-reference-cell):not([data-control-locked="true"]) {
  cursor: pointer;
}

#purchaseQuoteDetailTable .sales-quote-master-data-cell,
#purchaseQuoteDetailTable tr.is-selected .sales-quote-master-data-cell {
  color: var(--control-locked-color);
  background: var(--control-locked-background);
  -webkit-user-select: none;
  user-select: none;
}
#purchaseQuoteDetailTable .sales-quote-line-input.is-computed {
  color: var(--control-locked-color);
  background: transparent;
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}
#purchaseQuoteDetailTable .sales-quote-field-wrap { position: relative; display: block; width: 100%; height: 30px; }
#purchaseQuoteDetailTable .sales-quote-currency-field { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; column-gap: 2px; box-sizing: border-box; padding: 0 4px; }
#purchaseQuoteDetailTable .sales-quote-currency-field .sales-quote-line-input { padding-right: 0; padding-left: 0; appearance: textfield; }
#purchaseQuoteDetailTable .sales-quote-currency-prefix { position: static; z-index: 1; color: #53636a; pointer-events: none; transform: none; }

#salesQuoteDetailTable .sales-quote-currency-field .sales-quote-line-input::-webkit-inner-spin-button,
#salesQuoteDetailTable .sales-quote-currency-field .sales-quote-line-input::-webkit-outer-spin-button,
#purchaseQuoteDetailTable .sales-quote-currency-field .sales-quote-line-input::-webkit-inner-spin-button,
#purchaseQuoteDetailTable .sales-quote-currency-field .sales-quote-line-input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

#purchaseQuoteDetailTable .purchase-quote-edit-cell.is-editing:not(:has([data-keyboard-armed="true"])) {
  position: relative;
  z-index: 3;
  background: #fff;
  box-shadow: none;
}
#purchaseQuoteDetailTable .purchase-quote-edit-cell.is-editing:not(:has([data-keyboard-armed="true"]))::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  box-sizing: border-box;
  border: 1px solid var(--accent);
  pointer-events: none;
  content: "";
}
#purchaseQuoteDetailTable .purchase-quote-edit-cell.is-editing .sales-quote-line-input,
#purchaseQuoteDetailTable .purchase-quote-edit-cell.is-editing .sales-quote-material-input,
#purchaseQuoteDetailTable .purchase-quote-edit-cell.is-editing .purchase-quote-reference-input {
  background: #fff;
  pointer-events: auto;
  cursor: text;
  text-overflow: clip;
}

#salesQuoteDetailTable :is(
  .sales-quote-edit-cell,
  .sales-quote-material-cell,
  .sales-quote-brand-cell
).is-editing [data-keyboard-armed="true"],
#purchaseQuoteDetailTable .purchase-quote-edit-cell.is-editing [data-keyboard-armed="true"] {
  background: transparent;
  caret-color: transparent;
  cursor: default;
  text-overflow: ellipsis;
}

#salesQuoteDetailTable [data-keyboard-armed="true"]::selection,
#purchaseQuoteDetailTable [data-keyboard-armed="true"]::selection {
  color: inherit;
  background: transparent;
}
#purchaseQuoteDetailTable td.is-current-cell { position: relative; z-index: 2; box-shadow: inset 0 0 0 2px var(--accent); }
#purchaseQuoteDetailTable td.is-range-selected { position: relative; z-index: 1; }
#purchaseQuoteDetailTable td.is-range-selected::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  box-shadow: inset 0 0 0 2px var(--accent);
  pointer-events: none;
  content: "";
}
#purchaseQuoteDetailTable .purchase-quote-person-cell { vertical-align: middle; background: #fff; }

.purchase-quote-supplier-suggest .sales-quote-material-suggest-head,
.purchase-quote-supplier-suggest .sales-quote-material-suggest-filter,
.purchase-quote-supplier-suggest .sales-quote-material-suggest-row {
  grid-template-columns: minmax(120px, .75fr) minmax(180px, 1.25fr);
}
.purchase-quote-person-suggest .sales-quote-material-suggest-head,
.purchase-quote-person-suggest .sales-quote-material-suggest-filter,
.purchase-quote-person-suggest .sales-quote-material-suggest-row {
  grid-template-columns: minmax(180px, 1.25fr) minmax(120px, .75fr);
}

/* The supplemental-model picker uses the same quote picker surface, with one
   value column and the same compact row density. */
.sales-quote-brand-suggest.is-single-column .sales-quote-material-suggest-head,
.sales-quote-brand-suggest.is-single-column .sales-quote-material-suggest-filter,
.sales-quote-brand-suggest.is-single-column .sales-quote-material-suggest-row {
  grid-template-columns: minmax(0, 1fr);
}

.sales-quote-brand-suggest.is-single-column .sales-quote-material-suggest-head > span:nth-child(2),
.sales-quote-brand-suggest.is-single-column .sales-quote-material-suggest-filter > input:nth-child(2),
.sales-quote-brand-suggest.is-single-column .sales-quote-material-suggest-row > span:nth-child(2),
.sales-quote-brand-suggest.is-single-column .sales-quote-material-suggest-foot {
  display: none;
}

.sales-quote-brand-suggest.is-single-column .sales-quote-material-suggest-head,
.sales-quote-brand-suggest.is-single-column .sales-quote-material-suggest-filter,
.sales-quote-brand-suggest.is-single-column .sales-quote-material-suggest-row {
  min-width: 0;
}

.sales-quote-brand-suggest.is-single-column .sales-quote-material-suggest-rows {
  max-height: 248px;
  overflow-y: auto;
}

#salesQuoteDetailTable td.is-supplemental-editing {
  position: relative;
  z-index: 4;
  background: #fff;
}

#salesQuoteDetailTable .sales-supplemental-query-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: center;
}

#salesQuoteDetailTable td.is-supplemental-editing
  > .sales-quote-line-input:not(.sales-supplemental-query-input) {
  display: none;
}

.sales-quote-body-splitter {
  position: relative;
  z-index: 5;
  display: none;
  width: 9px;
  min-width: 9px;
  height: 100%;
  flex: 0 0 9px;
  border-right: 1px solid #d2dadd;
  border-left: 1px solid #d2dadd;
  background: #f4f7f7;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
}

.sales-quote-body-split.is-purchase-quote > .sales-quote-body-splitter { display: block; }

.sales-quote-body-splitter:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px rgba(71, 104, 112, .18);
}

.sales-quote-body-splitter-controls {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: inline-flex;
  flex-direction: column;
  border: 1px solid #b9c5c9;
  border-radius: 3px;
  background: #fff;
  transform: translate(-50%, -50%);
}

.sales-quote-body-splitter-controls button {
  display: grid;
  width: 7px;
  height: 24px;
  place-items: center;
  border: 0;
  border-bottom: 1px solid #d2dadd;
  padding: 0;
  color: #53656c;
  background: #fff;
}

.sales-quote-body-splitter-controls button:last-child { border-bottom: 0; }
.sales-quote-body-splitter-controls button:hover,
.sales-quote-body-splitter-controls button:focus-visible { color: #294f54; background: #eaf1f1; outline: 0; }

body.is-sales-quote-body-resizing,
body.is-sales-quote-body-resizing * { cursor: col-resize !important; }

.toolbar.sales-quote-detail-toolbar {
  display: flex;
  flex: 0 0 auto;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.sales-quote-detail-toolbar .button {
  flex: 0 0 auto;
  min-height: 28px;
  height: 28px;
  margin-left: 0;
  padding: 0 12px;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1;
}

.sales-quote-detail-table-wrap {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
}

.sales-quote-detail-summary-wrap,
.module-summary-wrap {
  min-width: 0;
  height: 31px;
  flex: 0 0 31px;
  overflow: hidden;
  border-top: 1px solid #aebbc1;
  background: #e1e7e9;
}

.sales-quote-body-pane > .table-foot {
  flex: 0 0 auto;
  padding: 11px 20px;
  background: var(--surface);
}

.sales-quote-choice-modal { width: min(660px, calc(100% - 28px)); }
.sales-quote-choice-modal.is-customer-mode { width: min(780px, calc(100% - 28px)); }
.modal.choice-modal.sales-quote-material-modal {
  width: min(var(--picker-modal-width, 80vw), calc(100% - 28px));
  max-width: calc(100% - 28px);
  height: 80vh;
  height: 80dvh;
  max-height: 80vh;
  max-height: 80dvh;
}
.sales-quote-material-modal > form {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: none;
}
.sales-quote-material-modal .sales-quote-material-modal-head {
  min-height: 48px;
  justify-content: flex-end;
  padding: 8px 12px 7px;
}
.purchase-quote-choice-modal .sales-quote-material-modal-head {
  position: relative;
  justify-content: center;
}
.purchase-quote-choice-modal .sales-quote-material-modal-head > div {
  width: 100%;
  padding-inline: 36px;
  text-align: center;
}
.purchase-quote-choice-modal .sales-quote-material-modal-head .choice-modal-close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
}
.purchase-quote-choice-modal .sales-quote-material-modal-head .choice-modal-close:active {
  transform: translateY(-50%) scale(.94);
}
.sales-quote-material-modal .sales-quote-material-modal-body {
  display: flex;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  grid-template-columns: none;
  gap: 0;
  overflow: hidden;
  padding: 0;
}
.sales-quote-material-table-wrap {
  min-width: 0;
  min-height: 0;
  width: 100%;
  flex: 1 1 auto;
  max-height: none;
  overflow: auto;
  scrollbar-gutter: stable;
  background: #fff;
}
#salesQuoteMaterialTableWrap { overflow-anchor: none; }
#salesQuoteMaterialTable > tbody > tr.master-row,
#salesQuoteMaterialTable > tbody > tr.master-row > td {
  height: var(--sales-quote-material-virtual-row-height, 42px);
  max-height: var(--sales-quote-material-virtual-row-height, 42px);
}
#salesQuoteMaterialTable > tbody > tr.master-row > td { vertical-align: middle; }
#salesQuoteMaterialTable > tbody > tr.sales-quote-material-virtual-spacer > td {
  height: auto !important;
  max-height: none !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  font-size: 0;
  line-height: 0;
  pointer-events: none;
}
#salesQuoteMaterialTable .sales-quote-material-virtual-spacer-fill {
  display: block;
  width: 1px;
  min-width: 1px;
  max-width: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}
#salesQuoteMaterialTable .sales-quote-material-virtual-spacer.is-top .sales-quote-material-virtual-spacer-fill {
  height: var(--sales-quote-material-virtual-top-spacer-height, 0);
}
#salesQuoteMaterialTable .sales-quote-material-virtual-spacer.is-bottom .sales-quote-material-virtual-spacer-fill {
  height: var(--sales-quote-material-virtual-bottom-spacer-height, 0);
}
.sales-quote-material-table {
  width: 100%;
  min-width: 0;
  max-width: none;
  border: 0;
  border-spacing: 0;
  border-collapse: separate;
  outline: 1px solid #b8c4ca;
  outline-offset: -1px;
  table-layout: fixed;
  font-size: 12px;
}
#purchaseQuoteChoiceTable { margin-inline: 0; }
#purchaseQuoteChoiceTable tbody tr[data-purchase-quote-choice-index] { cursor: pointer; }
.sales-quote-picker-table th,
.sales-quote-picker-table td {
  box-sizing: border-box;
  min-width: 0;
  border: 0;
  border-right: 1px solid #b8c4ca;
  border-bottom: 1px solid #b8c4ca;
  padding: .5em 8px;
  overflow: hidden;
  color: #34424c;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sales-quote-picker-table tr > :first-child { border-left: 1px solid #b8c4ca; }
.sales-quote-picker-table > thead > .master-title-row > th { border-top: 1px solid #b8c4ca; }
.sales-quote-picker-table th:last-child,
.sales-quote-picker-table td:last-child { border-color: #b8c4ca; }
.sales-quote-picker-table > tbody > tr > td {
  height: 27px;
  border-bottom: 1px solid #b8c4ca;
  background-image: none;
  line-height: 14px;
}
.sales-quote-picker-table thead { position: static; background: transparent; }
.sales-quote-picker-table > thead > tr > th {
  position: sticky;
  z-index: 6;
  top: 0;
  height: 32px;
  color: #52616a;
  background: #fafbfb;
  background-clip: border-box;
  box-shadow: inset 0 -1px 0 #aebbc1;
  font-weight: 600;
}
.sales-quote-picker-table > thead > .master-title-row > th {
  z-index: 7;
  top: 0;
  box-shadow: inset 0 -1px 0 #b8c4ca, 0 -2px 0 #fafbfb;
}
.sales-quote-picker-table > thead > .master-filter-row > th {
  z-index: 6;
  top: calc(var(--sticky-title-row-height, 40px) - 1px);
  height: 30px;
  background: #f7f9fa;
  box-shadow: inset 0 1px 0 #b8c4ca, inset 0 -1px 0 #aebbc1;
}
.sales-quote-picker-table th.row-number,
.sales-quote-picker-table td.row-number {
  width: auto;
  min-width: 0;
  padding-right: 6px;
  padding-left: 6px;
  color: #738087;
  background-color: #f3f6f6;
  font-variant-numeric: tabular-nums;
}
.sales-quote-picker-table tbody td.row-number { cursor: var(--master-row-select-cursor); }
.sales-quote-picker-table .master-select-column,
.sales-quote-picker-table .master-select-cell {
  width: auto;
  min-width: 0;
  padding: 0 8px;
}
[data-multi-select-dialog] :is(.master-select-column, .master-select-cell):has(input[type="checkbox"]:not(:disabled)) {
  cursor: pointer;
}
.sales-quote-picker-table .master-row-select,
.sales-quote-picker-table .master-select-all {
  display: block;
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0 auto;
  padding: 0;
  border-radius: 2px;
  accent-color: var(--accent);
  box-shadow: none;
  cursor: pointer;
}
.sales-quote-picker-table .master-row-select:focus-visible,
.sales-quote-picker-table .master-select-all:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sales-quote-picker-table .master-select-all:disabled {
  cursor: not-allowed;
  opacity: .35;
}
.sales-quote-picker-table .master-filter-cell,
.sales-quote-picker-table .master-filter-spacer {
  padding: 3px 4px;
  background: #f7f9fa;
}
.sales-quote-picker-table .master-column-filter-wrap {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}
.sales-quote-picker-table .master-column-filter {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 23px;
  border: 1px solid #c3cdd3;
  border-radius: 2px;
  padding: .35em 30px .35em .5em;
  color: #34424c;
  background: #fff;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}
.sales-quote-picker-table .master-column-filter::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
}
.sales-quote-picker-table .master-column-filter-clear {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  display: grid;
  width: 26px;
  min-width: 26px;
  min-height: 0;
  place-items: center;
  border: 0;
  border-radius: 2px;
  padding: 0;
  color: #6f7d86;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: color .12s ease, background .12s ease, transform .08s ease;
}
.sales-quote-picker-table .master-column-filter-clear:hover,
.sales-quote-picker-table .master-column-filter-clear:focus-visible {
  color: var(--accent-dark);
  background: rgba(15, 109, 104, .14);
  outline: 0;
}
.sales-quote-picker-table .master-column-filter-clear:active {
  background: rgba(15, 109, 104, .22);
  transform: scale(.92);
}
.sales-quote-picker-table .master-resizable-column {
  position: sticky;
  padding-right: 4px;
  padding-left: 6px;
  overflow: visible;
}
.sales-quote-picker-table tbody tr {
  color: #34424c;
  background: #fff;
  cursor: default;
}
.sales-quote-picker-table tbody tr:hover td,
.sales-quote-picker-table tbody tr.is-selected td { background-color: #edf7f6; }
.sales-quote-picker-table tbody tr.is-active > td:first-child {
  box-shadow: inset 3px 0 var(--accent);
}
.sales-quote-picker-table tbody tr:focus { outline: 0; }
.sales-quote-picker-table td.is-current-cell {
  position: relative;
  z-index: 1;
  box-shadow: inset 0 0 0 2px var(--accent);
}
.sales-quote-picker-table td.is-current-cell::after,
.sales-quote-picker-table td.is-range-selected::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  box-shadow: inset 0 0 0 2px var(--accent);
  pointer-events: none;
  content: "";
}
.sales-quote-picker-table td.is-range-selected {
  position: relative;
  z-index: 1;
}
.sales-quote-picker-table .master-language-display {
  direction: ltr;
  text-align: left;
}
.sales-quote-picker-table .master-image-cell {
  position: relative;
  padding: 2px 6px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}
.sales-quote-picker-table .master-image-cell:hover .master-image-cell-layer.is-stack-0,
.sales-quote-picker-table .master-image-cell:focus-visible .master-image-cell-layer.is-stack-0 {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.sales-quote-picker-table .master-box-spec-cell,
#salesQuoteDetailTable .sales-quote-box-spec-cell {
  padding: 0 6px;
}
.sales-quote-picker-table .box-spec-readonly-editor,
#salesQuoteDetailTable .box-spec-readonly-editor {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  align-items: center;
  gap: 3px;
  overflow: hidden;
}
.sales-quote-picker-table .box-spec-readonly-editor .master-dimension-input,
#salesQuoteDetailTable .box-spec-readonly-editor .master-dimension-input {
  display: grid;
  width: 42px;
  min-width: 42px;
  height: 26px;
  flex: 0 0 42px;
  box-sizing: border-box;
  place-items: center;
  border: 1px solid #c6d0d5;
  border-radius: 2px;
  padding: 2px 4px;
  overflow: hidden;
  color: #34424c;
  background: #fff;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sales-quote-picker-table .box-spec-readonly-editor .master-dimension-separator,
.sales-quote-picker-table .box-spec-readonly-editor .master-dimension-unit,
.sales-quote-picker-table .box-spec-readonly-editor .master-box-spec-unit,
#salesQuoteDetailTable .box-spec-readonly-editor .master-dimension-separator,
#salesQuoteDetailTable .box-spec-readonly-editor .master-dimension-unit,
#salesQuoteDetailTable .box-spec-readonly-editor .master-box-spec-unit {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}
.sales-quote-picker-table .box-spec-readonly-editor .master-dimension-unit,
#salesQuoteDetailTable .box-spec-readonly-editor .master-dimension-unit {
  min-width: 10px;
  color: #465158;
}
.sales-quote-picker-table .box-spec-readonly-editor .master-box-spec-input,
#salesQuoteDetailTable .box-spec-readonly-editor .master-box-spec-input {
  display: grid;
  width: 42px;
  min-width: 42px;
  height: 26px;
  flex: 0 0 42px;
  box-sizing: border-box;
  place-items: center;
  border: 1px solid #c6d0d5;
  border-radius: 2px;
  padding: 2px 4px;
  overflow: hidden;
  color: #34424c;
  background: #fff;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sales-quote-picker-table .box-spec-readonly-editor .master-box-quantity-input,
#salesQuoteDetailTable .box-spec-readonly-editor .master-box-quantity-input,
.sales-quote-picker-table .box-spec-readonly-editor .master-box-weight-input,
#salesQuoteDetailTable .box-spec-readonly-editor .master-box-weight-input { flex-basis: 42px; }
.sales-quote-picker-table tr.is-selected .box-spec-readonly-value,
#salesQuoteDetailTable tr.is-selected .box-spec-readonly-value { background: transparent; }
.sales-quote-picker-table .box-spec-readonly-value,
#salesQuoteDetailTable .box-spec-readonly-value { pointer-events: none; }
.sales-quote-picker-table .box-spec-readonly-legacy,
#salesQuoteDetailTable .box-spec-readonly-legacy {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#salesQuoteDetailTable.is-approved-locked tbody tr > td {
  color: var(--control-locked-color);
  background: var(--control-locked-background);
  -webkit-user-select: none;
  user-select: none;
}

#salesQuoteDetailTable.is-approved-locked tbody :is(
  .sales-quote-line-input,
  .sales-quote-material-input,
  .sales-quote-brand-input
) {
  color: var(--control-locked-color);
  background: transparent;
  opacity: 1;
  -webkit-text-fill-color: var(--control-locked-color);
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

#salesQuoteDetailTable.is-approved-locked tbody .sales-quote-currency-field:has(.sales-quote-line-input) {
  background: transparent;
}

#salesQuoteDetailTable.is-approved-locked tbody .box-spec-readonly-editor :is(
  .master-dimension-input,
  .master-box-spec-input
) {
  color: var(--control-locked-color);
  background: transparent;
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

#salesQuoteDetailTable tbody tr > td.purchase-order-packaging-uncertain,
#salesQuoteDetailTable tbody tr:is(.is-material-empty, .is-selected, .is-active-purchase-source) > td.purchase-order-packaging-uncertain,
#salesQuoteDetailTable.is-approved-locked tbody tr > td.purchase-order-packaging-uncertain,
#salesQuoteDetailTable tbody tr > td.purchase-order-packaging-uncertain.is-editing {
  color: #861d25;
  background: #ffd6d9;
}

#salesQuoteDetailTable tbody td.purchase-order-packaging-uncertain .sales-quote-line-input,
#salesQuoteDetailTable.is-approved-locked tbody td.purchase-order-packaging-uncertain .sales-quote-line-input {
  color: #861d25;
  background: transparent;
  -webkit-text-fill-color: #861d25;
}

#salesQuoteDetailTable.is-purchase-role-restricted tbody tr > td.purchase-order-packaging-uncertain[data-control-locked="true"] {
  color: var(--control-locked-color);
  background: var(--control-locked-background);
}

#salesQuoteDetailTable.is-purchase-role-restricted tbody td.purchase-order-packaging-uncertain[data-control-locked="true"] .sales-quote-line-input {
  color: var(--control-locked-color);
  -webkit-text-fill-color: var(--control-locked-color);
}

#salesQuoteDetailTable tbody tr.is-purchase-inventory-taken > td:not(.row-number),
#salesQuoteDetailTable tbody tr.is-purchase-cancelled > td,
#moduleTable tbody tr.is-purchase-cancelled > td,
#moduleTable tbody tr.is-purchase-inventory-taken > td:not(.row-number) {
  background: var(--grid-highlight-yellow) !important;
}

#moduleTable tbody tr.is-inventory-negative > td:not(.row-number) {
  --theme-document-ink: var(--inventory-negative-ink);
  color: var(--inventory-negative-ink) !important;
  background: var(--inventory-negative-background) !important;
}

#moduleTable tbody tr.is-inventory-negative > td:not(.row-number) :is(.document-grid-cell-control, .box-spec-readonly-value, .master-cell-input) {
  color: var(--inventory-negative-ink) !important;
  -webkit-text-fill-color: var(--inventory-negative-ink);
}

#moduleTable tbody tr.is-purchase-inventory-taken:is(:hover, .is-selected, .is-current-row) > td:not(.row-number) {
  background: color-mix(in srgb, var(--grid-highlight-yellow) 90%, var(--theme-document-ink, var(--ink))) !important;
}

#moduleTable tbody tr.is-inventory-negative:is(:hover, .is-selected, .is-current-row) > td:not(.row-number) {
  background: color-mix(in srgb, var(--inventory-negative-background) 88%, var(--inventory-negative-ink)) !important;
}

.inventory-lot-picker-modal .modal-foot-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sales-quote-material-table-foot {
  display: flex;
  flex: 0 0 auto;
  min-height: 39px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
}
.sales-quote-material-table-foot .button {
  min-width: 82px;
}
body.is-master-range-selecting {
  user-select: none !important;
}
.sales-quote-material-table-state { height: 96px !important; color: var(--muted); text-align: center; }
.column-visibility-modal { width: min(560px, calc(100% - 28px)); }
.sales-quote-choice-body { display: grid; grid-template-columns: 1fr; gap: 10px; }
.sales-quote-choice-search { width: 100%; height: 34px; border: 1px solid #cbd6da; border-radius: 4px; padding: 0 10px; }
.sales-quote-material-modal .picker-inherited-search { flex: 1; min-width: 0; width: auto; max-width: 420px; height: 28px; min-height: 28px; margin-right: 8px; }
.purchase-quote-choice-modal .picker-inherited-search { flex: 0 0 auto; width: 100%; max-width: none; margin: 0 0 6px; }
.more-picker-column-resizer { position: absolute; z-index: 9; top: 0; right: 0; width: 9px; height: 100%; cursor: col-resize; touch-action: none; user-select: none; }
.more-picker-column-resizer::after { position: absolute; top: 0; bottom: 0; right: 0; width: 1px; content: ""; background: transparent; }
.more-picker-column-resizer:hover::after { background: var(--accent); }
[data-more-picker-column] { touch-action: none; user-select: none; }
[data-more-picker-column].is-more-column-before { box-shadow: inset 2px 0 var(--accent); }
[data-more-picker-column].is-more-column-after { box-shadow: inset -2px 0 var(--accent); }
.choice-table-head > [data-more-picker-column] { position: relative; min-width: 0; padding-right: 10px; }
.more-picker-heading-label { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; white-space: normal; line-height: 16px; }
.sales-quote-picker-table > thead > .master-title-row > th.is-more-column-before { box-shadow: inset 2px 0 var(--accent); }
.sales-quote-picker-table > thead > .master-title-row > th.is-more-column-after { box-shadow: inset -2px 0 var(--accent); }
.choice-table-empty { padding: 30px 14px; color: var(--muted); text-align: center; }

@media (max-width: 760px) {
  .sales-quote-detail-actions { overflow-x: auto; }
}

/* Global read-only business document preview. */
.content.is-document-preview-active {
  max-width: none;
  padding: 0;
  overflow: hidden;
}
.is-document-preview-source-hidden { display: none !important; }
.document-preview-view {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #eef1f3;
  user-select: none;
  -webkit-user-select: none;
}
.document-preview-view[hidden] { display: none !important; }
.view.document-preview-view.is-active { display: flex; }
.document-preview-heading {
  min-height: 44px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 10px;
  border-bottom: 1px solid #b8c0c5;
  background: #fff;
}
.document-preview-heading > div { min-width: 0; }
.document-preview-heading-main {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
}
.document-preview-toolbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}
.document-preview-heading-copy { min-width: 0; }
.document-preview-heading .eyebrow { display: none; }
.document-preview-heading h1 {
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.document-preview-heading p {
  margin: 1px 0 0;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.document-preview-heading .button {
  min-height: 28px;
  flex: 0 0 auto;
  padding: 4px 9px;
  font-size: 12px;
}
.document-preview-workspace {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 0;
  background: #fff;
}
.document-preview-sheet {
  table-layout: fixed;
  width: max-content;
  min-width: 0;
  max-width: none;
  border-collapse: collapse;
  border-spacing: 0;
  color: #17212b;
  background: #fff;
  box-shadow: none;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 12px;
  cursor: default;
}
.document-preview-sheet .document-preview-row-header-column { width: 42px; }
.document-preview-sheet th,
.document-preview-sheet td {
  box-sizing: border-box;
  min-width: 0;
  height: inherit;
  border: 1px solid #c7cdd1;
  padding: 4px 6px;
  overflow: hidden;
  line-height: 1.35;
}
.document-preview-sheet thead th {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 25px;
  padding: 2px 4px;
  color: #3f4a50;
  background: #e8ecee;
  background-clip: border-box;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
}
.document-preview-sheet tbody th {
  position: sticky;
  z-index: 10;
  left: 0;
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  padding: 2px 4px;
  color: #536067;
  background: #edf0f2;
  background-clip: border-box;
  font-size: 10px;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
}
.document-preview-sheet .document-preview-sheet-corner {
  z-index: 30;
  left: 0;
  width: 42px;
  min-width: 42px;
  background: #dfe4e7;
}
.document-preview-sheet td > span { display: block; max-width: 100%; }
.document-preview-sheet td.document-preview-fixed-height-cell > span,
.document-preview-sheet td.document-preview-fixed-height-cell > img {
  max-height: max(0px, calc(var(--document-preview-cell-height) - 9px));
  overflow: hidden;
}
.document-preview-sheet td > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  pointer-events: none;
}
.document-preview-pages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: max-content;
  padding: 0;
}
.document-preview-page {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 8px rgba(23, 33, 43, .18);
}
.document-preview-page-table {
  position: absolute;
  transform-origin: top left;
}
.document-preview-page-table th,
.document-preview-page-table td { position: static; }
.document-preview-page-table td[data-document-preview-virtual-cell="true"] { border-color: transparent; }
.document-preview-context-menu { z-index: 30; min-width: 128px; }
.document-preview-context-menu button:disabled { cursor: wait; opacity: .6; }

@media (max-width: 760px) {
  .document-preview-heading { min-height: 42px; padding-inline: 6px; }
  .document-preview-heading .eyebrow,
  .document-preview-heading p { display: none; }
  .document-preview-heading h1 { font-size: 13px; }
  .document-preview-heading-main { gap: 6px; }
  .document-preview-toolbar-actions { gap: 4px; }
  .document-preview-heading .button { padding-inline: 7px; }
}

.packaging-outbound-detail-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.packaging-outbound-header-pane { flex: 0 0 auto; }

.packaging-outbound-header-form {
  display: grid;
  grid-template-areas:
    "number date loading status supplier"
    "warehouse follower address contact phone"
    "logistics notes . . .";
  justify-content: start;
  column-gap: 12px;
  row-gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 20px;
  border-bottom: 0;
  background: #f9fbfb;
}

.packaging-outbound-header-form label {
  min-width: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  color: #536169;
  font-size: 12px;
  font-weight: 600;
}

.packaging-outbound-header-form label > span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
  white-space: nowrap;
}

.packaging-outbound-header-form label > span::after { content: "："; }

.packaging-outbound-header-form :is(input, select) {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  height: 30px;
  border: 1px solid #ccd6da;
  border-radius: 4px;
  padding: 0 8px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 400;
}

.packaging-outbound-number { grid-area: number; }
.packaging-outbound-date { grid-area: date; }
.packaging-outbound-loading-date { grid-area: loading; }
.packaging-outbound-supplier { grid-area: supplier; }
.packaging-outbound-warehouse { grid-area: warehouse; }
.packaging-outbound-follower { grid-area: follower; }
.packaging-outbound-address { grid-area: address; }
.packaging-outbound-contact { grid-area: contact; }
.packaging-outbound-phone { grid-area: phone; }
.packaging-outbound-logistics { grid-area: logistics; }
.packaging-outbound-notes { grid-area: notes; }
.packaging-outbound-status { grid-area: status; }

.packaging-outbound-body-split { min-height: 0; }
.packaging-outbound-body-split > .sales-quote-body-splitter { display: block; }
.packaging-outbound-body-split .sales-quote-body-side { display: flex; flex: 1 1 0; flex-direction: column; overflow: hidden; }

.packaging-outbound-detail-toolbar { display: none; }

.packaging-outbound-grid { width: var(--packaging-outbound-table-width, 760px); table-layout: fixed; }
.packaging-outbound-grid th { white-space: nowrap; }
.packaging-outbound-grid td { padding: 0; }
.packaging-outbound-grid tbody input:not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  height: 31px;
  border: 0;
  padding: 0 9px;
  color: var(--ink);
  background: transparent;
  font: inherit;
}
.packaging-outbound-grid tbody input:not([type="checkbox"]):focus { outline: 2px solid rgba(71, 104, 112, .2); outline-offset: -2px; background: #fff; }
.packaging-outbound-grid tr.is-selected td { background: #edf5f5; }
.packaging-outbound-grid .row-number,
.packaging-outbound-grid .master-select-column,
.packaging-outbound-grid .master-select-cell { padding: 0 6px; text-align: center; }
.packaging-outbound-row-number-col { width: 48px; }
.packaging-outbound-select-col { width: 34px; }

@media (max-width: 640px) {
  .packaging-outbound-header-form { padding-inline: 12px; }
}

/* Packaging outbound detail deliberately reuses the purchase-quote grid contract. */
#packagingOutboundDetailView {
  display: none;
}

#packagingOutboundDetailView.is-active {
  position: static;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
}

/* Shared single-document detail contract. New documents should use these
   surfaces and the common header/grid behavior instead of page-specific controls. */
.document-detail-view {
  display: none;
}

.document-detail-view.is-active {
  position: static;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
}

.document-detail-view > .page-heading {
  flex: 0 0 50px;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  height: 50px;
  margin: 0;
  padding: 6px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.document-detail-view > .page-heading > .sales-quote-detail-heading {
  display: none;
}

.document-detail-view > .sales-quote-detail-panel {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  background: var(--surface);
}

.document-detail-view .document-header-form {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.document-header-form [data-document-double-click-edit]:not(:disabled):not([data-control-locked="true"]) {
  color: var(--ink);
  border-color: #ccd6da;
  background: #fff;
  caret-color: transparent;
  cursor: default;
  -webkit-text-fill-color: var(--ink);
}

.document-header-form label.is-document-header-active :is(input, textarea, button, select) {
  border: 1px solid #77979c !important;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(72, 112, 116, .12) !important;
}

.document-header-form :is(input, textarea, select, button)[data-control-locked="true"],
.document-header-form [data-control-locked="true"] :is(input, textarea, select, button),
.document-header-form .document-status-control {
  color: var(--control-locked-color) !important;
  border-color: var(--control-locked-border) !important;
  background: var(--control-locked-background) !important;
  opacity: 1;
  -webkit-text-fill-color: var(--control-locked-color) !important;
  caret-color: transparent !important;
  cursor: default !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

/* A locked header field remains read-only, but a click still exposes the active field. */
.document-header-form label.is-document-header-active :is(
  input,
  textarea,
  select,
  button
)[data-control-locked="true"],
.document-header-form label.is-document-header-active [data-control-locked="true"] :is(
  input,
  textarea,
  select,
  button
),
.document-header-form label.is-document-header-active .document-status-control {
  border-color: var(--accent) !important;
  outline: 0 !important;
  box-shadow: 0 0 0 2px rgba(15, 109, 104, .32) !important;
}

.document-header-form label.is-editing:not(:has([data-keyboard-armed="true"])) [data-document-double-click-edit]:not(:disabled):not([data-control-locked="true"]) {
  border-color: var(--accent);
  caret-color: auto;
}

.document-header-form label.is-editing:not(:has([data-keyboard-armed="true"])) :is(input, textarea).is-document-editing { cursor: text; }

.document-header-form [data-keyboard-armed="true"] {
  caret-color: transparent !important;
  cursor: default !important;
}

.document-header-form [data-keyboard-armed="true"]::selection {
  color: inherit;
  background: transparent;
}

.receipt-header-form {
  grid-template-areas:
    "number document-date inbound-date supplier customer"
    "address contact phone follower notes";
}

.receipt-number { grid-area: number; }
.receipt-document-date { grid-area: document-date; }
.receipt-inbound-date { grid-area: inbound-date; }
.receipt-supplier { grid-area: supplier; }
.receipt-customer { grid-area: customer; }
.receipt-address { grid-area: address; }
.receipt-contact { grid-area: contact; }
.receipt-phone { grid-area: phone; }
.receipt-follower { grid-area: follower; }
.receipt-notes { grid-area: notes; }

.purchase-inbound-header-form {
  grid-template-areas:
    "number date status warehouse customer"
    "follower notes . . .";
}

.purchase-inbound-number { grid-area: number; }
.purchase-inbound-date { grid-area: date; }
.purchase-inbound-status { grid-area: status; }
.purchase-inbound-warehouse { grid-area: warehouse; }
.purchase-inbound-customer { grid-area: customer; }
.purchase-inbound-follower { grid-area: follower; }
.purchase-inbound-notes { grid-area: notes; }

.sales-outbound-header-form {
  grid-template-areas:
    "number date customer salesperson warehouse"
    "status container seal vehicle total-boxes"
    "total-volume total-weight notes . .";
}

.sales-outbound-number { grid-area: number; }
.sales-outbound-date { grid-area: date; }
.sales-outbound-customer { grid-area: customer; }
.sales-outbound-salesperson { grid-area: salesperson; }
.sales-outbound-warehouse { grid-area: warehouse; }
.sales-outbound-status { grid-area: status; }
.sales-outbound-container { grid-area: container; }
.sales-outbound-seal { grid-area: seal; }
.sales-outbound-vehicle { grid-area: vehicle; }
.sales-outbound-total-boxes { grid-area: total-boxes; }
.sales-outbound-total-volume { grid-area: total-volume; }
.sales-outbound-total-weight { grid-area: total-weight; }
.sales-outbound-notes { grid-area: notes; }

.expedite-header-form {
  grid-template-areas:
    "customer-code customer-name salesperson notes .";
}

.expedite-customer-code { grid-area: customer-code; }
.expedite-customer-name { grid-area: customer-name; }
.expedite-salesperson { grid-area: salesperson; }
.expedite-notes { grid-area: notes; }

.expedite-detail-panel .expedite-header-pane { flex: 0 0 auto; }
.expedite-detail-panel .expedite-body-pane {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.expedite-detail-grid {
  width: var(--expedite-detail-table-width, 3000px);
  min-width: var(--expedite-detail-table-width, 3000px);
  table-layout: fixed;
}

.expedite-detail-grid th { white-space: nowrap; }
.expedite-detail-grid td { padding: 0; }
.expedite-detail-grid tbody :is(input:not([type="checkbox"]), button.expedite-cell-button) {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 30px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: .5em 10px;
  overflow: hidden;
  color: #34424c;
  background: transparent;
  box-shadow: none;
  font: inherit;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expedite-detail-grid tbody :is(input:not([type="checkbox"]), button.expedite-cell-button):focus {
  outline: 0;
  background: #fff;
}

.expedite-detail-grid tr.is-selected td { background: #edf5f5; }
.expedite-detail-grid td[data-expedite-cell="material_attribute"][rowspan] { vertical-align: middle; }
.expedite-detail-grid td[data-expedite-cell="notes1"][rowspan],
.expedite-detail-grid td[data-expedite-cell="notes2"][rowspan] { vertical-align: middle; }
.expedite-detail-grid td[data-expedite-cell="select"][rowspan] { vertical-align: middle; }
.expedite-detail-grid .row-number,
.expedite-detail-grid .master-select-column,
.expedite-detail-grid .master-select-cell { padding: 0 6px; text-align: center; }

.expedite-detail-footer {
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 3px 10px;
  border-top: 0;
  background: #edf1f2;
}

.expedite-detail-footer .button {
  min-height: 26px;
  padding: 3px 12px;
  font-size: 12px;
}

.expedite-attribute-suggest {
  width: 180px;
}

.expedite-attribute-suggest .sales-quote-material-suggest-head,
.expedite-attribute-suggest .sales-quote-material-suggest-row {
  grid-template-columns: minmax(0, 1fr);
}

.expedite-attribute-suggest .sales-quote-material-suggest-rows {
  max-height: 228px;
}

.expedite-follower-suggest {
  width: 320px;
}

.expedite-follower-suggest .sales-quote-material-suggest-head,
.expedite-follower-suggest .sales-quote-material-suggest-row {
  grid-template-columns: minmax(110px, .8fr) minmax(150px, 1.2fr);
}

.purchase-inbound-detail-grid {
  width: var(--purchase-inbound-detail-table-width, 1520px);
  min-width: var(--purchase-inbound-detail-table-width, 1520px);
}

.sales-outbound-detail-panel .sales-outbound-body-pane {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sales-outbound-detail-grid {
  width: var(--sales-outbound-detail-table-width, 3200px);
  min-width: var(--sales-outbound-detail-table-width, 3200px);
  table-layout: fixed;
}

.sales-outbound-detail-grid td { padding: 0; }

.sales-outbound-detail-grid tbody :is(input:not([type="checkbox"]), button.sales-outbound-inventory-button, button.expedite-cell-button) {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 30px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: .5em 10px;
  overflow: hidden;
  color: #34424c;
  background: transparent;
  box-shadow: none;
  font: inherit;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-outbound-detail-grid tbody button.sales-outbound-inventory-button:not(:disabled) {
  color: var(--accent-strong);
  cursor: pointer;
}

#salesOutboundDetailTable tbody td.sales-outbound-inventory-shortage,
#salesOutboundDetailTable tbody td.sales-outbound-inventory-shortage :is(input, button) {
  color: var(--theme-document-danger-ink, var(--danger)) !important;
  -webkit-text-fill-color: var(--theme-document-danger-ink, var(--danger)) !important;
  opacity: 1;
}

.sales-outbound-detail-grid tbody :is(input:not([type="checkbox"]), button.sales-outbound-inventory-button, button.expedite-cell-button):focus {
  outline: 0;
  background: #fff;
}

.sales-outbound-detail-grid tr.is-selected td { background: #edf5f5; }

.inventory-lot-picker-modal { --picker-modal-width: 94vw; }
.inventory-lot-picker-modal-body { min-height: min(70vh, 680px); }
.sales-outbound-inventory-toolbar {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 1px solid #b8c4ca;
  padding: 6px 0;
}
.sales-outbound-inventory-search {
  display: grid;
  grid-template-columns: auto minmax(260px, 520px);
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.sales-outbound-inventory-search > span { color: var(--muted); font-size: 12px; }
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) tbody tr {
  cursor: pointer;
  user-select: none;
}
.sales-outbound-inventory-table-wrap {
  min-height: 0;
  flex: 1 1 auto;
}

:is(#salesOutboundInventoryTable, #otherInventoryLotTable) {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
}

:is(#salesOutboundInventoryTable, #otherInventoryLotTable) th,
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) td {
  box-sizing: border-box;
  min-width: 0;
  border: 0;
  border-right: 1px solid #b8c4ca;
  border-bottom: 1px solid #b8c4ca;
  padding: .5em 8px;
  overflow: hidden;
  color: #34424c;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(#salesOutboundInventoryTable, #otherInventoryLotTable) tr > :first-child { border-left: 1px solid #b8c4ca; }
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) > thead > .master-title-row > th { border-top: 1px solid #b8c4ca; }
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) th { color: #52616a; background: #f7f9fa; font-weight: 600; }
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) > thead > .master-title-row > th,
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) > thead > .master-filter-row > th { position: sticky; }
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) > thead > .master-title-row > th { z-index: 7; top: 0; }
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) > thead > .master-filter-row > th {
  z-index: 6; top: calc(var(--sticky-title-row-height, 40px) - 1px); box-shadow: inset 0 1px 0 #b8c4ca;
}
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) .master-resizable-column { position: sticky; padding-right: 4px; padding-left: 6px; overflow: visible; }
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) .master-draggable-column { cursor: grab; }
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) .master-select-column,
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) .master-select-cell { width: auto; min-width: 0; padding: 0 8px; }
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) .master-row-select { display: block; width: 14px; height: 14px; margin: 0 auto; accent-color: var(--accent); }
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) .master-filter-cell,
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) .master-filter-spacer { padding: 3px 4px; background: #f7f9fa; }
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) .master-column-filter-wrap { position: relative; display: block; width: 100%; min-width: 0; }
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) .master-column-filter {
  width: 100%; min-width: 0; min-height: 0; border: 1px solid #c3cdd3; border-radius: 2px;
  padding: .35em 30px .35em .5em; color: #34424c; background: #fff; font-size: 12px; line-height: 1.2; text-align: center;
}
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) .master-column-filter-clear {
  position: absolute; top: 1px; right: 1px; bottom: 1px; display: grid; width: 26px; min-width: 26px;
  min-height: 0; place-items: center; border: 0; border-radius: 2px; padding: 0; color: #6f7d86;
  background: transparent; cursor: pointer; font-size: 16px; line-height: 1;
}
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) .master-column-resizer {
  position: absolute; z-index: 9; top: 0; right: -5px; width: 9px; height: 100%; cursor: col-resize; touch-action: none;
}
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) .master-column-resizer::after { position: absolute; top: 0; bottom: 0; left: 4px; width: 1px; background: transparent; content: ""; }
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) .master-column-resizer:hover::after { background: var(--accent); }
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) tbody tr:hover td,
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) tbody tr.is-selected td { background: #edf7f6; }
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) td.is-current-cell { position: relative; z-index: 1; box-shadow: inset 0 0 0 2px var(--accent); }
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) td.is-range-selected { position: relative; z-index: 1; }
:is(#salesOutboundInventoryTable, #otherInventoryLotTable) td.is-range-selected::before {
  position: absolute; z-index: 3; inset: 0; box-shadow: inset 0 0 0 2px var(--accent); pointer-events: none; content: "";
}

.purchase-inbound-warehouse-suggest .sales-quote-material-suggest-head,
.purchase-inbound-warehouse-suggest .sales-quote-material-suggest-filter,
.purchase-inbound-warehouse-suggest .sales-quote-material-suggest-row {
  grid-template-columns: minmax(120px, .8fr) minmax(180px, 1.2fr);
}

.receipt-packaging-method-suggest {
  width: 320px;
}

.receipt-packaging-method-suggest .sales-quote-material-suggest-head,
.receipt-packaging-method-suggest .sales-quote-material-suggest-filter,
.receipt-packaging-method-suggest .sales-quote-material-suggest-row {
  grid-template-columns: minmax(0, 1fr);
}

.receipt-packaging-method-suggest .sales-quote-material-suggest-rows {
  max-height: 186px;
  overflow-y: auto;
}

.purchase-inbound-source-modal { --picker-modal-width: 92vw; }
#purchaseInboundSourceTable tbody tr,
#purchaseInboundWarehouseTable tbody tr { cursor: pointer; }
#purchaseInboundSourceTable td[rowspan],
#purchaseInboundDetailTable td[rowspan].master-select-cell { vertical-align: middle; }

.receipt-detail-panel .receipt-body-pane {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.receipt-detail-grid {
  width: var(--receipt-detail-table-width, 1660px);
  min-width: var(--receipt-detail-table-width, 1660px);
  table-layout: fixed;
}

.receipt-detail-grid th { white-space: nowrap; }
.receipt-detail-grid td { padding: 0; }
.receipt-detail-grid tbody input:not([type="checkbox"]),
.receipt-detail-grid tbody button.receipt-cell-button {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 30px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: .5em 10px;
  overflow: hidden;
  color: #34424c;
  background: transparent;
  box-shadow: none;
  font: inherit;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-detail-grid tbody input:not([type="checkbox"]):focus,
.receipt-detail-grid tbody button.receipt-cell-button:focus {
  outline: 0;
  background: #fff;
}

.receipt-detail-grid tr.is-selected td { background: #edf5f5; }
.receipt-detail-grid .row-number,
.receipt-detail-grid .master-select-column,
.receipt-detail-grid .master-select-cell { padding: 0 6px; text-align: center; }
.receipt-detail-grid .receipt-gift-cell { text-align: center; }
.receipt-detail-grid .receipt-gift-cell input { width: 14px; min-width: 14px; height: 14px; min-height: 14px; margin: 0 auto; padding: 0; accent-color: var(--accent); }
.receipt-detail-grid .receipt-box-spec-cell { min-width: 260px; }
.receipt-packaging-method-modal { width: min(760px, calc(100% - 28px)); }
.receipt-packaging-method-body {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}
.receipt-packaging-method-options {
  min-width: 0;
  grid-row: 1;
  grid-column: 1 / 3;
  border-right: 1px solid #edf0f2;
}
.receipt-packaging-requirement-cell {
  display: grid;
  min-width: 0;
  min-height: 40px;
  max-height: min(440px, calc(100vh - 218px));
  max-height: min(440px, calc(100dvh - 218px));
  grid-row: 1;
  grid-column: 3;
  place-items: center start;
  overflow: hidden;
  padding: 14px 12px;
  color: #34424c;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.receipt-packaging-method-modal .receipt-packaging-method-table { overflow-x: auto; }
.receipt-packaging-method-modal .receipt-packaging-method-table > .choice-table-head,
.receipt-packaging-method-modal .receipt-packaging-method-body { grid-template-columns: var(--more-packaging-columns, 52px 330px 330px); width: var(--more-packaging-width, 712px); }
.receipt-packaging-method-modal .receipt-packaging-method-options { grid-column: var(--more-packaging-options-span, 1 / 3); border-right: 0; overflow-x: hidden; }
.receipt-packaging-method-modal .receipt-packaging-method-options > .choice-table-row { grid-template-columns: var(--more-packaging-options-columns, 52px minmax(0, 1fr)); width: 100%; }
.receipt-packaging-method-options > .choice-table-row > .choice-table-value { grid-column: var(--more-packaging-method-column, 2); grid-row: 1; }
.receipt-packaging-method-options > .choice-table-row > .choice-table-select-cell { grid-column: 1; grid-row: 1; }
.receipt-packaging-method-body > .receipt-packaging-requirement-cell { grid-column: var(--more-packaging-requirement-column, 3); z-index: 1; border-inline: 1px solid #edf0f2; }

@media (max-width: 760px) {
  .document-detail-view > .page-heading { padding-inline: 12px; }
  :is(.receipt-header-form, .purchase-inbound-header-form, .sales-outbound-header-form, .other-inventory-header-form) { padding-inline: 12px; }
}

#packagingOutboundDetailView > .page-heading {
  flex: 0 0 50px;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  height: 50px;
  margin: 0;
  padding: 6px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

#packagingOutboundDetailView > .page-heading > .sales-quote-detail-heading { display: none; }
#packagingOutboundDetailView .sales-quote-detail-actions { overflow: visible; }

#packagingOutboundDetailView > .packaging-outbound-detail-panel,
#packagingOutboundDetailView > .panel.packaging-outbound-detail-panel {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  background: var(--surface);
}

#packagingOutboundHeaderPane {
  min-width: 0;
  min-height: 0;
  flex: 0 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f9fbfb;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 33, 43, .28) transparent;
}

#packagingOutboundHeaderForm {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-areas:
    "number date loading status supplier"
    "warehouse follower address contact phone"
    "logistics notes . . .";
  justify-content: start;
  column-gap: 12px;
  row-gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 20px;
  border-bottom: 0;
  background: #f9fbfb;
}

#packagingOutboundHeaderForm label {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: #536169;
  font-size: 12px;
  font-weight: 600;
}

#packagingOutboundHeaderForm label > span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
  white-space: nowrap;
}

#packagingOutboundHeaderForm label > span::after { content: "："; color: #536169; }

#packagingOutboundHeaderForm :is(input, select) {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  height: 30px;
  border: 1px solid #ccd6da;
  border-radius: 4px;
  padding: 0 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  font-size: 12px;
  font-weight: 400;
}

#packagingOutboundHeaderForm :is(input, select):disabled {
  color: var(--control-locked-color);
  border-color: var(--control-locked-border);
  background: var(--control-locked-background);
  opacity: 1;
}

#packagingOutboundHeaderForm .packaging-outbound-number { grid-area: number; }
#packagingOutboundHeaderForm .packaging-outbound-date { grid-area: date; }
#packagingOutboundHeaderForm .packaging-outbound-loading-date { grid-area: loading; }
#packagingOutboundHeaderForm .packaging-outbound-supplier { grid-area: supplier; }
#packagingOutboundHeaderForm .packaging-outbound-warehouse { grid-area: warehouse; }
#packagingOutboundHeaderForm .packaging-outbound-follower { grid-area: follower; }
#packagingOutboundHeaderForm .packaging-outbound-address { grid-area: address; }
#packagingOutboundHeaderForm .packaging-outbound-contact { grid-area: contact; }
#packagingOutboundHeaderForm .packaging-outbound-phone { grid-area: phone; }
#packagingOutboundHeaderForm .packaging-outbound-logistics { grid-area: logistics; }
#packagingOutboundHeaderForm .packaging-outbound-notes { grid-area: notes; }
#packagingOutboundHeaderForm .packaging-outbound-status { grid-area: status; }

#packagingOutboundBodySplit {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  overflow: hidden;
  background: #fff;
}

#packagingOutboundBodySplit > .packaging-outbound-body-main,
#packagingOutboundBodySplit > .packaging-outbound-body-side {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

#packagingOutboundBodySplit > .packaging-outbound-body-main {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}

#packagingOutboundBodySplit > .packaging-outbound-body-side {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  background: #fff;
}

#packagingOutboundLeftToolbar,
#packagingOutboundRightToolbar { display: none; }

:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) {
  width: var(--packaging-outbound-table-width, 760px);
  min-width: var(--packaging-outbound-table-width, 760px);
  table-layout: fixed;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: #34424c;
  font-size: 12px;
}

:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .master-draggable-column { cursor: grab; }
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .master-draggable-column button { cursor: pointer; }
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .master-draggable-column.is-column-dragging { opacity: .45; }

:is(#packagingOutboundLeftTable, #packagingOutboundRightTable)
  .master-title-row [data-packaging-outbound-column-slot].is-column-drop-before::before,
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable)
  .master-title-row [data-packaging-outbound-column-slot].is-column-drop-after::after {
  position: absolute;
  z-index: 9;
  top: 1px;
  bottom: 1px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
}

:is(#packagingOutboundLeftTable, #packagingOutboundRightTable)
  .master-title-row [data-packaging-outbound-column-slot].is-column-drop-before::before { left: -2px; }
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable)
  .master-title-row [data-packaging-outbound-column-slot].is-column-drop-after::after { right: -2px; }

body.is-packaging-outbound-column-dragging,
body.is-packaging-outbound-column-dragging * { cursor: grabbing !important; }

:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) thead {
  position: static;
  background: transparent;
}

:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) th,
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) td {
  box-sizing: border-box;
  min-width: 0;
  border: 0;
  border-right: 1px solid #b8c4ca;
  border-bottom: 1px solid #b8c4ca;
  padding: .5em 8px;
  overflow: hidden;
  color: #34424c;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) tr > :first-child { border-left: 1px solid #b8c4ca; }
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) > thead > .master-title-row > th { border-top: 1px solid #b8c4ca; }

:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) > thead > tr > th {
  position: sticky;
  z-index: 6;
  top: 0;
  height: 32px;
  color: #52616a;
  background: #fafbfb;
  box-shadow: inset 0 -1px 0 #aebbc1;
  font-weight: 600;
}

:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) > thead > .master-title-row > th { z-index: 7; }
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) > thead > .master-filter-row > th {
  top: calc(var(--sticky-title-row-height, 40px) - 1px);
  height: 30px;
  background: #f7f9fa;
  box-shadow: inset 0 1px 0 #b8c4ca, inset 0 -1px 0 #aebbc1;
}

:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .row-number {
  padding-right: 6px;
  padding-left: 6px;
  color: #738087;
  background: #f3f6f6;
  font-variant-numeric: tabular-nums;
}

:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) tbody td.sales-quote-row-number { padding: 0; }
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .sales-quote-row-number-layout {
  display: grid;
  width: 100%;
  height: 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .sales-quote-row-move-controls {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  border-right: 1px solid #c8d2d6;
}

:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .sales-quote-row-move-button {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #5e7178;
  background: transparent;
  font-size: 11px;
  line-height: 1;
}

:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .sales-quote-row-move-button:hover:not(:disabled),
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .sales-quote-row-move-button:focus-visible {
  color: var(--accent-dark);
  background: rgba(15,109,104,.12);
  outline: 0;
}

:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .sales-quote-row-move-button:disabled { color: #b9c3c7; cursor: not-allowed; opacity: 1; }
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .sales-quote-row-number-value { display: grid; place-items: center; }

:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .master-select-column,
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .master-select-cell { padding: 0 8px; }
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .master-row-select,
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .master-select-all {
  display: block;
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0 auto;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .master-filter-cell,
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .master-filter-spacer { padding: 3px 4px; background: #f7f9fa; }
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .master-column-filter-wrap { position: relative; display: block; width: 100%; }
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .master-column-filter {
  width: 100%;
  min-width: 0;
  height: 23px;
  min-height: 0;
  border: 1px solid #c3cdd3;
  border-radius: 2px;
  padding: .35em 28px .35em .5em;
  color: #34424c;
  background: #fff;
  font-size: 12px;
  text-align: center;
}

:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .master-column-filter-clear {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 25px;
  border: 0;
  padding: 0;
  color: #6f7d86;
  background: transparent;
}

:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .master-column-filter-clear:hover,
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .master-column-filter-clear:focus-visible { color: var(--accent-dark); background: rgba(15,109,104,.14); outline: 0; }
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .master-resizable-column { position: sticky; padding-right: 4px; padding-left: 6px; overflow: visible; }
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .master-column-resizer { position: absolute; z-index: 9; top: 0; right: -5px; width: 9px; height: 100%; cursor: col-resize; touch-action: none; user-select: none; }
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .master-column-resizer::after { position: absolute; top: 0; bottom: 0; left: 4px; width: 1px; background: transparent; content: ""; }
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .master-column-resizer:hover::after { background: var(--accent); }

:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) tbody td { height: 31px; padding: 0; background: #fff; }
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) > tbody > tr:first-child > td { border-top: 1px solid #b8c4ca; }
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) tbody tr.is-selected td { background: #edf7f6; }
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) tbody tr.is-purchase-locked > td,
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) tbody tr.is-purchase-locked.is-selected > td {
  color: var(--control-locked-color);
  background: var(--control-locked-background);
  -webkit-user-select: none;
  user-select: none;
}
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) tbody td.is-packaging-outbound-field-locked,
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) tbody tr.is-selected td.is-packaging-outbound-field-locked {
  color: var(--control-locked-color);
  background: var(--control-locked-background);
  -webkit-user-select: none;
  user-select: none;
}
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) tbody td.is-packaging-outbound-field-locked .sales-quote-line-input {
  color: var(--control-locked-color);
  -webkit-text-fill-color: var(--control-locked-color);
  cursor: default;
}
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .sales-quote-line-input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 30px;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: .5em 10px;
  overflow: hidden;
  color: #34424c;
  background: transparent;
  box-shadow: none;
  font: inherit;
  text-align: center;
  text-overflow: ellipsis;
  line-height: 1.2;
  white-space: nowrap;
}
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .sales-quote-line-input:focus { outline: 2px solid rgba(71, 104, 112, .2); outline-offset: -2px; background: #fff; }
:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) .sales-quote-line-input:disabled { color: var(--control-locked-color); background: transparent; -webkit-text-fill-color: var(--control-locked-color); cursor: default; }

:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) tbody [data-document-double-click-edit] {
  pointer-events: none;
  caret-color: transparent;
  cursor: default;
}

:is(#packagingOutboundLeftTable, #packagingOutboundRightTable) tbody td.is-editing [data-document-double-click-edit].is-document-editing {
  background: #fff;
  pointer-events: auto;
  caret-color: auto;
  cursor: text;
  text-overflow: clip;
  outline: 0;
}

.packaging-outbound-summary-wrap { min-width: 0; height: 31px; flex: 0 0 31px; overflow: hidden; border-top: 1px solid #aebbc1; background: #e1e7e9; }
:is(#packagingOutboundLeftSummaryTable, #packagingOutboundRightSummaryTable) {
  table-layout: fixed;
  width: var(--packaging-outbound-table-width, 760px);
  min-width: var(--packaging-outbound-table-width, 760px);
  height: 31px;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: #34424c;
  transform-origin: left top;
  will-change: transform;
}
:is(#packagingOutboundLeftSummaryTable, #packagingOutboundRightSummaryTable) td {
  box-sizing: border-box;
  min-width: 0;
  height: 31px;
  border: 0;
  border-top: 1px solid #aebbc1;
  border-right: 1px solid #b8c4ca;
  border-bottom: 1px solid #b8c4ca;
  padding: 0 8px;
  overflow: hidden;
  color: #53636a;
  background: #e1e7e9;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:is(#packagingOutboundLeftSummaryTable, #packagingOutboundRightSummaryTable) tr > :first-child { border-left: 1px solid #b8c4ca; }
:is(#packagingOutboundLeftSummaryTable, #packagingOutboundRightSummaryTable) .packaging-outbound-summary-count { padding-left: 20px; text-align: left; }

#packagingOutboundDetailError {
  flex: 0 0 auto;
  margin: 0;
  padding: 7px 20px;
  border-bottom: 1px solid #ecd3cf;
  background: #fff4f2;
}

* { box-sizing: border-box; }
html { height: 100%; }
body,
body * {
  -webkit-user-select: none;
  user-select: none;
}
input:not([readonly]):focus,
textarea:not([readonly]):focus,
[contenteditable="true"]:focus,
[contenteditable="true"]:focus * {
  -webkit-user-select: text;
  user-select: text;
}

/* Shared document/form contract: JS owns lock behavior; CSS owns its stable, copyable appearance. */
/* Document headers only expose text selection while a text field is explicitly being edited. */
.document-header-form,
.document-header-form * {
  -webkit-user-select: none !important;
  user-select: none !important;
}

.document-header-form :is(input, textarea).is-document-editing:not([type="date"]):not([data-keyboard-armed="true"]),
.document-header-form :is(input, textarea).is-editing:not([type="date"]) {
  -webkit-user-select: text !important;
  user-select: text !important;
}

/* Developed document grids share one selection and edit-state contract. */
.document-grid-table,
.document-grid-table * {
  -webkit-user-select: none !important;
  user-select: none !important;
}

.document-grid-table td.is-current-cell,
.document-grid-table td.is-range-selected {
  position: relative;
  z-index: 1;
}

.document-grid-table td.is-current-cell::after,
.document-grid-table td.is-range-selected::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  box-shadow: inset 0 0 0 2px var(--accent);
  pointer-events: none;
  content: "";
}

.document-grid-table td.is-editing:not(:has([data-keyboard-armed="true"])) {
  z-index: 2;
  background: #fff;
  box-shadow: none;
}

.document-grid-table td.is-editing:not(:has([data-keyboard-armed="true"]))::after {
  border: 1px solid var(--accent);
  box-shadow: none;
}

.document-grid-table td.is-editing:not(:has([data-keyboard-armed="true"])) :is(
  input:not([readonly]),
  textarea:not([readonly]),
  [contenteditable="true"]
) {
  -webkit-user-select: text !important;
  user-select: text !important;
}

/* A keyboard-armed editor still looks like a selected cell until input starts. */
.document-grid-table td.is-editing [data-keyboard-armed="true"] {
  background: transparent !important;
  caret-color: transparent !important;
  cursor: default !important;
  text-overflow: ellipsis !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.document-grid-table [data-keyboard-armed="true"]::selection {
  color: inherit;
  background: transparent;
}

/* Native date segments must not show a text selection while cells are selected. */
:is(.document-header-form, .document-grid-table) input[type="date"]::-webkit-datetime-edit-year-field:focus,
:is(.document-header-form, .document-grid-table) input[type="date"]::-webkit-datetime-edit-month-field:focus,
:is(.document-header-form, .document-grid-table) input[type="date"]::-webkit-datetime-edit-day-field:focus {
  color: inherit;
  background: transparent;
}

.document-grid-table :is(
  .master-column-filter,
  [data-purchase-quote-filter],
  [data-sales-order-packing-filter],
  [data-packaging-outbound-filter],
  [data-archive-module-filter]
):focus {
  -webkit-user-select: text !important;
  user-select: text !important;
}

body.is-document-grid-range-selecting,
body.is-document-grid-range-selecting * {
  -webkit-user-select: none !important;
  user-select: none !important;
}

:is(
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select,
  button
)[data-control-locked="true"],
[data-control-locked="true"] :is(
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select,
  button
) {
  color: var(--control-locked-color);
  border-color: var(--control-locked-border);
  background: var(--control-locked-background);
  opacity: 1;
  -webkit-text-fill-color: var(--control-locked-color);
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

:is(input, textarea)[data-control-locked="true"],
[data-control-locked="true"] :is(input, textarea) { cursor: default; }

:is(select, button)[data-control-locked="true"],
[data-control-locked="true"] :is(select, button) { cursor: default; }

:is(td, th, [role="gridcell"])[data-control-locked="true"] {
  color: var(--control-locked-color);
  border-color: var(--control-locked-border);
  background: var(--control-locked-background);
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
  cursor: default;
}

:is(input, textarea)[readonly],
:is(input, textarea):disabled,
[data-control-locked="true"],
[data-control-locked="true"] * {
  -webkit-user-select: none !important;
  user-select: none !important;
}

:is(td, th, [role="gridcell"])[data-control-locked="true"] :is(
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select,
  button
) {
  border-color: transparent;
  background: transparent;
}

input:is([type="checkbox"], [type="radio"])[data-control-locked="true"],
[data-control-locked="true"] input:is([type="checkbox"], [type="radio"]) {
  opacity: 1;
  cursor: default;
  caret-color: transparent;
}

:is(input, textarea, select, button)[data-control-locked="true"]:is(:focus, :focus-visible),
[data-control-locked="true"] :is(input, textarea, select, button):is(:focus, :focus-visible) {
  border-color: var(--control-locked-border);
  outline: 0;
  box-shadow: none;
}
img,
svg {
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}
body { height: 100%; margin: 0; min-width: 320px; background: var(--page); }
html,
body { overflow: hidden; }
button, input, select { font: inherit; }
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  /* Removing the native spinner also prevents wheel stepping while focused. */
  display: none;
  -webkit-appearance: none;
  margin: 0;
}
button {
  cursor: pointer;
  touch-action: manipulation;
  transition: color .14s ease, background-color .14s ease, border-color .14s ease, box-shadow .14s ease;
}
button:focus-visible { outline: 2px solid var(--button-focus); outline-offset: -2px; }
button:disabled { cursor: not-allowed; opacity: .55; }
:is(input, textarea, select, button)[data-control-locked="true"]:disabled,
[data-control-locked="true"] :is(input, textarea, select, button):disabled {
  opacity: 1;
  cursor: default;
}
[hidden] { display: none !important; }

.brand-logo { display: block; width: auto; height: 38px; object-fit: contain; }
.auth {
  --auth-green: #168548;
  --auth-green-dark: #0f6c3a;
  --auth-green-soft: #e5f2e9;
  --auth-teal: #167b78;
  --auth-amber: #a96f0f;
  --auth-charcoal: #485961;
  --auth-active: var(--auth-green);
  --auth-pointer-x: 0;
  --auth-pointer-y: 0;
  --auth-login-pointer-x: 0;
  --auth-login-pointer-y: 0;
  --auth-probe-x: 50%;
  --auth-probe-y: 50%;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: auto;
  color: #16211b;
  background: #edf2f0;
}
.auth-layout {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(620px, 1.16fr) minmax(440px, .84fr);
  margin: 0 auto;
  background: #f8faf9;
}
.auth-showcase {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid #dfe7e3;
  padding: 52px 62px 30px;
  background: #fafcfb;
  isolation: isolate;
}
.auth-showcase-frame {
  position: absolute;
  z-index: 5;
  inset: 18px;
  pointer-events: none;
}
.auth-showcase-frame i {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(22, 133, 72, .24);
  border-style: solid;
}
.auth-showcase-frame i:first-child { top: 0; left: 0; border-width: 1px 0 0 1px; }
.auth-showcase-frame i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.auth-showcase-frame i:nth-child(3) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.auth-showcase-frame i:last-child { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.auth-brand {
  position: relative;
  z-index: 3;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 22px;
  color: #121a16;
}
.auth-picture { display: contents; }
.auth-picture > source { display: none; }
.auth-brand-logo {
  display: block;
  width: 116px;
  height: 100px;
  flex: 0 0 116px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(62, 91, 47, .09));
  transition: filter .28s ease, transform .28s ease;
}
.auth-brand:hover .auth-brand-logo { filter: drop-shadow(0 8px 13px rgba(62, 91, 47, .15)); transform: translateY(-2px); }
.auth-brand-copy { min-width: 0; }
.auth-brand-copy strong {
  display: block;
  margin: 0;
  font-size: 46px;
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: 0;
  white-space: nowrap;
}
.auth-brand-copy strong span { color: var(--auth-green); font-weight: 700; }
.auth-brand-copy p {
  margin: 10px 0 0;
  color: #5f6c65;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: 0;
}
.auth-brand-index {
  position: relative;
  align-self: flex-start;
  margin: 11px 0 0 auto;
  border-top: 1px solid #cbdad2;
  padding-top: 7px;
  color: #829088;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}
.auth-brand-index::before {
  position: absolute;
  top: -4px;
  left: 0;
  width: 14px;
  height: 1px;
  background: var(--auth-green);
  content: "";
  animation: auth-index-scan 3.8s ease-in-out infinite;
}
.auth-brand-rule {
  position: relative;
  z-index: 3;
  width: 42px;
  height: 3px;
  margin-top: 26px;
  border-radius: 2px;
  background: var(--auth-green);
}
.auth-brand-statement {
  position: relative;
  z-index: 3;
  margin: 14px 0 0;
  color: #4e5c55;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0;
}
.auth-feature-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.auth-feature {
  position: relative;
  height: 66px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e0e7e3;
  border-radius: 6px;
  padding: 0 15px;
  color: #29362f;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 5px 16px rgba(42, 64, 52, .04);
  cursor: default;
  transition: border-color .22s ease, box-shadow .22s ease, color .22s ease, transform .22s ease;
}
.auth-feature::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 2px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(.25);
  transition: opacity .22s ease, transform .22s ease;
}
.auth-feature:hover {
  border-color: currentColor;
  box-shadow: 0 10px 22px rgba(42, 64, 52, .09);
  transform: translateY(-3px);
}
.auth-feature:hover::after { opacity: .8; transform: scaleX(1); }
.auth-feature:active { transform: translateY(-1px) scale(.99); }
.auth-showcase:has(.auth-feature[data-tone="green"]:hover) { --auth-active: var(--auth-green); }
.auth-showcase:has(.auth-feature[data-tone="teal"]:hover) { --auth-active: var(--auth-teal); }
.auth-showcase:has(.auth-feature[data-tone="amber"]:hover) { --auth-active: var(--auth-amber); }
.auth-showcase:has(.auth-feature[data-tone="charcoal"]:hover) { --auth-active: var(--auth-charcoal); }
.auth-feature:hover svg {
  transform: scale(1.08);
}
.auth-feature svg {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .22s ease;
}
.auth-feature span {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-feature[data-tone="green"] { color: #168548; }
.auth-feature[data-tone="teal"] { color: #167b78; }
.auth-feature[data-tone="amber"] { color: #a96f0f; }
.auth-feature[data-tone="charcoal"] { color: #485961; }
.auth-feature[data-tone="green"]:hover svg { animation: auth-feature-cart .46s ease both; }
.auth-feature[data-tone="teal"]:hover svg { animation: auth-feature-cube .52s ease both; }
.auth-feature[data-tone="amber"]:hover svg { animation: auth-feature-rise .46s ease both; }
.auth-feature[data-tone="charcoal"]:hover svg { animation: auth-feature-analyze .58s ease both; }
.auth-visual {
  position: relative;
  z-index: 1;
  min-height: 330px;
  flex: 1 1 360px;
  margin: 10px -24px 0 -34px;
  overflow: hidden;
  perspective: 1000px;
}
.auth-visual::after {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: #dce7e1;
  content: "";
}
.auth-visual-grid {
  position: absolute;
  z-index: 0;
  inset: 17% 2% 4% 4%;
  border: 1px solid rgba(31, 128, 77, .08);
  transform: skewY(-5deg);
  transition: border-color .28s ease;
}
.auth-visual-grid::before,
.auth-visual-grid::after {
  position: absolute;
  top: 0;
  left: 18%;
  width: 1px;
  height: 100%;
  background: rgba(31, 128, 77, .08);
  box-shadow: 145px 0 rgba(31, 128, 77, .08), 290px 0 rgba(31, 128, 77, .08), 435px 0 rgba(31, 128, 77, .08), 580px 0 rgba(31, 128, 77, .08);
  content: "";
}
.auth-visual-grid::after {
  top: 24%;
  left: 0;
  width: 100%;
  height: 1px;
  box-shadow: 0 82px rgba(31, 128, 77, .08), 0 164px rgba(31, 128, 77, .08), 0 246px rgba(31, 128, 77, .08);
}
.auth-visual-scan {
  position: absolute;
  z-index: 5;
  top: 13%;
  right: 2%;
  left: 4%;
  height: 1px;
  background: rgba(22, 133, 72, .2);
  box-shadow: 0 8px 18px rgba(22, 133, 72, .06);
  pointer-events: none;
  animation: auth-blueprint-scan 7s ease-in-out infinite;
}
.auth-visual-axis {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: .5;
}
.auth-visual-axis-x {
  right: 6%;
  bottom: 9%;
  left: 5%;
  height: 12px;
  border-bottom: 1px solid rgba(72, 89, 97, .16);
}
.auth-visual-axis-x::before {
  position: absolute;
  right: 25%;
  bottom: 0;
  left: 25%;
  height: 7px;
  border-right: 1px solid rgba(72, 89, 97, .18);
  border-left: 1px solid rgba(72, 89, 97, .18);
  content: "";
}
.auth-visual-axis-y {
  top: 25%;
  bottom: 10%;
  left: 6%;
  width: 12px;
  border-left: 1px solid rgba(72, 89, 97, .16);
}
.auth-visual-axis-y::before {
  position: absolute;
  top: 28%;
  bottom: 28%;
  left: 0;
  width: 7px;
  border-top: 1px solid rgba(72, 89, 97, .18);
  border-bottom: 1px solid rgba(72, 89, 97, .18);
  content: "";
}
.auth-visual-scale {
  position: absolute;
  z-index: 4;
  top: 28%;
  bottom: 16%;
  left: 4.2%;
  width: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid rgba(72, 89, 97, .2);
  pointer-events: none;
}
.auth-visual-scale::before {
  position: absolute;
  top: -18px;
  left: -1px;
  color: #8a9790;
  content: "SCALE";
  font-size: 7px;
  font-weight: 700;
  line-height: 1;
}
.auth-visual-scale::after {
  position: absolute;
  top: 0;
  left: -2px;
  width: 3px;
  height: 18%;
  background: color-mix(in srgb, var(--auth-active) 55%, transparent);
  content: "";
  animation: auth-scale-travel 5.8s ease-in-out infinite;
  transition: background-color .26s ease;
}
.auth-visual-scale i {
  display: block;
  width: 13px;
  border-top: 1px solid rgba(72, 89, 97, .24);
  transform-origin: left center;
  animation: auth-scale-tick 3.2s ease-in-out infinite;
}
.auth-visual-scale i:nth-child(2),
.auth-visual-scale i:nth-child(6) { width: 22px; animation-delay: -.45s; }
.auth-visual-scale i:nth-child(3),
.auth-visual-scale i:nth-child(5) { width: 17px; animation-delay: -.9s; }
.auth-visual-scale i:nth-child(4) { width: 28px; animation-delay: -1.35s; }
.auth-visual-scale i:nth-child(7) { animation-delay: -1.8s; }
.auth-visual-probe {
  position: absolute;
  z-index: 7;
  top: var(--auth-probe-y);
  left: var(--auth-probe-x);
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--auth-active) 58%, transparent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.72);
  transition: border-color .2s ease, opacity .18s ease, transform .18s ease;
}
.auth-visual.is-probing .auth-visual-probe { opacity: .76; transform: translate(-50%, -50%) scale(1); }
.auth-visual-probe::before,
.auth-visual-probe::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: color-mix(in srgb, var(--auth-active) 55%, transparent);
  content: "";
  transform: translate(-50%, -50%);
  transition: background-color .2s ease;
}
.auth-visual-probe::before { width: 58px; height: 1px; }
.auth-visual-probe::after { width: 1px; height: 58px; }
.auth-visual-probe i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--auth-active);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-active) 13%, transparent);
  transform: translate(-50%, -50%);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.auth-visual-probe span {
  position: absolute;
  inset: 6px;
  border-top: 1px solid color-mix(in srgb, var(--auth-active) 68%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--auth-active) 28%, transparent);
  border-radius: 50%;
  animation: auth-probe-turn 2.2s linear infinite;
}
.auth-motorcycle {
  position: absolute;
  z-index: 1;
  left: -4%;
  bottom: 5.5%;
  width: 84%;
  max-width: 820px;
  height: auto;
  opacity: .13;
  filter: grayscale(.65) saturate(.85) hue-rotate(45deg);
  transform: translate3d(calc(var(--auth-pointer-x) * -10px), calc(var(--auth-pointer-y) * -6px), 0);
  transition: filter .3s ease, opacity .3s ease, transform .18s ease-out;
}
.auth-engine {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 7%;
  width: 31%;
  max-width: 280px;
  height: auto;
  opacity: .16;
  filter: sepia(.15) hue-rotate(75deg);
  mix-blend-mode: multiply;
  transform: translate3d(calc(var(--auth-pointer-x) * 13px), calc(var(--auth-pointer-y) * 8px), 0);
  transition: filter .3s ease, opacity .3s ease, transform .18s ease-out;
}
.auth-showcase:hover .auth-motorcycle { opacity: .16; filter: grayscale(.5) saturate(.9) hue-rotate(45deg); }
.auth-showcase:hover .auth-engine { opacity: .2; }
.auth-showcase:has(.auth-feature[data-tone="amber"]:hover) .auth-engine { filter: sepia(.35) saturate(1.2) hue-rotate(350deg); }
.auth-showcase:has(.auth-feature[data-tone="teal"]:hover) .auth-motorcycle { filter: grayscale(.45) saturate(1.1) hue-rotate(105deg); }
.auth-showcase:has(.auth-feature[data-tone="charcoal"]:hover) :is(.auth-motorcycle, .auth-engine) { filter: grayscale(.9) contrast(1.05); }
.auth-route {
  position: absolute;
  z-index: 3;
  height: 2px;
  border-top: 2px solid color-mix(in srgb, var(--auth-active) 48%, transparent);
  transform-origin: left center;
  transition: border-color .26s ease;
}
.auth-route::after {
  position: absolute;
  top: -5px;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--auth-active);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-active) 12%, transparent);
  content: "";
  animation: auth-route-packet 4.4s ease-in-out infinite;
  transition: background-color .26s ease, box-shadow .26s ease;
}
.auth-route-one { left: 10%; bottom: 24%; width: 58%; transform: rotate(-8deg); }
.auth-route-two { left: 45%; bottom: 19%; width: 43%; transform: rotate(7deg); }
.auth-route-two::after { animation-delay: -2.2s; }
.auth-route i {
  position: absolute;
  top: -5px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--auth-active);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--auth-active) 24%, transparent);
  animation: auth-route-node 2.4s ease-in-out infinite;
  transition: background-color .26s ease, box-shadow .26s ease;
}
.auth-route i:first-child { left: 0; }
.auth-route i:nth-child(2) { left: 52%; animation-delay: -.8s; }
.auth-route i:last-child { right: 0; }
.auth-visual-panel {
  position: absolute;
  z-index: 3;
  translate: calc(var(--auth-pointer-x) * 4px) calc(var(--auth-pointer-y) * 3px);
  transition: border-color .26s ease, box-shadow .26s ease, translate .18s ease-out, opacity .26s ease;
}
.auth-visual-panel:hover { opacity: 1; }
.auth-visual-panel em {
  position: absolute;
  top: 10px;
  left: 13px;
  color: color-mix(in srgb, var(--auth-active) 64%, #7c8982);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  transition: color .26s ease;
}
.auth-visual-panel em::after {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  vertical-align: 1px;
  animation: auth-panel-signal 1.8s ease-in-out infinite;
}
.auth-visual-panel-bars {
  top: 14%;
  left: 29%;
  width: 176px;
  height: 112px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  border: 1px solid color-mix(in srgb, var(--auth-green) 24%, transparent);
  border-left: 3px solid color-mix(in srgb, var(--auth-green) 64%, transparent);
  border-radius: 0;
  padding: 34px 24px 20px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 8px 10px 0 rgba(22, 133, 72, .035);
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
  opacity: .9;
  animation: auth-panel-drift-a 6s ease-in-out infinite;
}
.auth-visual-panel-bars::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 15px;
  height: 15px;
  border-bottom: 1px solid color-mix(in srgb, var(--auth-green) 24%, transparent);
  border-left: 1px solid color-mix(in srgb, var(--auth-green) 24%, transparent);
  content: "";
}
.auth-visual-panel-bars span {
  width: 18px;
  background: color-mix(in srgb, var(--auth-active) 48%, transparent);
  transform-origin: center bottom;
  animation: auth-bar-flow 2.8s ease-in-out infinite;
  transition: background-color .26s ease;
}
.auth-visual-panel-bars span:nth-of-type(1) { height: 24%; }
.auth-visual-panel-bars span:nth-of-type(2) { height: 52%; animation-delay: -.7s; }
.auth-visual-panel-bars span:nth-of-type(3) { height: 38%; animation-delay: -1.4s; }
.auth-visual-panel-bars span:nth-of-type(4) { height: 72%; animation-delay: -2.1s; }
.auth-visual-panel-ring {
  top: 31%;
  right: 8%;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(22, 123, 120, .25);
  border-radius: 50%;
  background: rgba(247, 251, 249, .82);
  box-shadow: 0 0 0 7px rgba(22, 123, 120, .035), 0 12px 28px rgba(39, 65, 51, .05);
  opacity: .92;
  animation: auth-panel-drift-b 7s ease-in-out infinite;
}
.auth-visual-panel-ring::before {
  position: absolute;
  inset: -5px;
  border-top: 1px solid rgba(22, 123, 120, .34);
  border-bottom: 1px solid rgba(22, 123, 120, .14);
  border-radius: 50%;
  content: "";
  animation: auth-ring-orbit 11s linear infinite;
}
.auth-visual-panel-ring span {
  width: 66px;
  height: 66px;
  border: 10px solid #dcece3;
  border-right-color: color-mix(in srgb, var(--auth-active) 80%, transparent);
  border-bottom-color: color-mix(in srgb, var(--auth-active) 80%, transparent);
  border-radius: 50%;
  transform: rotate(-28deg);
  animation: auth-ring-turn 9s linear infinite;
  transition: border-color .26s ease;
}
.auth-visual-panel-ring b {
  position: absolute;
  color: #506158;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.auth-visual-panel-lines {
  top: 9%;
  right: 25%;
  width: 198px;
  height: 84px;
  overflow: hidden;
  border-top: 1px solid rgba(169, 111, 15, .23);
  border-bottom: 1px solid rgba(169, 111, 15, .18);
  border-radius: 0;
  background: rgba(255, 253, 247, .22);
  box-shadow: none;
  opacity: .82;
  animation: auth-panel-drift-c 5.6s ease-in-out infinite;
}
.auth-visual-panel-lines::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 1px;
  background: rgba(169, 111, 15, .25);
  box-shadow: 5px 0 rgba(169, 111, 15, .1);
  content: "";
}
.auth-visual-panel-lines em { color: #8d671f; }
.auth-visual-panel-lines span {
  position: absolute;
  left: 18px;
  width: 166px;
  height: 24px;
  border-bottom: 2px solid color-mix(in srgb, var(--auth-active) 38%, transparent);
  transform: skewY(-8deg);
  transition: border-color .26s ease, transform .26s ease;
}
.auth-visual-panel-lines span:nth-of-type(1) { top: 18px; }
.auth-visual-panel-lines span:nth-of-type(2) { top: 34px; transform: skewY(10deg); }
.auth-visual-panel-lines span:nth-of-type(3) { top: 50px; }
.auth-visual-node {
  position: absolute;
  z-index: 4;
  width: 12px;
  height: 12px;
  border: 1px solid color-mix(in srgb, var(--auth-active) 62%, #fff);
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px color-mix(in srgb, var(--auth-active) 18%, transparent);
  transform: rotate(45deg);
  animation: auth-node-pulse 3s ease-in-out infinite;
  transition: border-color .26s ease, box-shadow .26s ease;
}
.auth-visual-node-a { left: 16%; bottom: 41%; }
.auth-visual-node-b { right: 32%; bottom: 29%; animation-delay: -1s; }
.auth-visual-node-c { right: 12%; bottom: 17%; animation-delay: -2s; }
.auth-visual-code {
  position: absolute;
  z-index: 4;
  border-left: 2px solid var(--auth-active);
  padding-left: 6px;
  color: #8b9690;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  animation: auth-code-flicker 4.6s ease-in-out infinite;
  transition: border-color .26s ease;
}
.auth-visual-code-a { top: 45%; left: 9%; }
.auth-visual-code-b { right: 7%; bottom: 37%; animation-delay: -2.3s; }
.auth-system-ribbon {
  position: absolute;
  z-index: 4;
  top: 52%;
  left: 43%;
  display: flex;
  align-items: center;
  border-left: 2px solid rgba(72, 89, 97, .38);
  padding: 5px 8px 5px 10px;
  color: #74817a;
  background: rgba(72, 89, 97, .045);
  font-size: 7px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  transform: translate3d(calc(var(--auth-pointer-x) * 3px), calc(var(--auth-pointer-y) * -2px), 0);
  transition: transform .18s ease-out;
}
.auth-system-ribbon::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 34px;
  background: rgba(22, 123, 120, .08);
  content: "";
  animation: auth-ribbon-scan 6s ease-in-out infinite;
}
.auth-system-ribbon span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.auth-system-ribbon span + span::before {
  width: 2px;
  height: 2px;
  margin: 0 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.auth-system-ribbon span:nth-child(2) { color: #167b78; }
.auth-system-ribbon span:nth-child(3) { color: #9a6c1d; }
.auth-system-ribbon span:nth-child(4) { color: #485961; }
.auth-quality-stamp {
  position: absolute;
  z-index: 4;
  top: 46%;
  left: 21%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(169, 111, 15, .36);
  border-radius: 50%;
  color: #936719;
  opacity: .56;
  pointer-events: none;
  transform: rotate(-9deg);
  animation: auth-stamp-breathe 5.2s ease-in-out infinite;
}
.auth-quality-stamp::before,
.auth-quality-stamp::after {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(169, 111, 15, .22);
  border-radius: 50%;
  content: "";
}
.auth-quality-stamp::after {
  inset: 9px -4px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}
.auth-quality-stamp span {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.auth-quality-stamp i {
  position: absolute;
  right: 12px;
  bottom: 11px;
  left: 12px;
  border-top: 1px solid currentColor;
}
.auth-assurance {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 26px;
  padding-top: 16px;
  color: #56655d;
  font-size: 12px;
  letter-spacing: 0;
}
.auth-assurance span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.auth-assurance i {
  width: 8px;
  height: 8px;
  border: 2px solid var(--auth-green);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #fff;
  background: var(--auth-green-soft);
  animation: auth-assurance-pulse 3.2s ease-in-out infinite;
}
.auth-assurance span:nth-child(2) i { animation-delay: -1.05s; }
.auth-assurance span:nth-child(3) i { animation-delay: -2.1s; }
.auth-login-region {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 58px 54px 34px;
  background: #eef3f1;
  isolation: isolate;
  overflow: hidden;
}
.auth-login-structure {
  position: absolute;
  z-index: -1;
  inset: 34px;
  pointer-events: none;
  transform: translate3d(calc(var(--auth-login-pointer-x) * 9px), calc(var(--auth-login-pointer-y) * 7px), 0);
  transition: transform .2s ease-out;
}
.auth-login-structure::before,
.auth-login-structure::after { position: absolute; content: ""; }
.auth-login-structure::before {
  top: 8%;
  right: -95px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(22, 123, 120, .08);
  transform: rotate(18deg);
}
.auth-login-structure::after {
  bottom: 8%;
  left: -60px;
  width: 180px;
  height: 120px;
  border-top: 1px solid rgba(169, 111, 15, .1);
  border-right: 1px solid rgba(169, 111, 15, .1);
  transform: skewX(-24deg);
}
.auth-login-structure i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a8b8b0;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .58);
  animation: auth-structure-pulse 4s ease-in-out infinite;
}
.auth-login-structure i:first-child { top: 11%; right: 8%; }
.auth-login-structure i:nth-child(2) { right: 20%; bottom: 14%; animation-delay: -1.35s; }
.auth-login-structure i:last-child { bottom: 25%; left: 8%; animation-delay: -2.7s; }
.auth-login-index {
  position: absolute;
  z-index: 0;
  top: 36px;
  right: 34px;
  display: grid;
  grid-template-columns: auto repeat(3, 14px);
  align-items: center;
  gap: 5px;
  color: #85928b;
  pointer-events: none;
}
.auth-login-index span {
  margin-right: 4px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}
.auth-login-index i {
  height: 2px;
  background: #b8c5bf;
  transform-origin: left center;
  animation: auth-login-index 2.8s ease-in-out infinite;
}
.auth-login-index i:nth-of-type(1) { background: var(--auth-green); }
.auth-login-index i:nth-of-type(2) { background: var(--auth-teal); animation-delay: -.9s; }
.auth-login-index i:nth-of-type(3) { background: var(--auth-amber); animation-delay: -1.8s; }
.auth-form {
  position: relative;
  z-index: 1;
  width: min(100%, 536px);
  justify-self: center;
  border: 1px solid #e0e7e3;
  border-radius: 8px;
  padding: 48px 46px 38px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(37, 56, 46, .1);
  overflow: hidden;
  transition: border-color .26s ease, box-shadow .26s ease, transform .26s ease;
}
.auth-form::before {
  position: absolute;
  z-index: 0;
  top: -20%;
  bottom: -20%;
  left: -24%;
  width: 9%;
  background: rgba(22, 133, 72, .035);
  content: "";
  pointer-events: none;
  transform: skewX(-16deg);
}
.auth-form:focus-within::before { animation: auth-form-light-sweep 1.1s ease-out both; }
.auth-form > * { position: relative; z-index: 1; }
.auth-form:hover {
  border-color: #d3dfd9;
  box-shadow: 0 24px 54px rgba(37, 56, 46, .14);
  transform: translateY(-2px);
}
.auth-form-spectrum {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  display: grid;
  grid-template-columns: 1.25fr .8fr .55fr .65fr;
}
.auth-form-spectrum i:first-child { background: var(--auth-green); }
.auth-form-spectrum i:nth-child(2) { background: var(--auth-teal); }
.auth-form-spectrum i:nth-child(3) { background: var(--auth-amber); }
.auth-form-spectrum i:last-child { background: var(--auth-charcoal); }
.auth-form-spectrum i {
  opacity: .82;
  transform-origin: center;
  transition: opacity .24s ease, transform .24s ease;
}
.auth-form:focus-within .auth-form-spectrum i { opacity: 1; transform: scaleX(1.035); }
.auth-form:focus-within .auth-form-spectrum i:nth-child(2) { transition-delay: .04s; }
.auth-form:focus-within .auth-form-spectrum i:nth-child(3) { transition-delay: .08s; }
.auth-form:focus-within .auth-form-spectrum i:last-child { transition-delay: .12s; }
.auth-form.is-error {
  border-color: rgba(180, 64, 59, .34);
  animation: auth-form-error-shake .38s ease both;
}
.auth-form-head {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 34px;
}
.auth-form-mark {
  position: relative;
  width: 50px;
  height: 56px;
  display: grid;
  flex: 0 0 50px;
  place-items: center;
  color: var(--auth-green);
}
.auth-form-mark::before {
  position: absolute;
  inset: 4px 1px;
  border: 1px solid rgba(22, 133, 72, .18);
  border-radius: 50%;
  content: "";
  opacity: 0;
  animation: auth-shield-pulse 3.6s ease-out infinite;
}
.auth-form-mark svg {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-form-mark svg path:last-child {
  stroke-dasharray: 10;
  stroke-dashoffset: 10;
  animation: auth-check-draw .65s .4s ease forwards;
}
.auth-form h1 {
  margin: 0;
  color: #172019;
  font-size: 25px;
  font-weight: 730;
  line-height: 1.25;
  letter-spacing: 0;
}
.auth-form-head p {
  margin: 6px 0 0;
  color: #77827c;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0;
}
.auth-field { margin-top: 22px; }
.auth-field > label {
  display: block;
  margin: 0 0 8px;
  color: #2b342f;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  transition: color .18s ease, transform .18s ease;
}
.auth-field:focus-within > label { color: var(--auth-green-dark); transform: translateX(2px); }
.auth-input-shell { position: relative; }
.auth-input-shell::after {
  position: absolute;
  z-index: 2;
  right: 50%;
  bottom: 0;
  left: 50%;
  height: 2px;
  background: var(--auth-green);
  content: "";
  pointer-events: none;
  transition: right .22s ease, left .22s ease;
}
.auth-input-shell:focus-within::after { right: 0; left: 0; }
.auth-input-shell > svg {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 15px;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #7d8983;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transform: translateY(-50%);
  transition: stroke .18s ease, transform .18s ease;
}
.auth-input-shell input:not([type="checkbox"]) {
  width: 100%;
  height: 54px;
  min-height: 54px;
  border: 1px solid #cbd5d0;
  border-radius: 4px;
  padding: 0 48px;
  color: #1c2821;
  background: #fff;
  font-size: 14px;
  line-height: 54px;
  letter-spacing: 0;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.auth-input-shell input::placeholder { color: #9aa49f; opacity: 1; }
.auth-input-shell input:not([type="checkbox"]):focus {
  border-color: var(--auth-green);
  outline: 0;
  background: #fbfdfc;
  box-shadow: 0 0 0 3px rgba(22, 133, 72, .11);
}
.auth-input-shell:focus-within > svg { stroke: var(--auth-green); transform: translateY(-50%) scale(1.06); }
.auth-input-action {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 6px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  padding: 0;
  color: #75827c;
  background: transparent;
  transform: translateY(-50%);
}
.auth-input-action:hover { color: var(--auth-green-dark); background: #f2f7f4; }
.auth-username-clear:hover svg { transform: rotate(90deg); }
.auth-input-action:focus-visible { outline: 2px solid rgba(22, 133, 72, .48); outline-offset: 0; }
.auth-input-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.auth-password-toggle {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 6px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  padding: 0;
  color: #75827c;
  background: transparent;
  transform: translateY(-50%);
}
.auth-password-toggle:hover { color: var(--auth-green-dark); background: #f2f7f4; }
.auth-password-toggle[aria-pressed="true"] { color: var(--auth-green); }
.auth-password-toggle[aria-pressed="true"] svg:not([hidden]) { animation: auth-eye-pop .24s ease both; }
.auth-password-toggle:focus-visible { outline: 2px solid rgba(22, 133, 72, .48); outline-offset: 0; }
.auth-password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-form-options {
  min-height: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 16px;
}
.auth-caps-lock {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-left: 0;
  color: #9a6711;
  font-size: 11px;
  line-height: 1;
  animation: auth-caps-enter .18s ease both;
}
.auth-caps-lock i {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(169, 111, 15, .34);
  border-radius: 3px;
  background: #fff8e8;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
}
.auth-remember {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #56635c;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  user-select: none;
  transition: color .18s ease;
}
.auth-remember:hover { color: var(--auth-green-dark); }
.auth-remember:hover > span { border-color: var(--auth-green); }
.auth-remember input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.auth-remember > span {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid #b9c5bf;
  border-radius: 3px;
  background: #fff;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.auth-remember input:checked + span { border-color: var(--auth-green); background: var(--auth-green); animation: auth-check-pop .22s ease; }
.auth-remember input:checked + span::after {
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  content: "";
  transform: rotate(42deg);
}
.auth-remember input:focus-visible + span { outline: 2px solid rgba(22, 133, 72, .4); outline-offset: 2px; }
.auth-admin-help {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding-right: 3px;
  color: #627069;
  font-size: 11px;
  font-weight: 550;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease;
}
.auth-admin-help:hover { color: var(--auth-green-dark); }
.auth-admin-help:focus-visible { border-radius: 3px; outline: 2px solid rgba(22, 133, 72, .35); outline-offset: 3px; }
.auth-admin-help-mark {
  width: 16px;
  height: 16px;
  display: grid;
  flex: 0 0 16px;
  place-items: center;
  border: 1px solid #b8c5bf;
  border-radius: 50%;
  color: #728078;
  background: #f8fbf9;
  font-size: 10px;
  font-weight: 700;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.auth-admin-help:hover .auth-admin-help-mark { border-color: var(--auth-green); color: var(--auth-green); transform: rotate(8deg); }
.auth-admin-help-arrow {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: auth-admin-pointer 2.8s ease-in-out infinite;
}
.auth-form-error {
  margin: 14px 0 0;
  border-left: 3px solid #b4403b;
  padding: 8px 10px;
  color: #973733;
  background: #fff4f3;
  font-size: 12px;
  line-height: 1.4;
  animation: auth-error-enter .22s ease both;
}
.auth-submit {
  position: relative;
  display: flex;
  height: 54px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 4px;
  color: #fff;
  background: var(--auth-green);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(22, 133, 72, .16);
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.auth-submit::before {
  position: absolute;
  top: -12px;
  bottom: -12px;
  left: -44px;
  width: 22px;
  background: rgba(255, 255, 255, .16);
  content: "";
  pointer-events: none;
  transform: skewX(-18deg);
  transition: left .48s ease;
}
.auth-submit:hover:not(:disabled) { background: var(--auth-green-dark); box-shadow: 0 2px 5px rgba(22, 133, 72, .22); }
.auth-submit:hover:not(:disabled)::before { left: calc(100% + 28px); }
.auth-submit:focus-visible { outline: 3px solid rgba(22, 133, 72, .25); outline-offset: 2px; }
.auth-submit:disabled { color: rgba(255, 255, 255, .8); background: #5a9b75; opacity: 1; }
.auth-submit-arrow {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity .16s ease, transform .18s ease;
}
.auth-submit:hover:not(:disabled) .auth-submit-arrow { transform: translateX(3px); }
.auth-submit-spinner {
  width: 18px;
  height: 18px;
  display: none;
  border: 2px solid rgba(255, 255, 255, .38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spinner .72s linear infinite;
}
.auth-submit.is-loading .auth-submit-spinner { display: block; }
.auth-submit.is-loading .auth-submit-arrow { display: none; }
.auth-submit.is-loading { cursor: wait; transform: none; }
.auth-access-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 28px 0 0;
  border-top: 1px solid #e5ebe8;
  padding-top: 21px;
  color: #7a8580;
  font-size: 12px;
  letter-spacing: 0;
}
.auth-access-note span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--auth-green);
  box-shadow: 0 0 0 3px var(--auth-green-soft);
  animation: auth-access-pulse 2.8s ease-in-out infinite;
}
.auth-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  justify-self: center;
  color: #7c8781;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: center;
}
.auth-copyright { white-space: nowrap; }
.auth-foot-divider {
  width: 1px;
  height: 24px;
  flex: 0 0 1px;
  background: #cbd7d1;
}
.auth-creator-mark {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(22, 133, 72, .24);
  border-radius: 4px;
  padding: 5px 9px 5px 5px;
  color: #536159;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 4px 12px rgba(37, 56, 46, .055);
  white-space: nowrap;
  opacity: 1;
  outline: 0;
  scroll-margin-block: 20px;
  transition: border-color .22s ease, box-shadow .22s ease, color .22s ease, transform .22s ease;
}
.auth-creator-mark:hover {
  border-color: rgba(22, 133, 72, .45);
  color: #33463b;
  box-shadow: 0 7px 16px rgba(37, 56, 46, .09);
  transform: translateY(-1px);
}
.auth-creator-mark:target { animation: auth-creator-attention 1.2s ease both; }
.auth-creator-seal {
  position: relative;
  width: 26px;
  height: 24px;
  display: grid;
  flex: 0 0 26px;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(22, 133, 72, .22);
  border-radius: 3px;
  color: var(--auth-green-dark);
  background: var(--auth-green-soft);
}
.auth-creator-seal::after {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 50%;
  width: 1px;
  background: rgba(22, 133, 72, .2);
  content: "";
}
.auth-creator-seal i {
  position: relative;
  z-index: 1;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  transition: transform .22s ease;
}
.auth-creator-mark:hover .auth-creator-seal i:first-child { transform: translateY(-1px); }
.auth-creator-mark:hover .auth-creator-seal i:last-child { transform: translateY(1px); }
.auth-creator-copy { display: inline-flex; align-items: baseline; gap: 4px; }
.auth-creator-copy small { color: #7e8a84; font-size: 9px; line-height: 1; }
.auth-creator-copy strong { min-width: 36px; color: var(--auth-green-dark); font-size: 11px; font-weight: 700; line-height: 1; }
.auth-creator-copy strong:empty::after {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: #b9c8c0;
  content: "";
  vertical-align: middle;
  animation: auth-creator-loading 1.2s ease-in-out infinite;
}
.auth-creator-phone {
  position: relative;
  margin-left: 2px;
  border-left: 1px solid #d2ddd7;
  padding-left: 10px;
  color: #52635a;
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-decoration: none;
  transition: color .18s ease;
}
.auth-creator-phone::before {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--auth-green);
  content: "";
  transform: translateY(-50%);
}
.auth-creator-phone:hover { color: var(--auth-green-dark); text-decoration: underline; text-underline-offset: 2px; }
.auth-creator-phone:focus-visible { border-radius: 2px; outline: 2px solid rgba(22, 133, 72, .35); outline-offset: 2px; }
.auth.is-entering .auth-brand { animation: auth-enter-down .55s .04s ease both; }
.auth.is-entering .auth-brand-rule,
.auth.is-entering .auth-brand-statement { animation: auth-enter-right .5s .14s ease both; }
.auth.is-entering .auth-feature { animation: auth-enter-up .48s ease both; }
.auth.is-entering .auth-feature:nth-child(1) { animation-delay: .18s; }
.auth.is-entering .auth-feature:nth-child(2) { animation-delay: .24s; }
.auth.is-entering .auth-feature:nth-child(3) { animation-delay: .3s; }
.auth.is-entering .auth-feature:nth-child(4) { animation-delay: .36s; }
.auth.is-entering .auth-visual { animation: auth-visual-enter .72s .2s ease both; }
.auth.is-entering .auth-assurance { animation: auth-enter-up .48s .42s ease both; }
.auth.is-entering .auth-form { animation: auth-card-enter .6s .12s ease both; }
.auth.is-entering .auth-foot { animation: auth-enter-up .45s .34s ease both; }
.auth.is-entering .auth-login-index { animation: auth-enter-down .45s .3s ease both; }

@keyframes auth-enter-down {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes auth-enter-right {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes auth-enter-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes auth-card-enter {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes auth-visual-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes auth-blueprint-scan {
  0%, 100% { top: 13%; opacity: .08; }
  50% { top: 86%; opacity: .66; }
}
@keyframes auth-scale-travel {
  0%, 100% { opacity: .25; transform: translateY(0); }
  50% { opacity: .9; transform: translateY(455%); }
}
@keyframes auth-scale-tick {
  0%, 100% { opacity: .45; transform: scaleX(.72); }
  50% { opacity: .9; transform: scaleX(1); }
}
@keyframes auth-probe-turn { to { transform: rotate(360deg); } }
@keyframes auth-route-node {
  0%, 100% { transform: scale(.84); }
  50% { transform: scale(1.22); }
}
@keyframes auth-panel-drift-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes auth-panel-drift-b {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@keyframes auth-panel-drift-c {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes auth-bar-flow {
  0%, 100% { transform: scaleY(.78); opacity: .72; }
  50% { transform: scaleY(1.08); opacity: 1; }
}
@keyframes auth-ring-turn {
  from { transform: rotate(-28deg); }
  to { transform: rotate(332deg); }
}
@keyframes auth-ring-orbit { to { transform: rotate(-360deg); } }
@keyframes auth-node-pulse {
  0%, 100% { opacity: .5; transform: rotate(45deg) scale(.8); }
  50% { opacity: 1; transform: rotate(45deg) scale(1.08); }
}
@keyframes auth-assurance-pulse {
  0%, 100% { box-shadow: inset 0 0 0 2px #fff, 0 0 0 0 rgba(22, 133, 72, 0); }
  50% { box-shadow: inset 0 0 0 2px #fff, 0 0 0 4px rgba(22, 133, 72, .08); }
}
@keyframes auth-structure-pulse {
  0%, 100% { opacity: .35; transform: scale(.82); }
  50% { opacity: .8; transform: scale(1.15); }
}
@keyframes auth-shield-pulse {
  0%, 58% { opacity: 0; transform: scale(.72); }
  78% { opacity: .7; }
  100% { opacity: 0; transform: scale(1.22); }
}
@keyframes auth-check-draw { to { stroke-dashoffset: 0; } }
@keyframes auth-caps-enter {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes auth-check-pop {
  0% { transform: scale(.78); }
  65% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
@keyframes auth-error-enter {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes auth-form-error-shake {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-5px); }
  65% { transform: translateX(4px); }
}
@keyframes auth-spinner { to { transform: rotate(360deg); } }
@keyframes auth-access-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--auth-green-soft); }
  50% { box-shadow: 0 0 0 6px rgba(229, 242, 233, .32); }
}
@keyframes auth-index-scan {
  0%, 100% { opacity: .35; transform: scaleX(.35); transform-origin: left; }
  50% { opacity: 1; transform: scaleX(1); transform-origin: left; }
}
@keyframes auth-feature-cart {
  0%, 100% { transform: translateX(0) rotate(0); }
  45% { transform: translateX(3px) rotate(-3deg); }
  70% { transform: translateX(-1px) rotate(1deg); }
}
@keyframes auth-feature-cube {
  0% { transform: rotate(0) scale(1); }
  55% { transform: rotate(-10deg) scale(1.12); }
  100% { transform: rotate(0) scale(1.08); }
}
@keyframes auth-feature-rise {
  0%, 100% { transform: translate(0, 0); }
  45% { transform: translate(2px, -3px); }
}
@keyframes auth-feature-analyze {
  0% { transform: rotate(0); }
  55% { transform: rotate(15deg) scale(1.08); }
  100% { transform: rotate(0) scale(1.08); }
}
@keyframes auth-route-packet {
  0% { left: 0; opacity: 0; transform: scale(.72); }
  14% { opacity: 1; }
  82% { opacity: 1; }
  100% { left: calc(100% - 7px); opacity: 0; transform: scale(1.08); }
}
@keyframes auth-panel-signal {
  0%, 100% { opacity: .28; transform: scale(.7); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes auth-code-flicker {
  0%, 13%, 17%, 100% { opacity: .72; }
  15% { opacity: .22; }
  55% { opacity: 1; }
}
@keyframes auth-ribbon-scan {
  0%, 100% { opacity: 0; transform: translateX(0); }
  15% { opacity: .8; }
  70% { opacity: .35; }
  85% { opacity: 0; transform: translateX(700%); }
}
@keyframes auth-stamp-breathe {
  0%, 100% { opacity: .42; transform: rotate(-9deg) scale(.96); }
  50% { opacity: .68; transform: rotate(-6deg) scale(1.03); }
}
@keyframes auth-login-index {
  0%, 100% { opacity: .32; transform: scaleX(.45); }
  50% { opacity: .9; transform: scaleX(1); }
}
@keyframes auth-form-light-sweep {
  from { opacity: 0; transform: translateX(0) skewX(-16deg); }
  35% { opacity: 1; }
  to { opacity: 0; transform: translateX(1500%) skewX(-16deg); }
}
@keyframes auth-admin-pointer {
  0%, 58%, 100% { transform: translate(0, 0); }
  72% { transform: translate(3px, 3px); }
  84% { transform: translate(1px, 1px); }
}
@keyframes auth-creator-attention {
  0%, 100% { border-color: rgba(22, 133, 72, .24); box-shadow: 0 4px 12px rgba(37, 56, 46, .055); transform: translateY(0); }
  35% { border-color: rgba(22, 133, 72, .72); box-shadow: 0 0 0 4px rgba(22, 133, 72, .12), 0 8px 18px rgba(37, 56, 46, .11); transform: translateY(-2px); }
  68% { border-color: rgba(22, 133, 72, .4); box-shadow: 0 0 0 7px rgba(22, 133, 72, 0), 0 6px 15px rgba(37, 56, 46, .08); transform: translateY(0); }
}
@keyframes auth-eye-pop {
  0% { opacity: .3; transform: scale(.72); }
  65% { opacity: 1; transform: scale(1.12); }
  100% { transform: scale(1); }
}
@keyframes auth-creator-loading {
  0%, 100% { opacity: .35; transform: scaleX(.55); }
  50% { opacity: .9; transform: scaleX(1); }
}
@media (max-width: 1180px) {
  .auth-layout { grid-template-columns: minmax(520px, 1fr) minmax(420px, 480px); }
  .auth-showcase { padding: 42px 36px 26px; }
  .auth-brand-logo { width: 96px; height: 84px; flex-basis: 96px; }
  .auth-brand-copy strong { font-size: 38px; }
  .auth-brand-copy p { font-size: 18px; }
  .auth-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-feature { height: 56px; }
  .auth-visual-panel-lines { right: 18%; }
  .auth-system-ribbon { left: 38%; }
  .auth-login-region { padding-inline: 34px; }
  .auth-form { padding-inline: 38px; }
}
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: minmax(0, 1fr); }
  .auth-showcase {
    min-height: 0;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid #dfe7e3;
    padding: 26px 24px 22px;
  }
  .auth-brand { gap: 16px; }
  .auth-brand-logo { width: 82px; height: 70px; flex-basis: 82px; }
  .auth-brand-copy strong { font-size: 34px; }
  .auth-brand-copy p { margin-top: 5px; font-size: 16px; }
  .auth-brand-rule,
  .auth-brand-statement,
  .auth-feature-grid,
  .auth-visual,
  .auth-assurance,
  .auth-login-index { display: none; }
  .auth-login-region {
    min-height: calc(100vh - 119px);
    min-height: calc(100dvh - 119px);
    padding: 34px 24px 24px;
  }
  .auth-form:hover { transform: none; }
}
@media (max-width: 560px) {
  .auth-showcase { padding: 17px 18px 15px; }
  .auth-brand { gap: 12px; }
  .auth-brand-logo { width: 66px; height: 58px; flex-basis: 66px; }
  .auth-brand-copy strong { font-size: 28px; }
  .auth-brand-copy p { font-size: 13px; }
  .auth-brand-index,
  .auth-showcase-frame { display: none; }
  .auth-login-region {
    min-height: calc(100vh - 91px);
    min-height: calc(100dvh - 91px);
    gap: 18px;
    padding: 20px 14px 16px;
  }
  .auth-form {
    width: 100%;
    border-radius: 6px;
    padding: 28px 22px 24px;
    box-shadow: 0 12px 28px rgba(37, 56, 46, .08);
  }
  .auth-form-head { gap: 12px; margin-bottom: 27px; }
  .auth-form-mark { width: 42px; height: 46px; flex-basis: 42px; }
  .auth-form-mark svg { width: 40px; height: 40px; }
  .auth-form h1 { font-size: 22px; }
  .auth-field { margin-top: 18px; }
  .auth-input-shell input:not([type="checkbox"]) { height: 50px; min-height: 50px; line-height: 50px; }
  .auth-submit { height: 50px; min-height: 50px; }
  .auth-access-note { margin-top: 23px; padding-top: 18px; }
  .auth-foot { flex-direction: column; gap: 7px; }
  .auth-foot-divider { display: none; }
  .auth-creator-mark { max-width: 100%; }
}
@media (max-height: 760px) and (min-width: 901px) {
  .auth-showcase { padding-top: 28px; padding-bottom: 20px; }
  .auth-brand-logo { width: 84px; height: 72px; flex-basis: 84px; }
  .auth-brand-copy strong { font-size: 36px; }
  .auth-brand-copy p { margin-top: 5px; font-size: 16px; }
  .auth-brand-rule { margin-top: 14px; }
  .auth-brand-statement { margin-top: 9px; font-size: 15px; }
  .auth-feature-grid { margin-top: 14px; }
  .auth-feature { height: 52px; }
  .auth-visual { min-height: 220px; flex-basis: 240px; }
  .auth-assurance { padding-top: 10px; }
  .auth-login-region { padding-top: 28px; padding-bottom: 22px; }
  .auth-form { padding-top: 32px; padding-bottom: 28px; }
  .auth-form-head { margin-bottom: 22px; }
  .auth-field { margin-top: 16px; }
  .auth-input-shell input:not([type="checkbox"]) { height: 48px; min-height: 48px; line-height: 48px; }
  .auth-submit { height: 48px; min-height: 48px; margin-top: 16px; }
  .auth-access-note { margin-top: 20px; padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth *,
  .auth *::before,
  .auth *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .auth-motorcycle,
  .auth-engine { transform: none; }
  .auth-visual-panel { translate: none; }
  .auth-system-ribbon { transform: none; }
}

.app { height: 100vh; min-height: 0; display: flex; overflow: hidden; }
.sidebar { position: sticky; top: 0; width: var(--sidebar-width); height: 100%; min-height: 0; padding-top: var(--topbar-height); display: flex; flex: 0 0 var(--sidebar-width); flex-direction: column; background: var(--nav); color: white; }
.sidebar-collapse-input { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sidebar-collapse-button { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; margin: 10px 10px 0; padding: 7px 6px; border: 1px solid #35474b; border-radius: 4px; color: #bac9cb; background: #202e33; cursor: pointer; font-size: 11px; text-align: center; transition: color .16s ease, background-color .16s ease, border-color .16s ease; }
.sidebar-collapse-button:hover { color: #f0f5e9; background: #2a3b3e; border-color: #61786a; }
.sidebar-collapse-input:focus-visible + .sidebar-collapse-button { outline: 2px solid var(--brand-lime); outline-offset: 2px; }
.sidebar-collapse-label { justify-self: center; white-space: nowrap; }
.sidebar-collapse-arrows { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 1px; color: #dce9a1; font-size: 15px; font-weight: 800; line-height: 1; transition: transform .16s ease, color .16s ease; }
.sidebar-collapse-button:hover .sidebar-collapse-arrows { color: #fff; transform: translateY(-2px); }
.nav {
  padding: 12px 10px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav::-webkit-scrollbar { display: none; width: 0; height: 0; }
.nav-label { color: #c6d0d1; font-size: 12px; font-weight: 650; letter-spacing: .6px; }
.nav-group { margin: 0 0 8px; padding: 0; border: 0; }
.nav-group:last-child { margin-bottom: 0; }
.nav-group > .nav-label { display: flex; min-width: 0; height: 40px; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; border: 1px solid transparent; border-bottom-color: #35444a; border-radius: 0; background: transparent; cursor: pointer; user-select: none; transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
.nav-group > .nav-label:hover { color: #edf3f0; background: rgba(255,255,255,.035); border-bottom-color: #52666a; }
.nav-group > .nav-label:active { background: rgba(255,255,255,.07); }
.nav-group > .nav-label:focus-visible { outline: 2px solid var(--brand-lime); outline-offset: 2px; }
.nav-group[open] > .nav-label { color: #dbe4e4; }
.nav-group:has(.nav-item.is-active):not([open]) > .nav-label { border-bottom-color: var(--brand-lime); }
.nav-group > .nav-label::-webkit-details-marker { display: none; }
.nav-group > .nav-label::marker { content: ""; }
.nav-group-chevron { display: block; width: 6px; height: 6px; flex: 0 0 6px; margin-right: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; color: #a7bab4; font-size: 0; transform: rotate(-45deg); transition: transform .18s ease, color .18s ease; }
.nav-group[open] > .nav-label .nav-group-chevron { color: #b5c5c8; transform: rotate(45deg); }
.nav-item { position: relative; width: calc(100% - 8px); min-width: 0; min-height: 36px; display: flex; justify-content: space-between; align-items: center; gap: 6px; margin: 4px 0 0 8px; border: 1px solid transparent; padding: 8px 9px 8px 15px; color: #c1d0d2; background: rgba(255,255,255,.02); text-align: left; border-radius: 4px; font-size: 13px; line-height: 18px; letter-spacing: 0; transition: color .16s ease, background-color .16s ease, border-color .16s ease; }
.nav-item::before { content: ""; position: absolute; left: -5px; top: -5px; bottom: -1px; width: 1px; background: #3a4c4b; pointer-events: none; transition: background-color .16s ease; }
.nav-item > span { min-width: 0; overflow-wrap: anywhere; transition: transform .16s ease; }
.nav-item:hover { color: #f2f6f2; background: #2a3b3e; border-color: #435953; }
.nav-item:hover > span { transform: translateX(2px); }
.nav-item:active { background: #233632; }
.nav-item:focus-visible { outline: 2px solid var(--brand-lime); outline-offset: -2px; }
.nav-item.is-active { color: #0b514e; background: #c5d9d6; border-color: transparent; font-weight: 650; }
.nav-item.is-active:hover { color: #0b514e; background: #d1e4e1; border-color: transparent; }
.nav-item.is-active:hover > span { transform: none; }
.nav-item.is-active::before { width: 3px; background: var(--brand-lime); }
.nav-group[open] > .nav-item { animation: nav-item-enter .18s ease both; }
@keyframes nav-item-enter { from { opacity: 0; translate: 0 -3px; } to { opacity: 1; translate: 0 0; } }
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  .nav-group::details-content { interpolate-size: allow-keywords; block-size: 0; overflow: clip; transition: block-size .2s ease, content-visibility .2s allow-discrete; }
  .nav-group[open]::details-content { block-size: auto; }
}
.nav-item b { min-width: 20px; padding: 1px 5px; border-radius: 10px; color: #d6f1ef; background: rgba(255,255,255,.16); text-align: center; font-size: 11px; font-weight: 600; }
.sidebar-foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.1); color: var(--nav-muted); font-size: 11px; }
.connection-status-row { min-width: 0; display: grid; grid-template-columns: 16px minmax(0, 1fr) 56px; align-items: center; gap: 3px 4px; color: #f3ce75; }
.connection-status-row[data-connection-quality="good"] { color: #76dfa4; }
.connection-status-row[data-connection-quality="slow"] { color: #f3ce75; }
.connection-status-row[data-connection-quality="poor"], .connection-status-row[data-connection-status="offline"] { color: #ff9992; }
.connection-status-row #connectionText { min-width: 0; overflow: hidden; color: inherit; text-overflow: ellipsis; white-space: nowrap; }
.connection-latency { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; font-size: 11px; }
.connection-updated-at { grid-column: 2 / 4; justify-self: end; width: 58px; flex: 0 0 58px; color: #d7e2e5; font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: 0; text-align: right; transition: color .18s ease; }
.connection-updated-at.is-stale { color: #d9a6a1; }
.connection-signal { display: flex; width: 16px; height: 14px; align-items: end; gap: 2px; }
.connection-signal i { display: block; width: 2.5px; height: 4px; flex: 0 0 2.5px; border-radius: 1px; background: currentColor; opacity: .25; }
.connection-signal i:nth-child(2) { height: 7px; }
.connection-signal i:nth-child(3) { height: 10px; }
.connection-signal i:nth-child(4) { height: 14px; }
.connection-status-row[data-connection-quality="good"] .connection-signal i,
.connection-status-row[data-connection-quality="slow"] .connection-signal i:nth-child(-n+2),
.connection-status-row[data-connection-quality="poor"] .connection-signal i:first-child { opacity: 1; }
.connection-signal.checking { animation: connection-status-pulse 1.6s ease-in-out infinite; }
@keyframes connection-status-pulse {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
.connection-blocker {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 27, 25, .54);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.connection-blocker[hidden] { display: none; }
.connection-blocker-panel {
  width: min(430px, 100%);
  border: 1px solid rgba(213, 226, 220, .84);
  border-radius: 8px;
  padding: 30px 32px 28px;
  color: #1b2b2a;
  background: #f8fbf8;
  box-shadow: 0 24px 70px rgba(4, 16, 12, .32);
  text-align: center;
}
.connection-blocker-icon {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 16px;
  place-items: center;
  border: 1px solid #d5a45b;
  border-radius: 50%;
  color: #9b671e;
  background: #fff7e7;
}
.connection-blocker-icon::before,
.connection-blocker-icon::after,
.connection-blocker-icon i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.connection-blocker-icon::before { transform: translateY(-8px); }
.connection-blocker-icon::after { transform: translateY(8px); }
.connection-blocker-icon i { animation: connection-blocker-pulse 1.35s ease-in-out infinite; }
.connection-blocker-panel .eyebrow { color: #6d7d76; }
.connection-blocker-panel h2 { margin: 8px 0 10px; font-size: 21px; }
.connection-blocker-panel p { margin: 0 auto 22px; color: #52625d; font-size: 14px; line-height: 1.7; }
.connection-blocker-panel .button { min-width: 118px; }
@keyframes connection-blocker-pulse {
  0%, 100% { transform: scale(.8); opacity: .45; }
  50% { transform: scale(1.35); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .connection-signal.checking { animation: none; }
  .connection-blocker-icon i { animation: none; }
}
.main { min-width: 0; height: 100%; min-height: 0; flex: 1; display: flex; flex-direction: column; padding-top: var(--topbar-height); }
/* Keep the account menu above sticky table headers and column handles. */
.topbar { position: fixed; z-index: 40; isolation: isolate; top: 0; right: 0; left: 0; height: var(--topbar-height); display: flex; align-items: center; gap: 0; padding: 0; color: #f2f6f3; background: var(--topbar-bg); border-bottom: 0; box-shadow: 0 4px 16px rgba(10,20,15,.2); }
.topbar-brand { position: relative; z-index: 1; align-self: stretch; min-width: 0; flex: 0 0 var(--sidebar-width); display: flex; align-items: center; gap: 6px; padding: 7px 10px 8px; border: 0; border-right: 1px solid var(--topbar-separator); color: #fff; background: transparent; text-align: left; cursor: pointer; appearance: none; box-shadow: none; transition: background-color .18s ease, box-shadow .18s ease; }
.topbar-brand-mark { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(168,203,42,.72); border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 2px rgba(112,173,37,.12), 0 3px 10px rgba(0,0,0,.2); }
.topbar-brand-mark .brand-logo { width: auto; height: 37px; }
.topbar-brand-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 3px; }
.topbar-brand-copy strong { min-width: 0; display: flex; align-items: baseline; gap: 7px; overflow: hidden; color: #fff; font-size: 15px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.topbar-brand-product { padding-left: 7px; border-left: 1px solid rgba(255,255,255,.22); color: #c8df58; font-size: 11px; font-weight: 800; }
.topbar-brand-copy small { min-width: 0; overflow: hidden; color: #aebbc0; font-size: 10px; font-weight: 600; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.topbar-brand-toggle { width: 20px; height: 28px; flex: 0 0 20px; display: grid; place-items: center; border-radius: 4px; color: #93a3aa; transition: color .18s ease, background-color .18s ease, transform .18s ease; }
.topbar-brand-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.topbar-brand:disabled { opacity: 1; cursor: default; }
.topbar-brand:not(:disabled):hover { background: rgba(255,255,255,.055); }
.topbar-brand:not(:disabled):hover .topbar-brand-toggle { color: #dce9a1; background: rgba(255,255,255,.08); transform: translateX(-1px); }
.topbar-brand[aria-expanded="false"] .topbar-brand-toggle { transform: rotate(180deg); }
.topbar-brand[aria-expanded="false"]:not(:disabled):hover .topbar-brand-toggle { transform: rotate(180deg) translateX(-1px); }
.topbar-brand:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--brand-lime); }
.topbar-actions { position: relative; z-index: 1; height: 100%; margin-left: auto; padding: 0 12px; display: flex; flex: 0 0 auto; align-items: center; border-left: 1px solid var(--topbar-separator); background: rgba(0,0,0,.08); }
.user-menu-button {
  display: flex;
  min-width: 142px;
  max-width: min(196px, 24vw);
  height: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #fff;
  background: transparent;
  box-shadow: none;
  text-align: left;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.user-menu-button:hover,
.user-menu-button[aria-expanded="true"] { border-color: rgba(168,203,42,.28); background: var(--topbar-raised); box-shadow: 0 3px 10px rgba(0,0,0,.14); }
.user-menu-button:focus-visible { border-color: var(--brand-lime); box-shadow: 0 0 0 2px rgba(168,203,42,.2); outline: 0; }
.user-avatar { position: relative; width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 1px solid #c5dd53; border-radius: 50%; color: #172518; background: var(--brand-lime); box-shadow: inset 0 0 0 2px rgba(255,255,255,.2); font-size: 14px; font-weight: 800; line-height: 1; }
.user-avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.user-avatar > [hidden] { display: none !important; }
.user-presence { position: absolute; right: -1px; bottom: 0; width: 8px; height: 8px; border: 2px solid var(--topbar-bg); border-radius: 50%; background: #56c88a; }
.user-menu-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 3px; }
.user-menu-label {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-copy small { min-width: 0; max-width: 100%; overflow: hidden; color: #9dabb1; font-size: 10px; font-weight: 600; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-chevron {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: #8f9da3;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .15s ease;
}
.user-menu-button[aria-expanded="true"] .user-menu-chevron { transform: rotate(180deg); }
.user-account-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 7px);
  right: 12px;
  min-width: 148px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - var(--topbar-height) - 20px);
  max-height: calc(100dvh - var(--topbar-height) - 20px);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-lime);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(23,33,43,.18);
}
.user-account-menu button {
  width: 100%;
  border: 0;
  border-radius: 3px;
  padding: 8px 12px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
}
.user-account-menu button:hover,
.user-account-menu button:focus-visible { color: #315d2d; background: #eff6e5; outline: 0; }
.user-account-menu-separator { display: block; height: 1px; margin: 5px 7px; background: var(--line); }
html.somon-desktop-app #desktopDownloadButton,
html.somon-desktop-login #desktopDownloadButton { display: none; }
.menu-toggle { width: 38px; height: 38px; flex: 0 0 38px; display: none; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 4px; padding: 0; color: #d8e1dc; background: rgba(255,255,255,.055); }
.menu-toggle:hover { color: #fff; border-color: rgba(168,203,42,.42); background: var(--topbar-raised); }
.menu-toggle:focus-visible { outline: 2px solid var(--brand-lime); outline-offset: 2px; }
.menu-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.content { width: 100%; max-width: 1440px; min-height: 0; flex: 1 1 auto; margin: 0 auto; padding: 34px; overflow: auto; }
.view { display: none; }
.view.is-active { display: block; }
.view.is-view-entering { animation: workspace-view-enter .18s ease both; }
@keyframes workspace-view-enter {
  from { opacity: 0; transform: translate3d(0, 5px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.page-heading h1 { margin: 4px 0 8px; font-size: 28px; letter-spacing: -.01em; }
.page-heading p { margin: 0; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted); }

.button {
  min-height: 36px;
  border: 1px solid var(--button-border);
  border-radius: 4px;
  padding: 8px 15px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--button-shadow);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0;
  vertical-align: middle;
  transition: color .14s ease, background-color .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.button:hover:where(:not(:disabled, [aria-disabled="true"], [data-control-locked="true"], [data-control-locked="true"] *, .is-requirements-blocked)) {
  color: var(--accent-dark);
  border-color: var(--button-hover-border);
  background: var(--button-hover-background);
}
.button.primary { color: white; border-color: var(--accent); background: var(--accent); box-shadow: 0 1px 3px rgba(11, 81, 78, .2); }
.button.primary:hover:where(:not(:disabled, [aria-disabled="true"], [data-control-locked="true"], [data-control-locked="true"] *)) { color: #fff; border-color: var(--accent-dark); background: var(--accent-dark); }
.button.secondary { color: var(--ink); background: white; border-color: var(--button-border); }
.button.secondary:hover:where(:not(:disabled, [aria-disabled="true"], [data-control-locked="true"], [data-control-locked="true"] *, .is-requirements-blocked)) { color: var(--accent-dark); border-color: var(--button-hover-border); background: var(--button-hover-background); }
.button.danger { color: #fff; border-color: var(--danger); background: var(--danger); }
.button.danger:hover:where(:not(:disabled, [aria-disabled="true"], [data-control-locked="true"], [data-control-locked="true"] *)) { color: #fff; border-color: #96332f; background: #96332f; }
.button.ghost { color: #d3dfe2; background: transparent; border-color: rgba(255,255,255,.25); box-shadow: none; }
.button.ghost:hover:where(:not(:disabled, [aria-disabled="true"], [data-control-locked="true"], [data-control-locked="true"] *)) { color: white; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.1); }
.button:active:where(:not(:disabled, [aria-disabled="true"], [data-control-locked="true"], [data-control-locked="true"] *, .is-requirements-blocked)) { box-shadow: var(--button-pressed-shadow); }
.button.secondary:active:where(:not(:disabled, [aria-disabled="true"], [data-control-locked="true"], [data-control-locked="true"] *, .is-requirements-blocked)) { background: var(--button-active-background); }
.button.secondary:is([aria-pressed="true"], [aria-expanded="true"]):where(:not(:disabled, [aria-disabled="true"], [data-control-locked="true"], [data-control-locked="true"] *)) { color: var(--accent-dark); border-color: var(--button-hover-border); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(15,109,104,.08); }
.button:focus-visible:where(:not(:disabled, [aria-disabled="true"], [data-control-locked="true"], [data-control-locked="true"] *)) { outline: 2px solid var(--button-focus); outline-offset: -3px; }
.button:is(.primary, .danger, .ghost):focus-visible { outline-color: #fff; }
.button.full { width: 100%; }
.text-button { color: var(--accent); border: 0; padding: 4px 0; background: transparent; font-size: 13px; }
.text-button:hover:where(:not(:disabled, [aria-disabled="true"], [data-control-locked="true"], [data-control-locked="true"] *)) { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.icon-button { border: 0; border-radius: 4px; color: var(--muted); background: transparent; padding: 7px; }
.icon-button:hover:where(:not(:disabled, [aria-disabled="true"], [data-control-locked="true"], [data-control-locked="true"] *)) { color: var(--accent-dark); background: var(--button-hover-background); }
.icon-button:active:where(:not(:disabled, [aria-disabled="true"], [data-control-locked="true"], [data-control-locked="true"] *)) { background: var(--button-active-background); box-shadow: var(--button-pressed-shadow); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.metric { padding: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.metric-label { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.metric-value { display: block; margin-top: 12px; font-size: 30px; line-height: 1; font-weight: 700; }
.metric-note { display: block; margin-top: 10px; color: var(--muted); font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0 0 4px; font-size: 16px; }
.panel-head p { margin: 0; font-size: 12px; }
.pending-list { min-height: 235px; }
.pending-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 22px; border-bottom: 1px solid #edf0f2; }
.pending-row:last-child { border-bottom: 0; }
.pending-row strong { display: block; font-size: 13px; }
.pending-row small { display: block; color: var(--muted); margin-top: 4px; font-size: 11px; }
.badge { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 8px; color: var(--accent-dark); background: var(--accent-soft); font-size: 11px; white-space: nowrap; }
.badge.warning { color: #87520f; background: var(--warning-soft); }
.badge.danger { color: #8c2e2a; background: #fde8e6; }
.badge.success { color: #1f6a4a; background: #e2f3ea; }

.toolbar { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.search-box { display: grid; min-width: min(340px, 100%); gap: 5px; color: var(--muted); font-size: 11px; }
.select { min-height: 36px; padding: 7px 30px 7px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: white; }
input, select { min-height: 38px; width: 100%; padding: 8px 10px; border: 1px solid #cbd5db; border-radius: 4px; color: var(--ink); background: white; outline: 0; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(15,109,104,.12); }
.table-wrap,
.sales-quote-header-form,
.document-preview-workspace {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 33, 43, .28) transparent;
}
.table-wrap::-webkit-scrollbar { width: 6px; height: 6px; }
.sales-quote-header-form::-webkit-scrollbar { width: 0; height: 6px; }
.document-preview-workspace::-webkit-scrollbar { width: 6px; height: 6px; }
.table-wrap::-webkit-scrollbar-track,
.sales-quote-header-form::-webkit-scrollbar-track,
.document-preview-workspace::-webkit-scrollbar-track { background: transparent; }
.table-wrap::-webkit-scrollbar-thumb,
.sales-quote-header-form::-webkit-scrollbar-thumb,
.document-preview-workspace::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(23, 33, 43, .28);
}
.table-wrap::-webkit-scrollbar-thumb:hover,
.sales-quote-header-form::-webkit-scrollbar-thumb:hover,
.document-preview-workspace::-webkit-scrollbar-thumb:hover { background: rgba(23, 33, 43, .42); }

.horizontal-scrollbar-hint {
  position: fixed;
  z-index: 160;
  max-width: calc(100vw - 16px);
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 3px;
  color: #fff;
  background: #26343b;
  box-shadow: 0 4px 12px rgba(23, 33, 43, .2);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
}

.horizontal-scrollbar-hint[hidden] { display: none; }

.table-overflow-tooltip {
  position: fixed;
  z-index: 390;
  box-sizing: border-box;
  width: max-content;
  min-width: min(140px, calc(100vw - 16px));
  max-width: min(560px, calc(100vw - 16px));
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 4px;
  color: #f8fbfc;
  background: #26343b;
  box-shadow: 0 8px 22px rgba(23, 33, 43, .24);
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  pointer-events: none;
  animation: table-overflow-tooltip-in .12s ease-out;
}

.table-overflow-tooltip[hidden] { display: none; }

.table-overflow-tooltip::before {
  position: absolute;
  left: var(--table-overflow-tooltip-arrow-left, 18px);
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: #26343b;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.table-overflow-tooltip[data-placement="bottom"]::before {
  top: -5px;
  border-right: 0;
  border-bottom: 0;
}

.table-overflow-tooltip[data-placement="top"]::before {
  bottom: -5px;
  border-top: 0;
  border-left: 0;
}

@keyframes table-overflow-tooltip-in {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .table-overflow-tooltip { animation: none; }
}

table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; }
th, td { padding: 13px 20px; border-bottom: 1px solid #edf0f2; text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 11px; font-weight: 600; background: #fafbfb; }
td { color: #34424c; }
tr:last-child td { border-bottom: 0; }
td.number, th.number { text-align: right; }

/* Shared geometry and controls for every developed document line grid. */
.document-detail-grid-table,
.document-detail-summary-table {
  table-layout: fixed;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: #34424c;
  font-size: 12px;
}

.document-detail-grid-table thead {
  position: static;
  background: transparent;
}

.document-detail-grid-table th,
.document-detail-grid-table td,
.document-detail-summary-table th,
.document-detail-summary-table td {
  box-sizing: border-box;
  min-width: 0;
  border: 0;
  border-right: 1px solid #b8c4ca;
  border-bottom: 1px solid #b8c4ca;
  padding: .5em 8px;
  overflow: hidden;
  color: #34424c;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-detail-grid-table tr > :first-child,
.document-detail-summary-table tr > :first-child { border-left: 1px solid #b8c4ca; }

.document-detail-grid-table > thead > .master-title-row > th { border-top: 1px solid #b8c4ca; }

.document-detail-grid-table th:last-child,
.document-detail-grid-table td:last-child,
.document-detail-grid-table tbody tr:last-child td,
.document-detail-summary-table th:last-child,
.document-detail-summary-table td:last-child { border-color: #b8c4ca; }

.document-detail-grid-table > thead > tr > th {
  position: sticky;
  z-index: 6;
  top: 0;
  height: 32px;
  color: #52616a;
  background: #fafbfb;
  background-clip: border-box;
  box-shadow: inset 0 -1px 0 #aebbc1;
  font-weight: 600;
}

.document-detail-grid-table > thead > .master-title-row > th {
  z-index: 7;
  top: 0;
  height: 40px;
  box-shadow: inset 0 -1px 0 #b8c4ca, 0 -2px 0 #fafbfb;
}

.document-detail-grid-table > thead > .master-filter-row > th {
  z-index: 6;
  top: calc(var(--sticky-title-row-height, 40px) - 1px);
  height: 30px;
  background: #f7f9fa;
  box-shadow: inset 0 1px 0 #b8c4ca, inset 0 -1px 0 #aebbc1;
}

.document-detail-grid-table th.row-number,
.document-detail-grid-table td.row-number,
.document-detail-summary-table td.row-number {
  width: auto;
  min-width: 0;
  padding-right: 6px;
  padding-left: 6px;
  color: #738087;
  background: #f3f6f6;
  font-variant-numeric: tabular-nums;
}

.document-detail-grid-table tbody td.row-number { cursor: var(--master-row-select-cursor); }

.document-detail-grid-table .master-select-column,
.document-detail-grid-table .master-select-cell,
.document-detail-summary-table .master-select-cell {
  width: auto;
  min-width: 0;
  padding: 0 8px;
  text-align: center;
}

.document-detail-grid-table .master-row-select,
.document-detail-grid-table .master-select-all {
  display: block;
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0 auto;
  padding: 0;
  border-radius: 2px;
  accent-color: var(--accent);
  box-shadow: none;
  cursor: pointer;
}

.document-detail-grid-table :is(.master-row-select, .master-select-all):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.document-detail-grid-table :is(.master-row-select, .master-select-all):disabled {
  cursor: default;
  opacity: .35;
}

.document-detail-grid-table .master-filter-cell,
.document-detail-grid-table .master-filter-spacer {
  padding: 3px 4px;
  background: #f7f9fa;
}

.document-detail-grid-table .master-column-filter-wrap {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.document-detail-grid-table .master-column-filter {
  width: 100%;
  min-width: 0;
  height: 23px;
  min-height: 0;
  border: 1px solid #c3cdd3;
  border-radius: 2px;
  padding: .35em 30px .35em .5em;
  color: #34424c;
  background: #fff;
  box-shadow: none;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

.document-detail-grid-table .master-column-filter::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
}

.document-detail-grid-table .master-column-filter-clear {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  display: grid;
  width: 26px;
  min-width: 26px;
  min-height: 0;
  place-items: center;
  border: 0;
  border-radius: 2px;
  padding: 0;
  color: #6f7d86;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.document-detail-grid-table .master-column-filter-clear:hover,
.document-detail-grid-table .master-column-filter-clear:focus-visible {
  color: var(--accent-dark);
  background: rgba(15, 109, 104, .14);
  outline: 0;
}

.document-detail-grid-table .master-resizable-column {
  position: sticky;
  padding-right: 4px;
  padding-left: 6px;
  overflow: visible;
}

.document-detail-grid-table .master-draggable-column { cursor: grab; }
.document-detail-grid-table .master-draggable-column button { cursor: pointer; }
.document-detail-grid-table .master-draggable-column.is-column-dragging { opacity: .45; }

.document-detail-grid-table .master-column-resizer {
  position: absolute;
  z-index: 3;
  top: 0;
  right: -5px;
  width: 9px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
}

.document-detail-grid-table .master-column-resizer::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: transparent;
  content: "";
}

.document-detail-grid-table .master-column-resizer:hover::after,
.document-detail-grid-table .master-column-resizer.is-active::after { background: var(--accent); }

.document-detail-grid-table .master-title-row .master-draggable-column.is-column-drop-before::before,
.document-detail-grid-table .master-title-row .master-draggable-column.is-column-drop-after::after {
  position: absolute;
  z-index: 4;
  top: 1px;
  bottom: 1px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
}

.document-detail-grid-table .master-title-row .master-draggable-column.is-column-drop-before::before { left: -2px; }
.document-detail-grid-table .master-title-row .master-draggable-column.is-column-drop-after::after { right: -2px; }

.document-detail-grid-table {
  --control-locked-color: #65737a;
  --control-locked-background: #edf1f2;
}

.document-detail-grid-table tbody td {
  height: 31px;
  padding: 0;
  background: #fff;
}

.document-detail-grid-table > tbody > tr:first-child > td { border-top: 1px solid #b8c4ca; }
.document-detail-grid-table tbody tr.is-selected td { background: #edf7f6; }

.document-detail-grid-table tbody tr > td[data-control-locked="true"],
.document-detail-grid-table tbody tr > td:has([data-control-locked="true"]) {
  color: var(--control-locked-color);
  background: var(--control-locked-background);
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
  cursor: default;
}

.document-detail-grid-table tbody tr > td[data-control-locked="true"] :is(
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select,
  button
),
.document-detail-grid-table tbody tr > td:has([data-control-locked="true"]) :is(
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select,
  button
) {
  color: var(--control-locked-color);
  border-color: transparent;
  background: transparent;
  opacity: 1;
  -webkit-text-fill-color: var(--control-locked-color);
  cursor: default;
}

.document-detail-grid-table .sales-quote-grid-cell { position: relative; cursor: default; }

.document-detail-grid-table .unit-suffix {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 6px;
  color: #718087;
  pointer-events: none;
  transform: translateY(-50%);
  font-size: 10px;
}

.document-grid-cell-control {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 30px;
  min-height: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  padding: .5em 10px;
  overflow: hidden;
  color: #34424c;
  background: transparent;
  box-shadow: none;
  font: inherit;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-detail-grid-table td.is-editing .document-grid-cell-control {
  background: #fff;
  cursor: text;
  text-overflow: clip;
}

/* Locked values are still grid cells: let the shared cell handler receive the
   pointer so they can be selected and copied without becoming editable.
   Row actions and selection checkboxes retain their own disabled behavior. */
.document-detail-grid-table .document-grid-cell-control:disabled { pointer-events: none; }

:is(.document-grid-table, #masterTable) > tbody > tr > td:not(.row-number):not(.master-select-cell) :is(
  input,
  textarea,
  select,
  button
):disabled {
  pointer-events: none;
}

.document-detail-summary-table {
  height: 31px;
  min-width: 0;
  max-width: none;
  transform-origin: left top;
  will-change: transform;
}

.document-detail-summary-table > tbody > tr > td {
  height: 31px;
  padding: 0 8px;
  border-top: 1px solid #aebbc1;
  color: #53636a;
  background: #e1e7e9;
  font-weight: 600;
}

.document-detail-summary-table > tbody > tr > td.row-number { background: #e1e7e9; }
.document-detail-summary-table .sales-quote-detail-summary-count,
.document-detail-summary-table .module-summary-count { padding-left: 20px; text-align: left; }

.table-foot { padding: 14px 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.empty-state { min-height: 220px; display: grid; place-content: center; text-align: center; padding: 30px; color: var(--muted); }
.empty-state strong { color: var(--ink); font-size: 15px; }
.empty-state p { margin: 8px 0 0; font-size: 13px; }
.status-strip { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 13px; }
.status-strip > div { display: flex; align-items: center; gap: 9px; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.status-dot.warning { background: #d69437; }

.modal { width: min(560px, calc(100% - 28px)); border: 0; padding: 0; color: var(--ink); box-shadow: 0 20px 60px rgba(23,33,43,.25); }
.modal.is-modal-positioned { position: fixed; inset: auto; left: var(--modal-left, 0); top: var(--modal-top, 0); margin: 0; animation: none !important; transform: none !important; }
.modal.is-modal-dragging { transition: none !important; }
.modal::backdrop {
  background: rgba(20,28,34,.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.system-dialog {
  width: min(480px, calc(100% - 28px));
  max-width: calc(100% - 28px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  overflow: hidden;
  border: 1px solid #c6d0d5;
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 72px rgba(18,31,39,.34);
}
.system-dialog::backdrop {
  background: rgba(20,28,34,.48);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.system-dialog[open] { animation: system-dialog-enter .16s ease-out; }
.system-dialog.is-open { display: block; position: fixed; inset: 0; }
.system-dialog-form { display: flex; min-width: 0; max-height: inherit; flex-direction: column; }
.system-dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px 15px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f8fbfb, #fff 68%);
}
.system-dialog-kicker {
  display: block;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.system-dialog-head h2 { margin: 5px 0 0; font-size: 19px; }
.system-dialog-close {
  display: grid;
  width: 30px;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0;
  color: #64727b;
  background: transparent;
  font-size: 21px;
  line-height: 1;
}
.system-dialog-close:hover,
.system-dialog-close:focus-visible { border-color: #c8d2d7; color: var(--ink); background: #f2f5f6; outline: 0; }
.system-dialog-body { max-height: min(62vh, 560px); overflow: auto; padding: 20px 22px 5px; }
.system-dialog-body p {
  min-height: 22px;
  margin: 0;
  color: #45565f;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.system-dialog-input-wrap { display: grid; gap: 7px; margin-top: 15px; color: var(--muted); font-size: 12px; }
.system-dialog-input-wrap[hidden] { display: none; }
.system-dialog-input-wrap input { width: 100%; box-sizing: border-box; }
.system-dialog-foot { display: flex; justify-content: end; gap: 9px; padding: 17px 22px; margin-top: 13px; border-top: 1px solid var(--line); }
.system-dialog.has-extra-confirm-actions .system-dialog-foot { flex-wrap: wrap; }
.system-dialog.has-extra-confirm-actions .system-dialog-foot .button { flex: 1 0 88px; white-space: nowrap; }
.application-update-progress { display: block; width: 100%; height: 8px; margin: 16px 0 8px; accent-color: #287969; }
.system-dialog.is-danger .system-dialog-kicker { color: var(--danger); }
@keyframes system-dialog-enter {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head { display: flex; justify-content: space-between; align-items: start; padding: 21px 24px 16px; border-bottom: 1px solid var(--line); cursor: grab; touch-action: none; }
.modal-head :is(button, input, select, textarea, a, [contenteditable]:not([contenteditable=false])) { touch-action: manipulation; }
.modal.is-modal-dragging,
.modal.is-modal-dragging .modal-head,
body.is-modal-dragging,
body.is-modal-dragging * { cursor: grabbing !important; }
.modal-head h2 { margin: 4px 0 0; font-size: 19px; }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 22px 24px 8px; }
.modal-body label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.modal-body label.wide { grid-column: 1 / -1; }
.modal-foot { display: flex; justify-content: end; gap: 9px; padding: 17px 24px; margin-top: 11px; border-top: 1px solid var(--line); }
.purchase-quote-draft-status { flex: 0 0 auto; align-self: flex-start; margin: 6px 10px; }
.purchase-quote-draft-modal { width: min(1100px, calc(100% - 32px)); max-height: calc(100dvh - 40px); }
.purchase-quote-draft-body { padding: 0 24px 12px; max-height: calc(100dvh - 230px); overflow: auto; }
.purchase-quote-draft-body > p { color: var(--muted); }
.purchase-quote-draft-body section { padding: 12px 0; border-bottom: 1px solid var(--line); }
.purchase-quote-draft-body h3 { margin: 0 0 10px; font-size: 14px; }
.purchase-quote-draft-comparison { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.purchase-quote-draft-comparison > div { padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
.purchase-quote-draft-comparison pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.6; user-select: text; }
.purchase-quote-draft-body select { margin-top: 12px; width: min(100%, 360px); }
@media (max-width: 700px) { .purchase-quote-draft-comparison { grid-template-columns: 1fr; } }
.password-security-modal {
  --password-rail: #1b2a31;
  --password-rail-raised: #233841;
  --password-green: #6da82a;
  width: min(850px, calc(100% - 28px));
  max-width: calc(100% - 28px);
  max-height: calc(100dvh - 28px);
  overflow: hidden;
  border: 1px solid #bcc8cd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 27, 34, .36), 0 8px 24px rgba(15, 27, 34, .16);
}
.password-security-modal[open] { animation: password-modal-enter .28s cubic-bezier(.2, .8, .2, 1) both; }
.password-security-modal::backdrop { animation: password-backdrop-enter .24s ease-out both; }
.password-security-form {
  display: flex;
  min-width: 0;
  min-height: 0;
  max-height: inherit;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}
.password-modal-head {
  min-height: 86px;
  flex: 0 0 auto;
  align-items: center;
  padding: 16px 20px 15px 22px;
  border-bottom-color: #d8e0e3;
  background: #fff;
}
.password-modal-title { min-width: 0; display: flex; align-items: center; gap: 13px; }
.password-modal-title > div { min-width: 0; }
.password-modal-title .eyebrow { color: #52745f; font-size: 10px; letter-spacing: .08em; }
.password-modal-title h2 { margin: 4px 0 0; color: #1c2b31; font-size: 20px; line-height: 1.2; }
.password-modal-title p { margin: 4px 0 0; color: #7a878d; font-size: 11px; line-height: 1.35; }
.password-modal-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #b9cfca;
  border-radius: 6px;
  color: var(--accent-dark);
  background: #edf6f3;
}
.password-modal-mark::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 11px;
  height: 3px;
  background: var(--password-green);
  content: "";
}
.password-modal-mark svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-modal-close {
  width: 32px;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0;
  color: #68767d;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}
.password-modal-close:hover:not(:disabled),
.password-modal-close:focus-visible { border-color: #c9d2d6; color: #1d2c32; background: #f3f6f7; outline: 0; transform: rotate(4deg); }
.password-modal-close:disabled { cursor: wait; opacity: .42; }
.password-modal-layout {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  overflow: hidden;
}
.password-modal-rail {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px 24px 23px;
  color: #f4f8f7;
  background-color: var(--password-rail);
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 24px 24px;
}
.password-modal-rail::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--brand-lime) 0 32%, var(--accent) 32% 70%, #d49a3a 70% 100%);
  content: "";
}
.password-rail-visual {
  position: relative;
  width: 150px;
  height: 150px;
  flex: 0 0 150px;
  align-self: center;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(180, 215, 205, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .025);
}
.password-rail-visual::after {
  position: absolute;
  z-index: 2;
  left: 16%;
  right: 16%;
  top: 18%;
  height: 1px;
  background: rgba(168, 203, 42, .7);
  box-shadow: 0 0 10px rgba(168, 203, 42, .42);
  content: "";
  animation: password-security-scan 3.6s ease-in-out infinite;
}
.password-rail-ring { position: absolute; border: 1px dashed rgba(157, 201, 188, .3); border-radius: 50%; }
.password-rail-ring-one { inset: 15px; animation: password-security-orbit 12s linear infinite; }
.password-rail-ring-two { inset: 30px; border-style: solid; border-color: rgba(168, 203, 42, .22); animation: password-security-orbit 9s linear infinite reverse; }
.password-rail-ring-one::before,
.password-rail-ring-two::after {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-lime);
  box-shadow: 0 0 0 3px rgba(168, 203, 42, .12);
  content: "";
}
.password-rail-ring-one::before { top: 8px; right: 14px; }
.password-rail-ring-two::after { left: -3px; top: 50%; }
.password-rail-grid {
  position: absolute;
  inset: 0;
  opacity: .15;
  background-image:
    linear-gradient(transparent 49%, rgba(150, 198, 184, .55) 50%, transparent 51%),
    linear-gradient(90deg, transparent 49%, rgba(150, 198, 184, .55) 50%, transparent 51%);
}
.password-rail-shield {
  position: relative;
  z-index: 3;
  width: 62px;
  height: 62px;
  padding: 11px;
  border: 1px solid rgba(179, 218, 207, .34);
  border-radius: 8px;
  fill: rgba(25, 63, 66, .7);
  stroke: #dcefcf;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .22));
  animation: password-shield-breathe 3.2s ease-in-out infinite;
}
.password-rail-copy { margin-top: 18px; }
.password-rail-kicker { display: block; color: #a8cb2a; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.password-rail-copy strong { display: block; margin-top: 5px; font-size: 16px; }
.password-rail-copy p { margin: 7px 0 0; color: #aebbc0; font-size: 11px; line-height: 1.65; }
.password-steps { position: relative; display: grid; gap: 0; margin: auto 0 0; padding: 18px 0 0; list-style: none; }
.password-steps::before { position: absolute; left: 14px; top: 33px; bottom: 16px; width: 1px; background: rgba(210, 226, 221, .16); content: ""; }
.password-steps li { position: relative; display: grid; grid-template-columns: 29px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 48px; color: #86969c; }
.password-steps li > span {
  position: relative;
  z-index: 1;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(205, 222, 218, .2);
  border-radius: 50%;
  background: var(--password-rail);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  transition: color .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.password-steps li strong,
.password-steps li small { display: block; transition: color .22s ease; }
.password-steps li strong { font-size: 11px; font-weight: 650; }
.password-steps li small { margin-top: 2px; color: #6f8188; font-size: 9px; }
.password-steps li.is-active { color: #fff; }
.password-steps li.is-active > span { border-color: rgba(168, 203, 42, .75); color: #f7ffd7; box-shadow: 0 0 0 4px rgba(168, 203, 42, .1); }
.password-steps li.is-active small { color: #b8c6c9; }
.password-steps li.is-complete { color: #d6e7e1; }
.password-steps li.is-complete > span { border-color: #5e9b55; color: #fff; background: #426f47; }
.password-modal-fields {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 23px 28px 20px;
  background: #fbfcfc;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 33, 43, .25) transparent;
}
.password-modal-fields::-webkit-scrollbar { width: 6px; }
.password-modal-fields::-webkit-scrollbar-track { background: transparent; }
.password-modal-fields::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(23, 33, 43, .25); }
.password-fields-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 13px; color: #31434a; font-size: 12px; }
.password-fields-head > span { font-weight: 700; }
.password-fields-head > strong {
  min-width: 46px;
  padding: 4px 7px;
  border: 1px solid #cbd7d4;
  border-radius: 4px;
  color: #3d6d36;
  background: #f1f7ec;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.password-field-group {
  position: relative;
  margin-top: 11px;
  padding: 13px 15px 12px;
  border: 1px solid #d9e0e3;
  border-left: 3px solid #c7d1d5;
  border-radius: 6px;
  background: #fff;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.password-security-modal[open] .password-field-group { animation: password-field-enter .3s ease-out both; }
.password-security-modal[open] .password-field-group:nth-of-type(2) { animation-delay: .06s; }
.password-security-modal[open] .password-field-group:nth-of-type(3) { animation-delay: .11s; }
.password-security-modal[open] .password-field-group:nth-of-type(4) { animation-delay: .16s; }
.password-field-group:focus-within { border-color: #83a9a4; border-left-color: var(--accent); box-shadow: 0 6px 18px rgba(22, 59, 61, .08), 0 0 0 2px rgba(15, 109, 104, .08); transform: translateY(-1px); }
.password-field-group.is-valid { border-left-color: #6a9f35; }
.password-field-group.is-invalid { border-color: #dfaaa6; border-left-color: var(--danger); background: #fffafa; }
.password-field-group > label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: #293a41; font-size: 12px; font-weight: 700; }
.password-field-group > label small { color: #89949a; font-size: 9px; font-weight: 500; }
.password-control { position: relative; display: flex; align-items: center; }
.password-control > svg {
  position: absolute;
  z-index: 1;
  left: 12px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #71828a;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: color .18s ease, stroke .18s ease;
}
.password-control:focus-within > svg { stroke: var(--accent); }
.password-control input {
  height: 42px;
  min-height: 42px;
  padding: 8px 44px 8px 39px;
  border-color: #cbd6da;
  border-radius: 4px;
  background: #fbfcfc;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.password-control input:focus { border-color: #6f9994; background: #fff; box-shadow: 0 0 0 3px rgba(15, 109, 104, .1); }
.password-control input[readonly] { color: #6d797f; background: #f1f4f5; cursor: wait; }
.password-visibility-toggle {
  position: absolute;
  z-index: 2;
  right: 6px;
  width: 32px;
  min-width: 32px;
  height: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0;
  color: #75838a;
  background: transparent;
}
.password-visibility-toggle:hover:not(:disabled),
.password-visibility-toggle:focus-visible { border-color: #d0d9dc; color: var(--accent-dark); background: #f0f5f4; outline: 0; }
.password-visibility-toggle:disabled { cursor: wait; opacity: .4; }
.password-visibility-toggle svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.password-field-hint { display: block; margin-top: 6px; color: #879399; font-size: 9px; line-height: 1.4; }
.password-field-group.is-valid .password-field-hint { color: #548140; }
.password-field-group.is-invalid .password-field-hint { color: #a43d38; }
.password-strength { margin-top: 9px; }
.password-strength-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #879399; font-size: 9px; }
.password-strength-head strong { color: #68777e; font-weight: 700; }
.password-strength-track { height: 4px; margin-top: 6px; overflow: hidden; border-radius: 2px; background: #e5eaec; }
.password-strength-track > span { display: block; width: 0; height: 100%; background: #aeb8bd; transition: width .34s ease, background .34s ease; }
.password-strength[data-strength="weak"] .password-strength-track > span { width: 25%; background: #c65b52; }
.password-strength[data-strength="fair"] .password-strength-track > span { width: 50%; background: #c78d35; }
.password-strength[data-strength="good"] .password-strength-track > span { width: 75%; background: #6d9d43; }
.password-strength[data-strength="strong"] .password-strength-track > span { width: 100%; background: var(--accent); }
.password-strength[data-strength="weak"] .password-strength-head strong { color: #aa463f; }
.password-strength[data-strength="fair"] .password-strength-head strong { color: #9b6c26; }
.password-strength[data-strength="good"] .password-strength-head strong { color: #588237; }
.password-strength[data-strength="strong"] .password-strength-head strong { color: var(--accent-dark); }
.password-strength-rules { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 7px; color: #96a0a5; font-size: 8px; }
.password-strength-rules span { position: relative; padding-left: 10px; }
.password-strength-rules span::before { position: absolute; left: 0; top: .45em; width: 4px; height: 4px; border-radius: 50%; background: #bdc6c9; content: ""; }
.password-strength-rules span.is-met { color: #558142; }
.password-strength-rules span.is-met::before { background: #70a53e; box-shadow: 0 0 0 2px rgba(112, 165, 62, .12); }
.password-modal-error {
  margin: 12px 0 0;
  padding: 9px 11px;
  border: 1px solid #e7c2be;
  border-radius: 4px;
  color: #963d38;
  background: #fff3f1;
  line-height: 1.45;
}
.password-modal-error[hidden] { display: none; }
.password-security-form.has-submit-error .password-modal-fields { animation: password-form-shake .28s ease-out; }
.password-modal-foot {
  min-height: 65px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
  padding: 13px 20px 13px 22px;
  border-top-color: #d8e0e3;
  background: #f6f8f8;
}
.password-modal-status { min-width: 0; display: inline-flex; align-items: center; gap: 8px; color: #718087; font-size: 10px; }
.password-modal-status > i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #70a73b; box-shadow: 0 0 0 3px rgba(112, 167, 59, .13); }
.password-security-form.is-submitting .password-modal-status > i { background: #d19734; box-shadow: 0 0 0 3px rgba(209, 151, 52, .13); animation: password-status-pulse .9s ease-in-out infinite; }
.password-modal-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; }
.password-modal-actions .button { min-width: 78px; }
.password-submit { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 108px !important; }
.password-submit:disabled { cursor: wait; opacity: .8; }
.password-submit-spinner { display: none; width: 14px; height: 14px; flex: 0 0 14px; border: 2px solid rgba(255, 255, 255, .38); border-top-color: #fff; border-radius: 50%; }
.password-security-form.is-submitting .password-submit-spinner { display: block; animation: password-spinner .7s linear infinite; }
@keyframes password-modal-enter {
  from { opacity: 0; transform: translateY(12px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes password-backdrop-enter {
  from { background: rgba(20, 28, 34, 0); backdrop-filter: blur(0); }
  to { background: rgba(20, 28, 34, .48); backdrop-filter: blur(5px); }
}
@keyframes password-field-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes password-security-orbit { to { transform: rotate(360deg); } }
@keyframes password-security-scan {
  0%, 100% { top: 18%; opacity: .18; }
  50% { top: 80%; opacity: .85; }
}
@keyframes password-shield-breathe {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .22)); }
  50% { transform: translateY(-3px); filter: drop-shadow(0 9px 14px rgba(0, 0, 0, .28)); }
}
@keyframes password-form-shake {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-4px); }
  60% { transform: translateX(3px); }
}
@keyframes password-status-pulse { 50% { opacity: .45; transform: scale(.78); } }
@keyframes password-spinner { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .password-security-modal { width: calc(100% - 16px); max-width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .password-modal-head { min-height: 78px; padding: 13px 15px; }
  .password-modal-title p { display: none; }
  .password-modal-layout { grid-template-columns: 1fr; overflow-y: auto; }
  .password-modal-rail { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 0 13px; padding: 14px 17px 13px; }
  .password-rail-visual { grid-row: 1 / 2; width: 54px; height: 54px; flex-basis: 54px; }
  .password-rail-ring-one { inset: 5px; }
  .password-rail-ring-two { inset: 12px; }
  .password-rail-shield { width: 30px; height: 30px; padding: 5px; border-radius: 5px; }
  .password-rail-visual::after { left: 14%; right: 14%; }
  .password-rail-copy { grid-column: 2; margin-top: 0; }
  .password-rail-copy p { display: none; }
  .password-steps { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; padding-top: 0; }
  .password-steps::before { left: 14px; right: 14px; top: 14px; bottom: auto; width: auto; height: 1px; }
  .password-steps li { grid-template-columns: 29px minmax(0, 1fr); gap: 6px; min-height: 36px; }
  .password-steps li small { display: none; }
  .password-modal-fields { flex: 0 0 auto; overflow: visible; padding: 17px; }
  .password-field-group { padding: 12px; }
  .password-modal-foot { min-height: 62px; padding: 11px 15px; }
}
@media (max-width: 520px) {
  .password-modal-title .eyebrow { display: none; }
  .password-modal-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .password-modal-title h2 { margin-top: 0; font-size: 18px; }
  .password-rail-copy { display: none; }
  .password-modal-rail { grid-template-columns: 1fr; padding-top: 11px; }
  .password-rail-visual { display: none; }
  .password-steps { margin-top: 0; }
  .password-steps li { display: flex; gap: 5px; justify-content: center; }
  .password-steps li > div { display: none; }
  .password-fields-head { margin-bottom: 9px; }
  .password-field-group { margin-top: 8px; }
  .password-strength-rules { display: grid; gap: 4px; }
  .password-modal-status { display: none; }
  .password-modal-foot { justify-content: flex-end; }
  .password-modal-actions { width: 100%; }
  .password-modal-actions .button { flex: 1 1 0; }
}
@media (max-height: 700px) and (min-width: 761px) {
  .password-modal-head { min-height: 74px; padding-block: 12px; }
  .password-modal-title p { display: none; }
  .password-modal-rail { padding-top: 18px; padding-bottom: 18px; }
  .password-rail-visual { width: 112px; height: 112px; flex-basis: 112px; }
  .password-rail-copy { margin-top: 12px; }
  .password-rail-copy p { display: none; }
  .password-modal-fields { padding-top: 16px; padding-bottom: 14px; }
  .password-field-group { margin-top: 8px; padding-block: 10px; }
  .password-control input { height: 38px; min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .password-security-modal,
  .password-security-modal::backdrop,
  .password-security-modal *,
  .password-security-modal *::before,
  .password-security-modal *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
.choice-modal.about-system-modal {
  width: min(460px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border: 1px solid #c6d0d5;
  border-radius: 6px;
  background: #fff;
}
.about-system-dialog { display: flex; min-height: 0; max-height: inherit; flex-direction: column; }
.about-system-body { min-height: 0; overflow: auto; padding: 0 24px; }
.choice-modal.about-system-modal .modal-head {padding:16px 24px;border-bottom:0;}
.choice-modal.about-system-modal .modal-head h2 {font-size:15px;color:var(--muted);}
.about-system-product { display: flex; align-items: center; gap: 14px; padding: 22px 0 20px; border-bottom: 1px solid var(--line); }
.about-system-logo { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; overflow: hidden; }
.about-system-logo img { width: auto; height: 54px; }
.about-system-product-copy { min-width: 0; flex: 1; }
.about-system-product-copy h3 { margin: 0; color: #1d2d26; font-size: 19px; line-height: 1.25; letter-spacing: 0; }
.about-system-product-copy p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.about-system-meta { margin: 0; padding: 14px 0; border-bottom:1px solid var(--line); }
.about-system-meta > div { min-width: 0; display:flex;align-items:baseline;justify-content:space-between;gap:18px;padding:9px 0; }
.about-system-meta > div[hidden] {display:none;}
.about-system-meta dt { color: #74827c; font-size: 12px; flex:0 0 auto; }
.about-system-meta dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #26372f; font-size: 13px; font-weight: 700; }
.about-system-developer { display: flex; flex-direction:column;gap:12px;padding:18px 0 8px; }
.about-system-developer > div { min-width: 0; display: flex; align-items: baseline; justify-content:space-between;gap:12px; }
.about-system-developer small { color: #74827c; font-size: 11px; }
.about-system-developer strong { color: #26372f; font-size: 13px; }
.about-system-developer a { color: #2f6f68; font-size: 13px; font-weight: 700; text-decoration: none; }
.about-system-developer a:hover,
.about-system-developer a:focus-visible { color: #224f4a; text-decoration: underline; outline: 0; }
.about-system-copyright { margin: 0; padding: 15px 0 18px; color: #7a8782; font-size: 11px; line-height: 1.6; text-align: center; }
@media (max-width: 560px) {
  .choice-modal.about-system-modal { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .about-system-body { padding-inline: 16px; }
  .about-system-product { align-items: flex-start; gap: 11px; padding-block: 18px 16px; }
  .about-system-logo { width: 50px; height: 50px; flex-basis: 50px; }
  .about-system-logo img { height: 47px; }
  .about-system-product-copy h3 { font-size: 17px; }
}
.choice-modal {
  width: min(480px, calc(100% - 28px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border: 1px solid #c6d0d5;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(18, 31, 39, .3);
}
.choice-modal > form {
  display: flex;
  min-height: 0;
  max-height: inherit;
  flex-direction: column;
}
.choice-modal.is-more-picker-frame-fixed > form { height: 100%; max-height: 100%; }
.choice-modal.is-more-picker-frame-fixed .sales-quote-choice-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 34px minmax(0, 1fr);
}
.choice-modal.is-more-picker-frame-fixed .choice-table-frame { min-width: 0; }
.choice-modal.is-more-picker-frame-fixed .receipt-packaging-method-table {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.choice-modal.is-more-picker-frame-fixed .receipt-packaging-method-options { max-height: 100%; }
.choice-modal[open] { animation: choice-modal-enter .16s ease-out; }
.choice-modal::backdrop { animation: choice-backdrop-enter .16s ease-out; }
.choice-modal-head { flex: 0 0 auto; align-items: center; padding: 18px 20px 16px; background: #fff; }
.choice-modal-head h2 { margin-top: 3px; font-size: 18px; }
.choice-modal-close {
  display: grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0;
  color: #64727b;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  transition: color .14s ease, border-color .14s ease, background .14s ease, transform .08s ease;
}
.choice-modal-close:hover,
.choice-modal-close:focus-visible {
  border-color: #c8d2d7;
  color: var(--ink);
  background: #f2f5f6;
  outline: 0;
}
.choice-modal-close:active:not(:disabled) { background: var(--button-active-background); box-shadow: var(--button-pressed-shadow); }
.choice-modal-body {
  display: block;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  padding: 16px 20px;
}
.cell-content-modal { width: min(700px, calc(100% - 28px)); }
.cell-content-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding: 18px 20px 10px;
}
.cell-content-modal-body label {
  color: #56656e;
  font-size: 12px;
  font-weight: 600;
}
#cellContentEditor {
  width: 100%;
  min-width: 0;
  min-height: clamp(220px, 42vh, 420px);
  max-height: calc(100dvh - 220px);
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #aebcc3;
  border-radius: 4px;
  padding: 12px 13px;
  color: #26343c;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(26, 39, 47, .05);
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-user-select: text !important;
  user-select: text !important;
}
#cellContentEditor:focus {
  border-color: #3f7189;
  outline: 2px solid rgba(63, 113, 137, .16);
  outline-offset: 0;
}
#cellContentEditor[readonly] {
  color: #42525b;
  background: #f2f5f6;
  box-shadow: none;
}
.cell-content-error { margin: 8px 20px 0; }
.choice-table-frame {
  min-height: 0;
  overflow: hidden;
  border: 1px solid #c9d3d8;
  border-radius: 3px;
  background: #fff;
}
.choice-table-head,
.modal-body .choice-table-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 0;
}
.choice-table-head.choice-table-row-three,
.modal-body .choice-table-row.choice-table-row-three {
  grid-template-columns: 52px 126px minmax(0, 1fr);
}
.choice-table-head.choice-table-two-value-columns,
.modal-body .choice-table-row.choice-table-two-value-columns {
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr);
}
.choice-table-head.sales-quote-customer-choice-columns,
.sales-quote-customer-choice-filters,
.modal-body .choice-table-row.sales-quote-customer-choice-columns {
  grid-template-columns: 52px 112px minmax(0, 1fr) 112px;
}
.sales-quote-customer-choice-filters:not([hidden]) {
  display: grid;
  align-items: center;
  min-height: 34px;
  border-bottom: 1px solid #dbe2e7;
  background: #fafbfb;
}
.sales-quote-customer-choice-filters > input {
  width: calc(100% - 8px);
  min-width: 0;
  height: 28px;
  margin: 3px 4px;
  padding: 0 5px;
  border: 1px solid #cbd6da;
  border-radius: 3px;
  font: inherit;
}
#salesQuoteChoiceModal.is-more-customer-mode { width: min(calc(var(--more-customer-width, 576px) + 42px), calc(100% - 28px)); }
#salesQuoteChoiceModal.is-more-customer-mode .choice-table-frame { overflow: auto; max-height: min(500px, calc(100dvh - 218px)); }
#salesQuoteChoiceModal.is-more-customer-mode .choice-table-head,
#salesQuoteChoiceModal.is-more-customer-mode .sales-quote-customer-choice-filters,
#salesQuoteChoiceModal.is-more-customer-mode .choice-table-row { grid-template-columns: var(--more-customer-columns, 52px 112px 300px 112px); width: var(--more-customer-width, 576px); }
#salesQuoteChoiceModal.is-more-customer-mode .choice-table-rows { width: var(--more-customer-width, 576px); max-height: none; overflow: visible; }
#salesQuoteChoiceModal.is-more-customer-mode .choice-table-head { position: sticky; top: 0; z-index: 3; height: 40px; }
#salesQuoteChoiceModal.is-more-customer-mode .sales-quote-customer-choice-filters { position: sticky; top: 40px; z-index: 2; }
#salesQuoteChoiceModal.is-more-customer-mode .choice-table-head > [data-more-picker-column] { height: 40px; }
.choice-table-head.sales-quote-customer-choice-columns > :nth-child(2),
.choice-table-head.sales-quote-customer-choice-columns > :nth-child(3) {
  height: 34px;
  display: flex;
  align-items: center;
  border-right: 1px solid #dbe2e7;
}
.modal-body .choice-table-row.sales-quote-customer-choice-columns > .choice-table-value {
  align-self: stretch;
  display: flex;
  align-items: center;
}
.modal-body .choice-table-row.sales-quote-customer-choice-columns > .choice-table-value:not(:last-child) {
  border-right: 1px solid #edf0f2;
}
.modal-body .choice-table-row.sales-quote-customer-choice-columns > .sales-quote-customer-full-name {
  overflow: visible;
  padding-block: 8px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}
.choice-table-row-three > :nth-child(2) {
  border-right: 1px solid #edf0f2;
}
.choice-table-two-value-columns > :nth-child(2) {
  align-self: stretch;
  display: flex;
  align-items: center;
  border-right: 1px solid #edf0f2;
}
.choice-table-head.choice-table-row-three > :nth-child(2) {
  height: 34px;
  display: flex;
  align-items: center;
  border-right-color: #dbe2e7;
}
.choice-table-head.choice-table-two-value-columns > :nth-child(2) {
  height: 34px;
  border-right-color: #dbe2e7;
}
.modal-body .choice-table-row.choice-table-row-three .choice-table-code {
  align-self: stretch;
  display: flex;
  align-items: center;
  border-right: 1px solid #edf0f2;
}
.platform-choice-modal { width: min(620px, calc(100% - 28px)); }
.brand-positioning-modal .choice-table-head,
.brand-positioning-modal .choice-table-row { grid-template-columns: minmax(0, 1fr); }
.brand-positioning-modal .choice-table-head > span:first-child { justify-content: start; padding-left: 44px; border-right: 0; }
.brand-positioning-modal .choice-table-select-cell { position: absolute; inset: 0 auto 0 0; width: 40px; border-right: 0; }
.brand-positioning-modal .choice-table-value { padding-left: 44px; }
.brand-positioning-modal { transition: width 160ms ease; }
.brand-positioning-modal.is-country-mode { width: min(880px, calc(100% - 28px)); }
.brand-positioning-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.brand-positioning-modal.is-country-mode .brand-positioning-layout { grid-template-columns: 184px minmax(0, 1fr); align-items: start; }
.brand-positioning-modal .brand-positioning-level-row,
.brand-positioning-modal .brand-positioning-level-head { grid-template-columns: 40px minmax(0, 1fr); padding: 0; }
.brand-positioning-level-head > span:first-child { grid-column: 1 / 3; }
.brand-positioning-level-check { position: relative; align-self: stretch; margin: 0; cursor: pointer; }
.brand-positioning-level-check .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.brand-positioning-level-label { min-width: 0; min-height: 40px; padding: 0 12px 0 4px; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand-positioning-level-label span { color: var(--muted); font-size: 11px; white-space: nowrap; }
#brandPositioningModal .brand-positioning-level-row.is-active { background: #d7eeeb; box-shadow: inset 3px 0 #087e82; }
#brandPositioningModal .brand-positioning-level-row.is-checked:not(.is-active) { background: #f0f6f5; }
.brand-positioning-level-label:focus-visible { outline: 2px solid #087e82; outline-offset: -3px; }
.brand-positioning-country-heading { min-height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand-positioning-country-heading h3 { margin: 0; font-size: 13px; }
.brand-positioning-country-heading > span { font-size: 11px; color: var(--muted); }
#brandPositioningCountryFilter { width: 100%; min-width: 0; height: 32px; margin: 6px 0 8px; padding: 0 8px; border: 1px solid #b8cacc; border-radius: 3px; font: inherit; }
.brand-positioning-modal .brand-positioning-country-head,
.brand-positioning-modal .brand-positioning-country-row { grid-template-columns: minmax(0, 1fr) 76px; }
.brand-positioning-modal .brand-positioning-country-row .brand-country-owner { padding: 0 8px; color: #67767b; font-size: 11px; }
#brandPositioningModal .brand-positioning-country-row.is-unavailable { color: #899398; background: #f1f3f4; cursor: not-allowed; }
#brandPositioningModal .brand-positioning-country-row.is-unavailable .choice-table-value { color: #899398; }
.brand-positioning-country-row.is-unavailable .choice-table-control { border-color: #c7ced1; background: #e5e9eb; }
#brandPositioningCountryRows { height: min(340px, calc(100dvh - 340px)); min-height: 120px; overflow: auto; overscroll-behavior: contain; }
.brand-positioning-error { grid-column: 1 / -1; margin: 0; color: #a53626; font-size: 12px; }
@media (max-width: 560px) {
  .brand-positioning-modal.is-country-mode .brand-positioning-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .brand-positioning-level-label { flex-wrap: wrap; justify-content: start; padding-right: 4px; gap: 0 4px; }
  .brand-positioning-modal .brand-positioning-country-head,
  .brand-positioning-modal .brand-positioning-country-row { grid-template-columns: minmax(0, 1fr) 76px; }
  .brand-positioning-country-row .choice-table-value { white-space: normal; overflow-wrap: anywhere; padding-right: 4px; }
}
@media (prefers-reduced-motion: reduce) { .brand-positioning-modal { transition: none; } }
.choice-table-head {
  min-height: 34px;
  border-bottom: 1px solid #dbe2e7;
  color: var(--muted);
  background: #fafbfb;
  font-size: 11px;
  font-weight: 600;
}
.choice-table-head > span {
  min-width: 0;
  padding: 0 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.choice-table-head > span:first-child { height: 34px; display: grid; place-items: center; border-right: 1px solid #dbe2e7; padding: 0 4px; }
.choice-table-rows {
  max-height: min(440px, calc(100vh - 218px));
  max-height: min(440px, calc(100dvh - 218px));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 33, 43, .28) transparent;
}
.choice-table-rows::-webkit-scrollbar { width: 6px; height: 6px; }
.choice-table-rows::-webkit-scrollbar-track { background: transparent; }
.choice-table-rows::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(23, 33, 43, .28); }
.choice-table-rows::-webkit-scrollbar-thumb:hover { background: rgba(23, 33, 43, .42); }
.modal-body .choice-table-row {
  position: relative;
  min-width: 0;
  min-height: 40px;
  border-bottom: 1px solid #edf0f2;
  color: #34424c;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  transition: background .12s ease, box-shadow .12s ease;
}
.modal-body .choice-table-row:last-child { border-bottom: 0; }
.modal-body .choice-table-row:hover { background: #f7f9fa; }
.modal-body .choice-table-row:has(.choice-table-input:checked) {
  background: #edf7f6;
  box-shadow: inset 3px 0 var(--accent);
}
.modal-body .choice-table-row:has(.choice-table-input:focus-visible) {
  z-index: 1;
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--accent);
}
.choice-table-input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  overflow: hidden;
  border: 0;
  margin: 0;
  padding: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}
.choice-table-select-cell {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 40px;
  place-items: center;
  border-right: 1px solid #edf0f2;
}
.choice-table-control {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid #9eacb3;
  border-radius: 50%;
  background: #fff;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.choice-table-control::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  transform: scale(0);
  transition: transform .12s ease;
}
.choice-table-input:checked + .choice-table-select-cell .choice-table-control {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(15, 109, 104, .1);
}
.choice-table-input:checked + .choice-table-select-cell .choice-table-control::after { transform: scale(1); }
.choice-table-input[type="checkbox"] + .choice-table-select-cell .choice-table-control { border-radius: 2px; }
.choice-table-input[type="checkbox"] + .choice-table-select-cell .choice-table-control::after {
  width: 8px;
  height: 5px;
  border: solid var(--accent);
  border-width: 0 0 2px 2px;
  border-radius: 0;
  background: transparent;
  transform: translateY(-1px) rotate(-45deg) scale(0);
}
.choice-table-input[type="checkbox"]:checked + .choice-table-select-cell .choice-table-control::after {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}
.choice-table-value {
  min-width: 0;
  padding: 0 12px;
  overflow: hidden;
  color: #34424c;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.choice-table-code {
  color: #5f6d75;
  font-variant-numeric: tabular-nums;
}
.choice-table-state {
  display: grid;
  min-height: 96px;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  text-align: center;
}
.country-modal { width: min(920px, calc(100% - 28px)); }
.country-modal-body {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
}
.country-search-wrap {
  position: relative;
  flex: 0 0 auto;
}
.country-search-input {
  min-height: 36px;
  padding: 7px 38px 7px 11px;
  border-color: #c9d3d8;
  border-radius: 3px;
  font-size: 13px;
}
.country-search-input::-webkit-search-cancel-button { display: none; }
.country-search-clear {
  position: absolute;
  top: 50%;
  right: 5px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0;
  color: #6d7981;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  transform: translateY(-50%);
}
.country-search-clear:hover,
.country-search-clear:focus-visible {
  border-color: #c8d2d7;
  color: var(--ink);
  background: #f2f5f6;
  outline: 0;
}
.country-choice-grid {
  display: grid;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.country-choice-column {
  display: flex;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #c9d3d8;
  border-radius: 3px;
  background: #fff;
  flex-direction: column;
}
.country-continent-title {
  display: grid;
  min-height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-bottom: 1px solid #c9d3d8;
  margin: 0;
  color: var(--ink);
  background: #f7f9fa;
  font-size: 14px;
  font-weight: 700;
}
.country-region-list {
  min-height: 0;
  max-height: min(520px, calc(100vh - 224px));
  max-height: min(520px, calc(100dvh - 224px));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 33, 43, .28) transparent;
}
.country-region-list::-webkit-scrollbar { width: 6px; height: 6px; }
.country-region-list::-webkit-scrollbar-track { background: transparent; }
.country-region-list::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(23, 33, 43, .28); }
.country-region-list::-webkit-scrollbar-thumb:hover { background: rgba(23, 33, 43, .42); }
.country-region-group { margin: 0; }
.country-region-title {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  min-height: 31px;
  align-items: center;
  border-top: 1px solid #dbe2e7;
  border-bottom: 1px solid #dbe2e7;
  margin: 0;
  padding: 0 11px;
  color: #56636d;
  background: #f3f6f7;
  font-size: 11px;
  font-weight: 700;
}
.country-region-group:first-child .country-region-title { border-top: 0; }
.country-column-empty {
  display: grid;
  min-height: 120px;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.modal-body .country-choice-row {
  min-height: 34px;
  grid-template-columns: 42px minmax(0, 1fr);
}
.country-choice-row .choice-table-select-cell { min-height: 34px; }
.country-choice-row .choice-table-value { padding-inline: 10px; font-weight: 400; }
.choice-modal .modal-foot { flex: 0 0 auto; margin-top: 0; padding: 13px 20px; background: #f7f9fa; }
.choice-modal .modal-foot .button { min-width: 72px; }
@keyframes choice-modal-enter {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes choice-backdrop-enter {
  from { background: rgba(20,28,34,0); }
  to { background: rgba(20,28,34,.48); }
}
@media (prefers-reduced-motion: reduce) {
  .choice-modal[open],
  .choice-modal::backdrop { animation: none; }
  .choice-table-row,
  .choice-table-control,
  .choice-table-control::after,
  .choice-modal-close { transition: none; }
}
@media (max-width: 520px) {
  .choice-modal {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .choice-modal-head { padding: 15px 16px 13px; }
  .choice-modal-body { padding: 12px 14px; }
  .choice-modal .modal-foot { padding: 12px 14px; }
  .modal-body .choice-table-row,
  .choice-table-select-cell { min-height: 44px; }
  .choice-table-rows {
    max-height: calc(100vh - 202px);
    max-height: calc(100dvh - 202px);
  }
}
@media (max-width: 760px) {
  .country-choice-grid {
    grid-template-columns: repeat(2, minmax(270px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(23, 33, 43, .28) transparent;
  }
  .country-choice-grid::-webkit-scrollbar { width: 6px; height: 6px; }
  .country-choice-grid::-webkit-scrollbar-track { background: transparent; }
  .country-choice-grid::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(23, 33, 43, .28); }
}
.form-error { color: var(--danger); margin: 12px 24px 0; font-size: 12px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 5; max-width: min(420px, calc(100% - 48px)); padding: 12px 16px; color: white; background: #25343d; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; font-size: 13px; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  :root { --sidebar-width: 184px; }
  .topbar-brand-toggle { display: none; }
  .topbar-brand-copy small { font-size: 9px; }
  .content { padding: 26px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sidebar { position: fixed; z-index: 4; left: 0; top: 0; bottom: 0; width: min(280px, 86vw); transform: translateX(-100%); transition: transform .2s; box-shadow: 10px 0 30px rgba(0,0,0,.18); }
  .sidebar:has(.sidebar-collapse-input:checked) { width: min(280px, 86vw); flex-basis: auto; }
  .sidebar.is-open { transform: translateX(0); }
  .menu-toggle { display: grid; margin: 0 6px; }
  .topbar { gap: 0; padding-right: 0; }
  .topbar-brand { flex: 0 1 min(184px, 40vw); gap: 8px; padding-inline: 8px; }
  .topbar-brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .topbar-brand-mark .brand-logo { height: 37px; }
  .topbar-brand-copy strong { font-size: 13px; }
  .topbar-brand-copy small { display: none; }
  .topbar-actions { gap: 0; padding-inline: 6px; }
  .user-menu-button {
    min-width: 112px;
    max-width: min(138px, 28vw);
    height: 46px;
    min-height: 46px;
    gap: 7px;
    padding-inline: 6px;
  }
  .user-avatar { width: 32px; height: 32px; flex-basis: 32px; font-size: 13px; }
  .user-menu-label { font-size: 12px; }
  .user-menu-copy small { display: none; }
  .topbar-actions .button { display: none; }
  .content { padding: 22px 16px; }
  .page-heading { align-items: start; flex-direction: column; gap: 14px; margin-bottom: 20px; }
  .page-heading h1 { font-size: 24px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .metric-grid { gap: 10px; }
  .metric { padding: 16px; }
  .metric-value { font-size: 25px; }
  .search-box { min-width: 100%; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-body label.wide { grid-column: auto; }
}
@media (max-width: 420px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-label { font-size: 11px; }
  .metric-note { display: none; }
}

/* Collapse in two stages: the sidebar exits upward, then its layout width closes. */
.sidebar { overflow: hidden; transition: width .24s ease, flex-basis .24s ease, transform .28s cubic-bezier(.4, 0, .2, 1); }
.app.sidebar-collapsing-up .sidebar,
.app.sidebar-expanding-layout .sidebar,
.app.sidebar-collapsed .sidebar { transform: translateY(-100%); pointer-events: none; }
.app.sidebar-collapsed .sidebar { width: 0 !important; flex-basis: 0 !important; }
.workspace-shell { position: relative; z-index: 1; min-width: 0; height: 100%; flex: 1; display: grid; grid-template-rows: 22px 42px; }
.workspace-meta { min-width: 0; height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 9px 0 13px; color: #91a0a6; border-bottom: 1px solid rgba(255,255,255,.045); }
.workspace-context { min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; }
.workspace-context-icon { width: 11px; height: 11px; flex: 0 0 11px; fill: none; stroke: var(--brand-lime); stroke-width: 1.8; }
.workspace-kicker { flex: 0 0 auto; color: #839198; font-size: 9px; font-weight: 600; line-height: 1; }
.workspace-context-separator { width: 1px; height: 9px; flex: 0 0 1px; background: rgba(255,255,255,.16); }
.workspace-context strong { min-width: 0; overflow: hidden; color: #d4ddd8; font-size: 10px; font-weight: 600; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.workspace-tab-tools { height: 19px; flex: 0 0 auto; display: flex; align-items: center; gap: 2px; }
.workspace-tab-count { height: 18px; display: inline-flex; align-items: baseline; gap: 2px; padding: 0 4px; color: #718087; font-size: 9px; line-height: 18px; }
.workspace-tab-count strong { color: #b9d448; font-size: 10px; font-variant-numeric: tabular-nums; }
.workspace-tab-step { width: 20px; height: 18px; display: grid; place-items: center; border: 0; border-radius: 3px; padding: 0; color: #8e9ca2; background: transparent; }
.workspace-tab-step svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.workspace-tab-step:hover:not(:disabled) { color: #eff4f0; background: rgba(255,255,255,.09); }
.workspace-tab-step:focus-visible { color: #fff; outline: 1px solid var(--brand-lime); outline-offset: 0; }
.workspace-tab-step:disabled { color: #55636a; background: transparent; opacity: .45; }
.workspace-tabs { position: relative; min-width: 0; width: 100%; height: 42px; display: flex; align-items: stretch; gap: 1px; padding: 0 10px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.workspace-tabs::-webkit-scrollbar { display: none; width: 0; height: 0; }
.workspace-tab { --workspace-tab-width: 110px; position: relative; box-sizing: border-box; min-width: 0; height: 42px; flex: 0 1 var(--workspace-tab-width); container: workspace-tab / inline-size; display: flex; align-items: center; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.055); border-bottom: 0; border-radius: 6px 6px 0 0; color: #afbdc2; background: rgba(255,255,255,.025); font-size: 12px; cursor: grab; transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
.workspace-tab:hover { color: #fff; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.085); }
.workspace-tab:not(.is-active) { border-inline-width: 0; box-shadow: inset 1px 0 rgba(255,255,255,.055), inset -1px 0 rgba(255,255,255,.055); }
.workspace-tab:not(.is-active):hover { box-shadow: inset 1px 0 rgba(255,255,255,.12), inset -1px 0 rgba(255,255,255,.12); }
.workspace-tab.is-active { color: #203929; border-color: #d6ded8; border-bottom-color: transparent; font-weight: 700; background: #fff; box-shadow: 0 -4px 12px rgba(0,0,0,.18); }
.workspace-tab.is-active::before { content: ""; position: absolute; z-index: 1; top: 9px; bottom: 9px; left: 0; width: 3px; border-radius: 0 2px 2px 0; background: var(--brand-leaf); pointer-events: none; }
.workspace-tab.is-active::after { content: ""; position: absolute; z-index: 1; top: 0; right: 0; width: 12px; height: 12px; background: var(--brand-lime); clip-path: polygon(45% 0, 100% 0, 100% 55%); pointer-events: none; }
.workspace-tab.is-home { --workspace-tab-width: 96px; }
.workspace-tab.is-home.has-dashboard-alert { overflow: visible; }
.workspace-tab.is-home.has-dashboard-alert .workspace-tab-select { padding-left: 31px; }
.workspace-home-alert {
  position: absolute;
  z-index: 4;
  top: 3px;
  left: 3px;
  min-width: 20px;
  height: 20px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 0 3px;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #b82822;
  box-shadow: 0 1px 6px rgba(128, 20, 17, .48);
  animation: dashboard-pending-quotes-alert-flash 1.15s steps(1, end) infinite;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}
.workspace-home-alert::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -3px;
  border: 1px solid rgba(236, 48, 40, .82);
  border-radius: inherit;
  animation: dashboard-pending-quotes-alert-ring 1.15s ease-out infinite;
}
.workspace-home-alert strong { color: inherit; font-size: inherit; line-height: 1; }
.workspace-tab.is-home .workspace-tab-title::before { content: ""; width: 14px; height: 14px; display: inline-block; margin-right: 6px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E") center / contain no-repeat; vertical-align: -2px; }
.workspace-tab.is-entering { animation: workspace-tab-enter .22s ease both; }
@keyframes workspace-tab-enter {
  from { opacity: 0; transform: translate3d(-10px, 0, 0) scale(.98); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
.workspace-tab-select { min-width: 0; flex: 1; align-self: stretch; display: flex; align-items: center; overflow: hidden; border: 0; border-radius: 5px 5px 0 0; padding: 0 7px 1px 13px; color: inherit; background: transparent; text-align: left; font-size: 12px; }
.workspace-tab-select:hover { background: transparent; }
.workspace-tab-select:focus-visible { outline: 2px solid var(--brand-lime); outline-offset: -3px; }
.workspace-tab.has-subtitle { --workspace-tab-width: 116px; }
.workspace-tab.is-active { flex: 0 0 auto; min-width: var(--workspace-tab-width); width: max-content; container-type: normal; }
.workspace-tab-label { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; line-height: 1.05; }
.workspace-tab-title,
.workspace-tab-subtitle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-tab-subtitle { color: #8d9ca2; font-size: 10px; font-weight: 500; }
.workspace-tab.is-active .workspace-tab-subtitle { color: #4b7050; }
.workspace-tab-close { position: relative; z-index: 1; flex: 0 0 24px; align-self: center; width: 24px; height: 24px; margin-right: 4px; border: 0; border-radius: 50%; color: #829098; background: transparent; opacity: .58; font-size: 15px; line-height: 1; transition: color .16s ease, background-color .16s ease, opacity .16s ease; }
.workspace-tab:hover .workspace-tab-close,
.workspace-tab.is-active .workspace-tab-close,
.workspace-tab-close:focus-visible { opacity: 1; }
.workspace-tab-close:hover { color: #8f2f2c; background: #f5e9e8; }
.workspace-tab-close:focus-visible { outline: 2px solid var(--brand-leaf); outline-offset: -1px; }
.nav-context-menu,
.master-context-menu { position: fixed; z-index: 10; min-width: 96px; padding: 4px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); box-shadow: 0 10px 28px rgba(23,33,43,.18); }
.master-column-context-menu { min-width: 138px; }
.nav-context-menu button,
.master-context-menu button { width: 100%; border: 0; border-radius: 3px; padding: 8px 12px; color: var(--ink); background: transparent; text-align: left; font-size: 13px; }
.nav-context-menu button:hover,
.nav-context-menu button:focus-visible,
.master-context-menu button:not(:disabled):hover,
.master-context-menu button:not(:disabled):focus-visible { color: var(--accent-dark); background: var(--accent-soft); outline: 0; }
.master-context-menu button:disabled { color: #a3adb3; background: transparent; opacity: 1; }

#salesOrderPackingContextMenu,
#salesOutboundPackingContextMenu,
#salesOrderPackingContainerTabsContextMenu,
#salesOutboundPackingContainerTabsContextMenu { min-width: 142px; }

.master-context-submenu-host { position: relative; }

.master-context-submenu-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.master-context-submenu-trigger > span:last-child {
  color: #69777f;
  font-size: 18px;
  line-height: 1;
}

.master-context-submenu {
  position: absolute;
  z-index: 12;
  top: -4px;
  left: calc(100% - 1px);
  display: block;
  min-width: 128px;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-3px);
  transition: opacity 100ms ease, transform 100ms ease, visibility 100ms;
  pointer-events: none;
}

.master-context-submenu-host.is-submenu-left > .master-context-submenu {
  right: calc(100% - 1px);
  left: auto;
  transform: translateX(3px);
}

.master-context-submenu-host:has(.master-context-submenu-trigger:not(:disabled)):hover > .master-context-submenu,
.master-context-submenu-host:has(.master-context-submenu-trigger:not(:disabled)):focus-within > .master-context-submenu,
.master-context-submenu-host.is-submenu-open > .master-context-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

/* This menu opens only through its pointer/keyboard state, never stale focus. */
#packagingOutboundAddMenuHost > .master-context-submenu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#packagingOutboundAddMenuHost.is-submenu-open > .master-context-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

#packagingOutboundAddSubmenu {
  transition: opacity 100ms ease, transform 100ms ease;
}

@media (prefers-reduced-motion: reduce) {
  #packagingOutboundAddSubmenu { transition: none; }
}

.document-cell-mark-menu-host { min-width: 0; }

.document-cell-mark-menu-trigger .document-cell-mark-trigger-label,
.document-cell-mark-submenu button {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.document-cell-mark-trigger-icon {
  display: grid;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 2px;
}

.document-cell-mark-trigger-icon i {
  display: block;
  border: 1px solid rgba(62, 77, 83, .18);
  border-radius: 2px;
}

.document-cell-mark-trigger-icon i:nth-child(1) { background: #ffe89a; }
.document-cell-mark-trigger-icon i:nth-child(2) { background: #cfead7; }
.document-cell-mark-trigger-icon i:nth-child(3) { background: #d5e8fb; }
.document-cell-mark-trigger-icon i:nth-child(4) { background: #efd9f5; }

.document-cell-mark-submenu {
  min-width: 142px;
  overflow: visible;
}

.document-cell-mark-submenu button { white-space: nowrap; }

.document-cell-mark-swatch {
  position: relative;
  display: inline-block;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(50, 66, 73, .2);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .46);
}

.document-cell-mark-swatch.is-yellow { background: #fff0ad; }
.document-cell-mark-swatch.is-green { background: #d8eedf; }
.document-cell-mark-swatch.is-blue { background: #d8eafa; }
.document-cell-mark-swatch.is-red { background: #f8dddd; }
.document-cell-mark-swatch.is-orange { background: #ffe2c1; }
.document-cell-mark-swatch.is-purple { background: #eadcf3; }
.document-cell-mark-swatch.is-gray { background: #e3e8ea; }
.document-cell-mark-swatch.is-clear { background: #fff; }

.document-cell-mark-swatch.is-clear::after {
  position: absolute;
  top: 7px;
  left: 1px;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: #bd5955;
  content: "";
  transform: rotate(-42deg);
}

.document-grid-table td[data-document-cell-mark-color="yellow"] { --document-cell-mark-background: var(--grid-highlight-yellow); }
.document-grid-table td[data-document-cell-mark-color="green"] { --document-cell-mark-background: var(--grid-highlight-green); }
.document-grid-table td[data-document-cell-mark-color="blue"] { --document-cell-mark-background: var(--grid-highlight-blue); }
.document-grid-table td[data-document-cell-mark-color="red"] { --document-cell-mark-background: #fae4e4; }
.document-grid-table td[data-document-cell-mark-color="orange"] { --document-cell-mark-background: #ffead1; }
.document-grid-table td[data-document-cell-mark-color="purple"] { --document-cell-mark-background: #eee3f5; }
.document-grid-table td[data-document-cell-mark-color="gray"] { --document-cell-mark-background: #e8edef; }

.document-grid-table td[data-document-cell-mark-color] {
  background: var(--document-cell-mark-background) !important;
}

.document-grid-table td[data-document-cell-mark-color] :is(
  input:not(:focus),
  textarea:not(:focus),
  select:not(:focus),
  button:not(:focus)
) {
  background: transparent;
}
.master-menu-separator { height: 1px; margin: 4px 6px; background: #dfe5e8; }

@media (max-width: 760px) {
  .app.sidebar-collapsed .sidebar { width: 0 !important; flex-basis: 0 !important; transform: translateY(-100%); }
  .workspace-meta { gap: 4px; padding-inline: 5px 4px; }
  .workspace-kicker,
  .workspace-context-separator { display: none; }
  .workspace-context { gap: 4px; }
  .workspace-tabs { padding-inline: 4px; }
  .workspace-tab { --workspace-tab-width: 84px; }
  .workspace-tab-select { padding-inline: 9px; }
  .workspace-tab-close { width: 22px; flex-basis: 22px; margin-right: 2px; }
}

@media (max-width: 520px) {
  .topbar-brand { flex: 0 0 56px; justify-content: center; padding-inline: 7px; }
  .topbar-brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .topbar-brand-copy,
  .topbar-brand-toggle { display: none; }
  .menu-toggle { margin-inline: 5px; }
  .workspace-tab-count { display: none; }
  .workspace-tab-step { width: 18px; }
  .workspace-tab { --workspace-tab-width: 82px; }
  .topbar-actions { padding-inline: 4px; }
  .user-menu-button { min-width: 42px; width: 42px; max-width: 42px; justify-content: center; gap: 0; padding: 4px; }
  .user-menu-copy,
  .user-menu-chevron { display: none; }
  .user-account-menu { right: 4px; }
}

@container workspace-tab (max-width: 78px) {
  .workspace-tab:not(.is-active) .workspace-tab-close { display: none; }
  .workspace-tab:not(.is-active) .workspace-tab-select,
  .workspace-tab:not(.is-active).is-home.has-dashboard-alert .workspace-tab-select { padding-inline: 6px; }
  .workspace-tab:not(.is-active) .workspace-home-alert { display: none; }
}

@container workspace-tab (max-width: 34px) {
  .workspace-tab:not(.is-active) .workspace-tab-label { display: none; }
  .workspace-tab:not(.is-active) .workspace-tab-select,
  .workspace-tab:not(.is-active).is-home.has-dashboard-alert .workspace-tab-select { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-group::details-content { transition: none; }
  .nav-group > .nav-label,
  .nav-group-chevron,
  .nav-item,
  .nav-item::before,
  .nav-item > span,
  .sidebar-collapse-button { transition: none; }
  .nav-group[open] > .nav-item { animation: none; }
  .sidebar,
  .topbar-brand,
  .topbar-brand-toggle,
  .user-menu-button,
  .user-menu-chevron,
  .workspace-tab-close,
  .sidebar-collapse-arrows { transition: none; }
  .workspace-tab.is-entering,
  .view.is-view-entering { animation: none; }
}

/* Sidebar data pages use the full workspace below the fixed top bar. */
.content:has(.data-view.is-active) {
  width: 100%;
  max-width: none;
  height: calc(100vh - var(--topbar-height));
  min-height: calc(100vh - var(--topbar-height));
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
}

.data-view.is-active {
  display: flex;
  min-width: 0;
  min-height: 100%;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
}

#moduleView.is-quality-embedded > .page-heading,
#moduleView.is-quality-embedded > .panel {
  display: none;
}

.quality-module-panel {
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  background: #f4f7f5;
}

.quality-module-panel[hidden] {
  display: none;
}

#qualityModuleFrame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f4f7f5;
}

.data-view > .page-heading {
  flex: 0 0 50px;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  height: 50px;
  margin: 0;
  padding: 6px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.data-view > .page-heading > div:first-child:not(.data-page-actions) {
  display: none;
}

.data-view > .page-heading:not(:has(> .data-page-actions)) {
  display: none;
}

.data-page-actions {
  display: flex;
  min-width: 0;
  width: 100%;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.data-page-actions > .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.data-action-separator {
  width: 1px;
  height: 24px;
  flex: 0 0 1px;
  margin-inline: 2px;
  background: #d7dfe3;
}

#masterView .data-page-actions > .button:disabled,
#moduleView .data-page-actions > .button:disabled {
  color: var(--button-disabled-color);
  border-color: var(--button-disabled-border);
  background: var(--button-disabled-background);
  opacity: 1;
}

.module-document-action {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: stretch;
}

.module-document-action .module-document-main {
  min-width: 54px;
  border-radius: 4px 0 0 4px;
  padding-inline: 14px;
}

.module-document-menu-host {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

.module-document-action .module-document-toggle {
  display: inline-flex;
  width: 30px;
  min-width: 30px;
  border-radius: 0 4px 4px 0;
  margin-left: -1px;
  padding: 0;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.purchase-order-adjacent-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: stretch;
}

.purchase-order-adjacent-action[hidden] { display: none; }

.purchase-order-adjacent-action > .button {
  box-sizing: border-box;
  width: 50px;
  min-width: 50px;
  border-radius: 0;
  padding-inline: 9px;
  color: #45565e;
  border-color: #cfd8da;
  background: #fff;
}

.purchase-order-adjacent-action > .button:first-child { border-radius: 4px 0 0 4px; }

.purchase-order-adjacent-action > .button:last-child {
  margin-left: -1px;
  border-radius: 0 4px 4px 0;
}

.purchase-order-adjacent-action > .button:not(:disabled):hover {
  position: relative;
  z-index: 1;
  color: var(--accent-dark);
  border-color: var(--button-hover-border);
  background: var(--button-hover-background);
}

.purchase-order-adjacent-action > .button:disabled {
  color: var(--button-disabled-color);
  border-color: var(--button-disabled-border);
  background: var(--button-disabled-background);
  opacity: 1;
}

.module-document-action .module-document-toggle span {
  display: block;
  transform: translateY(-1px);
  transition: transform .15s ease;
}

.module-document-menu-host.is-open .module-document-toggle span {
  transform: translateY(-1px) rotate(180deg);
}

.module-document-menu {
  position: fixed;
  z-index: 30;
  top: var(--document-action-menu-top, 0);
  left: var(--document-action-menu-left, 0);
  display: grid;
  width: var(--document-action-menu-width, 84px);
  min-width: 0;
  padding: 4px;
  border: 1px solid #d7dfe3;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(35, 49, 58, .16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .13s ease, transform .13s ease, visibility .13s ease;
}

.module-document-menu-host.is-open .module-document-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.module-document-menu button {
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 3px;
  padding: 7px 12px;
  color: #35434b;
  background: transparent;
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.module-document-menu button:not(:disabled):hover,
.module-document-menu button:not(:disabled):focus-visible {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.module-document-menu button:disabled {
  color: #a8b0b5;
  background: transparent;
  opacity: 1;
}

.module-document-create :is(.module-document-main, .module-document-toggle) {
  color: #35434b;
  border-color: #cfd8da;
  background: #fff;
}

.module-document-create :is(.module-document-main, .module-document-toggle):not(:disabled):hover {
  border-color: var(--button-hover-border);
  background: var(--button-hover-background);
}

#moduleView .data-page-actions > .module-document-delete,
.sales-quote-detail-actions > .module-document-delete,
.sales-quote-detail-toolbar > .module-document-delete {
  box-sizing: border-box;
  min-width: 84px;
  flex: 0 0 84px;
  padding-inline: 10px;
  white-space: nowrap;
  color: #884944;
  border-color: #dfc0bc;
  background: #f3e1df;
}

#moduleView .data-page-actions > .module-document-delete:not(:disabled):hover,
.sales-quote-detail-actions > .module-document-delete:not(:disabled):hover,
.sales-quote-detail-toolbar > .module-document-delete:not(:disabled):hover {
  color: #743a36;
  border-color: #d3aaa5;
  background: #ecd4d1;
}

.module-document-submit :is(.module-document-main, .module-document-toggle) {
  color: #365f78;
  border-color: #bfd0dc;
  background: #e3edf3;
}

.module-document-submit :is(.module-document-main, .module-document-toggle):not(:disabled):hover {
  color: #294f67;
  border-color: #a9c1d1;
  background: #d7e6ef;
}

.module-document-approve :is(.module-document-main, .module-document-toggle) {
  color: #3f6b52;
  border-color: #bfd2c5;
  background: #e2ece6;
}

.module-document-approve :is(.module-document-main, .module-document-toggle):not(:disabled):hover {
  color: #315b43;
  border-color: #a9c3b2;
  background: #d5e5db;
}

.module-document-action :is(.module-document-main, .module-document-toggle):focus-visible,
#moduleView .data-page-actions > .module-document-delete:focus-visible,
.sales-quote-detail-actions > .module-document-delete:focus-visible,
.sales-quote-detail-toolbar > .module-document-delete:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--button-focus);
  outline-offset: -3px;
}

.module-document-action .module-document-main:disabled,
.module-document-action:has(.module-document-main:disabled) .module-document-toggle,
#moduleView .data-page-actions > .module-document-delete:disabled,
.sales-quote-detail-actions > .module-document-delete:disabled,
.sales-quote-detail-toolbar > .module-document-delete:disabled {
  opacity: .68;
  filter: saturate(.72);
}

.purchase-order-workflow-action:has(.module-document-main:disabled) .module-document-toggle:not(:disabled) {
  opacity: 1;
  filter: none;
}

.sales-quote-detail-toolbar .is-requirements-blocked {
  opacity: .68;
  filter: saturate(.72);
  cursor: not-allowed;
}

.data-view > .panel {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  border: 0;
  background: var(--surface);
  box-shadow: none;
}

.data-view > .panel > .toolbar {
  flex: 0 0 auto;
  padding: 12px 20px;
  background: var(--surface);
}

.data-view > .panel > .table-wrap {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  background: var(--surface);
}

.data-view > .panel > .table-wrap > table > thead {
  position: static;
  background: transparent;
}

.data-view > .panel > .table-wrap > table > thead > tr > th {
  position: sticky;
  z-index: 6;
  top: 0;
  background: #fafbfb;
  background-clip: border-box;
  box-shadow: inset 0 -1px 0 #aebbc1;
}

.data-view > .panel > .table-wrap > table > thead > .master-title-row > th {
  z-index: 7;
  top: 0;
  box-shadow: inset 0 -1px 0 #b8c4ca, 0 -2px 0 #fafbfb;
}

.data-view > .panel > .table-wrap > table > thead > .master-filter-row > th {
  z-index: 6;
  top: calc(var(--sticky-title-row-height, 40px) - 1px);
  background: #f7f9fa;
  box-shadow: inset 0 1px 0 #b8c4ca, inset 0 -1px 0 #aebbc1, 0 2px 0 #f7f9fa;
}

#masterTable > thead > .master-title-row > th,
#masterTable > thead > .master-filter-row > th,
#moduleView.is-master-style #moduleTable > thead > .master-title-row > th,
#moduleView.is-master-style #moduleTable > thead > .master-filter-row > th {
  position: sticky;
}

#masterTable > thead > .master-filter-row > th,
#moduleView.is-master-style #moduleTable > thead > .master-filter-row > th {
  box-shadow: inset 0 1px 0 #b8c4ca;
}

.data-view table {
  border: 1px solid var(--line);
}

.data-view th,
.data-view td {
  border: 1px solid var(--line);
  text-align: center;
}

.data-view tr:last-child td {
  border-bottom: 1px solid var(--line);
}

/* Shared one-sided border contract for primary data and document grids. */
:is(
  .document-grid-table,
  #masterTable,
  #moduleView.is-master-style #moduleTable,
  .document-detail-summary-table,
  .sales-order-packing-summary-table
) {
  --document-grid-line-width: 1px;
  --document-grid-line-color: #b8c4ca;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

:is(
  .document-grid-table,
  #masterTable,
  #moduleView.is-master-style #moduleTable
) > :is(thead, tbody) > tr > :is(th, td) {
  border: 0 !important;
  border-right: var(--document-grid-line-width) solid var(--document-grid-line-color) !important;
  border-bottom: var(--document-grid-line-width) solid var(--document-grid-line-color) !important;
}

:is(
  .document-grid-table,
  #masterTable,
  #moduleView.is-master-style #moduleTable
) > :is(thead, tbody) > tr > :first-child {
  border-left: var(--document-grid-line-width) solid var(--document-grid-line-color) !important;
}

:is(
  .document-grid-table,
  #masterTable,
  #moduleView.is-master-style #moduleTable
) > thead > tr:first-child > th {
  border-top: var(--document-grid-line-width) solid var(--document-grid-line-color) !important;
}

:is(
  .document-grid-table,
  #masterTable,
  #moduleView.is-master-style #moduleTable
) > thead > tr > th {
  border-bottom: 0 !important;
  box-shadow: inset 0 -1px 0 var(--document-grid-line-color) !important;
}

:is(
  .document-grid-table,
  #masterTable,
  #moduleView.is-master-style #moduleTable
) > tbody > tr:first-child > td {
  border-top: 0 !important;
}

#masterTable > tbody > tr.master-virtual-spacer > td {
  border: 0 !important;
}

.document-virtual-scroll-wrap {
  overflow-anchor: none;
}

table.is-document-virtual > tbody > tr.document-virtual-spacer > td,
table.is-document-virtual > tbody > tr.document-virtual-unloaded > td,
#salesQuoteDetailView #salesQuoteDetailTable.is-document-virtual > tbody > tr:is(.document-virtual-unloaded, .document-virtual-spacer) > td {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 0;
  line-height: 0;
  pointer-events: none;
}

table.is-document-virtual .document-virtual-spacer-fill {
  display: block;
  width: 1px;
  min-width: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

#moduleView.is-master-style #moduleTable > tbody > tr.archive-module-virtual-spacer > td {
  height: auto;
  max-height: none;
  padding: 0;
  border: 0 !important;
  background: transparent;
  font-size: 0;
  line-height: 0;
  pointer-events: none;
}

#moduleView.is-master-style #moduleTable .archive-module-virtual-spacer-fill {
  display: block;
  width: 1px;
  min-width: 1px;
  max-width: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

#moduleView.is-master-style #moduleTable .archive-module-virtual-spacer.is-top .archive-module-virtual-spacer-fill {
  height: var(--archive-module-virtual-top-spacer-height, 0);
}

#moduleView.is-master-style #moduleTable .archive-module-virtual-spacer.is-bottom .archive-module-virtual-spacer-fill {
  height: var(--archive-module-virtual-bottom-spacer-height, 0);
}

:is(.document-detail-summary-table, .sales-order-packing-summary-table) > tbody > tr > td {
  border: 0 !important;
  border-top: var(--document-grid-line-width) solid var(--document-grid-line-color) !important;
  border-right: var(--document-grid-line-width) solid var(--document-grid-line-color) !important;
  border-bottom: var(--document-grid-line-width) solid var(--document-grid-line-color) !important;
}

:is(.document-detail-summary-table, .sales-order-packing-summary-table) > tbody > tr > :first-child {
  border-left: var(--document-grid-line-width) solid var(--document-grid-line-color) !important;
}

:is(
  .sales-quote-detail-summary-wrap,
  .module-summary-wrap,
  .purchase-quote-detail-summary-wrap,
  .sales-order-packing-summary,
  .packaging-outbound-summary-wrap
) {
  border-top: 0 !important;
}

.data-view td.number,
.data-view th.number {
  text-align: center;
}

.data-view > .panel > .table-foot {
  flex: 0 0 auto;
  padding: 11px 20px;
  background: var(--surface);
}

.toolbar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

th.row-number,
td.row-number {
  width: 64px;
  min-width: 64px;
  padding-right: 12px;
  padding-left: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

#masterTable {
  width: auto;
  min-width: 0;
  max-width: none;
  table-layout: fixed;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
}

#moduleView.is-master-style > .panel > .toolbar {
  display: none;
}

#moduleView.is-master-style #moduleTable {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
}

#moduleView.is-master-style #moduleTable th,
#moduleView.is-master-style #moduleTable td {
  box-sizing: border-box;
  min-width: 0;
  border: 0;
  border-right: 1px solid #b8c4ca;
  border-bottom: 1px solid #b8c4ca;
  padding: .5em 8px;
  overflow: hidden;
  color: #34424c;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#moduleView.is-master-style #moduleTable tr > :first-child {
  border-left: 1px solid #b8c4ca;
}

#moduleView.is-master-style #moduleTable > thead > .master-title-row > th {
  border-top: 1px solid #b8c4ca;
}

#moduleView.is-master-style #moduleTable th {
  color: #52616a;
  background: #f7f9fa;
  font-weight: 600;
}

#moduleView.is-master-style #moduleTable th.row-number,
#moduleView.is-master-style #moduleTable td.row-number {
  width: auto;
  min-width: 0;
  padding-right: 6px;
  padding-left: 6px;
  font-variant-numeric: tabular-nums;
}

#moduleView.is-master-style #moduleTable tbody td.row-number {
  cursor: var(--master-row-select-cursor);
}

#moduleView.is-master-style #moduleTable th:last-child,
#moduleView.is-master-style #moduleTable td:last-child,
#moduleView.is-master-style #moduleTable tbody tr:last-child td {
  border-color: #b8c4ca;
}

#moduleView.is-master-style #moduleTable tbody tr:not(.module-empty-row):hover td {
  background: #edf7f6;
}

#moduleView.is-master-style #moduleTable .master-status-column,
#moduleView.is-master-style #moduleTable .master-status-cell {
  width: auto;
  min-width: 0;
}

#moduleView.is-master-style #moduleTable .master-status-cell {
  color: #465158;
  background: #f3f5f6;
  font-weight: 600;
}

#moduleView.is-master-style #moduleTable tbody tr:not(.module-empty-row):hover .master-status-cell {
  background: #e5f1f0;
}

#moduleView.is-master-style #moduleTable .module-empty-row td {
  height: 42px;
  color: var(--muted);
  background: #fff;
}

#moduleView.is-master-style #moduleTable .master-resizable-column {
  position: sticky;
  padding-right: 4px;
  padding-left: 6px;
  overflow: visible;
}

#moduleView.is-master-style #moduleTable .archive-module-detail-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#moduleView.is-master-style #moduleTable tr.archive-module-detail-row > td {
  height: 30px;
}

#moduleView.is-master-style #moduleTable .archive-module-detail-cell.document-image-cell {
  position: relative;
  box-sizing: border-box;
  height: 30px;
  padding: 0 6px;
  font-size: 0;
  line-height: 0;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

#moduleView.is-master-style #moduleTable .archive-module-detail-cell.document-image-cell .master-image-cell-content {
  width: 50px;
  height: 28px;
}

#moduleView.is-master-style #moduleTable .archive-module-detail-cell.document-image-cell .master-image-cell-content.is-empty {
  width: 46px;
  height: 26px;
}

#moduleView.is-master-style #moduleTable .archive-module-detail-cell.document-image-cell .master-image-cell-layer {
  width: 30px;
  height: 26px;
}

#moduleView.is-master-style #moduleTable .archive-module-detail-cell.document-image-cell .master-image-cell-layer img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100% - 4px);
  max-height: calc(100% - 4px);
  margin: auto;
  object-fit: contain;
  object-position: center;
}

#moduleView.is-master-style #moduleTable .archive-module-detail-cell.document-image-cell:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

#moduleView.is-master-style #moduleTable .master-select-column,
#moduleView.is-master-style #moduleTable .master-select-cell {
  width: auto;
  min-width: 0;
  padding: 0 8px;
}

#moduleView.is-master-style #moduleTable .master-row-select,
#moduleView.is-master-style #moduleTable .master-select-all {
  display: block;
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0 auto;
  padding: 0;
  border-radius: 2px;
  accent-color: var(--accent);
  box-shadow: none;
  cursor: pointer;
}

#moduleView.is-master-style #moduleTable .master-row-select:focus-visible,
#moduleView.is-master-style #moduleTable .master-select-all:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#moduleView.is-master-style #moduleTable .master-select-all:disabled {
  cursor: not-allowed;
  opacity: .35;
}

#moduleView.is-master-style #moduleTable .module-data-row.is-selected td {
  background: #edf7f6;
}

#moduleView.is-master-style #moduleTable .module-data-row.is-selected .master-status-cell {
  background: #e5f1f0;
}

/* Stock status colors stay fixed while hovering, focusing or selecting rows. */
#moduleView.is-master-style.is-product-inventory #moduleTable .module-data-row {
  --theme-document-cell-background: var(--theme-document-surface, #fff);
  --inventory-row-background: var(--theme-document-surface, #fff);
}

#moduleView.is-master-style.is-product-inventory #moduleTable .is-purchase-inventory-taken {
  --inventory-row-background: var(--grid-highlight-yellow);
}

#moduleView.is-master-style.is-product-inventory #moduleTable .is-inventory-negative {
  --inventory-row-background: var(--inventory-negative-background);
}

#moduleView.is-master-style.is-product-inventory #moduleTable .module-data-row > td:not(.row-number) {
  background: var(--inventory-row-background) !important;
}

#moduleView.is-master-style.is-product-inventory #moduleTable .master-select-cell {
  --inventory-row-background: var(--theme-document-surface, #fff);
}

#moduleView.is-master-style #moduleTable .module-data-row.is-country-summary > td {
  background: var(--grid-highlight-blue) !important;
}

#moduleView.is-master-style #moduleTable .module-data-row.is-country-summary:is(.is-selected, .is-current-row, :hover) > td {
  background: #d8eafa !important;
}

#moduleView.is-master-style #moduleTable td.inventory-movement-quantity-increase,
#moduleSummaryTable td.inventory-movement-quantity-increase {
  color: #176b3a;
  background: #dff3e8 !important;
  font-weight: 700;
}

#moduleView.is-master-style #moduleTable td.inventory-movement-quantity-decrease,
#moduleSummaryTable td.inventory-movement-quantity-decrease {
  color: #a83232;
  background: #f9dede !important;
  font-weight: 700;
}

#moduleSummaryTable td[data-summary-column] {
  padding-right: 4px;
  padding-left: 4px;
}

#moduleView.is-master-style #moduleTable .master-filter-cell,
#moduleView.is-master-style #moduleTable .master-filter-spacer {
  padding: 3px 4px;
  background: #f7f9fa;
}

#moduleView.is-master-style #moduleTable .master-column-filter-wrap {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

#moduleView.is-master-style #moduleTable .master-column-filter {
  width: 100%;
  min-width: 0;
  min-height: 0;
  border: 1px solid #c3cdd3;
  border-radius: 2px;
  padding: .35em 30px .35em .5em;
  color: #34424c;
  background: #fff;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

#moduleView.is-master-style #moduleTable .master-column-filter::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
}

#moduleView.is-master-style #moduleTable .master-column-filter-clear {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  display: grid;
  width: 26px;
  min-width: 26px;
  min-height: 0;
  place-items: center;
  border: 0;
  border-radius: 2px;
  padding: 0;
  color: #6f7d86;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: color .12s ease, background .12s ease, transform .08s ease;
}

#moduleView.is-master-style #moduleTable .master-column-filter-clear:hover {
  color: var(--accent-dark);
  background: rgba(15, 109, 104, .14);
}

#moduleView.is-master-style #moduleTable .master-column-filter-clear:active {
  background: rgba(15, 109, 104, .22);
  transform: scale(.92);
}

#moduleView.is-master-style #moduleTable .master-column-filter-clear:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

#masterTable th,
#masterTable td {
  box-sizing: border-box;
  min-width: 0;
  border: 0;
  border-right: 1px solid #b8c4ca;
  border-bottom: 1px solid #b8c4ca;
  padding-top: .5em;
  padding-bottom: .5em;
  overflow: hidden;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#masterTable tr > :first-child {
  border-left: 1px solid #b8c4ca;
}

#masterTable > thead > .master-title-row > th {
  border-top: 1px solid #b8c4ca;
}

#masterTable th.row-number,
#masterTable td.row-number {
  width: auto;
  min-width: 0;
  padding-right: 6px;
  padding-left: 6px;
}

#masterTable tbody td.row-number {
  cursor: var(--master-row-select-cursor);
}

body.is-master-row-selecting,
body.is-master-row-selecting * {
  cursor: var(--master-row-select-cursor) !important;
}

#masterTable th:last-child,
#masterTable td:last-child {
  border-right: 1px solid #b8c4ca;
}

#masterTable tbody tr:last-child td {
  border-bottom: 1px solid #b8c4ca;
}

#masterTable tbody tr.master-row,
#masterTable tbody tr.master-row > td {
  height: var(--master-virtual-row-height, 30px);
  max-height: var(--master-virtual-row-height, 30px);
}

#masterTable tbody tr.master-row > td {
  vertical-align: middle;
}

#masterTable tbody tr.master-virtual-spacer > td {
  height: auto;
  max-height: none;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 0;
  line-height: 0;
  pointer-events: none;
}

#masterTable .master-virtual-spacer-fill {
  display: block;
  width: 1px;
  min-width: 1px;
  max-width: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

#masterTable .master-virtual-spacer.is-top .master-virtual-spacer-fill {
  height: var(--master-virtual-top-spacer-height, 0);
}

#masterTable .master-virtual-spacer.is-bottom .master-virtual-spacer-fill {
  height: var(--master-virtual-bottom-spacer-height, 0);
}

#masterTableWrap {
  overflow-anchor: none;
}

#masterView .master-select-column,
#masterView .master-select-cell {
  width: auto;
  min-width: 0;
  padding: 0 8px;
}

#masterView .master-row-select {
  display: block;
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0 auto;
  padding: 0;
  border-radius: 2px;
  accent-color: var(--accent);
  box-shadow: none;
  cursor: pointer;
}

#masterView .master-row-select:disabled {
  cursor: not-allowed;
  opacity: .3;
}

#masterView .master-row-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#masterView .master-select-all {
  display: block;
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0 auto;
  padding: 0;
  border-radius: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

#masterView .master-select-all:disabled {
  cursor: not-allowed;
  opacity: .35;
}

#masterView .master-select-all:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#masterView .master-edit-cell {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  cursor: default;
}

.master-permission-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 8px;
  border: 1px solid #b8c4ca;
  border-radius: 3px;
  padding: 4px 8px;
  color: #5a6670;
  background: #f2f4f5;
  font-size: 12px;
  line-height: 1.2;
}

#masterView.is-master-readonly .master-edit-cell:not(.master-image-cell),
#masterView.is-master-readonly .master-edit-cell:not(.master-image-cell) .master-cell-input {
  color: #5a6670;
  cursor: not-allowed;
}

#masterView.is-master-readonly .master-edit-cell:not(.master-image-cell) {
  background: #f5f7f8;
}

#masterView.is-master-readonly .master-cell-input {
  background: transparent;
}

#masterView.is-master-readonly .master-boolean-checkbox {
  cursor: not-allowed;
  opacity: .45;
}

#masterView.is-master-readonly .master-status-cell {
  color: #5a6670;
  background: #eef1f2;
  cursor: not-allowed;
}

#masterView .master-cell-input:not(.master-dimension-input):not(.master-box-spec-input) {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  padding: .5em 12px;
  color: #34424c;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  pointer-events: none;
  cursor: default;
  text-align: center;
  text-overflow: ellipsis;
  line-height: 1.2;
  white-space: nowrap;
}

#masterView .master-edit-cell.is-editing:not(:has([data-keyboard-armed="true"])) {
  position: relative;
  z-index: 2;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--accent);
}

#masterView .master-edit-cell.is-editing:not(.master-box-spec-cell):not(:has([data-keyboard-armed="true"])) .master-cell-input {
  border: 0;
  background: #fff;
  box-shadow: none;
  pointer-events: auto;
  cursor: text;
  text-overflow: clip;
}

#masterView .master-edit-cell.is-editing [data-keyboard-armed="true"] { caret-color: transparent; }
#masterView [data-keyboard-armed="true"]::selection { color: inherit; background: transparent; }

#masterView .master-unit-cell,
#masterView .master-unit-cell .master-cell-input,
#masterView .master-control-cell,
#masterView .master-control-cell .master-cell-input,
#masterView .master-province-cell,
#masterView .master-province-cell .master-cell-input,
#masterView .master-country-cell,
#masterView .master-country-cell .master-cell-input,
#masterView .master-customer-language-cell,
#masterView .master-customer-language-cell .master-cell-input,
#masterView .master-department-cell,
#masterView .master-department-cell .master-cell-input,
#masterView .master-brand-positioning-cell,
#masterView .master-brand-positioning-cell .master-cell-input {
  cursor: pointer;
}

#masterView .master-choice-cell {
  position: relative;
  cursor: pointer;
}

#masterView .master-choice-cell-label {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: .5em 12px;
  overflow: hidden;
  color: #34424c;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#masterView .master-choice-storage-input {
  position: absolute;
  width: 1px;
  min-width: 1px;
  height: 1px;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  opacity: 0;
  clip-path: inset(50%);
  pointer-events: none;
}

#masterView .master-readonly-cell {
  padding-right: 10px;
  padding-left: 10px;
  color: #5d6971;
  background: #f7f9fa;
  text-align: center;
  cursor: default;
}

#masterView .master-row.is-disabled .master-choice-cell,
#masterView .master-row.is-disabled .master-choice-cell-label {
  color: var(--danger);
  cursor: not-allowed;
}

.master-user-password-modal {
  width: min(520px, calc(100% - 28px));
  overflow: hidden;
  border: 1px solid #c6d0d5;
  border-radius: 6px;
  background: #fff;
}

.master-user-password-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-top: 18px;
}

.master-user-password-account {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #d4dde1;
  border-radius: 4px;
  padding: 11px 12px;
  color: var(--muted);
  background: #f7f9fa;
  font-size: 12px;
}

.master-user-password-account strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.master-user-password-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.master-user-password-input-row .button {
  min-width: 86px;
  white-space: nowrap;
}

#masterView .master-unit-input { text-transform: uppercase; }

#masterView .master-language-input {
  ime-mode: disabled;
  direction: ltr;
  text-align: left;
}

#masterView .master-row.is-disabled .master-unit-cell,
#masterView .master-row.is-disabled .master-unit-cell .master-cell-input,
#masterView .master-row.is-disabled .master-province-cell,
#masterView .master-row.is-disabled .master-province-cell .master-cell-input,
#masterView .master-row.is-disabled .master-country-cell,
#masterView .master-row.is-disabled .master-country-cell .master-cell-input,
#masterView .master-row.is-disabled .master-customer-language-cell,
#masterView .master-row.is-disabled .master-customer-language-cell .master-cell-input,
#masterView .master-row.is-disabled .master-department-cell,
#masterView .master-row.is-disabled .master-department-cell .master-cell-input,
#masterView .master-row.is-disabled .master-brand-positioning-cell,
#masterView .master-row.is-disabled .master-brand-positioning-cell .master-cell-input {
  cursor: not-allowed;
}

.document-box-spec-surface .master-box-spec-cell {
  padding: 0 6px;
}

.document-box-spec-surface .master-box-spec-editor {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.document-box-spec-surface .master-box-spec-editor .master-dimension-input {
  display: block;
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  height: 26px;
  min-height: 0;
  box-sizing: border-box;
  padding: 2px 4px;
  border: 1px solid #c6d0d5;
  border-radius: 2px;
  background: #fff;
  color: #34424c;
  text-align: center;
  pointer-events: auto;
}

.document-box-spec-surface .master-box-spec-editor .master-dimension-separator,
.document-box-spec-surface .master-box-spec-editor .master-dimension-unit,
.document-box-spec-surface .master-box-spec-editor .master-box-spec-unit {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.document-box-spec-surface .master-box-spec-editor .master-dimension-unit {
  min-width: 10px;
  color: #465158;
}

.document-box-spec-surface .master-box-spec-editor .master-box-spec-input {
  display: block;
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  height: 26px;
  min-height: 0;
  box-sizing: border-box;
  padding: 2px 4px;
  border: 1px solid #c6d0d5;
  border-radius: 2px;
  background: #fff;
  color: #34424c;
  text-align: center;
  pointer-events: auto;
}

.document-box-spec-surface .master-box-spec-editor .master-box-quantity-input,
.document-box-spec-surface .master-box-spec-editor .master-box-weight-input { flex-basis: 42px; }

#salesQuoteDetailTable.document-box-spec-surface .sales-quote-box-spec-editor {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 3px;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

#salesQuoteDetailTable.document-box-spec-surface .sales-quote-box-spec-editor .sales-quote-box-spec-input {
  display: block;
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  height: 26px;
  min-height: 0;
  box-sizing: border-box;
  padding: 2px 4px;
  border: 1px solid #c6d0d5;
  border-radius: 2px;
  background: #fff;
  text-align: center;
}

#masterView .master-box-spec-cell .master-cell-input.is-box-spec-field-selected {
  border-color: var(--accent);
  background: #e6f3f1;
  box-shadow: 0 0 0 1px rgba(15, 109, 104, .28);
}

#masterView .master-boolean-cell {
  text-align: center;
}

#masterView .master-boolean-checkbox {
  display: block;
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0 auto;
  padding: 0;
  border-radius: 2px;
  accent-color: var(--accent);
  box-shadow: none;
  cursor: pointer;
}

#masterView .master-row.is-disabled .master-boolean-checkbox {
  cursor: not-allowed;
  opacity: .3;
}

#masterView .master-boolean-checkbox:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#masterView .master-boolean-checkbox.is-saving {
  cursor: progress;
  opacity: .55;
}

#masterView .master-boolean-checkbox.is-save-error {
  outline: 2px solid var(--danger);
  outline-offset: 2px;
}

.document-box-spec-surface .master-box-spec-cell.is-editing .master-dimension-input {
  width: 42px;
  height: 26px;
  min-height: 0;
  padding: 2px 4px;
  border: 1px solid #aebdc3;
  border-radius: 2px;
  background: #fff;
  pointer-events: auto;
}

.document-box-spec-surface .master-box-spec-cell.is-editing .master-box-spec-input {
  height: 26px;
  min-height: 0;
  border: 1px solid #aebdc3;
  border-radius: 2px;
  background: #fff;
  pointer-events: auto;
}

#masterView .master-cell-input.is-saving {
  background: #f2f8f7;
}

#masterView .master-cell-input.is-save-error {
  background: #fff3f2;
  box-shadow: inset 0 0 0 2px var(--danger);
}

.app-loading-dialog {
  width: min(420px, calc(100vw - 32px));
}

.app-loading-dialog .system-dialog-body {
  padding-bottom: 24px;
}

.document-progressive-load-status {
  position: fixed;
  z-index: 30;
  right: 12px;
  bottom: 72px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: min(420px, calc(100vw - 24px));
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #245652;
  background: #e7f2ef;
  border: 1px solid #c4ded7;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(23, 33, 43, .12);
  pointer-events: none;
}

.document-progressive-load-status[hidden] { display: none; }
.document-virtual-unloaded-fill { box-sizing: border-box; border-bottom: 1px solid var(--theme-document-border, #d8e0e4); }
.document-progressive-load-status > span { min-width: 0; overflow-wrap: anywhere; }
.document-progressive-load-status progress { width: 80px; max-width: 100%; height: 6px; accent-color: #287969; }
.document-progressive-load-status button { pointer-events: auto; }

.app-loading-progress {
  width: 100%;
  height: 8px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 4px;
  background: #e3ebeb;
}

.app-loading-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width .24s ease;
}

.app-loading-progress-value {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

@media (prefers-reduced-motion: reduce) {
  .app-loading-progress span { transition: none; }
}

#masterTable td.has-duplicate-code {
  position: relative;
}

#masterTable td.has-duplicate-code::before {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 9px solid var(--danger);
  border-right: 9px solid transparent;
  content: "";
  pointer-events: none;
}

#masterTable td.has-duplicate-code .master-cell-input {
  background: #fff3f2;
}

#masterView .master-status-column,
#masterView .master-status-cell {
  width: auto;
  min-width: 0;
}

#masterView .master-status-cell {
  position: relative;
  padding-right: 8px;
  padding-left: 8px;
  color: #465158;
  background: #f3f8f7;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#masterView .master-status-cell.is-status-editable {
  padding-right: 20px;
}

#masterView .master-status-cell.is-status-editable::after {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 6px;
  height: 6px;
  border-right: 1px solid #708087;
  border-bottom: 1px solid #708087;
  content: "";
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

#masterView .master-status-cell.is-status-editable:hover {
  background: #eaf4f2;
}

#masterView .master-status-cell.is-status-locked {
  cursor: not-allowed;
}

#masterView .master-status-cell.is-status-inactive {
  color: #a4413d;
  background: #fff4f3;
}

#masterTable .master-resizable-column {
  position: sticky;
  padding-right: 4px;
  padding-left: 6px;
  overflow: visible;
}

#masterTable .master-title-row .master-draggable-column {
  cursor: grab;
}

#moduleView.is-master-style #moduleTable .master-title-row .master-draggable-column {
  cursor: grab;
}

#masterTable .master-title-row .master-draggable-column button {
  cursor: pointer;
}

#moduleView.is-master-style #moduleTable .master-title-row .master-draggable-column button {
  cursor: pointer;
}

#masterTable .master-title-row .master-draggable-column.is-column-dragging {
  opacity: .45;
}

#moduleView.is-master-style #moduleTable .master-title-row .master-draggable-column.is-column-dragging {
  opacity: .45;
}

#masterTable .master-title-row [data-master-column-slot].is-column-drop-before::before,
#masterTable .master-title-row [data-master-column-slot].is-column-drop-after::after {
  position: absolute;
  z-index: 4;
  top: 1px;
  bottom: 1px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
}

#moduleView.is-master-style #moduleTable .master-title-row [data-archive-column-slot].is-column-drop-before::before,
#moduleView.is-master-style #moduleTable .master-title-row [data-archive-column-slot].is-column-drop-after::after,
#moduleView.is-master-style #moduleTable .master-title-row [data-archive-detail-column-slot].is-column-drop-before::before,
#moduleView.is-master-style #moduleTable .master-title-row [data-archive-detail-column-slot].is-column-drop-after::after {
  position: absolute;
  z-index: 4;
  top: 1px;
  bottom: 1px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
}

#masterTable .master-title-row [data-master-column-slot].is-column-drop-before::before { left: -2px; }
#masterTable .master-title-row [data-master-column-slot].is-column-drop-after::after { right: -2px; }
#moduleView.is-master-style #moduleTable .master-title-row [data-archive-column-slot].is-column-drop-before::before { left: -2px; }
#moduleView.is-master-style #moduleTable .master-title-row [data-archive-column-slot].is-column-drop-after::after { right: -2px; }
#moduleView.is-master-style #moduleTable .master-title-row [data-archive-detail-column-slot].is-column-drop-before::before { left: -2px; }
#moduleView.is-master-style #moduleTable .master-title-row [data-archive-detail-column-slot].is-column-drop-after::after { right: -2px; }

body.is-master-column-dragging,
body.is-master-column-dragging * {
  cursor: grabbing !important;
}

#masterTable .master-filter-cell,
#masterTable .master-filter-spacer {
  padding: 3px 4px;
  background: #f7f9fa;
}

#masterTable .master-column-filter {
  width: 100%;
  min-width: 0;
  min-height: 0;
  border: 1px solid #c3cdd3;
  border-radius: 2px;
  padding: .35em 30px .35em .5em;
  background: #fff;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

#masterTable .master-column-filter::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
}

#masterTable .master-column-filter-wrap {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

#masterTable .master-column-filter-clear {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  display: grid;
  width: 26px;
  min-width: 26px;
  min-height: 0;
  place-items: center;
  border: 0;
  border-radius: 2px;
  padding: 0;
  color: #6f7d86;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: color .12s ease, background .12s ease, transform .08s ease;
}

#masterTable .master-column-filter-clear:hover {
  color: var(--accent-dark);
  background: rgba(15, 109, 104, .14);
}

#masterTable .master-column-filter-clear:active {
  background: rgba(15, 109, 104, .22);
  transform: scale(.92);
}

#masterTable .master-column-filter-clear:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

#masterTable .master-required-marker {
  display: inline-block;
  margin-left: 2px;
  color: var(--danger);
  font-weight: 700;
}

#masterTable .master-column-resizer {
  position: absolute;
  z-index: 3;
  top: 0;
  right: -5px;
  width: 9px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
}

#moduleView.is-master-style #moduleTable .master-column-resizer {
  position: absolute;
  z-index: 3;
  top: 0;
  right: -5px;
  width: 9px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
}

#masterTable .master-column-resizer::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: transparent;
  content: "";
}

#moduleView.is-master-style #moduleTable .master-column-resizer::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: transparent;
  content: "";
}

#masterTable .master-column-resizer:hover::after,
#masterTable .master-column-resizer.is-active::after {
  background: var(--accent);
}

#moduleView.is-master-style #moduleTable .master-column-resizer:hover::after,
#moduleView.is-master-style #moduleTable .master-column-resizer.is-active::after {
  background: var(--accent);
}

body.is-master-column-resizing,
body.is-master-column-resizing * {
  cursor: col-resize !important;
  user-select: none;
}

#masterView .master-row.is-selected td {
  background: #edf7f6;
}

#masterView .master-row.is-selected .master-cell-input:not(.is-saving):not(.is-save-error) {
  background: transparent;
}

#masterView .master-row.is-selected .master-box-spec-cell .master-cell-input.is-box-spec-field-selected:not(.is-saving):not(.is-save-error) {
  background: #e6f3f1;
}

.document-box-spec-surface tr.is-selected .master-box-spec-cell .master-cell-input:not(.is-saving):not(.is-save-error) {
  background: transparent;
}

.document-detail-grid-table.document-box-spec-surface .master-box-spec-cell .document-grid-cell-control:disabled {
  pointer-events: none;
}

#masterTable td.is-current-cell {
  position: relative;
  z-index: 1;
  box-shadow: inset 0 0 0 2px var(--accent);
}

#masterTable td.is-current-cell::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  box-shadow: inset 0 0 0 2px var(--accent);
  pointer-events: none;
  content: "";
}

#masterTable td.is-current-cell.is-editing:not(:has([data-keyboard-armed="true"])) {
  z-index: 2;
  background: #fff;
}

#masterTable td.is-range-selected {
  position: relative;
  z-index: 1;
}

#masterTable td.is-range-selected::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  box-shadow: inset 0 0 0 2px var(--accent);
  pointer-events: none;
  content: "";
}

#moduleView.is-master-style #moduleTable td.is-current-cell {
  position: relative;
  z-index: 1;
  box-shadow: inset 0 0 0 2px var(--accent);
}

#moduleView.is-master-style #moduleTable td.is-current-cell::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  box-shadow: inset 0 0 0 2px var(--accent);
  pointer-events: none;
  content: "";
}

#moduleView.is-master-style #moduleTable td.is-range-selected {
  position: relative;
  z-index: 1;
}

#moduleView.is-master-style #moduleTable td.is-range-selected::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  box-shadow: inset 0 0 0 2px var(--accent);
  pointer-events: none;
  content: "";
}

#masterView .master-row.is-disabled td,
#masterView .master-row.is-disabled .master-cell-input {
  color: var(--danger);
}

#masterView .master-row.is-disabled .master-cell-input {
  background: #fff8f7;
  cursor: not-allowed;
}

#masterView .master-row.is-disabled .master-cell-input:focus {
  background: #fff8f7;
  box-shadow: none;
}

#masterView .master-row.is-disabled.is-selected td,
#masterView .master-row.is-disabled.is-selected .master-cell-input {
  background: #fdeceb;
}

#masterView .master-row.is-disabled .master-status-cell {
  color: var(--danger);
  background: #fff4f3;
}

#masterView .master-row.is-disabled.is-selected .master-status-cell {
  background: #fdeceb;
}

#masterView #masterTable td.master-box-spec-cell[data-control-locked="true"] {
  color: var(--control-locked-color);
  border-color: var(--control-locked-border);
  background: var(--control-locked-background);
}

#masterView #masterTable td.master-box-spec-cell[data-control-locked="true"] .master-cell-input {
  color: var(--control-locked-color);
  background: transparent;
  -webkit-text-fill-color: var(--control-locked-color);
  cursor: default;
}

#masterView .master-row.is-duplicate-disabled .master-status-cell {
  background: #f5f1f1;
  cursor: not-allowed;
}

#masterView .master-row.is-duplicate-disabled td.has-duplicate-code .master-cell-input {
  color: #34424c;
  background: #fff3f2;
  cursor: text;
}

#masterView .master-row.is-duplicate-disabled td.has-duplicate-code.is-editing .master-cell-input {
  background: #fff;
  cursor: text;
}

#masterView .master-image-cell {
  position: relative;
  padding: 2px 6px;
  font-size: 0;
  line-height: 0;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

#masterView .master-image-cell:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.master-image-cell-content {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: inline-block;
  width: 50px;
  height: 36px;
  color: #78878f;
  font-size: 10px;
  line-height: 1;
  vertical-align: middle;
}

.master-image-cell-content.is-empty {
  display: inline-grid;
  width: 46px;
  height: 34px;
  place-items: center;
  border: 1px dashed #aebbc1;
  border-radius: 5px;
  background: #f5f7f8;
}

.master-image-cell-layer {
  position: absolute;
  display: grid;
  width: 34px;
  height: 32px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #bac6ca;
  border-radius: 4px;
  background: #fff;
  box-shadow: 1px 1px 3px rgba(20, 36, 43, .14);
}

.master-image-cell-layer.is-stack-0 {
  z-index: 3;
  top: 1px;
  left: 0;
}

.master-image-cell-layer.is-stack-1 {
  z-index: 2;
  top: 2px;
  left: 7px;
}

.master-image-cell-layer.is-stack-2 {
  z-index: 1;
  top: 3px;
  left: 14px;
}

.master-image-cell-content.has-multiple .master-image-cell-layer {
  box-shadow: 1px 1px 0 #fff, 2px 2px 4px rgba(20, 36, 43, .2);
}

.master-image-cell-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#masterView .master-image-cell:hover .master-image-cell-layer.is-stack-0,
#masterView .master-image-cell:focus-visible .master-image-cell-layer.is-stack-0 {
  border-color: var(--accent);
}

.master-image-viewer {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
}

.master-image-viewer.is-open {
  display: grid;
}

.master-image-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 18, .88);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: master-image-backdrop-in .16s ease-out;
}

.master-image-viewer-panel {
  position: relative;
  display: grid;
  width: min(1180px, calc(100vw - 40px));
  height: min(900px, calc(100vh - 40px));
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  color: #fff;
  background: #111b20;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .4);
  animation: master-image-panel-in .18s cubic-bezier(.2, .75, .25, 1);
}

.master-image-viewer-panel,
.master-image-viewer-panel * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.master-image-viewer-toolbar {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
}

.master-image-viewer-heading {
  min-width: 0;
}

.master-image-viewer-heading strong,
.master-image-viewer-heading span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.master-image-viewer-heading span {
  margin-top: 2px;
  color: #9eb0b5;
  font-size: 11px;
}

.master-image-viewer-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.master-image-icon-button,
.master-image-viewer-button {
  display: grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.master-image-icon-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.master-image-button-symbol {
  display: grid;
  width: 1em;
  height: 1em;
  place-items: center;
  line-height: 1;
  transform: translateY(-1px);
}

.master-image-viewer-button {
  border-radius: 5px;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
}

.master-image-icon-button:hover:not(:disabled),
.master-image-icon-button:focus-visible,
.master-image-viewer-button:hover:not(:disabled),
.master-image-viewer-button:focus-visible {
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .18);
  outline: 0;
}

.master-image-icon-button:active:not(:disabled),
.master-image-viewer-button:active:not(:disabled) {
  background: rgba(255, 255, 255, .24);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .3);
}

.master-image-icon-button:disabled,
.master-image-viewer-button:disabled {
  opacity: .32;
  cursor: default;
}

.master-image-close-button {
  margin-left: 4px;
  font-size: 25px;
}

.master-image-viewer-button.master-image-save-button {
  min-width: 60px;
  color: #fff;
  border-color: #348977;
  background: #206d5d;
}

.master-image-viewer-button.master-image-save-button:hover:not(:disabled) {
  border-color: #65b5a4;
  background: #29816f;
}

.master-image-zoom-level {
  min-width: 48px;
  color: #d8e2e4;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.master-image-viewer-stage {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background: #0b1215;
  cursor: grab;
  touch-action: none;
  overscroll-behavior: none;
}

.master-image-viewer-stage.is-dragging {
  cursor: grabbing;
}

.master-image-viewer-stage.is-settling .master-image-positioner,
.master-image-viewer-stage.is-settling .master-image-adjacent-positioner,
.master-image-viewer-stage.is-settling .master-image-preview {
  transition: transform 220ms cubic-bezier(.22, .72, .24, 1);
}

.master-image-positioner {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  backface-visibility: hidden;
  will-change: transform;
}

.master-image-adjacent-positioner {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  pointer-events: none;
  will-change: transform;
}

.master-image-adjacent-positioner[hidden] {
  display: none;
}

.master-image-adjacent-image {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

.master-image-swipe-carry {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transform: translate(-50%, -50%);
  pointer-events: none;
  -webkit-user-drag: none;
}

.master-image-swipe-carry[hidden] {
  display: none;
}

#masterImageFull,
.master-image-preview {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  transform-origin: center;
  backface-visibility: hidden;
  will-change: transform;
  -webkit-user-drag: none;
}

#masterImageFull[hidden],
.master-image-preview[hidden] {
  display: none;
}

.master-image-preview {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  opacity: .78;
  pointer-events: none;
}

.master-image-loading {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  color: #d8e2e4;
  background: rgba(17, 27, 32, .82);
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-size: 13px;
}

.master-image-loading.has-preview {
  top: auto;
  bottom: 16px;
  padding: 6px 10px;
  transform: translateX(-50%);
  font-size: 11px;
}

.master-image-empty {
  color: #829398;
  font-size: 13px;
}

.master-image-nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  font-size: 34px;
}

.master-image-nav.previous { left: 12px; }
.master-image-nav.next { right: 12px; }
.master-image-nav:disabled { display: none; }

.master-image-nav:active:not(:disabled) {
  transform: translateY(-50%) scale(.94);
}

.master-image-thumbnails {
  display: flex;
  min-height: 112px;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 14px;
  border-top: 1px solid rgba(255, 255, 255, .11);
  background: #111b20;
  overscroll-behavior-x: contain;
}

.master-image-category {
  display: grid;
  flex: 0 0 auto;
  min-width: 216px;
  grid-template-rows: 28px 62px;
  align-content: center;
  padding: 10px;
  border-right: 1px solid rgba(255, 255, 255, .11);
  background: transparent;
  transition: background .14s ease, box-shadow .14s ease;
}

.master-image-category:first-child {
  border-left: 1px solid rgba(255, 255, 255, .11);
}

.master-image-category.is-dragover {
  background: #173337;
  box-shadow: inset 0 0 0 2px #55b7ad;
}

.master-image-category-header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
  color: #dce7e9;
  font-size: 12px;
  line-height: 20px;
}

.master-image-category-header strong {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.master-image-category-header span {
  flex: 0 0 auto;
  color: #82969c;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.master-image-category-items {
  display: flex;
  width: max-content;
  min-width: 100%;
  align-items: center;
  gap: 8px;
}

.master-image-thumbnail,
.master-image-upload-tile {
  position: relative;
  flex: 0 0 94px;
  width: 94px;
  height: 62px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
}

.master-image-thumbnail {
  padding: 3px;
  opacity: .68;
  cursor: grab;
  transition: opacity .14s ease, border-color .14s ease, transform .14s ease;
}

.master-image-thumbnail:hover,
.master-image-thumbnail:focus-visible {
  border-color: rgba(255, 255, 255, .48);
  opacity: 1;
  outline: 0;
  transform: translateY(-1px);
}

.master-image-thumbnail.is-active {
  border-color: #e7aa42;
  background: rgba(231, 170, 66, .13);
  opacity: 1;
}

.master-image-thumbnail.is-dragging {
  opacity: .34;
}

.master-image-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.master-image-thumbnail-delete {
  position: absolute;
  z-index: 2;
  top: 3px;
  right: 3px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: #fff;
  background: rgba(151, 42, 38, .88);
  opacity: 0;
  font-size: 16px;
  line-height: 1;
}

.master-image-thumbnail:hover .master-image-thumbnail-delete,
.master-image-thumbnail:focus-within .master-image-thumbnail-delete {
  opacity: 1;
}

.master-image-upload-tile {
  display: grid;
  place-items: center;
  border-color: rgba(255, 255, 255, .22);
  color: #bed0d3;
  background: transparent;
  font-size: 30px;
  line-height: 1;
}

.master-image-upload-tile:hover:not(:disabled),
.master-image-upload-tile:focus-visible {
  border-color: #55b7ad;
  color: #fff;
  background: rgba(85, 183, 173, .13);
  outline: 0;
}

.master-image-upload-tile:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.master-image-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.master-image-viewer-status {
  min-height: 34px;
  padding: 8px 16px;
  border-top: 1px solid rgba(255, 255, 255, .11);
  color: #9eb0b5;
  font-size: 11px;
}

.master-image-viewer-status[hidden] {
  display: none;
}

.master-image-context-menu {
  position: fixed;
  z-index: 300;
  width: 180px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 7px;
  background: #202527;
  box-shadow: 0 14px 36px rgba(8, 15, 18, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) scale(.98);
  transform-origin: top left;
  transition: opacity 100ms ease, transform 100ms ease, visibility 100ms;
  pointer-events: none;
}

.master-image-context-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.master-image-context-menu button {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  border: 0;
  border-radius: 4px;
  padding: 0 11px;
  color: #f4f7f7;
  background: transparent;
  font-size: 13px;
  text-align: left;
}

.master-image-context-menu button:hover:not(:disabled),
.master-image-context-menu button:focus-visible {
  color: #fff;
  background: #087f7a;
  outline: 0;
}

.master-image-context-menu button:disabled {
  color: #7f8a8e;
  cursor: default;
}

.master-image-context-separator {
  height: 1px;
  margin: 4px 6px;
  background: rgba(255, 255, 255, .13);
}

.master-image-detail-modal {
  width: min(720px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
}

.master-image-detail-dialog {
  display: flex;
  min-height: 0;
  max-height: inherit;
  flex-direction: column;
}

.master-image-detail-body {
  display: grid;
  min-height: 0;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  overflow: auto;
  padding: 20px;
}

.master-image-detail-preview {
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  align-self: start;
  overflow: hidden;
  margin: 0;
  border: 1px solid #ccd5d9;
  border-radius: 6px;
  background: #10191d;
}

.master-image-detail-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.master-image-detail-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  margin: 0;
}

.master-image-detail-grid > div {
  min-width: 0;
  padding: 9px 12px 11px 0;
  border-bottom: 1px solid #e5eaec;
}

.master-image-detail-grid > div:nth-child(even):not(.is-wide) {
  padding-right: 0;
  padding-left: 14px;
  border-left: 1px solid #e5eaec;
}

.master-image-detail-grid > .is-wide {
  grid-column: 1 / -1;
}

.master-image-detail-grid dt {
  margin: 0 0 5px;
  color: #718087;
  font-size: 11px;
}

.master-image-detail-grid dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #26373e;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  user-select: text;
}

.master-image-detail-modal .modal-foot {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 13px 20px;
  background: #f7f9fa;
}

@media (max-width: 620px) {
  .master-image-detail-modal { width: calc(100% - 16px); }
  .master-image-detail-body { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
  .master-image-detail-preview { width: 100%; height: min(38dvh, 220px); }
}

/* Sales outbound packing is an independent document surface using the order packing grid language. */
#salesOutboundPackingView > .page-heading {
  min-width: 0;
  height: 64px;
  flex-basis: 64px;
  padding: 6px 16px;
}

#salesOutboundPackingView > .page-heading > .data-page-actions {
  min-width: 0;
  display: flex;
  width: 100%;
  flex: 1 1 auto;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
}

.sales-outbound-packing-customer-button {
  min-width: 190px;
  max-width: min(300px, 42vw);
  height: 42px;
  flex: 0 1 280px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid #aebbc1;
  border-radius: 4px;
  padding: 4px 10px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.sales-outbound-packing-customer-button:hover:not(:disabled) {
  border-color: var(--accent);
  background: #f7fbfa;
}

.sales-outbound-packing-customer-button:focus-visible {
  border-color: var(--accent);
  outline: 2px solid rgba(8, 127, 122, .2);
  outline-offset: 1px;
}

.sales-outbound-packing-customer-button:disabled {
  color: #7b878d;
  background: #f2f5f6;
  cursor: not-allowed;
}

.sales-outbound-packing-customer-action {
  padding-right: 8px;
  border-right: 1px solid #d7dfe3;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.sales-outbound-packing-customer-identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sales-outbound-packing-customer-identity strong,
.sales-outbound-packing-customer-identity small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-outbound-packing-customer-identity strong {
  font-size: 12px;
  font-weight: 700;
}

.sales-outbound-packing-customer-identity small {
  color: var(--muted);
  font-size: 11px;
}

.sales-outbound-packing-toolbar-error {
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-outbound-packing-compact-button {
  min-width: 0;
  min-height: 30px;
  height: 30px;
  flex: 0 0 auto;
  padding: 0 9px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.sales-outbound-packing-assign-button {
  width: 76px;
}

.sales-outbound-packing-generate-button {
  width: 88px;
}

.sales-outbound-packing-container-action-button {
  width: 64px;
}

.sales-outbound-packing-change-container-type-button {
  width: 76px;
}

.sales-outbound-packing-assign-button,
.sales-outbound-packing-generate-button,
.sales-outbound-packing-container-action-button {
  flex: 0 0 auto;
}

#salesOutboundPackingView > .sales-outbound-packing-panel {
  min-height: 0;
  overflow: hidden;
}

.sales-outbound-packing-layout {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
}

.sales-order-packing-toolbar > .button,
.sales-order-packing-container-toolbar > .button {
  min-width: max-content;
  flex: 0 0 auto;
}

#salesOrderPackingView .sales-order-packing-toolbar > .sales-outbound-packing-compact-button {
  min-width: 0;
  min-height: 30px;
  height: 30px;
}

.sales-order-packing-table.document-detail-grid-table {
  --sticky-title-row-height: 40px;
  max-width: none;
}

.sales-order-packing-table.document-detail-grid-table tbody td { padding: 0 8px; }
.sales-order-packing-table.document-detail-grid-table tbody tr:hover > td:not([data-control-locked="true"]):not(:has([data-control-locked="true"])) { background: #f3f7f7; }
.sales-order-packing-table.document-detail-grid-table tbody tr:is(.is-selected, .is-current-row) > td:not([data-control-locked="true"]):not(:has([data-control-locked="true"])) { background: #edf7f6; }
.sales-order-packing-master-table.document-detail-grid-table tbody tr.is-complete > td:not([data-control-locked="true"]):not(:has([data-control-locked="true"])) {
  color: #65737a;
  background: #edf1f2;
}
.sales-order-packing-master-table.document-detail-grid-table tbody tr.is-complete:is(.is-selected, .is-current-row) > td:not([data-control-locked="true"]):not(:has([data-control-locked="true"])) {
  background: #e1eceb;
}

.sales-order-packing-container-table td.is-editing:not(:has([data-keyboard-armed="true"])) {
  position: relative;
  z-index: 3;
  background: #fff;
  box-shadow: none;
}

.sales-order-packing-container-table td.is-editing:not(:has([data-keyboard-armed="true"]))::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  box-sizing: border-box;
  border: 1px solid var(--accent);
  pointer-events: none;
  content: "";
}

.sales-order-packing-container-table .sales-order-packing-quantity-input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 30px;
  min-height: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  padding: .5em 4px;
  overflow: hidden;
  color: #34424c;
  background: transparent;
  box-shadow: none;
  font: inherit;
  text-align: right;
  text-overflow: ellipsis;
}

.sales-order-packing-container-table .sales-order-packing-quantity-input:focus {
  border: 0;
  outline: 0;
  box-shadow: none;
}

.sales-order-packing-container-table td:not(.is-editing) .sales-order-packing-quantity-input {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.sales-order-packing-container-table td.is-editing .sales-order-packing-quantity-input {
  pointer-events: auto;
  cursor: text;
  -webkit-user-select: text;
  user-select: text;
}

@media (max-width: 920px) {
  .sales-outbound-packing-customer-button {
    min-width: 190px;
    max-width: none;
    flex-basis: 260px;
  }
}

/* Shared sort controls for every sortable table header. */
.master-title-row > th:has(.master-column-sort-buttons) {
  height: 40px;
}

.master-column-heading {
  position: static;
  display: block;
  min-width: 0;
}

.master-column-label {
  display: -webkit-box;
  min-width: 0;
  max-height: 2.4em;
  padding-right: 18px;
  overflow: hidden;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.master-column-sort-buttons {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  display: inline-flex;
  width: 16px;
  height: auto;
  box-sizing: border-box;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  transform: none;
}

.master-column-sort-button {
  display: grid;
  flex: 1 1 50%;
  place-items: center;
  box-sizing: border-box;
  width: 16px;
  min-width: 16px;
  height: auto;
  min-height: 0;
  border: 1px solid #c3cdd3;
  border-radius: 0;
  padding: 0;
  color: #77858d;
  background: #f7f9f9;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
}

.master-column-sort-buttons .master-column-sort-button:first-child {
  border-radius: 2px 2px 0 0;
}

.master-column-sort-buttons .master-column-sort-button:last-child {
  border-top: 0;
  border-radius: 0 0 2px 2px;
}

.master-column-sort-button:is(:hover, :focus-visible):not(:disabled) {
  z-index: 1;
  border-color: var(--accent);
  color: var(--accent-dark);
  outline: 0;
}

.master-column-sort-button:is(.is-active, [aria-pressed="true"]):not(:disabled) {
  z-index: 1;
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.master-column-sort-button:disabled {
  border-color: #d5dde1;
  color: #a5b0b6;
  background: #f1f4f5;
  cursor: not-allowed;
  opacity: 1;
}

body:has(.master-image-viewer.is-open) {
  overflow: hidden;
}

@keyframes master-image-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes master-image-panel-in {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@supports (height: 100dvh) {
  .app {
    height: 100dvh;
  }

  .content:has(.data-view.is-active) {
    height: calc(100dvh - var(--topbar-height));
    min-height: calc(100dvh - var(--topbar-height));
  }
}

/* Shared ordering mode for archive and document action toolbars. */
.toolbar-order-backdrop {
  position: fixed;
  z-index: 400;
  inset: 0;
  background: rgba(239, 244, 244, .24);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: default;
}

.toolbar-order-backdrop[hidden] { display: none; }

.toolbar-order-context-menu {
  z-index: 404;
  min-width: 176px;
}

body.is-toolbar-ordering { user-select: none; }

body.is-toolbar-ordering [data-orderable-toolbar].is-toolbar-ordering {
  position: relative;
  z-index: 402;
  overflow: visible;
  border-radius: 4px;
  background: var(--surface);
  outline: 0;
  outline-offset: 0;
  box-shadow: inset 0 0 0 2px #6d9428, 0 10px 30px rgba(31, 48, 38, .2);
  isolation: isolate;
}

body.is-toolbar-ordering [data-orderable-toolbar].is-toolbar-ordering > [data-toolbar-item] {
  position: relative;
  cursor: grab !important;
  touch-action: none;
  transition: box-shadow .16s ease, filter .16s ease, opacity .16s ease;
}

body.is-toolbar-ordering [data-orderable-toolbar].is-toolbar-ordering > [data-toolbar-item] :is(button, [role="button"]) {
  cursor: grab !important;
  pointer-events: none;
}

body.is-toolbar-ordering [data-orderable-toolbar].is-toolbar-ordering > button[data-toolbar-item]:disabled {
  pointer-events: none;
}

body.is-toolbar-ordering [data-orderable-toolbar].is-toolbar-ordering > [data-toolbar-item].is-toolbar-dragging {
  z-index: 3;
  cursor: grabbing !important;
  filter: saturate(1.06);
  box-shadow: 0 8px 20px rgba(34, 49, 42, .22);
}

body.is-toolbar-ordering .toast { z-index: 405; }

@media (prefers-reduced-motion: reduce) {
  body.is-toolbar-ordering [data-orderable-toolbar].is-toolbar-ordering > [data-toolbar-item] {
    transition: none;
  }
}

@media (max-width: 760px) {
  .master-image-viewer { padding: 0; }
  .master-image-viewer-panel {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .master-image-viewer-toolbar { align-items: flex-start; padding: 8px; }
  .master-image-viewer-heading { display: none; }
  .master-image-viewer-actions { width: 100%; justify-content: center; flex-wrap: wrap; }
  .master-image-zoom-level { min-width: 40px; }
  .master-image-viewer-button { padding-inline: 8px; }
  .master-image-close-button { margin-left: auto; }
  .master-image-thumbnails { min-height: 104px; padding: 0 8px; }
  .master-image-category {
    min-width: 184px;
    grid-template-rows: 28px 54px;
    padding: 10px;
  }
  .master-image-thumbnail,
  .master-image-upload-tile { flex-basis: 78px; width: 78px; height: 54px; }
  .master-image-nav.previous { left: 6px; }
  .master-image-nav.next { right: 6px; }

  .data-view > .page-heading {
    align-items: center;
    flex-direction: row;
    gap: 0;
    padding: 6px 14px;
  }

  .data-view > .panel > .toolbar {
    align-items: stretch;
    padding: 10px 14px;
  }

  .toolbar-status {
    width: 100%;
    margin-left: 0;
  }

  .data-view > .panel > .table-foot {
    padding: 10px 14px;
  }

  .data-view th,
  .data-view td {
    padding-right: 14px;
    padding-left: 14px;
  }

  .data-view th.row-number,
  .data-view td.row-number {
    width: 54px;
    min-width: 54px;
    padding-right: 8px;
    padding-left: 8px;
  }

  #masterTable th.row-number,
  #masterTable td.row-number,
  #moduleView.is-master-style #moduleTable th.row-number,
  #moduleView.is-master-style #moduleTable td.row-number {
    width: auto;
    min-width: 0;
    padding-right: 6px;
    padding-left: 6px;
  }

  #masterTable .master-select-column,
  #masterTable .master-select-cell {
    width: auto;
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
  }
}

/* Role-based home workspace. */
.content:has(.dashboard-view.is-active) {
  --dashboard-page-gutter: 24px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--dashboard-page-gutter) 24px;
}

.dashboard-view {
  padding-bottom: 0;
}

.dashboard-role-workspace { min-width: 0; }

.dashboard-role-tabbar {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  margin-inline: calc(var(--dashboard-page-gutter) * -1);
  border-top: 1px solid #ced8dd;
  border-bottom: 1px solid #ced8dd;
  background: #e9eef1;
}

.dashboard-role-tabbar-label {
  min-width: 64px;
  display: grid;
  place-items: center;
  border-right: 1px solid #ced8dd;
  color: #5f6e76;
  background: #e2e8eb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.dashboard-role-tabs {
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 6px 7px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(65, 82, 91, .32) transparent;
}

.dashboard-role-tabs::-webkit-scrollbar { height: 5px; }
.dashboard-role-tabs::-webkit-scrollbar-track { background: transparent; }
.dashboard-role-tabs::-webkit-scrollbar-thumb { background: rgba(65, 82, 91, .32); }

.dashboard-role-tab {
  --dashboard-tab-accent: #0f6d68;
  --dashboard-tab-soft: #e3f1ef;
  position: relative;
  min-width: 132px;
  height: 52px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  padding: 7px 11px;
  color: #53626a;
  background: transparent;
  text-align: left;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.dashboard-role-tab[data-role-tone="admin"] { --dashboard-tab-accent: #52616c; --dashboard-tab-soft: #e7ecef; }
.dashboard-role-tab[data-role-tone="sales"] { --dashboard-tab-accent: #2c78a5; --dashboard-tab-soft: #e8f2f8; }
.dashboard-role-tab[data-role-tone="purchase"] { --dashboard-tab-accent: #a7641b; --dashboard-tab-soft: #fbf0df; }
.dashboard-role-tab[data-role-tone="leader"] { --dashboard-tab-accent: #76578a; --dashboard-tab-soft: #f0eaf4; }
.dashboard-role-tab[data-role-tone="full"] { --dashboard-tab-accent: #247367; --dashboard-tab-soft: #e4f1ee; }
.dashboard-role-tab[data-role-tone="follow"] { --dashboard-tab-accent: #47739a; --dashboard-tab-soft: #eaf0f5; }
.dashboard-role-tab[data-role-tone="finance"] { --dashboard-tab-accent: #a34b58; --dashboard-tab-soft: #f7e9eb; }
.dashboard-role-tab[data-role-tone="warehouse"] { --dashboard-tab-accent: #427650; --dashboard-tab-soft: #e8f1e9; }
.dashboard-role-tab[data-role-tone="review"] { --dashboard-tab-accent: #87642c; --dashboard-tab-soft: #f6efdf; }

.dashboard-role-tab:hover { color: #25343c; background: rgba(255, 255, 255, .58); }

.dashboard-role-tab.is-active {
  color: #1d2c33;
  border-color: #cbd5da;
  background: #fff;
  box-shadow: 0 -3px 8px rgba(26, 42, 50, .06);
}

.dashboard-role-tab.is-active::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 0;
  left: 9px;
  height: 3px;
  background: var(--dashboard-tab-accent);
}

.dashboard-role-tab:focus-visible {
  outline: 2px solid var(--dashboard-tab-accent);
  outline-offset: -2px;
}

.dashboard-role-tab-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--dashboard-tab-accent) 25%, transparent);
  border-radius: 5px;
  color: var(--dashboard-tab-accent);
  background: var(--dashboard-tab-soft);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.dashboard-role-tab-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dashboard-role-tab-copy strong,
.dashboard-role-tab-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
}

.dashboard-role-tab-copy strong { font-size: 12px; line-height: 1.15; }
.dashboard-role-tab-copy small { color: #7b888f; font-size: 10px; line-height: 1.1; }
.dashboard-role-tab.is-assigned .dashboard-role-tab-copy small { color: var(--dashboard-tab-accent); font-weight: 700; }

.dashboard-role-panel {
  min-width: 0;
}

.dashboard-role-content {
  min-width: 0;
  padding-top: 14px;
}

.dashboard-role-content:not(:empty) {
  display: grid;
  gap: 14px;
}

.dashboard-role-content:empty { padding-top: 0; }

.dashboard-pending-quotes {
  min-width: 0;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #cfd9de;
  border-top: 3px solid #a7641b;
  border-radius: 6px;
  color: #25343c;
  background: #fff;
  box-shadow: 0 5px 16px rgba(30, 46, 54, .055);
}

.dashboard-pending-contracts {
  border-top-color: #2d7180;
}

.dashboard-pending-reviews {
  border-top-color: #8a5a22;
}

.dashboard-pending-releases {
  border-top-color: #3f7457;
}

.dashboard-pending-followups {
  grid-template-columns: 190px minmax(0, 1fr);
  border-top-color: #9a4d38;
}

.dashboard-pending-contract-changes {
  grid-template-columns: 190px minmax(0, 1fr);
  border-top-color: #a33d4b;
}

.dashboard-pending-packaging {
  grid-template-columns: 190px minmax(0, 1fr);
  border-top-color: #426f77;
}

.dashboard-pending-contracts .dashboard-pending-quotes-head {
  background: #f8fbfc;
}

.dashboard-pending-releases .dashboard-pending-quotes-head {
  background: #f7faf8;
}

.dashboard-pending-followups .dashboard-pending-quotes-head {
  background: #fff8f5;
}

.dashboard-pending-contract-changes .dashboard-pending-quotes-head {
  background: #fff7f8;
}

.dashboard-pending-packaging .dashboard-pending-quotes-head {
  background: #f5fafb;
}

.dashboard-pending-followups .dashboard-pending-quotes-title h2 {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.dashboard-pending-packaging .dashboard-pending-quotes-title h2 {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.dashboard-pending-releases .dashboard-pending-quotes-title h2 {
  overflow: visible;
  font-size: 13px;
  line-height: 1.15;
  text-overflow: clip;
  white-space: normal;
}

.dashboard-pending-quotes-alert {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #b82822;
  box-shadow: 0 2px 8px rgba(128, 20, 17, .38);
  animation: dashboard-pending-quotes-alert-flash 1.15s steps(1, end) infinite;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
}

.dashboard-pending-quotes-alert::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -4px;
  border: 2px solid rgba(236, 48, 40, .78);
  border-radius: inherit;
  animation: dashboard-pending-quotes-alert-ring 1.15s ease-out infinite;
  pointer-events: none;
}

.dashboard-pending-quotes-alert strong {
  min-width: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.dashboard-pending-quotes-head {
  min-width: 0;
  min-height: 72px;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px;
  border-right: 1px solid #d9e1e5;
  background: #fbfcfc;
}

.dashboard-pending-quotes-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-pending-quotes-title > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dashboard-pending-quotes-title small {
  color: #7a878e;
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0;
}

.dashboard-pending-quotes-title h2 {
  overflow: hidden;
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-pending-quotes-summary {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-left: 42px;
  color: #6f7c83;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dashboard-pending-quotes-stat {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.dashboard-pending-quotes-stat strong {
  color: #25343c;
  font-size: 15px;
  letter-spacing: 0;
}

.dashboard-pending-quotes-stat small {
  overflow: hidden;
  color: #6f7c83;
  font-size: 10px;
  letter-spacing: 0;
  text-overflow: ellipsis;
}

.dashboard-pending-quote-table-wrap {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.dashboard-pending-quote-table {
  width: 100%;
  min-width: 840px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  color: #33434b;
  font-size: 12px;
}

.dashboard-pending-contract-table { min-width: 900px; }

.dashboard-pending-contract-no-column { width: 138px; }
.dashboard-pending-contract-date-column { width: 100px; }
.dashboard-pending-contract-delivery-column { width: 100px; }
.dashboard-pending-contract-supplier-column { width: 19%; }
.dashboard-pending-contract-customer-column { width: 20%; }
.dashboard-pending-contract-purchaser-column { width: 96px; }
.dashboard-pending-contract-status-column { width: 102px; }
.dashboard-pending-contract-action-column { width: 148px; }

.dashboard-pending-contract-group-table { min-width: 680px; }
.dashboard-pending-reviews .dashboard-pending-contract-group-table { min-width: 780px; }
.dashboard-pending-review-salesperson-column { width: 100px; }
.dashboard-pending-contract-group-table .dashboard-pending-contract-customer-column { width: 28%; }
.dashboard-pending-contract-group-table .dashboard-pending-contract-purchaser-column { width: auto; }
.dashboard-pending-contract-group-table .dashboard-contract-group-purchasers {
  white-space: normal;
  overflow-wrap: anywhere;
}

.dashboard-pending-followups .dashboard-pending-contract-table { min-width: 1040px; }
.dashboard-pending-followups .dashboard-pending-contract-supplier-column { width: 150px; }
.dashboard-pending-followups .dashboard-pending-contract-customer-column { width: 180px; }
.dashboard-pending-followups .dashboard-pending-contract-status-column { width: 200px; }

.dashboard-pending-contract-change-table { min-width: 980px; }
.dashboard-contract-change-no-column { width: 148px; }
.dashboard-contract-change-purchaser-column { width: 100px; }
.dashboard-contract-change-follower-column { width: 100px; }
.dashboard-contract-change-actor-column { width: 100px; }
.dashboard-contract-change-detail-column { width: auto; }
.dashboard-pending-source-change-table { min-width: 880px; }
.dashboard-source-change-no-column { width: 160px; }
.dashboard-source-change-detail-column { width: auto; }
.dashboard-source-change-actor-column,
.dashboard-source-change-purchaser-column { width: 100px; }
.dashboard-source-change-action-column { width: 188px; }
.dashboard-pending-source-change-table td.dashboard-source-change-detail {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.7;
  text-align: left;
}
.dashboard-source-change-new { color: #b4232f; font-weight: 700; }
.dashboard-pending-contract-changes .dashboard-pending-contract-action-column { width: 176px; }

.dashboard-pending-packaging-table { min-width: 900px; }
.dashboard-pending-packaging-no-column { width: 148px; }
.dashboard-pending-packaging-date-column { width: 100px; }
.dashboard-pending-packaging-loading-column { width: 100px; }
.dashboard-pending-packaging-supplier-column { width: 17%; }
.dashboard-pending-packaging-warehouse-column { width: 17%; }
.dashboard-pending-packaging-follower-column { width: 90px; }
.dashboard-pending-packaging-status-column { width: 96px; }
.dashboard-pending-packaging-action-column { width: 148px; }

.dashboard-pending-quote-no-column { width: 138px; }
.dashboard-pending-quote-date-column { width: 100px; }
.dashboard-pending-quote-customer-column { width: 22%; }
.dashboard-pending-quote-country-column { width: 112px; }
.dashboard-pending-quote-salesperson-column { width: 96px; }
.dashboard-pending-quote-count-column { width: 70px; }
.dashboard-pending-quote-missing-column { width: 88px; }
.dashboard-pending-quote-action-column { width: 148px; }

.dashboard-pending-quote-table th,
.dashboard-pending-quote-table td {
  height: 36px;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 11px;
  border-right: 1px solid #e2e8eb;
  border-bottom: 1px solid #e2e8eb;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-pending-quote-table th:last-child,
.dashboard-pending-quote-table td:last-child { border-right: 0; }
.dashboard-pending-quote-table tbody tr:last-child td { border-bottom: 0; }

.dashboard-pending-quote-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  color: #5e6e76;
  background: #eef3f5;
  font-size: 11px;
  font-weight: 700;
}

.dashboard-pending-quote-table td { background: #fff; }
.dashboard-pending-quote-table tbody tr:nth-child(even) td { background: #fafcfc; }
.dashboard-pending-quote-table tbody tr:hover td { background: #f4f8f7; }
.dashboard-pending-quote-table td strong { color: #26373f; letter-spacing: 0; }

.dashboard-pending-quote-table tbody tr:has(.dashboard-pending-prompt-toggle[aria-pressed="true"]) > td {
  color: #52616b;
  background: #e3e8eb;
  border-bottom-style: dashed;
}

.dashboard-pending-quote-table tbody tr:has(.dashboard-pending-prompt-toggle[aria-pressed="true"]):hover > td {
  background: #d7e0e5;
}

.dashboard-pending-quote-table tbody tr:has(.dashboard-pending-prompt-toggle[aria-pressed="true"]) > td:first-child {
  box-shadow: inset 4px 0 #778996;
}

.dashboard-pending-quote-table tbody tr:has(.dashboard-pending-prompt-toggle[aria-pressed="true"]) :is(td strong, .dashboard-pending-quote-number.is-missing) {
  color: #52616b;
  font-weight: 500;
}

.dashboard-pending-quote-number {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

.dashboard-pending-quote-number.is-missing {
  color: #a14935;
  font-weight: 700;
}

.dashboard-pending-contract-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  box-sizing: border-box;
  border: 1px solid #cbd9dd;
  border-radius: 999px;
  padding: 0 8px;
  color: #3d626a;
  background: #f1f7f8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.dashboard-pending-contract-status[data-status="draft"] {
  color: #6b5b35;
  border-color: #e0d5b8;
  background: #fbf7eb;
}

.dashboard-pending-contract-status[data-status="created"] {
  color: #315c72;
  border-color: #c6dce8;
  background: #eef7fb;
}

.dashboard-pending-contract-status[data-status="reapproved"] {
  color: #765f2f;
  border-color: #ddcea9;
  background: #f6f0df;
}

.dashboard-pending-contract-status[data-status="submitted"] {
  color: #7b5420;
  border-color: #e2cfaa;
  background: #fbf5e7;
}

.dashboard-pending-contract-status[data-status="not_released"] {
  color: #356147;
  border-color: #bfd7c8;
  background: #eef7f1;
  white-space: nowrap;
}

.dashboard-pending-contract-status[data-status="unconfirmed"] {
  color: #8a4632;
  border-color: #e4c0b5;
  background: #fff1ec;
  white-space: nowrap;
}

.dashboard-contract-change-detail {
  height: auto !important;
  min-height: 36px;
  overflow: visible !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
  white-space: normal !important;
  line-height: 1.45;
}

.dashboard-contract-change-line {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 4px;
  overflow-wrap: anywhere;
}

.dashboard-contract-change-line + .dashboard-contract-change-line { margin-top: 4px; }
.dashboard-contract-change-line strong,
.dashboard-contract-change-kind { flex: 0 0 auto; color: #7c3a43; }
.dashboard-contract-change-side { min-width: 0; overflow-wrap: anywhere; }
.dashboard-contract-change-arrow { flex: 0 0 auto; color: #7a858b; font-weight: 700; }
.dashboard-contract-change-line .is-changed {
  color: #b4232f;
  font-weight: 800;
}
.dashboard-contract-change-line.is-added strong { color: #2f7857; }
.dashboard-contract-change-line.is-deleted strong { color: #b4232f; }

.dashboard-pending-quote-action {
  text-align: center !important;
  white-space: nowrap !important;
}

.dashboard-pending-quote-action button {
  min-width: 46px;
  height: 25px;
  border: 1px solid #c9d5d9;
  border-radius: 4px;
  padding: 0 9px;
  color: #8e5318;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  transition: border-color .14s ease, color .14s ease, background-color .14s ease;
}

.dashboard-pending-quote-action .dashboard-pending-prompt-toggle {
  min-width: 70px;
  margin-left: 4px;
  color: #65767d;
  border-color: #d6dfe2;
  background: #f8fafb;
}

.dashboard-pending-quote-action .dashboard-pending-prompt-toggle:hover,
.dashboard-pending-quote-action .dashboard-pending-prompt-toggle.is-visible {
  color: #2d6872;
  border-color: #8fb8bd;
  background: #eef8f8;
}

.dashboard-pending-quote-action .dashboard-pending-contract-change-read {
  min-width: 88px;
  color: #8a3f32;
  border-color: #dfc1ba;
  background: #fff8f6;
}

.dashboard-pending-quote-action .dashboard-pending-contract-change-read:hover {
  color: #752d24;
  border-color: #c98e83;
  background: #fff0ec;
}

.dashboard-pending-quote-action .dashboard-pending-contract-change-read:disabled {
  cursor: wait;
  opacity: .6;
}

.dashboard-pending-quote-action button:hover {
  border-color: #c18a50;
  color: #74400f;
  background: #fff8ee;
}

.dashboard-pending-quote-action button:focus-visible {
  outline: 2px solid #a7641b;
  outline-offset: 1px;
}

.dashboard-pending-quote-empty {
  min-height: 72px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  color: #718087;
  background: #fff;
}

.dashboard-pending-quote-empty span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #d6dfe3;
  border-radius: 50%;
  color: #859198;
  background: #f5f8f9;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-pending-quote-empty strong { font-size: 12px; letter-spacing: 0; }

.dashboard-role-panel.is-switching .dashboard-role-content > * { animation: dashboard-role-content-in .2s ease both; }

@keyframes dashboard-role-content-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dashboard-pending-quotes-alert-flash {
  0%, 62%, 100% { color: #fff; background: #a92520; box-shadow: 0 2px 8px rgba(128, 20, 17, .4); }
  63%, 76% { color: #d51f18; background: #fff; box-shadow: 0 0 0 4px rgba(239, 51, 43, .24), 0 0 16px rgba(239, 51, 43, .78); }
  77%, 90% { color: #fff; background: #ff241a; box-shadow: 0 0 0 3px rgba(255, 36, 26, .28), 0 0 18px rgba(255, 36, 26, .82); }
}

@keyframes dashboard-pending-quotes-alert-ring {
  0%, 58% { opacity: .7; transform: scale(.88); }
  90%, 100% { opacity: 0; transform: scale(1.42); }
}

@media (max-width: 1200px) {
  .dashboard-role-tab { min-width: 126px; }
}

@media (max-width: 760px) {
  .content:has(.dashboard-view.is-active) { --dashboard-page-gutter: 16px; }
  .dashboard-role-tabbar { grid-template-columns: minmax(0, 1fr); }
  .dashboard-role-tabbar-label { display: none; }
  .dashboard-role-tabs { padding-left: 4px; }
  .dashboard-role-tab { min-width: 124px; }
  .dashboard-pending-quotes { grid-template-columns: minmax(0, 1fr); }
  .dashboard-pending-quotes-head {
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid #d9e1e5;
  }
  .dashboard-pending-quotes-summary { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-role-tab,
  .dashboard-pending-quote-action button { transition: none; }
  .dashboard-role-panel.is-switching .dashboard-role-content > * { animation: none; }
  .dashboard-pending-quotes-alert,
  .dashboard-pending-quotes-alert::before,
  .workspace-home-alert,
  .workspace-home-alert::before { animation: none; }
}
#otherInventoryDetailView .other-inventory-detail-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

#otherInventoryDetailView .other-inventory-header-pane {
  min-width: 0;
  min-height: 0;
  flex: 0 0 auto;
}

#otherInventoryDetailView .other-inventory-header-form {
  grid-template-areas:
    "number date warehouse status notes";
}

#otherInventoryDetailView .other-inventory-header-form > label {
  min-width: 0;
}

#otherInventoryDetailView .sales-quote-header-splitter {
  position: relative;
  z-index: 5;
  min-width: 0;
  height: 9px;
  flex: 0 0 9px;
}

#otherInventoryDetailView .other-inventory-number { grid-area: number; }
#otherInventoryDetailView .other-inventory-date { grid-area: date; }
#otherInventoryDetailView .other-inventory-warehouse { grid-area: warehouse; }
#otherInventoryDetailView .other-inventory-status { grid-area: status; }
#otherInventoryDetailView .other-inventory-notes { grid-area: notes; }

#otherInventoryDetailView .other-inventory-body-pane {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

#otherInventoryDetailView .other-inventory-detail-toolbar {
  display: flex;
  flex: 0 0 auto;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

#otherInventoryDetailView .other-inventory-detail-toolbar > .button {
  flex: 0 0 auto;
  min-height: 28px;
  height: 28px;
  margin-left: 0;
  padding: 0 12px;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1;
}

#otherInventoryDetailView .other-inventory-detail-grid {
  width: var(--other-inventory-detail-table-width, 1780px);
  min-width: var(--other-inventory-detail-table-width, 1780px);
  table-layout: fixed;
}

#otherInventoryDetailView .other-inventory-detail-grid th,
#otherInventoryDetailView .other-inventory-detail-grid td {
  vertical-align: middle;
}

#otherInventoryDetailView .other-inventory-line-input:not(.master-dimension-input):not(.master-box-spec-input) {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 4px 6px;
  font: inherit;
}

#otherInventoryDetailView .other-inventory-line-input:not(.master-dimension-input):not(.master-box-spec-input):focus {
  outline: 2px solid color-mix(in srgb, var(--accent, #168b83) 55%, transparent);
  outline-offset: -2px;
  background: #fff;
}

#otherInventoryDetailView .other-inventory-line-input.is-computed {
  color: var(--muted, #64747a);
}

#otherInventoryDetailTable [data-other-inventory-line-field="tax_included"] {
  display: block;
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0 auto;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

#otherInventoryDetailTable [data-other-inventory-line-field="tax_included"]:disabled {
  cursor: default;
}

/* Read-only tax values are symbols; only editable values retain a box. */
.document-tax-control {
  --tax-border: #71858d;
  --tax-background: #fff;
  --tax-checked-background: #527763;
  --tax-checked-border: #527763;
  --tax-check: #fff;
  --tax-readonly-included: #526e5c;
  --tax-readonly-excluded: #62727c;
  display: inline-grid;
  place-items: center;
  width: 20px;
  max-width: 100%;
  height: 22px;
  vertical-align: middle;
}

:is(#salesQuoteDetailTable, #purchaseQuoteDetailTable, #otherInventoryDetailTable, #receivableDetailTable)
  .document-tax-control > input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: grid;
  place-content: center;
  position: relative;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--tax-border);
  border-radius: 2px;
  background: var(--tax-background);
  color: var(--tax-check);
  opacity: 1;
  box-shadow: none;
  cursor: pointer;
  print-color-adjust: exact;
}

:is(#salesQuoteDetailTable, #purchaseQuoteDetailTable, #otherInventoryDetailTable, #receivableDetailTable)
  .document-tax-control > input[type="checkbox"]:checked {
  background: var(--tax-checked-background);
  border-color: var(--tax-checked-border);
}

.document-tax-control > input::after {
  content: "";
  width: 4px;
  height: 8px;
  margin-top: -3px;
  border: solid var(--tax-check);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  visibility: hidden;
}

.document-tax-control > input:checked::after { visibility: visible; }

:is(#salesQuoteDetailTable, #purchaseQuoteDetailTable, #otherInventoryDetailTable, #receivableDetailTable)
  .document-tax-control > input[type="checkbox"]:disabled {
  background: transparent;
  border-color: transparent;
  cursor: default;
  opacity: 1;
}

.document-tax-control > input:disabled:checked::after {
  border-color: var(--tax-readonly-included);
}

.document-tax-control > input:disabled:not(:checked)::before,
.document-tax-control > input:disabled:not(:checked)::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 2px;
  width: 10px;
  height: 0;
  margin: 0;
  border: 0;
  border-top: 2px solid var(--tax-readonly-excluded);
  visibility: visible;
  transform: rotate(45deg);
}

.document-tax-control > input:disabled:not(:checked)::before { transform: rotate(-45deg); }

:is(#salesQuoteDetailTable, #purchaseQuoteDetailTable, #otherInventoryDetailTable, #receivableDetailTable)
  .document-tax-control > input[type="checkbox"]:not(:disabled):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

:is(#salesQuoteDetailTable, #receivableDetailTable) .document-tax-control > input[data-purchase-order-tax-state="unset"]:not(:disabled) {
  border-style: dashed;
}

:is(#salesQuoteDetailTable, #receivableDetailTable) .document-tax-control > input[data-purchase-order-tax-state="unset"]::before {
  content: none;
}

:is(#salesQuoteDetailTable, #receivableDetailTable) .document-tax-control > input[data-purchase-order-tax-state="unset"]::after {
  position: static;
  visibility: visible;
  width: 8px;
  height: 0;
  margin: 0;
  border: 0;
  border-top: 2px solid var(--tax-border);
  transform: none;
}

@media screen {
  :root[data-system-theme="black"] .document-tax-control {
    --tax-border: #a0b0ba;
    --tax-background: #303b42;
    --tax-checked-background: #486c59;
    --tax-checked-border: #819b8b;
    --tax-check: #f4fcf8;
    --tax-readonly-included: #9fb2a5;
    --tax-readonly-excluded: #99a7ad;
  }
}

#otherInventoryDetailTable .sales-quote-currency-field {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  column-gap: 2px;
  padding: 0 4px;
}

#otherInventoryDetailTable .sales-quote-currency-prefix {
  color: #53636a;
  pointer-events: none;
}

#otherInventoryDetailView .sales-quote-currency-field .other-inventory-line-input {
  padding-right: 0;
  padding-left: 0;
  appearance: textfield;
}

#otherInventoryDetailTable .sales-quote-currency-field input::-webkit-inner-spin-button,
#otherInventoryDetailTable .sales-quote-currency-field input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

#otherInventoryDetailView .other-inventory-lot-button {
  display: block;
  width: 100%;
  min-height: 30px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 4px 6px;
  cursor: pointer;
  font: inherit;
}

#otherInventoryDetailView .other-inventory-lot-button:not(:disabled):hover,
#otherInventoryDetailView .other-inventory-lot-button:not(:disabled):focus-visible {
  background: #eaf6f4;
  color: var(--accent, #168b83);
}

#otherInventoryDetailView .other-inventory-lot-button:disabled {
  cursor: default;
  opacity: .7;
}

#otherInventoryDetailView tbody tr.is-selected td {
  background: color-mix(in srgb, var(--accent, #168b83) 10%, transparent);
}

/* Document data stays black by default; screen themes supply local readable ink. */
:is(
  .document-header-form,
  .document-detail-grid-table,
  .document-detail-summary-table,
  .sales-order-packing-summary-table,
  .sales-quote-material-suggest,
  .sales-quote-material-modal-body
) {
  --ink: var(--theme-document-ink, #000);
  --muted: var(--theme-document-ink, #000);
  --control-locked-color: var(--theme-document-ink, #000);
}

.document-header-form label,
.document-header-form label > span::after,
.document-header-form :is(input, textarea, select, .sales-quote-choice-button),
.document-detail-grid-table :is(th, td, th *, td *),
.document-detail-summary-table :is(td, td *),
.sales-order-packing-summary-table :is(td, td *),
.sales-order-packing-summary,
.sales-order-packing-overview,
.sales-order-packing-toolbar > :is(strong, span),
.sales-quote-material-suggest,
.sales-quote-material-suggest-head,
.sales-quote-material-suggest-filter input,
.sales-quote-material-suggest-row,
.sales-quote-material-suggest-state,
.sales-quote-material-suggest-foot button,
.sales-quote-picker-table :is(th, td, th *, td *, .master-column-filter),
.sales-quote-material-table-foot {
  color: var(--theme-document-ink, #000) !important;
}

.document-header-form :is(input, textarea, select, .sales-quote-choice-button),
.document-detail-grid-table :is(
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select
),
.sales-quote-picker-table :is(
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select
) {
  -webkit-text-fill-color: var(--theme-document-ink, #000) !important;
}

table > tbody > tr > td.row-number[data-row-save-state="saved"] {
  background: var(--grid-highlight-green) !important;
}

table > tbody > tr > td.row-number[data-row-save-state="pending"] {
  background: var(--grid-highlight-yellow) !important;
}

/* Action tokens inherit through split buttons; menu commands override their group. */
:where(.button.primary, [data-toolbar-item="customer"], [data-toolbar-item="select-source"],
  [data-toolbar-item="assign"], [data-toolbar-item="continue-packing"],
  .sales-outbound-packing-customer-button, #salesOrderPackingAssignButton,
  .sales-quote-material-suggest-foot > button) {
  --button-action-background: var(--action-select-background);
  --button-action-color: var(--action-select-color);
  --button-action-border: var(--action-select-border);
}
:where([data-toolbar-item="create"], [data-toolbar-item="add"], [data-toolbar-item="line-create"],
  [data-toolbar-item="add-container"], [data-document-line-action="add"],
  [data-sales-order-packing-container-tabs-action="add"],
  [data-sales-outbound-packing-container-tabs-action="add"],
  [data-sales-quote-action="新增"], [data-master-action="add"], #salesOrderPackingAddContainerButton) {
  --button-action-background: var(--action-create-background);
  --button-action-color: var(--action-create-color);
  --button-action-border: var(--action-create-border);
}
:where([data-toolbar-item="line-insert"], [data-document-line-action="insert"]) {
  --button-action-background: var(--action-insert-background);
  --button-action-color: var(--action-insert-color);
  --button-action-border: var(--action-insert-border);
}
:where([data-toolbar-item="copy"], [data-toolbar-item="line-copy"],
  [data-document-line-action="copy"], [data-sales-quote-action="复制"],
  [data-document-preview-export="copy-image"], [data-master-action="copy-row"], [data-master-action="copy"]) {
  --button-action-background: var(--action-copy-background);
  --button-action-color: var(--action-copy-color);
  --button-action-border: var(--action-copy-border);
}
:where([data-manual-save], #cellContentSaveButton, #saveMasterUserPasswordButton) {
  --button-action-background: var(--action-save-background);
  --button-action-color: var(--action-save-color);
  --button-action-border: var(--action-save-border);
}
:where([data-toolbar-item="submit"], [data-toolbar-item="generate"], [data-sales-quote-action="提交"]) {
  --button-action-background: var(--action-submit-background);
  --button-action-color: var(--action-submit-color);
  --button-action-border: var(--action-submit-border);
}
:where([data-toolbar-item="approve"], [data-sales-quote-action="审核"]) {
  --button-action-background: var(--action-approve-background);
  --button-action-color: var(--action-approve-color);
  --button-action-border: var(--action-approve-border);
}
:where([data-toolbar-item="preview"], [data-toolbar-item="preview-contract"], [data-document-preview-open]) {
  --button-action-background: var(--action-preview-background);
  --button-action-color: var(--action-preview-color);
  --button-action-border: var(--action-preview-border);
}
:where([data-toolbar-item="save-format"], [data-toolbar-item="change-container-type"],
  [data-sales-order-packing-container-tabs-action="change-type"],
  [data-sales-outbound-packing-container-tabs-action="change-type"],
  #salesOrderPackingChangeContainerTypeButton) {
  --button-action-background: var(--action-format-background);
  --button-action-color: var(--action-format-color);
  --button-action-border: var(--action-format-border);
}
:where([data-toolbar-item="batch-fill"], [data-document-line-action="batch-fill"]) {
  --button-action-background: var(--action-fill-background);
  --button-action-color: var(--action-fill-color);
  --button-action-border: var(--action-fill-border);
}
:where([data-toolbar-item="export"], [data-document-preview-export="image"], [data-document-preview-export="excel"]) {
  --button-action-background: var(--action-export-background);
  --button-action-color: var(--action-export-color);
  --button-action-border: var(--action-export-border);
}
:where([data-toolbar-item="refresh"], #connectionRetryButton) {
  --button-action-background: var(--action-refresh-background);
  --button-action-color: var(--action-refresh-color);
  --button-action-border: var(--action-refresh-border);
}
:where([data-toolbar-item="release"], [data-sales-quote-action="合同下达"],
  [data-sales-order-packing-action="issue-purchase"]) {
  --button-action-background: var(--action-release-background);
  --button-action-color: var(--action-release-color);
  --button-action-border: var(--action-release-border);
}
:where([data-toolbar-item="follow"], [data-sales-quote-action="跟单确认"]) {
  --button-action-background: var(--action-follow-background);
  --button-action-color: var(--action-follow-color);
  --button-action-border: var(--action-follow-border);
}
:where(.button.danger, .module-document-delete, [data-toolbar-item="delete"],
  [data-toolbar-item="line-delete"], [data-toolbar-item="delete-container"],
  [data-document-line-action="delete"], [data-master-action="delete"],
  [data-receipt-context-action="delete-line"], [data-purchase-inbound-context-action="delete-line"],
  [data-sales-order-packing-container-tabs-action="delete"],
  [data-sales-outbound-packing-container-tabs-action="delete"],
  [data-sales-order-packing-action="delete-row"], #salesOrderPackingDeleteContainerButton) {
  --button-action-background: var(--action-delete-background);
  --button-action-color: var(--action-delete-color);
  --button-action-border: var(--action-delete-border);
}
:where([data-toolbar-item="all-details"], [data-toolbar-item="detail-toggle"], [data-purchase-quote-all-details]) {
  --button-action-background: var(--action-preview-background);
  --button-action-color: var(--action-preview-color);
  --button-action-border: var(--action-preview-border);
}
:where([data-sales-quote-action="选单"], .module-document-create:has([data-sales-quote-action="选单"])) {
  --button-action-background: var(--action-select-background);
  --button-action-color: var(--action-select-color);
  --button-action-border: var(--action-select-border);
}
:where([data-sales-quote-action="撤销"], [data-sales-quote-action="弃审"],
  [data-sales-quote-action="取消下达"], [data-sales-quote-action="取消确认"],
  [data-sales-outbound-action="withdraw"], [data-sales-outbound-action="unapprove"],
  [data-receipt-action="withdraw"], [data-receipt-action="unapprove"],
  [data-purchase-inbound-action="withdraw"], [data-purchase-inbound-action="unapprove"],
  [data-packaging-outbound-action="withdraw"], [data-packaging-outbound-action="unapprove"],
  [data-other-inventory-action="withdraw"], [data-other-inventory-action="unapprove"]) {
  --button-action-background: var(--action-default-background);
  --button-action-color: var(--action-default-color);
  --button-action-border: var(--action-default-border);
}

/* Only command surfaces consume the palette, leaving table fields and geometry unchanged. */
:root :is(.button:not(.ghost), :is(.module-document-menu, .master-context-menu, .document-preview-context-menu) > button, .sales-outbound-packing-customer-button, .sales-quote-material-suggest-foot > button):where(:not(:disabled, [aria-disabled="true"], [aria-disabled="true"] *, [data-control-locked="true"], [data-control-locked="true"] *, .is-requirements-blocked)) {
  color: var(--button-action-color, var(--action-default-color)) !important;
  border-color: var(--button-action-border, var(--action-default-border)) !important;
  background: var(--button-action-background, var(--action-default-background)) !important;
}
:root :is(.button:not(.ghost), :is(.module-document-menu, .master-context-menu, .document-preview-context-menu) > button, .sales-outbound-packing-customer-button, .sales-quote-material-suggest-foot > button):hover:where(:not(:disabled, [aria-disabled="true"], [aria-disabled="true"] *, [data-control-locked="true"], [data-control-locked="true"] *, .is-requirements-blocked)) {
  background: color-mix(in srgb, var(--button-action-background, var(--action-default-background)) 88%, var(--button-action-border, var(--action-default-border))) !important;
}
:root :is(.button:not(.ghost), :is(.module-document-menu, .master-context-menu, .document-preview-context-menu) > button, .sales-outbound-packing-customer-button, .sales-quote-material-suggest-foot > button):is(:active, [aria-pressed="true"], [aria-expanded="true"]):where(:not(:disabled, [aria-disabled="true"], [aria-disabled="true"] *, [data-control-locked="true"], [data-control-locked="true"] *, .is-requirements-blocked)) {
  background: color-mix(in srgb, var(--button-action-background, var(--action-default-background)) 75%, var(--button-action-border, var(--action-default-border))) !important;
}
:root :is(.button:not(.ghost), :is(.module-document-menu, .master-context-menu, .document-preview-context-menu) > button, .sales-outbound-packing-customer-button, .sales-quote-material-suggest-foot > button):focus-visible:where(:not(:disabled, [aria-disabled="true"], [aria-disabled="true"] *, [data-control-locked="true"], [data-control-locked="true"] *)) {
  outline-color: var(--button-action-color, var(--action-default-color)) !important;
}

:is(.module-document-main, .module-document-toggle, .purchase-order-adjacent-action > .button):is(:hover, :focus-visible, :active):not(:disabled) {
  position: relative;
  z-index: 1;
}
.module-document-toggle[aria-expanded="true"]:not(:disabled) { box-shadow: var(--button-pressed-shadow); }

:is(.nav-context-menu, .master-context-menu, .module-document-menu, .user-account-menu, .document-preview-context-menu) button:active:where(:not(:disabled, [aria-disabled="true"], [data-control-locked="true"], [data-control-locked="true"] *)) {
  background: var(--button-active-background);
}
.master-image-context-menu button:active:not(:disabled) { color: #fff; background: var(--accent-dark); }
:is(.nav-context-menu, .master-context-menu, .module-document-menu, .user-account-menu, .document-preview-context-menu, .master-image-context-menu) button:focus-visible:where(:not(:disabled, [aria-disabled="true"], [data-control-locked="true"], [data-control-locked="true"] *)) {
  outline: 2px solid var(--button-focus);
  outline-offset: -2px;
}
:is(.icon-button, .choice-modal-close, .country-search-clear, .master-image-icon-button, .master-image-viewer-button, .master-image-upload-tile):focus-visible:where(:not(:disabled, [aria-disabled="true"], [data-control-locked="true"], [data-control-locked="true"] *)) {
  outline: 2px solid var(--button-focus);
  outline-offset: -3px;
}
:is(.master-image-icon-button, .master-image-viewer-button, .master-image-upload-tile):focus-visible { outline-color: #e3f1ef; }
.master-image-context-menu button:focus-visible:not(:disabled) { outline-color: #e3f1ef; }
:is(.nav-item, .workspace-tab-select, .workspace-tab-close, .workspace-tab-step, .dashboard-role-tab):active:not(:disabled) {
  box-shadow: var(--button-pressed-shadow);
}

/* Page-specific workflow colors must not override unavailable command states. */
:is(.button, :is(.module-document-menu, .master-context-menu, .document-preview-context-menu) > button, .sales-quote-material-suggest-foot > button):is(:disabled, [aria-disabled="true"], .is-requirements-blocked):where(:not([data-control-locked="true"], [data-control-locked="true"] *)) {
  color: var(--button-disabled-color) !important;
  border-color: var(--button-disabled-border) !important;
  background: var(--button-disabled-background) !important;
  box-shadow: none !important;
  opacity: 1 !important;
  filter: none !important;
  -webkit-text-fill-color: currentColor;
  cursor: not-allowed;
}
.button.ghost:is(:disabled, [aria-disabled="true"]) {
  color: #8e9ca2 !important;
  border-color: rgba(255,255,255,.16) !important;
  background: rgba(255,255,255,.04) !important;
}
.button:is([data-control-locked="true"], [data-control-locked="true"] *) {
  color: var(--control-locked-color) !important;
  border-color: var(--control-locked-border) !important;
  background: var(--control-locked-background) !important;
  box-shadow: none !important;
  opacity: 1 !important;
  filter: none !important;
  outline: 0 !important;
  cursor: default;
}
.button:is([aria-busy="true"], .is-loading) { cursor: wait; }
.auth-submit:disabled .auth-submit-spinner { border-color: #b8c6cb; border-top-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  button,
  .button { transition: none !important; }
}
.session-management { color: #263b42; min-width: 0; max-width: 100%; }
.session-management-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding: 12px 0; border-bottom: 2px solid #427059; }
.session-management-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.session-management h2 { font-size: 18px; margin: 0; line-height: 1.4; }
.session-management-title > span, .session-management-tools > span { font-size: 12px; color: #637780; }
.session-management-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.session-management-tools .button { min-width: 76px; }
.session-management-tools .button > span { font-size: 18px; vertical-align: -1px; }
.session-management-metrics { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 28px; padding: 14px 0; border-bottom: 1px solid #d4dde0; }
.session-metric { display: inline-flex; align-items: baseline; gap: 12px; padding-right: 28px; border-right: 1px solid #d4dde0; font-size: 12px; color: #6a7880; }
.session-metric:last-child { border-right: 0; }
.session-metric strong { font-size: 21px; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; color: #4f626c; }
.session-metric.online strong { color: #23714f; }
.session-metric.visitors strong { color: #9c7621; }
.session-section-heading { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 8px; }
.session-section-heading h3 { margin: 0; font-size: 13px; font-weight: 650; }
.session-section-heading > span, .session-management-audit summary > span { font-size: 11px; color: #7b8990; font-variant-numeric: tabular-nums; }
.session-management-table { width: 100%; overflow-x: auto; overflow-y: hidden; border: 0; border-bottom: 1px solid #b8c4ca; background: #fff; }
.session-management-table .document-detail-grid-table { width: 100%; table-layout: fixed; }
.session-management-table .document-detail-grid-table tbody td { height: 40px; padding: 0 8px; }
.session-management-table .document-detail-grid-table tbody tr:nth-child(even) td { background: #f7f9fa; }
.session-management-table .document-detail-grid-table tbody tr.is-current-session td { background: #f0f7f2; }
.session-management-table .document-detail-grid-table tbody tr:hover td { background: #edf4f2; }
.session-management-table .is-current-session .row-number { color: #23714f; box-shadow: inset 3px 0 #3a8660; }
.session-management-table .session-account { text-align: left; }
.session-account strong { display: block; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; font-weight: 600; }
.session-account small { display: flex; align-items: center; gap: 8px; overflow: hidden; text-overflow: ellipsis; color: #74828a; margin-top: 2px; font-size: 10px; }
.session-management .session-current { color: #297050 !important; font-size: 10px; }
.session-management-table select.master-column-filter { padding: 1px 5px; }
.session-management .button { min-height: 28px; font-size: 12px; }
.session-management .button.danger { width: 86px; min-height: 26px; padding: 3px 7px; border: 1px solid #dca3a9; border-radius: 3px; color: #952e3b; background: #fcebed; }
.session-management .button.danger:hover:not(:disabled) { color: #fff; background: #a83542; border-color: #a83542; }
.session-management .button.danger:disabled { opacity: 1; color: #97a2a8; background: #f4f6f7; border-color: #e0e5e8; cursor: not-allowed; }
.session-management .session-status { display: inline-flex; align-items: center; gap: 6px; color: #7a8990 !important; }
.session-status::before { content: ''; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #9aa7ac; }
.session-management .session-status.online { color: #177448 !important; }
.session-status.online::before { background: #28a36b; }
.session-management .session-status.disabled { color: #9b6736 !important; }
.session-status.disabled::before { background: #c69354; }
.session-management-audit { margin-top: 18px; border-top: 1px solid #d4dde0; }
.session-management-audit summary { cursor: pointer; font-size: 13px; font-weight: 600; padding: 12px 0; }
.session-management-audit summary > span { margin-left: 8px; font-weight: 400; }
.session-management-table .document-detail-grid-table tbody td.session-empty { height: 72px; color: #7a8990; text-align: center; }
.session-management-error { padding: 10px 12px; border-left: 3px solid #ae3543; color: #ae3543; background: #fceff1; font-size: 12px; }
.operation-audit { margin-top: 22px; border-top: 2px solid var(--theme-document-border, #b8c8c0); }
.operation-audit .button { min-height: 28px; font-size: 12px; }
#operationAuditView > .operation-audit { margin: 0; border-top: 0; overflow: hidden; }
#operationAuditView .operation-audit-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 42px; padding: 8px 12px; }
#operationAuditView .operation-audit-scroll { height: max(340px, calc(100vh - 260px)); overflow: auto; scrollbar-gutter: stable; overflow-anchor: none; background: var(--theme-document-surface, #fff); }
#operationAuditView .operation-audit-table { width: 100%; min-width: 1200px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 12px; color: var(--theme-document-text, #263f49); }
#operationAuditView .operation-audit-table thead { position: sticky; top: 0; z-index: 3; background: var(--theme-document-raised, #f1f5f7); }
#operationAuditView .operation-audit-table th { position: static; border: 1px solid var(--theme-document-border, #b8c7d2); padding: 0 4px; height: 34px; background: var(--theme-document-raised, #f1f5f7); }
#operationAuditView .operation-audit-table .master-column-label { display: flex; align-items: center; justify-content: center; min-height: 32px; position: relative; padding-right: 17px; }
#operationAuditView .operation-audit-table .master-column-heading { display: flex; align-items: stretch; justify-content: space-between; }
#operationAuditView .operation-audit-table .master-column-heading .master-column-label { flex: 1; padding-right: 0; }
#operationAuditView .operation-audit-table .master-column-sort-buttons { position: static; inset: auto; transform: none; display: flex; flex-direction: column; width: 16px; flex: 0 0 16px; border-left: 1px solid var(--theme-document-border, #b8c7d2); }
#operationAuditView .operation-audit-table .master-column-sort-button { width: 16px; height: 16px; padding: 0; border: 0; border-radius: 0; font-size: 8px; color: var(--theme-document-muted, #637780); background: transparent; }
#operationAuditView .operation-audit-table .master-column-sort-button.is-active { color: var(--theme-accent, #23714f); background: var(--theme-document-selected, #e2efe9); }
#operationAuditView .operation-audit-date-filter { display: grid; gap: 3px; }
#operationAuditView .operation-audit-table .master-column-filter-wrap { display: block; }
#operationAuditView .operation-audit-hint { flex: 1; color: var(--theme-document-muted, #637780); font-size: 12px; }
#operationAuditView .operation-audit-error { display: flex; align-items: center; gap: 8px; min-height: 36px; }
#operationAuditView .operation-audit-table .master-column-filter { width: 100%; min-width: 0; height: 25px; color: var(--theme-document-text, #263f49); background: var(--theme-document-field, #fff); border: 1px solid var(--theme-document-border, #b8c7d2); border-radius: 0; padding: 2px 5px; font: inherit; }
#operationAuditView .operation-audit-table .master-filter-row th { padding: 3px; height: 33px; vertical-align: top; }
#operationAuditView .operation-audit-table .operation-audit-row { height: 34px; }
#operationAuditView .operation-audit-row [data-audit-details] { box-sizing: border-box; height: 28px; min-height: 28px; padding: 0 8px; line-height: 26px; }
#operationAuditView .operation-audit-table td,
#operationAuditView .operation-audit-table td span,
#operationAuditView .operation-audit-detail,
#operationAuditView .operation-audit-detail td { -webkit-user-select: text !important; user-select: text !important; }
#operationAuditView .operation-audit-table .operation-audit-row td { box-sizing: border-box; height: 34px; max-height: 34px; padding: 0 8px; border-right: 1px solid var(--theme-document-border, #b8c7d2); border-bottom: 1px solid var(--theme-document-border, #b8c7d2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--theme-document-surface, #fff); }
#operationAuditView .operation-audit-table .operation-audit-row:nth-child(even) td { background: var(--theme-document-raised, #f5f8fa); }
#operationAuditView .operation-audit-table .operation-audit-row:hover td { background: var(--theme-document-hover, #eef5f1); }
#operationAuditView .operation-audit-table .row-number { width: 56px; text-align: center; color: var(--theme-document-muted, #687e87); }
#operationAuditView .operation-audit-table tr.audit-grid-spacer td { padding: 0; border: 0; line-height: 0; background: var(--theme-document-surface, #fff); }
#operationAuditView .operation-audit-footer { min-height: 38px; display: flex; align-items: center; gap: 12px; justify-content: space-between; }
#operationAuditView .operation-audit-detail { max-height: 42vh; overflow: auto; padding: 12px 16px; border-top: 2px solid var(--theme-document-border, #b8c7d2); color: var(--theme-document-text, #263f49); background: var(--theme-document-surface, #fff); }
#operationAuditView .operation-audit-detail header { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
#operationAuditView [data-audit-error] { margin: 0; padding: 8px 12px; color: var(--danger, #b54c43); }
#operationAuditView [hidden] { display: none !important; }
.operation-audit > summary { padding: 16px 0; cursor: pointer; font-size: 16px; font-weight: 650; }
.operation-audit > summary > span { margin-left: 16px; color: var(--theme-document-muted, #637780); font-size: 12px; font-weight: 400; }
.audit-search-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 0 0 16px; }
.audit-search-form > label { display: grid; gap: 6px; font-size: 12px; font-weight: 500; }
.audit-search-form input { width: 180px; min-width: 0; min-height: 32px; padding: 5px 8px; border: 1px solid var(--theme-document-border, #bdcbd1); border-radius: 4px; background: var(--theme-document-field, #fff); color: inherit; font: inherit; }
.audit-search-form input[type="datetime-local"] { width: 206px; }
.audit-search-actions { display: flex; gap: 8px; padding-bottom: 1px; }
.audit-record-list { border: 1px solid var(--theme-document-border, #cfdbd7); border-radius: 6px; overflow: hidden; }
.audit-record + .audit-record { border-top: 1px solid var(--theme-document-border, #dce4e0); }
.audit-record > summary { display: grid; grid-template-columns: 168px minmax(80px, .8fr) minmax(104px, 1fr) minmax(150px, 2fr) 86px; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; font-size: 12px; background: var(--theme-document-raised, #f5f8f6); }
.audit-record > summary:hover { background: var(--theme-document-hover, #eaf3ef); }
.audit-record > summary > :is(strong, b, span) { overflow-wrap: anywhere; font-weight: 500; }
.audit-record > summary time { font-variant-numeric: tabular-nums; color: var(--theme-document-muted, #637780); }
.audit-record > summary .audit-action { text-align: right; font-weight: 650; }
.audit-record > summary .audit-action::after { content: " ＋"; }
.audit-record[open] > summary .audit-action::after { content: " −"; }
.audit-record > [data-audit-detail] { padding: 0 14px; background: var(--theme-document-surface, #fff); }
.audit-change-group { padding: 12px 0 4px; }
.audit-change-group:last-child { padding-bottom: 14px; }
.audit-change-group h4 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 12px; font-weight: 650; }
.audit-change-group h4 span { color: var(--theme-document-muted, #637780); font-weight: 400; }
.audit-change-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.audit-change-table th, .audit-change-table td { padding: 8px 10px; text-align: left; vertical-align: top; border: 1px solid var(--theme-document-border, #dce4e0); white-space: pre-wrap; overflow-wrap: anywhere; }
.audit-change-table thead th { font-weight: 600; background: var(--theme-document-raised, #f5f8f6); }
.audit-change-table th:first-child { width: 160px; }
.audit-change-table tbody th { font-weight: 500; }
.audit-change-table tbody td:last-child { background: var(--theme-document-selected, #f0f8f2); }
.audit-no-details { margin: 0; padding: 18px 14px; font-size: 12px; color: var(--theme-document-muted, #637780); }
.audit-list-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; font-size: 12px; color: var(--theme-document-muted, #637780); }
@media (max-width: 900px) {
  .audit-record > summary { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .audit-record > summary .audit-action { text-align: left; }
  .audit-change-table th:first-child { width: 100px; }
  .operation-audit > summary > span { display: block; margin: 6px 0 0; }
}
@media (max-width: 760px) {
  .session-management-header { align-items: flex-start; }
  .session-management-tools { width: 100%; justify-content: space-between; }
  .session-management-metrics { gap: 12px 16px; }
  .session-metric { gap: 8px; padding-right: 16px; }
  .session-metric strong { font-size: 18px; }
}
#masterView .is-reference-editing .master-choice-cell-label { visibility: hidden; }
#masterView .master-reference-query-input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; box-sizing: border-box; border: 1px solid var(--accent); border-radius: 0; padding: 0 6px; color: inherit; background: #fff; font: inherit; text-align: center; outline: none; }

@media screen {
  :root[data-system-theme] {
    --nav: var(--theme-chrome);
    --topbar-bg: var(--theme-chrome);
    --topbar-raised: var(--theme-chrome-raised);
    --topbar-separator: var(--theme-chrome-border);
    --accent: var(--theme-accent);
    --accent-dark: var(--theme-accent-dark);
    --accent-soft: var(--theme-accent-soft);
    --button-focus: var(--theme-accent);
    --button-hover-border: color-mix(in srgb, var(--theme-accent) 48%, #fff);
    --button-hover-background: color-mix(in srgb, var(--theme-accent-soft) 65%, #fff);
    --button-active-background: var(--theme-accent-soft);
    --action-default-color: var(--theme-accent-dark);
    --action-default-border: color-mix(in srgb, var(--theme-accent) 36%, #fff);
    --action-default-background: color-mix(in srgb, var(--theme-accent-soft) 75%, #fff);
  }
  :root:not([data-system-theme="black"]) {
    --ink: #000;
    --muted: #333;
  }
  :root:not([data-system-theme="black"]) .data-view :is(table, #masterTable) .master-choice-cell-label {
    color: var(--theme-document-ink, #000);
    -webkit-text-fill-color: var(--theme-document-ink, #000);
  }
  /* Screen text is shared across archives, documents and their floating pickers. */
  :root:not([data-system-theme="black"]) :is(
    .choice-modal table, .choice-modal table th, .choice-modal table td,
    .choice-modal .master-column-filter, .choice-modal .document-grid-cell-control,
    .choice-modal .box-spec-readonly-value, .choice-modal .master-dimension-input,
    .choice-modal .master-box-spec-input, .choice-modal .master-choice-cell-label,
    .choice-modal .master-dimension-unit, .choice-modal .master-box-spec-unit,
    .modal-head h2, .modal-body label, .user-account-menu button,
    .dashboard-pending-quote-table td strong, .dashboard-role-tabbar-label,
    .dashboard-role-tab-copy strong, .session-management h2, .session-section-heading h3
  ) {
    color: #000;
    -webkit-text-fill-color: #000;
  }
  :root[data-system-theme="white"] {
    --page: #f4f5f6;
    --surface: #fff;
    --line: #c5ccd2;
    --nav-muted: #333;
  }
  :root[data-system-theme="white"] :is(
    .sidebar, .topbar, .topbar-brand, .topbar-brand-copy strong, .topbar-brand-copy small,
    .topbar-brand-toggle, .user-menu-button, .user-menu-label, .user-menu-copy small,
    .nav-group > .nav-label, .nav-group[open] > .nav-label, .nav-item,
    .nav-group .nav-group-chevron, .nav-group[open] > .nav-label .nav-group-chevron,
    .sidebar-collapse-button, .sidebar-collapse-arrows,
    .workspace-meta, .workspace-kicker, .workspace-context strong, .workspace-tab,
    .workspace-tab-count, .workspace-tab-count strong, .workspace-tab-close,
    .workspace-tab-step, .connection-updated-at
  ) { color: #000; }
  :root[data-system-theme="white"] .user-menu-chevron { stroke: #000; }
  :root[data-system-theme="white"] :is(.nav-item:hover, .nav-group > .nav-label:hover, .sidebar-collapse-button:hover) {
    color: #000;
    background: #edf0f2;
  }
  :root[data-system-theme="white"] .sidebar-collapse-button:hover .sidebar-collapse-arrows { color: #000; }
  :root[data-system-theme="white"] .sidebar .nav-group .nav-label .nav-group-chevron { color: #333; }
  :root[data-system-theme="white"] .sidebar .nav-group[open] .nav-label .nav-group-chevron { color: #333; }
  :root[data-system-theme="white"] .menu-toggle { color: #000; border-color: #c5ccd2; }
  :root[data-system-theme="white"] .workspace-tab { background: #f0f2f4; border-color: #c5ccd2; }
  :root[data-system-theme="white"] .workspace-tab.is-active { color: #000; background: #fff; }
  :root[data-system-theme="white"] .workspace-tab-close:hover { color: #8f2f2c; background: #f5e9e8; }
  :root[data-system-theme="white"] .topbar { box-shadow: 0 2px 8px rgba(23, 33, 43, .12); }
  :root[data-system-theme="white"] .sidebar { border-right: 1px solid #c5ccd2; }
  :root[data-system-theme="white"] .sidebar-foot { border-color: #c5ccd2; }
  :root[data-system-theme="white"] .topbar-brand-product { color: #405817; border-color: #c5ccd2; }
  :root[data-system-theme="white"] .topbar-brand:hover .topbar-brand-toggle { color: #000; background: #e8edf0; }
  :root[data-system-theme="white"] .connection-status-row { color: #805200; }
  :root[data-system-theme="white"] .connection-status-row[data-connection-quality="good"] { color: #166534; }
  :root[data-system-theme="white"] .connection-status-row[data-connection-quality="slow"] { color: #805200; }
  :root[data-system-theme="white"] .connection-status-row:is([data-connection-quality="poor"], [data-connection-status="offline"]) { color: #a52727; }
  :root[data-system-theme="white"] .connection-updated-at.is-stale { color: #a52727; }
  :root[data-system-theme="white"] .choice-modal :is(.modal-head, .sales-quote-material-table th) { background: #f0f2f4; }
  :root[data-system-theme="white"] .choice-modal :is(.modal-body, .sales-quote-material-table td) { background: #fff; }
  :root[data-system-theme="white"] .choice-modal .sales-quote-material-table tr:is(:hover, .is-selected) td { background: #e2e8ed; }
  :root[data-system-theme]:not([data-system-theme="classic"]) {
    --nav-muted: #c0cbd1;
  }
  :root[data-system-theme]:not([data-system-theme="classic"]) .sidebar-collapse-button {
    border-color: var(--theme-chrome-border);
    color: var(--nav-muted);
    background: var(--theme-chrome-raised);
  }
  :root[data-system-theme]:not([data-system-theme="classic"]) :is(.sidebar-collapse-button:hover, .nav-item:hover) {
    color: #fff;
    background: color-mix(in srgb, var(--theme-chrome-raised) 85%, #fff);
    border-color: color-mix(in srgb, var(--theme-focus) 45%, var(--theme-chrome));
  }
  :root[data-system-theme]:not([data-system-theme="classic"]) .sidebar-collapse-arrows {
    color: var(--theme-focus);
  }
  /* Group headings stay quiet; the filled surface identifies only the current page. */
  :root[data-system-theme] .nav-group > .nav-label {
    color: #c6d0d1;
    border-color: transparent;
    border-bottom-color: color-mix(in srgb, var(--theme-chrome-border) 60%, transparent);
    background: transparent;
  }
  :root[data-system-theme] .nav-group[open] > .nav-label { color: #dbe4e4; }
  :root[data-system-theme] .nav-group > .nav-label:hover {
    color: #edf3f0;
    background: color-mix(in srgb, var(--theme-chrome) 96%, #fff);
    border-bottom-color: var(--theme-chrome-border);
  }
  :root[data-system-theme] .nav-group > .nav-label:active {
    background: color-mix(in srgb, var(--theme-chrome) 92%, #fff);
  }
  :root[data-system-theme] .nav-group .nav-group-chevron { color: #a7bab4; }
  :root[data-system-theme] .nav-group[open] > .nav-label .nav-group-chevron { color: #b5c5c8; }
  :root[data-system-theme] .nav-item { color: #d0d9df; }
  :root[data-system-theme] .nav-item::before { background: var(--theme-chrome-border); }
  :root[data-system-theme] .nav-item:active { background: var(--theme-chrome); }
  :root[data-system-theme] .nav-item.is-active {
    color: var(--theme-accent-dark);
    background: color-mix(in srgb, var(--theme-accent-soft) 85%, var(--theme-chrome));
    border-color: transparent;
  }
  :root[data-system-theme] .nav-item.is-active:hover {
    color: var(--theme-accent-dark);
    background: color-mix(in srgb, var(--theme-accent-soft) 92%, var(--theme-chrome));
    border-color: transparent;
  }
  :root[data-system-theme] .nav-item.is-active::before { background: var(--theme-focus); }
  :root[data-system-theme] .nav-group:has(.nav-item.is-active):not([open]) > .nav-label {
    border-bottom-color: color-mix(in srgb, var(--theme-focus) 60%, var(--theme-chrome));
    box-shadow: none;
  }
  :root[data-system-theme]:not([data-system-theme="classic"]) :is(.nav-group > .nav-label, .nav-item, .topbar-brand, .workspace-tab-select):focus-visible {
    outline-color: var(--theme-focus);
  }
  :root[data-system-theme]:not([data-system-theme="classic"]) .sidebar-collapse-input:focus-visible + .sidebar-collapse-button { outline-color: var(--theme-focus); }
  :root[data-system-theme]:not([data-system-theme="classic"]) .workspace-tab.is-active { color: var(--theme-accent-dark); }
  :root[data-system-theme]:not([data-system-theme="classic"]) .workspace-tab.is-active::before { background: var(--theme-accent); }
  :root[data-system-theme]:not([data-system-theme="classic"]) .workspace-tab.is-active::after { background: var(--theme-focus); }
  :root[data-system-theme]:not([data-system-theme="classic"]) .workspace-tab.is-active .workspace-tab-subtitle { color: var(--theme-accent-dark); }
  :root[data-system-theme="warm"] {
    --page: #f4f0e6;
    --surface: #fffdf6;
    --line: #ddd7ca;
  }
  :root[data-system-theme="warm"] :is(.dashboard-role-tabbar, .data-view > .panel > .toolbar) { background: #eee8da; }
  :root[data-system-theme="warm"] .workspace-tab.is-active { background: #fffdf6; }

  /* Paper previews retain their print colors; document grids are themed below. */
  :root[data-system-theme="black"] { --page: #202629; }
  :root[data-system-theme="black"] :is(.main, .content) { background: #202629; }
  :root[data-system-theme="black"] .page-heading { color: #d2dade; background: #2e373d; border-color: #465057; }
  :root[data-system-theme="black"] .page-heading :is(h1, h2, h3) { color: #d2dade; }
  :root[data-system-theme="black"] .page-heading :is(p, small, .eyebrow) { color: #a9b5ba; }
  :root[data-system-theme="black"] .metric { background: #252d32; border-color: #465057; color: #d2dade; }
  :root[data-system-theme="black"] .metric :is(.metric-label, .metric-note) { color: #a9b5ba; }
  :root[data-system-theme="black"] .workspace-tab.is-active { color: #d2dade; background: #2e373d; border-color: #465057; }
  :root[data-system-theme="black"] .workspace-tab.is-active .workspace-tab-select { color: #d2dade; }
  :root[data-system-theme="black"] .workspace-tab.is-active .workspace-tab-select .workspace-tab-subtitle { color: #a9b5ba; }
  :root[data-system-theme="black"] .dashboard-role-tabbar { background: #252d32; border-color: #465057; }
  :root[data-system-theme="black"] .dashboard-role-tabbar-label { color: #d2dade; border-color: #465057; background: #2e373d; }
  :root[data-system-theme="black"] .dashboard-role-tab { color: #c5d0d6; }
  :root[data-system-theme="black"] .dashboard-role-tab:hover { color: #d2dade; background: #354046; }
  :root[data-system-theme="black"] .dashboard-role-tab.is-active { color: #d2dade; background: #385052; }
  :root[data-system-theme="black"] .dashboard-role-tab-copy small,
  :root[data-system-theme="black"] .dashboard-role-tab.is-active .dashboard-role-tab-copy small { color: #b7c5c9; }
  :root[data-system-theme="black"] :is(.session-management, .session-management h2, .session-section-heading h3, .session-management-audit summary) { color: #d2dade; }
  :root[data-system-theme="black"] :is(.session-management-title > span, .session-management-tools > span, .session-metric, .session-section-heading > span, .session-management-audit summary > span) { color: #a9b5ba; }
  :root[data-system-theme="black"] .session-metric:not(.online):not(.visitors) strong { color: #d2dade; }
  :root[data-system-theme="black"] .session-metric.online strong { color: #8ac7a5; }
  :root[data-system-theme="black"] .session-metric.visitors strong { color: #cebc8a; }
  :root[data-system-theme="black"] .session-management-table { color: #17212b; }
  :root[data-system-theme="black"] :is(.topbar-brand-copy strong, .user-menu-button) { color: #d2dade; }
  :root[data-system-theme="black"] .sidebar .nav-item.is-active { color: #d2dade; background: #385052; }
  :root[data-system-theme="black"] .sidebar .nav-item.is-active:hover { color: #d2dade; background: #405d5f; }
  :root[data-system-theme="black"] .sidebar .nav-item:not(.is-active) { color: #b8c4ca !important; }
  :root[data-system-theme="black"] .data-view > .panel > .toolbar { color: #d2dade; background: #2e373d; border-color: #465057; }
  :root[data-system-theme="black"] .data-view > .panel > .toolbar :is(label, .search-box) { color: #a9b5ba; }
  :root[data-system-theme="black"] .data-view > .panel > .toolbar :is(input, select, textarea) { color: #d2dade; background: #293238; }

  .user-account-menu .system-theme-trigger { display: flex; align-items: center; gap: 8px; }
  .system-theme-swatch { display: inline-block; width: 14px; height: 14px; flex: 0 0 14px; border: 1px solid rgba(0, 0, 0, .18); border-radius: 3px; background: var(--theme-chrome); }
  .system-theme-chevron { width: 6px; height: 6px; flex: 0 0 6px; margin-left: auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(135deg); }
  .system-theme-menu {
    position: fixed;
    z-index: 90;
    width: 172px;
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    box-sizing: border-box;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #cdd6dc;
    border-radius: 6px;
    color: #17212b;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .23);
    animation: system-theme-menu-enter .12s ease-out both;
  }
  .system-theme-menu[hidden] { display: none; }
  .system-theme-option {
    --theme-option-bg: #195753;
    display: flex;
    width: 100%;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #fff;
    background: var(--theme-option-bg);
    font: inherit;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: 0;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .12s ease, box-shadow .12s ease;
  }
  .system-theme-option:last-child { margin-bottom: 0; }
  .system-theme-option[data-system-theme-choice="classic"] { --theme-option-bg: #195753; }
  .system-theme-option[data-system-theme-choice="ocean"] { --theme-option-bg: #195b85; }
  .system-theme-option[data-system-theme-choice="forest"] { --theme-option-bg: #295e43; }
  .system-theme-option[data-system-theme-choice="graphite"] { --theme-option-bg: #48545f; }
  .system-theme-option[data-system-theme-choice="rose"] { --theme-option-bg: #994963; }
  .system-theme-option[data-system-theme-choice="black"] { --theme-option-bg: #293238; }
  .system-theme-option[data-system-theme-choice="warm"] { --theme-option-bg: #786344; }
  .system-theme-option[data-system-theme-choice="white"] {
    --theme-option-bg: #fff;
    color: #000;
    border-color: #aeb8bf;
  }
  .system-theme-option:hover { background: color-mix(in srgb, var(--theme-option-bg) 85%, #000); }
  .system-theme-option[aria-checked="true"] { border-color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); }
  .system-theme-option[data-system-theme-choice="white"][aria-checked="true"] {
    border-color: #455a64;
    box-shadow: inset 0 0 0 1px #455a64;
  }
  .system-theme-option:focus-visible { outline: 2px solid #17212b; outline-offset: -3px; box-shadow: inset 0 0 0 3px #fff; }
  .system-theme-check { display: inline-flex; width: 16px; height: 16px; flex: 0 0 16px; align-items: center; justify-content: center; margin-left: auto; visibility: hidden; }
  .system-theme-check::before { width: 5px; height: 9px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); content: ""; }
  .system-theme-check svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .system-theme-option[aria-checked="true"] .system-theme-check { visibility: visible; }
  @keyframes system-theme-menu-enter { from { opacity: 0; translate: 0 -3px; } to { opacity: 1; translate: 0 0; } }
  @media (prefers-reduced-motion: reduce) {
    .system-theme-menu { animation: none; }
    .system-theme-option { transition: none; }
  }

  :root[data-system-theme] .data-view {
    --theme-document-ink: #000;
    --theme-document-muted: #333;
    --theme-document-surface: #e4f0ed;
    --theme-document-raised: #d4e6e0;
    --theme-document-field: #f0f7f4;
    --theme-document-filter: var(--theme-document-field);
    --theme-document-border: #aabfb8;
    --theme-document-hover: #d9eae4;
    --theme-document-selected: #c4ddd3;
    --theme-document-locked: #d8e1dc;
    --theme-document-danger-background: #ffe4e6;
    --theme-document-danger-ink: #922f3c;
    --theme-document-success-ink: #176b3a;
    --theme-document-country-hover: #d8eafa;
    --surface: var(--theme-document-surface);
    --line: var(--theme-document-border);
    --ink: var(--theme-document-ink);
    --muted: var(--theme-document-muted);
    --control-locked-background: var(--theme-document-locked);
    --control-locked-border: var(--theme-document-border);
    --control-locked-color: var(--theme-document-ink);
    color: var(--theme-document-ink);
    background: var(--theme-document-surface);
    scrollbar-color: var(--theme-document-border) var(--theme-document-surface);
  }
  :root[data-system-theme="ocean"] .data-view {
    --theme-document-surface: #e2eef6;
    --theme-document-raised: #cfe2ef;
    --theme-document-field: #eff6fa;
    --theme-document-border: #a9bfcd;
    --theme-document-hover: #d5e7f2;
    --theme-document-selected: #bdd8e9;
    --theme-document-locked: #d6e1e8;
  }
  :root[data-system-theme="forest"] .data-view {
    --theme-document-surface: #e6f0e3;
    --theme-document-raised: #d4e5cf;
    --theme-document-field: #f1f7ee;
    --theme-document-border: #afc0a8;
    --theme-document-hover: #dcebd6;
    --theme-document-selected: #c8ddbf;
    --theme-document-locked: #dce3d6;
  }
  :root[data-system-theme="graphite"] .data-view {
    --theme-document-surface: #e6eaee;
    --theme-document-raised: #d6dee5;
    --theme-document-field: #f1f4f7;
    --theme-document-border: #b1bec9;
    --theme-document-hover: #dce3e9;
    --theme-document-selected: #c6d2dc;
    --theme-document-locked: #d9dfe4;
  }
  :root[data-system-theme="rose"] .data-view {
    --theme-document-surface: #f3e5eb;
    --theme-document-raised: #e9d5df;
    --theme-document-field: #faf0f5;
    --theme-document-border: #ccb2bf;
    --theme-document-hover: #eedce5;
    --theme-document-selected: #e2c8d6;
    --theme-document-locked: #e6dbe0;
  }
  :root[data-system-theme="warm"] .data-view {
    --theme-document-surface: #f6f1e5;
    --theme-document-raised: #ece5d5;
    --theme-document-field: #fbf7ee;
    --theme-document-border: #c9c0ad;
    --theme-document-hover: #eee6d3;
    --theme-document-selected: #e5dcc6;
    --theme-document-locked: #e8e2d6;
  }
  :root[data-system-theme="white"] .data-view {
    --theme-document-surface: #fff;
    --theme-document-raised: #f0f2f4;
    --theme-document-field: #fff;
    --theme-document-border: #bfc7ce;
    --theme-document-hover: #f2f4f6;
    --theme-document-selected: #e2e8ed;
    --theme-document-locked: #edf0f2;
  }
  :root[data-system-theme="black"] .data-view {
    --theme-document-ink: #d2dade;
    --theme-document-muted: #a9b5ba;
    --theme-document-surface: #252d32;
    --theme-document-raised: #2e373d;
    --theme-document-field: #293238;
    --theme-document-filter: #3b484f;
    --theme-document-border: #465057;
    --theme-document-hover: #324448;
    --theme-document-selected: #385052;
    --theme-document-locked: #353f44;
    --theme-document-danger-background: #583139;
    --theme-document-danger-ink: #ffc1c8;
    --inventory-negative-background: #873945;
    --inventory-negative-ink: #fff5f5;
    --theme-document-success-ink: #a6e4bb;
    --theme-document-country-hover: #2e506d;
    --grid-highlight-green: #274b39;
    --grid-highlight-yellow: #544a24;
    --grid-highlight-blue: #243e55;
    --action-default-background: #354248;
    --action-default-color: #c5d0d5;
    --action-default-border: #596b73;
    --action-create-background: #304e48;
    --action-create-color: #c0e4da;
    --action-create-border: #628d7d;
    --action-insert-background: #304b51;
    --action-insert-color: #bad6dc;
    --action-insert-border: #5b7b82;
    --action-copy-background: #3e4358;
    --action-copy-color: #cbd0e5;
    --action-copy-border: #707792;
    --action-save-background: #304a46;
    --action-save-color: #bed8d0;
    --action-save-border: #5c7e73;
    --action-submit-background: #344553;
    --action-submit-color: #c0d2e3;
    --action-submit-border: #637d94;
    --action-approve-background: #31563c;
    --action-approve-color: #d0ecd6;
    --action-approve-border: #739c79;
    --action-preview-background: #493e52;
    --action-preview-color: #d8c9e1;
    --action-preview-border: #7d6b8b;
    --action-format-background: #3d4657;
    --action-format-color: #c9d1e0;
    --action-format-border: #6d7b94;
    --action-fill-background: #514735;
    --action-fill-color: #e0d1b1;
    --action-fill-border: #8a7756;
    --action-export-background: #414d38;
    --action-export-color: #ced9bd;
    --action-export-border: #73815f;
    --action-refresh-background: #334b57;
    --action-refresh-color: #c0d7e1;
    --action-refresh-border: #608293;
    --action-delete-background: #543d3d;
    --action-delete-color: #e6c4c0;
    --action-delete-border: #906c67;
    --action-release-background: #524536;
    --action-release-color: #dfcfb8;
    --action-release-border: #8c765c;
    --action-follow-background: #513e48;
    --action-follow-color: #dfc6d2;
    --action-follow-border: #88697a;
    --action-select-background: #354b4d;
    --action-select-color: #c3d8d8;
    --action-select-border: #638184;
    --button-disabled-color: #87949b;
    --button-disabled-border: #404c53;
    --button-disabled-background: #2d363b;
    color-scheme: dark;
  }
  :root[data-system-theme] .data-view :is(
    .panel, .table-wrap, #masterTableWrap, .sales-quote-body-pane,
    .sales-quote-body-split, .sales-quote-body-main, .sales-quote-body-side,
    .sales-order-packing-view, .sales-order-packing-pane, .packaging-outbound-pane
  ) {
    color: var(--theme-document-ink);
    border-color: var(--theme-document-border);
    background: var(--theme-document-surface);
  }
  :root[data-system-theme] .data-view :is(
    .toolbar, #purchaseQuoteDetailToolbar, .page-heading,
    .sales-quote-header-pane, .sales-quote-header-form,
    #packagingOutboundHeaderPane, #packagingOutboundHeaderForm,
    .sales-quote-header-splitter, .sales-quote-body-splitter,
    .sales-order-body-modebar, .sales-order-packing-splitter,
    .sales-order-packing-toolbar, .sales-order-packing-container-toolbar,
    .purchase-quote-detail-heading, .packaging-outbound-pane-heading,
    .sales-quote-detail-summary-wrap, .purchase-quote-detail-summary-wrap,
    .module-summary-wrap, .packaging-outbound-summary-wrap,
    .sales-order-packing-summary, .sales-order-packing-overview, .table-foot
  ) {
    color: var(--theme-document-ink);
    border-color: var(--theme-document-border);
    background: var(--theme-document-raised);
  }
  :root[data-system-theme] .data-view :is(
    .page-heading h1, .page-heading h2, .page-heading h3, .toolbar label,
    .toolbar .search-box, .toolbar-status, .document-header-form label,
    .document-header-form label > span::after, .table-foot
  ) { color: var(--theme-document-ink); }
  :root[data-system-theme] .data-view :is(
    .document-grid-table, .document-detail-grid-table, .document-detail-summary-table,
    .sales-order-packing-summary-table, #masterTable, #moduleView.is-master-style #moduleTable
  ) {
    --document-grid-line-color: var(--theme-document-border);
    --control-locked-background: var(--theme-document-locked);
    --control-locked-border: var(--theme-document-border);
    --control-locked-color: var(--theme-document-ink);
    color: var(--theme-document-ink);
  }
  /* The module grid has ID-specific legacy rules; include that specificity here. */
  :root[data-system-theme] .data-view :is(table, #moduleView #moduleTable) > thead > tr > th {
    color: var(--theme-document-ink);
    background: var(--theme-document-raised);
    border-color: var(--theme-document-border);
    box-shadow: inset 0 -1px 0 var(--theme-document-border);
  }
  :root[data-system-theme] .data-view :is(table, #moduleView #moduleTable) > tbody > tr > td {
    color: var(--theme-document-ink);
    border-color: var(--theme-document-border);
    background: var(--theme-document-cell-background, var(--theme-document-surface));
  }
  :root[data-system-theme] .data-view table > tbody > tr:hover {
    --theme-document-cell-background: var(--theme-document-hover);
  }
  :root[data-system-theme] .data-view table > tbody > tr:is(.is-selected, .is-current-row, .is-active-purchase-source) {
    --theme-document-cell-background: var(--theme-document-selected);
  }
  :root[data-system-theme] .data-view table:is(.is-approved-locked) > tbody > tr,
  :root[data-system-theme] .data-view table > tbody > tr:is(.is-purchase-locked, .is-complete),
  :root[data-system-theme] .data-view table > tbody > tr > td:is(
    [data-control-locked="true"], :has([data-control-locked="true"]),
    .sales-quote-purchase-derived-cell, .sales-order-source-locked-cell,
    .is-packaging-outbound-field-locked, .master-status-cell
  ) { --theme-document-cell-background: var(--theme-document-locked); }
  :root[data-system-theme] #moduleView.is-master-style #moduleTable tbody tr:not(.module-empty-row):hover .master-status-cell,
  :root[data-system-theme] #moduleView.is-master-style #moduleTable .module-data-row.is-selected .master-status-cell {
    background: var(--theme-document-cell-background, var(--theme-document-locked));
  }
  :root[data-system-theme] .data-view :is(
    .document-detail-summary-table, .sales-order-packing-summary-table
  ) > tbody > tr { --theme-document-cell-background: var(--theme-document-raised); }
  :root[data-system-theme] #moduleView.is-master-style #moduleTable .module-data-row.is-country-summary:is(.is-selected, .is-current-row, :hover) > td {
    background: var(--theme-document-country-hover) !important;
  }
  :root[data-system-theme] .data-view table > tbody > tr > td:is(
    .purchase-order-packaging-uncertain,
    .inventory-movement-quantity-decrease
  ) {
    --theme-document-cell-background: var(--theme-document-danger-background);
    --theme-document-ink: var(--theme-document-danger-ink);
  }
  /* Disabled archive cells retain their status colors through selection and locking. */
  :root[data-system-theme] #masterView #masterTable > tbody > .master-row.is-disabled > td {
    --theme-document-cell-background: var(--theme-document-danger-background);
    --theme-document-ink: var(--theme-document-danger-ink);
    --control-locked-color: var(--theme-document-danger-ink);
    --danger: var(--theme-document-danger-ink);
  }
  :root[data-system-theme] #masterView #masterTable > tbody > .master-row.is-disabled:is(.is-selected, .is-current-row, :hover) > td {
    --theme-document-cell-background: color-mix(in srgb, var(--theme-document-danger-background) 88%, var(--theme-document-danger-ink));
  }
  :root[data-system-theme] #moduleView.is-master-style #moduleTable td.inventory-movement-quantity-increase,
  :root[data-system-theme] #moduleSummaryTable td.inventory-movement-quantity-increase {
    color: var(--theme-document-success-ink);
    background: var(--grid-highlight-green) !important;
  }
  :root[data-system-theme] #moduleView.is-master-style #moduleTable td.inventory-movement-quantity-decrease,
  :root[data-system-theme] #moduleSummaryTable td.inventory-movement-quantity-decrease {
    color: var(--theme-document-danger-ink);
    background: var(--theme-document-danger-background) !important;
  }
  :root[data-system-theme] .data-view :is(
    .document-header-form, #packagingOutboundHeaderForm, .toolbar
  ) :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select, .sales-quote-choice-button),
  :root[data-system-theme] .data-view :is(.master-column-filter, .master-reference-query-input) {
    color: var(--theme-document-ink);
    -webkit-text-fill-color: var(--theme-document-ink);
    border-color: var(--theme-document-border);
    background: var(--theme-document-field);
  }
  :root[data-system-theme] .data-view .document-header-form :is(input[readonly], [data-control-locked="true"], :disabled) {
    color: var(--theme-document-ink);
    -webkit-text-fill-color: var(--theme-document-ink);
    border-color: var(--theme-document-border);
    background: var(--theme-document-locked);
  }
  :root[data-system-theme] .data-view :is(
    .sales-quote-header-form, .document-header-form
  ) :is(input, textarea, select):not([data-control-locked="true"]):not(:disabled) {
    color: var(--theme-document-ink) !important;
    -webkit-text-fill-color: var(--theme-document-ink);
    border-color: var(--theme-document-border) !important;
    background: var(--theme-document-field) !important;
  }
  :root[data-system-theme] .data-view :is(table, #moduleView #moduleTable) :is(
    input:not([type="checkbox"]):not([type="radio"]):not(.master-column-filter), textarea, select:not(.master-column-filter),
    .sales-quote-material-button, .sales-quote-brand-button, .document-grid-cell-control,
    .expedite-cell-button, .box-spec-readonly-value, .sales-quote-currency-field
  ) {
    color: var(--theme-document-ink);
    -webkit-text-fill-color: var(--theme-document-ink);
    background: transparent;
  }
  :root[data-system-theme] .data-view :is(table, #moduleView #moduleTable) .master-column-filter {
    color: var(--theme-document-ink);
    background: var(--theme-document-filter);
    border-color: var(--theme-document-border);
  }
  :root[data-system-theme] .data-view .master-column-sort-button:not(.is-active):not([aria-pressed="true"]) {
    color: var(--theme-document-muted);
    background: var(--theme-document-raised);
    border-color: var(--theme-document-border);
  }
  :root[data-system-theme] .data-view :is(input, textarea)::placeholder {
    color: var(--theme-document-muted);
    -webkit-text-fill-color: var(--theme-document-muted);
    opacity: 1;
  }
  :root[data-system-theme="black"] .data-view .document-grid-table td[data-document-cell-mark-color="red"] {
    --document-cell-mark-background: #583139;
  }
  :root[data-system-theme="black"] .data-view .document-grid-table td[data-document-cell-mark-color="orange"] {
    --document-cell-mark-background: #594127;
  }
  :root[data-system-theme="black"] .data-view .document-grid-table td[data-document-cell-mark-color="purple"] {
    --document-cell-mark-background: #453650;
  }
  :root[data-system-theme="black"] .data-view .document-grid-table td[data-document-cell-mark-color="gray"] {
    --document-cell-mark-background: #3b454d;
  }
  :root[data-system-theme] .data-view :is(
    .sales-quote-header-splitter-controls, .sales-quote-body-splitter-controls,
    .sales-quote-header-splitter-controls button, .sales-quote-body-splitter-controls button,
    .sales-order-body-mode-tabs, .sales-order-body-mode-tabs button,
    .sales-order-packing-container-tab
  ) {
    color: var(--theme-document-muted);
    border-color: var(--theme-document-border);
    background: var(--theme-document-raised);
  }
  :root[data-system-theme] .data-view :is(
    .sales-order-body-mode-tabs button[aria-selected="true"],
    .sales-order-packing-container-tab.is-active
  ) {
    color: var(--theme-document-ink);
    background: var(--theme-document-selected);
  }
  :root[data-system-theme] .data-view .master-image-cell-content.is-empty {
    color: var(--theme-document-muted);
    border-color: var(--theme-document-border);
    background: var(--theme-document-field);
  }
  :root[data-system-theme] .data-view table > tbody > tr:is(
    .document-virtual-spacer, .master-virtual-spacer, .archive-module-virtual-spacer
  ) > td { background: transparent; }
}
@media print {
  #systemThemeMenu { display: none !important; }
}

/* Invalid templates remain readable and keep their warning through selection. */
@media screen {
  :is(#salesQuoteDetailTable, #purchaseQuoteDetailTable) > tbody > .is-summary-invalid > td {
    --theme-document-cell-background: var(--theme-document-danger-background, #fde9e9);
    --theme-document-ink: var(--theme-document-danger-ink, #a52a35);
    --control-locked-color: var(--theme-document-danger-ink, #a52a35);
    background: var(--theme-document-cell-background) !important;
    color: var(--theme-document-ink) !important;
  }
  :is(#salesQuoteDetailTable, #purchaseQuoteDetailTable) > tbody > .is-summary-invalid:is(.is-selected, .is-current-row, :hover) > td {
    --theme-document-cell-background: color-mix(in srgb, var(--theme-document-danger-background, #fde9e9) 90%, var(--theme-document-danger-ink, #a52a35));
  }
  :is(#salesQuoteDetailTable, #purchaseQuoteDetailTable) > tbody > .is-summary-invalid :is(input:not([type="checkbox"]), .sales-quote-currency-prefix) {
    color: var(--theme-document-danger-ink, #a52a35) !important;
    -webkit-text-fill-color: var(--theme-document-danger-ink, #a52a35);
    background: transparent !important;
  }
}

/* Persisted duplicate materials stay visible and editable until corrected. */
#masterView #masterTable > tbody > .master-row.is-product-paused > td {
  --theme-document-cell-background: var(--grid-highlight-yellow);
  background: var(--grid-highlight-yellow) !important;
  color: var(--theme-document-ink, var(--ink));
}

#masterView #masterTable > tbody > .master-row.is-product-paused:is(.is-selected, .is-current-row, :hover) > td {
  --theme-document-cell-background: color-mix(in srgb, var(--grid-highlight-yellow) 90%, var(--theme-document-ink, var(--ink)));
  background: var(--theme-document-cell-background) !important;
}

#masterView #masterTable > tbody > .master-row.is-product-paused .master-cell-input {
  background: transparent;
  color: var(--theme-document-ink, var(--ink));
  -webkit-text-fill-color: var(--theme-document-ink, var(--ink));
}

#masterView #masterTable .master-status-cell.is-status-paused {
  color: var(--theme-document-ink, var(--ink));
  cursor: default;
}

/* Status colors survive read-only fields, selection and document themes. */
@media screen {
  :is([data-document-status="draft"], .sales-quote-status-pill[data-status="draft"]) {
    --document-status-background: var(--action-default-background);
    --document-status-color: var(--action-default-color);
    --document-status-border: var(--action-default-border);
  }
  :is([data-document-status="created"], .sales-quote-status-pill[data-status="created"]) {
    --document-status-background: var(--action-create-background);
    --document-status-color: var(--action-create-color);
    --document-status-border: var(--action-create-border);
  }
  :is([data-document-status="submitted"], .sales-quote-status-pill[data-status="submitted"]) {
    --document-status-background: var(--action-submit-background);
    --document-status-color: var(--action-submit-color);
    --document-status-border: var(--action-submit-border);
  }
  :is([data-document-status="approved"], .sales-quote-status-pill[data-status="approved"]) {
    --document-status-background: var(--action-approve-background);
    --document-status-color: var(--action-approve-color);
    --document-status-border: var(--action-approve-border);
  }
  :is([data-document-status="reapproved"], .sales-quote-status-pill[data-status="reapproved"],
    [data-document-status="inventory-taken"], .sales-quote-status-pill[data-status="inventory-taken"]) {
    --document-status-background: var(--action-fill-background);
    --document-status-color: var(--action-fill-color);
    --document-status-border: var(--action-fill-border);
  }
  :is([data-document-status="posted"], .sales-quote-status-pill[data-status="posted"]) {
    --document-status-background: var(--action-preview-background);
    --document-status-color: var(--action-preview-color);
    --document-status-border: var(--action-preview-border);
  }
  :is([data-document-status="cancelled"], .sales-quote-status-pill[data-status="cancelled"]) {
    --document-status-background: var(--action-delete-background);
    --document-status-color: var(--action-delete-color);
    --document-status-border: var(--action-delete-border);
  }
  :root .data-view .document-status-control[data-document-status]:not([data-document-status=""]),
  :root .document-status-badge[data-document-status],
  :root .sales-quote-status-pill[data-status]:not([data-status=""]) {
    color: var(--document-status-color) !important;
    background: var(--document-status-background) !important;
    border-color: var(--document-status-border) !important;
    -webkit-text-fill-color: var(--document-status-color) !important;
    font-weight: 600;
    opacity: 1;
    cursor: default;
  }
  .document-status-badge {
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    line-height: 20px;
    text-align: center;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

:where([data-receipt-action="submit"], [data-purchase-inbound-action="submit"],
  [data-sales-outbound-action="submit"], [data-packaging-outbound-action="submit"],
  [data-other-inventory-action="submit"]) {
  --button-action-background: var(--action-submit-background);
  --button-action-color: var(--action-submit-color);
  --button-action-border: var(--action-submit-border);
}
:where([data-receipt-action="approve"], [data-purchase-inbound-action="approve"],
  [data-sales-outbound-action="approve"], [data-packaging-outbound-action="approve"],
  [data-other-inventory-action="approve"]) {
  --button-action-background: var(--action-approve-background);
  --button-action-color: var(--action-approve-color);
  --button-action-border: var(--action-approve-border);
}
:where([data-sales-quote-action="弃审"], [data-receipt-action="unapprove"],
  [data-purchase-inbound-action="unapprove"], [data-sales-outbound-action="unapprove"],
  [data-packaging-outbound-action="unapprove"], [data-other-inventory-action="unapprove"]) {
  --button-action-background: var(--action-fill-background);
  --button-action-color: var(--action-fill-color);
  --button-action-border: var(--action-fill-border);
}

/* Empty inquiry quality grades stay visible across grid selection and themes. */
#salesQuoteDetailTable td.inquiry-quality-grade-missing,
#moduleTable td.inquiry-quality-grade-missing {
  --theme-document-cell-background: var(--grid-highlight-yellow);
  background: var(--grid-highlight-yellow) !important;
  color: var(--theme-document-ink, var(--ink));
}
#salesQuoteDetailTable td.inquiry-quality-grade-missing input {
  background: transparent !important;
  color: inherit !important;
}


/* Employee portraits reuse the shared viewer and archive grid. */
#masterView #masterBody .master-employee-row { height: 72px; }
#masterView .master-avatar-cell .master-image-cell-content,
#masterView .master-avatar-cell .master-image-cell-layer { width: 56px; height: 56px; }
#masterView .master-avatar-cell .master-image-cell-layer.is-stack-0 { top: 0; left: 0; }
#masterView .master-avatar-cell .master-image-cell-content.is-empty { width: 56px; height: 56px; }
.master-image-viewer.is-employee-avatar .master-image-viewer-panel { grid-template-rows: auto minmax(0, 1fr) auto; }
.master-image-thumbnails[hidden], .master-image-nav[hidden] { display: none; }
.master-avatar-upload-hint { position: absolute; z-index: 7; bottom: 12px; padding: 7px 12px; border: 1px dashed rgba(255,255,255,.28); border-radius: 5px; color: #b6c6cb; background: #111b20; font-size: 12px; pointer-events: none; }
.master-avatar-upload-hint[hidden] { display: none; }
#masterAvatarDelete[hidden] { display: none; }
.master-image-viewer-stage.is-avatar-upload-enabled { cursor: pointer; }
.master-image-viewer-stage.is-avatar-upload-enabled.is-dragging { cursor: grabbing; }
.master-image-viewer-stage.is-dragover { box-shadow: inset 0 0 0 2px #65b5a4; background: #132823; }


/* Completed expedite groups use the established green grid color in every theme. */
#expediteDetailTable tbody tr.is-expedite-completed > td {
  --theme-document-cell-background: var(--grid-highlight-green);
  background: var(--grid-highlight-green) !important;
}
#expediteDetailTable tbody tr.is-expedite-completed > td :is(input, button) {
  background: transparent !important;
}

/* Business row colors keep the shared theme palette and selection outlines. */
.sales-quote-picker-table tr.is-quantity-complete,
.document-grid-table tr[data-document-line-kind="component"] { --document-line-background: var(--grid-highlight-green); }
.document-grid-table tr[data-document-line-kind="packaging"] { --document-line-background: var(--grid-highlight-yellow); }
.sales-quote-picker-table tbody tr.is-quantity-complete > td,
.document-grid-table tr:is([data-document-line-kind="component"], [data-document-line-kind="packaging"]) > td {
  --theme-document-cell-background: var(--document-line-background);
  background: var(--document-line-background) !important;
}
.sales-quote-picker-table tbody tr.is-quantity-complete:is(.is-selected, :hover) > td,
.document-grid-table tr:is([data-document-line-kind="component"], [data-document-line-kind="packaging"]):is(.is-selected, :hover) > td {
  --theme-document-cell-background: color-mix(in srgb, var(--document-line-background) 88%, var(--accent));
  background: color-mix(in srgb, var(--document-line-background) 88%, var(--accent)) !important;
}
.document-grid-table tr:is([data-document-line-kind="component"], [data-document-line-kind="packaging"]) .document-grid-cell-control {
  background: transparent !important;
}

/* Hover keeps receivable row colors; selection and locked-cell styles remain shared. */
#receivableDetailTable tbody tr[data-receivable-line-id]:hover {
  --theme-document-cell-background: var(--theme-document-surface, #fff);
}

/* Picker totals use the same columns as their source table and remain visible while scrolling. */
.sales-quote-picker-table > .document-grid-quantity-summary > tr > td {
  position: sticky;
  bottom: 0;
  z-index: 3;
  height: 31px;
  padding: 0 8px;
  background: var(--theme-document-raised, #e1e7e9) !important;
  color: var(--theme-document-ink, #53636a);
  border-top: var(--document-grid-line-width, 1px) solid var(--document-grid-line-color, #b8c4ca);
  font-weight: 600;
}
.document-summary-loading-label {
  display: block;
  font-size: 10px;
  line-height: 12px;
  font-weight: 400;
}
#receivableDetailTable tbody tr[data-receivable-line-id]:is(.is-selected, .is-current-row):hover {
  --theme-document-cell-background: var(--theme-document-selected, #edf7f6);
}
#receivableDetailTable tbody tr:is([data-document-line-kind="component"], [data-document-line-kind="packaging"]):hover > td {
  --theme-document-cell-background: var(--document-line-background);
  background: var(--document-line-background) !important;
}
#receivableDetailTable tbody tr:is([data-document-line-kind="component"], [data-document-line-kind="packaging"]).is-selected:hover > td {
  --theme-document-cell-background: color-mix(in srgb, var(--document-line-background) 88%, var(--accent));
  background: color-mix(in srgb, var(--document-line-background) 88%, var(--accent)) !important;
}

/* Reviewer annotations stay visible through selection, readonly and manual colors. */
#salesQuoteDetailTable tbody td[data-sales-quote-review-mark] {
  --theme-document-cell-background: var(--grid-highlight-yellow);
  background: var(--grid-highlight-yellow) !important;
}
#salesQuoteDetailTable tbody td[data-sales-quote-review-mark] :is(input, select, textarea, .sales-quote-field-wrap) {
  background: transparent !important;
}

/* Contract expenses have one fixed row color, including locked/selected cells. */
#salesQuoteDetailTable tbody tr.is-purchase-expense > td {
  --theme-document-cell-background: #eee7f7;
  background: #eee7f7 !important;
  color: #332342;
}
#salesQuoteDetailTable tbody tr.is-purchase-expense > td :is(input, select, textarea, .sales-quote-field-wrap) {
  background: transparent !important;
  color: #332342;
}
#purchaseOrderExpenseMenuHost > .master-context-submenu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#purchaseOrderExpenseMenuHost.is-submenu-open > .master-context-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
