/* ==========================================================================
   PAGINASPECIFIEKE STIJLEN: Uitlevering & Transport (Donkere Huisstijl)
   ========================================================================== */

/* --- Container --- */
.uitlevering-container {
  width: 95%;
  max-width: 1400px;
  margin: 20px auto 40px auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #fff;
}

/* ==========================================================================
   KPI KAARTEN GRID
   ========================================================================== */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.kpi-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-info h3 {
  margin: 0 0 6px 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.85;
  color: var(--dbm-light-grey);
}

.kpi-info p {
  margin: 0;
  font-size: 28px;
  font-weight: bold;
}

.kpi-info small {
  font-size: 12px;
  opacity: 0.75;
}

.kpi-icon {
  font-size: 36px;
  color: #fff;
  opacity: 0.85;
}

/* ==========================================================================
   FILTER TABBLADEN
   ========================================================================== */

.filter-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}

.tab-btn {
  padding: 10px 18px;
  border-radius: 8px;

  background: rgba(255, 255, 255, 0.08);
  color: #fff;

  border: 1px solid rgba(255, 255, 255, 0.20);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease-in-out;

  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.tab-btn.active {
  background: rgba(255,255,255,0.25);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 0 12px rgba(255,255,255,0.35);
}

/* ==========================================================================
   GRAFIEK CONTAINER
   ========================================================================== */

.chart-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 10px;
}

.chart-header h2 {
  margin: 0;
  font-size: 20px;
  color: var(--dbm-light-grey);
}

.chart-wrapper {
  position: relative;
  height: 380px;
  width: 100%;
}

/* ==========================================================================
   TABEL STYLING
   ========================================================================== */

.table-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  overflow-x: auto;
}

.dbm-table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
  font-size: 14px;
}

.dbm-table th,
.dbm-table td {
  padding: 12px 14px;
  text-align: right;
  white-space: nowrap;
  vertical-align: middle;
}

.dbm-table th {
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
  color: var(--dbm-light-grey);
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.dbm-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dbm-table th:first-child,
.dbm-table td:first-child {
  text-align: center;
  width: 80px;
}

.dbm-table tr:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Badges */
.badge-positive { color: #7dff9c; font-weight: bold; }
.badge-warning  { color: #ffdd66; font-weight: bold; }
.badge-negative { color: #ff6b6b; font-weight: bold; }

.prognose-row {
  background: rgba(255,255,255,0.08);
  font-style: italic;
}

/* ==========================================================================
   AI INSIGHTS BOX
   ========================================================================== */

.insights-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-left: 4px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.insights-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--dbm-light-grey);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.insights-card p {
  margin: 0 0 10px 0;
  font-size: 14.5px;
  line-height: 1.6;
  opacity: 0.9;
}

.insights-card p:last-child {
  margin-bottom: 0;
}

.insights-highlight {
  font-weight: 600;
}

.text-positive {
  color: #7dff9c;
  font-weight: 600;
}

.text-negative {
  color: #ff6b6b;
  font-weight: 600;
}
