#selfinfo-layout .nav.nav-pills .nav-link.active {
  background-color: #fff;
  color: rgb(51, 51, 51);
}

#selfinfo-layout .nav.nav-pills .nav-link {
  color: #fff;
}

.selfinfo-masthead.masthead {
  background-image: none;
}

.selfinfo-masthead .navbar-nav li a {
  padding: 0.6rem 0.9rem;
  border-radius: 0.3rem;
  color: #fff;
}

.selfinfo-masthead .navbar-nav li a:hover,
.selfinfo-account-masthead.account-masthead .list-unstyled li a:hover {
  background-color: #fff;
  color: rgb(51, 51, 51);
  text-decoration: none;
}

.selfinfo-account-masthead.account-masthead .account {
  float: none;
  display: flex;
  justify-content: end;
}

.header-image .logo img {
  min-height: 50px;
}

.htmx-indicator {
  display: none;
}

.htmx-indicator.htmx-request {
  display: block;
}

/* Datastore styles */
.datastore-results code {
  font-size: 0.85em;
  word-break: break-all;
}

.datastore-table-link {
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}

.datastore-table-link:hover {
  background-color: #f8f9fa;
}

.datastore-table-link.active {
  background-color: #0d6efd;
  color: white;
}

.datastore-table-link.active code {
  color: white !important;
}

.datastore-table-link .px-2.py-1.rounded {
  font-size: 0.75rem;
  min-width: 40px;
}

.datastore-table-link.active .px-2.py-1.rounded {
  background-color: white !important;
  color: #0d6efd !important;
}

.datastore-delete-btn {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.datastore-delete-btn:hover {
  opacity: 1;
}

.list-group-item:hover .datastore-delete-btn {
  opacity: 1;
}

/* Orphaned tables styling */
.orphan-table {
  background-color: #fff3cd !important;
  border-left: 3px solid #ffc107 !important;
}

.orphan-table .datastore-table-link:hover {
  background-color: #fff3cd;
}

.orphan-table.active,
.orphan-table .datastore-table-link.active {
  background-color: #ffc107 !important;
}
