/* users_web utilities — aligned with main portal (style.css / dashboard.css) */
:root {
  --uw-navy: #1e3a8a;
  --uw-accent: #3b82f6;
  --uw-muted: #64748b;
  --uw-text: #334155;
  --uw-success: #10b981;
  --uw-danger: #ef4444;
  --uw-warning: #f59e0b;
  --uw-radius: 12px;
  --uw-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08);
}

.uw-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: var(--uw-shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.uw-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--uw-navy);
}

.uw-muted {
  color: var(--uw-muted);
  font-size: 0.9rem;
}
.uw-field-hint {
  margin: -2px 0 10px;
  color: var(--uw-muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
}

.uw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.15s;
  width: 100%;
  text-decoration: none;
}

.uw-btn:active { transform: scale(0.99); }
.uw-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.uw-btn-primary { background: var(--uw-navy); color: #fff; }
.uw-btn-accent { background: var(--uw-accent); color: #fff; }
.uw-btn-success { background: var(--uw-success); color: #fff; }
.uw-btn-danger { background: var(--uw-danger); color: #fff; }
.uw-btn-ghost { background: #f1f5f9; color: var(--uw-text); border: 1px solid #e2e8f0; }
.uw-btn-sm { min-height: 38px; width: auto; padding: 0 14px; font-size: 0.85rem; }

.uw-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.uw-btn-row .uw-btn { width: auto; flex: 1 1 auto; min-width: 110px; }

.uw-field { margin-bottom: 16px; }
.uw-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.uw-field input,
.uw-field select,
.uw-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: var(--uw-text);
  outline: none;
  font: inherit;
}
.uw-field textarea { min-height: 100px; resize: vertical; }
.uw-field input:focus,
.uw-field select:focus,
.uw-field textarea:focus {
  border-color: var(--uw-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.uw-password { position: relative; }
.uw-password input { padding-right: 48px; }
.uw-password .toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--uw-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
}

.uw-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.uw-tab {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--uw-muted);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  min-height: 40px;
}
.uw-tab.active {
  background: var(--uw-navy);
  border-color: var(--uw-navy);
  color: #fff;
}

.uw-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #e0e7ff;
  color: var(--uw-navy);
}
.uw-badge.ok { background: #d1fae5; color: #065f46; }
.uw-badge.warn { background: #fef3c7; color: #92400e; }
.uw-badge.danger { background: #fee2e2; color: #991b1b; }

.uw-match-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.uw-match-type-row--end {
  justify-content: flex-end;
  margin: 0;
}
.uw-match-type {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}
.uw-match-type--national {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.3);
  color: #16a34a;
}
.uw-match-type--local {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.3);
  color: #0284c7;
}
.uw-match-type--retro {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
  color: #7c3aed;
}

/* Fill-window / grace countdown banners (same idea as app Fill Point Card) */
.uw-fill-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.2px solid;
  text-align: left;
}
.uw-fill-banner__count {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 800;
}
.uw-fill-banner__count strong {
  font-size: 0.95rem;
  font-weight: 900;
}
.uw-fill-banner__count span {
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0.85;
}
.uw-fill-banner__body { flex: 1; min-width: 0; }
.uw-fill-banner__title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 3px;
}
.uw-fill-banner__text {
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 0;
  opacity: 0.92;
}
.uw-fill-banner--yellow {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.7);
  color: #b45309;
}
.uw-fill-banner--yellow .uw-fill-banner__count {
  background: rgba(251, 191, 36, 0.22);
  border-color: rgba(251, 191, 36, 0.55);
  color: #b45309;
}
.uw-fill-banner--orange {
  background: rgba(249, 115, 22, 0.14);
  border-color: rgba(249, 115, 22, 0.7);
  color: #c2410c;
}
.uw-fill-banner--orange .uw-fill-banner__count {
  background: rgba(249, 115, 22, 0.22);
  border-color: rgba(249, 115, 22, 0.55);
  color: #c2410c;
}
.uw-fill-banner--red {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.75);
  color: #b91c1c;
}
.uw-fill-banner--red .uw-fill-banner__count {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.55);
  color: #b91c1c;
}
.uw-fill-banner--amber {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.65);
  color: #92400e;
}
.uw-fill-banner--info {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.45);
  color: #334155;
}
.uw-fill-banner--returned {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.45);
  color: #3730a3;
}
.uw-fill-banner--returned .uw-fill-banner__pts {
  color: var(--uw-success, #15803d);
}
.uw-expected-pts__value {
  color: var(--uw-success, #15803d);
  font-weight: 800;
}
.uw-expected-pts__value--lg {
  font-size: 1.25rem;
  line-height: 1.2;
}
.uw-expected-pts__formula {
  margin: 6px 0 0;
  font-size: 0.8rem;
}
.uw-expected-pts--compact {
  margin-top: 4px;
  font-size: 0.9rem;
}
.uw-expected-pts--compact .uw-expected-pts__label {
  color: inherit;
  font-weight: 600;
}
/* App parity: returned pointcard — assignment/role locked, signature only */
.uw-returned-lock {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
}
.uw-returned-lock i {
  flex-shrink: 0;
  margin-top: 1px;
  color: #d97706;
}
.uw-returned-lock--detail {
  margin: 0 0 14px;
}
.uw-fill-banner__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  background: rgba(245, 158, 11, 0.2);
  color: inherit;
}
.uw-fill-banner--info .uw-fill-banner__icon {
  background: rgba(148, 163, 184, 0.25);
}

.uw-list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 10px;
  box-shadow: var(--uw-shadow);
  cursor: pointer;
  width: 100%;
  text-align: left;
  color: inherit;
  text-decoration: none;
}
.uw-list-item .meta { flex: 1; min-width: 0; }
.uw-list-item .title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--uw-navy);
  margin: 0 0 4px;
}

