/* Scrollbarer Tabellen-Container mit Sticky-Header (Bestand) */
.table-container {
  max-height: 400px;
  overflow-y: auto;
  position: relative;
}

.table thead th {
  position: sticky;
  top: 0;
  background-color: #f8f9fa;
  z-index: 1;
}

/* -----------------------------
   Details-Ansicht (AJAX)
   â vormals inline in statuschecker_details_ajax.php
--------------------------------*/
#resultsTable {
  table-layout: fixed; /* verhindert Breiten-Springen beim Nachladen */
}

/* Feste Spaltenbreiten f??r 17 Spalten (ohne Admin-Aktion) */
#resultsTable th:nth-child(1) { width: 5%; }   /* ID */
#resultsTable th:nth-child(2) { width: 14%; }  /* Gepr??ft am */
#resultsTable th:nth-child(3) { width: 8%; }   /* Antwortzeit */
#resultsTable th:nth-child(4) { width: 7%; }   /* TTFB Redirect */
#resultsTable th:nth-child(5) { width: 7%; }   /* TTFB Final */
#resultsTable th:nth-child(6) { width: 6%; }   /* Redirect Code */
#resultsTable th:nth-child(7) { width: 12%; }  /* Redirect Ziel */
#resultsTable th:nth-child(8) { width: 6%; }   /* Redirects */
#resultsTable th:nth-child(9) { width: 6%; }   /* DNS */
#resultsTable th:nth-child(10) { width: 6%; }  /* Connect */
#resultsTable th:nth-child(11) { width: 6%; }  /* TLS */
#resultsTable th:nth-child(12) { width: 7%; }  /* SSL gueltig bis */
#resultsTable th:nth-child(13) { width: 6%; }  /* Status */
#resultsTable th:nth-child(14) { width: 10%; } /* Details */
#resultsTable th:nth-child(15) { width: 6%; }  /* Antwortzeit komplett */
#resultsTable th:nth-child(16) { width: 6%; }  /* Status erw. Test */
#resultsTable th:nth-child(17) { width: 6%; }  /* Details Assets-Test */

#resultsTable th,
#resultsTable td {
  font-size: 75%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#resultsTable th.sortable {
  cursor: pointer;
}

#resultsTable th.sortable::after {
  content: '';
  display: inline-block;
  margin-left: 0.35rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #cbd3da;
  opacity: 0.8;
}

#resultsTable th.sortable.sort-asc,
#resultsTable th.sortable.sort-desc {
  font-weight: 600;
  color: #4e73df;
}

#resultsTable th.sortable.sort-asc::after {
  border-top: 0;
  border-bottom: 6px solid #4e73df;
  opacity: 1;
}

#resultsTable th.sortable.sort-desc::after {
  border-top: 6px solid #4e73df;
  opacity: 1;
}

#resultsTable td.action-cell {
  text-overflow: clip;
  overflow: visible;
}

#resultsTable td.action-cell .btn {
  padding: 0.25rem 0.45rem;
  line-height: 1;
}

/* Sanfte Höhenänderung beim Ent-/Verriegeln der Tabellenhöhe */
#tableContainer {
  transition: height .2s ease;
}


#resultsTable.hide-extended th:nth-child(15),
#resultsTable.hide-extended th:nth-child(16),
#resultsTable.hide-extended th:nth-child(17),
#resultsTable.hide-extended td:nth-child(15),
#resultsTable.hide-extended td:nth-child(16),
#resultsTable.hide-extended td:nth-child(17) {
  display: none;
}


.cron-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.ajax-loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.report-month {
  margin-bottom: 1.5rem;
}

.report-table th,
.report-table td {
  white-space: nowrap;
}

.report-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6c757d;
}

.report-table td {
  font-size: 0.875rem;
}

.report-table th,
.report-table td {
  padding: 0.5rem 0.75rem;
  vertical-align: middle;
}

.report-chart {
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 12px;
  margin-top: 12px;
}

.report-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.report-chart-title {
  font-weight: 600;
}

.report-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6c757d;
}

.trend-arrow {
  display: inline-block;
  font-size: 18px;
  transform-origin: center;
}

.trend-improved { transform: rotate(-45deg); color: #198754; }
.trend-slightly-improved { transform: rotate(-20deg); color: #198754; }
.trend-stable { transform: rotate(0deg); color: #6c757d; }
.trend-slightly-worse { transform: rotate(20deg); color: #dc3545; }
.trend-worse { transform: rotate(45deg); color: #dc3545; }
.trend-na { transform: rotate(0deg); color: #6c757d; }


.report-chart canvas {
  width: 100% !important;
  height: 140px !important;
}

.report-pie {
  width: 100%;
  max-width: 100%;
  height: 260px;
  margin: 0 auto;
}

.report-pie canvas {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 992px) {
  .report-pie {
    height: 220px;
  }
}

@media (max-width: 576px) {
  .report-pie {
    height: 200px;
  }
}

.report-table td .badge {
  float: right;
  margin-left: 0.5rem;
}

.sidebar-brand-icon img {
  max-width: 40px;
  height: auto;
}

.sidebar-brand-text {
  font-size: 0.75rem;
  line-height: 1;
}
