/* ZSP styling, taken from Younes' design mockup (Uitbetaling.dc.html). */
:root {
    --navy: #12384F;
    --teal: #3FBFB5;
    --teal-dark: #1A7069;
    --teal-soft: #E6F6F4;
    --coral: #E8574F;
    --ink: #12384F;
    --body: #3E5566;
    --muted: #5A6B78;
    --line: #E3E9ED;
    --brand-grey: #D6DEE3;
    --red: #B23A33;
    --warn: #A0670F;
    --bg: #FFFFFF;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Nunito', system-ui, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; }
a { color: var(--teal-dark); }
a:hover { color: var(--navy); }
h1 { margin: 8px 0 0; font-size: 40px; line-height: 1.15; font-weight: 800; }
h2 { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
p { line-height: 1.55; }
.muted { color: var(--muted); }

/* Brand mark */
.brand { display: flex; align-items: center; }
.brand span { font-weight: 800; font-size: 14px; padding: 5px 10px; letter-spacing: .06em; }
.brand .zsp { background: var(--brand-grey); color: var(--navy); }
.brand .netwerk { background: var(--navy); color: #fff; }
.brand .label { margin-left: 12px; font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: 0; padding: 0; }

/* Desktop backoffice */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 40px; }
.site-header .brand { padding: 16px 0; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; align-self: stretch; }
.site-header nav a { display: flex; align-items: center; padding: 0 14px; min-height: 56px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; }
.site-header nav a.active { font-weight: 800; color: var(--navy); border-bottom-color: var(--teal); }
.site-header .sample { font-size: 12px; font-weight: 700; color: var(--red); }
.site-header form button { background: none; border: 0; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }

.hero { background: var(--teal-soft); clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); }
.hero .wrap { padding-top: 36px; padding-bottom: 64px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero .text { flex: 1 1 520px; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 700; color: var(--teal-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.flash { margin: 12px 0 0; font-weight: 700; color: var(--teal-dark); }

.btn { font: inherit; font-weight: 700; font-size: 15px; color: var(--navy); background: #fff; border: 1px solid var(--navy); padding: 10px 16px; min-height: 46px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.btn-primary { font-weight: 800; color: #fff; background: var(--coral); border-color: var(--coral); }
.btn:hover { color: var(--navy); filter: brightness(.97); }
.btn-primary:hover { color: #fff; }

main.page { max-width: 1240px; margin: 0 auto; padding: 8px 24px 56px; display: flex; flex-direction: column; gap: 40px; }
.scroll { overflow-x: auto; }

select { font: inherit; font-weight: 700; color: var(--navy); background: #fff; border: 1px solid var(--navy); padding: 10px 12px; min-height: 46px; }

table { width: 100%; border-collapse: collapse; }
th { padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); border-bottom: 2px solid var(--navy); white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid var(--line); font-size: 15px; white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.name { font-weight: 700; }
.name a { color: inherit; text-decoration: none; }
.name a:hover { color: var(--teal-dark); text-decoration: underline; }
tr.total td { font-weight: 800; border-top: 2px solid var(--navy); border-bottom: 0; }

.explain { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.explain h2 { margin: 0; }
.explain p { margin: 6px 0 0; color: var(--body); }

.status { font-weight: 700; }
.s-goedgekeurd, .s-approved, .s-done { color: var(--teal-dark); }
.s-uitgevallen, .s-rejected, .s-withheld, .neg { color: var(--red); }
.s-bereikt, .s-reached { color: var(--navy); }
.s-nog-bellen, .s-pending, .s-unreachable { color: var(--warn); }
.s-concept { color: var(--muted); }
.flag { color: var(--red); font-weight: 700; }

/* Mobile werver app */
.phone { max-width: 420px; margin: 0 auto; min-height: 100vh; background: #fff; display: flex; flex-direction: column; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.phone header { border-bottom: 1px solid var(--line); padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; }
.phone header form button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.phone main { flex: 1; padding: 20px; }
.phone h1 { font-size: 28px; }
.phone .tabs { display: flex; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #fff; }
.phone .tabs a { flex: 1; text-align: center; padding: 14px; color: var(--muted); font-weight: 700; text-decoration: none; }
.phone .tabs a.active { color: var(--navy); box-shadow: inset 0 3px 0 var(--teal); }
.demo-note { font-size: 12px; color: var(--muted); margin-top: 40px; }

.big { font-size: 44px; font-weight: 800; line-height: 1; }
.bar { position: relative; height: 18px; background: var(--line); margin: 34px 0 30px; }
.bar .fill { position: absolute; inset: 0 auto 0 0; background: var(--teal); }
.bar .mark { position: absolute; top: -26px; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--muted); }
.bar .mark::after { content: ''; position: absolute; left: 50%; top: 20px; height: 26px; border-left: 2px dashed var(--navy); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 16px 0; }
.stats div { padding: 12px 0; }
.stats strong { display: block; font-size: 22px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 16px; }
.chips a { padding: 6px 12px; border: 1px solid var(--line); color: var(--ink); font-size: 13px; text-decoration: none; }
.chips a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }

/* Login */
.login { max-width: 380px; margin: 10vh auto; padding: 32px; border: 1px solid var(--line); border-top: 4px solid var(--teal); }
.login h1 { font-size: 28px; }
.login label { display: block; font-weight: 700; margin: 16px 0 6px; }
.login input[type=email], .login input[type=password] { width: 100%; padding: 10px 12px; font: inherit; border: 1px solid var(--line); min-height: 46px; }
.login button { width: 100%; margin-top: 20px; }
.error { color: var(--red); font-size: 14px; margin-top: 8px; }

@media (max-width: 640px) {
    h1 { font-size: 30px; }
}