.uw-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
  flex-shrink: 0;
}
.uw-avatar.lg { width: 88px; height: 88px; }

.uw-profile-hero {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.uw-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.uw-quick {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
  box-shadow: var(--uw-shadow);
  cursor: pointer;
  color: var(--uw-navy);
  font-weight: 600;
  font-size: 0.85rem;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}
.uw-quick i { font-size: 1.35rem; color: var(--uw-accent); }
.uw-quick.is-disabled,
.uw-quick[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  filter: grayscale(0.3);
}
.uw-quick.is-done {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.15);
}
.uw-quick.is-done i { color: #059669; }

.uw-draft-card {
  text-align: left;
  background: #fff;
  border: 2px solid rgba(249, 115, 22, 0.5);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}
.uw-draft-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.uw-draft-card__head i {
  color: #ea580c;
  font-size: 1.05rem;
}
.uw-draft-card__label {
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--uw-navy);
  text-transform: uppercase;
}
.uw-draft-card__status {
  margin-left: auto;
  color: #ea580c;
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-align: right;
}
.uw-draft-card__meta {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 4px;
  font-weight: 500;
}
.uw-draft-card__meta strong {
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.02em;
}
.uw-draft-card__actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.uw-draft-card__actions .uw-btn {
  flex: 1;
  min-width: 120px;
  justify-content: center;
}
.uw-draft-card__actions .uw-btn-clear-draft {
  background: #fff;
  color: #dc2626;
  border: 1.5px solid #dc2626;
}
.uw-draft-card__actions .uw-btn-clear-draft:hover {
  background: #fef2f2;
}

.uw-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--uw-muted);
}
.uw-empty i { font-size: 2rem; margin-bottom: 10px; opacity: 0.45; }

.uw-toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  bottom: 24px;
  max-width: min(420px, calc(100% - 32px));
  width: auto;
  background: #0f172a;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.uw-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.uw-toast.error { background: #991b1b; }
