/* ------------------------------
   Font & Basisinstellingen
------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
  --primary: #FF8A22;
  --accent: #FEB47B;
  --bg: #FFF5F0;
  --text: #333;
  --card-bg: #ffffff;
  --border-radius: 16px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
}


/* ------------------------------
   Container
------------------------------ */
.container {
  width: 100%;
  padding: 0.5em;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  background-color: var(--bg);
  box-sizing: border-box;
}

/* ------------------------------
   Responsiveness
------------------------------ */
@media (max-width: 480px) {
  .container {
    padding-left: 4vw;
    padding-right: 4vw;
  }
}


/* ------------------------------
   Header / Logo
------------------------------ */
.header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5em;
}

.header img {
  height: 72px;
  width: auto;
}

/* ------------------------------
   Groepsinfo
------------------------------ */
.group-info {
  font-size: 0.95em;
  margin-bottom: 1.5em;
}

.group-info p {
  margin: 0.2em 0;
}

/* ------------------------------
   Knoppenrij (boven/onder)
------------------------------ */
.button-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.5em;
}

.button-row.bottom-buttons {
  margin-top: 2em;
}

.btn {
  flex: 1;
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 0.8em;
  border-radius: var(--border-radius);
  font-size: 1em;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease;
  line-height: 1.2;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
}

.btn:hover {
  background-color: var(--accent);
}

.full-width-btn {
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.9em;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 0.6em 0;
  width: 100%;
  display: block;
}

.full-width-btn:hover {
  background-color: var(--accent);
}

/* ------------------------------
   Sectietitels
------------------------------ */
.section-title {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--primary);
  margin: 1.5em 0 0.8em 0;
  padding: 0;
}

/* ------------------------------
   Cards (herbruikbaar voor rondjes, status, leden)
------------------------------ */
.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 0.8em 1em;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  margin-bottom: 1.5em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  font-size: 0.95em;
}

/* ------------------------------
   Rondje-kaarten
------------------------------ */
.rounds-list {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  margin-bottom: 2em;
}

.round-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.1s ease;
}

.round-card:hover {
  transform: translateY(-2px);
}

