/* Password gate */
.pw-gate {
  position: fixed; inset: 0;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 1.5rem;
}
.pw-gate-inner {
  width: 100%; max-width: 22rem;
  background: var(--black-soft);
  border: 1px solid rgba(212, 162, 76, 0.18);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  text-align: center;
}
.pw-logo { width: 9rem; margin: 0 auto 1.5rem; display: block; }
.pw-input {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--black);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.5rem;
  color: var(--white);
  font: inherit;
  text-align: center;
  letter-spacing: 0.1em;
}
.pw-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,162,76,0.18); }
.pw-error { font-size: 0.85rem; color: #ef4444; margin-top: 0.5rem; }

/* Dashboard layout */
.dashboard { background: var(--surface); min-height: 100vh; }
.dash-header { background: var(--black); border-bottom: 1px solid rgba(212,162,76,0.15); position: sticky; top: 0; z-index: 30; }
.dash-header-inner { max-width: 90rem; margin: 0 auto; padding: 0.85rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.dash-loading, .dash-error { max-width: 40rem; margin: 4rem auto; padding: 2rem; text-align: center; color: var(--ink-muted); }
.dash-error { background: var(--white); border: 1px solid rgba(0,0,0,0.08); border-radius: 1rem; }
.dash-error code { background: rgba(0,0,0,0.06); padding: 0.1em 0.3em; border-radius: 0.25rem; font-size: 0.85em; }

#dash-main { max-width: 90rem; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }

/* Stats strip */
.stats-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.75rem; margin-bottom: 1.5rem;
}
.stat { background: var(--white); border: 1px solid rgba(0,0,0,0.06); border-radius: 0.75rem; padding: 1rem 1.25rem; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 0.25rem; }
.stat-value { font-family: 'Fraunces', Georgia, serif; font-size: 2rem; color: var(--gold-deep); font-weight: 600; line-height: 1; }

/* Follow-up banner */
.followup-banner {
  background: linear-gradient(135deg, rgba(212,162,76,0.12), rgba(212,162,76,0.04));
  border: 1px solid rgba(212,162,76,0.35);
  border-left: 4px solid var(--gold);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.followup-list { list-style: disc; padding-left: 1.25rem; font-size: 0.9rem; color: var(--ink); }
.followup-list li { margin: 0.25rem 0; }
.followup-list .name { font-weight: 600; color: var(--ink); }
.followup-list .meta { color: var(--ink-muted); font-size: 0.85em; }

/* Tabs */
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid rgba(0,0,0,0.08); margin-bottom: 1.25rem; overflow-x: auto; }
.tab {
  padding: 0.65rem 1.1rem; background: transparent; border: 0; border-bottom: 2px solid transparent;
  color: var(--ink-muted); font: inherit; font-weight: 500; font-size: 0.95rem; cursor: pointer;
  white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--gold-deep); border-bottom-color: var(--gold); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Tables */
.table-wrap { background: var(--white); border: 1px solid rgba(0,0,0,0.06); border-radius: 0.75rem; overflow: hidden; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.dash-table th, .dash-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.05); vertical-align: top; }
.dash-table thead th { background: rgba(0,0,0,0.025); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); }
.dash-table tbody tr:hover { background: rgba(212,162,76,0.04); }
.dash-table tbody tr:last-child td { border-bottom: 0; }
.dash-table.compact th, .dash-table.compact td { padding: 0.5rem 0.75rem; font-size: 0.88rem; }
.dash-table tfoot th { font-weight: 700; background: rgba(212,162,76,0.08); }
.empty-state { padding: 3rem 1rem; text-align: center; color: var(--ink-muted); }

/* Status pills */
.pill { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.pill-pending { background: rgba(120,120,120,0.12); color: #555; }
.pill-confirmed { background: rgba(212,162,76,0.18); color: var(--gold-deep); }
.pill-completed { background: rgba(34,134,58,0.12); color: #1a7a35; }
.pill-cancelled { background: rgba(239,68,68,0.1); color: #c53030; }

/* Photo links */
.photo-link { color: var(--gold-deep); font-weight: 500; text-decoration: none; }
.photo-link:hover { text-decoration: underline; }
.photo-link::before { content: "📷  "; }

/* Reports grid */
.reports-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; }
.report-dl { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1rem; font-size: 0.95rem; }
.report-dl dt { color: var(--ink-muted); }
.report-dl dd { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.dash-footer { max-width: 90rem; margin: 0 auto; padding: 1rem 1.25rem; text-align: center; }

/* Note: .admin-bar (Company Login strip on public pages) lives in styles.css since it's used outside the dashboard. */
