/* ================================
   Layout: equal heights in rows
   ================================ */
.metrics-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.metrics-row > [class*='col-'] {
  display: flex;
}
.metrics-row > [class*='col-'] > .metric-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.metrics-row .metric-wrap .well {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ================================
   Fixed metric content height
   ================================ */
.metric-body {
  min-height: 420px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 100%;
  padding-top: 10px;
}

.metric-body > .shiny-spinner-output-container,
.metric-body > .shiny-html-output,
.metric-body > .html-widget {
  width: 100%;
}

/* Prevent horizontal overflow from htmlwidgets */
.html-widget {
  max-width: 100% !important;
}

/* Keep H3 margin tight in wells */
.well .mb-0 {
  margin-bottom: 0;
}

/* ================================
   Fixed-height header for metric boxes
   ================================ */
.metric-header {
  min-height: 86px; /* keeps title+subtitle area consistent */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: 6px;
}
.metric-title {
  margin: 0;
  line-height: 1.15;
  text-align: center;
}
.metric-subtitle {
  margin: 4px 0 0 0;
  text-align: center;
}
.metric-subtitle h4 {
  margin: 0;
}

/* ================================
   Empty state
   ================================ */

.tt-empty-state {
  height: 100%;
  display: grid;
  place-items: center;
  background: #DCE3E5;
  border: 1px dashed rgba(0,55,84,0.18);
  border-radius: 16px;
}
.tt-empty-state .tt-wrap { text-align: center; max-width: 42ch; padding: 16px; }
.tt-empty-state .tt-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: rgba(112,172,192,0.18); /* #70acc0 with alpha */
  color: #003754; font-size: 26px; margin-bottom: 10px;
}
.tt-empty-state .tt-title { margin: 0 0 4px; color: #003754; font-weight: 700; }
.tt-empty-state .tt-sub   { margin: 0; color: #4C626C; font-size: 0.95rem; }


/* ================================
   Alle-tab sticky filter bar
   ================================ */
.compass-filters {
  position: sticky;
  top: 60px;
  z-index: 5;
  background: rgba(191, 191, 191, 0.9);
  padding: 8px 12px;
  margin: 0 0 14px 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
}
.compass-filters .checkbox-inline,
.compass-filters .shiny-options-group > label.checkbox {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}
.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-title {
  font-weight: 700;
  color: #303A3E;
}
.filter-toggle {
  opacity: 0.9;
  white-space: nowrap;
}
