@import url("./signup-hub.css");

/* Shared staff-dashboard extensions on top of the Signup Deposit Hub tokens. */

body.hub-body {
  color-scheme: dark;
}

a.tab {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.stats.stats-auto {
  grid-template-columns: repeat(auto-fit, minmax(9.75rem, 1fr));
}
.stats.stats-auto:has(.stat:only-child) {
  grid-template-columns: minmax(9.75rem, 16rem);
}

.season-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand p .season-pill:first-child {
  margin-left: 0;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.35rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(107, 207, 142, 0.35);
  background: rgba(107, 207, 142, 0.12);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(107, 207, 142, 0.2);
}

.season-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin: 0 1.75rem 1rem;
  padding: 0.95rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.season-filter-form,
.season-start-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
}

.season-filter-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
}

.season-bar label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.season-bar .inline-input {
  min-width: 8.5rem;
  width: 10.5rem;
}

.referrer-panel {
  margin: 0 1.75rem 1rem;
  padding: 0.95rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.referrer-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.referrer-panel strong {
  color: var(--ink);
}

.referrer-list {
  margin: 0.7rem 0 0;
  padding-left: 1.3rem;
  columns: 2;
  column-gap: 1.5rem;
}

.referrer-list li {
  break-inside: avoid;
  margin: 0.25rem 0;
}

.referrer-name {
  color: var(--muted);
}

.control-bar .tabs {
  flex: 1 0 100%;
}

.filter-form,
.export-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.filter-form {
  flex: 1 1 420px;
}

.export-form {
  margin-left: auto;
}

.filter-form .search-input {
  flex: 1 1 160px;
  max-width: 240px;
}

.control-bar input[type="date"] {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  background: var(--bg-elevated);
  color: var(--ink);
  width: 9.25rem;
}

.badge.needs-review {
  background: rgba(232, 184, 74, 0.12);
  color: var(--amber);
  border-color: rgba(232, 184, 74, 0.3);
}

.badge.auto-confirmed,
.badge.manually-confirmed {
  background: rgba(107, 207, 142, 0.12);
  color: var(--green);
  border-color: rgba(107, 207, 142, 0.3);
}

.badge.rejected {
  background: rgba(240, 113, 103, 0.12);
  color: var(--red);
  border-color: rgba(240, 113, 103, 0.3);
}

.warn {
  display: block;
  margin-top: 0.3rem;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 700;
}

.evidence-tag {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.review-table {
  /* Status, Season, Reg Date, Name, Leon ID, Leon Dep, Evidence, Note, Save, Reject, Delete, Profile */
  --review-cols:
    minmax(min-content, 1fr)
    minmax(min-content, 1fr)
    minmax(min-content, 1fr)
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(9rem, 1fr)
    minmax(5.5rem, 1fr)
    minmax(0, 1fr)
    max-content
    max-content
    max-content
    max-content;
  display: block;
  width: 100%;
  min-width: 72rem;
}

.review-table thead,
.review-table tbody {
  display: block;
  width: 100%;
}

.review-table tr,
.review-table tr.is-fan,
.review-table tr.is-hc {
  display: grid;
  width: 100%;
  align-items: center;
  column-gap: 0.5rem;
  grid-template-columns: var(--review-cols);
  border-bottom: 1px solid var(--line);
}

.review-table th,
.review-table td {
  min-width: 0;
  min-height: min-content;
  overflow: hidden;
  border-bottom: none;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.review-table td:nth-child(2) {
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-table td:nth-child(n + 9) {
  overflow: visible;
  white-space: nowrap;
}

.review-table td:nth-child(11) {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  align-items: center;
}

.review-table .inline-input,
.review-table .inline-select,
.review-table .review-note {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.review-table .thumb-row {
  max-width: 100%;
}

.review-table .row-actions,
.review-table .review-form {
  flex-wrap: nowrap;
}

.review-table .btn.sm {
  white-space: nowrap;
}

.review-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.review-form .inline-input {
  min-width: 6.5rem;
  width: 8rem;
}

.review-row-error {
  display: block;
  margin-top: 0.25rem;
  color: #f87171;
  font-size: 0.7rem;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.login-card {
  width: min(26rem, 100%);
  padding: 1.75rem 1.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.login-card .brand-logo {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1rem;
}

.login-card h1 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.login-card .muted {
  margin: 0.4rem 0 0;
}

.login-card form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
  text-align: left;
}

.login-card label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.login-card input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  background: var(--bg-soft);
  color: var(--ink);
  width: 100%;
}

.login-card input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.login-card .btn {
  justify-content: center;
}

.alert {
  margin-top: 1rem;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: rgba(240, 113, 103, 0.12);
  border: 1px solid rgba(240, 113, 103, 0.35);
  color: var(--red);
  font-weight: 600;
}

.hub-dialog {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink);
  border-radius: 20px;
  padding: 1.25rem 1.35rem;
  max-width: 28rem;
  width: calc(100vw - 2rem);
  box-shadow: var(--shadow);
}

.hub-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.hub-dialog h2 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.profile-grid {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.profile-row {
  display: grid;
  gap: 0.15rem;
}

.profile-row dt {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.profile-row dd {
  margin: 0;
}

.dialog-actions {
  margin-top: 1.1rem;
  display: flex;
  justify-content: flex-end;
}

.referral-table {
  min-width: 640px;
}

.rank-cell {
  width: 4.5rem;
  font-weight: 800;
  color: var(--muted);
}

.rank-cell.top {
  color: var(--accent);
}

@media (max-width: 700px) {
  .referrer-list {
    columns: 1;
  }
}
