/* All styles are gated by the recognised DSK matrix table. */
table.dsk-mf-enabled { isolation: isolate; }
table.dsk-mf-enabled td, table.dsk-mf-enabled th { transition: background-color .08s ease, box-shadow .08s ease; }
/* Identical pale blue on BOTH axes; only the selected intersection stays green. */
table.dsk-mf-enabled td.dsk-mf-axis,
table.dsk-mf-enabled th.dsk-mf-axis {
  background: #eaf2f9 !important;
  background-image: none !important;
  box-shadow: inset 0 0 0 1px #bdd2e5 !important;
}
table.dsk-mf-enabled td.dsk-mf-center,
table.dsk-mf-enabled th.dsk-mf-center {
  background: #d3f1dc !important;
  box-shadow: inset 0 0 0 3px #18854a !important;
  position: relative;
  z-index: 1;
}
#dsk-mf-loupe {
  position: fixed; z-index: 2147483000; box-sizing: border-box;
  max-width: min(380px, calc(100vw - 24px)); min-width: 270px;
  padding: 9px 12px; border: 2px solid #167744; border-radius: 5px;
  background: #fff; color: #182b20; box-shadow: 0 6px 24px rgba(0,0,0,.26);
  pointer-events: none; font-size: 18px; line-height: 1.4; font-weight: 650;
  text-align: left; overflow-wrap: anywhere; display: none;
}
#dsk-mf-loupe[data-visible='1'] { display:block; }
#dsk-mf-loupe .dsk-mf-caption { font-size: 12px; color:#476a53; font-weight: 500; margin-bottom: 4px; }
#dsk-mf-loupe .dsk-mf-value { font-size: 21px; }
@media (prefers-reduced-motion: reduce) {
 table.dsk-mf-enabled td, table.dsk-mf-enabled th { transition: none; }
}

#dsk-mf-loupe .dsk-mf-value {font-size: 16px; line-height: 1.5; font-weight: 600; white-space: normal;}
#dsk-mf-loupe .dsk-mf-value > div {white-space: pre-wrap;}

/* Header contrast only during crosshair highlighting. Original white text stays unchanged otherwise. */
table.dsk-mf-enabled th.dsk-mf-axis,
table.dsk-mf-enabled th.dsk-mf-axis * {
  color: #172c42 !important;
  text-shadow: none !important;
}
/* Prefixes appear visually, without changing the actual table headings or product data. */
table.dsk-matrix th.dsk-mf-metric-head::before,
table.dsk-gruppenmatrix th.dsk-mf-metric-head::before,
table.dsk-variantenmatrix th.dsk-mf-metric-head::before,
table th.dsk-mf-metric-head::before {content: 'M ';}
table th.dsk-mf-length-head::after {content: ' mm';}
#dsk-mf-loupe { position:fixed; }
#dsk-mf-loupe .dsk-mf-group-image {
  position:absolute; right:9px; top:9px; width:78px; height:78px;
  object-fit:contain; border-radius:3px; background:#fff;
}
#dsk-mf-loupe .dsk-mf-group-image[hidden] { display:none !important; }
#dsk-mf-loupe.dsk-mf-with-image { min-width: 360px; }
#dsk-mf-loupe.dsk-mf-with-image .dsk-mf-value { padding-right:88px; min-height:80px; }
@media (max-width:420px) {
  #dsk-mf-loupe.dsk-mf-with-image { min-width:0; }
  #dsk-mf-loupe .dsk-mf-group-image {width:60px;height:60px;}
  #dsk-mf-loupe.dsk-mf-with-image .dsk-mf-value {padding-right:68px;}
}
