/* ============================================================================
   SRV Reporting - styling
   Resynced with the VIS Research app design system (research/www/styles.css):
   navy #0b233f brand · light-grey #f4f5f7 canvas · white sticky navbar with
   uppercase pill tabs (black active pill) · dark navy hero-strip per tab ·
   white cards on grey · vivid saturated status tags · navy-highlight selectize
   and radio-pill groups. SRV-specific components are layered at the foot.
   ============================================================================ */

/* ── Reset & base ──────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

body {
  background: #f4f5f7;
  color: #111;
  -webkit-font-smoothing: antialiased;
}

/* navbarPage wraps the tab body in a Bootstrap .container-fluid whose default
   gutter padding creates a grey frame around the hero. Strip it so the hero
   sits flush below the navbar and spans full width; inner sections carry their
   own horizontal padding. Scope to the page-level container only. */
.navbar + .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

h3, h4, h5 { font-weight: 700; }
h6 { font-size: 10px; font-weight: 600; }

/* ── Navbar ────────────────────────────────────────────────────────────────── */

.navbar {
  background: #fff !important;
  border-bottom: 1px solid #e8e8e8;
  padding: 0 32px;
  min-height: 52px;
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 1030;
  margin-bottom: 0;
}

.navbar-brand {
  color: #111 !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0;
  display: flex !important;
  align-items: center;
  height: 52px;
}

