/* Shared master-data dialog. POS remains excluded by the premium-shell scope. */
body.vx-premium-shell:not(.pos-active) #entityDetailDialog.vx-product-master {
  width: min(1320px, calc(100vw - 32px));
  max-width: 1320px;
  height: min(820px, calc(100dvh - 24px));
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}
body.vx-premium-shell:not(.pos-active) #entityDetailDialog.vx-product-master > form {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}
body.vx-premium-shell:not(.pos-active) #entityDetailDialog.vx-product-master #entityBreadcrumbs {
  flex: none;
  min-height: 30px;
  padding: 7px 20px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.vx-premium-shell:not(.pos-active) #entityDetailDialog.vx-product-master > form > .panel-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 38px;
  margin: 0;
  padding: 0 20px 7px;
  position: static;
  background: transparent;
}
body.vx-premium-shell:not(.pos-active) #entityDetailDialog.vx-product-master > form > .panel-head > div { display: none; }
body.vx-premium-shell:not(.pos-active) #entityDetailDialog.vx-product-master > form > .panel-head > button { min-height: 30px; padding: 4px 10px; }
body.vx-premium-shell:not(.pos-active) #entityDetailDialog.vx-product-master #entityDetailBody.detail-sections {
  display: block;
  flex: 1;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.vx-product-master {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
  color: var(--vx-color-text-primary);
}
.vx-product-master__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex: none;
  padding: 12px 24px 14px;
  border-bottom: 1px solid var(--vx-color-border-subtle);
}
.vx-product-master__identity { min-width: 0; }
.vx-product-master__eyebrow { display: block; color: var(--vx-color-text-muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.vx-product-master__identity h2 {
  max-width: 66ch;
  overflow: hidden;
  margin: 4px 0 2px;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vx-product-master__identity p { max-width: 60ch; overflow: hidden; margin: 0; color: var(--vx-color-text-secondary); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.vx-product-master__badges, .vx-product-master__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.vx-product-master__badges { margin-top: 8px; }
.vx-product-master__actions { justify-content: flex-end; flex: none; max-width: 44%; }
.vx-product-master__badge { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border: 1px solid var(--vx-color-border-default); border-radius: var(--vx-radius-control); background: var(--vx-color-surface-subtle); color: var(--vx-color-text-secondary); font-size: 11px; white-space: nowrap; }
.vx-product-master__badge[data-state='ACTIVE'] { color: var(--vx-color-accent-text); }
.vx-product-master__summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  flex: none;
  margin: 0 24px;
  border-bottom: 1px solid var(--vx-color-border-subtle);
}
.vx-product-master__stat { display: grid; align-content: center; gap: 3px; min-width: 0; min-height: 58px; padding: 8px 12px 8px 0; }
.vx-product-master__stat span { overflow: hidden; color: var(--vx-color-text-muted); font-size: 10px; font-weight: 650; letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.vx-product-master__stat strong { min-width: 0; overflow: hidden; color: var(--vx-color-text-primary); font-size: 15px; font-variant-numeric: tabular-nums; font-weight: 650; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.vx-product-master__stat .related-link { max-width: 100%; overflow: hidden; font-size: inherit; font-weight: inherit; text-overflow: ellipsis; white-space: nowrap; }
.vx-product-master__missing, .vx-product-master__empty { color: var(--vx-color-text-muted); font-weight: 400; }
.vx-product-master__tabs { display: flex; gap: 2px; flex: none; min-width: 0; margin: 0 24px; overflow-x: auto; border-bottom: 1px solid var(--vx-color-border-subtle); scrollbar-width: thin; }
.vx-product-master__tabs [role='tab'] { flex: none; min-height: 42px; padding: 8px 13px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--vx-color-text-secondary); font-size: 12px; font-weight: 650; white-space: nowrap; }
.vx-product-master__tabs [role='tab']:hover { background: var(--vx-color-surface-hover); color: var(--vx-color-text-primary); }
.vx-product-master__tabs [role='tab'][aria-selected='true'] { border-bottom-color: var(--vx-color-accent); color: var(--vx-color-text-primary); }
.vx-product-master :is(button, [role='tab']):focus-visible { outline: 2px solid var(--vx-color-accent); outline-offset: -2px; }
.vx-product-master__panels { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 24px 24px; }
body.vx-premium-shell:not(.pos-active) #entityDetailDialog.vx-product-master .vx-product-master__panels > section { display: block; max-width: none; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
body.vx-premium-shell:not(.pos-active) #entityDetailDialog.vx-product-master .vx-product-master__panels > section[hidden] { display: none; }
.vx-product-master__panel-title { margin: 0 0 12px; font-size: 15px; }
.vx-product-master__panels h4 { margin: 12px 0 8px; font-size: 12px; }
.vx-product-master__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; margin: 0; }
.vx-product-master__field { display: grid; grid-template-columns: minmax(100px, .5fr) minmax(0, 1fr); align-items: baseline; gap: 10px; min-width: 0; padding: 9px 0; border-bottom: 1px solid var(--vx-color-border-subtle); }
.vx-product-master__field dt { color: var(--vx-color-text-muted); font-size: 11px; }
.vx-product-master__field dd { min-width: 0; overflow-wrap: anywhere; margin: 0; font-size: 12px; }
.vx-product-master__field .related-link { color: var(--vx-color-accent-text); }
.vx-product-master__copy { margin-top: 12px; }
.vx-product-master__copy p { max-width: 85ch; margin: 0; color: var(--vx-color-text-secondary); font-size: 12px; line-height: 1.55; }
.vx-product-master__columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.vx-product-master__related { display: grid; gap: 0; max-height: 260px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.vx-product-master__related li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 34px; padding: 7px 0; border-bottom: 1px solid var(--vx-color-border-subtle); font-size: 12px; }
.vx-product-master__related li span { color: var(--vx-color-text-secondary); }
.vx-product-master__empty { margin: 6px 0 12px; font-size: 12px; }
@media (max-width: 1080px) {
  .vx-product-master__summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vx-product-master__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vx-product-master__hero { gap: 12px; }
  .vx-product-master__actions { max-width: 50%; }
}
@media (max-width: 760px) {
  body.vx-premium-shell:not(.pos-active) #entityDetailDialog.vx-product-master { width: calc(100vw - 12px); height: calc(100dvh - 12px); max-height: calc(100dvh - 12px); }
  .vx-product-master__hero { flex-wrap: wrap; padding: 10px 14px; }
  .vx-product-master__actions { justify-content: flex-start; max-width: 100%; }
  .vx-product-master__summary { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 14px; }
  .vx-product-master__stat { min-height: 50px; padding-block: 5px; }
  .vx-product-master__stat strong { font-size: 13px; }
  .vx-product-master__tabs { margin: 0 14px; }
  .vx-product-master__panels { padding: 14px; }
  .vx-product-master__fields { grid-template-columns: 1fr; }
  .vx-product-master__columns { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 480px) {
  .vx-product-master__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vx-product-master__identity h2 { max-width: 36ch; }
}
