.admin-kop { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px clamp(16px, 3vw, 40px); background: var(--inkt); color: #fff; }
.admin-kop .logo { color: #fff; }
.admin-kop nav a { color: rgba(255,255,255,.75); padding: 8px 4px; border-bottom: 3px solid transparent; }
.admin-kop nav a:hover { color: #fff; }
.admin-kop nav a.actief { color: #fff; border-color: var(--tomaat); }
.admin-kop .link { color: rgba(255,255,255,.75); }
.admin-main { padding: 24px clamp(16px, 3vw, 40px) 64px; max-width: 1500px; margin: 0 auto; }
.balk { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.balk h1 { font-size: 2rem; }
.tabs-rij { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { border: 2px solid var(--as); background: #fff; border-radius: 999px; padding: 9px 18px; font: 700 .95rem var(--font-tekst); cursor: pointer; }
.tab[aria-pressed="true"] { background: var(--inkt); border-color: var(--inkt); color: #fff; }
.tab .n { opacity: .6; margin-left: 4px; }
.admin-main select { width: auto; padding: 9px 14px; margin: 0; border-radius: 10px; }
.orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.order { background: #fff; border-radius: 18px; padding: 20px; border-left: 6px solid var(--as); }
.order.s-nieuw { border-color: var(--tomaat); }
.order.s-in_bereiding { border-color: #e0a100; }
.order.s-klaar, .order.s-onderweg { border-color: var(--basilicum); }
.order-kop { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.order-kop strong { font: 800 1.5rem var(--font-kop); }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--as); }
.badge.groen { background: #bff0d4; color: #0e3a24; }
.badge.rood { background: #fbd5d0; color: #8a1f14; }
.order .wie { margin: 6px 0 12px; color: var(--tekst-zacht); font-size: .95rem; }
.order ul { list-style: none; margin: 0 0 12px; padding: 12px 0; border-block: 1px solid var(--as); }
.order li small { display: block; color: var(--tekst-zacht); }
.order .opm { background: #fff6d6; border-radius: 8px; padding: 8px 10px; font-size: .92rem; margin-bottom: 12px; }
.order .totaalregel { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 12px; }
.acties { display: flex; flex-wrap: wrap; gap: 8px; }
.acties .btn { padding: 9px 16px; font-size: .9rem; }
.btn-groen { background: var(--basilicum); color: #fff; }
.btn-groen:hover { background: #17402f; }
.btn-klein { padding: 7px 12px; font-size: .85rem; }
.leeg-admin { color: var(--tekst-zacht); padding: 40px 0; text-align: center; grid-column: 1 / -1; }
.geluid[aria-pressed="true"] { background: var(--basilicum); color: #fff; border-color: var(--basilicum); }

/* Ticket: alleen zichtbaar bij afdrukken */
#ticket { display: none; }
@media print {
  body > *:not(#ticket) { display: none !important; }
  #ticket { display: block !important; width: 72mm; margin: 0; padding: 2mm; font: 13px/1.35 Arial, sans-serif; color: #000; }
  #ticket h2 { font: 700 18px Arial, sans-serif; text-align: center; margin: 0 0 4px; }
  #ticket .groot { font: 800 28px Arial, sans-serif; text-align: center; margin: 4px 0; }
  #ticket hr { border: 0; border-top: 1px dashed #000; margin: 6px 0; }
  #ticket .r { display: flex; justify-content: space-between; gap: 8px; }
  #ticket small { display: block; padding-left: 10px; }
  @page { margin: 0; }
}

/* Dashboard */
.tegels { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.tegel { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 190px; background: #fff; border: 2px solid transparent; border-radius: 22px; padding: 28px; text-decoration: none; }
.tegel h2 { font-size: 1.7rem; }
.tegel p { margin: 0; color: var(--tekst-zacht); }
.tegel:hover:not(.uit) { border-color: var(--inkt); }
.tegel.uit { opacity: .55; cursor: default; }
.tegel .nog { margin-top: auto; font-weight: 700; font-size: .9rem; }
.tegel .teller { position: absolute; top: 20px; right: 20px; background: var(--tomaat); color: #fff; border-radius: 999px; padding: 3px 14px; font-weight: 700; }

/* Bestellingenarchief */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.filters input { width: min(300px, 100%); padding: 10px 14px; margin: 0; }
.tabelwrap { overflow-x: auto; }
table.lijst { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
.lijst th { text-align: left; padding: 12px 14px; background: var(--as); font-size: .9rem; white-space: nowrap; }
.lijst td { padding: 12px 14px; border-top: 1px solid var(--as); }
.lijst tr.bestelrij { cursor: pointer; }
.lijst tr.bestelrij:hover { background: var(--meel); }
.samen { color: var(--tekst-zacht); margin: 12px 2px; }
dialog.admin-dlg { border: 0; border-radius: 22px; padding: 28px; width: min(560px, 94vw); max-height: 90vh; }
dialog.admin-dlg::backdrop { background: rgba(14, 20, 17, .55); }

/* Archief: alles op één regel per bestelling */
.lijst td { white-space: nowrap; }
.lijst td.prod { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.lijst { font-size: .95rem; }
.lijst td { padding: 11px 14px; vertical-align: middle; }
.lijst th { white-space: nowrap; }

/* Compacter, zodat de tabel zonder opzij schuiven past */
.lijst td, .lijst th { padding: 10px 10px; }
.lijst td.prod { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.lijst td.soortcel { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
