#admin-page-container {
  margin-top: 20px;
}

/* Indented, slightly smaller sub-rows used throughout the admin stats tables. */
.admin-stats-row {
  font-size: 90%;
}

/* Scoped to #admin-page-container so it out-specifies Bootstrap's .table-condensed > tbody > tr > td padding. */
#admin-page-container .admin-stats-label {
  padding-left: 30px;
}

#clear-play-cache-success {
  color: var(--color-success-200);
}

.admin-label-type-col {
  min-width: 100px;
}

/* API analytics tab (admin only). */
.api-analytics-controls {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.api-analytics-controls label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: normal;
}

#api-analytics-days {
  width: auto;
  display: inline-block;
}

.api-analytics-section {
  margin-top: 24px;
}

/* Spacer that fills the single-label admin page to a natural height at the default zoom. */
.label-page-spacer {
  height: 237px;
}

.table-fixed thead {
  width: 97%;
}

.table-fixed tbody {
  height: 230px;
  overflow-y: auto;
  width: 100%;
}

.table-fixed thead, .table-fixed tbody, .table-fixed tr, .table-fixed td, .table-fixed th {
  display: block;
}

.table-fixed tbody td, .table-fixed thead > tr> th {
  float: left;
  border-bottom-width: 0;
}

#user-table-container {
  overflow-x: scroll;
  transform: rotateX(180deg); /* Moves scrollbar to top for easier navigation. */
  width: 110%;
}

/* stylelint-disable-next-line selector-id-pattern -- DataTables auto-generates this wrapper id from #user-table. */
#user-table_wrapper {
  transform: rotateX(180deg); /* Adding scrollbar flips all text, this flips it back. */
  font-size: 11px;
  min-height: 290px;
}

.stats-grid {
  display: flex;
}

.stats-grid > p {
  flex: 1;
}

.role-dropdown .dropdown-toggle, .role-dropdown li, .team-dropdown .dropdown-toggle, .team-dropdown li {
  font-size: 11px;
}

#admin-percentage-legend {
  display: block;
  position: absolute;
  left: 30px;
  bottom: 10px;
  background: rgb(255 255 255);
  width: 325px;
  font-family: Raleway, sans-serif;
  padding: 6px 6px 0;
}

.legend label, .legend span {
  width: 10%;
  font-size: 8px;
}


.set-flags-container {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.flag-date-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.datepicker {
  margin: 10px;
}

.date-submit {
  margin: 10px;
}

.date-submit-row {
  display: flex;
  justify-content: space-between;
}

#flag-input-holder {
  display:flex;
  flex-direction: column;
  align-items: center;
}

#flag-input-title {
  margin: 0;
  padding-top: 10px;
}

#flag-input-description {
  text-align: left;
}

#flag-button-holder {
  display: flex;
  padding-top: 10px;
}

.flag-button {
  height: 50px;
  width: 179px;
  background-color: var(--color-neutral-white);
  margin-right: 2px;
  border-radius: 5px;
  border-width: 2px;
  border-color: lightgrey;
}

#neighborhood-completion-rate {
  max-height: 700px;
  overflow-y: auto;
}

#user-quality-button {
  margin-top: unset; /* Remove default styling from main.css since this isn't in a table. */
}

/* ── API Analytics tab ── */

.api-analytics-summary-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.api-analytics-card {
  border: 1px solid var(--color-neutral-300);
  border-radius: 6px;
  padding: 16px 24px;
  min-width: 160px;
  text-align: center;
  background: var(--color-neutral-white);
}

.api-analytics-card-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-brand-primary, #006cb4);
}

.api-analytics-card-label {
  font-size: 0.85rem;
  color: var(--color-neutral-600);
  margin-top: 4px;
}

.api-analytics-table {
  max-width: 900px;
}

.api-analytics-bar-outer {
  background: var(--color-neutral-200);
  border-radius: 3px;
  height: 10px;
  min-width: 120px;
}

.api-analytics-bar-inner {
  background: var(--color-brand-primary, #006cb4);
  border-radius: 3px;
  height: 10px;
  min-width: 2px;
}
