/* Sponsor index is the visual source of truth for DataTables */
:root {
  --saas-dt-radius: 0.65rem;
  --saas-dt-radius-lg: 0.85rem;
  --saas-dt-control-height: 1.95rem;
  --saas-dt-fs-xs: 0.72rem;
  --saas-dt-fs-sm: 0.8rem;
}

.admin-index-page .admin-index-card .card-body {
  padding: 0.9rem 1rem !important;
}

@media (min-width: 992px) {
  .admin-index-page .admin-index-card .card-body {
    padding: 1rem 1.1rem !important;
  }
}

.admin-index-page .admin-index-toolbar {
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: var(--saas-dt-radius);
  background:
    radial-gradient(760px 240px at 12% 16%, rgba(var(--bs-primary-rgb), .10), transparent 56%),
    radial-gradient(760px 240px at 88% 4%, rgba(var(--ats-primary-rgb, 3,148,38), .10), transparent 56%),
    var(--gc-surface, var(--bs-tertiary-bg));
  padding: 0.45rem 0.58rem;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.admin-index-page .admin-index-toolbar-head {
  min-width: 0;
  padding-right: 0.35rem;
  overflow: hidden;
}

.admin-index-page .admin-index-toolbar-right {
  margin-left: auto;
  gap: 0.4rem;
}

.admin-index-page .admin-index-toolbar-eyebrow {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--bs-secondary-color);
  font-weight: 750;
  margin-bottom: 0.12rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-index-page .admin-index-toolbar-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--gc-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-index-page .admin-index-toolbar-search {
  width: 100%;
  max-width: 260px;
  min-width: 180px;
  flex: 1 1 220px;
}

.admin-index-page .admin-index-toolbar .input-group-text,
.admin-index-page .admin-index-toolbar-mobile .input-group-text {
  min-height: var(--saas-dt-control-height);
  border-radius: var(--saas-dt-radius) 0 0 var(--saas-dt-radius);
  background: var(--bs-body-bg);
  color: var(--bs-secondary-color);
  border-color: var(--bs-border-color);
  padding: 0.2rem 0.55rem;
  font-size: var(--saas-dt-fs-sm);
}

.admin-index-page .admin-index-toolbar .form-control,
.admin-index-page .admin-index-toolbar-mobile .form-control {
  min-height: var(--saas-dt-control-height);
  border-radius: 0 var(--saas-dt-radius) var(--saas-dt-radius) 0;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  border-color: var(--bs-border-color);
  font-size: var(--saas-dt-fs-sm);
  padding: 0.28rem 0.6rem;
}

.admin-index-page .admin-index-toolbar .form-control::placeholder,
.admin-index-page .admin-index-toolbar-mobile .form-control::placeholder {
  color: var(--bs-secondary-color);
}

.admin-index-page .admin-index-toolbar .form-control:focus,
.admin-index-page .admin-index-toolbar-mobile .form-control:focus {
  border-color: rgba(var(--bs-primary-rgb), 0.45);
  box-shadow: 0 0 0 0.15rem rgba(var(--bs-primary-rgb), 0.12);
}

.admin-index-page .admin-index-toolbar-meta {
  color: var(--bs-secondary-color);
  font-size: var(--saas-dt-fs-xs);
  white-space: nowrap;
  display: none !important;
}

.admin-index-page .admin-index-toolbar-filters,
.admin-index-page .admin-index-toolbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-index-page .admin-index-toolbar-actions {
  gap: 0.4rem;
}

.admin-index-page .admin-index-toolbar .btn,
.admin-index-page .admin-index-toolbar-mobile .btn {
  --bs-btn-padding-y: 0.3rem;
  --bs-btn-padding-x: 0.58rem;
  --bs-btn-font-size: var(--saas-dt-fs-sm);
  border-radius: 0.58rem;
}

.admin-index-page .admin-index-toolbar-mobile {
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: var(--saas-dt-radius);
  background:
    radial-gradient(680px 210px at 12% 14%, rgba(var(--bs-primary-rgb), .10), transparent 56%),
    radial-gradient(680px 210px at 88% 2%, rgba(var(--ats-primary-rgb, 3,148,38), .10), transparent 56%),
    var(--gc-surface, var(--bs-tertiary-bg));
  padding: 0.58rem;
}

.admin-index-page .admin-index-toolbar-mobile-subtitle {
  color: var(--bs-secondary-color);
  font-size: var(--saas-dt-fs-xs);
  margin-top: 0.2rem;
}

.admin-index-page .admin-index-toolbar-mobile .admin-index-toolbar-meta {
  white-space: normal;
}

.admin-index-page .admin-index-filters {
  padding: 0.72rem !important;
  margin-bottom: 0.62rem !important;
}

.admin-index-page .admin-index-table-wrap {
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: var(--saas-dt-radius);
  overflow: hidden;
  background: var(--bs-body-bg);
  position: relative;
  z-index: 1;
}

.ats-dd-overflow-open {
  overflow: visible !important;
  position: relative;
  z-index: 1085;
}

.ats-dd-overflow-open .dropdown-menu {
  z-index: 1090;
}

.admin-index-page .admin-index-table,
table.dataTable.admin-index-table {
  margin-bottom: 0;
}

.admin-index-page .admin-index-table thead th,
table.dataTable.admin-index-table thead th {
  background: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
  border-bottom-color: var(--bs-border-color-translucent);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.52rem 0.6rem;
  line-height: 1.2;
}

.admin-index-page .admin-index-table tbody td,
table.dataTable.admin-index-table tbody td {
  border-top-color: var(--bs-border-color-translucent);
  padding: 0.52rem 0.6rem;
  font-size: 0.82rem;
  line-height: 1.3;
}

.admin-index-page .admin-index-table tbody tr:nth-child(even),
table.dataTable.admin-index-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--bs-tertiary-bg) 60%, var(--bs-body-bg));
}

