/* 4Bizz - iPad machinescherm - 20-10-2026 -->> */
/* iPad-scherm bij een machine: grote knoppen, goed leesbaar op afstand, staand en liggend. */

.m-body { min-height: 100vh; background: var(--bg); -webkit-tap-highlight-color: transparent; }

.m-head {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px;
  padding: max(12px, env(safe-area-inset-top)) 20px 12px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.m-head .logo.logo-img, .m-head .logo.logo-img img { height: 44px; }
.m-titles { flex: 1; min-width: 0; }
.m-wp { font-size: 24px; font-weight: 800; line-height: 1.1; }
.m-sub { margin-top: 2px; font-size: 13px; color: var(--text-2); }
.m-clock { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.m-user { display: flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid var(--border); }

.m-main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; padding: 20px; align-items: start; }
@media (orientation: portrait), (max-width: 900px) {
  .m-main { grid-template-columns: 1fr; }
}

/* Grote kaart met de huidige stap */
.m-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-card); }
.m-card.st-bezig { border-color: #f5c88a; box-shadow: 0 0 0 3px #fde7c4; }
.m-card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.m-card-top .prio { margin-left: 0; font-size: 12px; padding: 3px 8px; }
.m-stapbadge { padding: 5px 12px; border-radius: 8px; font-size: 15px; font-weight: 800; }
.m-status { font-size: 15px; font-weight: 700; }
.m-late { padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #b91c1c; background: #fee2e2; }
.m-ordernr { font-size: 18px; font-weight: 700; color: var(--primary); }
.m-item { margin-top: -10px; font-size: 32px; font-weight: 800; line-height: 1.15; }
.m-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.m-facts div { display: flex; flex-direction: column; gap: 2px; }
.m-facts span { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.m-facts b { font-size: 18px; }
.m-timer-row { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); }
.m-timer-lbl { font-size: 14px; color: var(--text-2); }
.m-timer { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; }
.m-timer.timer { color: #b45309 !important; }
.m-working { display: flex; flex-wrap: wrap; gap: 8px; }
.m-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 15px; font-weight: 700; color: #b45309; background: #fef3e2; }
.m-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #d97706; animation: pulse 1.4s ease-in-out infinite; }
.m-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.m-regs { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-2); }
.m-regs li { display: flex; justify-content: space-between; padding: 5px 0; border-top: 1px solid var(--sep); }

.m-btn {
  flex: 1 1 160px; min-height: 76px; padding: 0 20px; border-radius: 14px; border: 0;
  font: inherit; font-size: 22px; font-weight: 800; color: #fff; cursor: pointer; touch-action: manipulation;
}
.m-btn:active:not(:disabled) { transform: scale(.98); }
.m-btn-start { background: #16a34a; }
.m-btn-pauze { background: #2f6fed; }
.m-btn-gereed { background: var(--primary); }
.m-btn-wait { background: var(--track); color: var(--text-2); cursor: default; }
.m-btn-pick { display: flex; align-items: center; justify-content: center; text-decoration: none; background: var(--primary); }
.m-pick { flex-direction: row; flex-wrap: wrap; }

.m-empty { align-items: center; padding: 48px 22px; text-align: center; }
.m-empty-t { font-size: 24px; font-weight: 800; }
.m-empty-s { font-size: 15px; color: var(--text-2); }

/* Wachtrij */
.m-right { display: flex; flex-direction: column; gap: 10px; }
.m-h { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.m-h .badge-count { margin-left: 0; }
.m-queue { display: flex; flex-direction: column; gap: 8px; }
.m-queue-empty { padding: 16px; font-size: 14px; color: var(--text-3); }
.m-row {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 14px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; touch-action: manipulation;
}
.m-row.active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.m-row.blocked { opacity: .55; }
.m-row.st-bezig { background: #fffaf2; }
.m-row-time { width: 78px; flex: none; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.m-row-time.late { color: #b91c1c; }
.m-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.m-row-t { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-row-s { font-size: 13px; color: var(--text-2); }
.m-row-st, .m-row-wait { flex: none; font-size: 13px; font-weight: 700; }
.m-row-wait { color: var(--text-3); }
.m-toggle { align-self: flex-start; padding: 8px 4px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.m-done { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-2); }
.m-done li { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; padding: 6px 4px; border-top: 1px solid var(--sep); }

/* Dialoog: naam kiezen en pincode */
.m-dialog {
  position: fixed; top: 50%; left: 50%; z-index: 41; transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto;
  display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--surface); border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 20, 30, .3);
}
.m-dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.m-dlg-t { font-size: 22px; font-weight: 800; }
.m-dlg-s { font-size: 14px; color: var(--text-2); }
.m-dlg-q { margin: 0; font-size: 17px; font-weight: 700; }
.m-dlg-note { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: #b45309; background: #fef3e2; }
.m-dialog .close-x { font-size: 30px; }
.m-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.m-name {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 68px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); font-size: 19px; font-weight: 700; touch-action: manipulation;
}
.m-name.busy { border-color: #f5c88a; background: #fef3e2; }
.m-name:disabled { opacity: .45; }
.m-name small { font-size: 11px; font-weight: 500; color: var(--text-3); }
.m-dots { display: flex; justify-content: center; gap: 12px; padding: 4px 0; }
.m-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-input); }
.m-dots span.on { background: var(--text); border-color: var(--text); }
.m-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-key {
  min-height: 68px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2);
  font-size: 26px; font-weight: 700; touch-action: manipulation;
}
.m-key:active:not(:disabled) { background: var(--track); }
.m-key.ok { background: var(--primary); border-color: var(--primary); color: #fff; font-size: 20px; }
.m-key:disabled { opacity: .45; }
.m-back { align-self: center; font-size: 14px; }
.m-body #toast-root .toast { font-size: 16px; padding: 14px 20px; }
/* 4Bizz - iPad machinescherm - 20-10-2026 <<-- */

/* 4Bizz - iPad machinescherm - 20-10-2026 -->> */
/* Machinescherm binnen de planning (tab Machine van de beheerder) */
.mv-kies { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mv-kies label { font-size: 13px; font-weight: 600; }
.mv-kies .select { width: auto; min-width: 200px; }
.mv-kies .hint { font-size: 11.5px; color: var(--text-3); }
.main .m-main { padding: 0; margin-top: 14px; }
.m-page .m-main { padding: 20px; }
.select.select-sm { width: auto; min-width: 150px; height: 28px; padding: 0 6px; font-size: 12px; }
/* Gebruikerstabel heeft een kolom Machine erbij: beheervenster iets breder */
.modal { width: min(980px, calc(100vw - 32px)); }
/* 4Bizz - iPad machinescherm - 20-10-2026 <<-- */