.navbar-brand:hover { color: #111 !important; }

.navbar-nav { gap: 12px; }

.nav-link,
.navbar-nav > li > a {
  color: #555 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px !important;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover,
.navbar-nav > li > a:hover {
  color: #111 !important;
  background: #f4f5f7 !important;
}

.nav-link.active,
.navbar-nav > .active > a,
.navbar-nav > .active > a:focus,
.navbar-nav > .active > a:hover {
  color: #fff !important;
  background: #111 !important;
  border-radius: 6px;
}

/* ── Hero strip (dark navy, per tab) ───────────────────────────────────────── */

.hero-strip {
  background: #0b233f;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 40px;
}

.hero-strip-left {
  display: flex;
  flex-direction: column;
  flex: 1 1 360px;
  min-width: 300px;
  max-width: 760px;
}

.hero-strip-title {
  font-size: 34px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-strip-subtitle {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.hero-strip-icon {
  font-size: 58px;
  color: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

/* ── Page content area ─────────────────────────────────────────────────────── */

.page-content {
  padding: 28px 48px;
  max-width: 1360px;
  margin: 0 auto;
}

/* ── Cards ─────────────────────────────────────────────────────────────────── */

.entry-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.15s;
}

.entry-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.13);
}

.entry-card-header {
  padding: 13px 24px;
  border-bottom: 1px solid #eaecef;
  background: #fafafa;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0b233f;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.entry-card-header .fa,
.entry-card-header .glyphicon,
.entry-card-header svg { color: #0b233f; }

.entry-card-body { padding: 22px 24px 24px; }

/* Card header with an inline sport <select> in place of a static title suffix.
   The selectize control drops its default block layout and sits flush after
   the label text; keep the control compact and vertically centred. */
.srv-header-select .form-group,
.srv-header-select .shiny-input-container {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
}
.srv-header-select .selectize-control {
  margin: 0 !important;
  min-height: 0 !important;
  width: 200px !important;
}
.srv-header-select .selectize-input {
  width: 200px !important;
  box-sizing: border-box !important;
  border: 1px solid #d6dbe1 !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #24303d !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 4px 26px 4px 12px !important;
  min-height: 0 !important;
  line-height: 1.3 !important;
}
.srv-header-select .selectize-input > .item,
.srv-header-select .selectize-input .item {
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow: visible !important;
}
.srv-header-select .selectize-input.focus {
  border-color: #0b233f !important;
  box-shadow: 0 0 0 2px rgba(11, 35, 63, 0.15) !important;
}
.srv-header-select .selectize-dropdown {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
}

/* ── Summary stat cards ────────────────────────────────────────────────────── */
/* A responsive row of KPI tiles shown above a section's main card. */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-top: 3px solid #0b233f;
  transition: box-shadow 0.15s;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.stat-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.13); }

.stat-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6a7684;
  margin-bottom: 8px;
  line-height: 1.3;
}
.stat-card-value {
  font-size: 30px;
  font-weight: 700;
  color: #0b233f;
  line-height: 1;
  /* Fill the space between the top-pinned label and any sub-text, and centre
     the number within it so values line up mid-card across the row. */
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-card-sub { font-size: 12px; color: #8a94a0; margin-top: 5px; }

/* Grouped section inside a card body - mirrors the edit-modal sections:
   a small uppercase label with a hairline rule, then the fields. */
.entry-section { margin-bottom: 6px; }
.entry-section + .entry-section { margin-top: 4px; }
.entry-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8a94a0;
  margin: 0 0 14px;
  padding-bottom: 7px;
  border-bottom: 1px solid #eef1f4;
}

/* Right-aligned submit row at the foot of a card body. */
.entry-actions {
  display: flex;
  justify-content: flex-end;
  padding: 6px 0 14px;
  margin-top: 2px;
}
.entry-actions .btn-submit { min-width: 180px; }

/* Heading row above an existing-data table inside a card */
.entry-table-caption {
  font-size: 13px;
  font-weight: 600;
  color: #33414f;
  margin: 0;
}

/* ── Form controls ─────────────────────────────────────────────────────────── */

.control-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8a94a0 !important;
  margin-bottom: 5px;
}

/* Notes column: the textarea stretches to fill the full height of the two
   stacked rows in the right-hand column beside it. */
.notes-col { display: flex; }
.notes-col .form-group,
.notes-col .shiny-input-container { display: flex; flex-direction: column; width: 100%; }
.notes-col textarea.form-control {
  flex: 1 1 auto;
  min-height: 120px;
  resize: none;
}

.form-control {
  font-size: 13px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  background: #fafafa;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.form-control:focus {
  border-color: #0b233f;
  box-shadow: 0 0 0 2px rgba(11,35,63,0.08);
  background: #fff;
  outline: none;
}

.checkbox-inline, .checkbox { font-size: 12px; }
.checkbox label, .checkbox-inline { color: #33414f; }

/* Rank-flag column: centre the label AND the Top 3 / Top 8 checkboxes. */
.rank-flag-col { text-align: center; }
.rank-flag-col .control-label { display: block; text-align: center; }
.rank-flag-col .shiny-options-group { display: inline-flex; gap: 14px; justify-content: center; }

/* Date input widget */
.datepicker { z-index: 1100 !important; }
.datepicker-days { z-index: 1100 !important; }

/* ── Selectize ─────────────────────────────────────────────────────────────── */
/* Matches the research app: white input/menu, navy highlight on the active
   option. z-index keeps the open menu above the sticky navbar / period selector. */
.selectize-control { border: none !important; box-shadow: none !important; padding: 0 !important; }
.selectize-input {
  background: #fff !important;
  box-shadow: none !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  min-height: 36px !important;
  padding: 0 10px !important;
  overflow: hidden !important;
}
.selectize-control.single .selectize-input > div {
  display: inline-block !important;
  max-width: calc(100% - 30px) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}
.selectize-dropdown { background: #fff !important; z-index: 99999 !important; }
.selectize-dropdown-content .option { background: #fff !important; color: #111 !important; padding: 6px 10px !important; }
.selectize-dropdown-content .option.active { background: #0b233f !important; color: #fff !important; }
.selectize-dropdown-content .option.active span,
.selectize-dropdown-content .option.active div { color: #fff !important; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */

.btn { font-size: 12px; }

/* Primary submit - navy brand */
.btn-primary,
.btn-submit {
  background: #0b233f !important;
  border: none !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  transition: background 0.15s ease;
}
.btn-primary:hover, .btn-primary:focus,
.btn-submit:hover, .btn-submit:focus {
  background: #143a63 !important;
  color: #fff !important;
}

/* Neutral / dark secondary */
.btn-dark {
  background: #33414f !important;
  border: none !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}
.btn-dark:hover { background: #1f2933 !important; color: #fff !important; }

/* Danger - used in edit modals */
.btn-danger {
  background: #e0533d !important;
  border: none !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 4px rgba(224, 83, 61, 0.3);
  transition: background 0.15s ease;
}
.btn-danger:hover, .btn-danger:focus { background: #c83f2b !important; color: #fff !important; }

/* Outline cancel */
.btn-outline {
  background: #fff !important;
  color: #0b233f !important;
  border: 1.5px solid #d0d7de !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  box-shadow: none;
  transition: border-color 0.15s, background 0.15s;
}
.btn-outline:hover, .btn-outline:focus {
  background: #f5f7f9 !important;
  color: #0b233f !important;
  border-color: #0b233f !important;
}

/* ── Edit modal ────────────────────────────────────────────────────────────── */

.modal-dialog { max-width: 860px; }

.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(11, 35, 63, 0.28);
  overflow: hidden;
}

/* Kill the default bootstrap modal-body padding - our own sections pad instead. */
.modal-body { padding: 0; }

/* Navy header bar: title + a summary of the row being edited. */
.edit-modal-head {
  background: #0b233f;
  color: #fff;
  padding: 20px 28px 18px;
}
.edit-modal-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}
.edit-modal-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #fff;
}
/* Summary chips: key/value pairs describing the record being edited. */
.edit-modal-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 14px;
}
.edit-summary-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 5px 11px;
  white-space: nowrap;
  max-width: 100%;
}
.edit-summary-chip-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.5);
}
.edit-summary-chip-value {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Body sections, each introduced by a small uppercase label. */
.edit-modal-body { padding: 22px 28px 6px; }
.edit-section + .edit-section { margin-top: 6px; }
.edit-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8a94a0;
  margin: 0 0 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid #eef1f4;
}

/* Footer action bar. */
.edit-modal-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-top: 1px solid #eef1f4;
  background: #fafbfc;
}
/* Delete sits left, apart from the confirm/cancel pair on the right. */
.edit-modal-foot .btn-danger { margin-right: auto; }

