/* LIVSTO portaal — rustig, zakelijk, met een dossiermap-accent */

:root {
  --ink: #1f2a30;
  --paper: #fbfaf7;
  --line: #d8d4cb;
  --tab: #831C62;          /* merkkleur (magenta) */
  --tab-soft: #f4e9f0;     /* lichte merktint */
  --error: #a4302a;
  --radius: 6px;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

.wordmark { font-weight: 700; letter-spacing: 0.08em; }
.wordmark span {
  font-weight: 400;
  color: var(--tab);
  margin-left: 0.35em;
  letter-spacing: 0.02em;
}

/* ── Login ── */
.login-body { display: grid; place-items: center; min-height: 100vh; }
.login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--tab);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem;
  width: min(380px, 90vw);
  text-align: center;
}
.login-intro { color: #5a6468; margin: 1rem 0 1.75rem; }
#googleButton { display: flex; justify-content: center; }

/* ── Topbar ── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.user-name { color: #5a6468; font-size: 0.95rem; }

.btn-quiet {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}
.btn-quiet:hover { border-color: var(--tab); color: var(--tab); }
.btn-quiet:focus-visible { outline: 2px solid var(--tab); outline-offset: 2px; }

/* ── Pagina (volledige breedte) ── */
.container {
  width: 100%;
  max-width: none;
  margin: 1.5rem 0 2.5rem;
  padding: 0 1.5rem;
}

.page-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
h1 { font-size: 1.4rem; margin: 0; }
.count { color: #8a8378; font-weight: 400; font-size: 1rem; }

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: #5a6468;
  cursor: pointer;
  user-select: none;
}
.toggle input { accent-color: var(--tab); width: 1rem; height: 1rem; }

/* ── Filterbalk ── */
.filters {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.search {
  flex: 1 1 260px;
  min-width: 200px;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9rem;
}
.search:focus { outline: 2px solid var(--tab); outline-offset: 1px; border-color: var(--tab); }

.bool-filters { display: flex; flex-wrap: wrap; gap: 0.6rem 0.9rem; }
.filter-bool {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.72rem;
  color: #5a6468;
}
.filter-bool select {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.filter-bool select:focus { outline: 2px solid var(--tab); outline-offset: 1px; }

/* ── Tabel ── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.dossier-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  /* één uniform lettertype/grootte voor alle velden */
  font-size: 0.88rem;
  font-weight: 400;
}
.dossier-table th {
  text-align: left;
  font-size: 0.9rem;          /* zelfde grootte als de cellen */
  font-weight: 600;
  color: #fff;                /* titels in het wit */
  background: #831C62;        /* titelbalk in merkkleur */
  padding: 0.55rem 0.9rem;
  border-bottom: none;
  white-space: nowrap;
}
.dossier-table td {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--line);
  font-weight: 400;           /* alle velden normaal gewicht */
  white-space: nowrap;
}
.dossier-table tbody tr:last-child td { border-bottom: none; }

/* enkel het dossiernummer in het vet */
.cell-dossiernummer {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cell-date { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ja/nee-kolommen gecentreerd */
.dossier-table th.col-bool,
.dossier-table td.col-bool { text-align: center; }

/* ja/nee-badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
}
.badge-yes { background: #e3f2ec; color: #1f7a5a; }
.badge-no  { background: #f0eeea; color: #8a8378; }

.dossier-table tbody tr:hover { background: var(--paper); }

.status { color: #5a6468; }
.error { color: var(--error); }

/* Geldkolom rechts uitgelijnd */
.dossier-table th.col-money,
.cell-money { text-align: right; font-variant-numeric: tabular-nums; }

/* Totaalvoet */
.dossier-table tfoot td {
  padding: 0.6rem 0.7rem;
  border-top: 2px solid var(--line);
  background: var(--tab-soft);
  font-weight: 700;
  white-space: nowrap;
}
.foot-label { color: #5a6468; }
.foot-total { color: var(--ink); }


/* ── Logo ── */
.brand { display: inline-flex; align-items: center; line-height: 0; }
.logo { height: 30px; width: auto; display: block; }
.logo-login { height: 40px; margin: 0 auto 0.5rem; }
