:root {
  --portal-bg: #f5f7fb;
  --portal-surface: #ffffff;
  --portal-surface-soft: #f9fbfd;
  --portal-border: #e2e8f0;
  --portal-border-strong: #cbd5e1;
  --portal-text: #172033;
  --portal-muted: #64748b;
  --portal-primary: #1f6feb;
  --portal-primary-dark: #174ea6;
  --portal-success: #15965f;
  --portal-danger: #d92d20;
  --portal-warning: #f5b400;
  --portal-radius: 8px;
  --portal-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  --portal-shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.18);
}

html {
  min-height: 100%;
  background: var(--portal-bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  color: var(--portal-text);
  background: var(--portal-bg);
  font-size: 14px;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body[data-layout="horizontal"] #layout-wrapper {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(31, 111, 235, 0.08), transparent 32rem),
    linear-gradient(180deg, #fbfcff 0%, var(--portal-bg) 34rem);
}

a {
  color: var(--portal-primary);
}

a:hover {
  color: var(--portal-primary-dark);
}

img,
video,
canvas {
  max-width: 100%;
}

.navbar-header,
#page-topbar {
  min-height: 76px;
}

.navbar-header {
  width: min(1240px, calc(100% - 32px));
  max-width: 1240px !important;
  height: 76px !important;
  gap: 12px;
  margin: 0 auto !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.navbar-header > .d-flex {
  align-items: center;
  min-width: 0;
}

.navbar-header > .d-flex:first-child {
  flex: 1 1 auto;
}

#page-topbar {
  height: 76px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.navbar-brand-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 172px;
  min-width: 172px;
  width: 172px !important;
  height: 76px;
  padding-right: 0;
  padding-left: 0;
}

.logo.logo-light {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 70px;
  line-height: 1 !important;
}

.logo .logo-lg,
.logo .logo-sm {
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.logo .logo-lg img,
.logo .logo-sm img {
  display: block;
  width: auto !important;
  max-width: 116px;
  max-height: 60px;
  object-fit: contain;
}

.header-item {
  min-height: 42px;
}

.header-item .btn,
.navbar-header .btn {
  border-radius: var(--portal-radius);
  box-shadow: none;
}

.navbar-header .d-none.d-lg-inline-block:not(.dropdown) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 8px;
  min-width: auto;
  margin-left: 0;
  white-space: nowrap;
}

.navbar-header .d-none.d-lg-inline-block:not(.dropdown) > a.header-item {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  color: inherit;
  line-height: 1;
}

.navbar-header .d-none.d-lg-inline-block:not(.dropdown) > a.header-item:hover,
.navbar-header .d-none.d-lg-inline-block:not(.dropdown) > a.header-item:focus {
  color: inherit;
}

.navbar-header .d-none.d-lg-inline-block:not(.dropdown) > a.header-item .btn,
.navbar-header .d-none.d-lg-inline-block:not(.dropdown) .btn.btn-primary.header-item.noti-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: rgba(255, 255, 255, 0.92) !important;
  background: rgba(255, 255, 255, 0.13) !important;
  font-size: 13px;
  line-height: 1 !important;
  white-space: nowrap;
}

.navbar-header .d-none.d-lg-inline-block:not(.dropdown) > a.header-item .btn:hover,
.navbar-header .d-none.d-lg-inline-block:not(.dropdown) > a.header-item .btn:focus,
.navbar-header .d-none.d-lg-inline-block:not(.dropdown) .btn.btn-primary.header-item.noti-icon:hover,
.navbar-header .d-none.d-lg-inline-block:not(.dropdown) .btn.btn-primary.header-item.noti-icon:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.22) !important;
}

.navbar-header .d-none.d-lg-inline-block:not(.dropdown) > a.header-item .btn i,
.navbar-header .d-none.d-lg-inline-block:not(.dropdown) .btn.btn-primary.header-item.noti-icon i {
  color: rgba(255, 255, 255, 0.78) !important;
  margin-right: 0 !important;
  font-size: 16px !important;
  line-height: 1;
}

