/* Mitarbeiter-App: mobil, grosse Ziele, drinnen wie draussen lesbar */
body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.toast { bottom: calc(150px + env(safe-area-inset-bottom)); }
.top {
  position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 3px solid var(--red);
  display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
}
.top .logo { color: var(--g900); text-decoration: none; font-size: .95rem; }
.top-right { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--g700); }
.offline { background: var(--warn-soft); color: var(--warn); text-align: center; font-weight: 700; padding: 6px; font-size: .9rem; }
.view { padding: 14px 14px 20px; max-width: 720px; margin: 0 auto; }
.bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; background: var(--white); border-top: 1px solid var(--g300);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom a { flex: 1; text-align: center; padding: 8px 0 6px; color: var(--g500); text-decoration: none; font-size: .8rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bottom a .ico { font-size: 1.35rem; line-height: 1; }
.bottom a.active { color: var(--red); }

/* Login */
.staff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.staff-grid button { min-height: 60px; background: var(--white); color: var(--g900); border: 2px solid var(--g300); font-size: 1.05rem; }
.staff-grid button.sel { border-color: var(--red); background: var(--red-soft); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; margin: 0 auto; }
.pinpad button { min-height: 64px; font-size: 1.5rem; background: var(--white); color: var(--g900); border: 2px solid var(--g300); }
.pin-dots { text-align: center; font-size: 2rem; letter-spacing: 12px; min-height: 48px; color: var(--g900); }

/* Start */
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.hero-actions button { min-height: 72px; font-size: 1.05rem; flex-direction: column; gap: 2px; }
.hero-actions button small { font-weight: 500; opacity: .85; font-size: .8rem; }
.nfc-state { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--g300); display: inline-block; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.tab-list { display: flex; flex-direction: column; gap: 8px; }
.tab-item { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); text-decoration: none; color: inherit; min-height: 64px; }
.tab-item .no { font-size: 1.4rem; font-weight: 800; min-width: 56px; color: var(--red); font-variant-numeric: tabular-nums; }
.tab-item .meta { flex: 1; min-width: 0; }
.tab-item .meta .label { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab-item .amt { font-weight: 800; font-size: 1.15rem; }
.tab-item .amt.neg { color: var(--ok); }
.search { margin-bottom: 10px; }

/* Deckel */
.tab-head { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 14px; }
.tab-head .no { font-size: 2.2rem; font-weight: 800; color: var(--red); line-height: 1; font-variant-numeric: tabular-nums; }
.tab-head .sub { color: var(--g500); font-size: .9rem; }
.tab-head .due { margin-left: auto; text-align: right; }
.tab-head .due .v { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tab-head .due .v.credit { color: var(--ok); }
.tab-head .due .k { font-size: .8rem; color: var(--g500); text-transform: uppercase; letter-spacing: .04em; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats button { flex: 0 0 auto; min-height: 42px; background: var(--white); color: var(--g700); border: 2px solid var(--g300); font-size: .95rem; padding: 0 14px; }
.cats button.active { background: var(--g900); color: var(--white); border-color: var(--g900); }
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
@media (min-width: 480px) { .products { grid-template-columns: repeat(3, 1fr); } }
.prod { background: var(--white); color: var(--g900); border: 2px solid var(--g200); min-height: 70px; flex-direction: column; align-items: flex-start; padding: 10px 12px; gap: 4px; text-align: left; font-weight: 600; line-height: 1.15; }
.prod .price { color: var(--red); font-weight: 800; font-size: .95rem; }
.prod:active { border-color: var(--red); background: var(--red-soft); }
.prod.flash { border-color: var(--ok); background: var(--ok-soft); }
.entries { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px; }
.entry { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--g200); min-height: 52px; }
.entry:last-child { border-bottom: 0; }
.entry .q { min-width: 34px; font-weight: 800; color: var(--g700); }
.entry .n { flex: 1; min-width: 0; }
.entry .n .s { display: block; font-size: .8rem; color: var(--g500); }
.entry .a { font-weight: 700; font-variant-numeric: tabular-nums; }
.entry.void { color: var(--g500); }
.entry.void .a { color: var(--red); }
.entry.pay { background: var(--ok-soft); }
.entry.pending { opacity: .6; font-style: italic; }
.entry button { min-height: 40px; padding: 0 12px; }
.actions { position: sticky; bottom: calc(72px + env(safe-area-inset-bottom)); display: flex; gap: 10px; padding-top: 6px; background: linear-gradient(to top, var(--g100) 70%, transparent); }
.actions button { flex: 1; min-height: 60px; font-size: 1.05rem; }
.qty-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 12px 0; }
.qty-row button { width: 64px; min-height: 64px; font-size: 1.8rem; }
.qty-row .q { font-size: 2.2rem; font-weight: 800; min-width: 60px; text-align: center; }
.pay-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.pay-types button { background: var(--white); color: var(--g900); border: 2px solid var(--g300); min-height: 58px; flex-direction: column; gap: 0; }
.pay-types button.sel { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.amount-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.amount-quick button { background: var(--white); color: var(--g900); border: 2px solid var(--g300); }
.amount-quick button.sel { border-color: var(--red); background: var(--red-soft); }
.big-amount { font-size: 2.4rem; font-weight: 800; text-align: center; margin: 6px 0 12px; font-variant-numeric: tabular-nums; }
.big-amount.credit { color: var(--ok); }

/* Scanner */
.scanner { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; max-height: 70vh; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; inset: 12% 15%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); pointer-events: none; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 340px; margin: 0 auto; }
.keypad button { min-height: 66px; font-size: 1.6rem; background: var(--white); color: var(--g900); border: 2px solid var(--g300); }
.keypad button.go { background: var(--red); color: var(--white); border-color: var(--red); }
.number-display { text-align: center; font-size: 3rem; font-weight: 800; min-height: 70px; color: var(--red); font-variant-numeric: tabular-nums; }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--g200); display: flex; justify-content: space-between; gap: 10px; }
.menu-list a, .menu-list button { display: flex; width: 100%; justify-content: space-between; align-items: center; background: var(--white); color: var(--g900); border: 0; border-bottom: 1px solid var(--g200); border-radius: 0; min-height: 58px; padding: 0 16px; font-weight: 600; text-decoration: none; }
.menu-list { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