/* On narrow screens, stack summary chips and let the footer wrap. */
@media (max-width: 640px) {
  .edit-modal-foot { flex-wrap: wrap; }
  .edit-modal-foot .btn-danger { margin-right: 0; }
}

/* ── Reactable niceties ────────────────────────────────────────────────────── */

.rt-search { font-size: 11px; padding: 4px 8px; }
.ReactTable, .rt-table { font-family: inherit; }

/* Row "Edit" button in the existing-data tables - a bounded, single-click
   button aligned to the right of each row. */
.row-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  color: #0b233f;
  background: #fff;
  border: 1.5px solid #d0d7de;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.row-edit-btn:hover {
  background: #0b233f;
  border-color: #0b233f;
  color: #fff;
}
.row-edit-btn .fa { font-size: 11px; }


/* ════════════════════════════════════════════════════════════════════════════
   SRV Reporting - additions on top of the results design system
   ════════════════════════════════════════════════════════════════════════════ */

/* Period selector - top-right, over the navbar.
   A single rounded segmented control: white unselected segments with hairline
   dividers, one navy-filled selected segment — matching the design system. */
.srv-period-select {
  position: absolute;
  top: 10px;
  right: 28px;
  z-index: 1040;
}

/* selectInput dropdown — clean white control matching the app's navy accents.
   Replaces the former radioGroupButtons segments (which had cross-browser
   .active/:has highlight issues). The <select> shows its own selected value. */
.srv-period-select .form-group { margin: 0; }

/* Narrow the control to just fit the longest label (2025/26) plus the arrow.
   selectize's internal auto-width is unreliable here, so pin an explicit
   compact width on the wrappers rather than relying on width:auto. */
