h2{
  text-align: center;
}

#dashboardSectorSelection{
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
}

.sector-button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 60px;
  height: 26px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.sector-button:hover {
  background: rgba(40, 60, 80, 0.75); /* etwas heller */
}

.sector-button.active {
  border-radius: 6px;
  background: #1d5fa8;
  color: #ffffff;
  font-weight: bold;
  text-shadow: 0 0 2px black, 0 0 4px black;
}


.dashboard-grid {
    display: block;
    width: 100%;
}

/* CARDS */
.dash-card {
    background: #f7f9fc; /* leicht bläuliches, technisches Hellgrau */
    border: 1px solid #4f555a; 
    border-radius: 16px;
    padding: 8px;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.12),
        inset 0 0 4px rgba(255,255,255,0.4); /* leichte Innenkante */
    display: flex;
    flex-direction: column;
    width: 242.5px;
    height: 150px;
    cursor: pointer;
}

.dash-card:hover {
    box-shadow:
        0 3px 8px rgba(0,0,0,0.18),
        inset 0 0 4px rgba(255,255,255,0.45);
    transition: 0.15s ease-out;
}

.dash-card-title {
    font-weight: bold;
    text-align: center;
    padding-bottom: 4px;
    margin-bottom: 2px;
    border-bottom: 1px solid #a6a7a9;
}

.dash-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;  /* Abstand zwischen A / B / C */
}

.card-row {
  display: grid;
  grid-template-columns:
      1.2rem    /* indicator */
      1.0rem    /* part letter */
      5.6rem    /* height */ 
      0.3rem    /* | */
      6.2rem;    /* time */
  align-items: center;
  overflow: hidden;
}
.state-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    display: inline-block;
    margin-left: 0.2rem;
}
.col-height.changed{
  box-shadow: 0 0 0 3px rgba(255, 60, 0, 0.856);
}

/* Farben nach deinem Status-System */
.state-used.state-dot {
    background: #ff4a4a; /* rot */
}
.state-active.state-dot {
    background: #3399ff; /* blau */
}
.state-notUsed.state-dot {
    background: #ffaa00; /* orange */
}
.state-notActive.state-dot {
    background: #00ff0d; /* grau */
}
.state-unknown.state-dot {
    background: #444444; /* dunkelgrau */
}

.card-row.expand-height {
    grid-template-columns:
        1.2rem    /* indicator */
        1.0rem    /* part */
        1fr       /* height */
        0rem      /* sep hidden */
        0rem;      /* time hidden */
}

.card-row.expand-height .col-sep,
.card-row.expand-height .col-time {
    display: none;
}


.card-row.center-height {
    grid-template-columns:
        1.2rem    /* indicator */
        1.0rem    /* part */
        1fr       /* height (zentriert) */
        0rem      /* sep unsichtbar */
        0rem;      /* time unsichtbar */
}

.card-row.center-height .col-sep,
.card-row.center-height .col-time {
    display: none;
}

.card-row.center-height .col-height {
    justify-self: center;
}

.dashboard.height-warn{
  display: none !important;
}


/* COLLAPSES */
/* Jede Gruppe als kompletter Abschnitt */
.dash-collapse {
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Header vollbreit, freundlich */
.dash-collapse-header {
    width: 100%;
    background: rgba(0,0,0,0.08);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    margin-bottom: 6px;
}
.group-used{
  margin: 0 15px;
}

/* der Grid-Bereich unter jedem Collapse */
.dash-collapse-body {
    width: 100%;
}

.dash-collapse-body.collapsed {
    display: none;
}

/* Karten-Grid innen */
.dash-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 242.5px);
    gap: 6px;
    align-items: start;
}



/* DASHBOARD DETAIL PANEL */
.dashboard-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.418);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.dashboard-detail-panel {
    background: #0f1824e8;
    padding: 20px;
    border-radius: 8px;
    color: white;
}

.detail-block {
    margin-bottom: 12px;
    margin-top: 12px;
}

.detail-row {
    display: grid;
    grid-template-columns: 100px 1fr; /* Label 100px, Value flexibel */
    padding: 2px 0;
}

.detail-row .label {
    font-weight: 600;
    color: #ddd;
}

.detail-row .value {
    color: #fff;
}


.panel-body h3{
  text-align: center;
  border: none;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.25), transparent);
  margin: 10px 0;
}