.settings-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.settings-panel-title h3 {
  margin: 0;
}

.item-layout-settings {
  max-width: 1320px;
}

.item-layout-builder {
  display: grid;
  gap: 12px;
}

.item-layout-notice {
  margin: 0;
}

.item-layout-add-group {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(190px, 0.45fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.item-layout-add-group label,
.item-layout-group-header label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.item-layout-add-group input,
.item-layout-add-group select,
.item-layout-group-header input,
.item-layout-group-header select,
.item-layout-add-field select {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 750;
  padding: 7px 9px;
}

.item-layout-group-list {
  display: grid;
  gap: 12px;
}

.item-layout-group-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
}

.item-layout-group-header {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(90px, 120px) minmax(180px, 0.45fr) auto;
  gap: 10px;
  align-items: end;
}

.item-layout-group-actions,
.item-layout-field-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.item-layout-group-actions button,
.item-layout-field-actions button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
}

.item-layout-field-list {
  display: grid;
  gap: 6px;
}

.item-layout-field-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(90px, 140px) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
}

.item-layout-field-row strong {
  font-size: 14px;
}

.item-layout-field-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.item-layout-add-field {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.item-layout-empty-row,
.item-layout-empty-column {
  padding: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .item-layout-add-group,
  .item-layout-group-header,
  .item-layout-field-row,
  .item-layout-add-field {
    grid-template-columns: 1fr;
  }
}
.tax-report-results {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.tax-report-table {
  max-height: min(48vh, 520px);
}

@media (max-width: 1100px) {
  .grid.four,
  .tax-rule-summary,
  .settings-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}



.payment-buckets .cash-due-bucket {
  border-color: #00695f;
  background: #e4fbf5;
}

.payment-buckets .cash-due-bucket span,
.payment-buckets .cash-due-bucket strong {
  color: #063f39;
}
.item-menu-grid {
  margin-top: 16px;
}

.item-workspace {
  display: grid;
  gap: var(--space-3, 14px);
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 1px 0 20px;
  color: var(--mc-text, var(--ink));
}

.item-workspace-header {
  padding: 2px 2px 0;
}

.item-workspace-header h2,
.item-workspace-header p {
  margin: 0;
}

.item-workspace-header h2 {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.item-workspace-header > div > p:last-child {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.item-workspace-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3, 14px);
  padding: 11px 13px;
}

.item-workspace-command > div:first-child {
  display: grid;
  gap: 2px;
}

.item-workspace-command strong {
  color: var(--ink);
  font-size: 13px;
}

.item-workspace-command span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.item-command-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.item-command-actions .secondary {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}

.item-workspace-section {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.item-workspace-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  padding: 0 2px;
}

.item-workspace-heading h3,
.item-workspace-heading p {
  margin: 0;
}

.item-workspace-heading h3 {
  color: var(--mc-text, var(--ink));
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
}

.item-workspace-heading p {
  margin-top: 2px;
  color: var(--mc-muted, var(--muted));
  font-size: 11px;
  line-height: 1.25;
}

.item-quick-action-grid,
.item-status-grid,
.item-work-area-grid {
  display: grid;
  gap: 11px;
  min-width: 0;
}

.item-quick-action-grid,
.item-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.item-work-area-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.item-quick-action,
.item-status-card,
.item-work-area {
  min-width: 0;
  color: var(--mc-text, var(--ink));
  background: var(--mc-surface, #ffffff);
  border: 1px solid var(--mc-border, var(--line));
  border-radius: 6px;
  box-shadow: none;
  text-align: left;
}

.item-quick-action {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 11px 13px;
}

.item-quick-action > span:not(.item-workspace-icon),
.item-status-copy,
.item-work-area-copy {
  display: grid;
  min-width: 0;
}

.item-quick-action strong {
  color: inherit;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
}

.item-quick-action small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--mc-muted, var(--muted));
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-quick-action.is-primary {
  color: #ffffff;
  background: var(--mc-blue-700, #1559b7);
  border-color: var(--mc-blue-700, #1559b7);
}

.item-quick-action.is-primary small {
  color: #dce9fb;
}

.item-status-card {
  position: relative;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) 8px;
  align-items: center;
  gap: 11px;
  min-height: 92px;
  padding: 12px 13px;
}

.item-status-copy > small {
  color: var(--mc-muted, var(--muted));
  font-size: 10px;
  font-weight: 680;
  line-height: 1.2;
}

.item-status-copy > strong {
  margin-top: 3px;
  color: var(--mc-text, var(--ink));
  font-size: 23px;
  font-weight: 760;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.item-status-copy > span {
  overflow: hidden;
  margin-top: 5px;
  color: var(--mc-muted, var(--muted));
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa8b5;
}

.item-status-indicator.good {
  background: var(--mc-success, #138a55);
}

.item-status-indicator.warn {
  background: var(--mc-warning, #b66b08);
}

.item-work-area {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr);
  gap: 12px;
  min-height: 132px;
  padding: 14px 15px 13px;
}

.item-work-area-copy {
  grid-template-rows: auto 1fr auto;
  align-content: start;
}

.item-work-area-copy > strong {
  color: var(--mc-text, var(--ink));
  font-size: 14px;
  font-weight: 760;
  line-height: 1.2;
}

.item-work-area-copy > span {
  margin-top: 6px;
  color: var(--mc-muted, var(--muted));
  font-size: 11px;
  line-height: 1.4;
}

.item-work-area-copy > small {
  justify-self: end;
  margin-top: 9px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.2;
}

.item-work-area-copy > small span {
  margin-left: 3px;
  font-size: 15px;
  line-height: 0;
}

.item-workspace-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #cfdae6;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
}

.item-workspace-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.item-quick-action.is-primary .item-workspace-icon {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
}

.item-quick-action:hover,
.item-status-card:hover,
.item-work-area:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--accent-soft);
}

.item-quick-action.is-primary:hover {
  background: #124fa4;
  border-color: #124fa4;
}

.item-quick-action:focus-visible,
.item-status-card:focus-visible,
.item-work-area:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 1420px) {
  .item-workspace {
    gap: 16px;
  }

  .item-quick-action-grid,
  .item-status-grid {
    gap: 9px;
  }

  .item-work-area-grid {
    gap: 10px;
  }

  .item-work-area {
    min-height: 126px;
  }
}

@media (max-width: 1120px) {
  .item-quick-action-grid,
  .item-status-grid,
  .item-work-area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .item-workspace {
    gap: 14px;
  }

  .item-quick-action-grid,
  .item-status-grid,
  .item-work-area-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .item-work-area {
    min-height: 118px;
  }

  .item-workspace-command {
    align-items: stretch;
    flex-direction: column;
  }

  .item-command-actions {
    justify-content: flex-start;
  }
}

.vendor-workspace {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 1px 0 14px;
  color: var(--mc-text, var(--ink));
}

.vendor-workspace-section {
  display: grid;
  gap: 10.0px;
  min-width: 0;
  padding: 14px 16px 15px;
  background: var(--mc-surface, #ffffff);
  border: 1px solid var(--mc-border, var(--line));
  border-radius: 6px;
  box-shadow: none;
}

.vendor-workspace-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
}

.vendor-workspace-heading h3,
.vendor-workspace-heading p {
  margin: 0;
}

.vendor-workspace-heading h3 {
  color: var(--mc-text, var(--ink));
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
}

.vendor-workspace-heading p {
  margin-top: 2px;
  color: var(--mc-muted, var(--muted));
  font-size: 11px;
  line-height: 1.25;
}

.vendor-quick-action-grid,
.vendor-status-grid,
.vendor-work-area-grid {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.vendor-quick-action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vendor-status-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.vendor-work-area-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vendor-quick-action,
.vendor-status-card,
.vendor-work-area {
  min-width: 0;
  color: var(--mc-text, var(--ink));
  background: var(--mc-surface, #ffffff);
  border: 1px solid var(--mc-border, var(--line));
  border-radius: 6px;
  box-shadow: none;
}

.vendor-quick-action {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 10px 12px;
  text-align: left;
}

.vendor-quick-action > span:not(.vendor-workspace-icon),
.vendor-work-area-copy {
  display: grid;
  min-width: 0;
}

.vendor-quick-action strong {
  color: inherit;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
}

.vendor-quick-action small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--mc-muted, var(--muted));
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-quick-action.is-primary {
  color: #ffffff;
  background: var(--mc-blue-700, #1559b7);
  border-color: var(--mc-blue-700, #1559b7);
}

.vendor-quick-action.is-primary small {
  color: #dce9fb;
}

.vendor-status-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  min-height: 92px;
  padding: 11px 12px;
}

.vendor-status-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  color: var(--mc-text, var(--ink));
  font-size: 10px;
  font-weight: 720;
  line-height: 1.2;
}

.vendor-status-title > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-status-card > strong {
  margin-top: 5px;
  color: var(--mc-blue-700, #1559b7);
  font-size: 23px;
  font-weight: 760;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.vendor-status-card > small {
  overflow: hidden;
  align-self: end;
  margin-top: 7px;
  color: var(--mc-muted, var(--muted));
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-status-indicator {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa8b5;
}

.vendor-status-indicator.good {
  background: var(--mc-success, #138a55);
}

.vendor-status-indicator.warn {
  background: var(--mc-warning, #b66b08);
}

.vendor-work-area {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr);
  gap: 12px;
  min-height: 104px;
  padding: 13px 14px 12px;
  text-align: left;
}

.vendor-work-area-copy {
  grid-template-rows: auto 1fr auto;
  align-content: start;
}

.vendor-work-area-copy > strong {
  color: var(--mc-text, var(--ink));
  font-size: 14px;
  font-weight: 760;
  line-height: 1.2;
}

.vendor-work-area-copy > span {
  margin-top: 5px;
  color: var(--mc-muted, var(--muted));
  font-size: 11px;
  line-height: 1.35;
}

.vendor-work-area-copy > small {
  justify-self: end;
  margin-top: 7px;
  color: var(--mc-blue-700, #1559b7);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.2;
}

.vendor-work-area-copy > small span {
  margin-left: 3px;
  font-size: 15px;
  line-height: 0;
}

.vendor-workspace-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #cfdae6;
  border-radius: 50%;
  color: var(--mc-blue-700, #1559b7);
  background: #f8fbff;
}

.vendor-workspace-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vendor-quick-action.is-primary .vendor-workspace-icon {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
}

.vendor-quick-action:hover,
.vendor-work-area:hover {
  border-color: #91add0;
  background: #fbfdff;
}

.vendor-quick-action.is-primary:hover {
  background: #124fa4;
  border-color: #124fa4;
}

.vendor-quick-action:focus-visible,
.vendor-work-area:focus-visible {
  outline: 2px solid var(--mc-blue-600, #1f6bd3);
  outline-offset: 2px;
}

@media (max-width: 1280px) {
  .vendor-workspace {
    gap: 12px;
  }

  .vendor-workspace-section {
    padding: 12px 13px 13px;
  }

  .vendor-quick-action-grid,
  .vendor-status-grid,
  .vendor-work-area-grid {
    gap: 8px;
  }

  .vendor-quick-action {
    padding-inline: 10px;
  }

  .vendor-status-card {
    padding-inline: 10px;
  }
}

@media (max-width: 1120px) {
  .vendor-quick-action-grid,
  .vendor-work-area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vendor-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .vendor-workspace {
    gap: 10px;
  }

  .vendor-quick-action-grid,
  .vendor-status-grid,
  .vendor-work-area-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.vendor-subpage-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.vendor-subpage-toolbar > div {
  display: grid;
  gap: 1px;
}

.vendor-catalog-shell {
  --vendor-catalog-blue: var(--accent);
  --vendor-catalog-blue-dark: var(--accent-dark);
  --vendor-catalog-blue-soft: #edf4fd;
  --vendor-catalog-border: #d5dee9;
  --vendor-catalog-surface: #f4f6f8;
  --vendor-catalog-ink: #14263d;
  --vendor-catalog-muted: #5c6e82;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 112px);
  min-height: 560px;
  overflow: hidden;
  border-color: var(--vendor-catalog-border);
  border-radius: 6px;
  box-shadow: none;
  color: var(--vendor-catalog-ink);
}

.vendor-catalog-page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 66px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--vendor-catalog-border);
  background: #ffffff;
}

.vendor-catalog-back {
  align-self: center;
  min-height: 34px;
  padding: 6px 10px;
  border-color: var(--vendor-catalog-border);
  color: #253a52;
  font-size: 12px;
}

.vendor-catalog-page-heading {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.vendor-catalog-page-heading > .eyebrow {
  margin: 0;
  color: var(--vendor-catalog-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.vendor-catalog-title-row,
.vendor-catalog-vendor-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.vendor-catalog-title-row h3,
.vendor-catalog-item-header h3 {
  margin: 0;
  color: var(--vendor-catalog-ink);
  font-size: 18px;
  line-height: 1.2;
}

.vendor-catalog-title-row .tag {
  min-height: 21px;
  padding: 2px 7px;
  border: 1px solid #c7d8ec;
  background: #f1f6fc;
  color: #315a88;
  font-size: 10.5px;
}

.vendor-catalog-page-heading > .muted {
  overflow: hidden;
  color: var(--vendor-catalog-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-catalog-body {
  flex: 1;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.vendor-catalog-layout {
  display: grid;
  grid-template-columns: clamp(230px, 22%, 350px) minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  background: var(--vendor-catalog-surface);
}

.vendor-catalog-vendor-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--vendor-catalog-border);
  background: #ffffff;
}

.vendor-catalog-vendor-pane-header {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--vendor-catalog-border);
  background: #ffffff;
}

.vendor-catalog-search {
  display: grid;
  gap: 4px;
  padding: 10px 11px 8px;
  color: var(--vendor-catalog-muted);
  font-size: 11px;
  font-weight: 800;
}

.vendor-catalog-search input {
  min-height: 34px;
  padding: 7px 9px;
  border-color: #bbc8d6;
  border-radius: 6px;
  font-size: 12px;
}

.vendor-catalog-search input:focus,
.vendor-catalog-item-toolbar input:focus,
.vendor-catalog-item-toolbar select:focus {
  border-color: var(--vendor-catalog-blue);
  box-shadow: 0 0 0 3px rgba(23, 103, 197, 0.13);
}

.vendor-catalog-vendor-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 11px 7px;
  color: var(--vendor-catalog-muted);
  font-size: 10.5px;
}

.vendor-catalog-vendor-list-heading strong {
  color: #344a64;
  font-size: 11px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.vendor-catalog-vendor-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
}

.vendor-catalog-vendor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 7px 10px;
  border: 0;
  border-bottom: 1px solid #e1e7ee;
  border-radius: 0;
  background: #ffffff;
  color: var(--vendor-catalog-ink);
  text-align: left;
}

.vendor-catalog-vendor-row:hover {
  background: #f4f7fb;
}

.vendor-catalog-vendor-row.active {
  background: var(--vendor-catalog-blue-soft);
  box-shadow: inset 3px 0 var(--vendor-catalog-blue);
}

.vendor-catalog-vendor-row:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--vendor-catalog-blue);
  outline-offset: -2px;
}

.vendor-catalog-vendor-row > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.vendor-catalog-vendor-row > span:last-child {
  justify-items: end;
}

.vendor-catalog-vendor-row strong,
.vendor-catalog-vendor-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-catalog-vendor-row strong {
  color: #1a2e47;
  font-size: 12px;
  line-height: 1.2;
}

.vendor-catalog-vendor-row small {
  color: var(--vendor-catalog-muted);
  font-size: 10px;
  line-height: 1.2;
}

.vendor-catalog-vendor-row > span:last-child strong {
  color: #334d69;
  font-variant-numeric: tabular-nums;
}

.vendor-catalog-vendor-footer {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-top: 1px solid var(--vendor-catalog-border);
  background: #f8fafc;
  color: var(--vendor-catalog-muted);
  font-size: 10px;
  text-align: center;
}

.vendor-catalog-item-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
}

.vendor-catalog-empty {
  min-height: 100%;
}

.vendor-catalog-empty span {
  color: var(--muted);
}

.vendor-catalog-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 56px;
  padding: 8px 12px 5px;
}

.vendor-catalog-vendor-identity {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.vendor-catalog-vendor-identity > .eyebrow {
  margin: 0;
  color: var(--vendor-catalog-blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.vendor-catalog-vendor-title h3 {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-catalog-active-status {
  min-height: 21px;
  padding: 2px 7px;
  font-size: 10.5px;
}

.vendor-catalog-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 0 0 auto;
  margin: 0 12px 8px;
  overflow: hidden;
  border: 1px solid var(--vendor-catalog-border);
  border-radius: 6px;
  background: #ffffff;
}

.vendor-catalog-summary-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 8px;
  min-height: 53px;
  padding: 7px 10px;
  border-right: 1px solid var(--vendor-catalog-border);
}

.vendor-catalog-summary-cell:last-child {
  border-right: 0;
}

.vendor-catalog-summary-cell span {
  overflow: hidden;
  color: #53677f;
  font-size: 10.5px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-catalog-summary-cell strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: #152b46;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.vendor-catalog-summary-cell small {
  overflow: hidden;
  color: #738296;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-catalog-summary-primary strong {
  color: #216a46;
}

.vendor-catalog-summary-secondary strong {
  color: var(--vendor-catalog-blue-dark);
}

.vendor-catalog-summary-review strong {
  color: #a55f00;
}

.vendor-catalog-item-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(112px, 160px) minmax(140px, 190px) minmax(142px, auto);
  align-items: end;
  gap: 8px;
  flex: 0 0 auto;
  padding: 0 12px 8px;
}

.vendor-catalog-item-toolbar label {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--vendor-catalog-muted);
  font-size: 10.5px;
  font-weight: 800;
}

.vendor-catalog-item-toolbar input,
.vendor-catalog-item-toolbar select {
  min-height: 34px;
  padding: 7px 8px;
  border-color: #bbc8d6;
  border-radius: 6px;
  font-size: 11.5px;
}

.vendor-catalog-toolbar-meta {
  display: grid;
  align-content: center;
  justify-items: end;
  min-height: 34px;
  padding-bottom: 1px;
  color: var(--vendor-catalog-muted);
  text-align: right;
}

.vendor-catalog-toolbar-meta strong {
  color: #2f465f;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.vendor-catalog-toolbar-meta span {
  font-size: 9.5px;
  white-space: nowrap;
}

.vendor-catalog-item-pane > .notice {
  margin: 0 12px 7px;
}

.vendor-catalog-results {
  flex: 1;
  min-height: 0;
  border: 1px solid var(--vendor-catalog-border);
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  overflow: auto;
  scrollbar-gutter: stable;
}

.vendor-catalog-results .vendor-catalog-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  color: #1e3148;
  font-size: 11.5px;
}

.vendor-catalog-col-item {
  width: 11%;
}

.vendor-catalog-col-description {
  width: 18%;
}

.vendor-catalog-col-vendor-item {
  width: 11%;
}

.vendor-catalog-col-position {
  width: 10%;
}

.vendor-catalog-col-invoices,
.vendor-catalog-col-share {
  width: 6%;
}

.vendor-catalog-col-date {
  width: 10%;
}

.vendor-catalog-col-pack {
  width: 7%;
}

.vendor-catalog-col-cost {
  width: 8%;
}

.vendor-catalog-col-relationship {
  width: 13%;
}

.vendor-catalog-results th,
.vendor-catalog-results td {
  height: 41px;
  padding: 6px 7px;
  border-right: 1px solid #edf1f5;
  border-bottom: 1px solid #dde4ec;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-catalog-results th:last-child,
.vendor-catalog-results td:last-child {
  border-right: 0;
}

.vendor-catalog-results th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 37px;
  background: #f3f6f9;
  color: #3c5068;
  font-size: 10.5px;
  font-weight: 800;
}

.vendor-catalog-results tbody tr:hover td {
  background: #f5f8fc;
}

.vendor-catalog-results td > strong {
  display: block;
  overflow: hidden;
  color: #1a2e47;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-catalog-results td small {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: var(--vendor-catalog-muted);
  font-size: 9.5px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-catalog-results .status {
  min-height: 20px;
  padding: 2px 6px;
  font-size: 9.5px;
}

.vendor-catalog-position-secondary {
  border: 1px solid #b9d0ec;
  background: #edf4fc;
  color: var(--vendor-catalog-blue-dark);
}

.vendor-catalog-official-link {
  color: var(--vendor-catalog-blue-dark);
  font-size: 10.5px;
  font-weight: 800;
}

.vendor-catalog-results .link-button {
  max-width: 100%;
  overflow: hidden;
  color: var(--vendor-catalog-blue-dark);
  font-size: 10.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 41px;
  padding: 5px 12px;
  border-top: 1px solid var(--vendor-catalog-border);
  background: #ffffff;
  color: var(--vendor-catalog-muted);
  font-size: 10.5px;
}

.vendor-catalog-pagination button {
  min-height: 30px;
  padding: 5px 9px;
  border-color: var(--vendor-catalog-border);
  color: #314a65;
  font-size: 10.5px;
}

.vendor-catalog-pagination span {
  font-variant-numeric: tabular-nums;
}

.vendor-catalog-pagination strong {
  color: #263e58;
}

@media (max-width: 1450px) {
  .vendor-catalog-layout {
    grid-template-columns: clamp(218px, 22%, 270px) minmax(0, 1fr);
  }

  .vendor-catalog-page-header {
    min-height: 62px;
    padding-block: 7px;
  }

  .vendor-catalog-summary,
  .vendor-catalog-item-toolbar {
    margin-left: 0;
    margin-right: 0;
  }

  .vendor-catalog-summary {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .vendor-catalog-item-toolbar {
    grid-template-columns: minmax(180px, 1fr) 112px 140px minmax(128px, auto);
    padding-inline: 9px;
  }

  .vendor-catalog-results .vendor-catalog-table {
    font-size: 10.5px;
  }

  .vendor-catalog-results th,
  .vendor-catalog-results td {
    padding-inline: 5px;
  }

  .vendor-catalog-results th,
  .vendor-catalog-results .link-button,
  .vendor-catalog-official-link {
    font-size: 9.5px;
  }
}

@media (max-width: 1180px) {
  .vendor-catalog-layout {
    grid-template-columns: minmax(190px, 23%) minmax(0, 1fr);
  }

  .vendor-catalog-summary-cell {
    padding-inline: 7px;
  }

  .vendor-catalog-summary-cell small,
  .vendor-catalog-toolbar-meta span {
    display: none;
  }

  .vendor-catalog-item-toolbar {
    grid-template-columns: minmax(170px, 1fr) 105px 130px;
  }

  .vendor-catalog-toolbar-meta {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    min-height: 16px;
  }
}

@media (max-width: 820px) {
  .vendor-catalog-shell {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .vendor-catalog-body,
  .vendor-catalog-layout,
  .vendor-catalog-item-pane {
    overflow: visible;
  }

  .vendor-catalog-layout {
    grid-template-columns: 1fr;
  }

  .vendor-catalog-vendor-pane {
    max-height: 300px;
    border-right: 0;
    border-bottom: 1px solid var(--vendor-catalog-border);
  }

  .vendor-catalog-item-toolbar {
    grid-template-columns: 1fr;
  }

  .vendor-catalog-toolbar-meta {
    grid-column: auto;
    justify-content: start;
  }

  .vendor-catalog-results {
    max-height: 560px;
    overflow-x: auto;
  }

  .vendor-catalog-results .vendor-catalog-table {
    min-width: 860px;
  }
}

.vendor-preference-review-shell {
  --vendor-review-blue: var(--accent);
  --vendor-review-blue-dark: var(--accent-dark);
  --vendor-review-border: #d5dee9;
  --vendor-review-surface: #f5f7fa;
  --vendor-review-ink: #142947;
  --vendor-review-muted: #53677f;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: calc(100vh - 112px);
  height: calc(100dvh - 112px);
  min-height: 540px;
  border-color: var(--vendor-review-border);
  border-radius: 6px;
  background: var(--vendor-review-surface);
  box-shadow: none;
  overflow: hidden;
}

.vendor-preference-review-header {
  flex: 0 0 auto;
  min-height: 62px;
  padding: 9px 14px;
  border-bottom-color: var(--vendor-review-border);
  background: #ffffff;
}

.vendor-preference-title-block {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.vendor-preference-back {
  flex: 0 0 auto;
  gap: 5px;
  min-height: 34px;
  padding: 6px 9px;
  border-color: var(--vendor-review-border);
  border-radius: 5px;
  background: #ffffff;
  color: #304861;
}

.vendor-preference-title-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.vendor-preference-title-line,
.vendor-preference-header-meta {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.vendor-preference-title-line h2 {
  margin: 0;
  color: var(--vendor-review-ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.vendor-preference-queue-count {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid #c8daf0;
  border-radius: 999px;
  background: #eef5fd;
  color: #245f9f;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.2;
}

.vendor-preference-header-meta {
  color: var(--vendor-review-muted);
  font-size: 10.75px;
  line-height: 1.25;
}

.vendor-preference-active-filters {
  min-width: 0;
  padding-left: 9px;
  border-left: 1px solid var(--vendor-review-border);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-preference-review-header > .secondary {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 11px;
  border-color: var(--vendor-review-border);
  border-radius: 5px;
  background: #ffffff;
  color: #27415e;
  font-size: 11.5px;
}

.vendor-preference-review-header > .secondary:hover,
.vendor-preference-back:hover {
  border-color: #9eb8d6;
  background: #f4f8fc;
  color: var(--vendor-review-blue-dark);
}

.vendor-preference-detail-header h3,
.vendor-preference-detail-header p {
  margin: 0;
}

.vendor-preference-review-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 10px 12px 12px;
  background: var(--vendor-review-surface);
  overflow: hidden;
}

.vendor-preference-metrics.grid {
  flex: 0 0 auto;
  gap: 8px;
}

.vendor-preference-metrics .metric {
  display: grid;
  align-content: center;
  min-height: 62px;
  padding: 7px 11px;
  border-color: var(--vendor-review-border);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
}

.vendor-preference-metrics .metric h3 {
  color: #425a74;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.2;
}

.vendor-preference-metrics .metric strong {
  margin-top: 2px;
  color: var(--vendor-review-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.vendor-preference-metrics .metric span {
  margin-top: 2px;
  color: var(--vendor-review-muted);
  font-size: 10px;
  line-height: 1.2;
}

.vendor-preference-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(145px, .24fr) minmax(250px, .5fr);
  flex: 0 0 auto;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--vendor-review-border);
  border-radius: 6px;
  background: #ffffff;
}

.vendor-preference-toolbar label {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: #4d6279;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.15;
}

.vendor-preference-toolbar input,
.vendor-preference-toolbar select {
  width: 100%;
  min-height: 32px;
  height: 32px;
  padding: 5px 8px;
  border-color: #cbd6e2;
  border-radius: 5px;
  background: #ffffff;
  color: var(--vendor-review-ink);
  font-size: 11.5px;
}

.vendor-preference-toolbar input:focus,
.vendor-preference-toolbar select:focus {
  border-color: var(--vendor-review-blue);
  box-shadow: 0 0 0 2px rgba(23, 103, 197, 0.12);
}

.vendor-preference-layout {
  display: grid;
  grid-template-columns: minmax(315px, 34%) minmax(0, 66%);
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 1px solid var(--vendor-review-border);
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.vendor-preference-queue {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--vendor-review-border);
  background: #ffffff;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.vendor-preference-queue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  width: 100%;
  min-height: 66px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #e0e6ed;
  border-radius: 0;
  background: #ffffff;
  color: var(--vendor-review-ink);
  text-align: left;
}

.vendor-preference-queue-row:hover {
  background: #f5f8fc;
}

.vendor-preference-queue-row.active {
  background: #eef5fd;
  box-shadow: inset 3px 0 var(--vendor-review-blue);
}

.vendor-preference-queue-row:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid rgba(23, 103, 197, 0.55);
  outline-offset: -2px;
}

.vendor-preference-queue-row > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.vendor-preference-queue-row > span:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
}

.vendor-preference-queue-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--vendor-review-ink);
  font-size: 12.25px;
  font-weight: 750;
  line-height: 1.25;
}

.vendor-preference-queue-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--vendor-review-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
}

.vendor-preference-queue-row > span:last-child small {
  flex: 1;
  max-width: 66%;
  text-align: right;
}

.vendor-preference-queue-row em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 9.5px;
}

.vendor-preference-pagination {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  min-height: 42px;
  padding: 6px 8px;
  border-top: 1px solid var(--vendor-review-border);
  background: #ffffff;
  color: var(--vendor-review-muted);
  font-size: 10.5px;
  font-weight: 700;
}

.vendor-preference-pagination button {
  min-height: 30px;
  padding: 4px 8px;
  border-color: var(--vendor-review-border);
  border-radius: 5px;
  background: #ffffff;
  color: #304861;
  font-size: 10.5px;
}

.vendor-preference-detail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #ffffff;
  overflow: hidden;
}

.vendor-preference-detail-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 9px 12px 8px;
  border-bottom: 1px solid #e0e6ed;
}

.vendor-preference-detail-header .eyebrow {
  color: #5b7087;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .04em;
}

.vendor-preference-detail-header h3 {
  margin-top: 2px;
  color: var(--vendor-review-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
}

.vendor-preference-detail-header p {
  margin-top: 2px;
  color: var(--vendor-review-muted);
  font-size: 10.5px;
  line-height: 1.2;
}

.vendor-preference-reason {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 12px;
  padding: 7px 9px;
  border: 1px solid #e5c986;
  border-left: 3px solid #bd861a;
  border-radius: 5px;
  background: #fffaf0;
  color: #513c15;
  font-size: 11.5px;
  line-height: 1.25;
}

.vendor-preference-reason span {
  flex: 0 0 auto;
  color: #725b2c;
  font-size: 10.5px;
  font-weight: 650;
}

.vendor-preference-candidates {
  flex: 1;
  min-height: 0;
  max-height: none;
  margin: 0 12px;
  border-color: var(--vendor-review-border);
  border-radius: 5px;
  overflow-x: hidden;
  overflow-y: auto;
}

.vendor-preference-candidates table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  color: var(--vendor-review-ink);
  font-size: 11.25px;
}

.vendor-preference-candidates th,
.vendor-preference-candidates td {
  padding: 6px 7px;
  border-bottom-color: #e0e6ed;
  overflow-wrap: anywhere;
}

.vendor-preference-candidates th {
  height: 32px;
  background: #f2f5f8;
  color: #445a72;
  font-size: 9.75px;
  font-weight: 800;
  line-height: 1.15;
}

.vendor-preference-candidates th:nth-child(1) { width: 15%; }
.vendor-preference-candidates th:nth-child(2) { width: 22%; }
.vendor-preference-candidates th:nth-child(3) { width: 17%; }
.vendor-preference-candidates th:nth-child(4) { width: 8%; }
.vendor-preference-candidates th:nth-child(5) { width: 7%; }
.vendor-preference-candidates th:nth-child(6) { width: 12%; }
.vendor-preference-candidates th:nth-child(7) { width: 7%; }
.vendor-preference-candidates th:nth-child(8) { width: 12%; }

.vendor-preference-candidates tbody tr:hover td {
  background: #f6f9fc;
}

.vendor-preference-candidates tr.selected-row td {
  background: #eef5fd;
}

.vendor-preference-candidates td small {
  display: block;
  margin-top: 2px;
  color: var(--vendor-review-muted);
  font-size: 9.75px;
  line-height: 1.2;
}

.vendor-preference-candidates select {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  height: 30px;
  padding: 4px 6px;
  border-color: #cbd6e2;
  border-radius: 5px;
  color: var(--vendor-review-ink);
  font-size: 10.5px;
  font-weight: 700;
}

.vendor-preference-candidates .numeric {
  white-space: nowrap;
}

.vendor-preference-detail-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 7px 12px;
  border-top: 1px solid var(--vendor-review-border);
  background: #f7f9fb;
  font-size: 10.5px;
}

.vendor-preference-detail-footer .inline-actions {
  flex: 0 0 auto;
  gap: 7px;
}

.vendor-preference-detail-footer button {
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 5px;
  font-size: 11.5px;
}

.vendor-preference-review-shell .primary {
  border-color: var(--vendor-review-blue);
  background: var(--vendor-review-blue);
  color: #ffffff;
}

.vendor-preference-review-shell .primary:hover {
  border-color: var(--vendor-review-blue-dark);
  background: var(--vendor-review-blue-dark);
}

.vendor-preference-detail-footer .ghost {
  border-color: var(--vendor-review-border);
  background: #ffffff;
  color: #304861;
}

.vendor-preference-review-shell button:focus-visible,
.vendor-preference-review-shell input:focus-visible,
.vendor-preference-review-shell select:focus-visible {
  outline: 2px solid rgba(23, 103, 197, 0.5);
  outline-offset: 2px;
}

@media (max-height: 820px) and (min-width: 1041px) {
  .vendor-preference-metrics .metric {
    min-height: 54px;
    padding-block: 5px;
  }

  .vendor-preference-metrics .metric strong {
    font-size: 18px;
  }

  .vendor-preference-queue-row {
    min-height: 60px;
    padding-block: 6px;
  }

  .vendor-preference-detail-header {
    min-height: 54px;
    padding-block: 7px;
  }
}

@media (max-width: 1040px) {
  .vendor-preference-toolbar,
  .vendor-preference-layout {
    grid-template-columns: 1fr;
  }

  .vendor-preference-review-shell {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .vendor-preference-review-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .vendor-preference-title-block {
    width: 100%;
  }

  .vendor-preference-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vendor-preference-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .vendor-preference-toolbar label:first-child {
    grid-column: 1 / -1;
  }

  .vendor-preference-review-body,
  .vendor-preference-layout,
  .vendor-preference-detail {
    overflow: visible;
  }

  .vendor-preference-queue {
    max-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--vendor-review-border);
  }

  .vendor-preference-candidates {
    max-height: 520px;
    overflow-x: auto;
  }

  .vendor-preference-candidates table {
    min-width: 680px;
  }
}

.item-list-toolbar {
  align-items: stretch;
}

.item-list-search {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) repeat(4, minmax(145px, 0.25fr)) minmax(135px, auto);
  width: 100%;
}

