/* Statistics Panel — split from admin.css */

/* ===== Statistics Tab ===== */
.statistics-pane {
  padding: 14px 0 8px;
}

.statistics-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.statistics-range-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}

.statistics-range-row #statisticsRangeMode,
.statistics-range-row #statisticsHours {
  width: auto !important;
  flex: 0 0 auto;
  max-width: 240px;
}

.statistics-range-row #statisticsRangeMode {
  width: auto;
  min-width: 140px;
}

.statistics-range-row #statisticsHours {
  width: auto;
  min-width: 130px;
}

.statistics-custom-range {
  display: flex;
  align-items: center;
  padding: 0;
}

.statistics-custom-range-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.statistics-custom-range-inner label {
  white-space: nowrap;
}

.statistics-custom-range-inner .form-control {
  width: auto;
  min-width: 190px;
}

.statistics-actions-row {
  gap: 8px;
}

.statistics-wide-toggle {
  padding-left: 2.5em;
  margin-right: 8px;
}

.statistics-wide-toggle .form-check-input {
  margin-left: -2.5em;
  margin-top: 0.2em;
}

.statistics-summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.statistics-summary-item {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
}

.statistics-summary-card {
  width: fit-content;
  max-width: 100%;
}

.statistics-summary-card .card-body {
  min-height: 68px;
  white-space: nowrap;
}

.statistics-chart-wrapper {
  height: 260px;
  position: relative;
}

.statistics-table th,
.statistics-table td {
  white-space: nowrap;
  vertical-align: middle;
}

#statisticsSamplesTable th:nth-child(n + 2),
#statisticsSamplesTable td:nth-child(n + 2) {
  text-align: center;
}

.statistics-pagination {
  border-top: 1px solid #3a3a3a;
}

.statistics-pagination-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.statistics-pagination-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.statistics-pagination-actions .form-select {
  width: auto;
  min-width: 84px;
}

.statistics-pagination-page {
  min-width: 84px;
  text-align: center;
}

/* ===== GPU Status ===== */
.gpu-status-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.gpu-status-badge-row .badge {
  font-size: 11px;
  padding: 6px 9px;
}

.gpu-status-table th,
.gpu-status-table td {
  white-space: nowrap;
}