.uw-toast.success { background: #065f46; }

.uw-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.uw-modal-backdrop.open { display: flex; }
.uw-modal {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.uw-modal h2 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  color: var(--uw-navy);
  text-align: left;
}

.uw-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.uw-photo-actions .uw-btn {
  width: 100%;
}
.uw-reg-photo-preview {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.uw-reg-photo-preview[hidden] {
  display: none !important;
}
.uw-reg-photo-preview.is-visible:not([hidden]) {
  display: flex;
}
.uw-reg-photo-preview img {
  width: min(220px, 70vw);
  height: min(220px, 70vw);
  max-width: 100%;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: block;
}
.uw-reg-photo-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  text-align: center;
}
.uw-reg-photo-meta .uw-muted {
  font-size: 0.8rem;
  word-break: break-all;
}
.uw-camera-modal {
  max-width: min(520px, calc(100vw - 24px));
}
.uw-camera-stage {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: min(60vh, 420px);
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.uw-camera-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.uw-card-clickable:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}
.uw-card-hint {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #64748b;
}
.uw-card-hint i { margin-right: 4px; }

.uw-account-detail-modal {
  max-width: min(640px, calc(100vw - 24px));
  width: 100%;
  max-height: min(90vh, 900px);
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.uw-account-detail-modal .uw-preview-head {
  flex-shrink: 0;
  margin-bottom: 8px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}
.uw-account-detail-modal .uw-preview-head h2 {
  margin: 0;
  font-size: clamp(0.95rem, 2.8vw, 1.1rem);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uw-account-detail-modal #detailBody {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}
.uw-detail-hero {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}
.uw-detail-hero-text {
  min-width: 0;
  flex: 1;
}
.uw-account-detail-modal .uw-detail-avatar,
.uw-account-detail-modal img.uw-detail-avatar {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  border: 2px solid #e2e8f0;
  background: #f1f5f9;
  display: block;
}
.uw-detail-avatar--fallback {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--uw-navy, #1e3a8a);
  font-size: 1rem;
}
.uw-detail-name {
  font-size: clamp(0.95rem, 2.6vw, 1.05rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  word-break: break-word;
}
.uw-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.uw-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.uw-detail-section {
  margin-bottom: 14px;
}
.uw-detail-section h3 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--uw-navy, #1e3a8a);
  display: flex;
  align-items: center;
  gap: 8px;
}
.uw-detail-subhead {
  margin: 12px 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}
.uw-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}
.uw-detail-field {
  min-width: 0;
}
.uw-detail-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 3px;
}
.uw-detail-value {
  font-size: 0.9rem;
  color: #0f172a;
  word-break: break-word;
}

@media (min-width: 720px) {
  .uw-account-detail-modal {
    max-width: 720px;
    padding: 20px 22px;
  }
  .uw-account-detail-modal .uw-detail-avatar,
  .uw-account-detail-modal img.uw-detail-avatar {
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
  }
  .uw-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 559px) {
  .uw-modal-backdrop {
    padding: 8px;
    align-items: flex-end;
  }
  .uw-account-detail-modal {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 12px 12px;
    padding: 12px 14px 16px;
  }
  .uw-detail-grid {
    grid-template-columns: 1fr;
  }
  .uw-detail-hero {
    gap: 10px;
  }
  .uw-account-detail-modal .uw-detail-avatar,
  .uw-account-detail-modal img.uw-detail-avatar {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
  }
}

.uw-preview-modal { max-width: 920px; }
.uw-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.uw-preview-head h2 { margin: 0; flex: 1; font-size: 1rem; }
.uw-preview-body {
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  min-height: 280px;
  max-height: 70vh;
}
.uw-preview-body iframe,
.uw-preview-body img {
  display: block;
  width: 100%;
  height: 70vh;
  min-height: 280px;
  border: 0;
  object-fit: contain;
  background: #0f172a;
}
.uw-form-card .uw-list-item {
  margin-bottom: 8px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.uw-attach-btn { background: #f8fafc; }

.uw-role-summary {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: stretch;
}
.uw-role-list {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.uw-role-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--uw-accent);
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 0.15s, box-shadow 0.15s;
}
.uw-role-item:hover { background: #eff6ff; }
.uw-role-item.active-filter {
  background: #dbeafe;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}
.uw-role-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--uw-navy);
}
.uw-role-count {
  min-width: 2rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--uw-navy);
  font-weight: 800;
  text-align: center;
  font-size: 0.9rem;
}
.uw-role-chart-wrap {
  flex: 1.4 1 280px;
  min-height: 220px;
  position: relative;
}

.uw-points-table-card { padding: 0; overflow: hidden; }
.uw-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.uw-points-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 0.88rem;
}
.uw-points-table th,
.uw-points-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
  color: var(--uw-text);
}
.uw-points-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.uw-points-table tbody tr:hover { background: #f8fafc; }
.uw-points-table .uw-match-name { font-weight: 700; color: var(--uw-navy); }
.uw-points-table .uw-pts { font-weight: 800; color: var(--uw-success); white-space: nowrap; }
.uw-points-table .uw-points-row--incomplete td,
.uw-points-table .uw-points-row--incomplete .uw-match-name,
.uw-points-table .uw-points-row--incomplete .uw-pts,
.uw-points-table .uw-points-row--incomplete .uw-sig-name,
.uw-points-table .uw-points-row--incomplete .uw-sig-when,
.uw-points-table .uw-points-row--incomplete .uw-sig-missing {
  color: var(--uw-danger, #dc2626);
}
.uw-points-table .uw-points-row--incomplete:hover { background: #fef2f2; }
.uw-sig-cell { text-align: center; min-width: 120px; }
.uw-sig-cell img {
  max-width: 120px;
  max-height: 56px;
  display: block;
  margin: 0 auto 4px;
  object-fit: contain;
}
.uw-sig-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
  border-top: 1px solid #e2e8f0;
  padding-top: 4px;
  margin-top: 2px;
}
.uw-sig-when {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.25;
}

.uw-segment {
  display: flex;
  background: #e2e8f0;
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 20px;
}
.uw-segment button {
  flex: 1;
  border: none;
  background: transparent;
  min-height: 40px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--uw-muted);
  cursor: pointer;
  font-family: inherit;
}
.uw-segment button.active {
  background: #fff;
  color: var(--uw-navy);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.uw-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.uw-chip {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.85rem;
  cursor: pointer;
}
.uw-chip input { margin-right: 6px; }
.uw-chip:has(input:checked) {
  border-color: var(--uw-navy, #1e3a8a);
  background: #eff6ff;
  color: var(--uw-navy, #1e3a8a);
}

.uw-attach-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.uw-attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 0.8rem;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uw-attach-chip i { color: #64748b; flex-shrink: 0; }

.uw-sig-surface {
  width: 100%;
  height: 180px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.uw-sig-surface.is-saved {
  border-style: solid;
  background: #fff;
}
.uw-sig-surface .uw-sig-pad {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  touch-action: none;
  display: block;
}
.uw-sig-saved-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
}
.uw-sig-required-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}
.uw-sig-required-banner i {
  margin-top: 2px;
  font-size: 1.1rem;
}
.uw-sig-required-banner strong {
  display: block;
  margin-bottom: 2px;
  color: #78350f;
}
.uw-sig-required-banner p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}
.uw-sig-hint {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--uw-muted);
  line-height: 1.4;
}
.uw-field-hint.uw-lock-hint {
  color: #dc2626;
  font-weight: 600;
}
.uw-auth-lock-banner {
  display: none;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}
.uw-auth-lock-banner.is-visible {
  display: flex;
}
.uw-auth-lock-banner i {
  margin-top: 2px;
  flex-shrink: 0;
}

.uw-loading {
  text-align: center;
  padding: 28px;
  color: var(--uw-muted);
}
/* Only the spinner glyph should rotate — never all icons inside a loading container */
.uw-loading .fa-spinner,
.uw-loading .uw-spinner {
  animation: uw-spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes uw-spin { to { transform: rotate(360deg); } }

.uw-link-row {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
}

.uw-page-heading {
  margin: 0 0 20px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--uw-navy);
}

.uw-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--uw-muted);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
  text-decoration: none;
}
.uw-back-link:hover { color: var(--uw-navy); }

