:root {
  /* Tabler.io */
  --tblr-body-bg: #ffffff;
  --tblr-primary: #007da4;
  --tblr-secondary: #2d434e;
  --tblr-danger: #e15347;
  --tblr-primary-rgb: 0, 125, 164;
  --tblr-secondary-rgb: 45, 67, 78;
  --tblr-danger-rgb: 225, 83, 71;
  /* FullCalendar */
  --fc-small-font-size: 1em;
}

.theme-toggle .form-check-input {
  cursor: pointer;
}

.mobile-menu .navbar-nav {
  flex-direction: column;
}

.mobile-menu .dropdown-menu {
  position: static;
  float: none;
  box-shadow: none;
  margin-top: 0.25rem;
}

.mobile-menu-footer {
  border-top: 1px solid rgba(98, 105, 118, 0.2);
}

.mobile-menu {
  width: 320px;
}

.mobile-menu .offcanvas-body {
  padding-bottom: 1rem;
}

.mobile-menu-nav .navbar-nav {
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.mobile-menu-footer-row.justify-content-start {
  justify-content: flex-start;
}

.mobile-menu-footer-row.mobile-user-row {
  justify-content: space-between;
}

.mobile-menu-footer-row .btn-icon {
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--tblr-body-color);
}

.mobile-menu-footer-row .btn-icon:hover {
  border-color: var(--tblr-border-color);
}

.mobile-menu-footer-row .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
}

.card-options .d-flex {
  justify-content: flex-end;
}

.card-options .d-flex .btn {
  min-width: 160px;
}


@media (max-width: 991px) {
  .container-xl {
    max-width: 100% !important;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .page,
  .page-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .offcanvas.offcanvas-end.mobile-menu {
    width: 100% !important;
  }

  .mobile-menu-nav {
    flex: 1;
  }

  .mobile-menu-footer-row {
    justify-content: space-between;
  }

  .page-body .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

.table-responsive {
  overflow-x: hidden;
}

.table-responsive table {
    border: 0;
  }
.teams-table .table-responsive,
.requests-table .table-responsive {
  overflow-x: auto;
}

  .table-responsive thead {
    display: none;
  }

  .table-responsive tbody tr {
    display: block;
    border: 1px solid var(--tblr-border-color);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    background: var(--tblr-card-bg);
  }

  .table-responsive td {
    display: flex;
    flex-direction: column;
    padding: 0.35rem 0.75rem;
    border-bottom: 1px solid var(--tblr-border-color);
    font-size: 0.85rem;
  }

  .table-responsive td:last-child {
    border-bottom: 0;
  }

  .table-responsive td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--tblr-muted);
    margin-bottom: 0.15rem;
    letter-spacing: 0.02em;
    display: block;
    width: 100%;
  }

  .table-responsive td > * {
    color: var(--tblr-body-color);
  }

.users-table tbody td:last-child,
.requests-table td:last-child,
.teams-table td:last-child {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  width: auto !important;
  overflow-x: auto;
  padding-right: 0.75rem;
  flex-direction: row;
  align-items: center;
}

.users-table thead th:last-child,
.requests-table thead th:last-child,
.teams-table thead th:last-child {
  text-align: left !important;
}

  .teams-table {
    overflow-x: auto;
  }

  .teams-table table {
    min-width: 0;
  }

  .teams-table td,
  .teams-table .badge {
    white-space: normal;
    word-break: break-word;
  }

  .teams-table .badge {
    display: inline-block;
    max-width: 100%;
  }
}

body.dark-theme,
body[data-bs-theme="dark"],
html.dark-theme,
html[data-bs-theme="dark"] {
  --tblr-body-bg: #0f1a20;
  --tblr-body-color: #e6edf1;
  --tblr-card-bg: #13242d;
  --tblr-border-color: #1f3541;
  --tblr-muted: #9fb3bd;
  --tblr-link-color: #8fd3ff;
  color-scheme: dark;
  background-color: var(--tblr-body-bg);
  color: var(--tblr-body-color);
}

html[data-bs-theme="dark"] body,
html.dark-theme body {
  background-color: var(--tblr-body-bg);
  color: var(--tblr-body-color);
}

html[data-bs-theme="light"],
body[data-bs-theme="light"] {
  --tblr-primary: #007da4 !important;
  --tblr-secondary: #2d434e !important;
  --tblr-danger: #e15347 !important;
  --tblr-primary-rgb: 0, 125, 164 !important;
  --tblr-secondary-rgb: 45, 67, 78 !important;
  --tblr-danger-rgb: 225, 83, 71 !important;
}