.item-list-search .search {
  min-width: 0;
}

.item-list-layout {
  grid-template-columns: minmax(0, 1fr) minmax(560px, 0.48fr);
}

.item-list-table {
  max-height: min(62vh, 690px);
}

.item-list-table-loading {
  box-shadow: inset 0 3px 0 #0b8f83;
}

.item-list-updating-row td {
  background: #ecf7f5;
  color: #0d5f56;
  font-weight: 850;
}

.item-list-updating-row td::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 999px;
  background: #0b8f83;
  box-shadow: 0 0 0 0 rgba(11, 143, 131, 0.35);
  animation: item-search-pulse 900ms ease-in-out infinite;
}

@keyframes item-search-pulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.item-detail-panel {
  align-self: start;
}

@media (max-width: 1300px) {
  .item-list-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item-list-search .search {
    grid-column: 1 / -1;
  }
}

.item-filter-clear {
  white-space: nowrap;
}

.item-list-table tr.selected-row td {
  background: #e5f5f2;
}

.item-detail-panel {
  overflow: hidden;
}

.transaction-modal {
  width: min(1280px, 96vw);
}

.transaction-modal.sale-transaction-modal {
  width: min(1120px, calc(100vw - 28px));
}

.sale-transaction-modal .modal-body {
  padding: 12px 16px 14px;
}