.topnav {
  margin-top: 76px !important;
  min-height: 64px;
  border-bottom: 1px solid var(--portal-border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.topnav .topnav-menu {
  min-height: 64px;
  padding-top: 0;
  padding-bottom: 0;
}

.topnav .navbar-collapse {
  align-items: center;
}

.topnav .navbar-nav {
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 64px;
  min-width: 0;
}

.topnav .navbar-nav .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
}

.topnav .navbar-nav .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  padding: 0 16px !important;
  border-radius: 10px;
  color: #334155;
  font-weight: 600;
  line-height: 1;
  box-shadow: inset 0 0 0 1px transparent;
  transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.topnav .navbar-nav .nav-link i {
  line-height: 1;
}

.topnav .navbar-nav .nav-link:hover,
.topnav .navbar-nav .nav-link:focus,
.topnav .navbar-nav .nav-link.active,
.topnav .navbar-nav .nav-item.active > .nav-link {
  color: var(--portal-primary);
  background: rgba(31, 111, 235, 0.08);
  box-shadow: inset 0 0 0 1px rgba(31, 111, 235, 0.08);
}

.topnav .navbar-nav .nav-link.active i,
.topnav .navbar-nav .nav-item.active > .nav-link i {
  color: var(--portal-primary);
}

.topnav .navbar-nav > .dropdown > .dropdown-menu {
  position: absolute !important;
  inset: 100% auto auto 0 !important;
  top: 100% !important;
  right: auto !important;
  bottom: auto !important;
  left: 0 !important;
  transform: none !important;
}

.topnav .dropdown-menu {
  min-width: 228px;
  margin-top: 0;
  padding: 8px;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  box-shadow: var(--portal-shadow);
}

.topnav .dropdown-item {
  display: flex;
  align-items: center;
  min-height: 38px;
  border-radius: 6px;
  color: #334155;
  font-weight: 500;
}

.topnav .dropdown-item:hover,
.topnav .dropdown-item:focus,
.topnav .dropdown-item.active {
  color: var(--portal-primary);
  background: rgba(31, 111, 235, 0.08);
}

.main-content {
  min-height: calc(100vh - 120px);
}

.page-content {
  padding-top: 28px;
  padding-bottom: 36px;
}

.container-fluid {
  max-width: 1480px;
}

@media (min-width: 992px) {
  body[data-layout="horizontal"] .navbar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
  }

  body[data-layout="horizontal"] .navbar-header > .d-flex:last-child {
    flex: 0 0 auto;
    align-items: center;
  }

  body[data-layout="horizontal"] .navbar-brand-box {
    justify-content: center;
  }

  body[data-layout="horizontal"] .navbar-header .d-none.d-lg-inline-block:not(.dropdown) {
    justify-content: center;
    margin-left: 0;
    max-width: 100%;
  }

  body[data-layout="horizontal"] .topnav .container-fluid {
    max-width: 1180px;
  }

  body[data-layout="horizontal"] .topnav .navbar-collapse {
    justify-content: center;
  }

  #page-header-user-dropdown .d-xl-inline-block {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }
}

.page-title-box {
  gap: 16px;
  margin-bottom: 20px;
}

.page-title-box h4,
.page-title-box .font-size-18 {
  color: var(--portal-text);
  font-size: 20px !important;
  font-weight: 750;
  letter-spacing: 0;
}

.breadcrumb {
  gap: 4px;
  color: var(--portal-muted);
}

.breadcrumb-item,
.breadcrumb-item a {
  color: var(--portal-muted);
}

.breadcrumb-item.active {
  color: var(--portal-text);
  font-weight: 600;
}

.card {
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  background: var(--portal-surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.card-header {
  border-bottom-color: var(--portal-border);
  background: var(--portal-surface-soft);
}

.card-title,
.card h4,
.card h5 {
  letter-spacing: 0;
}

.card-body {
  min-width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--portal-radius);
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: none !important;
}

.btn i {
  line-height: 1;
}

.btn-primary {
  border-color: var(--portal-primary);
  background: var(--portal-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--portal-primary-dark);
  background: var(--portal-primary-dark);
}

.btn-success {
  border-color: var(--portal-success);
  background: var(--portal-success);
}

.btn-danger,
.btn-custom-danger {
  border-color: var(--portal-danger);
  background: var(--portal-danger);
}

.btn-icon,
.btn.btn-icon {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
}

.badge {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0;
}

.form-control,
.form-select,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="month"],
input[type="tel"],
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
  min-height: 42px;
  border-color: var(--portal-border-strong);
  border-radius: var(--portal-radius);
  color: var(--portal-text);
  background-color: #fff;
  box-shadow: none;
}

textarea.form-control,
textarea {
  min-height: 110px;
}

