.admin-index-page {
  --admin-index-radius: 1rem;
  --admin-index-radius-sm: 0.75rem;
  --index-accent: color-mix(in srgb, var(--ats-primary, #039426) 28%, #064e1f);
  --index-action-bg: color-mix(in srgb, var(--ats-primary, #039426) 26%, #064e1f);
  --index-action-hover-bg: color-mix(in srgb, var(--ats-primary, #039426) 20%, #043a17);
  --index-action-active-bg: color-mix(in srgb, var(--ats-primary, #039426) 16%, #032f12);
  --index-action-fg: #ffffff;
}

html[data-bs-theme="dark"] .admin-index-page {
  --index-accent: color-mix(in srgb, var(--ats-primary, #039426) 46%, #b8f8c5);
  --index-action-bg: color-mix(in srgb, var(--ats-primary, #039426) 30%, #b8f8c5);
  --index-action-hover-bg: color-mix(in srgb, var(--ats-primary, #039426) 38%, #d8ffe1);
  --index-action-active-bg: color-mix(in srgb, var(--ats-primary, #039426) 46%, #eefbf1);
  --index-action-fg: #05170a;
}

.admin-index-header {
  border: 1px solid var(--bs-border-color);
  border-radius: var(--admin-index-radius);
  padding: 1rem 1.1rem;
  background:
    radial-gradient(920px 300px at 8% 0%, rgba(var(--bs-primary-rgb), 0.09), transparent 54%),
    var(--bs-body-bg);
}

.admin-index-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bs-secondary-color);
  font-weight: 700;
}

.admin-index-title {
  color: var(--bs-emphasis-color);
}

.admin-index-subtitle {
  color: var(--bs-secondary-color);
  font-size: 0.93rem;
}

.admin-index-header-actions .btn {
  border-radius: var(--admin-index-radius-sm);
}

.admin-index-card {
  border-radius: var(--admin-index-radius);
}

.admin-index-truncate {
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-index-row-actions-inline .btn,
.admin-index-row-actions-menu .btn {
  border-radius: 0.65rem;
}

.admin-index-row-actions-menu .dropdown-toggle::after {
  display: none;
}

.sponsor-name-cell {
  max-width: 460px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sponsor-type-cell {
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sponsor-type-badge {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sponsors-row-actions .btn {
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sponsors-row-actions .dropdown-toggle::after {
  display: none;
}

.admin-index-facility-thumb {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--bs-border-color);
}

.admin-index-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid var(--bs-border-color);
  vertical-align: middle;
  background: var(--swatch-color, transparent);
}

.admin-index-file-thumb {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--bs-border-color-translucent);
  background: var(--bs-body-bg);
  vertical-align: middle;
}

.admin-index-empty {
  border: 1px dashed var(--bs-border-color);
  border-radius: var(--admin-index-radius-sm);
  background: color-mix(in srgb, var(--bs-tertiary-bg) 80%, var(--bs-body-bg));
}

.admin-index-empty-icon {
  color: var(--bs-secondary-color);
  font-size: 1.25rem;
}

.admin-index-filters {
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: var(--admin-index-radius-sm);
  background: var(--bs-tertiary-bg);
}

.admin-index-page .badge {
  font-weight: 600;
}

@media (max-width: 575.98px) {
  /* Match dashboard-like mobile outer whitespace for index/list shells. */
  .admin-index-page:not(.dashboard-page) {
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
  }
}

@media (max-width: 767.98px) {
  .admin-index-header {
    padding: 0.95rem 1rem;
  }

  .admin-index-truncate {
    max-width: 220px;
  }
}

/* Dashboard (centralized from dashboard.index) */
body[data-page="dashboard"] .dashboard-page {
  --dashboard-shell-gap: 0.45rem;
  --dashboard-card-padding: 0.68rem;
  --dashboard-card-radius: 0.95rem;
  --dashboard-panel-shadow: 0 0.45rem 1rem rgba(15, 23, 42, 0.06);
  --dashboard-table-pad-y: 0.48rem;
  --dashboard-table-pad-x: 0.55rem;
}

html[data-bs-theme="dark"] body[data-page="dashboard"] .dashboard-page {
  --dashboard-panel-shadow: 0 0.9rem 1.8rem rgba(0, 0, 0, 0.28);
}

body[data-page="dashboard"] .ats-main {
  background: transparent !important;
  padding: 0.45rem 0.45rem 0.32rem;
  overflow: visible;
  min-width: 0;
}

body[data-page="dashboard"] .ats-main > .ats-container {
  display: block;
  overflow: visible;
  min-width: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body[data-page="dashboard"] .dashboard-index {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: visible;
}

body[data-page="dashboard"] .dashboard-shell,
body[data-page="dashboard"] .dashboard-wrapper,
body[data-page="dashboard"] .dashboard-content,
body[data-page="dashboard"] .dashboard-main,
body[data-page="dashboard"] .dashboard-main > [class*="col-"],
body[data-page="dashboard"] .dashboard-stack,
body[data-page="dashboard"] .dashboard-card,
body[data-page="dashboard"] .admin-dashboard-grid,
body[data-page="dashboard"] .admin-dashboard-card {
  min-width: 0;
}

body[data-page="dashboard"] .dashboard-shell > .dashboard-wrapper {
  min-width: 0;
}

body[data-page="dashboard"] .dashboard-wrapper {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: var(--dashboard-shell-gap);
  overflow: visible;
}

body[data-page="dashboard"] .dashboard-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  overflow: visible;
}

body[data-page="dashboard"] .dashboard-main {
  flex: 1 1 auto;
  overflow: visible;
}

body[data-page="dashboard"] .dashboard-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body[data-page="dashboard"] .dashboard-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

body[data-page="dashboard"] .dashboard-card .card-body {
  display: flex;
  flex-direction: column;
}

body[data-page="dashboard"] .dashboard-scroll {
  flex: 1 1 auto;
  overflow: visible;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--bs-body-color-rgb), 0.3) rgba(var(--bs-body-color-rgb), 0.06);
}

body[data-page="dashboard"] .dashboard-scroll > .table-responsive,
body[data-page="dashboard"] .dashboard-index .table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--bs-body-color-rgb), 0.3) rgba(var(--bs-body-color-rgb), 0.06);
}

body[data-page="dashboard"] .dashboard-scroll .table {
  margin-bottom: 0;
}

body[data-page="dashboard"] .dashboard-scroll::-webkit-scrollbar,
body[data-page="dashboard"] .dashboard-scroll > .table-responsive::-webkit-scrollbar,
body[data-page="dashboard"] .dashboard-index .table-responsive::-webkit-scrollbar {
  width: 0.55rem;
  height: 0.55rem;
}

body[data-page="dashboard"] .dashboard-scroll::-webkit-scrollbar-track,
body[data-page="dashboard"] .dashboard-scroll > .table-responsive::-webkit-scrollbar-track,
body[data-page="dashboard"] .dashboard-index .table-responsive::-webkit-scrollbar-track {
  background: rgba(var(--bs-body-color-rgb), 0.06);
  border-radius: 999px;
}

body[data-page="dashboard"] .dashboard-scroll::-webkit-scrollbar-thumb,
body[data-page="dashboard"] .dashboard-scroll > .table-responsive::-webkit-scrollbar-thumb,
body[data-page="dashboard"] .dashboard-index .table-responsive::-webkit-scrollbar-thumb {
  background: rgba(var(--bs-body-color-rgb), 0.3);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

html[data-bs-theme="dark"] body[data-page="dashboard"] .dashboard-scroll,
html[data-bs-theme="dark"] body[data-page="dashboard"] .dashboard-scroll > .table-responsive,
html[data-bs-theme="dark"] body[data-page="dashboard"] .dashboard-index .table-responsive {
  scrollbar-color: rgba(255, 255, 255, 0.32) rgba(255, 255, 255, 0.1);
}

html[data-bs-theme="dark"] body[data-page="dashboard"] .dashboard-scroll::-webkit-scrollbar-track,
html[data-bs-theme="dark"] body[data-page="dashboard"] .dashboard-scroll > .table-responsive::-webkit-scrollbar-track,
html[data-bs-theme="dark"] body[data-page="dashboard"] .dashboard-index .table-responsive::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

html[data-bs-theme="dark"] body[data-page="dashboard"] .dashboard-scroll::-webkit-scrollbar-thumb,
html[data-bs-theme="dark"] body[data-page="dashboard"] .dashboard-scroll > .table-responsive::-webkit-scrollbar-thumb,
html[data-bs-theme="dark"] body[data-page="dashboard"] .dashboard-index .table-responsive::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.32);
}

body[data-page="dashboard"] .dashboard-no-shrink {
  flex-shrink: 0;
}

body[data-page="dashboard"] .admin-index-toolbar {
  min-width: 0;
  overflow: visible;
}

body[data-page="dashboard"] .admin-index-toolbar-head {
  flex: 1 1 16rem;
  min-width: 0;
  max-width: 100%;
}

body[data-page="dashboard"] .admin-index-toolbar-right {
  min-width: 0;
}

body[data-page="dashboard"] .dashboard-index .card {
  background:
    linear-gradient(180deg, rgba(var(--bs-body-color-rgb), 0.02) 0%, rgba(var(--bs-body-color-rgb), 0.008) 100%),
    var(--bs-card-bg);
  color: var(--bs-body-color);
  border: 1px solid var(--bs-border-color-translucent) !important;
  border-radius: var(--dashboard-card-radius);
  box-shadow: var(--dashboard-panel-shadow);
}

body[data-page="dashboard"] .dashboard-index .row.g-3,
body[data-page="dashboard"] .dashboard-index .row.g-2 {
  --bs-gutter-x: 0.45rem;
  --bs-gutter-y: 0.45rem;
}

body[data-page="dashboard"] .dashboard-index .card .card-body {
  padding: var(--dashboard-card-padding) !important;
}

body[data-page="dashboard"] .dashboard-index .table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: rgba(var(--bs-body-color-rgb), 0.035);
  --bs-table-border-color: var(--bs-border-color-translucent);
  color: var(--bs-body-color);
}

body[data-page="dashboard"] .dashboard-index .table > :not(caption) > * > * {
  padding: var(--dashboard-table-pad-y) var(--dashboard-table-pad-x);
}

body[data-page="dashboard"] .dashboard-index .table thead th {
  color: var(--bs-secondary-color);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-page="dashboard"] .dashboard-index .table tbody td {
  line-height: 1.25;
}

body[data-page="dashboard"] .dashboard-index .table tbody .small {
  line-height: 1.2;
}

body[data-page="dashboard"] .dashboard-page .dashboard-panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.4rem 0.75rem;
  margin-bottom: 0.55rem;
}

body[data-page="dashboard"] .dashboard-page .dashboard-panel-heading {
  min-width: 0;
  flex: 1 1 auto;
}

body[data-page="dashboard"] .dashboard-page .dashboard-panel-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

body[data-page="dashboard"] .dashboard-page .dashboard-panel-subtitle {
  color: var(--bs-secondary-color);
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 0.12rem 0 0;
}

body[data-page="dashboard"] .dashboard-page .dashboard-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

body[data-page="dashboard"] .dashboard-page .dashboard-metric-box {
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 0.78rem;
  background:
    linear-gradient(180deg, rgba(var(--bs-body-color-rgb), 0.02) 0%, rgba(var(--bs-body-color-rgb), 0.008) 100%),
    var(--bs-card-bg);
  padding: 0.55rem 0.65rem;
  min-width: 0;
}

body[data-page="dashboard"] .dashboard-page .dashboard-metric-box__label {
  color: var(--bs-secondary-color);
  font-size: 0.72rem;
  line-height: 1.15;
  margin-bottom: 0.1rem;
}

body[data-page="dashboard"] .dashboard-page .dashboard-metric-box__value {
  font-weight: 700;
  line-height: 1.15;
}

body[data-page="dashboard"] .dashboard-page .dashboard-inline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  font-size: 0.79rem;
}

body[data-page="dashboard"] .dashboard-page .dashboard-inline-meta__label {
  color: var(--bs-secondary-color);
}

body[data-page="dashboard"] .dashboard-page .dashboard-empty-inline {
  color: var(--bs-secondary-color);
  font-size: 0.82rem;
  padding: 0.85rem 0.5rem;
  text-align: center;
}

body[data-page="dashboard"] .dashboard-page .dashboard-activity-detail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

body[data-page="dashboard"] .dashboard-page .dashboard-activity-detail {
  min-width: 0;
}

body[data-page="dashboard"] .dashboard-page .dashboard-activity-detail__label {
  color: var(--bs-secondary-color);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.1rem;
  text-transform: uppercase;
}

body[data-page="dashboard"] .dashboard-page .dashboard-activity-detail__value {
  font-size: 0.82rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

body[data-page="dashboard"] .dashboard-welcome-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  align-items: center;
  overflow-wrap: anywhere;
}

body[data-page="dashboard"] .admin-index-toolbar .dashboard-welcome-line {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

body[data-page="dashboard"] .admin-index-toolbar .dashboard-welcome-line .fw-semibold,
body[data-page="dashboard"] .admin-index-toolbar .dashboard-welcome-line .text-capitalize {
  white-space: nowrap;
}

body[data-page="dashboard"] .dashboard-stat-icon {
  width: 34px;
  height: 34px;
  background: rgba(var(--bs-primary-rgb), 0.12);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.24);
  flex: 0 0 34px;
}

body[data-page="dashboard"] .dashboard-stat-icon i {
  color: var(--bs-primary) !important;
}

body[data-page="dashboard"] .dashboard-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: 100%;
}

body[data-page="dashboard"] .dashboard-toolbar .dashboard-toolbar-label {
  width: 100%;
  margin: 0;
}

body[data-page="dashboard"] .dashboard-toolbar .btn {
  width: 100%;
  white-space: normal;
  text-align: center;
  justify-content: center;
}

body[data-page="dashboard"] .dashboard-page .btn-primary {
  --bs-btn-color: var(--index-action-fg);
  --bs-btn-bg: var(--index-action-bg);
  --bs-btn-border-color: var(--index-action-bg);
  --bs-btn-hover-color: var(--index-action-fg);
  --bs-btn-hover-bg: var(--index-action-hover-bg);
  --bs-btn-hover-border-color: var(--index-action-hover-bg);
  --bs-btn-active-color: var(--index-action-fg);
  --bs-btn-active-bg: var(--index-action-active-bg);
  --bs-btn-active-border-color: var(--index-action-active-bg);
}

body[data-page="dashboard"] .dashboard-page .btn-primary,
body[data-page="dashboard"] .dashboard-page .btn-primary:hover,
body[data-page="dashboard"] .dashboard-page .btn-primary:focus,
body[data-page="dashboard"] .dashboard-page .btn-primary:active {
  color: var(--bs-btn-color);
}

body[data-page="dashboard"] .dashboard-page .btn-primary {
  background-color: var(--bs-btn-bg);
  border-color: var(--bs-btn-border-color);
}

body[data-page="dashboard"] .dashboard-page .btn-primary:hover,
body[data-page="dashboard"] .dashboard-page .btn-primary:focus {
  background-color: var(--bs-btn-hover-bg);
  border-color: var(--bs-btn-hover-border-color);
}

body[data-page="dashboard"] .dashboard-page .btn-primary:active {
  background-color: var(--bs-btn-active-bg);
  border-color: var(--bs-btn-active-border-color);
}

body[data-page="dashboard"] .dashboard-page .btn-primary i {
  color: currentColor !important;
}

body[data-page="dashboard"] .dashboard-mobile-cards {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body[data-page="dashboard"] .dashboard-mobile-card {
  background: var(--bs-body-bg);
  border-color: var(--bs-border-color-translucent);
}

body[data-page="dashboard"] .dashboard-mobile-card .card-body {
  padding: 0.62rem !important;
}

body[data-page="dashboard"] .dashboard-mobile-header-action {
  width: auto;
}

body[data-page="dashboard"] .dashboard-mobile-chip-actions .btn {
  width: 100%;
}

body[data-page="dashboard"] .dashboard-progress-sm {
  height: 10px;
}

body[data-page="dashboard"] .dashboard-progress {
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  appearance: none;
  display: block;
}

body[data-page="dashboard"] .dashboard-progress::-webkit-progress-bar {
  background: rgba(var(--bs-primary-rgb), 0.16);
  border-radius: 999px;
}

body[data-page="dashboard"] .dashboard-progress::-webkit-progress-value {
  background: var(--bs-primary);
  border-radius: 999px;
}

body[data-page="dashboard"] .dashboard-progress::-moz-progress-bar {
  background: var(--bs-primary);
  border-radius: 999px;
}

body[data-page="dashboard"] .admin-dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

body[data-page="dashboard"] .admin-dashboard-card {
  min-height: 0;
}

/* Keep admin dashboard widgets opaque (light: white, dark: dark surface). */
body[data-page="dashboard"] .dashboard-page .admin-dashboard .card {
  background-color: var(--bs-card-bg) !important;
  color: var(--bs-body-color);
  border-color: var(--bs-border-color-translucent) !important;
}

body[data-page="dashboard"] .admin-overview-scroll .row {
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 576px) {
  body[data-page="dashboard"] .dashboard-index .row.g-3,
  body[data-page="dashboard"] .dashboard-index .row.g-2 {
    --bs-gutter-x: 0.62rem;
    --bs-gutter-y: 0.62rem;
  }

  body[data-page="dashboard"] .dashboard-toolbar-mobile .btn {
    flex: 1 1 calc(50% - 0.25rem);
    width: auto;
  }

  body[data-page="dashboard"] .dashboard-mobile-chip-actions .btn {
    width: auto;
  }
}

@media (max-width: 767.98px) {
  body[data-page="dashboard"] .dashboard-page .dashboard-metric-grid,
  body[data-page="dashboard"] .dashboard-page .dashboard-activity-detail-list {
    grid-template-columns: 1fr;
  }

  body[data-page="dashboard"] .dashboard-page .dashboard-panel-title {
    font-size: 0.92rem;
  }

  body[data-page="dashboard"] .dashboard-page .dashboard-panel-subtitle {
    font-size: 0.75rem;
  }

  body[data-page="dashboard"] .dashboard-mobile-header-action {
    width: 100%;
  }
}

@media (min-width: 768px) {
  body[data-page="dashboard"] .dashboard-toolbar-desktop {
    width: auto;
    justify-content: flex-end !important;
  }

  body[data-page="dashboard"] .dashboard-toolbar-desktop .dashboard-toolbar-label {
    width: auto;
  }

  body[data-page="dashboard"] .dashboard-toolbar-desktop .btn {
    width: auto;
    white-space: nowrap;
  }

  body[data-page="dashboard"] .dashboard-index .card .card-body {
    padding: 0.72rem !important;
  }

  body[data-page="dashboard"] .dashboard-stat-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  body[data-page="dashboard"] .admin-index-toolbar-right {
    width: 100% !important;
    margin-left: 0;
    justify-content: flex-start !important;
  }

  body[data-page="dashboard"] .dashboard-toolbar-desktop {
    width: 100%;
    justify-content: flex-start !important;
    gap: 0.375rem;
  }

  body[data-page="dashboard"] .dashboard-toolbar-desktop .dashboard-toolbar-label {
    width: 100%;
  }

  body[data-page="dashboard"] .dashboard-toolbar-desktop .btn {
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  body[data-page="dashboard"] .ats-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 7px 9px 5px 7px;
  }

  body[data-page="dashboard"] .ats-main > .ats-container {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding-left: 7px !important;
    padding-right: 9px !important;
  }

  body[data-page="dashboard"] .dashboard-index,
  body[data-page="dashboard"] .dashboard-shell,
  body[data-page="dashboard"] .dashboard-wrapper,
  body[data-page="dashboard"] .dashboard-content,
  body[data-page="dashboard"] .dashboard-main,
  body[data-page="dashboard"] .dashboard-main > [class*="col-"],
  body[data-page="dashboard"] .dashboard-stack,
  body[data-page="dashboard"] .dashboard-card,
  body[data-page="dashboard"] .dashboard-scroll,
  body[data-page="dashboard"] .admin-dashboard-grid,
  body[data-page="dashboard"] .admin-dashboard-card {
    min-height: 0;
  }

  body[data-page="dashboard"] .dashboard-index {
    height: 100%;
    overflow: hidden;
  }

  body[data-page="dashboard"] .dashboard-wrapper,
  body[data-page="dashboard"] .dashboard-content,
  body[data-page="dashboard"] .dashboard-main {
    overflow: hidden;
  }

  body[data-page="dashboard"] .dashboard-scroll {
    overflow: auto;
  }

  body[data-page="dashboard"] .dashboard-scroll > .table-responsive {
    max-height: 100%;
    overflow: auto;
  }

  body[data-page="dashboard"] .admin-dashboard-grid {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: 100%;
    max-height: 560px;
  }

  body[data-page="dashboard"] .admin-recent-system-scroll,
  body[data-page="dashboard"] .admin-batch-performance-scroll,
  body[data-page="dashboard"] .admin-most-absent-scroll {
    max-height: 260px;
    overflow: auto;
  }

  body[data-page="dashboard"] .admin-overview-scroll {
    overflow-x: hidden;
    overflow-y: auto;
  }
}

/* Directory dashboard index pages */
.directory-index-page {
  --directory-green: var(--ats-primary, #039426);
  --directory-green-rgb: var(--ats-primary-rgb, 3, 148, 38);
  --directory-accent: color-mix(in srgb, var(--directory-green) 28%, #064e1f);
  --directory-action-bg: color-mix(in srgb, var(--directory-green) 26%, #064e1f);
  --directory-action-hover-bg: color-mix(in srgb, var(--directory-green) 20%, #043a17);
  --directory-action-active-bg: color-mix(in srgb, var(--directory-green) 16%, #032f12);
  --directory-action-fg: #ffffff;
  --directory-border: var(--bs-border-color-translucent);
  --directory-radius: 0.5rem;
  --directory-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.06);
  --directory-card-shadow: 0 0.55rem 1.35rem rgba(15, 23, 42, 0.07);
  overflow-x: clip;
  min-width: 0;
}

.directory-index-page .directory-shell {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
  padding: 0.9rem 0;
}

.directory-index-page .directory-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.directory-index-page .directory-breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
  margin-bottom: 0.35rem;
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.directory-index-page .directory-title {
  margin: 0;
  color: var(--directory-accent);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.05;
}

.directory-index-page .directory-subtitle {
  margin: 0.42rem 0 0;
  color: var(--bs-secondary-color);
  font-size: 0.95rem;
  line-height: 1.45;
}

.directory-index-page .directory-header-controls,
.directory-index-page .directory-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  min-width: 0;
}

.directory-index-page .directory-search {
  min-width: 0;
}

.directory-index-page .directory-search .input-group-text,
.directory-index-page .directory-search .form-control,
.directory-index-page .directory-filter-bar .form-select,
.directory-index-page .directory-filter-bar .form-control,
.directory-index-page .directory-header-select {
  min-height: 2.55rem;
  border-color: var(--bs-border-color);
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  box-shadow: none;
}

.directory-index-page .directory-search .input-group-text {
  border-radius: var(--directory-radius) 0 0 var(--directory-radius);
  color: var(--bs-secondary-color);
}

.directory-index-page .directory-search .form-control {
  border-radius: 0 var(--directory-radius) var(--directory-radius) 0;
  font-size: 0.9rem;
}

.directory-index-page .directory-search .form-control:focus,
.directory-index-page .directory-filter-bar .form-select:focus,
.directory-index-page .directory-filter-bar .form-control:focus,
.directory-index-page .directory-header-select:focus {
  border-color: rgba(var(--directory-green-rgb), 0.42);
  box-shadow: 0 0 0 0.15rem rgba(var(--directory-green-rgb), 0.12);
}

.directory-index-page .directory-action-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.directory-index-page .directory-action-btn,
.directory-index-page .directory-primary-btn,
.directory-index-page .directory-toggle-btn {
  min-height: 2.55rem;
  border-radius: var(--directory-radius);
  font-weight: 750;
  white-space: nowrap;
}

.directory-index-page .directory-primary-btn {
  --bs-btn-color: var(--directory-action-fg);
  --bs-btn-bg: var(--directory-action-bg);
  --bs-btn-border-color: var(--directory-action-bg);
  --bs-btn-hover-color: var(--directory-action-fg);
  --bs-btn-hover-bg: var(--directory-action-hover-bg);
  --bs-btn-hover-border-color: var(--directory-action-hover-bg);
  --bs-btn-active-color: var(--directory-action-fg);
  --bs-btn-active-bg: var(--directory-action-active-bg);
  --bs-btn-active-border-color: var(--directory-action-active-bg);
  box-shadow: 0 0.45rem 1rem rgba(var(--directory-green-rgb), 0.18);
}

.directory-index-page .directory-primary-btn,
.directory-dashboard-page .directory-primary-btn,
.directory-index-page .directory-primary-btn:hover,
.directory-index-page .directory-primary-btn:focus,
.directory-index-page .directory-primary-btn:active,
.directory-dashboard-page .directory-primary-btn:hover,
.directory-dashboard-page .directory-primary-btn:focus,
.directory-dashboard-page .directory-primary-btn:active {
  color: var(--bs-btn-color);
}

.directory-index-page .directory-primary-btn,
.directory-dashboard-page .directory-primary-btn {
  background-color: var(--bs-btn-bg);
  border-color: var(--bs-btn-border-color);
}

.directory-index-page .directory-primary-btn:hover,
.directory-index-page .directory-primary-btn:focus,
.directory-dashboard-page .directory-primary-btn:hover,
.directory-dashboard-page .directory-primary-btn:focus {
  background-color: var(--bs-btn-hover-bg);
  border-color: var(--bs-btn-hover-border-color);
}

.directory-index-page .directory-primary-btn:active,
.directory-dashboard-page .directory-primary-btn:active {
  background-color: var(--bs-btn-active-bg);
  border-color: var(--bs-btn-active-border-color);
}

.directory-index-page .directory-primary-btn i {
  color: currentColor !important;
}

.directory-index-page .directory-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.directory-index-page .directory-stat-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  min-height: 6rem;
  padding: 0.85rem;
  border: 1px solid var(--directory-border);
  border-radius: var(--directory-radius);
  background: var(--bs-body-bg);
  box-shadow: var(--directory-shadow);
}

.directory-index-page .directory-stat-icon {
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.25rem;
}

.directory-index-page .directory-stat-icon--green,
.directory-index-page .directory-card-icon--green {
  color: #078b25;
  background: rgba(25, 135, 84, 0.14);
}

.directory-index-page .directory-stat-icon--blue,
.directory-index-page .directory-card-icon--blue {
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.14);
}

.directory-index-page .directory-stat-icon--yellow,
.directory-index-page .directory-card-icon--yellow {
  color: #b77900;
  background: rgba(255, 193, 7, 0.2);
}

.directory-index-page .directory-stat-icon--red,
.directory-index-page .directory-card-icon--red {
  color: #b02a37;
  background: rgba(220, 53, 69, 0.14);
}

.directory-index-page .directory-stat-icon--purple,
.directory-index-page .directory-card-icon--purple {
  color: #6f42c1;
  background: rgba(111, 66, 193, 0.15);
}

.directory-index-page .directory-stat-icon--teal,
.directory-index-page .directory-card-icon--teal {
  color: #0f8f84;
  background: rgba(13, 202, 240, 0.16);
}

.directory-index-page .directory-stat-label {
  color: var(--bs-body-color);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.directory-index-page .directory-stat-value {
  display: block;
  margin-top: 0.12rem;
  color: var(--bs-emphasis-color);
  font-size: 1.5rem;
  font-weight: 850;
  line-height: 1.1;
}

.directory-index-page .directory-stat-note {
  display: block;
  margin-top: 0.2rem;
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
}

.directory-index-page .directory-filter-bar,
.directory-index-page .directory-table-card,
.directory-index-page .directory-view-card {
  border: 1px solid var(--directory-border);
  border-radius: var(--directory-radius);
  background: var(--bs-body-bg);
  box-shadow: var(--directory-shadow);
}

.directory-index-page .directory-filter-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 0.85rem;
}

.directory-index-page .directory-filter-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
  font-weight: 750;
}

.directory-index-page .directory-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: end;
}

.directory-index-page .directory-viewbar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
}

.directory-index-page .directory-view-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem;
}

.directory-index-page .directory-view-label {
  margin: 0;
  color: var(--bs-emphasis-color);
  font-size: 0.88rem;
  font-weight: 800;
}

.directory-index-page .directory-view-toggle {
  display: inline-flex;
  align-items: center;
  width: 100%;
  padding: 0.18rem;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--directory-radius);
  background: var(--bs-body-bg);
}

.directory-index-page .directory-toggle-btn {
  flex: 1 1 0;
  min-height: 2.15rem;
  border: 0;
  background: transparent;
  color: var(--bs-body-color);
  box-shadow: none;
}

.directory-index-page .directory-toggle-btn:hover,
.directory-index-page .directory-toggle-btn:focus {
  color: var(--bs-emphasis-color);
  background: rgba(var(--directory-green-rgb), 0.08);
}

.directory-index-page .directory-toggle-btn.active {
  color: var(--directory-accent);
  background: rgba(var(--directory-green-rgb), 0.1);
  box-shadow: inset 0 0 0 1px rgba(var(--directory-green-rgb), 0.22);
}

.directory-index-page .directory-results-summary {
  display: flex;
  align-items: center;
  min-height: 2.2rem;
  color: var(--bs-secondary-color);
  font-size: 0.84rem;
  line-height: 1.35;
}

.directory-index-page .directory-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  min-width: 0;
}

.directory-index-page .directory-record-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  overflow: visible;
  border: 1px solid var(--directory-border);
  border-radius: var(--directory-radius);
  background: var(--bs-body-bg);
  box-shadow: var(--directory-card-shadow);
}

.directory-index-page .directory-record-card.dropdown-open {
  z-index: 2000;
}

.directory-index-page .directory-record-card__media {
  position: relative;
  aspect-ratio: 16 / 6.5;
  min-height: 7.25rem;
  overflow: hidden;
  border-radius: var(--directory-radius) var(--directory-radius) 0 0;
  background: color-mix(in srgb, var(--bs-tertiary-bg) 86%, var(--bs-body-bg));
}

.directory-index-page .directory-record-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.directory-index-page .directory-record-card__status {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
}

.directory-index-page .directory-record-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  flex: 1 1 auto;
  padding: 0.9rem;
}

