/* ── Globale reset & basis ───────────────────────────── */

html {
  height: 100%;
  background-color: #f6f6f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1a1a1a;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f6f6f5;
}


.main {
  padding-left: 80px;
  padding-right: 80px;
  padding-top: 32px;
  text-align: left;
}


button {
  font-family: inherit;
  cursor: pointer;
}

table {
  width: 100%;
}

td.fitwidth {
  width: 1px;
  white-space: nowrap;
}

a,
a:link,
a:visited {
  color: #1a1a1a;
  text-decoration: none;
}

a:hover {
  color: #4a8c3a;
}

/* (no global footer — position is handled per component) */

/* ── EarthBin navigatie ──────────────────────────────── */

.eb-nav {
  width: 100%;
  background-color: #f0f0f0;
  border-bottom: 1px solid #d0d0d0;
  box-sizing: border-box;
}

.eb-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.eb-nav-left,
.eb-nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

.eb-nav-right {
  justify-content: flex-end;
}

.eb-nav-left a,
.eb-nav-right a {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.eb-nav-left a:hover,
.eb-nav-right a:hover {
  color: #4a8c3a;
}

.eb-nav-logo {
  flex: 0 0 auto;
}

.eb-nav-logo a {
  text-decoration: none;
}

.eb-logo-img {
  height: 90px;
  width: auto;
  display: block;
}

/* ── EarthBin huisstijl variabelen ───────────────────── */
:root {
  --eb-oranje:        #c76e00;
  --eb-oranje-hover:  #9c5704;
  --eb-groen:         #4a8c3a;
  --eb-groen-donker:  #1e3d1a;
  --eb-lichtgrijs:    #f6f6f5;
  --eb-tekst:         #1a1a1a;
}

/* ── View Transitions: vloeiende paginaovergangen ───── */
/* Zorgt dat de browser paginaladingen soepel laat verlopen (Chrome/Edge 126+) */
@view-transition {
  navigation: auto;
}

/* ── Wizard slide animaties ─────────────────────────── */

/* Volgende: nieuwe stap schuift van onder naar boven in */
@keyframes slide-omhoog {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Terug: vorige stap schuift van boven naar beneden in */
@keyframes slide-omlaag {
  from { opacity: 0; transform: translateY(-40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wizard-slide-omhoog {
  animation: slide-omhoog 0.3s ease both;
}

.wizard-slide-omlaag {
  animation: slide-omlaag 0.3s ease both;
}

/* ── Wizard voortgangsbalk ───────────────────────────── */

.wizard-progress-wrap {
  max-width: 520px;
  margin: 0 auto 24px auto;
}

.wizard-progress-track {
  background: #e5e7eb;
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}

.wizard-progress-fill {
  height: 100%;
  background: var(--eb-groen);
  border-radius: 99px;
}

/* Breedte per stap: stap 1 = 0%, stap 2 = 20%, ... stap 5 = 80% */
.wizard-progress-fill.stap-1 { width: 0%; }
.wizard-progress-fill.stap-2 { width: 20%; }
.wizard-progress-fill.stap-3 { width: 40%; }
.wizard-progress-fill.stap-4 { width: 60%; }
.wizard-progress-fill.stap-5 { width: 80%; }

.wizard-stap-label {
  font-size: 13px;
  color: #888;
  margin: 8px 0 0 0;
  text-align: right;
}

/* ── Wizard pagina layout ────────────────────────────── */

.rekentool-pagina {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  width: 100%;
  max-width: 720px;
  /* Centreer de wizard ondanks de 80px padding van .main */
  margin: 0 auto;
  padding: 40px 20px 80px;
  box-sizing: border-box;
}

/* Titel en subtitel gecentreerd */
.rekentool-pagina h1 {
  color: var(--eb-groen-donker);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 4px 0;
}

.rekentool-pagina > p {
  color: #888;
  font-size: 14px;
  text-align: center;
  margin: 0 0 24px 0;
}

/* ── Wizard kaart: split layout links/rechts ──────────── */

.wizard-kaart {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  min-height: 320px;
}

/* Linker kolom: opties en knoppen */
.wizard-links {
  flex: 0 0 45%;
  padding: 28px 24px;
  border-right: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Rechter kolom: icoon, titel, hint */
.wizard-rechts {
  flex: 1;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wizard-icoon {
  font-size: 40px;
  margin-bottom: 14px;
  line-height: 1;
}

.wizard-rechts h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--eb-groen-donker);
  margin: 0 0 10px 0;
}

.wizard-hint {
  font-size: 14px;
  color: #888;
  margin: 0;
  line-height: 1.5;
}

/* ── Wizard radio pills ───────────────────────────────── */

.wizard-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

/* Verberg de radio input, de label wordt de pill */
.wizard-pill input[type="radio"] {
  display: none;
}

.wizard-pill {
  display: block;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.wizard-pill:hover {
  border-color: var(--eb-groen);
  background: #f0f7ee;
}

/* Geselecteerde pill krijgt groene rand en achtergrond */
.wizard-pill:has(input:checked) {
  border-color: var(--eb-groen);
  background: #f0f7ee;
  font-weight: 700;
  color: var(--eb-groen-donker);
}

/* ── Wizard getal input (stap 4 en 5) ────────────────── */

.wizard-getal-input {
  width: 100%;
  padding: 14px;
  font-size: 20px;
  font-weight: 700;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  text-align: center;
  color: #1a1a1a;
  box-sizing: border-box;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.wizard-getal-input:focus {
  outline: none;
  border-color: var(--eb-groen);
}

/* ── Wizard volgende knop ─────────────────────────────── */

.wizard-btn-volgende {
  width: 100%;
  background: var(--eb-oranje);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.wizard-btn-volgende:hover {
  background: var(--eb-oranje-hover);
}

/* Terug-link */
a.terug {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  text-decoration: none;
  margin-bottom: 8px;
}

a.terug:hover {
  color: #333;
}

/* Responsive: onder elkaar op kleine schermen */
@media (max-width: 600px) {
  .wizard-kaart {
    flex-direction: column;
  }

  .wizard-links {
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
  }
}

/* ── Resultaat pagina ────────────────────────────────── */

/* Slide-in animatie bij het laden van het resultaat */
@keyframes slide-resultaat {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.resultaat-kaart {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 36px 32px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  animation: slide-resultaat 0.4s ease both;
}

/* Groot highlight blok bovenaan met het totaal aantal zakken */
.resultaat-highlight {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 24px;
}

.resultaat-getal {
  font-size: 72px;
  font-weight: 800;
  color: var(--eb-groen-donker);
  line-height: 1;
}

.resultaat-getal-label {
  font-size: 14px;
  color: #888;
  margin-top: 6px;
}

/* Detail rijen: label links, waarde rechts */
.resultaat-rijen {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}

.resultaat-rij {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.resultaat-rij:last-child {
  border-bottom: none;
}

.resultaat-label {
  font-size: 14px;
  color: #888;
}

.resultaat-waarde {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: right;
  max-width: 60%;
}

/* ── Resultaat CTA knoppen ───────────────────────────── */

.resultaat-acties {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

/* Primaire knop: offerte aanvragen */
.btn-resultaat-primair {
  display: block;
  text-align: center;
  background: var(--eb-oranje);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-resultaat-primair:hover,
.btn-resultaat-primair:visited {
  color: #fff;
  background: var(--eb-oranje-hover);
}

/* Terug knop: opnieuw berekenen */
.btn-resultaat-terug {
  display: block;
  text-align: center;
  background: transparent;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-resultaat-terug:hover {
  border-color: #999;
  color: #333;
}



/* ── Waarschuwing en meldingen ───────────────────────── */

.waarschuwing {
  background-color: #fff3cd;
  color: #7a4f00;
  border-left: 4px solid var(--eb-oranje);
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 600;
}

.land-melding {
  background-color: #e6f7f2;
  color: #005a43;
  border-left: 4px solid var(--eb-groen);
  padding: 10px 14px;
  border-radius: 4px;
}

.foutmelding {
  background-color: #fdecea;
  color: #a00;
  border-left: 4px solid red;
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 600;
  max-width: 500px;
  margin-bottom: 8px;
}

/* ── Dashboard ───────────────────────────────────────── */

.dashboard-header {
  text-align: center;
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  color: var(--eb-groen-donker);
  margin-bottom: 0.25rem;
}

.dashboard-header p {
  color: #515151;
  margin: 0;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.stats__card {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.stats__label {
  font-size: 0.82rem;
  color: #515151;
  margin: 0 0 0.4rem 0;
}

.stats__value {
  font-size: 1.9rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

/* Bestellingen */
.bestellingen h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: left;
  margin-bottom: 1rem;
}

/* Order card */
.order-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
}

.order-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.order-card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.order-card__number {
  font-weight: 700;
  font-size: 1rem;
}

.order-card__bedrag {
  font-weight: 700;
  font-size: 1rem;
}

.order-card__datum {
  font-size: 0.82rem;
  color: #515151;
  margin: 0 0 0.75rem 0;
}

.order-card__footer {
  position: static;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.order-card__product {
  font-weight: 600;
  margin: 0 0 0.15rem 0;
}

.order-card__aantal {
  font-size: 0.85rem;
  color: #515151;
  margin: 0;
}

/* Status badges */
.order-card__status {
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
}

.order-card__status--in-behandeling {
  background-color: #fff3cd;
  color: #9a6700;
}

.order-card__status--verzonden {
  background-color: #cfe2ff;
  color: #0a4a9c;
}

.order-card__status--geleverd {
  background-color: #d1e7dd;
  color: #0f5132;
}

/* Dashboard buttons */
.btn--primary {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}

.btn--primary:hover,
.btn--primary:visited {
  color: #ffffff;
  background-color: #333333;
}

.btn--secondary {
  background-color: transparent;
  color: #1a1a1a;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  border: 1px solid #d0d0d0;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.btn--secondary:hover {
  background-color: #f0f0f0;
  color: #1a1a1a;
}

.dashboard-actions {
  position: static;
  margin-top: 1.5rem;
}

.empty-state {
  color: #515151;
  font-size: 0.95rem;
}

/* ── Bestelling detail pagina ────────────────────────── */

.detail-wrapper {
  max-width: 560px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.detail-container {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.detail-ordernummer {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.detail-status {
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
}

.detail-status--in-behandeling {
  background-color: #fff3cd;
  color: #9a6700;
}

.detail-status--verzonden {
  background-color: #cfe2ff;
  color: #0a4a9c;
}

.detail-status--geleverd {
  background-color: #d1e7dd;
  color: #0f5132;
}

.detail-bedrag {
  font-size: 2.4rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0.5rem 0 1.25rem 0;
}

.detail-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 0.25rem 0 1rem 0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.detail-row p {
  margin: 0;
}

.detail-label {
  font-size: 0.9rem;
  color: #515151;
}

.detail-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: right;
}

.detail-footer {
  position: static;
  margin-top: 1.5rem;
}

.detail-btn {
  display: block;
  text-align: center;
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

.detail-btn:hover,
.detail-btn:visited {
  color: #ffffff;
}
.detail-status--geannuleerd {
  background-color: #f8d7da;
  color: #842029;
}

.order-card__status--geannuleerd {
  background-color: #f8d7da;
  color: #842029;
}

.detail-footer {
  position: static;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-btn--annuleer {
  background-color: #c0392b;
  color: #ffffff;
  width: 100%;
  border: none;
  padding: 1rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.detail-btn--annuleer:hover {
  background-color: #a93226;
}
/* Input velden in detail formulieren */
.detail-row--input {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.detail-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.detail-input:focus {
  outline: none;
  border-color: #1a1a1a;
}

/* Flash berichten */
.detail-flash--error {
  color: #842029;
  background-color: #f8d7da;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.detail-flash--success {
  color: #0f5132;
  background-color: #d1e7dd;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* Primary button variant */
.detail-btn--primary {
  background-color: #1a1a1a;
  border: none;
  cursor: pointer;
}

.detail-btn--secondary {
  background-color: transparent;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
}

.detail-btn--secondary:hover,
.detail-btn--secondary:visited {
  color: #1a1a1a;
  background-color: #f0f0f0;
}