.form-control:focus,
.form-select:focus,
select:focus,
textarea:focus,
input:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--single:focus {
  border-color: var(--portal-primary);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.16);
}

label,
.form-label {
  color: #344054;
  font-weight: 650;
}

.table {
  margin-bottom: 0;
  color: var(--portal-text);
  vertical-align: middle;
}

.table thead th {
  border-bottom: 1px solid var(--portal-border);
  color: #475569;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table tbody td {
  border-color: #eef2f7;
}

.table tbody tr {
  transition: background-color 120ms ease;
}

.table tbody tr:hover {
  background: #fbfdff;
}

.table-responsive,
.portal-table-wrap,
.dataTables_wrapper {
  width: 100%;
}

.portal-table-wrap,
.dataTables_wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dataTables_wrapper .row {
  row-gap: 12px;
}

div.dataTables_wrapper div.dt-buttons,
.dataTables_wrapper .dt-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
}

.dataTables_wrapper .dt-buttons .btn,
.dataTables_wrapper .dt-button,
.dataTables_wrapper button.dt-button,
.dataTables_wrapper a.dt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 0 !important;
  padding: 8px 16px;
  border: 0 !important;
  border-radius: 8px !important;
  color: #fff !important;
  background: #69737e !important;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: none !important;
}

.dataTables_wrapper .dt-buttons .btn:hover,
.dataTables_wrapper .dt-button:hover,
.dataTables_wrapper button.dt-button:hover,
.dataTables_wrapper a.dt-button:hover {
  color: #fff !important;
  background: #56616d !important;
}

div.dataTables_wrapper div.dataTables_filter {
  width: 100%;
  margin: 0 0 14px;
  text-align: left !important;
}

.dataTables_filter label,
.dataTables_length label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--portal-muted);
  font-weight: 600;
}

div.dataTables_wrapper div.dataTables_filter label {
  display: inline-grid;
  grid-template-columns: auto minmax(220px, 320px);
  align-items: center;
  gap: 10px;
  width: auto;
  margin-bottom: 0;
}

.dataTables_filter input,
.dataTables_length select {
  min-height: 38px;
  border-radius: var(--portal-radius);
}

div.dataTables_wrapper div.dataTables_filter input {
  width: 100% !important;
  min-width: 220px;
  height: 42px;
  margin: 0 !important;
}

.dataTables_paginate .pagination {
  gap: 4px;
  margin-bottom: 0;
}

.pagination .page-link {
  min-width: 36px;
  border-radius: 6px !important;
  color: var(--portal-primary);
}

.pagination .page-item.active .page-link {
  border-color: var(--portal-primary);
  background: var(--portal-primary);
}

.modal-backdrop.show {
  opacity: 0.42;
  backdrop-filter: blur(4px);
}

.modal-dialog {
  max-width: min(760px, calc(100vw - 24px));
}

.modal-dialog.modal-lg {
  max-width: min(980px, calc(100vw - 24px));
}

.modal-content {
  overflow: hidden;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  box-shadow: var(--portal-shadow-strong);
}

.modal-header {
  align-items: flex-start;
  border-bottom-color: var(--portal-border);
  background: var(--portal-surface-soft);
}

.modal-title {
  color: var(--portal-text);
  font-weight: 750;
  letter-spacing: 0;
}

.modal-body {
  max-width: 100%;
}

.modal-footer {
  border-top-color: var(--portal-border);
  background: var(--portal-surface-soft);
}

.swal2-container,
.admin-modal-backdrop {
  z-index: 1095;
}

.swal2-container {
  padding: 16px;
}

.swal2-popup {
  width: min(560px, calc(100vw - 32px)) !important;
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid var(--portal-border) !important;
  border-radius: var(--portal-radius) !important;
  background: var(--portal-surface) !important;
  box-shadow: var(--portal-shadow-strong) !important;
}

.swal2-title {
  padding: 22px 24px 0 !important;
  color: var(--portal-text) !important;
  font-size: 20px !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
}

.swal2-html-container {
  margin: 12px 24px 0 !important;
  color: #344054 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  text-align: left !important;
}

.swal2-popup > .swal2-input,
.swal2-popup > .swal2-select,
.swal2-popup > .swal2-textarea {
  width: calc(100% - 48px) !important;
  min-height: 42px;
  margin: 12px 24px 0 !important;
  border: 1px solid var(--portal-border-strong) !important;
  border-radius: var(--portal-radius) !important;
  color: var(--portal-text);
  box-shadow: none !important;
}