.round-info {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.round-amount {
  font-weight: 600;
  font-size: 1.2em;
  color: var(--text);
}

.round-meta {
  font-size: 0.9em;
  color: #555;
}

.round-arrow {
  font-size: 1.4em;
  color: #bbb;
}

/* ------------------------------
   Deelbare link
------------------------------ */
.share-instruction {
  font-size: 0.85em;
  margin-bottom: 0.4em;
}

/* Container voor deelbare link */
/* Zorg dat share-box dezelfde breedte en uitlijning heeft als card */
.share-box {
  max-width: 100%;
  margin-bottom: 1.5em;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  background-color: var(--card-bg);
  padding: 1em;
  box-sizing: border-box;
}


/* Container voor link + icoon */
.share-box .share-link-container {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  width: 100%;
  height: 36px;
  padding: 0 0.4em;
  box-sizing: border-box;
}

.share-box .share-text {
  flex: 1;
  font-size: 0.9em;
  color: var(--text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 36px; /* Perfect verticaal gecentreerd */
}



.share-box .share-link {
  flex: 1;
  border: none;
  font-size: 0.9em;
  outline: none;
  height: auto;              /* niet forceren */
  padding: 0.2em 0;          /* verticale padding voor centrering */
  display: inline-block;     /* terug naar normaal gedrag */
  box-sizing: border-box;
}


/* Kopieerknop */
.share-box .copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 100%;
}

.share-box .copy-btn:hover {
  background-color: #f5f5f5;
}

/* ------------------------------
   Settlement (verrekening) binnen card
------------------------------ */
.settlement-item {
  font-size: 0.9em;
  margin-bottom: 0.4em;
}

/* ------------------------------
   Ledenlijst (binnen card)
------------------------------ */
.members-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.members-list li {
  margin-bottom: 0.3em;
}



/* -----------------------------------
   Lijst van drankjes
----------------------------------- */
.drank-item {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  margin-bottom: 0.8em;
}

.drank-info {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.drank-naam {
  font-weight: 600;
  font-size: 1.1em;
  color: var(--text);
}

.drank-prijs {
  font-size: 0.9em;
  color: #555;
}

.drank-actions {
  display: flex;
  gap: 8px;
}

.drank-actions a {
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: var(--primary);
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.drank-actions a:hover {
  background-color: var(--accent);
}

/* Toevoegen-formulier drankjes */
.toevoegen-form {
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

.toevoegen-form input {
  padding: 0.8em;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1em;
}

.toevoegen-form button {
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.8em;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toevoegen-form button:hover {
  background-color: var(--accent);
}

/* Foutmelding */
.foutmelding {
  background-color: #ffe3dc;
  border: 1px solid #f5b6a9;
  color: #b23c17;
  padding: 10px 12px;
  border-radius: 6px;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Terugknop */
.terug-knop, .sticky-cta {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: var(--primary);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

.terug-knop:hover {
  background-color: var(--accent);
}



/* Placeholder styling */
input::placeholder,
textarea::placeholder,
select::placeholder {
  font-family: 'Poppins', sans-serif;
  font-size: 1em;
  color: #888;
}

input,
textarea,
select {
  font-family: 'Poppins', sans-serif;
  font-size: 1em;
  color: var(--text);
}

/* Flyout-kaarten (witte blokken) */
.flyout-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  margin-bottom: 1em;
  overflow: hidden;
  width: 100%;
}

.flyout-header {
  background-color: var(--card-bg);
  padding: 0.8em 1em;
  border-radius: var(--border-radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.flyout-header:hover {
  background-color: #f5f5f5;
}

/* gewone flyout-body */
.flyout-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
   padding: 0 0.8em;   /* 0 = boven/onder, 1em = links/rechts */
}

/* compacte padding specifiek voor deelnemerskaart */
body.rondje-page .deelnemers-card .flyout-body {
  padding: 4px 4px;
}


.flyout-body.open {
  max-height: 2000px;
}

.arrow {
  transition: transform 0.3s ease;
}

.open-header .arrow {
  transform: rotate(180deg);
}

.flyout-body label {
  display: block;
  margin-bottom: 0.4em;
}

.btn-stack {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

.btn-stack .btn {
  width: 100%;
}

.btn-small {
  padding: 0.6em;
  font-size: 0.95em;
}

.sticky-terugknop {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: var(--primary);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  text-decoration: none;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ------------------------------
   Toggle switch (Per persoon / Per drankje)
------------------------------ */
.switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.5em;
  font-size: 0.95em;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* ============================
   Specifieke stijlen rondje.php
============================ */
body.rondje-page .payer-block {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  padding: 0.6em 1em;
  margin-bottom: 1em;
  position: relative;
}

body.rondje-page .payer-block label {
  display: block;
  font-size: 0.9em;
  margin-bottom: 0.3em;
  color: var(--text);
}

body.rondje-page .payer-block select {
  width: 100%;
  padding: 0.5em 0.8em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font-family: 'Poppins', sans-serif;
  appearance: none;
  outline: none;
  padding-right: 2.5em;
  line-height: 1.4;
  height: 48px;
}

body.rondje-page .payer-block .arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0.7;
  pointer-events: none;
}

body.rondje-page .payer-block select:focus {
  border-color: #ccc;
  box-shadow: none;
}

/* Hoofdtitel voor pagina's zoals Rondje halen en Drankjes */
.section-main {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--primary);
  margin: 1.2em 0 0.8em 0;
}

/* Knoppen in rondje.php aanpassen */
body.rondje-page .btn {
  min-height: auto;
  padding: 0.6em;
  font-size: 1em;
}

/* Secundaire stijl voor de 'Gedeeld drankje toevoegen'-knop */
body.rondje-page .btn-secondary {
  background-color: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}

body.rondje-page .btn-secondary:hover {
  background-color: var(--accent);
  color: #fff;
}

/* Zelfde breedte & stijl als flyout voor inputs */
input[type="text"],
input[type="number"] {
  width: 100%;
  padding: 0.8em;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1em;
  background-color: #fff;
  margin-bottom: 1em;
  box-sizing: border-box;
}

/* Container voor deelnemers */
.deelnemers-card {
  padding: 1em;
}

/* Link (of iedereen 1x) in zwart, kleiner en bovenaan */
.deelnemers-card .iedereen-link {
  display: block;
  margin-bottom: 0.5em;
  font-size: 0.9em;
  color: #333;
  text-decoration: none;
}

/* Container voor deelnemers (algemeen.php) */
.deelnemers-card {
  padding: 4px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  background-color: var(--card-bg);
  margin-bottom: 1.5em;
  width: 100%;
  box-sizing: border-box;
}

/* Link (of iedereen 1x) netjes bovenaan en zwart */
.deelnemers-card .iedereen-link {
  display: block;
  margin-bottom: 0.5em;
  margin-top: 0.5em;
  font-size: 0.95em;
  color: var(--text);
  font-weight: 400;
  text-decoration: none;
}

/* Namen onder elkaar met zelfde fontgrootte */
.deelnemers-card label {
  display: block;
  margin-bottom: 0.4em;
  font-size: 1em;
}

.form-title {
  font-size: 1em;
  font-weight: 600;
  color: var(--primary);
  margin: 1em 0 0.4em 0;
  padding: 0;
}

/* Specifieke spacing fix voor inputvelden in algemeen.php en drinks.php */
body.rondje-page input[type="text"],
body.rondje-page input[type="number"] {
  margin-bottom: 0; /* was 0.5em */
}

/* Box voor deelnemers smaller en uitgelijnd */
body.rondje-page .flyout-card.deelnemers-box {
  max-width: 100%;
  padding: 1em;
}

/* (of iedereen 1x) stijl */
body.rondje-page .deelnemers-box .iedereen-label {
  display: block;
  font-size: 0.9em;
  color: #333;
  margin-bottom: 0.5em;
}

body.overzicht-page {
  background-color: var(--bg);
  padding: 0.5em 0.8em;
}



/* Fix breedte op overzichtspagina zonder impact op drinks.php */
body.overzicht-page .container {
  
  margin: 0 auto;
  padding: 0.5em;
  background-color: var(--bg);
  box-sizing: border-box;
}

/* Zorg dat alle blokken dezelfde breedte hebben als knoppen en share-box */
body.overzicht-page .card,
body.overzicht-page .round-card,
body.overzicht-page .share-box {
  width: 100%;       /* Volledige breedte binnen de container */
  margin: 0 auto;    /* centreren voor zekerheid */
  box-sizing: border-box;
}




/* Share-box specifiek centreren en smal houden */
body.overzicht-page .share-box {
  max-width: 100%;
  padding: 1em;
}

/* =====================================
   Optimalisatie voor bestelling.php kaarten
   - Strakkere ruimte tussen regels
   - Alleen p-elementen binnen kaarten
   ===================================== */
body.rondje-page .card p {
  margin: 0.1em 0;       /* minimale ruimte tussen regels */
  line-height: 1.3;      /* compacter dan standaard 1.5 */
}

/* Enkelvoudige regels (bijv. Omschrijving of Totaal) iets centreren */
body.rondje-page .card p:only-child {
  padding: 0.3em 0;
}

/* Knop 'Aanpassen' in bestelling.php net zo breed als cards */
.btn-stack .btn-aanpassen {
  width: 100%;              /* zelfde breedte als card */
  max-width: 100%;          /* voorkomt dat hij groter wordt dan card */
  box-sizing: border-box;   /* padding telt mee in breedte */
}

/* ============================
   Specifieke stijlen tussenstand.php
============================ */
body.tussenstand-page {
  background-color: var(--bg);
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 1em 0;
}


body.tussenstand-page .container {
  
  width: 100%;
  padding: 0.5em;
  background-color: var(--bg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
}

/* Titel bovenaan */
body.tussenstand-page h1 {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 1em 0;
}

/* Tabel styling */
body.tussenstand-page table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  margin-bottom: 1.5em;
}

body.tussenstand-page th {
  background-color: #ffe1d5;
  color: var(--text);
  font-weight: 600;
  padding: 0.8em;
  text-align: left;
  font-size: 0.95em;
}

body.tussenstand-page td {
  padding: 0.8em;
  font-size: 0.95em;
  border-top: 1px solid #f3e2d9;
}

/* Rij met totaal */
body.tussenstand-page tr.totaalrij td {
  background-color: #ffe1d5;
  font-weight: 600;
}

/* Saldo kleuren */
body.tussenstand-page td.positief {
  color: #3c9a4b;
  font-weight: 600;
}

body.tussenstand-page td.negatief {
  color: #b23c17;
  font-weight: 600;
}

/* Links naar details (namen) */
body.tussenstand-page a.naam-link {
  color: var(--text);
  text-decoration: none;
}

body.tussenstand-page a.naam-link:hover {
  text-decoration: underline;
}

/* Knop Start met verrekenen */
body.tussenstand-page .btn-verrekenen {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 0.8em;
  border-radius: var(--border-radius);
  font-size: 1em;
  font-weight: 600;
  margin-top: 1.5em;
  cursor: pointer;
  transition: background 0.3s ease;
}

body.tussenstand-page .btn-verrekenen:hover {
  background-color: var(--accent);
}

/* Sticky terugknop */
body.tussenstand-page .sticky-terugknop {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: var(--primary);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

body.tussenstand-page .sticky-terugknop:hover {
  background-color: var(--accent);
}

/* Statusmelding blok (na verrekening) */
body.tussenstand-page .melding {
  background-color: #ffe3dc;
  border: 1px solid #f5b6a9;
  color: var(--text);
  padding: 1em;
  border-radius: 6px;
  margin-bottom: 1.5em;
}

body.tussenstand-page .melding h2 {
  color: #b23c17;
  font-size: 1.1em;
  margin-top: 0;
}

/* Stijl voor tabel als kaart in tussenstand.php */
body.tussenstand-page .table-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  padding: 1em;
  margin-bottom: 1.5em;
  width: 100%;
  border-collapse: collapse;
}

/* Tabellen zelf full-width */
body.tussenstand-page .table-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
  color: var(--text);
}

/* Kopregel en totaalregel */
body.tussenstand-page .table-card th,
body.tussenstand-page .table-card tfoot td {
  font-weight: 600;
  background: #ffffff;
  padding: 0.8em;
  border-bottom: 1px solid #f0f0f0;
}

/* Middenrijen (leden) */
body.tussenstand-page .table-card td {
  padding: 0.8em;
}

/* Alleen lijn boven totaalrij */
body.tussenstand-page .table-card tfoot td {
  border-top: 1px solid #f0f0f0;
}

/* Saldo kleuren */
body.tussenstand-page .table-card .positief {
  color: #2ca24c;
  font-weight: 600;
}

body.tussenstand-page .table-card .negatief {
  color: #b23c17;
  font-weight: 600;
}

/* Knop onder tabel */
body.tussenstand-page .btn-verrekenen {
  display: block;
  text-align: center;
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 0.8em;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1em;
  margin-top: 1em;
  text-decoration: none;
}

/* ============================
   Specifieke stijlen tussenstand.php (opgeschoond)
============================ */
body.tussenstand-page {
  background-color: var(--bg);
  display: flex;
  justify-content: center;
  padding: 1em;
}

body.tussenstand-page .container {
  
  width: 100%;
  background-color: var(--bg);
  padding: 0.5em;
  box-sizing: border-box;
}

/* Tabel als kaart */
body.tussenstand-page .table-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  padding: 1em;
  margin-bottom: 1.5em;
}

body.tussenstand-page .table-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
  color: var(--text);
}

body.tussenstand-page .table-card th {
  font-weight: 600;
  background: #fff;
  padding: 0.8em;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
}

body.tussenstand-page .table-card td {
  padding: 0.8em;
}

body.tussenstand-page .table-card tfoot td {
  font-weight: 600;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

/* Saldo kleuren */
body.tussenstand-page .table-card .positief {
  color: #2ca24c;
  font-weight: 600;
}

body.tussenstand-page .table-card .negatief {
  color: #b23c17;
  font-weight: 600;
}

/* Knop 'Start met verrekenen' */
body.tussenstand-page .btn-verrekenen {
  display: block;
  width: 100%;
  text-align: center;
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.8em;
  font-weight: 600;
  font-size: 1em;
  margin-top: 1em;
  text-decoration: none;
  transition: background 0.3s ease;
}

body.tussenstand-page .btn-verrekenen:hover {
  background-color: var(--accent);
}

/* Sticky terugknop */
body.tussenstand-page .terug-knop {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: var(--primary);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

body.tussenstand-page .terug-knop:hover {
  background-color: var(--accent);
}

/* Statusblok na verrekening */
body.tussenstand-page .melding-status {
  margin-top: 1.5em;
  text-align: left;
}

body.tussenstand-page .melding-status h2 {
  color: #b23c17;
  font-size: 1.1em;
  margin-top: 0;
  margin-bottom: 0.8em;
}

body.tussenstand-page .melding-status .status-item {
  margin-bottom: 0.6em;
  font-size: 0.95em;
}

body.tussenstand-page .melding-status .status-betaald {
  color: green;
  font-weight: bold;
}

body.tussenstand-page .melding-status .betaallink {
  color: var(--primary);
  font-weight: bold;
  text-decoration: none;
  margin-left: 10px;
}

body.tussenstand-page .melding-status .betaallink:hover {
  text-decoration: underline;
}

body.tussenstand-page .melding-status .status-open {
  color: #b23c17;
}

/* Verwijder lijnen tussen normale rijen */
body.tussenstand-page .table-card td {
  border-top: none;
}

/* Alleen lijn onder de kopregel */
body.tussenstand-page .table-card thead tr th {
  border-bottom: 1px solid #f0f0f0;
}

/* Alleen lijn boven de totaalrij */
body.tussenstand-page .table-card tfoot tr td {
  border-top: 1px solid #f0f0f0;
}

body.tussenstand-page .btn-verrekenen {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: center;
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 0.8em;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1em;
  margin-top: 1.5em;
  cursor: pointer;
  transition: background 0.3s ease;
}

body.tussenstand-page .btn-verrekenen:hover {
  background-color: var(--accent);
}

/* Sticky terugknop alleen voor tussenstand.php */
body.tussenstand-page .sticky-terugknop {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: var(--primary);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

body.tussenstand-page .sticky-terugknop:hover {
  background-color: var(--accent);
}

/* ===============================
   Fix voor brede tabel in tussenstand.php
   =============================== */

body.tussenstand-page .table-card {
  overflow-x: auto;      /* horizontaal scrollen toestaan indien nodig */
  display: block;        /* nodig om overflow-x te laten werken */
  box-sizing: border-box;
}

body.tussenstand-page .table-card table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;   /* voorkomt dat kolommen onbeperkt oprekken */
}

body.tussenstand-page .table-card th,
body.tussenstand-page .table-card td {
  word-break: break-word;
  max-width: 120px;
  padding: 0.8em;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

body.tussenstand-page .table-card .naam-link {
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.tussenstand-page .table-card table {
  width: 100%;
  table-layout: fixed;
}

body.tussenstand-page .table-card th:nth-child(1),
body.tussenstand-page .table-card td:nth-child(1) {
  width: 40%;
}

body.tussenstand-page .table-card th:nth-child(2),
body.tussenstand-page .table-card td:nth-child(2),
body.tussenstand-page .table-card th:nth-child(3),
body.tussenstand-page .table-card td:nth-child(3),
body.tussenstand-page .table-card th:nth-child(4),
body.tussenstand-page .table-card td:nth-child(4) {
  width: 20%;
  text-align: right;
}

/* ===============================
   Compacte en responsieve layout voor tussenstand.php
=============================== */
body.tussenstand-page .table-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  padding: 0.5em 0.4em;
  margin-bottom: 1.5em;
  overflow-x: auto;
  display: block;
  box-sizing: border-box;
}

body.tussenstand-page .table-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
  color: var(--text);
  table-layout: fixed;
}

body.tussenstand-page .table-card th,
body.tussenstand-page .table-card td {
  padding: 0.6em 0.4em;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Kopregel */
body.tussenstand-page .table-card thead tr th {
  font-weight: 600;
  background: #fff;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

/* Tussenliggende rijen */
body.tussenstand-page .table-card td {
  border-top: none;
}

/* Alleen lijn boven de totaalrij */
body.tussenstand-page .table-card tfoot tr td {
  font-weight: 600;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

/* Kolombreedtes */
body.tussenstand-page .table-card th:nth-child(1),
body.tussenstand-page .table-card td:nth-child(1) {
  width: 34%;
}

body.tussenstand-page .table-card th:nth-child(2),
body.tussenstand-page .table-card td:nth-child(2),
body.tussenstand-page .table-card th:nth-child(3),
body.tussenstand-page .table-card td:nth-child(3),
body.tussenstand-page .table-card th:nth-child(4),
body.tussenstand-page .table-card td:nth-child(4) {
  width: 22%;
  text-align: right;
}

/* Naam-links in kolom 1 (ingekort indien nodig) */
body.tussenstand-page .table-card .naam-link {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Saldo kleuren */
body.tussenstand-page .table-card .positief {
  color: #2ca24c;
  font-weight: 600;
}

body.tussenstand-page .table-card .negatief {
  color: #b23c17;
  font-weight: 600;
}

/* Alleen de eerste cel van de totaalrij links uitlijnen */
body.tussenstand-page .table-card tfoot td:first-child {
  text-align: left;
}

body.tussenstand-page .table-card {
  table-layout: fixed;
  width: 100%;
}

body.tussenstand-page .table-card tbody td,
body.tussenstand-page .table-card tfoot td {
  padding: 0.4em;
  text-align: left;
  font-size: 0.9em;
  vertical-align: top;
}

body.tussenstand-page .table-card {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.95em;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

body.tussenstand-page .table-card th,
body.tussenstand-page .table-card td {
  text-align: center;
  padding: 0.8em 0.5em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

body.tussenstand-page .table-card td:first-child,
body.tussenstand-page .table-card th:first-child {
  width: 25%;
  text-align: left;
}

body.tussenstand-page .table-card td:first-child a {
  display: block;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;        /* ✅ naam mag over meerdere regels */
}

body.tussenstand-page .table-card colgroup col {
  width: 25%;
}

body.tussenstand-page .table-card tfoot td {
  font-weight: bold;
}


/* ============================
   Specifieke stijlen start.php
============================ */
body.start-page .toevoegen-form button.btn {
  min-height: auto;        /* normale hoogte */
  padding: 0.6em;          /* compacter dan standaard 0.8em */
  font-size: 1em;
  line-height: 1.2;
}

/* Zelfde spacing-fix als algemeen.php: geen te grote marge tussen velden */
body.start-page .toevoegen-form input[type="text"] {
  margin-bottom: 0.6em;     /* kleiner dan standaard 1em */
}

/* Extra: als er een label boven komt, marge compacter maken */
body.start-page .form-title {
  margin: 1em 0 0.4em 0;    /* gelijk aan algemeen.php */
}

/* Fix te grote ruimte tussen inputvelden en volgende label/titel op start.php */
body.start-page .toevoegen-form input[type="text"] {
  margin-bottom: 0.4em; /* compacter dan 1em */
}

/* Zorg dat labels niet extra marge veroorzaken */
body.start-page .toevoegen-form label {
  margin-top: 0.8em;  /* kleine afstand boven label */
  margin-bottom: 0.3em; /* klein beetje ruimte onder label */
}

/* Compactere knophoogte voor 'Bekijk verrekening' in tussenstand */
body.tussenstand-page .foutmelding .btn {
  padding: 0.6em 1em;   /* minder hoge padding */
  font-size: 1em;       /* normale tekstgrootte */
  line-height: 1.2;     /* compacter lijngebruik */
  min-height: auto;     /* overschrijft min-height van standaard .btn */
}


/* Breedte knop gelijk aan table-card */
body.tussenstand-page .btn-verrekenen {
  display: block;
  width: 100%;            /* exact even breed als table-card */
  margin: 1em 0 0 0;      /* zelfde marge als card */
  box-sizing: border-box; /* zorgt dat padding meegeteld wordt */
}

/* Settlement link (betaallink) in oranje en onderstreept */
.settlement-link {
  color: var(--primary);      /* gebruikt dezelfde oranje kleur als knoppen */
  text-decoration: underline; /* altijd onderstreept */
  font-weight: 600;           /* iets vetter voor consistentie */
}

.settlement-link:hover {
  color: var(--accent);       /* lichtere oranje tint bij hover */
}

/* Settlement link oranje en onderstreept */
.settlement-link {
  color: var(--primary);      /* Oranje kleur */
  text-decoration: underline; /* Altijd onderstreept */
  font-weight: 600;           /* Zelfde gewicht als buttons */
}

.settlement-link:hover {
  color: var(--accent);       /* Lichtoranje bij hover */
}

.group-info {
  margin-bottom: 20px; /* meer ruimte onder info vóór de knoppen */
}

.group-info .info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px; /* minder ruimte tussen rijen */
}

.group-info .info-row span {
  width: 48%;
  font-size: 0.95em;
  line-height: 1.4em;
}



body.start-page form label {
  display: block;
  font-weight: 600;
  color: var(--primary);   /* weer oranje */
  font-size: 0.95em;
  margin-top: 1.2em;       /* meer ruimte boven */
  margin-bottom: 0.4em;    /* ruimte tussen label en veld */
}

/* Knophoogte in join.php gelijk aan drinks.php */
body.join-page .toevoegen-form button.btn {
  min-height: auto;
  padding: 0.6em;
  font-size: 1em;
  line-height: 1.2;
}

body.join-page form label {
  display: block;
  font-weight: 600;
  color: var(--primary);   /* Oranje kleur zoals andere pagina's */
  font-size: 0.95em;
  margin-top: 1.2em;
  margin-bottom: 0.4em;
}

/* Zelfde inputhoogte als algemeen.php */
body.join-page input[type="text"] {
  padding: 0.8em;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1em;
  background-color: #fff;
  margin-bottom: 0;
  box-sizing: border-box;
}

body.join-page input[type="text"] {
  width: 100%;
  padding: 0.8em;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1em;
  background-color: #fff;
  margin-bottom: 0;
  box-sizing: border-box;
}

/* Section-title en input spacing in join.php gelijk aan algemeen.php */
body.join-page .section-title {
  margin: 1em 0 0 0;  /* zelfde als rondje-page */
}

body.join-page input[type="text"],
body.join-page input[type="number"] {
  margin-bottom: 0;       /* zelfde als rondje-page */
}

/* ================================
   Guided Tour Styling
   Alleen voor overzichtspagina
================================ */
body.overzicht-page .tour-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: none;
}

/* Oranje rand om het uitgelichte element (speels + animatie) */
body.overzicht-page #tour-highlight {
  position: absolute;
  border: 2px solid var(--primary);            /* iets dunner voor speels effect */
  border-radius: 20px;                         /* ronder, speelser */
  box-shadow:
    0 0 8px rgba(255, 138, 34, 0.7),
    0 0 15px rgba(255, 138, 34, 0.5),
    0 0 25px rgba(255, 138, 34, 0.3);
  background: transparent;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 2001;
  animation: pulse-highlight 1.8s ease-in-out infinite;
}

/* Puls-animatie */
@keyframes pulse-highlight {
  0% {
    box-shadow:
      0 0 8px rgba(255, 138, 34, 0.7),
      0 0 15px rgba(255, 138, 34, 0.5),
      0 0 25px rgba(255, 138, 34, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 12px rgba(255, 138, 34, 0.9),
      0 0 20px rgba(255, 138, 34, 0.6),
      0 0 30px rgba(255, 138, 34, 0.4);
    transform: scale(1.02);
  }
  100% {
    box-shadow:
      0 0 8px rgba(255, 138, 34, 0.7),
      0 0 15px rgba(255, 138, 34, 0.5),
      0 0 25px rgba(255, 138, 34, 0.3);
    transform: scale(1);
  }
}

/* Tooltip box (zorgt dat tekstbox zichtbaar is) */
body.overzicht-page .tour-tooltip {
  position: absolute;
  background: #fff;
  border-radius: var(--border-radius);
  padding: 1em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  max-width: 260px;
  font-size: 0.95em;       /* normale tekstgrootte */
  color: var(--text);      /* zwart */
  z-index: 2002;
}

/* Tekst in tooltip (zwart, normale grootte) */
body.overzicht-page .tour-tooltip #tour-text {
  margin-bottom: 0.6em;
  color: var(--text);
  font-weight: 400;
}

/* Links in tooltip: oranje, niet onderstreept */
body.overzicht-page .tour-tooltip a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85em;
}

body.overzicht-page .tour-tooltip a:hover {
  color: var(--accent);
}

/* Navigatieknoppen: Vorige links, Volgende rechts */
body.overzicht-page .tour-buttons {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.8em;
}

body.overzicht-page #tour-prev {
  text-align: left;
}

body.overzicht-page #tour-next {
  text-align: right;
}

/* Restart-link onder "Nieuwe groep"-knop, rechts uitgelijnd */
body.overzicht-page .tour-restart {
  display: block;
  text-align: right;       /* rechts uitlijnen */
  margin-top: 0.8em;       /* ruimte boven knop */
  font-size: 0.9em;
  color: var(--primary);
  text-decoration: none;
  background: none;
  padding: 0;
  box-shadow: none;
  position: static;        /* niet sticky */
}

body.overzicht-page .tour-restart:hover {
  color: var(--accent);
}

/* Specifieke styling foutmelding in overzicht.php */
body.overzicht-page .foutmelding {
  margin-top: 0;          /* kleiner dan 1.5em */
  padding: 0.8em 1em;       /* iets compacter */
  font-size: 0.95em;        /* zelfde schaal als tussenstand */
}

body.overzicht-page .foutmelding h2 {
  font-size: 1.1em;           /* kleinere titel */
  margin-top: 0;
  margin-bottom: 0.8em;     /* dichter op tekst */
  color: #b23c17;           /* consistent met tussenstand */
}

body.overzicht-page .foutmelding .section-title {
  margin-top: 0;       /* geen extra ruimte boven */
  margin-bottom: 0.5em; /* ruimte tussen titel en tekst */
  font-size: 1.1em;     /* zelfde grootte als tussenstand */
  font-weight: 600;
  color: #b23c17;       /* consistent met tussenstand */
}

/* Knop in foutmelding op overzicht.php compacter maken (zelfde als tussenstand.php) */
body.overzicht-page .foutmelding .btn {
  padding: 0.6em 1em;   /* compacter dan standaard 0.8em */
  font-size: 1em;
  line-height: 1.2;
  min-height: auto;     /* haalt verplichte min-hoogte van standaard .btn weg */
 margin-top: 1em;  /* afstand boven de knop */
}



body.overzicht-page .tour-close-btn {
  position: absolute;
  top: -5px;   /* buiten de tooltip plaatsen */
  right: -5px; /* buiten de tooltip plaatsen */
  width: 20px;  /* kleiner formaat */
  height: 20px;
  border: none;
  background: none; /* alleen SVG */
  cursor: pointer;
  padding: 0;
}

body.overzicht-page .tour-close-btn img {
  display: block;
  width: 100%;
  height: 100%;
}

body.overzicht-page .tour-buttons {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.8em;
}
body.overzicht-page #tour-prev { text-align: left; }
body.overzicht-page #tour-next { text-align: right; }

/* ------------------------------
   Verrekenen-pagina
------------------------------ */
.verrekenen-page .betaallink-form {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  margin-top: 0.5em;
}

.verrekenen-page .betaallink-form input[type="url"] {
  width: 100%;
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
}

/* Container onder transactie */
.verrekenen-page .link-met-actie {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.5em 0.8em 0 0.8em;
  margin-top: 0.8em;
  border-top: none;
}

/* Reset voor beide elementen */
.verrekenen-page .link-met-actie .textlink,
.verrekenen-page .link-met-actie .link-tekst a {
  all: unset;
  font-size: 0.95em;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  cursor: pointer;
  line-height: 1.4;
  display: inline-block;
  text-align: center;
}

.verrekenen-page .link-met-actie .textlink:hover,
.verrekenen-page .link-met-actie .link-tekst a:hover {
  text-decoration: underline;
}

.verrekenen-page .link-met-actie form {
  margin: 0;
}

.verrekenen-page .link-met-actie {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 0 0 0;  /* ← Aanpassen hier */
  margin-top: 0.8em;
  border-top: none;
}

.textlink {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95em;
  cursor: pointer;
  padding: 0;
}

.inputlink {
  width: 100%;
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 1em;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}




@media (display-mode: standalone) {
  .sticky-terugknop {
    bottom: calc(16px + var(--safe-bottom));
  }
  body {
    padding-bottom: calc(16px + var(--safe-bottom));
  }
}

/* Toon alle drankjes in rondje.php exact zoals Toon alle rondjes in overzicht.php */
body.rondje-page .show-all-drinks-row {
  display: block;
  text-align: right;     /* rechts uitlijnen */
}

body.rondje-page .tour-restart {
  display: block;
  text-align: right;
  margin-top: 0;
margin-bottom: 1em;
  font-size: 0.9em;
  color: var(--primary);
  text-decoration: none;
  background: none;
  padding: 0;
  box-shadow: none;
  position: static;
}

body.rondje-page .tour-restart:hover {
  color: var(--accent);
}


/* Rechter uitlijning 'Toon alle drankjes' onder het 5e kaartje in rondje.php */
body.rondje-page .show-all-drinks-row {
  text-align: right;
  margin-top: 0.2em;
}

/* Zorg dat de link hetzelfde oogt als op overzicht.php */
body.rondje-page a.tour-restart {
  display: inline-block;
  text-align: right;
}


/* Fix voor 'Toon alle drankjes' in rondje.php */
body.rondje-page .show-all-drinks-row {
  display: flex;
  justify-content: flex-end;   /* forceer helemaal naar rechts */
  margin-top: 0.5em;
  margin-right: 0.2em;         /* lijn gelijk met rechterkant van flyout */
}

/* Laatste drankkaart vóór de 'Toon alle drankjes'-link minder ruimte */
body.rondje-page #view-drankjes .flyout-card:last-of-type {
  margin-bottom: -1em;   /* bijvoorbeeld kleiner maken */
}

/* Kleinere ondermarge voor de 5e (laatste) top-5 kaart in rondje.php */
body.rondje-page .flyout-card.mb-tight {
  margin-bottom: 0.2em !important; /* dichter op de link */
}

/* ===== UX-upgrade selectie in rondje.php (optie 1 + 2) ===== */

/* 1) Grotere klikzone & typografie voor elke regel */
body.rondje-page .flyout-body label {
  display: flex;                 /* icon + tekst naast elkaar */
  align-items: center;
  gap: 0.6em;
  font-size: 1.1em;              /* tekst iets groter */
  padding: 0.55em 0.6em;         /* grotere tap target */
  border-radius: 10px;
  margin-bottom: 0.25em;         /* compacter onder elkaar */
  line-height: 1.25;
  -webkit-tap-highlight-color: transparent;
}

/* 2) Subtiele feedback bij tikken */
body.rondje-page .flyout-body label:active {
  background: #f5f5f5;
}

/* 3) Volledig custom checkbox (vierkant) */
body.rondje-page .flyout-body input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;                /* vaste breedte, breekt layout niet */
  border: 2px solid #bdbdbd;
  border-radius: 6px;
  background: #fff;
  position: relative;
  outline: none;
}

/* 4) Volledig custom radio (rondje voor gedeelde drankjes) */
body.rondje-page .flyout-body input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 2px solid #bdbdbd;
  border-radius: 50%;
  background: #fff;
  position: relative;
  outline: none;
}

/* 5) Checked states (duidelijk zichtbaar in donker) */
body.rondje-page .flyout-body input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}
body.rondje-page .flyout-body input[type="checkbox"]:checked::after {
  content: "✔";
  color: #fff;
  position: absolute;
  left: 5px;
  top: 0px;
  font-size: 16px;
  line-height: 24px;
}

body.rondje-page .flyout-body input[type="radio"]:checked {
  border-color: var(--primary);
}
body.rondje-page .flyout-body input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--primary);
  border-radius: 50%;
}

