/* Huisbaas — ontwerp systeem */
:root {
  --ink: #17241e;
  --ink-soft: #33453b;
  --muted: #6f776e;
  --muted-2: #92998f;
  --green-950: #0c211a;
  --green-900: #102a20;
  --green-800: #16382a;
  --green-700: #1d4835;
  --green-600: #2a6248;
  --green-500: #3b7d5c;
  --green-100: #e4efe7;
  --green-50: #eff6f1;
  --cream: #f4f0e7;
  --cream-2: #ede7da;
  --paper: #fffdf8;
  --line: #e2dac9;
  --line-soft: #ece6d9;
  --terra: #bc5c39;
  --terra-soft: #f7e8e0;
  --gold: #c6a35c;
  --gold-soft: #f3ead6;
  --blue: #3d6b8c;
  --blue-soft: #e5eef4;
  --red: #aa3f34;
  --red-soft: #f8e5e2;
  --amber: #9a6b1f;
  --amber-soft: #f8eed8;
  --shadow-sm: 0 1px 2px rgba(23, 36, 30, .04);
  --shadow: 0 10px 30px -18px rgba(23, 36, 30, .35);
  --radius: 16px;
  --radius-sm: 10px;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 500; }
ul { margin: 0; padding: 0; list-style: none; }

.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- shell ---------- */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 272px;
  padding: 26px 18px 18px;
  display: flex;
  flex-direction: column;
  color: #e9e4d6;
  background:
    radial-gradient(420px 280px at 10% 0%, rgba(198, 163, 92, .14), transparent 65%),
    radial-gradient(500px 380px at 110% 90%, rgba(59, 125, 92, .22), transparent 60%),
    linear-gradient(160deg, var(--green-900), var(--green-950));
  border-right: 1px solid rgba(255, 255, 255, .05);
}
.sidebar::after {
  content: "";
  position: absolute;
  inset: auto 18px 92px 18px;
  height: 1px;
  background: rgba(255, 255, 255, .08);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 26px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #dcc183, var(--gold));
  color: var(--green-950);
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--display); font-size: 21px; letter-spacing: .2px; }
.brand-text small { font-family: var(--sans); font-size: 9.5px; letter-spacing: 1.7px; text-transform: uppercase; color: rgba(233, 228, 214, .5); margin-top: 5px; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; padding: 0 2px 18px; }
.nav::-webkit-scrollbar { width: 0; }
.nav-label {
  margin: 18px 12px 7px;
  font-size: 9.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(233, 228, 214, .38);
}
.nav-label:first-child { margin-top: 0; }
.nav-link {
  display: flex; align-items: center; gap: 11px;
  min-height: 39px; padding: 0 12px;
  border-radius: 9px;
  color: rgba(233, 228, 214, .72);
  font-size: 13.5px; font-weight: 500;
  transition: background .15s, color .15s;
  position: relative;
}
.nav-link .icon { width: 17px; height: 17px; opacity: .78; }
.nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-link.is-active { background: rgba(255, 255, 255, .105); color: #fffdf5; }
.nav-link.is-active::before {
  content: ""; position: absolute; left: -2px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 3px; background: var(--gold);
}
.nav-link.is-active .icon { color: var(--gold); opacity: 1; }
.nav-badge {
  margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 600;
  min-width: 19px; height: 19px; padding: 0 6px; border-radius: 20px;
  display: grid; place-items: center;
  background: var(--terra); color: #fff;
}
.sidebar-foot { margin-top: auto; padding-top: 12px; }
.user-chip {
  margin-top: 10px; display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .055);
}
.user-chip .avatar { background: #d9c393; color: var(--green-950); }
.user-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.user-meta strong { font-size: 12.5px; font-weight: 600; color: #f6f1e5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta small { font-size: 10.5px; color: rgba(233, 228, 214, .48); }
.user-chip form { margin-left: auto; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: var(--green-100); color: var(--green-700);
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
}
.main { margin-left: 272px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 20px;
  height: 70px; padding: 0 34px;
  background: rgba(244, 240, 231, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 218, 201, .75);
}
.global-search {
  display: flex; align-items: center; gap: 9px;
  width: min(460px, 45vw); height: 38px; padding: 0 12px;
  border: 1px solid transparent; border-radius: 9px;
  background: rgba(255, 253, 248, .6);
  color: var(--muted);
  transition: border .15s, background .15s;
}
.global-search:focus-within { background: var(--paper); border-color: var(--line); }
.global-search .icon { width: 16px; height: 16px; }
.global-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 12.5px; color: var(--ink); }
.global-search input::placeholder { color: var(--muted-2); }
.global-search kbd { font-family: var(--sans); font-size: 10px; color: var(--muted-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: 9px;
  border: 1px solid transparent; background: transparent;
  display: inline-grid; place-items: center; color: var(--ink-soft);
  transition: background .15s, border .15s;
}
.icon-btn:hover { background: rgba(255, 253, 248, .8); border-color: var(--line); }
.icon-btn-quiet { width: 30px; height: 30px; color: rgba(233, 228, 214, .65); }
.icon-btn-quiet:hover { background: rgba(255, 255, 255, .08); border-color: transparent; color: #fff; }
.notif-dot {
  position: absolute; top: 3px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 20px;
  background: var(--terra); color: #fff; font-size: 9.5px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--cream);
}
.date-chip { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); padding-left: 8px; }
.date-chip .icon { width: 15px; height: 15px; }
.menu-toggle { display: none; }
.content { width: 100%; max-width: 1460px; margin: 0 auto; padding: 30px 34px 44px; flex: 1; }
.page-footer {
  display: flex; justify-content: space-between; gap: 16px;
  max-width: 1460px; width: 100%; margin: 0 auto;
  padding: 18px 34px 26px;
  color: var(--muted-2); font-size: 10.5px; letter-spacing: .2px;
}
.page-footer .dot { opacity: .5; padding: 0 3px; }
.scrim { display: none; }

/* ---------- typography & utils ---------- */
.eyebrow { font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 7px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-head h1 { font-family: var(--display); font-size: clamp(29px, 3vw, 38px); line-height: 1.08; letter-spacing: -.5px; }
.page-head p { color: var(--muted); margin-top: 7px; max-width: 620px; font-size: 13px; }
.page-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.tiny { font-size: 10.5px; }
.strong { font-weight: 600; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 14px; } .mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 14px; }
.flex { display: flex; align-items: center; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 4px; }
.divider { height: 1px; background: var(--line-soft); margin: 18px 0; }
.serif { font-family: var(--display); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 39px; padding: 0 15px; border-radius: 9px;
  border: 1px solid transparent; background: var(--green-800); color: #fffdf5;
  font-size: 12.5px; font-weight: 600; letter-spacing: .1px;
  box-shadow: 0 1px 1px rgba(16, 42, 32, .12);
  transition: transform .12s, background .15s, border .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--green-700); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 16px; height: 16px; }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-secondary:hover { background: #fff; border-color: #d3c9b4; }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 253, 248, .7); }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #93352c; }
.btn-sm { height: 31px; padding: 0 11px; font-size: 11.5px; border-radius: 7px; }
.btn-sm .icon { width: 14px; height: 14px; }
.btn-block { width: 100%; }
.btn-link { padding: 0; border: 0; background: none; color: var(--green-600); font-weight: 600; font-size: 11.5px; }
.btn-link:hover { text-decoration: underline; }

/* ---------- cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 19px 22px 0; }
.card-head h2 { font-family: var(--display); font-size: 19px; letter-spacing: -.2px; }
.card-head p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.card-body { padding: 18px 22px 22px; }
.card-tight .card-body { padding: 13px 18px 16px; }

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi {
  position: relative; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 19px 16px;
}
.kpi::after { content: ""; position: absolute; right: -22px; top: -26px; width: 86px; height: 86px; border-radius: 50%; background: var(--green-50); opacity: .8; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.kpi-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.15px; color: var(--muted); font-weight: 600; }
.kpi-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--green-50); color: var(--green-600); }
.kpi-icon .icon { width: 15px; height: 15px; }
.kpi-value { font-family: var(--display); font-size: 29px; line-height: 1.15; margin: 12px 0 5px; letter-spacing: -.5px; position: relative; z-index: 1; }
.kpi-meta { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.kpi-meta .up { color: var(--green-600); font-weight: 600; }
.kpi-meta .down { color: var(--terra); font-weight: 600; }
.kpi-accent { background: linear-gradient(150deg, var(--green-800), var(--green-900)); border-color: var(--green-800); color: #f7f3e7; }
.kpi-accent::after { background: rgba(255, 255, 255, .05); }
.kpi-accent .kpi-label { color: rgba(247, 243, 231, .55); }
.kpi-accent .kpi-meta { color: rgba(247, 243, 231, .58); }
.kpi-accent .kpi-icon { background: rgba(255, 255, 255, .09); color: var(--gold); }

/* ---------- dashboard layout ---------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, 1fr); gap: 16px; align-items: start; }
.dash-stack { display: flex; flex-direction: column; gap: 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 26px 0 12px; }
.section-head h2 { font-family: var(--display); font-size: 21px; letter-spacing: -.3px; }
.section-head p { color: var(--muted); font-size: 11.5px; }
.section-head a { font-size: 11.5px; color: var(--green-600); font-weight: 600; }

/* chart */
.chart-legend { display: flex; align-items: center; gap: 14px; font-size: 10.5px; color: var(--muted); }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; }
.bars { display: flex; align-items: flex-end; gap: 9px; height: 190px; padding-top: 10px; }
.bar-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; }
.bar-stack { width: 100%; max-width: 34px; height: 100%; display: flex; align-items: flex-end; justify-content: center; position: relative; }
.bar-expected { position: absolute; bottom: 0; width: 100%; border-radius: 5px 5px 2px 2px; background: var(--cream-2); }
.bar-collected { position: absolute; bottom: 0; width: 100%; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--green-500), var(--green-700)); }
.bar-col.is-current .bar-expected { background: var(--gold-soft); }
.bar-label { font-size: 9.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .5px; }
.bar-empty { height: 2px; background: var(--line); width: 100%; }
.chart-summary { display: flex; gap: 26px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line-soft); }
.chart-summary div { display: flex; flex-direction: column; gap: 2px; }
.chart-summary strong { font-family: var(--display); font-size: 19px; }
.chart-summary span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }

