.dark .table-striped>tbody>tr:nth-of-type(even)>* {
  --bs-table-accent-bg: #181818 !important;
}

.multiselect-option.is-selected {
  background: var(--bs-primary) !important;
}

.multiselect-tag:hover {
  background: var(--bs-primary) !important;
}

.multiselect-tag {
  background: var(--bs-primary) !important;
}

.multiselect-option.is-pointed {
  background: var(--bs-primary) !important;
  color: #fff !important;
}

::selection {
  background: var(--bs-primary) !important;
  color: #fff !important;
}

::-moz-selection {
  background: var(--bs-primary) !important;
  color: #fff !important;
}

*::-moz-selection {
  background: var(--bs-primary) !important;
  color: #fff !important;
}

.form-disabled {
  pointer-events: none;
  opacity: 0.4;
}

.sorting_disabled.sorting_asc::after,
.sorting_disabled.sorting_asc::before {
  content: unset !important;
}

.sorting_disabled.sorting_asc {
  padding-right: 0 !important;
  width: 1% !important;
}

[dir="rtl"] .sorting_disabled.sorting_asc {
  padding-right: 1.5rem !important;
  padding-left: 0 !important;
}

.h-4 {
  height: 4rem;
}

.ec-week .ec-toolbar {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 9;
  padding: 0 15px 15px;
  border-bottom: 1px solid var(--bs-border-color);
}

.ec-header {
  display: flex;
  flex-shrink: 0;
  margin-top: 75px;
  position: relative;
}

.ec.ec-week {
  overflow-x: scroll;
}

.ec-header .ec-resource {
  flex-direction: column;
  min-width: 160px;
}

.ec-resource {
  display: flex;
  min-width: 160px;
}

.dropdown-sticky {
  background-color: var(--bs-white);
  box-shadow: 0px -2px 3px rgba(0, 0, 0, 0.2);
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
}

div#datatable_wrapper {
  position: relative;
}

div.dataTables_wrapper div.dataTables_processing {
  top: 105px !important;
  left: 50%;
  z-index: 9;
}

.dropdown-sticky:hover {
  background-color: var(--bs-primary-shade-10);
}

.iq-dropdown .dropdown-menu {
  border-radius: 0.6rem !important;
}

.dark .text-black {
  color: #fff !important;
}

@media only screen and (max-width: 1366px) {
  .ec-header {
    overflow-x: scroll;
  }
}

.iq-service-provider-dropdown:hover {
  background-color: unset !important;
}

.mode-icons {
  display: none;
}

.mode-icons.light-mode {
  display: block;
}

[data-bs-theme="dark"] .mode-icons.light-mode {
  display: none;
}

[data-bs-theme="dark"] .mode-icons.dark-mode {
  display: block;
}

.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n + 1)),
.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n + 1)),
.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n + 1)) {
  box-shadow: -10px 0 0 rgba(var(--bs-primary-rgb), 0.8);
}

:root {
  --animate-duration: 400ms;
  --animate-delay: 1s;
  --animate-repeat: 1;
}

.animate__animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-duration: var(--animate-duration);
  animation-duration: var(--animate-duration);
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes zoomIn {
  0% {
    opacity: 0;
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }

  50% {
    opacity: 1;
  }
}

@keyframes zoomIn {
  0% {
    opacity: 0;
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }

  50% {
    opacity: 1;
  }
}

.animate__zoomIn {
  -webkit-animation-name: zoomIn;
  animation-name: zoomIn;
}

@-webkit-keyframes zoomOut {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }

  to {
    opacity: 0;
  }
}

@keyframes zoomOut {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }

  to {
    opacity: 0;
  }
}

.animate__zoomOut {
  -webkit-animation-name: zoomOut;
  animation-name: zoomOut;
}

@media screen and (max-width: 1024px) {
  .ec-all-day {
    overflow-x: scroll;
  }

  .ec-body {
    overflow-x: scroll !important;
  }

  .ec-resource {
    min-width: 160px !important;
  }
}

fieldset,
legend {
  all: revert;
  margin-bottom: 1rem;
}

fieldset {
  border: 1px solid var(--bs-border-color);
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 5px;
}

legend {
  font-size: 1rem;
  font-weight: bold;
  padding: 0 0.7rem;
  color: var(--bs-primary-shade-80);
}

.dark legend {
  color: white;
}

.tox-tinymce,
.tox-statusbar,
.tox-toolbar__group,
.tox-toolbar__group:not(:last-of-type) {
  border-color: var(--bs-border-color) !important;
}

.tox .tox-toolbar,
.tox .tox-toolbar__overflow,
.tox .tox-toolbar__primary {
  border: 1px solid var(--bs-border-color) !important;
}

.dark .multiselect-tags-search {
  color: inherit;
  background: inherit;
}

.ql-container {
  height: calc(100% - 5rem) !important;
}

.white-space-initial td {
  white-space: initial;
}

.dark .vti__input {
  color: #d7dbdf;
  background-color: #080808;
}

.form-logo {
  width: 130px;
}
.blurred-menu {
    filter: grayscale(1) blur(1px);
    pointer-events: none;
    opacity: 0.5;
}

/* =========================================================
   Global Admin UI Overrides (Modernization)
   ========================================================= */

/* Typography */
body, .iq-sidebar, .card, .btn, .form-control {
    font-family: 'Poppins', sans-serif !important;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    color: #3f414d;
}

/* Cards & Panels */
.card {
    border-radius: 1rem !important;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04) !important;
    background-color: #ffffff !important;
}
.card-header {
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    background-color: #ffffff !important;
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
}

/* Input Fields */
.form-control, .form-select, .select2-container .select2-selection--single, .select2-container .select2-selection--multiple {
    border-radius: 0.5rem !important;
    border: 1px solid #e0e0e0 !important;
    transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
    border-color: #2a9d8f !important;
    box-shadow: 0 0 0 0.25rem rgba(42, 157, 143, 0.15) !important;
}

/* Buttons */
.btn {
    border-radius: 0.5rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}
.btn-primary {
    background-color: #2a9d8f !important;
    border-color: #2a9d8f !important;
}
.btn-primary:hover {
    background-color: #217e72 !important;
    border-color: #217e72 !important;
    box-shadow: 0 4px 12px rgba(42, 157, 143, 0.3) !important;
    transform: translateY(-1px);
}

/* Sidebar & Navigation */
.iq-sidebar-menu .iq-menu li.active > a {
    background-color: #2a9d8f !important;
    border-radius: 0.5rem !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(42, 157, 143, 0.2) !important;
    margin: 0 15px;
}
.iq-sidebar-menu .iq-menu li.active > a i {
    color: #ffffff !important;
}
.iq-sidebar-menu .iq-menu li > a {
    border-radius: 0.5rem !important;
    margin: 0 15px;
    transition: all 0.2s ease;
}
.iq-sidebar-menu .iq-menu li > a:hover {
    background-color: rgba(42, 157, 143, 0.05) !important;
    color: #2a9d8f !important;
}
.iq-sidebar-menu .iq-menu li > a:hover i {
    color: #2a9d8f !important;
}
