/* 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 8 Spalten */
#resultsTable th:nth-child(1) { width: 8%; }   /* ID */
#resultsTable th:nth-child(2) { width: 22%; }  /* Geprüft am */
#resultsTable th:nth-child(3) { width: 12%; }  /* Antwortzeit */
#resultsTable th:nth-child(4) { width: 10%; }  /* Status */
#resultsTable th:nth-child(5) { width: 20%; }  /* Details */
#resultsTable th:nth-child(6) { width: 10%; }  /* Antwortzeit komplett */
#resultsTable th:nth-child(7) { width: 8%; }   /* Status erw. Test */
#resultsTable th:nth-child(8) { width: 10%; }  /* Details Assets-Test */

#resultsTable th,
#resultsTable td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sanfte Höhenänderung beim Ent-/Verriegeln der Tabellenhöhe */
#tableContainer {
  transition: height .2s ease;
}


#resultsTable.hide-extended th:nth-child(6),
#resultsTable.hide-extended th:nth-child(7),
#resultsTable.hide-extended th:nth-child(8),
#resultsTable.hide-extended td:nth-child(6),
#resultsTable.hide-extended td:nth-child(7),
#resultsTable.hide-extended td:nth-child(8) {
  display: none;
}

.navbar .brand-wordmark {
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

.navbar .brand-wordmark span {
  font-weight: 700;
}

.navbar .navbar-brand-wrapper {
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

.navbar .navbar-brand.brand-logo,
.navbar .navbar-brand.brand-logo-mini {
  padding: 0;
}

.navbar .navbar-brand.brand-logo img,
.navbar .navbar-brand.brand-logo-mini img {
  width: 60px;
  height: 60px;
  display: block;
  object-fit: contain;
}

.auth .brand-logo .brand-wordmark {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.8px;
}

.auth .brand-logo .brand-wordmark span {
  font-weight: 700;
}

.auth .brand-logo img {
  width: 150px;
  height: 150px;
  display: block;
  object-fit: contain;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
  color: #000;
}

.main-panel .table {
  width: 100%;
}

.table-responsive {
  width: 100%;
}

.sidebar .nav .nav-link.text-muted.small {
  cursor: default;
}

.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;
}

.content-wrapper .form-check,
#editUrlForm .form-check {
  display: flex;
  align-items: center;
  padding-left: 0;
}

.content-wrapper .form-check-input,
#editUrlForm .form-check-input {
  margin-left: 0;
  margin-right: 0.6rem;
}

.content-wrapper .form-check-label,
#editUrlForm .form-check-label {
  margin-left: 0;
}

.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-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;
  }
}