.sale-receipt {
  display: grid;
  gap: 11px;
}

.sale-receipt-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line-strong);
}

.sale-receipt-heading > div {
  display: grid;
  gap: 2px;
}

.sale-receipt-heading span,
.receipt-context-card span,
.receipt-payments h4,
.sale-invoice-header span,
.sale-invoice-parties span,
.sale-invoice-payments > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.sale-receipt-heading h3 {
  margin: 0;
  font-size: 24px;
}

.sale-receipt-heading > strong {
  font-size: 30px;
  font-variant-numeric: tabular-nums;
}

.receipt-context-card {
  display: grid;
  grid-template-columns: minmax(280px, 1.75fr) minmax(130px, 0.72fr) minmax(150px, 0.82fr) minmax(180px, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 7px;
  background: var(--line);
}

.receipt-context-card > div {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 72px;
  padding: 8px 11px;
  background: #ffffff;
}

.receipt-context-card strong,
.receipt-context-card small {
  overflow-wrap: anywhere;
}

.receipt-context-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.receipt-context-customer strong {
  font-size: 16px;
}

.receipt-context-staff small::before {
  content: "Cashier: ";
}

.sale-receipt-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.sale-receipt-table .receipt-col-upc {
  width: 19%;
}

.sale-receipt-table .receipt-col-description {
  width: auto;
}

.sale-receipt-table .receipt-col-qty {
  width: 10%;
}

.sale-receipt-table .receipt-col-total {
  width: 14%;
}

.sale-receipt-table .receipt-col-fs {
  width: 8%;
}

.sale-receipt-table th.numeric,
.sale-receipt-table td.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.receipt-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.38fr);
  gap: 12px;
  align-items: start;
  min-height: 0;
}

