/* Opportunities Specific */
.ranking {
  border: 1px solid var(--theme-text-10);
}

.sps-table .header .icon {
  background: var(--theme-text-contrast);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  height: 40px;
  aspect-ratio: 1;
  border: 1px solid var(--theme-text-10);
  padding: 0.55rem;
  font-size: 0.85rem;
}

.sps-table .header .icon .logo {
  height: 100%;
  aspect-ratio: 1;
}

.table .header h4 {
  font-size: 0.7rem;
  font-weight: bolder;
}

.ranking .table th,
.ranking .table td {
  padding: 1.2rem 1rem;
  font-size: 8pt;   /* smaller by default */
}

.ranking .table td .chart {
  width: 60px;
  aspect-ratio: 1;
  margin: auto;
}

.ranking .table td .badge {
  min-width: 76px;
  height: 14px;
  font-size: 8pt;
  padding: 10px;
}

.ranking .table td a {
  font-size: 7pt;
}

.sps-table-responsive table td:nth-child(4),
.sps-table-responsive table th:nth-child(4),
.sps-table-responsive table td:nth-child(5),
.sps-table-responsive table th:nth-child(5),
.sps-table-responsive table td:nth-child(6),
.sps-table-responsive table th:nth-child(6) {
  text-align: center;
}

/* Opportunities specific variables */
.opportunities {
  --sp-gap: 8px;
  --sp-logo-size: 45px;
  --sp-logo-radius: 8px;
  --sp-logo-border: var(--theme-text-10);
  --sp-title-size: 0.875rem;
  --sp-meta-size: 0.65rem;
  --sp-logo-padding: 5px;
  --sp-logo-shadow: none;
}

/* Filter Catalog */
.SPS-filter-catalog {
  position: sticky;
  top: 90px;
  height: fit-content;
}

.SPS-filter-catalog .apply-filter .radio-group,
.SPS-filter-catalog .apply-filter .filter {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.SPS-filter-catalog .accordion {
  --surface-bg: var(--theme-bg-400);
  --surface-border: var(--theme-text-10);
  --text-primary: var(--theme-text-100);
  --surface-bg-hover: var(--theme-bg-450);
  --text-hover: var(--theme-text-100);
  --surface-bg-active: var(--theme-bg-400);
}

.SPS-filter-catalog .accordion .accordion-header[aria-expanded="true"] {
  border-radius: 8px 8px 0 0;
}

.SPS-filter-catalog .expandable-item .expandable-panel {
  background: var(--theme-bg-400);
  box-shadow: inset 0 0 0 1.5px var(--surface-border);
  border-radius: 0 0 8px 8px;
  padding: 0;
}

.SPS-filter-catalog .accordion-item:not(:last-child) {
  margin-bottom: 10px;
}

/* Pagination specific */
.pagination-wrapper {
  background: var(--theme-color-a5);
}