.swal2-popup > .swal2-input:focus,
.swal2-popup > .swal2-select:focus,
.swal2-popup > .swal2-textarea:focus {
  border-color: var(--portal-primary) !important;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.16) !important;
}

.swal2-actions {
  width: 100%;
  gap: 10px;
  justify-content: flex-end;
  margin: 20px 0 0 !important;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--portal-border);
  background: var(--portal-surface-soft);
}

.swal2-styled {
  min-height: 40px;
  margin: 0 !important;
  border-radius: var(--portal-radius) !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.swal2-validation-message {
  margin: 12px 24px 0 !important;
  border-radius: 6px !important;
  color: #912018 !important;
  background: #fef3f2 !important;
}

.auth-body-bg {
  background:
    radial-gradient(circle at top left, rgba(31, 111, 235, 0.12), transparent 30rem),
    linear-gradient(135deg, #f8fafc 0%, #eef4ff 100%);
}

.auth-body-bg .card,
.auth-body-bg .bg-overlay,
.auth-body-bg .auth-full-page-content {
  border-radius: var(--portal-radius);
}

.portal-modernized .card,
.portal-modernized .modal-content,
.portal-modernized .dropdown-menu,
.portal-modernized .admin-modal-dialog {
  background-clip: padding-box;
}

@media (max-width: 1199.98px) {
  .navbar-brand-box {
    flex-basis: 132px;
    min-width: 132px;
    width: 132px !important;
  }

  .navbar-header .d-none.d-lg-inline-block:not(.dropdown) {
    gap: 5px;
    margin-left: 6px;
  }

  .navbar-header .d-none.d-lg-inline-block:not(.dropdown) > a.header-item .btn,
  .navbar-header .d-none.d-lg-inline-block:not(.dropdown) .btn.btn-primary.header-item.noti-icon {
    height: 36px !important;
    min-height: 36px !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
    font-size: 12px;
  }

  .topnav .navbar-nav .nav-link {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
}

@media (max-width: 991.98px) {
  body[data-layout="horizontal"] .page-content {
    padding-top: 20px;
  }

  .navbar-brand-box {
    min-width: auto;
    width: auto !important;
  }

  .topnav .topnav-menu {
    min-height: auto;
  }

  .topnav .navbar-collapse {
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    padding: 10px 0 14px;
  }

  .topnav .navbar-nav {
    align-items: stretch;
    min-height: auto;
    gap: 4px;
  }

  .topnav .navbar-nav .nav-item {
    min-height: auto;
  }

  .topnav .navbar-nav .nav-link {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
  }

  .topnav .dropdown-menu {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 100%;
    margin: 0 0 8px;
    border: 0;
    box-shadow: none;
    background: #f8fafc;
  }

  .page-title-box {
    flex-direction: column;
    align-items: flex-start !important;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 13px;
  }

  .container-fluid {
    padding-right: 14px;
    padding-left: 14px;
  }

  .page-content {
    padding-bottom: 24px;
  }

  .page-title-box h4,
  .page-title-box .font-size-18 {
    font-size: 18px !important;
  }

  .card-body {
    padding: 16px;
  }

  .btn:not(.btn-icon) {
    min-height: 40px;
  }

  .modal-dialog {
    margin: 12px auto;
  }

  .modal-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .swal2-container {
    padding: 10px;
  }

  .swal2-popup {
    width: min(100%, calc(100vw - 20px)) !important;
  }

  .swal2-title {
    padding-right: 18px !important;
    padding-left: 18px !important;
    font-size: 18px !important;
  }

  .swal2-html-container {
    margin-right: 18px !important;
    margin-left: 18px !important;
  }

  .swal2-popup > .swal2-input,
  .swal2-popup > .swal2-select,
  .swal2-popup > .swal2-textarea {
    width: calc(100% - 36px) !important;
    margin-right: 18px !important;
    margin-left: 18px !important;
  }

  .swal2-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    padding-right: 18px;
    padding-left: 18px;
  }

  .swal2-actions .swal2-styled {
    width: 100%;
  }

  div.dataTables_wrapper div.dataTables_filter label,
  .dataTables_filter label,
  .dataTables_length label {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  div.dataTables_wrapper div.dataTables_filter input,
  .dataTables_filter input,
  .dataTables_length select {
    min-width: 0;
    width: 100% !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 575.98px) {
  .navbar-header {
    padding-right: 10px;
    padding-left: 10px;
  }

  .logo .logo-lg img,
  .logo .logo-sm img {
    height: 48px !important;
  }

  .page-title-right {
    width: 100%;
  }

  .breadcrumb {
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .table thead th,
  .table tbody td {
    white-space: nowrap;
  }
}

.calendar-shell {
  width: 100%;
  overflow-x: auto;
}

.calendar-shell #calendar {
  min-height: 640px;
}

.calendar-shell .fc .fc-button,
.calendar-shell .fc .fc-button-primary,
.calendar-shell .fc .btn-primary {
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
  color: #17202a !important;
  box-shadow: none !important;
}

.calendar-shell .fc .fc-button:hover,
.calendar-shell .fc .fc-button-primary:hover,
.calendar-shell .fc .btn-primary:hover {
  border-color: #226537 !important;
  background: #eef8f1 !important;
  color: #17202a !important;
}

.calendar-shell .fc .fc-button-primary:not(:disabled).fc-button-active,
.calendar-shell .fc .fc-button-primary:not(:disabled):active,
.calendar-shell .fc .btn-primary:not(:disabled):not(.disabled).active,
.calendar-shell .fc .btn-primary:not(:disabled):not(.disabled):active,
.calendar-shell .fc .fc-state-active,
.calendar-shell .fc .fc-state-down {
  border-color: #226537 !important;
  background: #226537 !important;
  color: #ffffff !important;
  text-shadow: none !important;
}

.calendar-shell .fc .fc-button:disabled,
.calendar-shell .fc .fc-button-primary:disabled,
.calendar-shell .fc .btn-primary:disabled {
  border-color: #94a3b8 !important;
  background: #94a3b8 !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

#external-events .external-event {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 650;
  line-height: 1.3;
  text-align: left;
  cursor: grab;
}

#external-events .external-event:active {
  cursor: grabbing;
}

#event-modal .modal-dialog {
  max-width: 640px;
}

@media (max-width: 767.98px) {
  .calendar-shell #calendar {
    min-width: 720px;
  }

  #event-modal .modal-body {
    padding: 18px !important;
  }

  #event-modal .row.mt-2 {
    row-gap: 10px;
  }

  #event-modal .row.mt-2 > .col-6 {
    width: 100%;
    text-align: left !important;
  }

  #event-modal .row.mt-2 .text-end {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }
}