.receipt-line-items {
  max-height: min(42vh, 390px);
}

.receipt-settlement {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.receipt-settlement .receipt-summary {
  gap: 6px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.receipt-settlement .receipt-summary > div {
  min-height: 40px;
  padding: 8px 10px;
}

.receipt-settlement .receipt-grand-total {
  border-color: rgba(8, 123, 113, 0.34);
  background: #e9f6f3;
}

.receipt-settlement .receipt-grand-total span {
  color: var(--text);
}

.receipt-settlement .receipt-grand-total strong {
  color: var(--accent-dark);
  font-size: 20px;
}

.receipt-payments {
  display: grid;
  gap: 8px;
}

.receipt-payments h4 {
  margin: 0;
}

.receipt-payment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.receipt-payment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
}

.receipt-payment-card > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.receipt-payment-card span {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.receipt-payment-card b {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

/* Corporate Minimal sale record workspace */
.transaction-modal.sale-transaction-modal {
  --sale-profile-blue: #1767c5;
  --sale-profile-blue-dark: #1256a7;
  --sale-profile-border: #d5dee9;
  --sale-profile-surface: #f5f7fa;
  width: min(1240px, calc(100vw - 28px));
  border-radius: 7px;
  background: var(--sale-profile-surface);
}

.sale-transaction-modal .modal-header {
  min-height: 58px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--sale-profile-border);
  background: #ffffff;
}

.sale-transaction-modal .modal-header h2 {
  margin: 0;
  color: #102443;
  font-size: 19px;
  line-height: 1.2;
}

.sale-transaction-modal .modal-header .inline-actions {
  flex-wrap: nowrap;
  gap: 8px;
}

.sale-transaction-modal .modal-header button {
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
}

.sale-transaction-modal #transactionPrintBtn {
  border-color: var(--sale-profile-blue);
  background: var(--sale-profile-blue);
  color: #ffffff;
}

.sale-transaction-modal #transactionPrintBtn:hover {
  border-color: var(--sale-profile-blue-dark);
  background: var(--sale-profile-blue-dark);
}

.sale-transaction-modal button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--sale-profile-blue) 55%, transparent);
  outline-offset: 2px;
}

.sale-transaction-modal .modal-body {
  padding: 12px 14px 14px;
  background: var(--sale-profile-surface);
}

.sale-receipt {
  gap: 10px;
  color: #1b2b3e;
}

.sale-receipt-heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 11px 15px;
  border: 1px solid var(--sale-profile-border);
  border-radius: 6px;
  background: #ffffff;
}

.sale-receipt-heading::before {
  content: "SR";
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: #eaf2fc;
  color: #123d76;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.sale-receipt-heading > div:first-of-type {
  min-width: 0;
}

.sale-receipt-heading span {
  color: #5b6d82;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.sale-receipt-heading h3 {
  overflow: hidden;
  margin-top: 2px;
  color: #102443;
  font-size: 21px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sale-receipt-total {
  display: grid;
  min-width: 150px;
  gap: 5px;
  padding: 2px 4px 2px 18px;
  border-left: 1px solid var(--sale-profile-border);
  text-align: right;
}

.sale-receipt-total strong {
  color: #102443;
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.receipt-workspace-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--sale-profile-border);
  border-radius: 6px;
  background: #ffffff;
}

.receipt-panel-heading {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #dfe6ee;
  background: #ffffff;
}

.receipt-panel-heading > div {
  display: grid;
  gap: 1px;
}

.receipt-panel-heading span {
  color: #68798d;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.035em;
  line-height: 1.15;
  text-transform: uppercase;
}

.receipt-panel-heading h4 {
  margin: 0;
  color: #102443;
  font-size: 14px;
  line-height: 1.2;
}

.receipt-panel-heading > small {
  padding: 4px 8px;
  border-radius: 12px;
  background: #eef2f6;
  color: #52657b;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.receipt-context-card {
  grid-template-columns: minmax(280px, 1.65fr) minmax(130px, 0.72fr) minmax(160px, 0.9fr) minmax(180px, 1fr);
  gap: 0;
  border: 1px solid var(--sale-profile-border);
  background: #ffffff;
}

.receipt-context-card .receipt-panel-heading {
  grid-column: 1 / -1;
}

.receipt-context-card > div:not(.receipt-panel-heading) {
  min-height: 66px;
  padding: 9px 12px;
  border-left: 1px solid #e2e7ed;
  background: #ffffff;
}

.receipt-context-card .receipt-panel-heading + div {
  border-left: 0;
}

.receipt-context-card > div:not(.receipt-panel-heading) > span {
  color: #607289;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.025em;
}

.receipt-context-card > div:not(.receipt-panel-heading) > strong {
  color: #17375f;
  font-size: 13px;
  font-weight: 700;
}

.receipt-context-card > div:not(.receipt-panel-heading) > small {
  color: #68798d;
  font-size: 10px;
}

.receipt-context-customer strong {
  font-size: 15px !important;
}

.receipt-detail-layout {
  grid-template-columns: minmax(0, 1fr) minmax(285px, 0.38fr);
  gap: 10px;
}

.receipt-line-items {
  max-height: min(48vh, 510px);
  border: 0;
  border-radius: 0;
}

.sale-receipt-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 9px 10px;
  background: #f1f4f7;
  color: #405269;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.015em;
}

.sale-receipt-table td {
  padding: 9px 10px;
  color: #203349;
  font-size: 11px;
}

.sale-receipt-table tbody tr:hover td {
  background: #f5f8fc;
}

.sale-transaction-modal .receipt-item-link {
  color: var(--sale-profile-blue);
  font-weight: 750;
}

.receipt-settlement {
  gap: 10px;
}

.receipt-settlement .receipt-summary {
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.receipt-settlement .receipt-summary > div {
  min-height: 42px;
  padding: 9px 11px;
  border: 0;
  border-bottom: 1px solid #e3e8ef;
  border-radius: 0;
  background: #ffffff;
}

.receipt-settlement .receipt-summary > div:last-child {
  border-bottom: 0;
}

.receipt-settlement .receipt-summary span {
  color: #566a81;
  font-size: 11px;
  font-weight: 650;
}

.receipt-settlement .receipt-summary strong {
  color: #17375f;
  font-size: 13px;
}

.receipt-settlement .receipt-grand-total {
  border-top: 1px solid #cbd8e7 !important;
  border-left: 3px solid var(--sale-profile-blue) !important;
  background: #f4f8fd !important;
}

.receipt-settlement .receipt-grand-total span {
  color: #294463;
}

.receipt-settlement .receipt-grand-total strong {
  color: #124f98;
  font-size: 18px;
}

.receipt-payments {
  display: block;
}

.receipt-payment-grid {
  gap: 0;
}

.receipt-payment-card {
  min-height: 54px;
  padding: 9px 11px;
  border: 0;
  border-bottom: 1px solid #e3e8ef;
  border-radius: 0;
  background: #ffffff;
}

.receipt-payment-card:last-child {
  border-bottom: 0;
}

.receipt-payment-card strong {
  color: #17375f;
  font-size: 12px;
}

.receipt-payment-card span {
  color: #68798d;
  font-size: 10px;
}

.receipt-payment-card b {
  color: #102443;
  font-size: 15px;
}

.customer-sale-invoice {
  display: none;
}

.sale-invoice-header,
.sale-invoice-parties,
.sale-invoice-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
  gap: 28px;
}

.sale-invoice-header {
  padding-bottom: 18px;
  border-bottom: 3px solid var(--accent);
}

.sale-invoice-header h3 {
  margin: 4px 0 6px;
  font-size: 26px;
}

.sale-invoice-header p,
.sale-invoice-parties p {
  margin: 2px 0;
}

.sale-invoice-number {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.sale-invoice-number strong {
  font-size: 24px;
}

.sale-invoice-parties > div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 100px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
}

