body {
  background: #f5f7fb;
  padding-top: 56px;
}

.app-shell {
  display: flex;
  min-height: calc(100vh - 56px);
}

.sidebar {
  flex: 0 0 240px;
  padding-top: 1rem;
}

.content {
  flex: 1;
  min-width: 0;
  padding: 2rem;
}

.case-row {
  cursor: pointer;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.detail-description {
  white-space: pre-wrap;
}

.home-tile {
  color: inherit;
  display: block;
  min-height: 12rem;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.home-tile:hover,
.home-tile:focus {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.08);
  color: inherit;
  transform: translateY(-2px);
}

.datatable-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.datatable-search {
  max-width: 18rem;
}

th.sortable {
  cursor: pointer;
  user-select: none;
}

th.sortable::after {
  color: var(--bs-secondary-color);
  content: "";
  font-size: 0.75rem;
  margin-left: 0.4rem;
}

th.sortable.sorted[data-sort-direction="asc"]::after {
  content: "^";
}

th.sortable.sorted[data-sort-direction="desc"]::after {
  content: "v";
}

td.text-end .btn-group {
  gap: 0.35rem;
}

td.text-end .btn-group > .btn {
  border-radius: var(--bs-btn-border-radius) !important;
}

.remote-terminal {
  background: #000;
  height: 70vh;
  min-height: 32rem;
  padding: 0.75rem;
}

.remote-terminal .xterm {
  height: 100%;
}

.icon-button {
  align-items: center;
  display: inline-flex;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

[data-bs-theme="dark"] body {
  background: #12161c;
}

[data-bs-theme="dark"] .bg-white {
  background-color: #1d232b !important;
}

[data-bs-theme="dark"] .sidebar,
[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] .border-end {
  border-color: #343b45 !important;
}

[data-bs-theme="dark"] .table-light {
  --bs-table-bg: #252c35;
  --bs-table-color: #f0f3f6;
  --bs-table-border-color: #343b45;
}

[data-bs-theme="dark"] .text-secondary {
  color: #aeb7c2 !important;
}

@media (max-width: 767.98px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    width: 100%;
    padding-top: 0;
  }

  .content {
    padding: 1rem;
  }
}
