:root {
  --bs-primary: #66b2ff; /* Helleres Blau */
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f8f9fa;
  color: #212529;
}

.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

.card-header {
  font-size: 1rem;
  font-weight: 600;
  background-color: #f1f3f5;
  color: #212529;
  border-top-left-radius: 1rem !important;
  border-top-right-radius: 1rem !important;
}

.card-body {
  font-size: 0.95rem;
}

.table thead th {
  position: sticky;
  top: 0;
  background-color: #f1f1f1;
  z-index: 10;
}

#lastFlowRateValue {
  font-size: 1.2rem;
  color: var(--bs-primary);
}

.data-download-box {
  text-decoration: none;
  color: var(--bs-primary);
}

.data-download-box svg {
  flex-shrink: 0;
}

.data-download-box:hover {
  text-decoration: underline;
}

.table-hover tbody tr:hover {
  background-color: #eef3f8;
}

.table-responsive {
  scrollbar-width: thin;
  scrollbar-color: #66b2ff #f1f1f1;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background-color: #66b2ff;
  border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.table-responsive table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 1rem;
  overflow: hidden;
}

.table thead th:first-child {
  border-top-left-radius: 1rem;
}
.table thead th:last-child {
  border-top-right-radius: 1rem;
}

.chart-canvas-wrapper {
  position: relative;
  height: 340px;
}

@media (min-width: 768px) {
  .chart-canvas-wrapper {
    height: 400px;
  }
}

.table-scroll {
  max-height: 300px;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .table-scroll {
    max-height: 400px;
  }
}

/* Prevents iOS Safari from zooming on input focus (needs font-size >= 16px) */
@media (max-width: 767.98px) {
  .form-control,
  .form-control-sm,
  .form-select,
  .form-select-sm {
    font-size: 16px;
  }

  .btn-sm {
    min-height: 44px;
  }
}

.table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 1rem;
}
.table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 1rem;
}

.table-restart-row {
  background-color: rgba(255, 192, 128, 0.25);
}

.restart-icon {
  color: #e08020;
  margin-right: 4px;
  font-size: 0.85em;
}

#viewLabel {
  display: inline-block;
  min-width: 130px;
  text-align: center;
}