.sale-invoice-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.sale-invoice-table th,
.sale-invoice-table td {
  padding: 8px 7px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.sale-invoice-table .numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sale-invoice-upc {
  width: 20%;
}

.sale-invoice-qty {
  width: 9%;
}

.sale-invoice-price,
.sale-invoice-amount {
  width: 14%;
}

.sale-invoice-footer {
  align-items: start;
}

.sale-invoice-payments,
.sale-invoice-totals {
  display: grid;
  gap: 7px;
}

.sale-invoice-payments p,
.sale-invoice-totals p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.sale-invoice-payments b,
.sale-invoice-totals strong {
  font-variant-numeric: tabular-nums;
}

.sale-invoice-totals .grand-total {
  padding-top: 10px;
  border-top: 2px solid var(--ink);
  border-bottom: 0;
  font-size: 19px;
}

.customer-sale-invoice > footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 840px) {
  .receipt-context-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .receipt-context-customer {
    grid-column: 1 / -1;
  }

  .receipt-detail-layout {
    grid-template-columns: 1fr;
  }

  .receipt-line-items {
    max-height: 42vh;
  }

  .receipt-settlement {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .receipt-context-card {
    grid-template-columns: 1fr;
  }

  .receipt-context-customer {
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  .receipt-settlement {
    grid-template-columns: 1fr;
  }
}

.item-detail-panel .panel-body {
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.item-detail-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 52px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  overflow-x: auto;
  overflow-y: hidden;
}

.item-detail-tab {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 9px 11px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  hyphens: none;
  word-break: keep-all;
  overflow-wrap: normal;
}

.item-detail-tab:last-child {
  border-right: 0;
}

.item-detail-tab:hover {
  color: var(--accent);
  background: transparent;
}

.item-detail-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: transparent;
}

.item-detail-tab span {
  min-width: max-content;
  hyphens: none;
  word-break: keep-all;
  overflow-wrap: normal;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.item-detail-tab strong {
  min-width: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.item-detail-content {
  min-height: 0;
  background: #ffffff;
  overflow-x: auto;
}

.item-detail-content .mini-table-wrap {
  max-height: calc(min(62vh, 690px) - 238px);
  min-width: 500px;
  border: 0;
  border-radius: 0;
}

.item-history-range-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #f7fafb;
}

.item-history-range-presets {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.item-history-range-button,
.item-history-apply {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 13px;
}

.item-history-range-button.active {
  border-color: #007a70;
  background: #dff3ef;
  color: #005d56;
}

.item-history-range-controls label {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.item-history-range-controls input {
  width: 100%;
  min-height: 36px;
  padding: 7px 8px;
  font: inherit;
}

.item-history-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.item-history-summary > div {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f7fafb;
}

.item-history-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.item-history-summary strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-history-summary-status {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

.item-history-error {
  display: grid;
  gap: 8px;
}

.item-history-error small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.item-purchase-history-table {
  min-width: 720px;
}

.item-purchase-history-table th,
.item-purchase-history-table td {
  white-space: nowrap;
}

.item-purchase-history-table .numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.item-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 12px;
}
.item-panel-empty {
  margin: 12px;
}

.mini-table-wrap {
  max-height: 240px;
  overflow: auto;
}

.mini-table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 12px;
}

.mini-table th,
.mini-table td {
  padding: 8px;
  hyphens: none;
  word-break: keep-all;
  overflow-wrap: normal;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.mini-table th {
  position: sticky;
  top: 0;
  background: #f2f6f8;
  z-index: 1;
}

.item-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.item-report-actions {
  padding: 0 12px 12px;
}

.item-edit-modal {
  width: min(1260px, 98vw);
  max-height: calc(100vh - 24px);
}

.item-edit-modal .modal-header {
  padding: 10px 14px;
}

.item-edit-modal .modal-body {
  padding: 10px 14px 12px;
}

.item-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.item-edit-section {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.item-edit-section h3 {
  margin: 0;
  font-size: 15px;
}

.item-edit-identity,
.item-edit-wide,
.item-readonly-section,
.item-extra-section,
.item-edit-actions {
  grid-column: 1 / -1;
}

.item-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.item-edit-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.item-edit-grid label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.item-edit-grid input,
.item-edit-grid select {
  min-height: 34px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.item-edit-grid select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 6px 8px;
  background: #ffffff;
}

.item-edit-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.item-edit-check input {
  width: 17px;
  height: 17px;
}

.item-readonly-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.item-readonly-value {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.item-readonly-value span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.item-readonly-value strong {
  color: var(--ink);
  font-size: 13px;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-extra-grid {
  max-height: 132px;
  overflow: auto;
}

.item-edit-actions {
  position: sticky;
  bottom: 0;
  padding-top: 4px;
  background: #ffffff;
}

@media (max-width: 980px) {
  .item-edit-form,
  .item-edit-grid-three,
  .item-readonly-grid {
    grid-template-columns: 1fr;
  }
}
.item-report-modal {
  width: min(1040px, 94vw);
}

.item-report-modal-body {
  display: grid;
  gap: 14px;
}

.item-report-criteria {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.item-report-criteria label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.report-summary-grid {
  padding: 0;
}

.item-report-table-wrap {
  max-height: 58vh;
}
.item-detail-panel,
.item-detail-panel * {
  hyphens: none;
}

.item-detail-content .mini-table td,
.item-detail-content .mini-table th {
  white-space: nowrap;
}

@media (max-width: 1400px) {
  .item-list-layout {
    grid-template-columns: minmax(0, 1fr) minmax(520px, 0.46fr);
  }

  .item-detail-tab {
    gap: 6px;
    padding-inline: 10px;
    font-size: 13px;
  }
}
.item-detail-tabs,
.item-detail-tab,
.item-detail-tab span,
.item-detail-content,
.item-detail-content * {
  hyphens: none;
  word-break: keep-all;
  overflow-wrap: normal;
}
.item-edit-grid > .item-readonly-value {
  align-self: end;
  min-height: 34px;
}

.item-readonly-grid-single {
  grid-template-columns: 1fr;
}

.item-profile-section .item-edit-grid input,
.item-profile-section .item-edit-grid select {
  min-height: 36px;
}
.item-edit-modal {
  width: min(var(--item-edit-modal-width, 1500px), 99vw);
  max-height: calc(100vh - 14px);
}

.item-edit-modal .modal-body {
  padding: 8px 12px 10px;
}

.item-edit-three-column {
  display: grid;
  grid-template-columns: minmax(0, var(--item-edit-column-general, 1.45fr)) minmax(0, var(--item-edit-column-sales, 0.7fr)) minmax(0, var(--item-edit-column-purchase, 0.85fr));
  gap: 10px;
  align-items: start;
}

.item-edit-column {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.item-edit-column-general {
  background: #fff9df;
}

.item-edit-column-sales {
  background: #e8f8ef;
}

.item-edit-column-purchase {
  background: #fff0f0;
}

.item-edit-column .item-edit-section {
  padding: 8px;
  border-color: rgba(105, 126, 140, 0.28);
  background: rgba(255, 255, 255, 0.72);
}

.item-edit-column h3 {
  font-size: 14px;
}

.item-edit-compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item-edit-single-grid {
  grid-template-columns: minmax(0, 1fr);
}

.item-profile-grid {
  grid-template-columns: minmax(12ch, 15ch) minmax(7ch, 9ch) minmax(7ch, 8ch) minmax(20ch, 1fr) minmax(20ch, 1fr);
  align-items: end;
}

.item-profile-grid .field-description {
  grid-column: 4 / -1;
}

.item-profile-grid .field-register-description {
  grid-column: 1 / 4;
}

.item-profile-grid .field-label-description {
  grid-column: 4 / -1;
}

.item-merch-grid {
  grid-template-columns: minmax(12ch, 14ch) minmax(12ch, 14ch) minmax(17ch, 1fr) minmax(17ch, 1fr);
  align-items: end;
}

.item-sales-grid {
  grid-template-columns: minmax(8ch, 10ch) repeat(2, minmax(0, 1fr));
  align-items: end;
}

.item-purchase-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.item-purchase-grid .field-vendor {
  grid-column: 1 / 3;
}

.item-purchase-grid .field-vendor-item,
.item-purchase-grid .field-last-received {
  grid-column: 3 / -1;
}

.item-custom-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.item-custom-grid .field-description,
.item-custom-grid .field-register-description,
.item-custom-grid .field-label-description,
.item-custom-grid .field-vendor,
.item-custom-grid .field-vendor-item {
  grid-column: 1 / -1;
}

.item-misc-grid {
  grid-template-columns: minmax(13ch, 16ch);
}

.item-edit-grid {
  gap: 7px 8px;
}

.item-edit-grid label {
  gap: 3px;
}

.item-edit-grid > label,
.item-edit-grid > .item-edit-check,
.item-edit-grid > .item-readonly-value,
.item-readonly-grid > .item-readonly-value {
  min-width: 0;
}

.item-edit-grid input,
.item-edit-grid select {
  min-height: 31px;
  padding: 5px 8px;
  font-size: 13px;
}

.item-edit-check {
  min-height: 31px;
  padding: 5px 8px;
  font-size: 13px;
}

.item-readonly-value {
  min-height: 31px;
  padding: 5px 8px;
}

.item-extra-grid {
  max-height: 112px;
  overflow: auto;
  padding-right: 2px;
}

.item-edit-three-column .item-edit-actions {
  grid-column: 1 / -1;
  margin-top: 0;
  padding-top: 6px;
}

@media (max-width: 1180px) {
  .item-edit-three-column {
    grid-template-columns: 1fr;
  }
}

#settings.view.active {
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-gutter: stable;
}

#settings .item-layout-settings {
  margin-bottom: 32px;
}

.item-layout-visual-settings {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(110px, 140px) minmax(130px, 160px) repeat(3, minmax(105px, 135px));
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef7f6;
}

.item-layout-visual-settings label,
.item-layout-color-label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.item-layout-visual-settings input,
.item-layout-visual-settings select {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 750;
  padding: 7px 9px;
}

.item-layout-group-header {
  grid-template-columns: minmax(180px, 1fr) minmax(90px, 115px) minmax(170px, 0.42fr) minmax(115px, 140px) auto;
}

.item-layout-color-label input[type="color"] {
  width: 100%;
  min-height: 38px;
  padding: 3px;
}

.item-edit-form {
  font-family: var(--item-edit-font-family, inherit);
  font-size: var(--item-edit-font-size, 13px);
}

.item-edit-form input,
.item-edit-form select,
.item-edit-form button,
.item-edit-form .item-edit-check,
.item-edit-form .item-readonly-value,
.item-edit-form .item-readonly-value strong,
.item-edit-form .item-edit-grid label,
.item-edit-form .item-edit-column h3 {
  font-family: inherit;
}

.item-edit-form .item-edit-grid input,
.item-edit-form .item-edit-grid select,
.item-edit-form .item-edit-check,
.item-edit-form .item-readonly-value strong {
  font-size: var(--item-edit-font-size, 13px);
}

.item-edit-form .item-edit-grid label,
.item-edit-form .item-readonly-value span {
  font-size: max(11px, calc(var(--item-edit-font-size, 13px) - 2px));
}

.item-edit-form .item-edit-column h3 {
  font-size: calc(var(--item-edit-font-size, 13px) + 1px);
}

.item-edit-column .item-edit-section {
  background: var(--item-group-bg, rgba(255, 255, 255, 0.72));
}

@media (max-width: 980px) {
  .item-layout-visual-settings,
  .item-layout-group-header {
    grid-template-columns: 1fr;
  }
}
/* Item layout width controls */
.item-layout-group-header {
  grid-template-columns: minmax(180px, 1fr) minmax(80px, 100px) minmax(160px, 0.4fr) minmax(105px, 125px) minmax(105px, 125px) auto;
}

.item-layout-field-row {
  grid-template-columns: minmax(180px, 1fr) minmax(85px, 120px) minmax(100px, 125px) auto;
}

.item-layout-field-width {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.item-layout-field-width input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  padding: 6px 8px;
  font-weight: 750;
}

.item-edit-section,
.item-edit-grid > label,
.item-edit-grid > .item-edit-check,
.item-edit-grid > .item-readonly-value {
  box-sizing: border-box;
}

@media (max-width: 980px) {
  .item-layout-group-header,
  .item-layout-field-row {
    grid-template-columns: 1fr;
  }
}
/* Item edit checkbox labels above controls */
.item-edit-form .item-edit-check {
  display: grid;
  align-items: stretch;
  gap: 3px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.item-edit-form .item-edit-check-label {
  min-width: 0;
  font-size: max(11px, calc(var(--item-edit-font-size, 13px) - 2px));
  font-weight: 800;
  line-height: 1.2;
}

.item-edit-form .item-edit-check-control {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
}

.item-edit-form .item-edit-check-control input {
  width: 17px;
  height: 17px;
  margin: 0;
}
/* Item layout directional group controls */
.item-layout-group-actions {
  flex-wrap: wrap;
  align-items: center;
}

.item-layout-group-actions .item-layout-direction-btn {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 4px;
  font-size: 20px;
  line-height: 1;
}

.item-layout-group-header input[readonly] {
  background: var(--panel-soft);
  color: var(--muted);
  cursor: default;
}
/* Saved item field order is authoritative */
.item-edit-form .item-profile-grid,
.item-edit-form .item-merch-grid,
.item-edit-form .item-sales-grid,
.item-edit-form .item-purchase-grid,
.item-edit-form .item-misc-grid,
.item-edit-form .item-custom-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: row;
}

.item-edit-form .item-edit-grid:not(.item-extra-grid) > label,
.item-edit-form .item-edit-grid:not(.item-extra-grid) > .item-edit-check,
.item-edit-form .item-edit-grid:not(.item-extra-grid) > .item-readonly-value {
  min-width: 0;
}

.item-edit-form .item-extra-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* Sticky item layout actions */
#settings .item-layout-settings > .panel-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 5px 14px rgba(6, 21, 31, 0.1);
}
/* Read-only item labels above values */
.item-edit-form .item-readonly-value {
  display: grid;
  align-items: stretch;
  gap: 3px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.item-edit-form .item-readonly-label {
  min-width: 0;
  color: var(--muted);
  font-size: max(11px, calc(var(--item-edit-font-size, 13px) - 2px));
  font-weight: 800;
  line-height: 1.2;
}

.item-edit-form .item-readonly-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 31px;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  overflow: hidden;
}

.item-edit-form .item-readonly-control strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Item purchasing vendor profiles */
.item-vendor-profiles {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.item-vendor-profile[hidden] {
  display: none;
}

.item-vendor-profiles [data-add-vendor-profile] {
  width: 100%;
}

.item-vendor-profile {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(155, 82, 82, 0.24);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
}

.item-vendor-profile-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.item-vendor-profile-title strong {
  font-size: calc(var(--item-edit-font-size, 13px) + 1px);
}

.item-vendor-profile label {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--muted);
  font-size: max(11px, calc(var(--item-edit-font-size, 13px) - 2px));
  font-weight: 800;
}

.item-vendor-profile input,
.item-vendor-profile select {
  width: 100%;
  min-width: 0;
  min-height: 31px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 5px 8px;
  font-family: inherit;
  font-size: var(--item-edit-font-size, 13px);
  font-weight: 700;
}

.item-vendor-profile-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(90px, 0.6fr);
  gap: 7px;
}

.item-vendor-cost-history {
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.item-vendor-cost-history summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 850;
}

.item-vendor-cost-history .muted {
  margin: 7px 0 2px;
}

.item-vendor-cost-scroll {
  max-height: 140px;
  overflow: auto;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.item-vendor-cost-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: max(10px, calc(var(--item-edit-font-size, 13px) - 2px));
}

/* Item profile visual designer */
.item-layout-designer-modal {
  width: min(var(--item-edit-modal-width, 1500px), 99vw);
}

.item-layout-designer-modal .modal-body {
  padding-top: 0;
}

.item-layout-designer-toolbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -14px 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(6, 21, 31, 0.08);
}

.item-layout-designer-toolbar > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.item-layout-designer-toolbar strong {
  color: var(--ink);
  font-size: 15px;
}

.item-layout-designer-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.item-layout-designer-form {
  user-select: none;
}

.item-layout-designer-form input:disabled,
.item-layout-designer-form select:disabled,
.item-layout-designer-form textarea:disabled {
  opacity: 1;
  color: var(--ink);
  background: #ffffff;
  cursor: default;
}

.item-layout-designer-group {
  position: relative;
  outline: 2px dashed rgba(0, 128, 117, 0.32);
  outline-offset: -4px;
}

.item-layout-designer-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  cursor: grab;
}

.item-layout-designer-group-title:active {
  cursor: grabbing;
}

.item-layout-designer-group-title h3 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-layout-designer-group-title span {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.item-layout-designer-field {
  position: relative;
  min-width: 0;
  padding: 3px;
  border: 1px dashed rgba(71, 101, 116, 0.38);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.58);
  cursor: grab;
}

.item-layout-designer-field:active {
  cursor: grabbing;
}

.item-layout-designer-field > label,
.item-layout-designer-field > .item-edit-check,
.item-layout-designer-field > .item-readonly-value,
.item-layout-designer-field > .item-vendor-profiles {
  pointer-events: none;
}

.item-layout-designer-field.is-dragging,
.item-layout-designer-group.is-dragging {
  opacity: 0.45;
}

.item-layout-designer-drop-target {
  box-shadow: inset 0 0 0 3px rgba(0, 128, 117, 0.34);
}

.item-layout-designer-resize {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 17px;
  height: 17px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(0, 128, 117, 0.55);
  border-radius: 4px;
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(0, 128, 117, 0.85) 46% 54%, transparent 55%),
    #ffffff;
  cursor: ew-resize;
  opacity: 0.78;
}

.item-layout-designer-resize:hover {
  opacity: 1;
  border-color: var(--accent);
}

.item-layout-designer-group-resize {
  right: 6px;
  bottom: 6px;
}

.item-layout-designer-field-resize {
  right: 2px;
  bottom: 2px;
}

/* Corporate Minimal product profile workspace */
.product-profile-overlay {
  left: 260px;
  padding: 12px 14px;
  align-items: stretch;
  justify-content: stretch;
  background: #e9eef4;
}

.product-profile-workspace,
.product-profile-workspace.item-edit-modal {
  width: 100%;
  height: calc(100vh - 24px);
  max-height: none;
  border: 1px solid #cfd8e3;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(26, 42, 61, 0.08);
}

.product-profile-workspace > .modal-header {
  flex: 0 0 40px;
  min-height: 40px;
  padding: 5px 16px;
  border-bottom: 1px solid #d7dee8;
  background: #f8fafc;
}

.product-profile-workspace > .modal-header h2 {
  color: #536277;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.product-profile-workspace > .modal-header .ghost {
  min-height: 29px;
  padding: 4px 10px;
  border-color: #c8d2df;
  border-radius: 5px;
  background: #ffffff;
  font-size: 11px;
}

.product-profile-workspace > .modal-body,
.product-profile-workspace.item-edit-modal > .modal-body {
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--surface-subtle);
  scrollbar-gutter: stable;
}

.product-profile-form,
.product-profile-workspace .product-profile-form.item-edit-form {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 66px);
  color: #17243a;
  background: var(--surface-subtle);
}