/* attention */
.attention { display: flex; flex-direction: column; }
.attention-item {
  display: flex; align-items: flex-start; gap: 11px; padding: 12px 22px;
  border-top: 1px solid var(--line-soft); transition: background .15s;
}
.attention-item:first-child { border-top: 0; }
.attention-item:hover { background: #fcf9f1; }
.attention-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--amber-soft); color: var(--amber); }
.attention-icon .icon { width: 15px; height: 15px; }
.attention-icon.danger { background: var(--red-soft); color: var(--red); }
.attention-icon.info { background: var(--blue-soft); color: var(--blue); }
.attention-body { min-width: 0; flex: 1; }
.attention-body strong { display: block; font-size: 12px; font-weight: 600; line-height: 1.35; }
.attention-body span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attention-item > .icon { width: 14px; height: 14px; color: var(--muted-2); margin-top: 8px; }
.attention-empty { padding: 30px 22px; text-align: center; color: var(--muted); font-size: 12px; }

/* tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 9.5px; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--muted-2); font-weight: 600; padding: 0 12px 10px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; font-size: 12.5px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #fcf9f1; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table-compact td { padding: 9px 12px; }
.cell-stack { display: flex; flex-direction: column; gap: 1px; }
.cell-stack strong { font-weight: 600; }
.cell-stack span { font-size: 10.5px; color: var(--muted); }
.cell-main { display: flex; align-items: center; gap: 10px; }
.monogram {
  width: 36px; height: 36px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-family: var(--display); font-size: 14px; font-weight: 600;
  background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100);
}
.monogram.gold { background: var(--gold-soft); color: #7d5c20; border-color: #ecdfc2; }
.monogram.terra { background: var(--terra-soft); color: var(--terra); border-color: #f0d9ce; }

/* chips */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 21px; padding: 0 8px; border-radius: 20px;
  font-size: 9.5px; font-weight: 600; letter-spacing: .2px;
  background: var(--cream-2); color: var(--ink-soft); white-space: nowrap;
}
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }
.chip.no-dot::before { display: none; }
.chip-paid { background: var(--green-100); color: var(--green-700); }
.chip-open { background: var(--amber-soft); color: var(--amber); }
.chip-overdue { background: var(--red-soft); color: var(--red); }
.chip-partial { background: var(--blue-soft); color: var(--blue); }
.chip-neutral { background: var(--cream-2); color: var(--muted); }
.chip-info { background: var(--blue-soft); color: var(--blue); }
.chip-danger { background: var(--red-soft); color: var(--red); }
.chip-warning { background: var(--amber-soft); color: var(--amber); }
.chip-success { background: var(--green-100); color: var(--green-700); }
.epc { display: inline-grid; place-items: center; width: 26px; height: 22px; border-radius: 5px; font-size: 10px; font-weight: 700; color: #fff; }
.epc-A, .epc-B { background: #2f7d52; }
.epc-C { background: #82a43b; }
.epc-D { background: #c49631; }
.epc-E { background: #c06b34; }
.epc-F, .epc-G { background: #a83f34; }

/* pills / filters */
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 31px; padding: 0 12px; border-radius: 20px;
  border: 1px solid var(--line); background: transparent;
  font-size: 11px; color: var(--muted); font-weight: 500;
}
.pill:hover { background: var(--paper); }
.pill.is-active { background: var(--green-800); border-color: var(--green-800); color: #fffdf5; }
.pill .count { font-size: 9.5px; opacity: .7; }

/* property table */
.prop-row .monogram { width: 40px; height: 40px; }
.occupancy { display: flex; align-items: center; gap: 8px; min-width: 100px; }
.occupancy-bar { flex: 1; height: 5px; border-radius: 4px; background: var(--cream-2); overflow: hidden; }
.occupancy-bar span { display: block; height: 100%; border-radius: 4px; background: var(--green-600); }
.occupancy em { font-style: normal; font-size: 10.5px; color: var(--muted); min-width: 28px; }

/* activity */
.activity { display: flex; flex-direction: column; }
.activity-item { display: flex; gap: 12px; padding: 11px 22px; border-top: 1px solid var(--line-soft); }
.activity-item:first-child { border-top: 0; }
.activity-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); margin-top: 6px; flex: none; box-shadow: 0 0 0 3px var(--green-50); }
.activity-dot.terra { background: var(--terra); box-shadow: 0 0 0 3px var(--terra-soft); }
.activity-dot.gold { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.activity-body { min-width: 0; }
.activity-body strong { display: block; font-size: 11.5px; font-weight: 600; }
.activity-body span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.activity-body time { font-size: 9.5px; color: var(--muted-2); margin-top: 3px; display: block; }

/* hero/detail */
.hero-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 28px 30px;
  background:
    radial-gradient(520px 260px at 95% -20%, rgba(198, 163, 92, .22), transparent 60%),
    radial-gradient(400px 300px at -10% 120%, rgba(59, 125, 92, .28), transparent 60%),
    linear-gradient(145deg, var(--green-800), var(--green-950));
  color: #f8f3e6;
  border: 1px solid rgba(255, 255, 255, .08);
}
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.hero-card .eyebrow { color: var(--gold); }
.hero-card h1 { font-family: var(--display); font-size: clamp(27px, 3vw, 38px); letter-spacing: -.5px; line-height: 1.08; }
.hero-card .hero-address { color: rgba(248, 243, 230, .62); font-size: 12px; margin-top: 7px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat span { font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(248, 243, 230, .45); }
.hero-stat strong { font-family: var(--display); font-size: 22px; font-weight: 500; }
.hero-stat em { font-style: normal; font-size: 10px; color: rgba(248, 243, 230, .55); }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-actions .btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .12); color: #fff; }
.hero-actions .btn:hover { background: rgba(255, 255, 255, .16); }
.hero-actions .btn-light { background: var(--gold); border-color: var(--gold); color: var(--green-950); }
.hero-actions .btn-light:hover { background: #d4b26c; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.detail-stack { display: flex; flex-direction: column; gap: 16px; }
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.info-item span { display: block; font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-2); margin-bottom: 3px; }
.info-item strong { font-size: 12.5px; font-weight: 600; }
.info-item a { color: var(--green-600); }

/* unit cards */
.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }
.unit-card { border: 1px solid var(--line); border-radius: 12px; padding: 15px; background: #fffdf8; transition: border .15s, transform .15s; }
.unit-card:hover { border-color: #cfc4ac; transform: translateY(-1px); }
.unit-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.unit-card h3 { font-size: 13px; font-weight: 600; }
.unit-card .rent { font-family: var(--display); font-size: 20px; margin-top: 12px; }
.unit-card .rent small { font-family: var(--sans); font-size: 9.5px; color: var(--muted); font-weight: 400; }
.unit-card .meta { display: flex; gap: 10px; color: var(--muted); font-size: 10.5px; margin-top: 3px; }
.unit-card .tenant { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 10.5px; color: var(--muted); }

/* forms */
.form-card { max-width: 860px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 10.5px; font-weight: 600; letter-spacing: .3px; color: var(--ink-soft); }
.field .hint { font-size: 10px; color: var(--muted-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 42px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 9px;
  background: #fffefb; color: var(--ink); font-size: 12.5px;
  outline: none; transition: border .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(42, 98, 72, .1); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field-row { display: flex; gap: 10px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 20px; margin-top: 6px; border-top: 1px solid var(--line-soft); }
.form-actions.left { justify-content: space-between; }
.form-section { padding: 22px; border-bottom: 1px solid var(--line-soft); }
.form-section:last-child { border-bottom: 0; }
.form-section h2 { font-family: var(--display); font-size: 18px; margin-bottom: 3px; }
.form-section > p { color: var(--muted); font-size: 11px; margin-bottom: 18px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--ink-soft); }
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--green-700); }
.upload-zone {
  border: 1.5px dashed #d3c8b1; border-radius: 12px; padding: 22px;
  text-align: center; color: var(--muted); background: #fdfaf3; font-size: 11.5px;
}
.upload-zone .icon { width: 24px; height: 24px; margin: 0 auto 8px; color: var(--muted-2); }
.upload-zone input { margin-top: 9px; font-size: 11px; }

/* detail lists */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.list-row:first-child { border-top: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row strong { font-size: 12px; font-weight: 600; display: block; }
.list-row span { font-size: 10.5px; color: var(--muted); display: block; }
.list-row .num { font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }

/* kanban */
.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; align-items: start; }
.board-col { background: rgba(255, 253, 248, .45); border: 1px solid var(--line); border-radius: 13px; padding: 10px; }
.board-col-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 10px; }
.board-col-head h2 { font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; gap: 7px; }
.board-col-head .count { font-size: 10px; color: var(--muted); background: var(--cream-2); border-radius: 20px; padding: 1px 7px; }
.board-col-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.board-col-head .dot.open { background: var(--terra); }
.board-col-head .dot.progress { background: var(--blue); }
.board-col-head .dot.planned { background: var(--gold); }
.board-col-head .dot.done { background: var(--green-600); }
.ticket {
  display: block; background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px; margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.ticket:hover { border-color: #cfc4ac; }
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.ticket h3 { font-size: 12px; font-weight: 600; line-height: 1.35; }
.ticket p { font-size: 10.5px; color: var(--muted); margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ticket-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line-soft); font-size: 9.5px; color: var(--muted-2); }
.prio { font-size: 9px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.prio-hoog, .prio-dringend { color: var(--terra); }
.prio-normaal { color: var(--muted); }
.prio-laag { color: var(--muted-2); }

/* meter bars */
.meter-list { display: flex; flex-direction: column; gap: 14px; }
.meter-row { display: grid; grid-template-columns: 130px 1fr 90px; gap: 12px; align-items: center; }
.meter-row .name { font-size: 11.5px; font-weight: 600; }
.meter-row .name span { display: block; font-weight: 400; font-size: 9.5px; color: var(--muted); }
.meter-track { height: 9px; background: var(--cream-2); border-radius: 6px; overflow: hidden; }
.meter-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--green-500), var(--green-700)); border-radius: 6px; }
.meter-row .val { text-align: right; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.meter-row .val span { display: block; font-size: 9.5px; color: var(--muted); }

/* complaint */
.complaint-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--paper); }
.complaint-card + .complaint-card { margin-top: 10px; }
.complaint-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.complaint-head h3 { font-size: 13px; font-weight: 600; }
.complaint-head p { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.complaint-body { font-size: 12px; color: var(--ink-soft); margin-top: 10px; line-height: 1.6; }
.response-box { margin-top: 12px; padding: 12px 14px; background: var(--green-50); border-radius: 9px; border-left: 3px solid var(--green-500); font-size: 11.5px; }
.response-box strong { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .9px; color: var(--green-700); margin-bottom: 4px; }

/* bank */
.bank-connect { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bank-step { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.bank-step .step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--green-800); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; margin-bottom: 10px; }
.bank-step h3 { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.bank-step p { font-size: 10.5px; color: var(--muted); line-height: 1.55; }
.match-box { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.match-box select { height: 30px; border: 1px solid var(--line); border-radius: 7px; background: #fffefb; font-size: 10.5px; padding: 0 6px; max-width: 250px; }
.amount-in { color: var(--green-700); font-weight: 600; }
.amount-out { color: var(--terra); font-weight: 600; }

/* empty state */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .empty-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--green-50); color: var(--green-600); display: grid; place-items: center; margin: 0 auto 13px; }
.empty h3 { font-family: var(--display); font-size: 19px; color: var(--ink); margin-bottom: 4px; }
.empty p { font-size: 11.5px; max-width: 360px; margin: 0 auto 16px; }

/* flash */
.flash {
  display: flex; align-items: center; gap: 9px; padding: 11px 14px;
  border-radius: 9px; margin-bottom: 18px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--green-100); background: var(--green-50); color: var(--green-700);
}
.flash.error { border-color: #f0d3cd; background: var(--red-soft); color: var(--red); }
.flash .icon { width: 16px; height: 16px; }

/* login */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--cream); }
.auth-art {
  position: relative; overflow: hidden; padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(700px 480px at 100% 0%, rgba(198, 163, 92, .2), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(59, 125, 92, .3), transparent 60%),
    linear-gradient(150deg, var(--green-900), var(--green-950));
  color: #f5f0e2;
}
.auth-art::after {
  content: ""; position: absolute; right: -80px; bottom: -100px;
  width: 420px; height: 520px; opacity: .12;
  background-image: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 28px), repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 28px);
  transform: rotate(-8deg);
}
.auth-art .brand { padding: 0; }
.auth-quote { position: relative; z-index: 1; max-width: 470px; }
.auth-quote blockquote { font-family: var(--display); font-size: clamp(28px, 3.3vw, 43px); line-height: 1.18; letter-spacing: -.8px; margin: 0 0 18px; }
.auth-quote p { color: rgba(245, 240, 226, .55); font-size: 12px; max-width: 380px; }
.auth-art-foot { position: relative; z-index: 1; font-size: 10px; color: rgba(245, 240, 226, .38); letter-spacing: .4px; }
.auth-form-wrap { display: grid; place-items: center; padding: 40px; }
.auth-form { width: 100%; max-width: 360px; }
.auth-form h1 { font-family: var(--display); font-size: 30px; letter-spacing: -.5px; margin-bottom: 5px; }
.auth-form > p { color: var(--muted); font-size: 12px; margin-bottom: 24px; }
.auth-form .field { margin-bottom: 13px; }
.auth-error { background: var(--red-soft); color: var(--red); border: 1px solid #f0d3cd; border-radius: 8px; padding: 9px 12px; font-size: 11.5px; margin-bottom: 14px; }
.auth-demo { margin-top: 18px; padding: 12px 14px; border-radius: 9px; background: var(--cream-2); font-size: 10.5px; color: var(--muted); line-height: 1.6; }
.auth-demo strong { color: var(--ink-soft); }

/* error page */
.error-page { max-width: 520px; margin: 8vh auto; text-align: center; }
.error-code { font-family: var(--display); font-size: 90px; line-height: 1; color: var(--green-800); opacity: .18; }
.error-page h1 { font-family: var(--display); font-size: 30px; margin-top: -14px; }
.error-page p { color: var(--muted); margin-top: 8px; }

/* responsive */
@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid, .detail-grid { grid-template-columns: 1fr; }
  .board { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .bank-connect { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; width: 280px; box-shadow: 20px 0 60px rgba(12, 33, 26, .3); }
  body.menu-open .sidebar { transform: translateX(0); }
  body.menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(12, 33, 26, .42); backdrop-filter: blur(2px); }
  .main { margin-left: 0; }
  .menu-toggle { display: inline-grid; }
  .topbar { padding: 0 18px; gap: 12px; height: 62px; }
  .global-search { width: auto; flex: 1; }
  .global-search kbd { display: none; }
  .date-chip { display: none; }
  .content { padding: 22px 18px 36px; }
  .page-footer { padding: 14px 18px 22px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-form-wrap { padding: 30px 22px; min-height: 100vh; }
}
@media (max-width: 620px) {
  .kpi-grid { grid-template-columns: 1fr; gap: 10px; }
  .kpi-value { font-size: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .info-list { grid-template-columns: 1fr; }
  .board { display: flex; overflow-x: auto; padding-bottom: 8px; }
  .board-col { min-width: 255px; }
  .hero-card { padding: 22px; }
  .hero-stats { gap: 20px; }
  .hero-stat strong { font-size: 19px; }
  .meter-row { grid-template-columns: 100px 1fr 70px; }
  .table th, .table td { padding-left: 8px; padding-right: 8px; }
  .page-head-actions { width: 100%; }
  .page-head-actions .btn { flex: 1; }
  .card-head { flex-wrap: wrap; }
  .card-head > .btn, .card-head > form { margin-left: auto; }
  .unit-grid { grid-template-columns: 1fr; }
  .detail-grid, .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .table-wrap { max-width: 100%; }
  .card { min-width: 0; }
  .hero-top { flex-direction: column; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .card-pad { padding: 17px; }
  .card-head { padding: 16px 17px 0; }
  .card-body { padding: 14px 17px 17px; }
}