.btn-gradient-primary,
.btn-gradient-secondary,
.btn-gradient-success,
.btn-gradient-info,
.btn-gradient-warning,
.btn-gradient-danger {
  background: rgb(255, 166, 0) !important;
  border: 0;
}
.btn-gradient-primary:hover,
.btn-gradient-secondary:hover,
.btn-gradient-success:hover,
.btn-gradient-info:hover,
.btn-gradient-warning:hover,
.btn-gradient-danger:hover,
.btn-gradient-primary:focus,
.btn-gradient-secondary:focus,
.btn-gradient-success:focus,
.btn-gradient-info:focus,
.btn-gradient-warning:focus,
.btn-gradient-danger:focus {
  background: rgb(255, 166, 0) !important;
  opacity: 1;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-info,
.btn-outline-warning,
.btn-outline-danger {
  border-color: rgb(255, 166, 0) !important;
  color: rgb(255, 166, 0) !important;
}
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover,
.btn-outline-info:hover,
.btn-outline-warning:hover,
.btn-outline-danger:hover,
.btn-outline-primary:focus,
.btn-outline-secondary:focus,
.btn-outline-success:focus,
.btn-outline-info:focus,
.btn-outline-warning:focus,
.btn-outline-danger:focus {
  border-color: rgb(255, 166, 0) !important;
  color: rgb(255, 166, 0) !important;
  background-color: #f2f2f2 !important;
  background-image: none !important;
  box-shadow: none !important;
}
.btn.btn-outline-primary:hover,
.btn.btn-outline-primary:focus,
.btn.btn-outline-primary:active,
.btn.btn-outline-primary.active,
.show > .btn.btn-outline-primary.dropdown-toggle,
.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary {
  border-color: rgb(255, 166, 0) !important;
  color: rgb(255, 166, 0) !important;
  background-color: #f2f2f2 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.sidebar .nav .nav-item.active > .nav-link .menu-title {
  color: rgb(255, 166, 0) !important;
}

.btn-primary,
.btn-primary:not(.btn-light),
.btn-check:focus + .btn-primary {
  background-color: rgb(255, 166, 0) !important;
  border-color: rgb(255, 166, 0) !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary,
.show > .btn-primary.dropdown-toggle {
  background-color: rgb(255, 166, 0) !important;
  border-color: rgb(255, 166, 0) !important;
  color: #fff !important;
  opacity: 1;
}

.btn-inverse-primary {
  color: rgb(255, 166, 0) !important;
  border-color: rgb(255, 166, 0) !important;
  background-color: rgba(255, 166, 0, 0.15) !important;
}
.btn-inverse-primary:hover,
.btn-inverse-primary:focus,
.btn-inverse-primary:active,
.btn-inverse-primary.active,
.show > .btn-inverse-primary.dropdown-toggle {
  color: rgb(255, 166, 0) !important;
  border-color: rgb(255, 166, 0) !important;
  background-color: rgba(255, 166, 0, 0.15) !important;
}

a,
.link-primary,
.text-primary {
  color: rgb(255, 166, 0) !important;
}
a:hover,
a:focus,
.link-primary:hover,
.link-primary:focus {
  color: rgb(255, 166, 0) !important;
}

.sidebar,
.sidebar-offcanvas {
  background: #f2f2f2;
}

.sidebar .nav,
.sidebar .nav .nav-item,
.sidebar .nav .nav-item .nav-link,
.sidebar .nav .nav-item.active,
.sidebar .nav .nav-item.active > .nav-link,
.sidebar .nav .nav-item .collapse,
.sidebar .nav .nav-item .collapse .nav,
.sidebar .nav .nav-item .collapse .nav .nav-item,
.sidebar .nav .nav-item .collapse .nav .nav-item .nav-link,
.sidebar .nav.sub-menu,
.sidebar .nav.sub-menu .nav-item,
.sidebar .nav.sub-menu .nav-item .nav-link,
.sidebar .nav .nav-category {
  background: #f2f2f2;
}
.sidebar .nav .nav-item .collapse,
.sidebar .nav.sub-menu,
.sidebar .nav .nav-item .nav-link:hover,
.sidebar .nav .nav-item .nav-link:focus {
  background: #f2f2f2;
}

.sidebar .nav .nav-item.active,
.sidebar .nav .nav-item:hover {
  background: #f2f2f2 !important;
}

.sidebar .nav .nav-item,
.sidebar .nav .nav-item .nav-link,
.sidebar .nav .nav-item .collapse,
.sidebar .nav.sub-menu,
.sidebar .nav.sub-menu .nav-item,
.sidebar .nav.sub-menu .nav-item .nav-link {
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.sidebar .nav .nav-item .nav-link.text-muted,
.sidebar .nav .nav-item .nav-link.text-muted span,
.sidebar .nav .nav-item .nav-link.text-muted small,
.sidebar .nav .nav-category {
  color: #000 !important;
}

.sidebar {
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  min-height: calc(100vh - 70px);
}
.sidebar .nav {
  overflow-y: auto;
  height: 100%;
  margin-bottom: 0;
}
.page-body-wrapper {
  height: 100vh;
  overflow: hidden;
  background: #f2f2f2;
}
.main-panel {
  height: calc(100vh - 70px);
  overflow-y: auto;
  background: #f2f2f2;
}
.content-wrapper {
  min-height: 0;
  background: #f2f2f2;
}
@media (max-width: 991px) {
  .sidebar {
    position: static;
    height: auto;
    overflow-y: visible;
  }
  .sidebar.sidebar-offcanvas {
    position: fixed;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .sidebar .nav {
    height: auto;
  }
  .sidebar.sidebar-offcanvas .nav {
    height: 100%;
  }
  .page-body-wrapper,
  .main-panel {
    height: auto;
    overflow: visible;
  }
}
.container-scroller,
html,
body {
  height: 100%;
  background: #f2f2f2;
}

.report-table td .badge {
  float: right;
  margin-left: 0.5rem;
}