body.dark-theme .navbar,
body.dark-theme .page,
body.dark-theme .page-wrapper,
body.dark-theme .page-body,
body.dark-theme .offcanvas,
body.dark-theme .footer,
body[data-bs-theme="dark"] .navbar,
body[data-bs-theme="dark"] .page,
body[data-bs-theme="dark"] .page-wrapper,
body[data-bs-theme="dark"] .page-body,
body[data-bs-theme="dark"] .offcanvas,
body[data-bs-theme="dark"] .footer,
html.dark-theme .navbar,
html.dark-theme .page,
html.dark-theme .page-wrapper,
html.dark-theme .page-body,
html.dark-theme .offcanvas,
html.dark-theme .footer,
html[data-bs-theme="dark"] .navbar,
html[data-bs-theme="dark"] .page,
html[data-bs-theme="dark"] .page-wrapper,
html[data-bs-theme="dark"] .page-body,
html[data-bs-theme="dark"] .offcanvas,
html[data-bs-theme="dark"] .footer {
  background-color: var(--tblr-body-bg) !important;
  color: var(--tblr-body-color) !important;
}

body.dark-theme .card,
body.dark-theme .card-header,
body.dark-theme .card-body,
body.dark-theme .card-footer,
body.dark-theme .dropdown-menu,
body.dark-theme .modal-content,
body.dark-theme .table,
body.dark-theme .list-group-item,
body[data-bs-theme="dark"] .card,
body[data-bs-theme="dark"] .card-header,
body[data-bs-theme="dark"] .card-body,
body[data-bs-theme="dark"] .card-footer,
body[data-bs-theme="dark"] .dropdown-menu,
body[data-bs-theme="dark"] .modal-content,
body[data-bs-theme="dark"] .table,
body[data-bs-theme="dark"] .list-group-item,
html.dark-theme .card,
html.dark-theme .card-header,
html.dark-theme .card-body,
html.dark-theme .card-footer,
html.dark-theme .dropdown-menu,
html.dark-theme .modal-content,
html.dark-theme .table,
html.dark-theme .list-group-item,
html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .card-header,
html[data-bs-theme="dark"] .card-body,
html[data-bs-theme="dark"] .card-footer,
html[data-bs-theme="dark"] .dropdown-menu,
html[data-bs-theme="dark"] .modal-content,
html[data-bs-theme="dark"] .table,
html[data-bs-theme="dark"] .list-group-item {
  background-color: var(--tblr-card-bg) !important;
  color: var(--tblr-body-color) !important;
  border-color: var(--tblr-border-color) !important;
}

body.dark-theme .table > :not(caption) > * > *,
body[data-bs-theme="dark"] .table > :not(caption) > * > *,
html.dark-theme .table > :not(caption) > * > *,
html[data-bs-theme="dark"] .table > :not(caption) > * > * {
  background-color: var(--tblr-card-bg) !important;
  color: var(--tblr-body-color) !important;
  border-color: var(--tblr-border-color) !important;
}

body.dark-theme .table thead th,
body.dark-theme .table thead .btn-link,
body[data-bs-theme="dark"] .table thead th,
body[data-bs-theme="dark"] .table thead .btn-link,
html.dark-theme .table thead th,
html.dark-theme .table thead .btn-link,
html[data-bs-theme="dark"] .table thead th,
html[data-bs-theme="dark"] .table thead .btn-link {
  color: var(--tblr-body-color) !important;
}

body.dark-theme .table thead .btn-link:hover,
body[data-bs-theme="dark"] .table thead .btn-link:hover,
html.dark-theme .table thead .btn-link:hover,
html[data-bs-theme="dark"] .table thead .btn-link:hover {
  color: #ffffff !important;
}

body.dark-theme .form-control,
body.dark-theme .input-group-text,
body[data-bs-theme="dark"] .form-control,
body[data-bs-theme="dark"] .input-group-text,
html.dark-theme .form-control,
html.dark-theme .input-group-text,
html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .input-group-text {
  background-color: #112028 !important;
  color: var(--tblr-body-color) !important;
  border-color: var(--tblr-border-color) !important;
}

body.dark-theme .navbar-brand-autodark .navbar-brand-image,
body[data-bs-theme="dark"] .navbar-brand-autodark .navbar-brand-image,
html.dark-theme .navbar-brand-autodark .navbar-brand-image,
html[data-bs-theme="dark"] .navbar-brand-autodark .navbar-brand-image {
  filter: brightness(1.15);
}

.navbar-brand-autodark .navbar-brand-image {
  filter: none !important;
}

body.dark-theme .text-muted,
body[data-bs-theme="dark"] .text-muted,
html.dark-theme .text-muted,
html[data-bs-theme="dark"] .text-muted {
  color: var(--tblr-muted) !important;
}

body.dark-theme .dropdown-divider,
body[data-bs-theme="dark"] .dropdown-divider,
html.dark-theme .dropdown-divider,
html[data-bs-theme="dark"] .dropdown-divider {
  border-top-color: var(--tblr-border-color) !important;
}