/* 6) Focus-indicator voor toetsenbord/voorspellende focus */
body.rondje-page .flyout-body input[type="checkbox"]:focus-visible,
body.rondje-page .flyout-body input[type="radio"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 7) Hele regel highlight wanneer iets aangevinkt is (moderne browsers) */
body.rondje-page .flyout-body label:has(input:checked) {
  background: #fff0e5;           /* zachte oranje tint */
}

/* 8) Zorg dat bestaande block-styling wordt overschreven door onze flex layout */
body.rondje-page .flyout-body label {
  /* overschrijft oudere regel `.flyout-body label { display:block; }` */
}

/* Rechter uitlijning + identieke stijl als 'Toon alle rondjes' */
body.rondje-page .show-all-drinks-row { display:block; text-align:right; }
body.rondje-page .tour-restart {
  display:block; text-align:right; margin-top:0.8em; font-size:0.9em;
  color: var(--primary); text-decoration:none; background:none; padding:0; box-shadow:none; position:static;
}
body.rondje-page .tour-restart:hover { color: var(--accent); }

/* === Inline stepper voor aantallen === */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  vertical-align: middle;
}
.qty-stepper.is-hidden {
  display: none !important;
}

/* Houd label en stepper naast elkaar */
.drink-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.drink-row > label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;              /* naam + prijs nemen beschikbare ruimte */
}
.drink-row .qty-stepper {
  margin-left: auto;    /* stepper naar de rechterkant van de rij */
}