.stats-table-card,
.stats-table-card .card-body,
.stats-table-shell {
  max-width: 100%;
}

.stats-table-shell {
  overflow-x: auto;
  overflow-y: hidden;
}

.stats-table-shell table.dataTable {
  width: 100% !important;
  table-layout: auto;
}

.stats-table-shell .dataTables_wrapper {
  max-width: 100%;
}

.stats-table-shell .dt-buttons,
.stats-table-shell div.dataTables_filter,
.stats-table-shell div.dataTables_info,
.stats-table-shell div.dataTables_paginate {
  max-width: 100%;
}

.stats-table-shell .dt-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stats-table-shell .dt-buttons .btn {
  margin: 0 !important;
}

.stats-table-shell table.dataTable th,
.stats-table-shell table.dataTable td {
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: anywhere;
}

.stats-table-shell .stats-expand-column,
.stats-table-shell td.details-control {
  width: 72px !important;
  min-width: 72px;
  max-width: 72px;
  text-align: center;
  white-space: nowrap;
}

.stats-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #226537;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.stats-expand-btn:hover,
tr.shown .stats-expand-btn {
  border-color: #226537;
  background: #226537;
  color: #ffffff;
}

.stats-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  max-width: 100%;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.stats-details-grid > div {
  min-width: 0;
}

.stats-details-grid strong {
  display: block;
  margin-bottom: 3px;
  color: #334155;
  font-size: 11px;
  text-transform: uppercase;
}

.stats-details-grid span {
  display: block;
  color: #17202a;
  overflow-wrap: anywhere;
}

.stats-detail-row td {
  padding: 12px !important;
  background: #ffffff;
}

