.card-body {
  border-radius: 15px;
}

.card-body table td {
  color: #000 !important;
  opacity: 1 !important;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 250px;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.dark-dropdown-menu {
  min-width: 100px;
  max-width: 200px;
  padding: 0;
  border: none;
  box-shadow: none;
  box-sizing: border-box;
  overflow: visible;
  animation: fadeInDown 0.3s ease;
  transform-origin: top center;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#languageModalLabel {
  font-weight: 500;
}

.dark-dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 1rem;
  background: transparent;
  transition: background-color 0.2s ease;
}

.dark-dropdown-menu .form-check.form-switch {
  flex-shrink: 0;
  margin-left: auto;
}

.toast {
  width: 420px;
}

.loader,
.loader-overlay,
#loader {
  display: none !important;
}

.topbar.topbar--revamp {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 20px;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  height: 75px;
  box-sizing: border-box;
}

.topbar__right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 500;
}

.topbar__avatar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 16px;
}

.topbar__avatar img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

.topbar__avatar-meta {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  line-height: 1.1;
}

.topbar__avatar-name {
  font-weight: 600;
}

.topbar__avatar-role {
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (min-width: 992px) {
  .sidebar {
    width: var(--omqs-shell-sidebar-width) !important;
    background: #081A51 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
  }

  .sidebar .logo h5 {
    width: 100% !important;
    height: 68px !important;
    justify-content: flex-start !important;
    padding: 0 24px !important;
    margin: 0 0 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
  }

  .sidebar .logo img {
    width: 34px !important;
    height: 34px !important;
    margin-right: 10px !important;
  }

  #sidebar .side-menu {
    margin: 18px 0 !important;
    padding: 0 16px !important;
  }

  #sidebar .side-menu a {
    min-height: 42px !important;
    padding: 9px 12px 9px 0 !important;
    margin: 2px 0 !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.86) !important;
  }

  #sidebar .side-menu > li > a:hover {
    background: #1B2B65 !important;
    color: #ffffff !important;
  }

  #sidebar .side-menu > li > a.active,
  #sidebar .side-menu > li > a.active:hover {
    background: #1B2B65 !important;
    box-shadow: none !important;
    color: #ffffff !important;
  }

  #sidebar .divider {
    margin-top: 20px !important;
    padding-left: 8px !important;
    color: #51CBFF !important;
  }

  #sidebar .icon {
    min-width: 36px !important;
    margin-right: 2px !important;
    color: rgba(255, 255, 255, 0.82) !important;
  }

  html[data-theme="dark"] .sidebar,
  body.dark-mode .sidebar {
    background: #101114 !important;
    border-right-color: rgba(255, 255, 255, 0.07) !important;
  }

  html[data-theme="dark"] #sidebar .side-menu a,
  body.dark-mode #sidebar .side-menu a {
    color: rgba(255, 255, 255, 0.7) !important;
  }

  html[data-theme="dark"] #sidebar .side-menu > li > a:hover,
  body.dark-mode #sidebar .side-menu > li > a:hover {
    background: rgba(255, 255, 255, 0.045) !important;
    color: rgba(255, 255, 255, 0.92) !important;
  }

  html[data-theme="dark"] #sidebar .side-menu > li > a.active,
  html[data-theme="dark"] #sidebar .side-menu > li > a.active:hover,
  body.dark-mode #sidebar .side-menu > li > a.active,
  body.dark-mode #sidebar .side-menu > li > a.active:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.14), rgba(255, 255, 255, 0.04)) !important;
    box-shadow: inset 1px 0 0 #3b82f6 !important;
    color: #3b82f6 !important;
  }

  html[data-theme="dark"] #sidebar .divider,
  body.dark-mode #sidebar .divider {
    color: rgba(255, 255, 255, 0.54) !important;
  }

  html[data-theme="dark"] #sidebar .icon,
  body.dark-mode #sidebar .icon {
    color: rgba(255, 255, 255, 0.64) !important;
  }

  .topbar {
    margin-left: var(--omqs-shell-sidebar-width) !important;
    width: calc(100% - var(--omqs-shell-sidebar-width)) !important;
  }

  .content-start {
    position: relative !important;
    left: var(--omqs-shell-sidebar-width) !important;
    margin-left: 0 !important;
    padding-left: 20px !important;
    padding-right: 0 !important;
    margin-right: 16px !important;
    width: calc(100% - var(--omqs-shell-sidebar-width) - 36px) !important;
    box-sizing: border-box;
  }

  footer .footer {
    margin-left: var(--omqs-shell-sidebar-width) !important;
  }
}
