.wt_station {
    background: #eee;
    padding:10px 0 0 10px;
    margin: 0 0 20px 0;
    overflow: hidden;
    max-width: 890px;
    position: relative;
}

.wt_station_overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    background-color: #eee;
    display: none;
    cursor: wait;
}

.wt_station_description {
    display: block;
    padding-bottom: 5px;
    float: left;
}

.wt_station_text_right {
    float: right;
    padding-right: 10px;
}

.clear {
    clear: both;
}

.wt_station a {
    color: #504739;
}


.wt_icon {
    float: left;
    margin: 0 10px 10px 0;
    width: 100px;
    height: 100px;
    border: 0;
    background-color: #fff;
    padding: 5px;
    overflow: hidden;
    cursor: pointer;
}

.wt_icon:hover {
    background-color: #f7f7f7;
}

.wt_icon.alarm {
    background-color: #FF8C00;
}

.wt_icon.old {
    background-color: #ccc;
}

.wt_icon img {
    width: 40px;
    margin: 5px auto 5px;
    display: block;
}

.wt_sensor_name {
    text-align: center;
    font-size: 14px;
    line-height: 14px;
}

.wt_sensor_value {
    text-align: center;
    font-size: 14px;
    line-height: 14px;
}

#dashboard {
    max-width: 890px;
}

.explain  {
    color: rgba(78,78,78,0.5);
    font-style: italic;
}

.wt_label_year {
    margin-left: 20px;
}

.wt_select {
    padding: 5px 10px;
    border: 1px solid #504739;
    border-radius: 20px;
    margin: 0 0 0 20px;
}

.wt_button {
    padding: 10px 20px;
    margin-right: 20px;
    border: 1px solid #504739;
    border-radius: 20px;
    margin-top: 10px;
    background-color: #504739;
    font-weight: 700;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.wt_button:disabled {
    background-color: #aaa;
    border: 1px solid #aaa;
    color: #fff;
}

.wt_download_progress {
    display: none;
    font-style: italic;
    line-height: 3em;
    margin: 20px 0 0;
    height: 40px;
}

.wt_download_ready {
    display: none;
    color: #3cb44b;
    font-style: normal;
    margin: 20px 0 0;
    height: 40px;
}

.wt_progress_img {
    height: 40px;
    float: left;
    margin-top: 5px;
}

.et_pb_forgot_password {
    display: none;
}

#main-content {
    min-height: 100vh;
    padding-bottom: 150px;
}

footer.et-l.et-l--footer {
    position: relative;
    bottom: 0;
    width: 100%;
}

.home footer.et-l.et-l--footer {
    display: none;
}

/* Container */
.drain-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 0px;
    font-family: Roboto, sans-serif;
  }
  
  /* Station header */
  .station-header {
    background: #2c3e50;
    color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
  }
  .station-id {
    font-size: 12px;
    opacity: 0.8;
  }
  .station-name {
    font-size: 18px;
    font-weight: 600;
    margin: 2px 0 0;
  }
  
/* Lijststijl als tabelrij */
.sensor-section {
    background: #fff;
    margin-bottom: 6px;
  }
  
  /* Header oogt als tabelrij met 3 kolommen */
  .sensor-header {
    display: grid;
    grid-template-columns: 1fr 150px 150px;
    gap: 10px;
    align-items: center;
    padding: 4px 12px 0;
    background: #f8fafc;
    border-bottom: 0;
  }
  
  /* Titel links */
  .sensor-title {
    font-weight: 600;
    color: #504739;
  }
  
  /* Knoppen rechts */
  .sensor-actions {
    display: contents; /* laat de twee labels in de grid-kolommen vallen */
  }
  
  /* “Pillen” met duidelijke klik-affordance */
  .tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    background: #eef2f7;
    min-width: 0;
    justify-content: center;
    text-align: center;
    color: #334155;
    border-radius: 16px 16px 0 0;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    border: 1px solid #cbd5e1;
    border-bottom: 0px;
    transition: background 140ms, transform 80ms, box-shadow 140ms;
    
  }
  .tab-pill:hover { background: #e4eaf2; box-shadow: 0 1px 0 rgba(0,0,0,0.04); }
  .tab-pill:active { transform: translateY(1px); }
  .tab-pill:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
  
  /* Chevron die draait bij openen */
  .tab-pill::after {
    content: "▾";
    font-size: 12px;
    color: #64748b;
    transition: transform 160ms ease;
  }
  .sensor-section input[id^="toggle-today-"]:checked ~ .sensor-header .label-today::after { transform: rotate(180deg); }
  .sensor-section input[id^="toggle-yesterday-"]:checked ~ .sensor-header .label-yesterday::after { transform: rotate(180deg); }
  
  /* Actieve status (als open) */
  .sensor-section input[id^="toggle-today-"]:checked ~ .sensor-header .label-today,
  .sensor-section input[id^="toggle-yesterday-"]:checked ~ .sensor-header .label-yesterday {
    background: #334155; color: #fff; border-color: #334155;
  }
  
  /* Inklapbare content met animatie */
  .toggle-input { display: none; }
  .collapsible {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 200ms ease, padding 200ms ease, border-color 200ms ease;
    overflow: hidden;
    padding: 0 12px;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    border-bottom: 1px solid transparent;
    border-radius: 0 0 8px 8px;
    background: #fff;
  }
  .collapsible > div { overflow: hidden; } /* inner wrapper voor animatie */
  
  /* Open states */
  .sensor-section input[id^="toggle-today-"]:checked ~ .content-today,
  .sensor-section input[id^="toggle-yesterday-"]:checked ~ .content-yesterday {
    grid-template-rows: 1fr;
    padding: 8px 12px 12px;
    border-color: #e5e7eb;
  }
  
  /* Tabel binnen details */
  .records-table { width: 100%; border-collapse: collapse; }
  .records-table th, .records-table td { padding: 0px 10px !important; text-align: left; border-bottom: 1px solid #eef2f7; font-size: 13px; }
  .records-table th { background: #f3f4f6; color: #374151; }

  
  /* Responsive: verberg In/Out op smal als je wil */
  @media (max-width: 640px) {
    .records-table th:nth-child(2), .records-table td:nth-child(2) { display: none; }
  }