.directory-index-page .directory-record-card__head {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  min-width: 0;
}

.directory-index-page .directory-card-icon {
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.18rem;
}

.directory-index-page .directory-card-title {
  margin: 0;
  color: var(--bs-emphasis-color);
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.25;
}

.directory-index-page .directory-card-subtitle {
  margin: 0.22rem 0 0;
  color: var(--bs-secondary-color);
  font-size: 0.82rem;
  line-height: 1.35;
}

.directory-index-page .directory-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--directory-border);
}

.directory-index-page .directory-meta-item {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.2rem 0.45rem;
  min-width: 0;
  align-items: start;
}

.directory-index-page .directory-meta-item i {
  margin-top: 0.12rem;
  color: var(--directory-accent);
  font-size: 0.82rem;
}

.directory-index-page .directory-meta-item strong,
.directory-index-page .directory-meta-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-index-page .directory-meta-item strong {
  color: var(--bs-emphasis-color);
  font-size: 0.82rem;
  line-height: 1.2;
}

.directory-index-page .directory-meta-item span {
  grid-column: 2;
  color: var(--bs-secondary-color);
  font-size: 0.68rem;
  line-height: 1.15;
}

.directory-index-page .directory-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.72rem 0.9rem;
  border-top: 1px solid var(--directory-border);
  background: color-mix(in srgb, var(--bs-tertiary-bg) 58%, transparent);
  border-radius: 0 0 var(--directory-radius) var(--directory-radius);
}

