/* Test */
#infopanel {
  overflow-y: auto;
  max-height: 60vh; /* of 70vh, wat jij mooi vindt */
  min-width: 400px; /* of 280px, 300px — wat jij mooi vindt */
  max-width: 600px;
  flex: 1 1 auto;
  position: relative; /* nodig voor de chevron */
  padding-right: 12px; /* ruimte voor scrollbar */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.scroll-indicator {
  position: sticky;
  bottom: 0;
  width: 100%;
  height: 24px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.05));
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
}

.scroll-indicator::after {
  content: "⌄"; /* chevron */
  font-size: 18px;
  color: #999;
  margin-bottom: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
}


.hd-info-section-title {
  font-size: 10px;
  text-transform: uppercase;
  color: #8f9bb3;
  padding: 12px 0 6px;
  text-align: center;
  letter-spacing: 0.05em;
}

.hd-info-card {
  background: #fff;
  border: 1px solid #e4e9f2;
  border-radius: 12px;
  padding: 10px;
  margin-top: 2.5px;
}

.hd-info-label {
  font-size: 13px;
  font-weight: 600;
  color: #222b45;
  margin-bottom: 5px;
}

.hd-info-value {
  font-size: 13px;
  color: #848484;
}

.hd-info-panel {
    flex: 1 1 auto;
    min-width: 150px;
    max-width: 300px;
    max-height: 75vh;
    padding-top: 26px;
    margin-left: 24px;
    overflow-y: auto;
}

.hd-info-type {
    font-size: 20px;
    color: #444;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 3px;
    cursor: pointer;
}

.hd-info-profile {
     font-size: 12px;
    color: #888;
    margin-bottom: 14px;
    cursor: pointer;
}
 
.variable-row,
.hd-info-row {    
    display: flex;
    flex-direction: column;
    margin-bottom: 9px;
    cursor: pointer;
}

.variable-row span:last-child,
.hd-info-row span:last-child {
    color: #848484;
      font-size: 12px;
    font-weight: 500;
    
}

.hd-info-label {    
      font-size: 13px;
    font-weight: 600;
    color: #222b45;
    margin-bottom: 5px;
}

.hd-info-divider {
      border: none;
    border-top: 1px solid #eee;
    margin: 12px 0;
}

.hd-info-legend {
      display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.hd-legend-item {
      display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: #888;
}

.hd-legend-dot {
      width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hd-info-section-title {
      font-size: 10px;
    text-transform: uppercase;
    color: #8f9bb3;
    padding: 12px 0 6px;
    text-align: center;
    letter-spacing: 0.05em;
}

.hd-info-channels {
      max-height: 280px;
    overflow-y: auto;
}

.hd-channel-item {
     display: flex;
    align-items: center;
    gap: 7px;
    
    font-size: 11px;
    padding: 4px 7px;
    border-radius: 4px;
    margin-bottom: 2px;
    cursor: pointer;
    transition: background 0.1s;
}

.hd-ch-gates {
      font-size: 10px;
    font-weight: 700;
    color: var(--red);
    min-width: 40px;
    font-variant-numeric: tabular-nums;
}

.detail-container {
     display:flex;
     justify-content: center;
     width:100%;
}

#detailpanel {
  overflow-y: auto;
  max-height: 100vh;
  min-width: 400px;
  max-width: 500px;
  flex: 1 1 auto;
  padding: 20px;
  border-left: 1px solid #eee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: none; /* standaard verborgen */
}

#detailpanel.visible {
  display: block;
}

.hd-detail-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #444;
}

.hd-detail-text {
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  margin-bottom: 20px;
}

.hd-detail-image {
    width: 200px;
    margin-right: 20px;
    margin-bottom: 24px;
    -ms-flex-align: center;
}