.product-profile-inner {
  width: min(calc(100% - 32px), 1480px);
  margin-right: auto;
  margin-left: auto;
}

.product-profile-sticky-header {
  position: sticky;
  top: 0;
  z-index: 12;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 98%, transparent);
  box-shadow: 0 1px 3px rgba(23, 38, 57, 0.05);
}

.product-profile-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(540px, 0.95fr);
  min-height: 96px;
  padding: 13px 0 10px;
  gap: 28px;
  align-items: center;
}

.product-profile-identity {
  min-width: 0;
}

.product-profile-title-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.product-profile-title-row h1 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #14213a;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-profile-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 1px 7px;
  border: 1px solid #cbd5db;
  border-radius: 999px;
  color: #4c5c66;
  background: #f5f7f8;
  font-size: 10px;
  font-weight: 700;
}

.product-profile-status.is-active {
  border-color: #b8dcca;
  color: #17643a;
  background: #eaf7ef;
}

.product-profile-status.is-inactive {
  border-color: #dfc5c7;
  color: #8a3439;
  background: #fbf1f2;
}

.product-profile-identity p {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 6px 0 0;
  gap: 5px;
  row-gap: 3px;
  flex-wrap: wrap;
  color: #718096;
  font-size: 11px;
}

.product-profile-identity p strong {
  color: #334158;
  font-weight: 650;
}

.product-profile-header-side {
  display: grid;
  min-width: 540px;
  gap: 8px;
  justify-items: end;
}

.product-profile-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 30px;
  gap: 10px;
}

.product-profile-mode-label {
  color: #718096;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.product-profile-identity p i {
  margin: 0 3px;
  color: #a5b0b7;
  font-style: normal;
}

.product-profile-key-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(88px, 1fr));
  width: 100%;
  min-width: 540px;
  border: 1px solid #d5dde8;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.product-profile-key-facts > div {
  display: grid;
  min-width: 0;
  padding: 7px 12px 8px;
  gap: 2px;
  border-right: 1px solid #dfe5e9;
}

.product-profile-key-facts > div:last-child {
  border-right: 0;
}

.product-profile-key-facts span {
  color: #758297;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.product-profile-key-facts strong {
  overflow: hidden;
  color: #15233b;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-profile-tabs {
  display: flex;
  align-items: end;
  min-height: 38px;
  gap: 27px;
}

.product-profile-tab {
  align-self: stretch;
  min-width: 0;
  min-height: 37px;
  padding: 8px 1px 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #66758a;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.product-profile-tab:hover {
  color: var(--accent);
}

.product-profile-tab.active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.product-profile-tab:focus-visible,
.product-profile-workspace input:focus-visible,
.product-profile-workspace select:focus-visible,
.product-profile-workspace button:focus-visible,
.product-profile-workspace summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.product-profile-workspace .primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.product-profile-workspace .primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.product-profile-workspace .item-concession-ownership-banner {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin-top: 9px;
  padding: 5px 10px;
  gap: 10px;
  border: 1px solid #d8e0ea;
  border-left: 3px solid #778ba6;
  border-radius: 5px;
  color: #536176;
  background: #f7f9fc;
  font-size: 11px;
}

.product-profile-workspace .item-concession-ownership-banner > div:first-child {
  display: grid;
  flex: 0 0 auto;
  gap: 1px;
}

.product-profile-workspace .item-concession-label,
.product-profile-workspace .item-concession-unassigned {
  color: #6b7881;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.product-profile-workspace .item-concession-ownership-rules {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 5px;
  flex-wrap: wrap;
}

.product-profile-content {
  flex: 1 0 auto;
  min-width: 0;
  padding-top: 11px;
  padding-bottom: 18px;
}

.product-profile-tab-panel,
.product-profile-tab-grid,
.product-profile-column {
  min-width: 0;
}

.product-profile-tab-panel[hidden] {
  display: none;
}

.product-profile-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, var(--item-edit-column-general, 1.7fr)) minmax(330px, var(--item-edit-column-sales, 0.86fr));
  gap: 12px;
  align-items: start;
}

.product-profile-overview-grid.is-single-column {
  grid-template-columns: minmax(0, 1fr);
}

.product-profile-operational-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 12px;
  align-items: start;
}

.product-profile-operational-panel {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #d6dee9;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(24, 39, 58, 0.035);
}

.product-profile-operational-panel > h3,
.product-profile-operational-heading {
  min-height: 29px;
  margin: 0;
  padding-bottom: 7px;
  border-bottom: 1px solid #e1e6ed;
}

.product-profile-operational-panel > h3,
.product-profile-operational-heading h3 {
  color: #1d2c45;
  font-size: 14px;
  font-weight: 700;
}

.product-profile-operational-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-profile-operational-heading h3 {
  margin: 0;
}

.product-profile-operational-facts {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 14px;
}

.product-profile-operational-fact {
  display: grid;
  grid-column: span 3;
  min-width: 0;
  min-height: 54px;
  padding: 8px 0 7px;
  gap: 3px;
  align-content: start;
  border-bottom: 1px solid #e5eaf0;
}

.product-profile-operational-fact.span-2 {
  grid-column: span 2;
}

.product-profile-operational-fact.span-3 {
  grid-column: span 3;
}

.product-profile-operational-fact.span-4 {
  grid-column: span 4;
}

.product-profile-operational-fact.span-5 {
  grid-column: span 5;
}

.product-profile-operational-fact.span-6 {
  grid-column: span 6;
}