/* Auth pages: keep main portal glass look, tighten on small screens */
body.uw-auth-body {
  padding: 16px;
}
.uw-auth-container {
  width: 100%;
  max-width: 520px;
}
.uw-auth-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  .uw-quick-grid {
    grid-template-columns: 1fr 1fr;
  }
  .uw-btn-row .uw-btn {
    flex: 1 1 100%;
  }
  .content-wrapper .uw-card {
    padding: 16px;
  }
  .uw-auth-container {
    max-width: 100%;
  }
  body.uw-auth-body {
    padding: 12px;
    align-items: flex-start;
  }
}

/* users_web sidebar: no brand logo block; nav scrolls when tall */
body.dashboard-body .sidebar {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.dashboard-body .sidebar-brand-area {
  padding: 0 25px 16px 25px;
  flex-shrink: 0;
}

body.dashboard-body .sidebar-brand {
  display: none !important;
}

body.dashboard-body .sidebar-menu {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

body.dashboard-body .sidebar-menu::-webkit-scrollbar {
  width: 6px;
}

body.dashboard-body .sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(30, 58, 138, 0.25);
  border-radius: 999px;
}

body.dashboard-body .sidebar-profile {
  flex-shrink: 0;
}

/* Keep horizontal scroll on very small screens (top nav mode) */
@media (max-width: 640px) {
  body.dashboard-body .sidebar {
    overflow: visible;
  }

  body.dashboard-body .sidebar-menu {
    flex: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
  }
}

/* Combined searchable address dropdown (single field, select-like UI) */
.uw-combo {
  position: relative;
  width: 100%;
}
.uw-combo-control {
  position: relative;
  width: 100%;
}
.uw-combo-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 40px 12px 16px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--uw-text) !important;
  outline: none;
  font: inherit;
  display: block;
  box-sizing: border-box;
  backdrop-filter: none !important;
}
.uw-combo-input:focus {
  border-color: var(--uw-accent) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.uw-combo-input:disabled {
  background: #f8fafc !important;
  color: var(--uw-muted) !important;
  cursor: not-allowed;
}
.uw-combo-caret {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -2px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #64748b;
  pointer-events: none;
}
.uw-combo.is-open .uw-combo-caret {
  transform: rotate(180deg);
  margin-top: -4px;
}
/* Floating menu on body — same look as opening a <select> */
.uw-combo-menu {
  position: fixed;
  z-index: 10000;
  margin: 0;
  padding: 4px 0;
  background: #fff;
  border: 1px solid #94a3b8;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}
.uw-combo-menu[hidden] {
  display: none !important;
}
.uw-combo-option {
  display: block;
  width: 100%;
  padding: 10px 14px;
  margin: 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uw-combo-option:hover,
.uw-combo-option.is-active {
  background: #1e3a8a;
  color: #fff;
}
.uw-combo-empty {
  padding: 12px 14px;
  color: #64748b;
  font-size: 0.9rem;
}

.uw-compliance-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(30, 58, 138, 0.2);
  border-radius: 12px;
  color: var(--uw-navy);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
}
.uw-subhead {
  margin: 18px 0 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--uw-navy);
  letter-spacing: 0.02em;
}
.uw-field-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.uw-field-row .uw-field {
  flex: 1;
  min-width: 0;
}
@media (max-width: 480px) {
  .uw-field-row {
    flex-direction: column;
    gap: 0;
  }
}
.uw-field input[readonly],
.uw-field select:disabled {
  background: #f1f5f9;
  color: var(--uw-muted);
  cursor: default;
}
.uw-field-msg {
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}
.uw-field-msg[hidden] {
  display: none !important;
}

.uw-profile-form-head {
  margin-bottom: 8px;
}
.uw-profile-form-head h3 {
  margin-bottom: 4px;
}
.uw-profile-form-hint {
  margin: 0 0 16px;
  font-size: 0.85rem;
}
.uw-profile-section {
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid #e2e8f0;
}
.uw-profile-section:last-of-type {
  border-bottom: none;
  margin-bottom: 8px;
  padding-bottom: 0;
}
.uw-profile-section-title {
  margin: 0 0 14px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--uw-muted) !important;
}
.uw-profile-section-body .uw-field:last-child {
  margin-bottom: 0;
}
.uw-profile-section-body .uw-field-row:last-child .uw-field {
  margin-bottom: 0;
}
.uw-profile-hero-card .uw-muted {
  margin-top: 4px;
}
.uw-field.is-ok input {
  border-color: #10b981 !important;
}
.uw-field.is-bad input {
  border-color: #ef4444 !important;
}
.uw-field.is-checking input {
  border-color: #3b82f6 !important;
}
.uw-field.is-ok .uw-field-msg {
  color: #059669;
}
.uw-field.is-bad .uw-field-msg {
  color: #dc2626;
}
.uw-field.is-checking .uw-field-msg {
  color: #2563eb;
}