.qty-btn {
  border: 1px solid #ddd;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1;
  font-size: 16px;
  cursor: pointer;
  touch-action: manipulation;
}
.qty-btn:active {
  transform: translateY(1px);
}

.qty-input {
  width: 48px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 16px;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper-input {
  width: 2.5ch;       /* ruimte voor 2 cijfers + wat marge */
  text-align: center; /* netjes gecentreerd */
  -moz-appearance: textfield; /* Firefox: geen up/down pijltjes */
}
.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none; /* Chrome/Safari: geen up/down pijltjes */
  margin: 0;
}

/* Forceer smalle input (2 tekens) binnen de stepper – override input[type=number]{width:100%} */
body.rondje-page .qty-stepper .qty-input,
body.rondje-page .qty-stepper input[type="number"] {
  width: 3.5ch;        /* 2 cijfers + beetje marge */
  min-width: 3.5ch;
  max-width: 3.5ch;
  padding: 6px 8px;    /* ook padding overriden van de globale regel */
  flex: 0 0 auto;      /* niet meerekken in de flexrij */
}

/* Ruimte onder de lijst 'overige drankjes' + voorkom margin-collapsing */
#alle-drankjes-overig {
  margin-bottom: 14px;   /* zichtbare ruimte vóór 'Gedeeld drankje 1' */
  padding-bottom: 1px;   /* 1px padding stopt het samenvallen van marges */
}

  .sticky-cta{
    position: fixed;
    bottom: 16px;
    z-index: 999;
  }





