/* RGAB client portal stylesheet. Shares brand tokens with the public site
   and employee portal (duplicated rather than cross-linked — this may
   deploy to a different path/subdomain, see ARCHITECTURE.md). */

:root {
  --navy: #0C1B2A;
  --gold: #B89555;
  --sand: #E7D8BC;
  --porcelain: #F7F5F0;
  --graphite: #24282C;
  --sage: #8D988C;
  --soft-white: #FFFDF9;
  --font-headline: 'Cormorant Garamond', serif;
  --font-body: 'Manrope', sans-serif;
  --radius: 6px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--porcelain);
}
h1, h2, h3 { font-family: var(--font-headline); color: var(--navy); margin: 0 0 0.5em; }

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  background: var(--soft-white);
  border: 1px solid rgba(12,27,42,0.08);
  border-radius: var(--radius);
  padding: 48px 40px;
  max-width: 400px;
  width: 100%;
}
.login-card img { height: 48px; margin-bottom: 24px; }
.login-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 16px 0 6px;
  color: var(--navy);
}
.login-card input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(12,27,42,0.2);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.login-card button {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.login-card button:hover { opacity: 0.9; }
.login-error {
  background: #fdecec;
  color: #8a1f1f;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-top: 16px;
  display: none;
}
.login-error.visible { display: block; }
.login-note {
  font-size: 0.78rem;
  color: var(--sage);
  margin-top: 24px;
  text-align: center;
}
.login-links {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-top: 12px;
}
.login-links a { color: var(--sage); text-decoration: none; }
.login-links a:hover { color: var(--gold); }

.dash-header {
  background: var(--navy);
  color: var(--soft-white);
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.dash-header img { height: 32px; }
.dash-header button {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--soft-white);
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.8rem;
}
.dash-main { padding: 48px 32px; max-width: 960px; margin: 0 auto; }

/* ---------- Case overview ---------- */
.case-card {
  background: var(--soft-white);
  border: 1px solid rgba(12,27,42,0.08);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 32px;
}
.case-card-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.case-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.case-meta { font-size: 0.85rem; color: var(--sage); }

.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}
.stepper .step-pill {
  flex: 1;
  min-width: 130px;
  text-align: center;
  padding: 14px 8px;
  border-radius: var(--radius);
  background: var(--porcelain);
  border: 1px solid rgba(12,27,42,0.08);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sage);
}
.stepper .step-pill.done {
  background: var(--navy);
  color: var(--soft-white);
  border-color: var(--navy);
}
.stepper .step-pill.current {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.stat-tile {
  background: var(--porcelain);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.stat-tile .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.portal-section {
  background: var(--soft-white);
  border: 1px solid rgba(12,27,42,0.08);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.portal-section h3 { display: flex; align-items: center; justify-content: space-between; }

.upload-dropzone {
  border: 1px dashed rgba(12,27,42,0.25);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--sage);
  font-size: 0.85rem;
  margin-top: 16px;
}

.placeholder-note {
  font-size: 0.85rem;
  color: var(--sage);
  font-style: italic;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 16px;
}
table.payment-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
table.payment-table th, table.payment-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(12,27,42,0.08);
}
table.payment-table th {
  color: var(--sage);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
