: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;
  --netops-topbar-bg: #dbe9ef;
  --netops-topbar-border: rgba(45, 67, 78, 0.28);
  --netops-topbar-shadow: 0 2px 10px rgba(45, 67, 78, 0.12);
  --netops-toggle-bg: #c5dce6;
  --netops-toggle-border: rgba(45, 67, 78, 0.38);
  --netops-toggle-handle-bg: #ffffff;
  /* FullCalendar */
  --fc-small-font-size: 1em;
}

.app-topbar {
  background-color: var(--netops-topbar-bg) !important;
  border-bottom: 1px solid var(--netops-topbar-border);
  box-shadow: var(--netops-topbar-shadow);
}

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

.netops-theme-toggle {
  position: relative;
  width: 64px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--netops-toggle-border);
  background: var(--netops-toggle-bg);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  cursor: pointer;
  margin: 0;
}

.netops-theme-toggle-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.netops-theme-toggle-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tblr-muted);
  opacity: 0.6;
  z-index: 1;
}

.netops-theme-toggle-handle {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--netops-toggle-handle-bg);
  box-shadow: var(--tblr-shadow-sm);
  transition: transform 0.2s ease;
}

.netops-theme-toggle-icon[data-theme-icon-sun] {
  opacity: 1;
  color: var(--tblr-yellow, #f59f00);
}

.netops-theme-toggle-input:checked ~ .netops-theme-toggle-handle {
  transform: translateX(32px);
}

.netops-theme-toggle-input:checked ~ .netops-theme-toggle-icon[data-theme-icon-sun] {
  opacity: 0.6;
  color: var(--tblr-muted);
}

.netops-theme-toggle-input:checked ~ .netops-theme-toggle-icon[data-theme-icon-moon] {
  opacity: 1;
  color: var(--tblr-body-color);
}

.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.mobile-footer-actions {
  justify-content: space-between;
  align-items: flex-end;
}

.mobile-footer-left {
  min-width: 0;
}

.mobile-footer-right .dropdown-toggle {
  justify-content: flex-end;
}

.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;
}

.card.card-arrival > .card-header {
  background-color: var(--tblr-green-lt);
}

.card.card-departure > .card-header {
  background-color: var(--tblr-red-lt);
}

.card.card-account-extension > .card-header {
  background-color: var(--tblr-purple-lt);
}

.card.card-extension > .card-header {
  background-color: var(--tblr-yellow-lt);
}

.card.card-move > .card-header {
  background-color: var(--tblr-blue-lt);
}

.user-roles-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Improve readability of warning badges on colored card backgrounds */
.badge.bg-yellow.text-yellow-fg,
.badge.bg-warning,
a.badge.bg-yellow.text-yellow-fg,
a.badge.bg-warning {
  background-color: #b45309 !important;
  color: #ffffff !important;
  border: 1px solid rgba(120, 53, 15, 0.25);
  box-shadow: 0 1px 2px rgba(45, 67, 78, 0.08);
  font-weight: 600;
}