.sticky-cta.is-left  { left: 20px; right: auto; }
.sticky-cta.is-right { right: 20px; left:  auto; }

/* (optioneel) veilige onderrand in PWA/standalone */
@media (display-mode: standalone) {
  .sticky-cta { bottom: calc(16px + var(--safe-bottom)); }
}

/* Tabs: inactief lichter en zonder ruimte met content */
.section-title.fd-tabs { 
  margin: 10px 0 0;           /* geen bottom-marge meer */
}

/* beide tabs even breed, top-hoeken afgerond zoals de cards */
.section-title.fd-tabs .fd-tab {
  background: #f6f6f6;        /* LICHThgrijs inactief */
  color: #b5b5b5;
  border-radius: 12px 12px 0 0;  /* alleen boven afgerond */
}

/* actieve tab wit + oranje tekst blijft zoals je al had */
.section-title.fd-tabs .fd-tab.is-active {
  background: #fff;
  color: var(--primary);
}

/* verwijder ruimte vóór de eerste kaart onder de tabs */
#fd-panel-rounds .rounds-list { margin-top: 0; }
#fd-panel-rounds .rounds-list .round-card:first-child { margin-top: 0; }

/* idem voor het leaderboard-paneel */
#fd-panel-leaderboard .fd-leader-grid { margin-top: 0; }

