/* FixIT Make – VIVES-huisstijl
   Rood #E00020, donker #1E1E1E, warm grijs #EFEEE9, Poppins, hoekige vormen. */

:root {
  --red: #e00020;
  --red-dark: #c4001c;
  --dark: #1e1e1e;
  --grey: #efeee9;
  --page: #f7f6f2;
  --line: #e2e0d9;
  --input: #bbbbbb;
  --muted: #555555;
  --font: Poppins, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--dark); font-family: var(--font); font-size: 15px; line-height: 1.5; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { margin: 0; line-height: 1.1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.inline-form { display: inline; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .bar { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--dark); }
.brand:hover { color: var(--dark); }
.brand-mark { display: flex; flex-direction: column; line-height: 1; }
.brand-mark small { font-size: 11px; font-weight: 500; }
.brand-mark strong { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.brand-divider { width: 1px; height: 36px; background: #d8d8d8; }
.brand-app { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.brand-app span { display: block; font-weight: 500; font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--muted); }
.main-nav { display: flex; gap: 32px; }
.main-nav a { color: var(--dark); text-decoration: none; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.03em; padding: 8px 0; border-bottom: 3px solid transparent; }
.main-nav a[aria-current="page"] { border-bottom-color: var(--red); }
.user-box { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.avatar.is-admin { background: var(--red); }
.avatar.is-team { background: var(--grey); color: var(--dark); }

/* ---------- Hero ---------- */
.hero { background: var(--dark); color: #fff; }
.hero .container { padding-top: 56px; padding-bottom: 64px; }
.hero h1 { font-size: 56px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; max-width: 820px; margin: 18px 0 16px; line-height: 1; }
.hero p { margin: 0; font-size: 17px; line-height: 1.6; color: #dddddd; max-width: 640px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; border: 1px solid #4a4a4a; padding: 8px 14px; font-size: 14px; font-weight: 500; }

/* ---------- Typografie ---------- */
.kicker { display: inline-block; background: var(--red); color: #fff; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; }
.kicker.dark { background: var(--dark); }
.page-title { font-size: 44px; font-weight: 800; text-transform: uppercase; margin: 12px 0 6px; }
.section-title { font-size: 20px; font-weight: 700; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.card-title { font-size: 18px; font-weight: 800; text-transform: uppercase; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--red); color: #fff; font-weight: 700; font-size: 14px; }
.code-tag { background: var(--dark); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 10px; font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.page { padding-top: 44px; padding-bottom: 72px; }
.split { display: grid; grid-template-columns: 1.65fr 1fr; gap: 32px; align-items: start; }
.split-even { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ---------- Kaarten ---------- */
.card { background: #fff; border: 1px solid var(--line); padding: 32px; }
.card.compact { padding: 24px; }
.card.accent-top { border-top: 6px solid var(--red); }
.card.accent-left { border-left: 6px solid var(--red); }
.card-red { background: var(--red); color: #fff; padding: 32px; }
.card-red a { color: #fff; }
.card-grey { background: var(--grey); padding: 32px; }
.card-dark { background: var(--dark); color: #fff; padding: 24px; }
.steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps-list li { display: flex; gap: 14px; }
.steps-list .n { font-weight: 800; font-size: 18px; width: 22px; flex-shrink: 0; }
.steps-list strong { display: block; }

/* ---------- Formulieren ---------- */
.field label, .field .label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--input); border-radius: 0; padding: 10px 12px;
  font: 400 15px var(--font); background: #fff; color: var(--dark);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field-error { color: var(--red-dark); font-size: 13px; font-weight: 500; margin-top: 6px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.checkbox input { accent-color: var(--red); width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; }
fieldset { border: none; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }

.choice { position: relative; border: 1px solid var(--input); padding: 20px; display: flex; gap: 14px; cursor: pointer; background: #fff; }
.choice input { accent-color: var(--red); width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; }
.choice:has(input:checked) { border: 2px solid var(--red); padding: 19px; }
.choice-body { display: flex; flex-direction: column; gap: 6px; }
.choice-body strong { font-size: 16px; }
.choice-body .muted { font-size: 14px; }
.choice-body .formats { font-size: 13px; font-weight: 600; }
.choice.small-choice { padding: 14px; }
.choice.small-choice:has(input:checked) { padding: 13px; }


.swatch { display: inline-block; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--input); vertical-align: middle; }
.swatch-none { background: repeating-linear-gradient(45deg, #fff, #fff 4px, var(--input) 4px, var(--input) 6px); }
.color-input { width: 72px; height: 44px; padding: 4px; cursor: pointer; }

.dropzone { border: 2px dashed var(--input); padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; background: var(--page); }
.dropzone input[type="file"] { max-width: 100%; font: 500 14px var(--font); }
.dropzone strong { font-size: 16px; }

[hidden] { display: none !important; }

/* ---------- Knoppen ---------- */
.btn {
  min-height: 46px; padding: 0 20px; border-radius: 0; font: 600 14px var(--font); text-transform: uppercase; letter-spacing: 0.04em;
  border: 2px solid transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; text-decoration: none; background: var(--red); color: #fff;
}
.btn:hover { background: var(--red-dark); color: #fff; }
.btn-dark { background: var(--dark); }
.btn-dark:hover { background: #4a4a4a; }
.btn-outline { background: #fff; color: var(--dark); border-color: var(--dark); }
.btn-outline:hover { background: var(--grey); color: var(--dark); }
.btn-outline-red { background: #fff; color: var(--red-dark); border-color: var(--red); }
.btn-outline-red:hover { background: #fdf2f3; color: var(--red-dark); }
.btn-light { background: transparent; color: #fff; border-color: #fff; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }

/* ---------- Statuslabels ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 2px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.plain::before { display: none; }
.tone-new { background: var(--grey); color: var(--dark); }
.tone-accepted { background: #e3eef8; color: #2b5a86; }
.tone-production { background: #fbebdd; color: #8a4a12; }
.tone-done { background: #e0efed; color: #205b54; }
.tone-rejected { background: #fde5e8; color: #a30017; }
.chip.role-admin { background: var(--red); color: #fff; }

/* ---------- Meldingen ---------- */
.flash { padding: 14px 18px; font-weight: 500; border-left: 6px solid; margin-bottom: 24px; background: #fff; }
.flash.success { border-color: #205b54; }
.flash.error { border-color: var(--red); }
.error-box { background: #fdf2f3; border-left: 6px solid var(--red); padding: 14px 18px; }
.error-box ul { margin: 6px 0 0; padding-left: 18px; }
.notice-box { background: var(--grey); padding: 18px; word-break: break-all; }

/* ---------- Statistieken & machines ---------- */
.stat { background: #fff; border: 1px solid var(--line); padding: 22px; text-decoration: none; color: var(--dark); display: block; }
.stat:hover { color: var(--dark); border-color: var(--dark); }
.stat.is-hot { background: var(--red); color: #fff; border-color: var(--red); }
.stat-label { font-size: 14px; font-weight: 500; }
.stat-value { font-size: 44px; font-weight: 800; line-height: 1.1; }
.machine { display: flex; flex-direction: column; gap: 10px; }
.machine-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.machine-head strong { text-transform: uppercase; letter-spacing: 0.03em; }
.machine .muted-light { font-size: 14px; color: #dddddd; }
.machine select { min-height: 40px; border: 1px solid #4a4a4a; background: var(--dark); color: #fff; font: 500 13px var(--font); padding: 0 8px; }

/* ---------- Tabellen & tabs ---------- */
.table-card { background: #fff; border: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; padding: 14px 16px; border-bottom: 2px solid var(--dark); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td .sub { font-size: 13px; color: var(--muted); }
.table-min { min-width: 980px; }
.align-right { text-align: right; }
.actions { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tabs { display: flex; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs.flush { padding: 0; }
.tab { min-height: 50px; padding: 0 16px; display: inline-flex; align-items: center; gap: 6px; border-bottom: 3px solid transparent; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); text-decoration: none; white-space: nowrap; }
.tab:hover { color: var(--dark); }
button.tab { background: none; border: 0; border-bottom: 3px solid transparent; font-family: inherit; cursor: pointer; }
.guideline-tabs { margin-bottom: 18px; }
.guideline-tabs[hidden] { display: none; }
.guideline-heading { margin: 18px 0 8px; font-size: 14px; text-transform: uppercase; }
.is-tabbed .guideline-heading { display: none; }
.tab[aria-current="page"] { color: var(--dark); border-bottom-color: var(--red); }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--input); padding: 0 6px 0 14px; min-height: 46px; width: 380px; max-width: 100%; }
.search input { border: none; outline: none; font: 400 15px var(--font); flex: 1; min-width: 0; min-height: 44px; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- Detail ---------- */
.progress { list-style: none; margin: 0; padding: 18px 22px; background: #fff; border: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.progress li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13px; text-transform: uppercase; color: var(--muted); }
.progress .dot { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--input); font-size: 12px; }
.progress li.done { color: var(--dark); }
.progress li.done .dot { background: var(--dark); border-color: var(--dark); color: #fff; }
.progress li.current { color: var(--red); }
.progress li.current .dot { background: var(--red); border-color: var(--red); color: #fff; }
.spec { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.spec dt { font-size: 13px; color: var(--muted); }
.spec dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
.file-row { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); padding: 12px 16px; }
.file-type { width: 44px; height: 44px; background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; text-transform: uppercase; }
.file-row .grow { flex: 1; min-width: 0; word-break: break-word; }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.log li { display: flex; gap: 14px; }
.log time { color: var(--muted); width: 100px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.prewrap { white-space: pre-wrap; margin: 0; }
.danger-zone { background: var(--dark); color: #fff; padding: 24px; }
.danger-zone .field input { border-color: #fff; }

/* ---------- Gebruikers ---------- */
.user-list { list-style: none; margin: 0; padding: 0; }
.user-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.user-list .grow { flex: 1; min-width: 200px; }
.user-list select { min-height: 40px; border: 1px solid var(--input); font: 500 14px var(--font); padding: 0 8px; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-side { background: var(--red); color: #fff; padding: 64px; display: flex; flex-direction: column; justify-content: space-between; }
.login-side h2 { font-size: 52px; font-weight: 800; text-transform: uppercase; line-height: 1; margin-bottom: 16px; }
.login-main { background: #fff; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.login-form { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.login-form h1 { font-size: 36px; font-weight: 800; text-transform: uppercase; margin: 14px 0 6px; }

.site-footer { padding: 32px 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); background: #fff; }

/* ---------- Responsief ---------- */
@media (max-width: 960px) {
  .split, .split-even, .grid-2, .grid-3, .grid-4, .login { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr 1fr; }
  .login-side { display: none; }
}
@media (max-width: 760px) {
  .main-nav { gap: 18px; order: 3; width: 100%; overflow-x: auto; }
  .hero h1 { font-size: 34px; }
  .page-title { font-size: 32px; }
  .card, .card-red, .card-grey { padding: 22px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ---------- Aanvullingen ---------- */
.stat-label, .stat-value { display: block; }
.card-red .card-title, .card-grey .card-title { margin-bottom: 18px; }
.card-grey ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.table-card select, .row select { min-height: 40px; border: 1px solid var(--input); font: 500 14px var(--font); padding: 0 8px; background: #fff; }
.machine .row select { border-color: #4a4a4a; background: var(--dark); color: #fff; }
.tab span { font-size: 12px; background: var(--grey); padding: 0 6px; color: var(--dark); }
.split > *, .split-even > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.site-header .bar { padding-top: 12px; padding-bottom: 12px; }