.srv-period-select .shiny-input-container,
.srv-period-select .selectize-control,
.srv-period-select .selectize-control.single {
  width: 118px !important;
  min-width: 0 !important;
  display: inline-block !important;
}

.srv-period-select select.form-select,
.srv-period-select select.shiny-input-select,
.srv-period-select .selectize-input {
  border: 1px solid #d6dbe1 !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(11, 35, 63, 0.10) !important;
  color: #24303d !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 6px 26px 6px 12px !important;
  min-height: 0 !important;
  line-height: 1.2 !important;
  width: 118px !important;
  box-sizing: border-box !important;
}

/* Keep the selected label on one line, fully visible. */
.srv-period-select .selectize-input > .item,
.srv-period-select .selectize-input .item {
  white-space: nowrap !important;
  overflow: visible !important;
}

/* Pull the dropdown arrow in tight against the label. */
.srv-period-select .selectize-input:after {
  right: 12px !important;
}

.srv-period-select select.form-select:focus,
.srv-period-select .selectize-input.focus {
  border-color: #0b233f !important;
  box-shadow: 0 0 0 2px rgba(11, 35, 63, 0.15) !important;
  outline: none !important;
}

/* Selectize dropdown menu (if selectize is active) — navy highlight on hover
   and on the active option, matching the rest of the app. */
