/* Dashboard voor in de zaak. Grote letters en veel contrast: dit staat op een laptop naast de
   frituur en wordt van een meter afstand gelezen. */

body.dash { background: #eef3f9; }

.dash-kop { background: var(--wit); border-bottom: 1px solid var(--lijn); padding: 14px 0; position: sticky; top: 0; z-index: 20; }
.dash-kop .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dash-kop img { height: 44px; width: auto; }
.dash-rechts { display: flex; align-items: center; gap: 24px; }
.klok { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }

.schakel { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.schakel input { position: absolute; opacity: 0; }
.schuif { width: 52px; height: 30px; border-radius: 999px; background: #c3cede; position: relative; transition: background .15s; flex-shrink: 0; }
.schuif::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; }
.schakel input:checked + .schuif { background: #17a34a; }
.schakel input:checked + .schuif::after { transform: translateX(22px); }
.schakel input:focus-visible + .schuif { outline: 2px solid var(--kobalt); outline-offset: 2px; }
.schakel-tekst { font-weight: 700; font-size: 15px; }

.dash-inhoud { padding: 24px 0 60px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tabs button {
  border: 1px solid var(--lijn); background: var(--wit); color: var(--inkt);
  border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 600; cursor: pointer;
}
.tabs button.actief { background: var(--navy); border-color: var(--navy); color: #fff; }

.geluid-hint { background: #fff6e0; border: 1px solid #f0d9a0; color: #6b4e00; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 14.5px; }

.bonnen { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.bon-kaart { background: var(--wit); border: 1px solid var(--lijn); border-left: 6px solid var(--kobalt); border-radius: 12px; padding: 18px; }
.bon-kaart.af { border-left-color: #c3cede; opacity: .6; }
.bon-kaart.nieuw { border-left-color: #17a34a; box-shadow: 0 0 0 3px rgba(23, 163, 74, .18); }
.bon-boven { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.bon-nr { font-size: 24px; font-weight: 700; }
.bon-tijd { font-size: 18px; font-weight: 700; color: var(--kobalt); }
.bon-klant { color: var(--inkt-zacht); font-size: 14.5px; margin-bottom: 12px; }
.bon-regels { border-top: 1px solid var(--lijn); padding-top: 10px; font-size: 15.5px; }
.bon-regels div { display: flex; justify-content: space-between; padding: 3px 0; }
.bon-regels .saus { color: var(--inkt-zacht); font-size: 13.5px; }
.bon-totaal { display: flex; justify-content: space-between; font-weight: 700; border-top: 1px solid var(--lijn); margin-top: 10px; padding-top: 10px; }
.bon-betaald { display: inline-block; background: #e6f6ec; color: #0f7a37; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px; margin-top: 10px; }
.bon-kaart .klaar-knop { width: 100%; margin-top: 12px; border: 0; background: var(--navy); color: #fff; border-radius: 999px; padding: 11px; font: inherit; font-weight: 700; cursor: pointer; }
.bon-kaart.af .klaar-knop { background: var(--wit); color: var(--inkt-zacht); border: 1px solid var(--lijn); }

.geen { color: var(--inkt-zacht); padding: 30px 0; }

.cijfers { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 34px; }
.cijfer { background: var(--wit); border: 1px solid var(--lijn); border-radius: 12px; padding: 18px; }
.cijfer .label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--inkt-zacht); }
.cijfer .waarde { font-size: 30px; font-weight: 700; margin-top: 6px; }
.cijfer .bij { font-size: 13.5px; color: var(--inkt-zacht); }

.grafiek-kop { font-size: 18px; margin-bottom: 14px; }
.grafiek { display: flex; align-items: flex-end; gap: 8px; height: 200px; background: var(--wit); border: 1px solid var(--lijn); border-radius: 12px; padding: 18px; }
.staaf { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.staaf .balk { width: 100%; background: var(--kobalt); border-radius: 4px 4px 0 0; min-height: 2px; }
.staaf .dag { font-size: 11.5px; color: var(--inkt-zacht); }
.staaf .bedrag { font-size: 11.5px; font-weight: 700; }

.topper { display: flex; align-items: center; gap: 12px; background: var(--wit); border: 1px solid var(--lijn); border-radius: 10px; padding: 10px 14px; margin-bottom: 7px; }
.topper .rang { width: 26px; font-weight: 700; color: var(--inkt-zacht); }
.topper .t-naam { flex: 1; font-weight: 600; }
.topper .t-aantal { font-weight: 700; }
.topper .t-omzet { color: var(--inkt-zacht); font-size: 14px; width: 80px; text-align: right; }

.mini-knop { border: 1px solid #d9c48a; background: #fff; color: #6b4e00; border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 13.5px; cursor: pointer; margin-left: 8px; }

@media (max-width: 700px) {
  .dash-kop .wrap { flex-wrap: wrap; }
  /* Drie tabs naast elkaar passen net niet op een telefoon en lopen dan tegen de rand. */
  .tabs button { padding: 9px 14px; font-size: 14px; }
  .grafiek { overflow-x: auto; }
  .staaf { min-width: 34px; }
}

/* Melding bij verbindingsproblemen en het codevenster. Layer 2 maakt van de melding een alarm. */
.verbinding { background: #b00020; color: #fff; padding: 14px 18px; border-radius: 12px; margin-bottom: 16px; font-weight: 700; }
.code-scherm { position: fixed; inset: 0; background: rgba(18, 42, 77, 0.92); display: grid; place-items: center; z-index: 50; padding: 16px; }
.code-kaart { background: #fff; border-radius: 16px; padding: 28px; width: min(420px, 100%); display: grid; gap: 12px; }
.code-kaart input { font: inherit; padding: 12px 14px; border: 2px solid #c8d3e3; border-radius: 10px; }
.code-kaart button { font: inherit; font-weight: 700; padding: 12px; border: 0; border-radius: 999px; background: #1f4fd8; color: #fff; cursor: pointer; }
.code-fout { color: #b00020; min-height: 1.2em; margin: 0; }

/* Blok "Nakijken": vastgelopen betalingen en storingen, altijd zichtbaar boven de tabbladen. */
.nakijken { background: #fff4d6; border: 2px solid #e0a800; border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; }
.nakijken h3 { margin: 0 0 8px; font-size: 1.05rem; }
.nakijken ul { margin: 0 0 10px; padding-left: 20px; }
.nakijken li { margin: 4px 0; }

/* Wat klanten nu kunnen: groen als bestellen open staat, oranje als het dicht is. */
.bestelstatus { padding: 10px 16px; border-radius: 12px; margin-bottom: 12px; font-weight: 700; }
.bestelstatus.kan { background: #e3f6e8; color: #16552b; }
.bestelstatus.kan-niet { background: #ffe9d6; color: #7a3a00; }
.bon-tijd { white-space: nowrap; }

/* Ronde 3: keukenscherm, afgehandeld-knop, niet-afgerekend, koppen in de bonnenlijst, vorige dagen */
.keuken-schakel { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--inkt-zacht); }

/* Bonprinter: op het scherm onzichtbaar. Bij afdrukken blijft alleen #print-bon over, op de volle breedte van het papier
 * (58 of 80 mm, dat stelt het printerstuurprogramma in), zwart op wit, zonder marges. */
#print-bon { display: none; }
.print-knop { margin-left: 8px; }
@media print {
  @page { margin: 0; }
  html, body.dash { background: #fff !important; margin: 0; padding: 0; }
  body.dash > *:not(#print-bon) { display: none !important; }
  #print-bon { display: block; padding: 2mm 3mm; color: #000; font: 14px/1.3 Arial, Helvetica, sans-serif; }
  #print-bon .pb-kop { text-align: center; font-weight: 700; margin-bottom: 2mm; }
  #print-bon .pb-nr { font-size: 30px; font-weight: 700; line-height: 1.1; }
  #print-bon .pb-groot { font-size: 20px; font-weight: 700; margin: 1mm 0; }
  #print-bon hr { border: 0; border-top: 1px dashed #000; margin: 2mm 0; }
  #print-bon .pb-rij { display: flex; justify-content: space-between; gap: 6px; }
  #print-bon .pb-rij span:last-child { white-space: nowrap; }
  #print-bon .pb-saus { padding-left: 4mm; }
  #print-bon .pb-totaal { font-weight: 700; font-size: 16px; }
  #print-bon .pb-let-op { font-weight: 700; margin-top: 2mm; }
}
.wachtend { background: var(--wit); border: 1px solid var(--lijn); border-radius: 12px; padding: 12px 18px; margin-bottom: 16px; color: var(--inkt-zacht); font-size: 14.5px; }
.wachtend h3 { margin: 0 0 6px; font-size: 1rem; }
.wachtend ul { margin: 0 0 6px; padding-left: 20px; }
.wachtend p { margin: 0; }
.afgehandeld-knop { margin-left: 8px; border: 1px solid #e0a800; background: var(--wit); border-radius: 999px; padding: 3px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.bon-kop { margin: 18px 0 10px; font-size: 1.05rem; }
.bon-kop-let-op { color: #8a1c1c; }
.bon-te-laat { display: block; margin-top: 8px; background: #fde8e8; color: #8a1c1c; font-size: 13.5px; font-weight: 700; border-radius: 8px; padding: 6px 10px; }
.gesch-kies { display: block; margin-bottom: 14px; }
.bon-uit { display: block; margin-top: 8px; background: #fde8e8; color: #8a1c1c; font-size: 13.5px; font-weight: 700; border-radius: 8px; padding: 6px 10px; }
.gesch-som { font-weight: 700; margin: 0 0 12px; }

/* Ronde 4: verstreken bon rood, geluid-hint rood en opvallend, sluitingsdatum */
.bon-kaart.verstreken { border-color: #c0392b; border-left-color: #c0392b; background: #fff1ef; box-shadow: 0 0 0 2px #c0392b; }
.bon-kaart.verstreken .bon-tijd { color: #c0392b; }
.geluid-hint { background: #fde8e8; border-color: #c0392b; color: #8a1c1c; font-weight: 700; font-size: 16px; }
.dicht-tot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 14px; color: var(--inkt-zacht); }
.dicht-tot button { border: 1px solid var(--lijn); background: var(--wit); border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 13.5px; cursor: pointer; }
.levensteken { font-size: 13.5px; color: var(--inkt-zacht); margin: -8px 0 12px; }
.levensteken.let-op { color: #8a1c1c; font-weight: 700; font-size: 15px; }

/* Producten uitzetten: gele regel op het tabblad Bestellingen en de lijst op het tabblad Producten. */
.uit-regel { background: #fff4d6; border: 2px solid #e0a800; border-radius: 12px; padding: 12px 18px; margin-bottom: 16px; font-weight: 700; }
.uit-telling { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; }
.prod-rij { display: flex; align-items: center; gap: 12px; background: var(--wit); border: 1px solid var(--lijn); border-radius: 10px; padding: 8px 14px; margin-bottom: 6px; flex-wrap: wrap; }
.prod-rij.is-uit { background: #fdeeee; border-color: #c0392b; }
.prod-naam { flex: 1; font-weight: 600; }
.prod-prijs { color: var(--inkt-zacht); font-size: 14px; white-space: nowrap; }
.prod-stand { font-weight: 700; font-size: 13.5px; color: #1a7f37; min-width: 28px; }
.prod-rij.is-uit .prod-stand { color: #b00020; }
.prod-knop { min-width: 84px; border: 0; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 700; color: #fff; background: #444; cursor: pointer; }
.prod-knop.zet-aan { background: #1a7f37; }
.prod-knop.uit { background: #b00020; }
.prod-knop:disabled { opacity: .5; cursor: wait; }
.prod-rij[hidden] { display: none; }
.prod-notitie { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--inkt-zacht); }
.prod-notitie[hidden] { display: none; }
.prod-rij-fout { flex-basis: 100%; margin: 0; font-size: 13.5px; font-weight: 700; color: #b00020; }
.prod-fout ul { margin: 0; padding-left: 20px; }
.prod-fout li { margin: 4px 0; }
.prod-fout button { margin-left: 8px; border: 0; border-radius: 999px; padding: 3px 12px; font: inherit; font-size: 13.5px; font-weight: 700; background: #fff; color: #b00020; cursor: pointer; }
.prod-onbekend { background: #fff4d6; border: 2px solid #e0a800; border-radius: 12px; padding: 12px 18px; margin-bottom: 16px; }
.prod-onbekend h3 { margin: 0 0 6px; font-size: 1.05rem; }
.prod-onbekend p { margin: 0 0 8px; }

/* Bon: twee duidelijke tijdregels (ophalen en besteld). */
.bon-dag { font-size: 14px; font-weight: 700; color: var(--inkt-zacht); }
.bon-tijden { margin-bottom: 8px; }
.bon-tijden .bon-tijd { white-space: normal; }
.bon-besteld { font-size: 16px; font-weight: 700; color: var(--inkt-zacht); }

/* Snelkoppeling uitgezette producten: knop in de kop, paneel vast onder de kop, op elk tabblad. */
.uit-knop { border: 2px solid #c0392b; background: #fde8e8; color: #8a1c1c; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.uit-knop[hidden] { display: none; }
.uit-paneel { position: fixed; top: 70px; right: 16px; width: min(420px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; background: var(--wit); border: 2px solid #c0392b; border-radius: 12px; padding: 12px 14px; z-index: 30; box-shadow: 0 8px 28px rgba(18, 42, 77, .25); }
.uit-paneel[hidden] { display: none; }
.uit-paneel-kop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.uit-paneel-kop button { border: 1px solid var(--lijn); background: var(--wit); border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.uit-paneel h4 { margin: 12px 0 6px; font-size: .95rem; }