body.dark-theme .nav-link,
body.dark-theme .dropdown-item,
body.dark-theme .navbar-brand,
body.dark-theme .table,
body.dark-theme .card-title,
body.dark-theme .card-body,
body.dark-theme .page-title,
body.dark-theme .breadcrumb,
body.dark-theme .badge.bg-secondary,
body.dark-theme .badge.bg-secondary-lt,
body.dark-theme .badge.bg-primary-lt,
body[data-bs-theme="dark"] .nav-link,
body[data-bs-theme="dark"] .dropdown-item,
body[data-bs-theme="dark"] .navbar-brand,
body[data-bs-theme="dark"] .table,
body[data-bs-theme="dark"] .card-title,
body[data-bs-theme="dark"] .card-body,
body[data-bs-theme="dark"] .page-title,
body[data-bs-theme="dark"] .breadcrumb,
body[data-bs-theme="dark"] .badge.bg-secondary,
body[data-bs-theme="dark"] .badge.bg-secondary-lt,
body[data-bs-theme="dark"] .badge.bg-primary-lt,
html.dark-theme .nav-link,
html.dark-theme .dropdown-item,
html.dark-theme .navbar-brand,
html.dark-theme .table,
html.dark-theme .card-title,
html.dark-theme .card-body,
html.dark-theme .page-title,
html.dark-theme .breadcrumb,
html.dark-theme .badge.bg-secondary,
html.dark-theme .badge.bg-secondary-lt,
html.dark-theme .badge.bg-primary-lt,
html[data-bs-theme="dark"] .nav-link,
html[data-bs-theme="dark"] .dropdown-item,
html[data-bs-theme="dark"] .navbar-brand,
html[data-bs-theme="dark"] .table,
html[data-bs-theme="dark"] .card-title,
html[data-bs-theme="dark"] .card-body,
html[data-bs-theme="dark"] .page-title,
html[data-bs-theme="dark"] .breadcrumb,
html[data-bs-theme="dark"] .badge.bg-secondary,
html[data-bs-theme="dark"] .badge.bg-secondary-lt,
html[data-bs-theme="dark"] .badge.bg-primary-lt {
  color: var(--tblr-body-color) !important;
}

body.dark-theme a,
body[data-bs-theme="dark"] a,
html.dark-theme a,
html[data-bs-theme="dark"] a {
  color: var(--tblr-link-color);
}

body.dark-theme .select2-container--default .select2-selection--single,
body.dark-theme .select2-container--default .select2-selection--multiple,
body[data-bs-theme="dark"] .select2-container--default .select2-selection--single,
body[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple,
html.dark-theme .select2-container--default .select2-selection--single,
html.dark-theme .select2-container--default .select2-selection--multiple,
html[data-bs-theme="dark"] .select2-container--default .select2-selection--single,
html[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple {
  background-color: #0f1a20 !important;
  color: var(--tblr-body-color) !important;
  border-color: var(--tblr-border-color) !important;
}

body.dark-theme .select2-dropdown,
body[data-bs-theme="dark"] .select2-dropdown,
html.dark-theme .select2-dropdown,
html[data-bs-theme="dark"] .select2-dropdown {
  background-color: var(--tblr-card-bg) !important;
  color: var(--tblr-body-color) !important;
  border-color: var(--tblr-border-color) !important;
}

body.dark-theme .select2-results__option--highlighted,
body[data-bs-theme="dark"] .select2-results__option--highlighted,
html.dark-theme .select2-results__option--highlighted,
html[data-bs-theme="dark"] .select2-results__option--highlighted {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--tblr-body-color) !important;
}

body.dark-theme .select2-selection__rendered,
body[data-bs-theme="dark"] .select2-selection__rendered,
html.dark-theme .select2-selection__rendered,
html[data-bs-theme="dark"] .select2-selection__rendered {
  color: var(--tblr-body-color) !important;
}

body.dark-theme .select2-selection__choice,
body[data-bs-theme="dark"] .select2-selection__choice,
html.dark-theme .select2-selection__choice,
html[data-bs-theme="dark"] .select2-selection__choice {
  background-color: #1f3541 !important;
  color: var(--tblr-body-color) !important;
  border-color: var(--tblr-border-color) !important;
}

body.dark-theme .select2-selection__choice__remove,
body[data-bs-theme="dark"] .select2-selection__choice__remove,
html.dark-theme .select2-selection__choice__remove,
html[data-bs-theme="dark"] .select2-selection__choice__remove {
  color: var(--tblr-body-color) !important;
}

.dropdown-notifications > .dropdown-container,
.dropdown-notifications > .dropdown-menu {
  min-width: 450px;
  max-width: 450px;
}

.dropdown-notifications .dropdown-menu {
  padding: 0;
}

.dropdown-notifications .dropdown-footer,
.dropdown-notifications .dropdown-toolbar {
  padding: 9.6px 12px;
}

#notyf-message {
  display: none;
}

body:not(.show-dead-users) .users-table .dead-event,
body:not(.show-dead-users) .teams-table .dead-event,
body:not(.show-dead-users) .requests-table .dead-event {
  display: none;
}

.container-xl {
  max-width: 1500px;
}
.teams-table td:last-child .badge,
.requests-table td:last-child .badge,
.users-table td:last-child .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
}
