:root {
  --ink: #17211f;
  --muted: #60706b;
  --paper: #f6f4ef;
  --line: #d9ded8;
  --sage: #708a7c;
  --copper: #a9653f;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.accounting-overview { background: #f7f9fa; min-height: calc(100vh - 58px); }
.accounting-overview h1, .receipt-description, .receipt-status { overflow-wrap: anywhere; }
.period-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.period-controls > div:first-child { width: 210px; }
.period-controls > div:nth-child(2) { width: 100px; }
.period-controls button { min-height: 2.8rem; }
.overview-metrics { display: grid; grid-template-columns: 2fr 1fr 1fr; border-bottom: 1px solid var(--line); }
.overview-metrics > * { min-width: 0; padding: 24px 24px 24px 0; }
.overview-metrics > * + * { padding-left: 24px; border-left: 1px solid var(--line); }
.overview-amount { font-size: 1.75rem; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-link { color: var(--ink); text-decoration: none; }
.metric-link:hover { background: #edf2f3; }
.metric-link:focus-visible { outline: 2px solid #147f70; outline-offset: -2px; }
.receipt-description { min-width: 160px; max-width: 300px; }
.receipt-status { min-width: 150px; max-width: 240px; }
.receipt-table td { padding-top: 16px; padding-bottom: 16px; }
.receipt-table th { font-size: .8rem; color: var(--muted); }
.empty-receipts { border-top: 1px solid var(--line); }
.accounting-overview .nav-link { color: var(--ink); }
@media (max-width: 767.98px) {
  .overview-metrics { grid-template-columns: 1fr 1fr; }
  .overview-metrics > :first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .overview-metrics > :nth-child(2) { padding-left: 0; border-left: 0; }
  .overview-metrics > * { padding-right: 12px; }
  .overview-metrics > * + * { padding-left: 12px; }
  .overview-amount { font-size: 1.5rem; }
}

.navbar-brand {
  letter-spacing: 0;
}

.hero-band {
  background:
    linear-gradient(110deg, rgba(246, 244, 239, 0.95), rgba(246, 244, 239, 0.78)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  padding: 6rem 0 4rem;
}

.eyebrow {
  color: var(--copper);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.audit-panel,
.tool-card,
.auth-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(23, 33, 31, .08);
}

.audit-panel {
  padding: 1.5rem;
}

.flow-row {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.flow-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.flow-row span {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: white;
  display: flex;
  font-weight: 700;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.flow-row p {
  color: var(--muted);
  margin: .2rem 0 0;
}

.status-dot {
  background: #2f9d68;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(47, 157, 104, .14);
  height: .75rem;
  margin-top: .45rem;
  width: .75rem;
}

.auth-wrap {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 58px);
  padding: 3rem 1rem;
}

.auth-card {
  max-width: 520px;
  padding: 2rem;
  width: 100%;
}

.portal-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 3rem 0;
}

.metric-strip {
  align-items: stretch;
  display: flex;
  gap: .75rem;
}

.metric-strip div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 8rem;
  padding: 1rem;
}

.metric-strip strong {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
}

.metric-strip span {
  color: var(--muted);
  font-size: .9rem;
}

.tool-card {
  height: 100%;
  padding: 1.35rem;
}

.btn {
  border-radius: 6px;
}

.form-control,
.form-select {
  border-color: #cbd3cc;
  border-radius: 6px;
  min-height: 2.8rem;
}

.table {
  --bs-table-bg: transparent;
}

@media (max-width: 575.98px) {
  .hero-band {
    padding: 4rem 0 3rem;
  }

  .display-4 {
    font-size: 2.35rem;
  }

  .metric-strip {
    width: 100%;
  }

  .metric-strip div {
    flex: 1;
    min-width: 0;
  }
}