.product-profile-operational-fact.span-12 {
  grid-column: span 12;
}

.product-profile-operational-label {
  overflow: hidden;
  color: #68768a;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-profile-operational-value {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  overflow-wrap: anywhere;
  color: #17263d;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.3;
}

.product-profile-operational-value i {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa8b4;
}

.product-profile-operational-fact.is-true .product-profile-operational-value i {
  background: #246bce;
}

.product-profile-operational-subsection {
  padding-top: 7px;
}

.product-profile-operational-subsection h4 {
  margin: 0;
  color: #334158;
  font-size: 11px;
  font-weight: 700;
}

.product-profile-operational-subsection .product-profile-operational-fact {
  min-height: 49px;
}

.product-profile-health-chip {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 7px;
  border: 1px solid #d3dbe5;
  border-radius: 999px;
  color: #5f6e82;
  background: #f6f8fa;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.product-profile-health-chip.warn {
  border-color: #efd7a1;
  color: #8a5a05;
  background: #fff8e8;
}

.product-profile-health-chip.bad {
  border-color: #e6c7ca;
  color: #973c43;
  background: #fdf2f3;
}

.product-profile-health-chip.good {
  border-color: #badcca;
  color: #17643a;
  background: #edf8f1;
}

.product-profile-operational-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 7px;
}

.product-profile-operational-footer .link-button {
  min-height: 27px;
  padding: 2px 0;
  border: 0;
  color: #1f5fb8;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.product-profile-operational-footer .link-button:hover {
  color: #174a91;
  text-decoration: underline;
}

.product-profile-overview-configured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
  gap: 12px;
}

.product-profile-column,
.product-profile-tab-grid {
  display: grid;
  gap: 10px;
  align-content: start;
}

.product-profile-additional-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-profile-workspace .item-edit-section {
  min-width: 0;
  padding: 12px 13px;
  gap: 8px;
  border: 1px solid #d6dee9;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(24, 39, 58, 0.035);
}

.product-profile-workspace .item-edit-section > h3 {
  margin: 0;
  padding-bottom: 7px;
  border-bottom: 1px solid #e1e6ed;
  color: #1d2c45;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.product-profile-workspace .item-edit-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 7px 10px;
  align-items: end;
}

.product-profile-workspace .item-edit-grid > label,
.product-profile-workspace .item-edit-grid > .item-edit-check,
.product-profile-workspace .item-edit-grid > .item-readonly-value,
.product-profile-workspace .item-edit-grid > .product-profile-readonly-field,
.product-profile-workspace .item-vendor-profiles {
  min-width: 0;
}

.product-profile-workspace .item-edit-grid label,
.product-profile-workspace .item-vendor-profile label {
  gap: 4px;
  color: #68768a;
  font-size: max(11px, calc(var(--item-edit-font-size, 13px) - 2px));
  font-weight: 600;
}

.product-profile-workspace .item-edit-grid input,
.product-profile-workspace .item-edit-grid select,
.product-profile-workspace .item-vendor-profile input,
.product-profile-workspace .item-vendor-profile select {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid #bcc8d6;
  border-radius: 5px;
  color: #1a2940;
  background: #ffffff;
  font-size: var(--item-edit-font-size, 13px);
  font-weight: 500;
}

.product-profile-workspace .item-edit-grid input:hover,
.product-profile-workspace .item-edit-grid select:hover,
.product-profile-workspace .item-vendor-profile input:hover,
.product-profile-workspace .item-vendor-profile select:hover {
  border-color: #91a5b3;
}

.product-profile-workspace .item-edit-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 5px 9px;
  gap: 8px;
  border: 1px solid #d0d8e2;
  border-radius: 5px;
  color: #34445a;
  background: #f8fafc;
}

.product-profile-workspace .item-edit-check-label {
  color: #536278;
  font-size: max(11px, calc(var(--item-edit-font-size, 13px) - 1px));
  font-weight: 600;
}

.product-profile-workspace .item-edit-check-control {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.product-profile-workspace .item-edit-check-control input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
}

.product-profile-readonly-field {
  display: grid;
  min-width: 0;
  gap: 4px;
  align-content: end;
}