.uw-field-hint.uw-lock-hint {
  color: #dc2626;
  font-weight: 600;
}
.uw-auth-lock-banner {
  display: none;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}
.uw-auth-lock-banner.is-visible {
  display: flex;
}
.uw-auth-lock-banner i {
  margin-top: 2px;
  flex-shrink: 0;
}
.login-indicator.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
}

.uw-field-hint.uw-lock-hint {
  color: #dc2626;
  font-weight: 600;
}
.uw-auth-lock-banner {
  display: none;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}
.uw-auth-lock-banner.is-visible {
  display: flex;
}
.uw-auth-lock-banner i {
  margin-top: 2px;
  flex-shrink: 0;
}
.login-indicator.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
}

/* Grouped lists on Matches / Dashboard overview */
.uw-list-section-title {
  margin: 22px 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.uw-list-section-title:first-child {
  margin-top: 0;
}
.uw-card > .uw-list-section-title:first-child {
  margin-top: 0;
}

/* Matches type carousel (Local / Retroactive / National) */
.uw-match-type-carousel {
  margin-top: 4px;
}
.uw-match-type-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.uw-match-type-tabs::-webkit-scrollbar {
  display: none;
}
.uw-match-type-tab {
  appearance: none;
  border: none;
  background: transparent;
  padding: 10px 14px 12px;
  margin: 0;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease;
}
.uw-match-type-tab:hover {
  color: #475569;
}
.uw-match-type-tab.is-active {
  color: #0f172a;
}
.uw-match-type-tab.is-active::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
}
.uw-match-type-tab .uw-match-type-count {
  font-weight: 700;
  color: inherit;
  opacity: 0.7;
}
.uw-match-type-viewport {
  overflow: hidden;
  width: 100%;
}
.uw-match-type-track {
  display: flex;
  width: 300%;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.uw-match-type-panel {
  width: 33.333333%;
  flex: 0 0 33.333333%;
  padding-right: 2px;
  box-sizing: border-box;
  min-height: 80px;
}

/* Call-up card: match type badge upper-right */
.uw-callup-card .uw-callup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.uw-callup-card .uw-callup-head h3 {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.uw-callup-card .uw-callup-head .uw-match-type-row {
  flex-shrink: 0;
  margin: 2px 0 0;
}