/* === Algemeen.php — deelnemers op één regel (scoped) === */
body.rondje-page .deelnemers-card .deelnemer-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) max-content max-content; /* naam | stepper | bedrag */
  align-items: center;
  column-gap: 12px;
  padding: 8px 6px;

}

/* Algemeen.php — rijen zonder scheidslijn + zachte highlight zoals rondje.php */
body.rondje-page .deelnemers-card .deelnemer-row {
  /* geen border-bottom meer; geef mini-ruimte zodat ronde hoeken zichtbaar zijn */
  margin: 2px 2px;
  padding: 8px 6px; /* ietsje meer padding nu er geen border is */
}

body.rondje-page .deelnemers-card .deelnemer-row.selected {
  background: #fff0e5;   /* zelfde zachte oranje als rondje.php */
  border-radius: 10px;   /* lichte afgeronde hoeken bij accent */
}


body.rondje-page .deelnemers-card .deelnemer-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.rondje-page .deelnemers-card .weight-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  white-space: nowrap; /* niet wrappen */
}
/* Belangrijk: override globale input width:100% + margin */
body.rondje-page .deelnemers-card .weight-control .weight-input {
  display: inline-block;
  width: 40px !important;
  min-width: 40px;
  max-width: 40px;
  margin: 0 !important;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 2px 4px;
  background: #fff;
}
/* Knoppen nooit full width */
body.rondje-page .deelnemers-card .weight-control .btn-mini {
  display: inline-flex;
  width: auto !important;
  min-width: 28px;
  padding: 4px 8px;
  line-height: 1;
  justify-content: center;
  align-items: center;
}