.product-profile-readonly-field > span {
  overflow: hidden;
  color: #6d7a8d;
  font-size: max(11px, calc(var(--item-edit-font-size, 13px) - 2px));
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-profile-readonly-value {
  display: flex;
  align-items: center;
  min-height: 32px;
  min-width: 0;
  padding: 5px 2px;
  gap: 7px;
  border-bottom: 1px solid #dce3eb;
  color: #17263d;
}

.product-profile-readonly-value strong {
  min-width: 0;
  overflow: hidden;
  font-size: var(--item-edit-font-size, 13px);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-profile-workspace .item-readonly-value {
  display: grid;
  min-width: 0;
  gap: 4px;
  align-content: end;
}

.product-profile-workspace .item-readonly-label {
  overflow: hidden;
  color: #6d7a8d;
  font-size: max(11px, calc(var(--item-edit-font-size, 13px) - 2px));
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-profile-workspace .item-readonly-control {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 32px;
  min-width: 0;
  padding: 5px 2px;
  border: 0;
  border-bottom: 1px solid #dce3eb;
  border-radius: 0;
  color: #17263d;
  background: transparent;
}

.product-profile-workspace .item-readonly-control strong {
  min-width: 0;
  overflow: hidden;
  font-size: var(--item-edit-font-size, 13px);
  font-weight: 600;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-profile-readonly-field.is-true .product-profile-readonly-value i,
.product-profile-readonly-field.is-false .product-profile-readonly-value i {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa8b1;
}

.product-profile-readonly-field.is-true .product-profile-readonly-value i {
  background: #346b9f;
}

.product-profile-workspace .item-extra-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-height: none;
  padding-right: 0;
  overflow: visible;
}

.product-profile-workspace .item-vendor-profiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-profile-workspace .item-vendor-profile {
  min-width: 0;
  padding: 11px;
  gap: 8px;
  border: 1px solid #d6dee3;
  border-radius: 6px;
  background: #ffffff;
}

.product-profile-workspace .item-vendor-profile:first-child {
  grid-column: 1 / -1;
  width: min(100%, 920px);
}

.product-profile-workspace .item-vendor-profile-title > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.product-profile-workspace .item-vendor-profile-title > div span {
  color: #71808a;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-profile-workspace .item-vendor-profile-title strong {
  color: #263740;
  font-size: 14px;
  font-weight: 730;
}

.product-profile-workspace .item-vendor-profile .tag {
  color: #285b8f;
  background: #edf4fb;
}

.product-profile-workspace .item-vendor-profiles [data-add-vendor-profile] {
  grid-column: 1 / -1;
  width: auto;
  justify-self: start;
}

.product-profile-vendor-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-profile-vendor-facts > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.product-profile-vendor-facts span {
  color: #6b7982;
  font-size: 10px;
  font-weight: 700;
}

.product-profile-vendor-facts strong {
  min-width: 0;
  overflow: hidden;
  color: #263740;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-profile-workspace .item-vendor-cost-history {
  padding-top: 7px;
  border-top-color: #e1e6e9;
}

.product-profile-workspace .item-vendor-cost-history summary {
  color: #315f8d;
  font-size: 12px;
  font-weight: 720;
}

.product-profile-workspace .item-vendor-cost-scroll {
  max-height: none;
  overflow: visible;
  border-color: #dbe2e6;
  border-radius: 4px;
}

.product-profile-workspace .item-vendor-cost-scroll table {
  table-layout: fixed;
}

.product-profile-workspace .item-vendor-cost-scroll th,
.product-profile-workspace .item-vendor-cost-scroll td {
  padding: 6px 7px;
  overflow-wrap: anywhere;
}

.product-profile-empty-section {
  min-height: 70px;
  padding: 18px;
  border: 1px dashed #ccd6dc;
  border-radius: 6px;
  color: #697881;
  background: #fafbfc;
  font-size: 13px;
}

.product-profile-action-buttons {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.product-profile-action-buttons button {
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 650;
}

@media (max-width: 1450px) {
  .product-profile-overlay {
    padding: 10px 12px;
  }

  .product-profile-workspace,
  .product-profile-workspace.item-edit-modal {
    height: calc(100vh - 20px);
  }

  .product-profile-inner {
    width: calc(100% - 24px);
  }

  .product-profile-header {
    gap: 18px;
  }

  .product-profile-title-row h1 {
    font-size: 21px;
  }

  .product-profile-header-side,
  .product-profile-key-facts {
    min-width: 500px;
  }

  .product-profile-key-facts {
    grid-template-columns: repeat(5, minmax(82px, 1fr));
  }

  .product-profile-key-facts > div {
    padding-right: 9px;
    padding-left: 9px;
  }
}

@media (max-width: 1250px) {
  .product-profile-overview-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.9fr);
  }

  .product-profile-operational-overview,
  .product-profile-overview-configured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .product-profile-overview-grid,
  .product-profile-operational-overview,
  .product-profile-overview-configured,
  .product-profile-additional-groups {
    grid-template-columns: 1fr;
  }

  .product-profile-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product-profile-header-side {
    width: 100%;
    min-width: 0;
    justify-items: stretch;
  }

  .product-profile-header-actions {
    justify-content: space-between;
  }

  .product-profile-key-facts {
    min-width: 0;
    width: 100%;
  }

  .product-profile-workspace .item-vendor-profiles {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 820px) {
  .product-profile-overlay {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .product-profile-workspace,
  .product-profile-workspace.item-edit-modal {
    height: calc(100vh - 16px);
  }

  .product-profile-workspace > .modal-header {
    flex-basis: 38px;
    min-height: 38px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .product-profile-form,
  .product-profile-workspace .product-profile-form.item-edit-form {
    min-height: calc(100vh - 56px);
  }

  .product-profile-header {
    min-height: 84px;
    padding-top: 8px;
    padding-bottom: 7px;
  }

  .product-profile-title-row h1 {
    font-size: 19px;
  }

  .product-profile-tabs {
    min-height: 35px;
  }

  .product-profile-tab {
    min-height: 34px;
    padding-top: 6px;
    padding-bottom: 5px;
  }

  .product-profile-workspace .item-concession-ownership-banner {
    min-height: 34px;
    margin-top: 7px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .product-profile-content {
    padding-top: 9px;
    padding-bottom: 12px;
  }

  .product-profile-overview-grid,
  .product-profile-operational-overview,
  .product-profile-column,
  .product-profile-tab-grid {
    gap: 9px;
  }

  .product-profile-operational-panel {
    padding: 9px 10px;
  }

  .product-profile-operational-fact {
    min-height: 48px;
    padding-top: 6px;
    padding-bottom: 5px;
  }

  .product-profile-operational-subsection .product-profile-operational-fact {
    min-height: 44px;
  }

  .product-profile-workspace .item-edit-section {
    padding: 9px 10px;
    gap: 7px;
  }

  .product-profile-header-side {
    gap: 6px;
  }

  .product-profile-key-facts > div {
    padding-top: 5px;
    padding-bottom: 6px;
  }
}

/* Phone order visual designer */
.phone-order-layout-designer-modal {
  width: min(1420px, 98vw);
}

.phone-order-layout-designer-modal .modal-body {
  padding-top: 0;
}

.phone-order-layout-designer-form {
  height: auto;
  min-height: 620px;
  user-select: none;
}

.phone-order-layout-designer-form input:disabled,
.phone-order-layout-designer-form select:disabled,
.phone-order-layout-designer-form textarea:disabled,
.phone-order-layout-designer-form button:disabled {
  opacity: 1;
  color: var(--ink);
  background: #ffffff;
  cursor: default;
}

.phone-order-layout-designer-group-resize {
  cursor: nwse-resize;
}

.phone-order-layout-designer-field > *:not(.item-layout-designer-resize) {
  pointer-events: none;
}

.phone-order-designer-placeholder {
  min-height: 58px;
}

.item-vendor-cost-scroll th,
.item-vendor-cost-scroll td {
  padding: 5px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.item-vendor-cost-scroll th {
  position: sticky;
  top: 0;
  background: var(--panel-soft);
}

@media (max-width: 1180px) {
  .item-vendor-profile-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Item Lookup — Corporate Minimal */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.item-lookup-workspace {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 11px;
  height: 100%;
  min-height: 0;
}

.item-lookup-commandbar {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.item-lookup-commandbar-context,
.item-lookup-commandbar-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.item-lookup-commandbar-context > span {
  overflow: hidden;
  color: #526174;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-lookup-commandbar-actions button {
  min-height: 36px;
}

.item-lookup-workspace .primary {
  border-color: #1767c5;
  background: #1767c5;
}

.item-lookup-workspace .primary:hover {
  border-color: #0f56aa;
  background: #0f56aa;
}

.item-lookup-search-panel {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.item-search-input {
  width: 100%;
  height: 45px;
  padding: 9px 13px;
  border: 1px solid #b7c4d2;
  border-radius: 6px;
  background: #ffffff;
  color: #152841;
  font-size: 14px;
}

.item-search-input:focus,
.item-filter-row select:focus,
.item-results-table tr:focus {
  border-color: #1767c5;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(23, 103, 197, 0.13);
}

.item-filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 205px)) max-content;
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.item-filter-row label {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: #56667a;
  font-size: 11px;
  font-weight: 750;
}

.item-filter-row select {
  width: 100%;
  height: 35px;
  min-width: 0;
  padding: 6px 9px;
  border: 1px solid #bdc9d5;
  border-radius: 6px;
  background-color: #ffffff;
  color: #1b2e48;
  font-size: 12px;
}

.item-filter-row .item-filter-clear {
  min-height: 35px;
  white-space: nowrap;
}

.item-lookup-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 324px;
  gap: 11px;
  min-height: 0;
}

.item-results-panel,
.item-quick-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #d4dde7;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(22, 42, 67, 0.04);
}

.item-results-panel {
  display: flex;
}

.item-table-wrap {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
}

.item-results-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  color: #172b46;
  font-size: 12px;
}

.item-results-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 38px;
  padding: 8px 9px;
  border-bottom: 1px solid #ccd7e2;
  background: #f4f6f8;
  color: #354861;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.item-results-table td {
  height: 43px;
  padding: 5px 9px;
  overflow: hidden;
  border-bottom: 1px solid #e2e8ee;
  background: #ffffff;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.item-results-table td strong,
.item-results-table td > span:not(.item-status) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-results-table td strong {
  color: #182c47;
  font-weight: 650;
}

.item-results-table td > span:not(.item-status) {
  margin-top: 1px;
  color: #748296;
  font-size: 10px;
}

.item-results-table tr[data-item] {
  cursor: default;
}

.item-results-table tr[data-item]:hover td {
  background: #f7f9fb;
}

.item-results-table tr.selected-row td,
.item-results-table tr:focus td {
  background: #eaf3ff;
}

.item-results-table tr.selected-row td:first-child,
.item-results-table tr:focus td:first-child {
  box-shadow: inset 3px 0 #1767c5;
}

.item-col-number { width: 13%; }
.item-col-description { width: 23%; }
.item-col-size { width: 8%; }
.item-col-class { width: 17%; }
.item-col-brand { width: 9%; }
.item-col-price { width: 7%; }
.item-col-onhand { width: 7%; }
.item-col-location { width: 9%; }
.item-col-status { width: 7%; }

.item-lookup-workspace .item-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #4d5e72;
  font-size: 11px;
  font-weight: 750;
}

.item-lookup-workspace .item-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa8b7;
  content: "";
}

.item-lookup-workspace .item-status.active {
  color: #167347;
}

.item-lookup-workspace .item-status.active::before {
  background: #18a05e;
}

.item-lookup-workspace .item-status.inactive {
  color: #8a5b12;
}

.item-lookup-workspace .item-status.inactive::before {
  background: #d99116;
}

.item-row-flags {
  max-width: 100%;
}

.item-empty-row td,
.item-detail-empty {
  padding: 24px;
  color: #69788b;
  text-align: center;
}

.item-list-table-loading {
  box-shadow: inset 0 3px #1767c5;
}

.item-list-updating-row td {
  background: #eef5fd;
  color: #174f91;
  font-weight: 750;
}

.item-list-updating-row td::before {
  background: #1767c5;
  box-shadow: 0 0 0 0 rgba(23, 103, 197, 0.3);
}

.item-quick-panel {
  display: flex;
  flex-direction: column;
}

.item-quick-header {
  flex: 0 0 auto;
  padding: 11px 13px;
  border-bottom: 1px solid #dfe6ed;
}

.item-quick-header h3 {
  margin: 0;
  color: #152841;
  font-size: 14px;
}

.item-quick-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 11px 13px;
  overflow-y: auto;
}

.item-lookup-workspace .item-detail-identity {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8ee;
}

.item-lookup-workspace .item-detail-identity h4 {
  margin: 0;
  color: #12233d;
  font-size: 14px;
  line-height: 1.3;
}

.item-lookup-workspace .item-facts {
  flex: 1;
  min-height: 0;
}

.item-lookup-workspace .item-fact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8px;
  align-items: baseline;
  min-height: 25px;
  padding: 4px 0;
  border-bottom: 1px solid #edf1f5;
  font-size: 11px;
}

.item-lookup-workspace .item-fact span {
  color: #68798d;
}

.item-lookup-workspace .item-fact strong {
  overflow: hidden;
  color: #1d304a;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-lookup-workspace .item-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  flex: 0 0 auto;
  padding-top: 10px;
}

.item-lookup-workspace .item-quick-actions button {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 11px;
}

.purchase-order-history-columns .item-history-section-focus {
  border-color: #1767c5;
  box-shadow: 0 0 0 2px rgba(23, 103, 197, 0.12);
}

/* Item Lookup and Activity/History â€” shared Corporate Minimal workspace pattern. */
.item-lookup-workspace {
  gap: var(--space-3);
}

.item-lookup-commandbar {
  min-height: 58px;
  padding: 0 0 var(--space-3);
  border-bottom: 1px solid var(--line);
}

.item-lookup-commandbar-context {
  align-items: flex-start;
}

.item-lookup-heading {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.item-lookup-eyebrow,
.item-results-header span,
.item-quick-header span,
.item-history-range-heading span {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.item-lookup-heading h2 {
  color: var(--text-primary);
  font-size: 20px;
}

.item-lookup-heading #itemResultSummary {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-lookup-search-panel.context-panel {
  grid-template-columns: 1fr;
  padding: var(--space-3);
  border-bottom: 0;
  background: var(--surface-subtle);
}

.item-search-input {
  height: var(--control-height);
  border-color: var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.item-search-input:focus,
.item-filter-row select:focus,
.item-results-table tr:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.item-filter-row label {
  color: var(--text-secondary);
}

.item-filter-row select {
  border-color: var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.item-lookup-workspace .primary {
  border-color: var(--accent);
  background: var(--accent);
}

.item-lookup-workspace .primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.item-results-panel,
.item-quick-panel {
  border-color: var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.item-results-panel {
  flex-direction: column;
}

.item-results-header,
.item-quick-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px var(--space-3);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.item-results-header > div,
.item-quick-header > div {
  display: grid;
  gap: 2px;
}

.item-results-header h3,
.item-quick-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
}

.item-results-hint {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

.item-results-table th {
  background: var(--surface-subtle);
  color: var(--text-secondary);
}

.item-results-table tr[data-item]:hover td {
  background: var(--accent-soft);
}

.item-results-table tr.selected-row td,
.item-results-table tr:focus td {
  background: color-mix(in srgb, var(--accent-soft) 72%, white);
}

.item-results-table tr.selected-row td:first-child,
.item-results-table tr:focus td:first-child {
  box-shadow: inset 3px 0 var(--accent);
}

.item-list-table-loading {
  box-shadow: inset 0 3px var(--accent);
}

.item-list-updating-row td {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.item-list-updating-row td::before {
  background: var(--accent);
}

.item-quick-body {
  padding: var(--space-3);
}

.item-lookup-workspace .item-detail-identity h4,
.item-lookup-workspace .item-fact strong {
  color: var(--text-primary);
}

.item-lookup-workspace .item-fact span {
  color: var(--text-secondary);
}

.item-detail-tabs {
  padding-inline: var(--space-3);
  background: var(--surface);
}

.item-detail-tab.workspace-tab:hover,
.item-detail-tab.workspace-tab.active {
  color: var(--accent);
}

.item-detail-tab.workspace-tab.active {
  border-bottom-color: var(--accent);
}

.item-activity-workspace {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--surface-subtle);
}

.item-history-range-controls.context-panel {
  display: grid;
  grid-template-columns: minmax(145px, .42fr) minmax(0, 1fr);
  gap: var(--space-3);
  align-items: end;
  padding: var(--space-3);
  border-bottom: 0;
  background: var(--surface);
}

.item-history-range-heading {
  display: grid;
  gap: 3px;
  align-self: center;
}

.item-history-range-heading strong {
  color: var(--text-primary);
  font-size: 14px;
}

.item-history-range-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: var(--space-2);
  align-items: end;
}

.item-history-range-presets {
  grid-column: 1 / -1;
}

.item-history-range-button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.item-history-range-controls label {
  color: var(--text-secondary);
}

.item-history-range-controls input {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.item-history-summary {
  gap: var(--space-2);
  padding: 0;
  border-bottom: 0;
  background: transparent;
}

.item-history-summary > div {
  padding: var(--space-2) var(--space-3);
  border-color: var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.item-history-summary span {
  color: var(--text-secondary);
}

.item-history-summary-status,
.item-history-results {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.item-history-results {
  min-height: 96px;
  overflow: hidden;
}

.item-history-results .item-panel-empty {
  margin: 0;
  padding: var(--space-4);
}

@media (max-width: 1500px) {
  .item-lookup-content {
    grid-template-columns: minmax(0, 1fr) 286px;
  }

  .item-filter-row {
    grid-template-columns: repeat(4, minmax(130px, 1fr)) max-content;
  }

  .item-results-table .item-col-brand {
    display: none;
  }

  .item-row-flags {
    display: none !important;
  }
}

@media (max-height: 820px) {
  .item-lookup-workspace {
    gap: 8px;
  }

  .item-search-input {
    height: 40px;
  }

  .item-lookup-search-panel {
    gap: 6px;
  }

  .item-filter-row select,
  .item-filter-row .item-filter-clear {
    height: 33px;
    min-height: 33px;
  }

  .item-results-table td {
    height: 39px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .item-lookup-workspace .item-fact {
    min-height: 22px;
    padding-top: 3px;
    padding-bottom: 3px;
  }

  .item-quick-header,
  .item-quick-body {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

@media (max-width: 1180px) {
  .item-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) max-content;
  }

  .item-filter-row .item-filter-clear {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: stretch;
  }
}

@media (max-width: 980px) {
  .item-lookup-commandbar {
    align-items: stretch;
  }

  .item-lookup-commandbar,
  .item-lookup-content {
    grid-template-columns: 1fr;
  }

  .item-lookup-commandbar {
    display: grid;
  }

  .item-lookup-commandbar-actions {
    justify-content: flex-end;
  }

  .item-lookup-content {
    overflow: auto;
  }

  .item-results-panel {
    min-height: 440px;
  }

  .item-quick-panel {
    min-height: 460px;
  }
}
