/* =====================================================================
   National Rectors Conference — admin login + dashboard
   Extends styles.css (tokens, fields, buttons).
   ===================================================================== */

.admin-body { background: var(--h-paper); }

/* ------------------------------- login ------------------------------ */
.login-stage {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  background: radial-gradient(120% 130% at 50% 8%, #23214e, #16143c 60%);
  padding: 32px 20px;
}
.login-card {
  width: min(420px, 100%);
  background: var(--h-white);
  border-radius: 18px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6);
  padding: clamp(28px, 5vw, 44px);
  text-align: center;
}
.login-tile {
  display: inline-grid; place-content: center;
  width: 74px; height: 74px; border-radius: 18px;
  background: var(--h-navy-ink);
  margin-bottom: 18px;
}
.login-tile img { width: 50px; height: 50px; }
.login-eyebrow {
  font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--h-indigo);
  margin-bottom: 8px;
}
.login-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 26px; line-height: 1.15; letter-spacing: -.005em;
  color: var(--h-navy-ink);
}
.login-rule {
  display: block; width: 48px; height: 3px; border-radius: 2px;
  background: var(--h-gold);
  margin: 18px auto 22px;
}
.login-card .field { text-align: left; margin-top: 16px; }
.login-card .field:first-child { margin-top: 0; }
.login-btn { margin-top: 22px; max-width: none; }
.login-error { margin-top: 14px; font-size: 13px; font-weight: 700; color: #D63340; }
.login-hint { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--h-subtle, #6B6B7A); text-align: left; }
.login-sent { margin-top: 14px; font-size: 13px; line-height: 1.5; font-weight: 500; color: #1E7A3C; text-align: left; }
.login-foot {
  font-weight: 700; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}

/* ----------------------------- dashboard ---------------------------- */
.dash-top {
  background: var(--h-navy-ink);
  border-bottom: 3px solid var(--h-gold);
}
.dash-top-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 14px clamp(20px, 3vw, 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.dash-brand { display: flex; align-items: center; gap: 14px; }
.dash-emblem { width: 40px; height: 40px; }
.dash-title {
  font-family: var(--font-display);
  font-size: 18px; line-height: 1.15; color: #fff; letter-spacing: .01em;
}
.dash-sub {
  font-weight: 700; font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-top: 2px;
}
.dash-actions { display: flex; align-items: center; gap: 12px; }
.demo-badge {
  font-weight: 700; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--h-navy-ink);
  background: var(--h-gold);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: help;
}
.dash-signout {
  font-family: var(--font-text); font-weight: 700; font-size: 12.5px;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.dash-signout:hover { background: rgba(255, 255, 255, .16); }

.dash-main {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px) 48px;
}

/* stat tiles */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.stat-tile {
  background: var(--h-white);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--e-sheet);
  padding: 18px 20px 16px;
}
.stat-label {
  font-weight: 700; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--h-indigo);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 40px; line-height: 1.05;
  color: var(--h-navy-ink);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.stat-value-sm { font-size: 24px; padding-top: 8px; }
.stat-sub { margin-top: 4px; font-size: 12px; color: var(--h-subtle); }

/* chart cards */
.chart-row {
  display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px;
  margin-top: 14px;
}
.chart-card {
  background: var(--h-white);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--e-sheet);
  padding: 18px 20px 14px;
  min-width: 0;
}
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.chart-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 18px; letter-spacing: 0;
  color: var(--h-navy-ink);
}
.chart-range { font-size: 11.5px; color: var(--h-subtle); white-space: nowrap; }
.chart-holder { position: relative; }
.chart-holder svg { display: block; width: 100%; height: auto; }

/* first-choice horizontal bars */
.bars-holder { display: flex; flex-direction: column; gap: 9px; padding: 6px 0 4px; }
.fc-row { display: grid; grid-template-columns: 120px 1fr 26px; align-items: center; gap: 10px; }
.fc-label {
  font-size: 12px; color: var(--h-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fc-track { position: relative; height: 12px; border-radius: 0 4px 4px 0; background: var(--h-field); overflow: hidden; }
.fc-fill {
  position: absolute; inset: 0 auto 0 0;
  background: var(--h-sky);
  border-radius: 0 4px 4px 0;
  min-width: 2px;
  transition: background-color .15s ease;
}
.fc-row:hover .fc-fill { background: var(--h-indigo); }
.fc-value { font-size: 12px; color: var(--h-subtle); text-align: right; font-variant-numeric: tabular-nums; }

/* chart tooltip */
.chart-tooltip {
  position: fixed; z-index: 60;
  background: var(--h-navy-ink); color: #fff;
  font-size: 12px; line-height: 1.45;
  border-radius: 8px;
  padding: 7px 11px;
  pointer-events: none;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5);
  transform: translate(-50%, calc(-100% - 10px));
  white-space: nowrap;
}
.chart-tooltip strong { font-weight: 700; }

/* table */
.table-card {
  background: var(--h-white);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--e-sheet);
  margin-top: 14px;
  overflow: hidden;
}
.table-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
}
.table-count { font-family: var(--font-text); font-size: 13px; color: var(--h-subtle); }
.table-tools { display: flex; align-items: center; gap: 10px; }
.table-search {
  width: 240px;
  font-family: var(--font-text); font-size: 13.5px;
  background: var(--h-field);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 8px 16px;
}
.table-search:focus { outline: none; border-color: var(--h-gold); box-shadow: var(--focus-ring); background: #fff; }
.export-btn { width: auto; max-width: none; font-size: 13px; padding: 9px 20px; }
.btn-quiet {
  background: #fff; color: var(--h-indigo, #1243A0);
  border: 1px solid rgba(24, 22, 34, .18);
  text-decoration: none; display: inline-flex; align-items: center;
}
.btn-quiet:hover { border-color: var(--h-indigo, #1243A0); background: #F4F8FC; }

.table-wrap { overflow: auto; max-height: 560px; }
.reg-table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.reg-table th {
  position: sticky; top: 0; z-index: 2;
  background: var(--h-navy-ink); color: #fff;
  font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  text-align: left;
  padding: 10px 12px;
  white-space: nowrap;
}
.reg-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
  color: var(--h-text);
  vertical-align: top;
}
.reg-table td.td-wrap { white-space: normal; min-width: 200px; max-width: 280px; }
.reg-table tbody tr:nth-child(even) { background: #FAF9F6; }
.reg-table tbody tr:hover { background: var(--h-sky-light); }
.td-muted { color: var(--h-subtle); }
.td-num { font-variant-numeric: tabular-nums; }
.pill-yes, .pill-no {
  display: inline-block;
  font-weight: 700; font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; padding: 2px 9px;
}
.pill-yes { color: #0E5A2F; background: #DFF2E5; }
.pill-no { color: #7A3A0E; background: #FBEBD9; }

.dash-foot {
  margin-top: 22px; text-align: center;
  font-size: 11.5px; color: var(--h-subtle);
}

/* responsive */
@media (max-width: 960px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .chart-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stat-row { grid-template-columns: 1fr; }
  .table-tools { width: 100%; }
  .table-search { flex: 1; width: auto; }
}