body.rondje-page .deelnemers-card .per-persoon {
  min-width: 76px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Highlight voor geselecteerde (>=1x) */
body.rondje-page .deelnemers-card .deelnemer-row.selected {
  background: #fff7eb;
}

/* Algemeen.php — typografie deelnemerskaart expliciet 16px */
body.rondje-page .deelnemers-card .deelnemer-check,
body.rondje-page .deelnemers-card .weight-control,
body.rondje-page .deelnemers-card .per-persoon {
  font-size: 1.1em;
  line-height: 1.2;
}


/* Bedrag rechts */
body.rondje-page .deelnemers-card .per-persoon {
  min-width: 80px;
  text-align: right;
  font-size: 1.1em;
  font-variant-numeric: tabular-nums;
}

/* Links en rechts uitlijning van (of iedereen 1x) en (reset) */
body.rondje-page .deelnemers-card .iedereen-links {
  display: flex;
  justify-content: space-between; /* eerste naar links, tweede naar rechts */
  padding: 0 4px;                 /* zelfde compacte marge als de kaart */
  margin-bottom: 6px;
}

/* Forceer zelfde highlight als rondje.php + ronde hoeken */
body.rondje-page .deelnemers-card .deelnemer-row.selected {
  background: #fff0e5 !important;
  border-radius: 10px !important;
}
/* === Algemeen.php — stepper-knoppen exact als rondje.php === */
body.rondje-page .deelnemers-card .weight-control .btn-mini {
  -webkit-appearance: none;   /* iOS/Safari: geen systeemknop */
  appearance: none;
  background-color: #fff !important;  /* geen grijs */
  border: 1px solid #ddd !important;
  border-radius: 6px;
  color: var(--text);
  box-shadow: none !important;
}

body.rondje-page .deelnemers-card .weight-control .btn-mini:hover {
  background-color: #f5f5f5 !important; /* lichte hover, zoals rondje.php */
}

body.rondje-page .deelnemers-card .weight-control .btn-mini:active {
  transform: translateY(1px);           /* subtiele feedback */
}

body.rondje-page .deelnemers-card .weight-control .weight-input {
  background-color: #fff;               /* matchend wit veldje */
}
/* Betaler-sectie (algemeen.php + rondje.php) */
body.rondje-page .flyout-card .flyout-header,
body.rondje-page .flyout-card .flyout-body {
  font-size: 1.1em;
  line-height: 1.3;
}
body.rondje-page .flyout-body .flyout-item {
  margin-bottom: 0.4em;   /* extra ruimte tussen items */
}