.directory-index-page .directory-card-link {
  color: var(--directory-accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.directory-index-page .directory-card-link:hover,
.directory-index-page .directory-card-link:focus {
  text-decoration: underline;
}

.directory-index-page .directory-table-card {
  overflow: hidden;
  min-width: 0;
}

.directory-index-page .directory-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.directory-index-page .directory-table {
  min-width: 940px;
}

.directory-index-page .directory-table thead th {
  padding: 0.72rem 0.85rem;
  color: var(--bs-secondary-color);
  background: color-mix(in srgb, var(--bs-tertiary-bg) 72%, var(--bs-body-bg));
  border-bottom: 1px solid var(--directory-border);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.directory-index-page .directory-table tbody td {
  padding: 0.78rem 0.85rem;
  border-top-color: var(--directory-border);
  color: var(--bs-body-color);
  font-size: 0.86rem;
  vertical-align: middle;
}

.directory-index-page .directory-table.table-hover tbody tr:hover {
  background: color-mix(in srgb, rgba(var(--directory-green-rgb), 0.08) 60%, var(--bs-body-bg));
}

.directory-index-page .directory-row-title {
  color: var(--bs-emphasis-color);
  font-weight: 850;
  line-height: 1.25;
}

.directory-index-page .directory-row-subtitle {
  color: var(--bs-secondary-color);
  font-size: 0.78rem;
  line-height: 1.45;
}

.directory-index-page .directory-muted {
  color: var(--bs-secondary-color);
}

.directory-index-page .directory-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.28rem 0.58rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.directory-index-page .directory-badge--success {
  color: #087b21;
  background: rgba(25, 135, 84, 0.12);
  border-color: rgba(25, 135, 84, 0.24);
}

.directory-index-page .directory-badge--info {
  color: #0870a8;
  background: rgba(13, 202, 240, 0.16);
  border-color: rgba(13, 202, 240, 0.34);
}

.directory-index-page .directory-badge--warning {
  color: #946200;
  background: rgba(255, 193, 7, 0.16);
  border-color: rgba(255, 193, 7, 0.36);
}

.directory-index-page .directory-badge--danger {
  color: #b02a37;
  background: rgba(220, 53, 69, 0.13);
  border-color: rgba(220, 53, 69, 0.28);
}

.directory-index-page .directory-badge--neutral {
  color: var(--bs-secondary-color);
  background: var(--bs-tertiary-bg);
  border-color: var(--bs-border-color);
}

.directory-index-page .directory-row-actions .btn,
.directory-index-page .directory-card-actions .btn {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--directory-radius);
}

.directory-index-page .directory-row-actions .dropdown-toggle::after,
.directory-index-page .directory-card-actions .dropdown-toggle::after {
  display: none;
}

.directory-index-page .directory-thumb {
  width: 5.25rem;
  height: 3.25rem;
  object-fit: cover;
  border: 1px solid var(--directory-border);
  border-radius: var(--directory-radius);
  background: var(--bs-tertiary-bg);
}

.directory-index-page .directory-pagination {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem;
  border-top: 1px solid var(--directory-border);
}

.directory-index-page .directory-pagination .pagination,
.directory-index-page .dataTables_wrapper .pagination,
.directory-index-page div.dt-container .pagination {
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0;
}

.directory-index-page .directory-pagination .page-link,
.directory-index-page .dataTables_wrapper .page-link,
.directory-index-page div.dt-container .page-link {
  min-width: 2.25rem;
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--directory-radius);
  color: var(--bs-body-color);
  border-color: var(--bs-border-color);
}

.directory-index-page .directory-pagination .page-item.active .page-link,
.directory-index-page .dataTables_wrapper .page-item.active .page-link,
.directory-index-page div.dt-container .page-item.active .page-link {
  color: var(--directory-accent);
  background: rgba(var(--directory-green-rgb), 0.12);
  border-color: rgba(var(--directory-green-rgb), 0.35);
}

.directory-index-page .admin-index-dt-footer {
  padding: 0.85rem;
  margin-top: 0 !important;
  border-top: 1px solid var(--directory-border);
}

.directory-index-page .form-select-sm {
  border-radius: var(--directory-radius);
}

.directory-index-page .min-w-0 {
  min-width: 0;
}

.directory-index-page.directory-view-cards .directory-list-panel .directory-table-wrap,
.directory-index-page.directory-view-cards .directory-list-panel .admin-index-dt-table {
  display: none;
}

.directory-index-page.directory-view-list .directory-card-grid {
  display: none;
}

.directory-index-page.directory-view-list .directory-list-panel {
  display: block;
}

html[data-bs-theme="dark"] .directory-index-page {
  --directory-accent: color-mix(in srgb, var(--directory-green) 46%, #b8f8c5);
  --directory-action-bg: color-mix(in srgb, var(--directory-green) 30%, #b8f8c5);
  --directory-action-hover-bg: color-mix(in srgb, var(--directory-green) 38%, #d8ffe1);
  --directory-action-active-bg: color-mix(in srgb, var(--directory-green) 46%, #eefbf1);
  --directory-action-fg: #05170a;
  --directory-shadow: 0 0.65rem 1.35rem rgba(0, 0, 0, 0.25);
  --directory-card-shadow: 0 0.9rem 1.8rem rgba(0, 0, 0, 0.28);
}

html[data-bs-theme="dark"] .directory-index-page .directory-stat-icon--green,
html[data-bs-theme="dark"] .directory-index-page .directory-card-icon--green,
html[data-bs-theme="dark"] .directory-dashboard-page .directory-stat-icon--green,
html[data-bs-theme="dark"] .directory-dashboard-page .directory-avatar {
  color: #7ee79a;
  background: rgba(25, 135, 84, 0.24);
}

html[data-bs-theme="dark"] .directory-index-page .directory-stat-icon--blue,
html[data-bs-theme="dark"] .directory-index-page .directory-card-icon--blue,
html[data-bs-theme="dark"] .directory-dashboard-page .directory-stat-icon--blue {
  color: #8ab4ff;
  background: rgba(13, 110, 253, 0.22);
}

html[data-bs-theme="dark"] .directory-index-page .directory-stat-icon--yellow,
html[data-bs-theme="dark"] .directory-index-page .directory-card-icon--yellow,
html[data-bs-theme="dark"] .directory-dashboard-page .directory-stat-icon--yellow {
  color: #ffd86a;
  background: rgba(255, 193, 7, 0.2);
}

html[data-bs-theme="dark"] .directory-index-page .directory-stat-icon--red,
html[data-bs-theme="dark"] .directory-index-page .directory-card-icon--red,
html[data-bs-theme="dark"] .directory-dashboard-page .directory-stat-icon--red {
  color: #ff9aa7;
  background: rgba(220, 53, 69, 0.2);
}

html[data-bs-theme="dark"] .directory-index-page .directory-stat-icon--purple,
html[data-bs-theme="dark"] .directory-index-page .directory-card-icon--purple,
html[data-bs-theme="dark"] .directory-dashboard-page .directory-stat-icon--purple {
  color: #c5a7ff;
  background: rgba(111, 66, 193, 0.24);
}

html[data-bs-theme="dark"] .directory-index-page .directory-stat-icon--teal,
html[data-bs-theme="dark"] .directory-index-page .directory-card-icon--teal,
html[data-bs-theme="dark"] .directory-dashboard-page .directory-stat-icon--teal {
  color: #8de8df;
  background: rgba(13, 202, 240, 0.18);
}

html[data-bs-theme="dark"] .directory-index-page .directory-badge--success,
html[data-bs-theme="dark"] .directory-dashboard-page .directory-badge--success {
  color: var(--bs-success-text-emphasis, #75b798);
  background: rgba(var(--bs-success-rgb), 0.18);
  border-color: rgba(var(--bs-success-rgb), 0.3);
}

html[data-bs-theme="dark"] .directory-index-page .directory-badge--info,
html[data-bs-theme="dark"] .directory-dashboard-page .directory-badge--info {
  color: var(--bs-info-text-emphasis, #6edff6);
  background: rgba(var(--bs-info-rgb), 0.16);
  border-color: rgba(var(--bs-info-rgb), 0.28);
}

html[data-bs-theme="dark"] .directory-index-page .directory-badge--warning,
html[data-bs-theme="dark"] .directory-dashboard-page .directory-badge--warning {
  color: var(--bs-warning-text-emphasis, #ffda6a);
  background: rgba(var(--bs-warning-rgb), 0.18);
  border-color: rgba(var(--bs-warning-rgb), 0.32);
}

html[data-bs-theme="dark"] .directory-index-page .directory-badge--danger,
html[data-bs-theme="dark"] .directory-dashboard-page .directory-badge--danger {
  color: var(--bs-danger-text-emphasis, #ea868f);
  background: rgba(var(--bs-danger-rgb), 0.17);
  border-color: rgba(var(--bs-danger-rgb), 0.3);
}

html[data-bs-theme="dark"] .directory-index-page .directory-badge--purple,
html[data-bs-theme="dark"] .directory-dashboard-page .directory-badge--purple {
  color: #c5a7ff;
  background: rgba(111, 66, 193, 0.22);
  border-color: rgba(111, 66, 193, 0.36);
}

html[data-bs-theme="dark"] .directory-index-page .directory-badge--neutral,
html[data-bs-theme="dark"] .directory-dashboard-page .directory-badge--neutral {
  color: var(--bs-secondary-color);
  background: color-mix(in srgb, var(--bs-tertiary-bg) 74%, var(--bs-body-bg));
  border-color: var(--bs-border-color);
}

body[data-page="dashboard"] .dashboard-page .btn-outline-secondary,
.directory-index-page .btn-outline-secondary,
.directory-dashboard-page .btn-outline-secondary {
  --bs-btn-color: var(--bs-body-color);
  --bs-btn-bg: var(--bs-body-bg);
  --bs-btn-border-color: var(--bs-border-color);
  --bs-btn-hover-color: var(--bs-emphasis-color);
  --bs-btn-hover-bg: var(--bs-tertiary-bg);
  --bs-btn-hover-border-color: var(--bs-border-color);
  --bs-btn-active-color: var(--bs-emphasis-color);
  --bs-btn-active-bg: var(--bs-secondary-bg);
  --bs-btn-active-border-color: var(--bs-border-color);
  --bs-btn-disabled-color: var(--bs-secondary-color);
  --bs-btn-disabled-bg: var(--bs-tertiary-bg);
  --bs-btn-disabled-border-color: var(--bs-border-color);
  opacity: 1;
}

body[data-page="dashboard"] .dashboard-page .btn-outline-secondary,
.directory-index-page .btn-outline-secondary,
.directory-dashboard-page .btn-outline-secondary {
  color: var(--bs-btn-color);
  background-color: var(--bs-btn-bg);
  border-color: var(--bs-btn-border-color);
}

body[data-page="dashboard"] .dashboard-page .btn-outline-secondary:hover,
body[data-page="dashboard"] .dashboard-page .btn-outline-secondary:focus,
.directory-index-page .btn-outline-secondary:hover,
.directory-index-page .btn-outline-secondary:focus,
.directory-dashboard-page .btn-outline-secondary:hover,
.directory-dashboard-page .btn-outline-secondary:focus {
  color: var(--bs-btn-hover-color);
  background-color: var(--bs-btn-hover-bg);
  border-color: var(--bs-btn-hover-border-color);
}

body[data-page="dashboard"] .dashboard-page .btn-link,
.directory-index-page .btn-link,
.directory-dashboard-page .btn-link {
  --bs-btn-color: var(--bs-body-color);
  --bs-btn-hover-color: var(--bs-emphasis-color);
  --bs-btn-active-color: var(--bs-emphasis-color);
  --bs-btn-disabled-color: var(--bs-secondary-color);
  color: var(--bs-btn-color);
  background-color: transparent;
  border-color: transparent;
}

body[data-page="dashboard"] .dashboard-page .btn-link:hover,
body[data-page="dashboard"] .dashboard-page .btn-link:focus,
.directory-index-page .btn-link:hover,
.directory-index-page .btn-link:focus,
.directory-dashboard-page .btn-link:hover,
.directory-dashboard-page .btn-link:focus {
  color: var(--bs-btn-hover-color);
  background-color: var(--bs-tertiary-bg);
  border-color: transparent;
}

body[data-page="dashboard"] .dashboard-page .btn-outline-secondary i,
.directory-index-page .btn-outline-secondary i,
.directory-dashboard-page .btn-outline-secondary i,
body[data-page="dashboard"] .dashboard-page .btn-link i,
.directory-index-page .btn-link i,
.directory-dashboard-page .btn-link i {
  color: currentColor;
}

body[data-page="dashboard"] .dashboard-page .dropdown-menu,
.directory-index-page .dropdown-menu,
.directory-dashboard-page .dropdown-menu {
  background-color: var(--bs-dropdown-bg, var(--bs-body-bg));
  border-color: var(--bs-dropdown-border-color, var(--bs-border-color));
}

body[data-page="dashboard"] .dashboard-page .dropdown-item,
.directory-index-page .dropdown-item,
.directory-dashboard-page .dropdown-item {
  color: var(--bs-dropdown-link-color, var(--bs-body-color));
}

body[data-page="dashboard"] .dashboard-page .dropdown-item:hover,
body[data-page="dashboard"] .dashboard-page .dropdown-item:focus,
.directory-index-page .dropdown-item:hover,
.directory-index-page .dropdown-item:focus,
.directory-dashboard-page .dropdown-item:hover,
.directory-dashboard-page .dropdown-item:focus {
  color: var(--bs-dropdown-link-hover-color, var(--bs-emphasis-color));
  background-color: var(--bs-dropdown-link-hover-bg, var(--bs-tertiary-bg));
}

body[data-page="dashboard"] .dashboard-page .dropdown-item.text-danger,
.directory-index-page .dropdown-item.text-danger,
.directory-dashboard-page .dropdown-item.text-danger {
  color: var(--bs-danger-text-emphasis, var(--bs-danger)) !important;
}

body[data-page="dashboard"] .dashboard-page .text-warning,
.directory-index-page .text-warning,
.directory-dashboard-page .text-warning {
  color: var(--bs-warning-text-emphasis, var(--bs-warning)) !important;
}

@media (min-width: 576px) {
  .directory-index-page .directory-action-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .directory-index-page .directory-view-toggle {
    width: auto;
  }

  .directory-index-page .directory-toggle-btn {
    flex: 0 0 auto;
    min-width: 5.6rem;
  }

  .directory-index-page .directory-filter-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-index-page .directory-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .directory-index-page .directory-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-index-page .directory-pagination {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  .directory-index-page .directory-page-header {
    grid-template-columns: minmax(14rem, 1fr) minmax(28rem, auto);
    align-items: start;
  }

  .directory-index-page .directory-header-controls,
  .directory-index-page .directory-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
  }

  .directory-index-page .directory-search {
    flex: 1 1 20rem;
    max-width: 27rem;
  }

  .directory-index-page .directory-viewbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .sectors-index-page .directory-action-group {
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: max-content;
  }

  .sectors-index-page .directory-header-select {
    flex: 0 0 auto;
    min-width: 8.5rem;
    width: auto;
  }

  .sectors-index-page .directory-primary-btn {
    flex: 0 0 auto;
    width: auto;
  }

  .directory-index-page .directory-results-summary {
    justify-content: flex-end;
    text-align: right;
  }

  .directory-index-page .directory-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .directory-index-page .directory-filter-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
  }

  .directory-index-page .directory-filter-actions {
    grid-column: auto;
    flex-wrap: nowrap;
  }

  .directory-index-page .directory-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .directory-index-page .directory-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .directory-index-page .directory-stats-grid--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .directory-index-page .directory-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .directory-index-page {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  .directory-index-page .directory-action-btn,
  .directory-index-page .directory-primary-btn {
    width: 100%;
    justify-content: center;
  }

  .directory-index-page .directory-stat-card {
    min-height: 5.5rem;
  }
}