@media (max-width: 767.98px) {
  .stats-table-shell {
    margin-right: -4px;
    margin-left: -4px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .stats-table-shell table.dataTable {
    min-width: 760px;
  }
}

.waitlist-toast-container {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1095;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.waitlist-custom-toast {
  border: 1px solid #d8e6dd !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: #17202a !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22), 0 6px 20px rgba(15, 23, 42, 0.12) !important;
}

.waitlist-custom-toast {
  position: relative;
  padding: 14px;
  border-left: 4px solid #226537 !important;
  pointer-events: auto;
  animation:
    waitlist-vacancy-slide-up 0.24s ease-out both,
    waitlist-vacancy-slide-down 0.28s ease-in 6.6s forwards;
}

.waitlist-toast-kicker {
  margin-bottom: 5px;
  color: #226537;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.waitlist-toast-title {
  padding-right: 26px;
  color: #17202a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.waitlist-toast-text,
.waitlist-toast-people {
  margin-top: 9px;
  color: #526071;
  font-size: 12px;
  line-height: 1.45;
}

.waitlist-toast-people strong {
  color: #17202a;
}

.waitlist-toast-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  font-size: 20px;
  line-height: 1;
}

.waitlist-toast-close:hover {
  background: #e2e8f0;
}

.waitlist-toast-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-top: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #226537;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.waitlist-toast-action:hover {
  background: #174b29;
}

@keyframes waitlist-vacancy-slide-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

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

@keyframes waitlist-vacancy-slide-down {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(22px);
  }
}

@media (max-width: 575.98px) {
  .waitlist-toast-container {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

}

.notifications-page-card {
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
}

.notifications-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.notifications-title {
  margin: 0 0 4px;
  color: #17202a;
  font-size: 20px;
  font-weight: 800;
}

.notifications-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.notifications-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.notifications-actions .btn {
  border-radius: 8px;
  font-weight: 750;
}

.notifications-actions .notification-filter.active {
  border-color: #226537;
  background: #226537;
  color: #ffffff;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.notification-group {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.notification-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.notification-group-header h6 {
  margin: 0;
  color: #17202a;
  font-size: 14px;
  font-weight: 850;
}

.notification-group-header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.notification-card-item {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-bottom: 1px solid #edf2f7;
}

.notification-card-item:last-child {
  border-bottom: 0;
}

.notification-card-item.is-new {
  background: #fbfefc;
}

.notification-card-item.is-read {
  background: #ffffff;
}

.notification-card-item.is-resolved {
  background: #f8fafc;
  opacity: 0.82;
}

.notification-card-item.is-resolved .notification-status-pill {
  background: #dcfce7;
  color: #166534;
}

.notification-card-main {
  min-width: 0;
  flex: 1;
}

.notification-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.notification-type-pill,
.notification-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.notification-type-pill {
  background: #eef8f1;
  color: #226537;
}

.notification-status-pill {
  background: #e9eff8;
  color: #334155;
}

.notification-card-item.is-new .notification-status-pill {
  background: #fff4cc;
  color: #8a5d00;
}

.notification-card-main h6 {
  margin: 0 0 7px;
  color: #17202a;
  font-size: 16px;
  font-weight: 850;
}

.notification-card-main p {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
}

.notification-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.notification-detail-grid span {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #17202a;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.notification-detail-grid strong,
.notification-meta strong {
  display: block;
  margin-bottom: 2px;
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.notification-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  color: #475569;
  font-size: 12px;
}

.notification-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
}

.notification-card-actions .btn {
  width: 100%;
  border-radius: 8px;
  font-weight: 800;
}

.notifications-empty {
  padding: 22px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}

.office-expand-column {
  width: 58px !important;
  text-align: center;
}

.office-group-row td {
  vertical-align: middle;
}

.office-group-detail {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.office-subtable {
  min-width: 980px;
  background: #ffffff;
}

.office-subtable th {
  color: #475569;
  font-size: 11px;
  text-transform: uppercase;
}

.office-subtable td,
.office-subtable th {
  vertical-align: middle;
  white-space: nowrap;
}

.office-subtable-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.office-subtable-actions .btn-icon {
  margin: 0 !important;
}

.waitlist-availability {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef8f1;
  color: #226537;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
}

.waitlist-availability.is-empty {
  background: #f1f5f9;
  color: #64748b;
}

@media (max-width: 767.98px) {
  .notifications-toolbar,
  .notification-card-item {
    flex-direction: column;
  }

  .notifications-actions,
  .notification-card-actions {
    width: 100%;
    align-items: stretch;
    justify-content: flex-start;
  }

  .notifications-actions .btn {
    flex: 1 1 auto;
  }
}