.admin-index-page .admin-index-table.table-hover tbody tr:hover,
table.dataTable.admin-index-table.table-hover tbody tr:hover {
  background: color-mix(in srgb, rgba(var(--bs-primary-rgb), 0.1) 52%, var(--bs-body-bg));
}

.admin-index-page .sponsors-row-actions .btn {
  width: 30px;
  height: 30px;
  border-radius: 0.55rem;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
div.dt-container .dt-search input,
div.dt-container .dt-length select {
  min-height: var(--saas-dt-control-height);
  border-radius: var(--saas-dt-radius) !important;
  background: var(--bs-body-bg) !important;
  border-color: var(--bs-border-color) !important;
  color: var(--bs-body-color) !important;
  font-size: var(--saas-dt-fs-sm);
}

.dataTables_wrapper .dataTables_filter input::placeholder,
div.dt-container .dt-search input::placeholder {
  color: var(--bs-secondary-color) !important;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus,
div.dt-container .dt-search input:focus,
div.dt-container .dt-length select:focus {
  border-color: rgba(var(--bs-primary-rgb), 0.45) !important;
  box-shadow: 0 0 0 0.15rem rgba(var(--bs-primary-rgb), 0.12) !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate,
div.dt-container .dt-length,
div.dt-container .dt-info,
div.dt-container .dt-paging {
  margin-top: 0.52rem;
  color: var(--bs-secondary-color);
  font-size: var(--saas-dt-fs-xs);
}

.dataTables_wrapper .dataTables_length label,
div.dt-container .dt-length label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: var(--saas-dt-fs-xs);
}

.dataTables_wrapper .dataTables_info,
div.dt-container .dt-info {
  padding-top: 0 !important;
}

.admin-index-page .dataTables_wrapper .dataTables_length,
.admin-index-page div.dt-container .dt-length {
  text-align: left;
}

.admin-index-page .dataTables_wrapper .dataTables_length select,
.admin-index-page div.dt-container .dt-length select {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-width: 3.4rem;
  padding: 0 0.15rem !important;
  text-align: center;
}

.admin-index-page .dataTables_wrapper .dataTables_length select:focus,
.admin-index-page div.dt-container .dt-length select:focus {
  border: 0 !important;
  box-shadow: none !important;
}

.admin-index-page .dataTables_wrapper .dataTables_filter,
.admin-index-page div.dt-container .dt-search {
  display: none;
}

.admin-index-page .admin-index-dt-footer {
  border-top: 1px solid var(--bs-border-color-translucent);
  padding-top: 0.5rem;
  margin-top: 0.5rem !important;
}

.admin-index-page .admin-index-dt-meta,
.admin-index-page .admin-index-dt-pager {
  margin: 0;
}

.dataTables_wrapper .dataTables_paginate .pagination,
div.dt-container .dt-paging .pagination {
  margin-bottom: 0;
}

.dataTables_wrapper .page-link,
.dataTables_wrapper .paginate_button,
div.dt-container .dt-paging .page-link,
div.dt-container .dt-paging .dt-paging-button {
  border-radius: 0.52rem !important;
  margin: 0 0.05rem;
  min-width: 1.92rem;
  min-height: 1.92rem;
  padding: 0.2rem 0.42rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--saas-dt-fs-sm);
}

.dataTables_wrapper .page-item.active .page-link,
.dataTables_wrapper .paginate_button.current,
div.dt-container .dt-paging .active > .page-link,
div.dt-container .dt-paging .dt-paging-button.current {
  background: rgba(var(--bs-primary-rgb), 0.18);
  border-color: rgba(var(--bs-primary-rgb), 0.35);
  color: var(--bs-body-color);
}

.dataTables_wrapper .page-item.disabled .page-link,
.dataTables_wrapper .paginate_button.disabled,
div.dt-container .dt-paging .disabled > .page-link,
div.dt-container .dt-paging .dt-paging-button.disabled {
  opacity: 0.65;
}

.dataTables_wrapper table.dataTable thead .sorting:before,
.dataTables_wrapper table.dataTable thead .sorting:after,
.dataTables_wrapper table.dataTable thead .sorting_asc:before,
.dataTables_wrapper table.dataTable thead .sorting_asc:after,
.dataTables_wrapper table.dataTable thead .sorting_desc:before,
.dataTables_wrapper table.dataTable thead .sorting_desc:after {
  color: var(--bs-secondary-color);
}

div.dt-container .dt-column-order::before,
div.dt-container .dt-column-order::after {
  color: var(--bs-secondary-color);
}

div.dt-container .dt-ordering-asc .dt-column-order::before,
div.dt-container .dt-ordering-desc .dt-column-order::after {
  color: var(--bs-primary);
}

.dataTables_wrapper .dataTables_processing,
div.dt-container .dt-processing {
  border: 1px solid var(--bs-border-color-translucent) !important;
  border-radius: var(--saas-dt-radius);
  background: color-mix(in srgb, var(--bs-body-bg) 88%, transparent) !important;
  color: var(--bs-body-color) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  padding: 0.42rem 0.78rem;
}

div.dt-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

div.dt-buttons .btn,
div.dt-buttons .dt-button,
button.dt-button,
a.dt-button {
  border-radius: var(--saas-dt-radius) !important;
  min-height: var(--saas-dt-control-height);
  padding: 0.3rem 0.62rem;
  font-size: var(--saas-dt-fs-sm);
}

@media (max-width: 767.98px) {
  .admin-index-page .admin-index-toolbar-right {
    margin-left: 0;
    width: 100%;
  }

  .admin-index-page .admin-index-toolbar-search {
    max-width: none;
    min-width: 0;
    flex: 1 1 100%;
  }

  .admin-index-page .admin-index-toolbar-mobile-actions,
  .admin-index-page .admin-index-toolbar-mobile .admin-index-toolbar-filters {
    width: 100%;
  }

  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter,
  div.dt-container .dt-length,
  div.dt-container .dt-search {
    float: none;
    width: 100%;
    text-align: left;
    margin-top: 0.38rem;
  }

  .dataTables_wrapper .dataTables_filter input,
  .dataTables_wrapper .dataTables_length select,
  div.dt-container .dt-search input,
  div.dt-container .dt-length select {
    width: 100%;
  }

  .dataTables_wrapper .dataTables_paginate,
  div.dt-container .dt-paging {
    overflow-x: auto;
    padding-bottom: 0.08rem;
  }
}

@media (min-width: 992px) {
  .admin-index-page .admin-index-toolbar {
    flex-wrap: nowrap;
  }

  .admin-index-page .admin-index-toolbar-head {
    flex: 1 1 auto;
  }

  .admin-index-page .admin-index-toolbar-right {
    width: auto !important;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .admin-index-page .admin-index-toolbar-search {
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    flex: 0 0 240px;
  }

  .admin-index-page .admin-index-toolbar-actions,
  .admin-index-page .admin-index-toolbar-filters {
    flex-wrap: nowrap;
  }
}