.srv-period-select .selectize-dropdown .option { color: #24303d; }
.srv-period-select .selectize-dropdown .option.active,
.srv-period-select .selectize-dropdown .option:hover {
  background: #0b233f !important;
  color: #fff !important;
}

/* Status tags in tables — vivid saturated pills matching the research design
   system: bright fill, matching border, punchy bold text. */
.tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.status-active        { background: #d2fbe2; color: #067a3a; border-color: #34d17d; }
.status-transitioning { background: #fdf3cf; color: #8a6a00; border-color: #f2c53d; }
.status-archived      { background: #ffdede; color: #b81414; border-color: #f56b6b; }
.status-para          { background: #ffe9d0; color: #a85a12; border-color: #f7b269; }
.status-able          { background: #d8ecff; color: #0b5bc4; border-color: #5aa8f5; }
.status-individual    { background: #ece0ff; color: #6a1fd0; border-color: #b189f5; }
.status-tier1         { background: #d8ecff; color: #0b5bc4; border-color: #5aa8f5; }
.status-selected      { background: #d2fbe2; color: #067a3a; border-color: #34d17d; }
.status-not-selected  { background: #e8eaed; color: #4a4a4a; border-color: #c2c7cd; }
.status-not-eligible  { background: #e8eaed; color: #777; border-color: #d0d4d9; }
/* N/A — muted, dashed outline so it reads as "not applicable", not a real status. */
.status-na            { background: transparent; color: #a7b0ba; border: 1px dashed #cdd3da; }
.status-future-talent { background: #d8ecff; color: #0b5bc4; border-color: #5aa8f5; }

/* Card header with a right-aligned action (the remove/restore icon button). */
.srv-card-header { justify-content: space-between; }

/* Icon-only remove / restore button, pinned top-right of the card header. */
.srv-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.srv-icon-btn .fa { font-size: 12px; margin: 0; }
.srv-icon-remove {
  background: #fdece9; color: #c0392b; border-color: #f2c7c0;
}
.srv-icon-remove:hover { background: #c0392b; color: #fff; border-color: #c0392b; }
.srv-icon-restore {
  background: #e6f4ec; color: #1e7c46; border-color: #bfe2cd;
}
.srv-icon-restore:hover { background: #1e7c46; color: #fff; border-color: #1e7c46; }
/* Locked: athlete removed on the master (Scholarships) page - no action here. */
.srv-icon-locked {
  background: #eef0f2; color: #8a94a0; border-color: #dfe3e8; cursor: not-allowed;
}

/* Per-row action button (far right of the Performance Lifestyle table) - bounded
   single-click button, matching the results app's row buttons. */
.row-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  padding: 0;
  border-radius: 6px;
  border: 1.5px solid #d0d7de;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.row-action-btn .fa { font-size: 11px; }
.row-action-btn.is-remove  { color: #c0392b; }
.row-action-btn.is-remove:hover  { background: #c0392b; border-color: #c0392b; color: #fff; }
.row-action-btn.is-restore { color: #1e7c46; }
.row-action-btn.is-restore:hover { background: #1e7c46; border-color: #1e7c46; color: #fff; }
.row-action-btn.is-locked  { color: #a7b0ba; border-color: #e2e6ea; cursor: not-allowed; }

/* Disabled field (e.g. National Squad for no-squad sports) — dimmed + inert so
   the user can see there's nothing to select. */
.srv-field-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Athlete Support entry row: four equal fields + Confirm pinned far right,
   mirroring the Scholarships attribute row. */
.srv-support-row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.srv-support-field { flex: 1 1 0; min-width: 160px; }
.srv-support-row .shiny-input-container { margin-bottom: 0; width: 100%; }
.srv-support-row .control-label { min-height: 16px; margin-bottom: 6px; }
/* Confirm pinned far right, bottom-aligned with the single-height input fields. */
.srv-support-row .srv-submit-col {
  display: flex;
  align-items: flex-end;
  margin-left: auto;
  flex: 0 0 auto;
}

/* Confirm - shape-matched to the segmented attribute tracks (8px radius, 36px
   tall) so the whole entry row shares one shape language. Soft green fill with a
   solid green tick + label; fills solid on hover. */
.srv-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  padding: 0 18px;
  min-height: 34px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  background: #e6f4ec !important;
  border: 1.5px solid #bfe2cd !important;
  color: #1e7c46 !important;
  box-shadow: 0 1px 2px rgba(30, 124, 70, 0.10);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.srv-submit-btn:hover, .srv-submit-btn:focus {
  background: #1e7c46 !important; border-color: #1e7c46 !important; color: #fff !important;
}
.srv-submit-btn .fa { font-size: 11px; margin: 0; }

/* ── Pill radio groups - future talent / national team / squad ──────────────
   Built from raw radios + labels (see radio_pill_group() in app.R). The checked
   input drives the selected style via `:checked + label` - reliable, no JS class
   toggling. Mirrors the research app's pill pattern. */
.radio-pill-group { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.radio-pill-group .radio-pill-item { margin: 0; }
.radio-pill-group input[type=radio] { display: none; }
.radio-pill-group label {
  display: inline-block;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  user-select: none;
  background: #fff;
  color: #bbb;
  border: 1.5px solid #e2e6ea;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.4;
  margin: 0;
  white-space: nowrap;
}
.radio-pill-group label:hover { border-color: #cdd6e0; color: #0b233f; }
.radio-pill-group input[type=radio]:checked + label {
  background: #0b233f;
  color: #fff;
  border-color: #0b233f;
}

/* ── Scholarships entry form ─────────────────────────────────────────────────
   A deliberate two-section form: SELECTORS (sport + athlete) on top, a hairline
   divider, then the ATTRIBUTES on one aligned row with the Save / Remove actions
   right-aligned on that same line. Sections read top-to-bottom as "pick who →
   set what & act", with no wrapping dead-zones or floating buttons. */
.srv-entry-form { display: flex; flex-direction: column; }

/* Section 1 — selectors. Two fixed-width fields, left-aligned; the empty right
   space is intentional (the fields shouldn't stretch across the whole card). */
.srv-entry-selectors {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.srv-entry-field { flex: 0 1 240px; min-width: 200px; }
.srv-entry-field .shiny-input-container { margin-bottom: 0; width: 100%; }

/* Divider between the two sections. */
.srv-entry-divider {
  border-top: 1px solid #eaecef;
  margin: 22px 0;
}

/* Section 2 — attributes on one row, actions pushed to the trailing edge so
   they anchor to the attribute line they act on. Wraps cleanly when narrow. */
.srv-entry-attrs {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
}
/* Each attribute = a label above its segmented-control track. */
.srv-attr-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 0 1 auto;
}

/* Save + Remove, right-aligned on the attributes row. */
.srv-entry-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-left: auto;
}

/* Remove / Restore — labelled buttons shape-matched to Save (40px, 8px radius).
   Remove is a soft-red destructive button; Restore a soft-green one. Both fill
   solid on hover, mirroring the Save button's treatment. */
.srv-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  padding: 0 16px;
  min-height: 34px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(11, 35, 63, 0.06);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.srv-action-btn .fa { font-size: 11px; margin: 0; }

.srv-action-remove {
  background: #fdece9 !important;
  border: 1.5px solid #f2c7c0 !important;
  color: #c0392b !important;
}
.srv-action-remove:hover, .srv-action-remove:focus {
  background: #c0392b !important; border-color: #c0392b !important; color: #fff !important;
}
.srv-action-restore {
  background: #e6f4ec !important;
  border: 1.5px solid #bfe2cd !important;
  color: #1e7c46 !important;
}
.srv-action-restore:hover, .srv-action-restore:focus {
  background: #1e7c46 !important; border-color: #1e7c46 !important; color: #fff !important;
}

/* Shared label + input sizing across the entry form. */
.srv-entry-form .control-label { min-height: 16px; margin-bottom: 8px; }
.srv-entry-form .shiny-input-container { margin-bottom: 0; width: 100%; }
.srv-attr-group .control-label { white-space: nowrap; }

/* Segmented control: inside the entry panel, each attribute's options join into
   ONE bordered pill-shaped track (shared border, hairline dividers, no gaps)
   instead of three detached bubbles. Reads clearly as a single toggle. */
.srv-attr-group .radio-pill-group {
  flex-wrap: nowrap;
  gap: 0;                 /* segments sit flush */
  margin-top: 2px;
  align-items: stretch;
  border: 1.5px solid #dfe4ea;
  border-radius: 8px;
  overflow: hidden;       /* clip segment corners to the track's rounded shape */
  background: #fff;
  width: fit-content;
  box-shadow: 0 1px 2px rgba(11, 35, 63, 0.05);
}
.srv-attr-group .radio-pill-item { display: flex; }
/* Each segment: flat, square (the track supplies the rounding), grey label.
   Roomy padding + a 40px height give the control breathing space. */
.srv-attr-group .radio-pill-group label {
  display: flex;
  align-items: center;
  border: none;
  border-radius: 0;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #7a8592;
  background: #fff;
  min-height: 34px;
}
/* Hairline between adjacent segments (not before the first). */
.srv-attr-group .radio-pill-item + .radio-pill-item label {
  border-left: 1px solid #e6e9ee;
}
.srv-attr-group .radio-pill-group label:hover {
  background: #f4f6f8;
  color: #0b233f;
  border-color: transparent;   /* keep only the divider, no full outline */
}
.srv-attr-group .radio-pill-item + .radio-pill-item label:hover {
  border-left-color: #e6e9ee;
}
/* Selected segment: navy fill, white label. */
.srv-attr-group .radio-pill-group input[type=radio]:checked + label {
  background: #0b233f;
  color: #fff;
  border-color: #0b233f;
}

/* Narrow screens: let the attribute tracks wrap instead of overflowing, and
   drop the actions to full width beneath them. */
@media (max-width: 1080px) {
  .srv-entry-attrs { flex-wrap: wrap; row-gap: 18px; }
  .srv-entry-actions { width: 100%; justify-content: flex-end; margin-left: 0; }
}

/* Actions row sits clearly below the fields, right-aligned, with separation. */
.entry-actions { margin-top: 20px; padding-top: 6px; }

/* "Coming soon" placeholder for tabs not yet rebuilt */
.srv-placeholder {
  max-width: 640px;
  margin: 64px auto;
  text-align: center;
  color: #6b7a8d;
}
.srv-placeholder .srv-placeholder-icon { font-size: 34px; color: #c2ccd6; margin-bottom: 12px; }
.srv-placeholder h4 { color: #0b233f; margin-bottom: 6px; }