[data-bs-theme="dark"] .badge.bg-yellow.text-yellow-fg,
[data-bs-theme="dark"] .badge.bg-warning,
[data-bs-theme="dark"] a.badge.bg-yellow.text-yellow-fg,
[data-bs-theme="dark"] a.badge.bg-warning {
  background-color: #d97706 !important;
  color: #111827 !important;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.btn-warning {
  background-color: #b45309;
  border-color: #b45309;
  color: #fff;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning.active,
.show > .btn-warning.dropdown-toggle {
  background-color: #9a4708;
  border-color: #9a4708;
  color: #fff;
}

.btn-outline-warning {
  color: #b45309;
  border-color: #b45309;
}

.btn-outline-warning:hover,
.btn-outline-warning:focus,
.btn-outline-warning:active,
.btn-outline-warning.active,
.show > .btn-outline-warning.dropdown-toggle {
  background-color: #b45309;
  border-color: #b45309;
  color: #fff;
}

[data-bs-theme="dark"] .btn-warning {
  background-color: #d97706;
  border-color: #d97706;
  color: #111827;
}

[data-bs-theme="dark"] .btn-warning:hover,
[data-bs-theme="dark"] .btn-warning:focus,
[data-bs-theme="dark"] .btn-warning:active,
[data-bs-theme="dark"] .btn-warning.active,
[data-bs-theme="dark"] .show > .btn-warning.dropdown-toggle {
  background-color: #f59e0b;
  border-color: #f59e0b;
  color: #111827;
}

[data-bs-theme="dark"] .btn-outline-warning {
  color: #fbbf24;
  border-color: #d97706;
}

[data-bs-theme="dark"] .btn-outline-warning:hover,
[data-bs-theme="dark"] .btn-outline-warning:focus,
[data-bs-theme="dark"] .btn-outline-warning:active,
[data-bs-theme="dark"] .btn-outline-warning.active,
[data-bs-theme="dark"] .show > .btn-outline-warning.dropdown-toggle {
  background-color: #d97706;
  border-color: #d97706;
  color: #111827;
}

.alert-warning,
.alert-yellow {
  background-color: #fff4e5;
  border-color: #f1c27d;
  color: #7c3f00;
}

.alert-warning a,
.alert-yellow a {
  color: #8a3b00;
  font-weight: 600;
}

[data-bs-theme="dark"] .alert-warning,
[data-bs-theme="dark"] .alert-yellow {
  background-color: rgba(217, 119, 6, 0.18);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

[data-bs-theme="dark"] .alert-warning a,
[data-bs-theme="dark"] .alert-yellow a {
  color: #fde68a;
}

.environment-banner {
  border-width: 1px;
  border-style: solid;
}

.environment-banner .alert-title {
  font-weight: 700;
}

.environment-banner-preprod {
  background-color: #f8d7a8;
  border-color: #c2410c;
  color: #5b2300;
}

.environment-banner-preprod .icon {
  color: #7c2d12;
}

[data-bs-theme="dark"] .environment-banner-preprod {
  background-color: rgba(234, 88, 12, 0.35);
  border-color: rgba(251, 146, 60, 0.8);
  color: #ffedd5;
}

[data-bs-theme="dark"] .environment-banner-preprod .icon {
  color: #fdba74;
}

.ui-clickable-row {
  cursor: pointer;
}

.ui-clickable-row:focus-visible {
  outline: 2px solid rgba(var(--tblr-primary-rgb), 0.45);
  outline-offset: -2px;
}

.table-hover tbody tr.ui-clickable-row:hover {
  background-color: rgba(var(--tblr-primary-rgb), 0.05);
}

.ui-clickable-card {
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.ui-clickable-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.3rem 0.8rem rgba(45, 67, 78, 0.12);
}

.ui-clickable-card:focus-visible {
  outline: 2px solid rgba(var(--tblr-primary-rgb), 0.45);
  outline-offset: 2px;
}

@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;
    width: 100%;
    box-sizing: border-box;
    background: var(--tblr-card-bg);
  }

  .users-table .table-responsive tbody tr {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  .users-table .table-responsive table {
    width: 100%;
    table-layout: fixed;
  }

  .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 .badge {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .users-table tbody td,
  .users-table tbody td a,
  .users-table tbody td .text,
  .users-table tbody td .text-muted {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

.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;
  --netops-topbar-bg: #102832;
  --netops-topbar-border: #2b4a57;
  --netops-topbar-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  --netops-toggle-bg: #163744;
  --netops-toggle-border: #376170;
  --netops-toggle-handle-bg: #e6edf1;
  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 .user-name-badge,
body[data-bs-theme="dark"] .user-name-badge,
html.dark-theme .user-name-badge,
html[data-bs-theme="dark"] .user-name-badge {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--tblr-body-color) !important;
  border-color: var(--tblr-border-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;
}

.notyf-message {
  display: none;
}

.notyf__toast {
  border-radius: 0.5rem !important;
  border: 1px solid transparent;
  box-shadow: 0 6px 18px rgba(31, 41, 55, 0.1) !important;
}

.notyf__wrapper {
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
}

.notyf__message i {
  margin-right: 0.35rem;
}

.notyf__toast.notyf-toast--success-lt {
  color: #1b5e20 !important;
  border-color: #b7dec2;
}

.notyf__toast.notyf-toast--info-lt {
  color: #0f4d67 !important;
  border-color: #b8d9e8;
}

.notyf__toast.notyf-toast--warning-lt {
  color: #7a5a00 !important;
  border-color: #eedca5;
}

.notyf__toast.notyf-toast--error-lt {
  color: #8a2f2a !important;
  border-color: #f0b8b3;
}

.notyf__dismiss-btn {
  background-color: rgba(0, 0, 0, 0.12) !important;
}

.notyf__dismiss-btn:after,
.notyf__dismiss-btn:before {
  background: #2c3e50 !important;
}

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;
}

.requests-summary-table .summary-badge {
  display: inline-block;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

@media (max-width: 1399px) {
  .requests-summary-table .summary-badge {
    max-width: 11rem;
  }
}

.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;
}

.users-table tbody tr.arrival-request-row {
  background-color: rgba(13, 110, 253, 0.08);
}

body.dark-theme .card.card-arrival > .card-header,
body[data-bs-theme="dark"] .card.card-arrival > .card-header,
html.dark-theme .card.card-arrival > .card-header,
html[data-bs-theme="dark"] .card.card-arrival > .card-header {
  background-color: var(--tblr-green-lt) !important;
}

body.dark-theme .card.card-departure > .card-header,
body[data-bs-theme="dark"] .card.card-departure > .card-header,
html.dark-theme .card.card-departure > .card-header,
html[data-bs-theme="dark"] .card.card-departure > .card-header {
  background-color: var(--tblr-red-lt) !important;
}

body.dark-theme .card.card-account-extension > .card-header,
body[data-bs-theme="dark"] .card.card-account-extension > .card-header,
html.dark-theme .card.card-account-extension > .card-header,
html[data-bs-theme="dark"] .card.card-account-extension > .card-header {
  background-color: var(--tblr-purple-lt) !important;
}

body.dark-theme .card.card-extension > .card-header,
body[data-bs-theme="dark"] .card.card-extension > .card-header,
html.dark-theme .card.card-extension > .card-header,
html[data-bs-theme="dark"] .card.card-extension > .card-header {
  background-color: var(--tblr-yellow-lt) !important;
}

body.dark-theme .card.card-move > .card-header,
body[data-bs-theme="dark"] .card.card-move > .card-header,
html.dark-theme .card.card-move > .card-header,
html[data-bs-theme="dark"] .card.card-move > .card-header {
  background-color: var(--tblr-blue-lt) !important;
}

.user-requests-unified .card.card-extension,
.user-requests-unified .card.card-extension > .card-body {
  background-color: var(--tblr-yellow-lt) !important;
}

.user-requests-unified .card.card-account-extension,
.user-requests-unified .card.card-account-extension > .card-body {
  background-color: var(--tblr-purple-lt) !important;
}

.user-requests-unified .card.card-departure,
.user-requests-unified .card.card-departure > .card-body {
  background-color: var(--tblr-red-lt) !important;
}

.user-requests-unified .card.card-move,
.user-requests-unified .card.card-move > .card-body {
  background-color: var(--tblr-blue-lt) !important;
}

.user-requests-unified .card .card-title,
.user-requests-unified .card .card-body,
.user-requests-unified .card .card-title a {
  color: var(--tblr-dark) !important;
}

.user-request-card-body {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.user-request-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.user-request-card-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 0;
}

.user-request-card-icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 67, 78, 0.08);
  flex: 0 0 auto;
}

.user-request-card-title {
  font-size: 0.95rem;
  line-height: 1.2;
}

.user-request-card-subtitle {
  font-size: 0.75rem;
  color: rgba(45, 67, 78, 0.7);
  line-height: 1.2;
  margin-top: 0.15rem;
}

.user-request-card-status {
  margin-top: 0.1rem;
}

.user-request-card-status > * {
  width: 100%;
}

.user-request-card-status .badge {
  font-size: 0.72rem;
}

.user-request-card-status-header {
  flex: 0 0 auto;
  margin-top: 0.05rem;
}

.user-request-card-status-header > * {
  width: auto;
}

.user-request-card-status-header .d-flex {
  justify-content: flex-end;
}

.user-request-card-status-footer {
  margin-top: 0;
}

.user-request-card-status-footer .d-flex.flex-column {
  gap: 0.2rem !important;
}

.user-request-card-status-footer .d-flex.flex-wrap {
  gap: 0.25rem !important;
}

.user-request-card-status-footer .badge {
  font-size: 0.68rem;
  line-height: 1.05;
  padding: 0.22rem 0.35rem;
}

body.dark-theme .user-requests-unified .card .card-title,
body.dark-theme .user-requests-unified .card .card-body,
body.dark-theme .user-requests-unified .card .card-title a,
body[data-bs-theme="dark"] .user-requests-unified .card .card-title,
body[data-bs-theme="dark"] .user-requests-unified .card .card-body,
body[data-bs-theme="dark"] .user-requests-unified .card .card-title a,
html.dark-theme .user-requests-unified .card .card-title,
html.dark-theme .user-requests-unified .card .card-body,
html.dark-theme .user-requests-unified .card .card-title a,
html[data-bs-theme="dark"] .user-requests-unified .card .card-title,
html[data-bs-theme="dark"] .user-requests-unified .card .card-body,
html[data-bs-theme="dark"] .user-requests-unified .card .card-title a {
  color: #ffffff !important;
}

body.dark-theme .user-request-card-icon,
body[data-bs-theme="dark"] .user-request-card-icon,
html.dark-theme .user-request-card-icon,
html[data-bs-theme="dark"] .user-request-card-icon {
  background: rgba(255, 255, 255, 0.14);
}

body.dark-theme .user-request-card-subtitle,
body[data-bs-theme="dark"] .user-request-card-subtitle,
html.dark-theme .user-request-card-subtitle,
html[data-bs-theme="dark"] .user-request-card-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.user-detail-page .user-detail-actions-wrapper {
  position: sticky;
  top: 0.75rem;
  z-index: 100;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.user-detail-page .user-detail-actions {
  background: var(--tblr-bg-surface);
  border: 1px solid var(--tblr-border-color);
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(31, 41, 55, 0.08);
  --bs-gutter-y: 0;
  --bs-gutter-x: 0.5rem;
}

.user-detail-page .user-detail-actions.row {
  --bs-gutter-y: 0 !important;
}

.user-detail-page .user-detail-card {
  border-radius: 0.75rem;
  border: 1px solid var(--tblr-border-color);
}

.user-detail-page .user-detail-card .card-header {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
}

.user-detail-page .user-detail-card .card-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.user-detail-page .user-detail-card-body > .mb-3:last-child {
  margin-bottom: 0 !important;
}

.user-detail-page .user-workflow-card {
  border-radius: 0.75rem;
}

.user-detail-page .user-api-access-switch {
  background: var(--tblr-bg-surface-secondary);
}

.user-detail-page .form-label {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.user-detail-page .form-control:disabled,
.user-detail-page .form-select:disabled,
.user-detail-page .form-check-input:disabled {
  opacity: 1;
  cursor: not-allowed;
  background-color: var(--tblr-bg-surface-secondary);
  border-color: var(--tblr-border-color);
}

.user-detail-page .select2-container--default .select2-selection--single,
.user-detail-page .select2-container--default .select2-selection--multiple {
  min-height: 2.5rem;
  border-radius: 0.5rem;
  border-color: var(--tblr-border-color);
}

.user-detail-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 2.35rem;
  padding-left: 0.75rem;
}

.user-detail-page .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 2.35rem;
  right: 0.4rem;
}

.user-detail-page .select2-container--default .select2-selection--multiple {
  padding: 0.2rem 0.25rem;
}

@media (max-width: 1199px) {
  .user-detail-page .user-detail-actions-wrapper {
    position: static;
    top: auto;
  }
}

:root {
  --app-btn-primary-bg: #d9edf4;
  --app-btn-primary-border: #afd5e2;
  --app-btn-primary-fg: #245062;
  --app-btn-success-bg: #deefe2;
  --app-btn-success-border: #b9dec3;
  --app-btn-success-fg: #1f5a32;
  --app-btn-danger-bg: #f8dfdb;
  --app-btn-danger-border: #efc0b8;
  --app-btn-danger-fg: #7b2f2a;
  --app-btn-orange-bg: #f7ead8;
  --app-btn-orange-border: #e9cfaa;
  --app-btn-orange-fg: #7a5625;
  --app-force-close-bg: #ffe8b5;
  --app-force-close-border: #f2c66d;
  --app-force-close-fg: #6b3f00;
  --app-force-close-hover-bg: #ffdb96;
  --app-force-close-hover-border: #e8b24f;
  --app-force-close-hover-fg: #563100;
  --app-force-close-dark-bg: #6a4c16;
  --app-force-close-dark-border: #85601d;
  --app-force-close-dark-fg: #ffe8b5;
  --app-force-close-dark-hover-bg: #7a5a1b;
  --app-force-close-dark-hover-border: #9a7123;
  --app-force-close-dark-hover-fg: #ffecbf;
}

.page-form-layout .page-form-actions-wrapper {
  position: sticky;
  top: 0.75rem;
  z-index: 95;
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
}

.page-form-layout .page-form-actions {
  background: var(--tblr-bg-surface);
  border: 1px solid var(--tblr-border-color);
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(31, 41, 55, 0.08);
  --bs-gutter-y: 0;
  --bs-gutter-x: 0.5rem;
}

.page-form-layout .page-form-actions.row {
  --bs-gutter-y: 0 !important;
}

.btn.btn-primary {
  background-color: var(--app-btn-primary-bg);
  border-color: var(--app-btn-primary-border);
  color: var(--app-btn-primary-fg);
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
  background-color: #c8e4ee;
  border-color: #9fcddc;
  color: #1b4658;
}

.btn.btn-success {
  background-color: var(--app-btn-success-bg);
  border-color: var(--app-btn-success-border);
  color: var(--app-btn-success-fg);
}

.btn.btn-success:hover,
.btn.btn-success:focus {
  background-color: #cde6d5;
  border-color: #a8d3b5;
  color: #184f2a;
}

.btn.btn-danger {
  background-color: var(--app-btn-danger-bg);
  border-color: var(--app-btn-danger-border);
  color: var(--app-btn-danger-fg);
}

.btn.btn-danger:hover,
.btn.btn-danger:focus {
  background-color: #f3d2cd;
  border-color: #e7aca1;
  color: #682823;
}

.force-close-action {
  background-color: var(--app-force-close-bg) !important;
  border-color: var(--app-force-close-border) !important;
  color: var(--app-force-close-fg) !important;
}

.force-close-action:hover,
.force-close-action:focus {
  background-color: var(--app-force-close-hover-bg) !important;
  border-color: var(--app-force-close-hover-border) !important;
  color: var(--app-force-close-hover-fg) !important;
}

.btn.btn-outline-orange {
  background-color: var(--app-btn-orange-bg);
  border-color: var(--app-btn-orange-border);
  color: var(--app-btn-orange-fg);
}

.btn.btn-outline-orange:hover,
.btn.btn-outline-orange:focus {
  background-color: #f2e0c8;
  border-color: #ddb98b;
  color: #66481f;
}

.btn.btn-pink {
  background-color: #f6deea;
  border-color: #eac0d7;
  color: #6e3457;
}

.btn.btn-pink:hover,
.btn.btn-pink:focus {
  background-color: #f1d0e2;
  border-color: #dfa9c8;
  color: #5f2b4b;
}

body[data-bs-theme="dark"] .btn.btn-primary,
html[data-bs-theme="dark"] .btn.btn-primary {
  background-color: #204352;
  border-color: #2b5567;
  color: #d9eef5;
}

body[data-bs-theme="dark"] .btn.btn-success,
html[data-bs-theme="dark"] .btn.btn-success {
  background-color: #244834;
  border-color: #2f5d44;
  color: #dbefe2;
}

body[data-bs-theme="dark"] .btn.btn-danger,
html[data-bs-theme="dark"] .btn.btn-danger {
  background-color: #583431;
  border-color: #6a403b;
  color: #f5e0dc;
}

body[data-bs-theme="dark"] .force-close-action,
html[data-bs-theme="dark"] .force-close-action {
  background-color: var(--app-force-close-dark-bg) !important;
  border-color: var(--app-force-close-dark-border) !important;
  color: var(--app-force-close-dark-fg) !important;
}

body[data-bs-theme="dark"] .force-close-action:hover,
body[data-bs-theme="dark"] .force-close-action:focus,
html[data-bs-theme="dark"] .force-close-action:hover,
html[data-bs-theme="dark"] .force-close-action:focus {
  background-color: var(--app-force-close-dark-hover-bg) !important;
  border-color: var(--app-force-close-dark-hover-border) !important;
  color: var(--app-force-close-dark-hover-fg) !important;
}

body[data-bs-theme="dark"] .btn.btn-outline-orange,
html[data-bs-theme="dark"] .btn.btn-outline-orange {
  background-color: #5b4932;
  border-color: #6e583f;
  color: #f4e7d4;
}

body[data-bs-theme="dark"] .btn.btn-pink,
html[data-bs-theme="dark"] .btn.btn-pink {
  background-color: #5b3a4f;
  border-color: #6d4760;
  color: #f5deea;
}

@media (max-width: 1199px) {
  .page-form-layout .page-form-actions-wrapper {
    position: static;
    top: auto;
  }
}

.table .table-action-badge {
  border: 1px solid transparent !important;
  border-radius: 0.5rem !important;
  padding: 0.28rem 0.45rem !important;
}

.table .table-action-badge.table-action-primary {
  background-color: #d9edf4 !important;
  border-color: #afd5e2 !important;
  color: #245062 !important;
}

.table .table-action-badge.table-action-secondary {
  background-color: #e4eaee !important;
  border-color: #c8d4dc !important;
  color: #3a5563 !important;
}

.table .table-action-badge.table-action-danger {
  background-color: #f8dfdb !important;
  border-color: #efc0b8 !important;
  color: #7b2f2a !important;
}

.table .table-action-badge.table-action-purple {
  background-color: #f1dff2 !important;
  border-color: #e0bfe4 !important;
  color: #5f3568 !important;
}

.table .table-action-badge.table-action-force-close {
  background-color: var(--app-force-close-bg) !important;
  border-color: var(--app-force-close-border) !important;
  color: var(--app-force-close-fg) !important;
}

.table .table-action-badge:hover,
.table .table-action-badge:focus {
  filter: brightness(0.97);
}

body[data-bs-theme="dark"] .table .table-action-badge.table-action-primary,
html[data-bs-theme="dark"] .table .table-action-badge.table-action-primary {
  background-color: #204352 !important;
  border-color: #2b5567 !important;
  color: #d9eef5 !important;
}

body[data-bs-theme="dark"] .table .table-action-badge.table-action-secondary,
html[data-bs-theme="dark"] .table .table-action-badge.table-action-secondary {
  background-color: #2b3f4a !important;
  border-color: #36505e !important;
  color: #e1ebf1 !important;
}

body[data-bs-theme="dark"] .table .table-action-badge.table-action-danger,
html[data-bs-theme="dark"] .table .table-action-badge.table-action-danger {
  background-color: #583431 !important;
  border-color: #6a403b !important;
  color: #f5e0dc !important;
}

body[data-bs-theme="dark"] .table .table-action-badge.table-action-purple,
html[data-bs-theme="dark"] .table .table-action-badge.table-action-purple {
  background-color: #51395a !important;
  border-color: #62456e !important;
  color: #efddf4 !important;
}

body[data-bs-theme="dark"] .table .table-action-badge.table-action-force-close,
html[data-bs-theme="dark"] .table .table-action-badge.table-action-force-close {
  background-color: var(--app-force-close-dark-bg) !important;
  border-color: var(--app-force-close-dark-border) !important;
  color: var(--app-force-close-dark-fg) !important;
}
