/*
 * DoyaPos design system — single source of truth for both the terminal and the panels.
 *
 * Mobile-first and touch-first. The terminal is used standing up, one-handed, in salon
 * lighting, by someone who wants to be done in five seconds. Every rule below serves
 * that: large hit targets, high contrast, no hover-dependent affordances, and the
 * payment buttons parked where a thumb naturally lands.
 *
 * Palette follows the customer concept PDF (deep navy surfaces, DOYA blue accent).
 */

:root {
    /* Surfaces — darkest at the back, lighter as elements come forward. */
    --dp-bg:            #0b1220;
    --dp-surface:       #101c33;
    --dp-surface-2:     #16273f;
    --dp-surface-3:     #1d3252;
    --dp-border:        #24406b;

    /* Brand */
    --dp-blue:          #1f6fff;
    --dp-blue-strong:   #0d5ae8;
    --dp-navy:          #16305c;

    /* Payment. Cash and card must never be confused at a glance, so they differ in
       hue AND in position — colour alone is not an accessible distinction. */
    --dp-cash:          #1a7a3c;
    --dp-cash-strong:   #14612f;
    --dp-card:          var(--dp-blue);
    --dp-card-strong:   var(--dp-blue-strong);

    /* Text */
    --dp-text:          #eaf1ff;
    --dp-text-muted:    #93a7c8;
    --dp-text-dim:      #64789b;

    /* Status */
    --dp-danger:        #d64545;
    --dp-warn:          #d99a2b;
    --dp-ok:            #2fa36b;

    /* Touch targets. 56px is the floor; primary actions get considerably more.
       Anything smaller gets mis-tapped by wet or gloved hands. */
    --dp-tap-min:       56px;
    /* Comfortably above the 44px a thumb needs, and small enough that a phone shows a
       whole category without scrolling. */
    --dp-tile-h:        76px;
    --dp-pay-h:         112px;

    --dp-radius:        14px;
    --dp-radius-sm:     10px;
    --dp-gap:           10px;

    --dp-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Safe areas so the payment buttons clear the iOS home indicator. */
    --dp-safe-bottom: env(safe-area-inset-bottom, 0px);
    --dp-safe-top:    env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

/* The `hidden` attribute only sets `display: none` at the user-agent level, so ANY
   `display` declaration silently overrides it. That is not cosmetic: a hidden full-screen
   overlay keeps its layout box and swallows every click on the page beneath it. This rule
   makes `hidden` mean hidden, whatever a component's own display value happens to be. */
[hidden] { display: none !important; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--dp-bg);
    color: var(--dp-text);
    font-family: var(--dp-font);
    /* The terminal is an app, not a document: no rubber-band scroll, no accidental zoom,
       no long-press text selection while tapping tiles quickly. */
    overscroll-behavior: none;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body.dp-terminal {
    user-select: none;
    height: 100dvh;
    overflow: hidden;
}

/* ------------------------------------------------------------------ layout */

.dp-app {
    display: flex;
    flex-direction: column;
    height: 100dvh;
}

.dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(10px + var(--dp-safe-top)) 14px 10px;
    background: var(--dp-navy);
    border-bottom: 1px solid var(--dp-border);
    flex: 0 0 auto;
}

.dp-header__staff {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .2px;
}

/* Brand block: the mark and the name it stands for, kept together on the left. */
.dp-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.dp-header__brand .dp-header__staff {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dp-header__tools {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.dp-header__logo { height: 22px; flex: 0 0 auto; opacity: .9; }

.dp-main {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 12px 0;
}

.dp-footer {
    /* The toast hangs off its top edge. */
    position: relative;
    flex: 0 0 auto;
    padding: 12px 12px calc(12px + var(--dp-safe-bottom));
    background: linear-gradient(to top, var(--dp-bg) 70%, transparent);
}

.dp-nachlauf {
    position: fixed;
    z-index: 850;
    left: 50%;
    bottom: calc(12px + var(--dp-safe-bottom));
    transform: translateX(-50%);
    width: min(560px, calc(100vw - 24px));
    padding: 12px 18px;
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius-sm);
    background: var(--dp-surface-2);
    color: var(--dp-text);
    box-shadow: 0 8px 24px rgb(0 0 0 / .35);
    text-align: center;
    font-weight: 700;
    pointer-events: none;
}

.dp-nachlauf[hidden] { display: none; }

/* ------------------------------------------------------------------- tiles */

.dp-section-title {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dp-blue);
    margin: 14px 2px 8px;
}
.dp-section-title:first-child { margin-top: 2px; }

/* Two columns on a phone, more as the viewport grows. The tablet shows "mehr Kacheln
   auf einen Blick" with identical logic — same markup, only the column count changes. */
.dp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--dp-gap);
}

.dp-tile {
    /* TH.7 (59ab52): the badge of the bon (.dp-tile__menge) is placed on the tile in either look. */
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: var(--dp-tile-h);

    /* The name and its price belong together. Spread to the corners of an 84px box they
       read as two separate things with a hole between them, and the hole cost a row of
       tiles on a phone. */
    gap: 2px;
    justify-content: center;
    padding: 10px 12px;
    background: var(--dp-surface-2);
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius);
    color: var(--dp-text);
    text-align: left;
    font: inherit;
    cursor: pointer;
    /* Feedback has to be instant — an employee taps and looks away before the render lands. */
    transition: transform .06s ease, background-color .06s ease;
}
.dp-tile:active {
    transform: scale(.97);
    background: var(--dp-surface-3);
}
.dp-tile__name {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.25;
}
.dp-tile__price {
    font-size: .95rem;
    font-weight: 700;
    color: var(--dp-blue);
}
/* KB.1 (380c26): a tile with the article's picture - the picture on top, cut to fill, name and price below. */
.dp-tile--bild { justify-content: flex-start; padding-top: 6px; }
.dp-tile__bild {
    display: block;
    width: 100%;
    height: 64px;
    margin-bottom: 4px;
    border-radius: calc(var(--dp-radius) - 4px);
    object-fit: cover;
    pointer-events: none;
}
.dp-tile--submenu .dp-tile__price::after { content: "›"; font-size: 1.3rem; }
/* Ue.2 (E5): open-price and description tiles - shown, not bookable until U.4. */
.dp-tile--gesperrt { opacity: 0.45; cursor: not-allowed; }
.dp-tile--gesperrt .dp-tile__price { font-size: 0.8rem; }
/* GA.2: a sold-out tile says so in the place of its price, in the warning colour - locked, not broken. */
.dp-tile--ausverkauft .dp-tile__price { color: var(--dp-danger); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }

/* GA.2: the sold-out list - one switch per article, wide enough for a thumb. */
.dp-ausverkauft .dp-row { grid-template-columns: 1fr auto; }
.dp-ausverkauft__schalter { min-width: 11rem; margin: 0; }
.dp-ausverkauft .dp-row.is-ausverkauft .dp-row__title { color: var(--dp-text-muted); }

/* ------------------------------------------------------------------- cart */

/* The running receipt for the customer in the chair. It sits above the finish button,
   capped in height so a long visit scrolls instead of pushing the tiles off screen. */
.dp-cart {
    margin-bottom: 10px;
    background: var(--dp-surface-2);
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius);
    overflow: hidden;
}
.dp-cart__lines {
    max-height: 30dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.dp-cart__line {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--dp-border);
}
.dp-cart__line:last-child { border-bottom: none; }
.dp-cart__name {
    font-size: .92rem;
    /* A typed "Sonstiges" description can be long; it must not push the price out of view. */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dp-cart__price {
    font-size: .92rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.dp-cart__remove {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    background: transparent;
    border: 1px solid var(--dp-border);
    border-radius: 50%;
    color: var(--dp-text-muted);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}
.dp-cart__remove:active {
    background: var(--dp-danger);
    color: #fff;
}
/* R.6.b: the discount button of a cart line - shaped like its neighbour, but its own class so that
   the colour choice (D.4) can style it apart from the remove button's danger state. Tokens only. */
.dp-cart__discount {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    background: transparent;
    border: 1px solid var(--dp-border);
    border-radius: 50%;
    color: var(--dp-text-muted);
    font-size: .95rem;
    line-height: 1;
    cursor: pointer;
}
.dp-cart__discount:active {
    border-color: var(--dp-blue);
    color: var(--dp-blue);
}
.dp-cart__total {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--dp-surface-3);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.dp-btn:disabled {
    background: var(--dp-surface-3);
    color: var(--dp-text-dim);
    cursor: default;
}

/* The same lines again on the payment screen — read-only this time, because money is
   about to change hands and the list should not shift under the employee's thumb. */
.dp-receipt {
    margin-bottom: 12px;
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius);
    overflow: hidden;
}
.dp-receipt__line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    background: var(--dp-surface-2);
    border-bottom: 1px solid var(--dp-border);
    font-size: .92rem;
    font-variant-numeric: tabular-nums;
}
.dp-receipt__line:last-child { border-bottom: none; }

/* GZ.1: a line of the split screen - the whole row is the button that moves it to the next guest. */
.dp-aufteilen__zeile {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: var(--dp-tap-min);
    padding: 9px 12px;
    border: none;
    border-bottom: 1px solid var(--dp-border);
    background: var(--dp-surface-2);
    color: var(--dp-text);
    font: inherit;
    text-align: left;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}
.dp-aufteilen__zeile:last-child { border-bottom: none; }
.dp-aufteilen__gast {
    padding: 2px 10px;
    border: 2px solid var(--dp-blue);
    border-radius: var(--dp-radius-sm);
    color: var(--dp-text);
    font-weight: 600;
    white-space: nowrap;
}

/* ---------------------------------------------------------------- payment */

.dp-pay {
    display: grid;
    gap: var(--dp-gap);
}
.dp-pay__btn {
    min-height: var(--dp-pay-h);
    border: none;
    border-radius: var(--dp-radius);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: .06em;
    cursor: pointer;
    transition: transform .06s ease;
}
.dp-pay__btn:active { transform: scale(.98); }
.dp-pay__btn--cash { background: var(--dp-cash); }
.dp-pay__btn--cash:active { background: var(--dp-cash-strong); }
.dp-pay__btn--card { background: var(--dp-card); }
.dp-pay__btn--card:active { background: var(--dp-card-strong); }

.dp-mixed {
    display: grid;
    gap: 12px;
}
.dp-mixed__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, .7fr);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius);
    background: var(--dp-surface-2);
    font-weight: 700;
}
.dp-mixed__row input {
    width: 100%;
    min-height: var(--dp-tap-min);
    padding: 0 10px;
    border: 1px solid var(--dp-border);
    border-radius: 8px;
    background: var(--dp-surface);
    color: var(--dp-text);
    font: inherit;
    text-align: right;
}
.dp-mixed__row output {
    font-size: 1.25rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.dp-mixed__row--change output { color: var(--dp-ok); }

.dp-amount {
    padding: 16px;
    margin-bottom: 14px;
    background: var(--dp-surface-2);
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius);
}
.dp-amount__label { font-size: .85rem; color: var(--dp-text-muted); }
.dp-amount__value { font-size: 2rem; font-weight: 800; margin-top: 4px; }

/* K.2: quick amounts for a cash payment - "passend" plus a few round notes above the total. */
.dp-cash-quick {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--dp-gap);
    margin-bottom: 14px;
}
.dp-cash-quick__btn {
    min-height: 56px;
    font-size: 1.1rem;
}

/* GT.1: the tip question - "Kein Trinkgeld" is the largest key, so asking never slows the sale down. Two classes, so the
   later 56px minimum of every .dp-btn does not win over it. */
.dp-btn.dp-tip-ask__none {
    width: 100%;
    min-height: 96px;
    margin-bottom: 14px;
    font-size: 1.4rem;
    font-weight: 800;
}
#tipAskSuggestions { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------------------------------------------------------------- buttons */

.dp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--dp-tap-min);
    width: 100%;
    padding: 0 18px;
    border: none;
    border-radius: var(--dp-radius);
    background: var(--dp-blue);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}
.dp-btn:active { background: var(--dp-blue-strong); }
.dp-btn--ghost {
    background: transparent;
    border: 1px solid var(--dp-border);
    color: var(--dp-text-muted);
}
/* Used on its own, not alongside .dp-btn — so it has to undo the browser's default
   <button> chrome itself. Without the border reset every "Abmelden", "Bearbeiten" and
   "Mit DOYA koppeln" rendered as a boxed control instead of a quiet link. */
.dp-btn--link {
    width: auto;
    min-height: auto;
    padding: 6px 4px;
    border: none;
    border-radius: 6px;
    background: none;
    color: var(--dp-text-muted);
    font: inherit;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
}
.dp-btn--link:hover { color: var(--dp-text); }

/* Focus rings are shown for keyboard navigation but not after a tap. Without
   :focus-visible the browser leaves a stray outline on whatever was last touched,
   which reads as a stuck or selected control on a touch-only device. */
.dp-btn:focus,
.dp-tile:focus,
.dp-pay__btn:focus { outline: none; }

.dp-btn:focus-visible,
.dp-tile:focus-visible,
.dp-pay__btn:focus-visible {
    outline: 3px solid var(--dp-text);
    outline-offset: 2px;
}

/* ------------------------------------------------------------ form fields */

.dp-field {
    display: block;
    margin-bottom: 14px;
}
.dp-field > span {
    display: block;
    margin-bottom: 6px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--dp-text-muted);
}
.dp-field input {
    width: 100%;
    min-height: var(--dp-tap-min);
    padding: 0 14px;
    background: var(--dp-surface-2);
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius-sm);
    color: var(--dp-text);
    /* 16px minimum: iOS Safari zooms the whole page on focus for anything smaller,
       which throws off every tap target on the screen. */
    font-size: 1rem;
    font-family: inherit;
}
.dp-field input:focus {
    outline: 2px solid var(--dp-blue);
    outline-offset: 1px;
}

.dp-hint {
    margin: 0 2px 16px;
    font-size: .9rem;
    line-height: 1.5;
    color: var(--dp-text-muted);
}
#customError {
    color: var(--dp-danger);
    font-weight: 600;
}

/* ---------------------------------------------------------------- keypad */

.dp-grid--keypad {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 12px;
}
@media (min-width: 600px) {
    /* Overrides the 3-column responsive rule above — a numeric keypad is always 3 wide,
       whatever the viewport. */
    .dp-grid--keypad { grid-template-columns: repeat(3, 1fr); }
}
.dp-tile--key {
    align-items: center;
    justify-content: center;
    min-height: 68px;
}
.dp-tile--key .dp-tile__name {
    font-size: 1.6rem;
    font-weight: 700;
}

#pinDots {
    letter-spacing: .3em;
    transition: color .15s ease;
}
#pinDots.is-error { color: var(--dp-danger); }

/* ----------------------------------------------------------------- toast */

/* Confirmation is a glance, not a dialog: it must never need dismissing, because the
   employee has already moved on to the next customer.

   Anchored to the TOP. It used to sit above the finish button, but the footer grows with
   the cart, so on a three-line receipt the toast landed on top of the lines and made the
   running total unreadable — obscuring the number the employee is about to charge. The top
   edge is the only position that stays clear however long the visit gets. */
.dp-toast {
    /* Fixed under the header, centred. It used to hang off the receipt's top edge, which
       works on a phone where the receipt is at the bottom — but on a wide screen the footer
       sits beside the tiles near the top, so the message landed in the header, half-hidden
       behind the language button. That is where an employee least expects it and exactly where
       "Tag abgeschlossen" was being missed. Fixed to the viewport, it is in the same place on
       every screen and covers nothing that is being tapped. */
    position: fixed;
    left: 50%;
    top: calc(var(--dp-safe-top) + 64px);

    transform: translateX(-50%);
    z-index: 900;
    padding: 10px 18px;
    max-width: calc(100vw - 32px);
    background: var(--dp-ok);
    color: #04170d;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgb(0 0 0 / .35);
    animation: dp-toast-in .16s ease-out;
}
@keyframes dp-toast-in {
    from { opacity: 0; transform: translate(-50%, -8px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .dp-toast { animation: none; }
}

/* ------------------------------------------------------- offline indicator */

/* Offline is a normal state here, not an error — the shop keeps working. It is shown
   calmly and persistently rather than as an alarm, with the pending count so the owner
   can see nothing was lost. */
.dp-offline {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--dp-warn);
    color: #241a02;
    font-size: .85rem;
    font-weight: 700;
}
body.is-offline .dp-offline { display: flex; }

/* -------------------------------------------------------------- responsive */

/* Large phone / small tablet portrait. */
@media (min-width: 600px) {
    .dp-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet — the "mehr Kacheln auf einen Blick" layout from the concept. */
@media (min-width: 900px) {
    :root { --dp-tile-h: 96px; --dp-gap: 12px; }
    .dp-grid { grid-template-columns: repeat(4, 1fr); }
    .dp-main { padding: 16px 16px 0; }
    .dp-tile__name { font-size: 1.02rem; }
}

@media (min-width: 1280px) {
    .dp-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Landscape tablet: put the payment buttons side by side so neither hand has to travel. */
@media (min-width: 720px) and (orientation: landscape) {
    .dp-pay { grid-template-columns: 1fr 1fr; }
}

/* Respect the user's motion preference — the scale feedback is a nicety, not a necessity. */
@media (prefers-reduced-motion: reduce) {
    .dp-tile, .dp-pay__btn { transition: none; }
    .dp-tile:active, .dp-pay__btn:active { transform: none; }
}

/* ==========================================================================
   PANEL — the owner's surface.
   Shares the terminal's palette and touch sizing, but is read at a desk on a
   laptop as often as on a phone, so it favours density over thumb reach.
   ========================================================================== */

body.dp-panel { min-height: 100dvh; }
body.dp-panel .dp-app { height: auto; min-height: 100dvh; }
body.dp-panel .dp-main { overflow: visible; padding-bottom: 40px; }

.dp-main--narrow { max-width: 420px; margin: 0 auto; width: 100%; }

/* Wide screens: cap the reading width. A table of sales stretched across a 27" monitor
   is a row of numbers nobody can track back to its label. */
@media (min-width: 900px) {
    body.dp-panel .dp-main,
    body.dp-panel .dp-tabs { max-width: 1080px; margin-inline: auto; width: 100%; }
}

/* ------------------------------------------------------------------- tabs */

.dp-tabs {
    display: flex;
    gap: 2px;
    padding: 0 12px;
    background: var(--dp-surface);
    border-bottom: 1px solid var(--dp-border);
    overflow-x: auto;
    /* The tab strip scrolls on a narrow phone rather than wrapping — a second row of
       tabs pushes the actual content below the fold. */
    scrollbar-width: none;
}
.dp-tabs::-webkit-scrollbar { display: none; }

.dp-tab {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 16px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--dp-text-muted);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.dp-tab.is-active {
    color: var(--dp-text);
    border-bottom-color: var(--dp-blue);
}

/* ---------------------------------------------------------------- toolbar */

.dp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}
.dp-btn--auto { width: auto; }

.dp-field--inline { margin-bottom: 0; }
.dp-field--inline input { min-width: 160px; }

.dp-field select {
    width: 100%;
    min-height: var(--dp-tap-min);
    padding: 0 12px;
    background: var(--dp-surface-2);
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius-sm);
    color: var(--dp-text);
    font-size: 1rem;
    font-family: inherit;
}

.dp-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: .9rem;
    cursor: pointer;
}
.dp-check input {
    /* Checkboxes default to ~13px, which is far below a reliable tap target. */
    width: 22px;
    height: 22px;
    accent-color: var(--dp-blue);
}

/* ------------------------------------------------------------------ stats */

.dp-stats {
    display: grid;
    /* Ü.6 (4b8fd1): so viele Kacheln nebeneinander, wie ihre Mindestbreite erlaubt - nie eine feste Spaltenzahl.
       Bei 1280 px lag der Tagesabschluss (max. 560 px breit) mit vier festen Spalten bei ~120 px je Kachel,
       "158,50 EUR" ragte über den Rand. Die Mindestbreite reicht für "99.999,99 EUR" in der kleinsten Schrift. */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
    gap: var(--dp-gap);
    margin-bottom: 18px;
}

/* Die Mindestbreite je Kachel (9,5 rem) hält auch "LEISTUNGEN" und "PRODUKTE (LADEN)" ohne Umbruch mitten im Wort. */

.dp-stat {
    padding: 14px;
    background: var(--dp-surface-2);
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius);

    /* Ohne min-width:0 nimmt eine Gitterzelle die Breite ihres laengsten Wortes als
       Untergrenze. Mit der sechsten Kachel im Tagesabschluss ("Produkte (Laden)") wurde
       die Reihe dadurch breiter als der Bildschirm: BAR war abgeschnitten und darunter
       lag ein Querbalken. Auf einem Tablet heisst das, der Mitarbeiter sieht seine
       Bareinnahme beim Abschluss nicht. */
    min-width: 0;

    /* Der Betrag richtet seine Schrift nach der Kachel, nicht nach dem Fenster (cqw). */
    container-type: inline-size;
}
.dp-stat__label {
    display: block;
    /* Umbrechen statt ueberstehen — siehe min-width oben. Break-word, nicht anywhere:
       zuerst an der Wortgrenze, mitten im Wort nur als letzter Ausweg. */
    overflow-wrap: break-word;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--dp-text-muted);
}
.dp-stat__value {
    display: block;
    margin-top: 4px;
    /* 11 Zeichen ("99.999,99 EUR") passen bei 12 cqw in die Kachelbreite; unten 1,05 rem, oben 1,5 rem.
       Die Zeile davor ist der Rückfall: ein Browser ohne Container-Einheiten verwirft die ganze clamp()-Zeile. */
    font-size: 1.5rem;
    font-size: clamp(1.05rem, 12cqw, 1.5rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ------------------------------------------------------------------ lists */

.dp-group {
    margin-bottom: 18px;
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius);
    overflow: hidden;
}
.dp-group__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--dp-surface-3);
    font-weight: 700;
}

.dp-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 12px;
    padding: 12px;
    background: var(--dp-surface-2);
    border-bottom: 1px solid var(--dp-border);
}
.dp-row:last-child { border-bottom: none; }

/* Actions drop under the row on a phone rather than squeezing the amount. */
.dp-row__actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
}
@media (min-width: 700px) {
    .dp-row { grid-template-columns: 1fr auto auto; }
    .dp-row__actions { grid-column: auto; }
}

.dp-row__title { font-size: .95rem; font-weight: 600; line-height: 1.45; }
.dp-row__meta { margin-top: 2px; font-size: .82rem; color: var(--dp-text-muted); }
.dp-row__value {
    font-size: 1.05rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* A reversed sale is dimmed and struck through, never removed. The record is
   append-only, so the owner must see that a correction happened rather than a gap. */
.dp-row.is-reversed .dp-row__title,
.dp-row.is-reversed .dp-row__value { text-decoration: line-through; opacity: .55; }

.dp-list { margin-bottom: 24px; }

.dp-tag {
    display: inline-block;
    padding: 1px 7px;
    margin-left: 4px;
    background: var(--dp-surface-3);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--dp-text-muted);
    vertical-align: middle;
}
.dp-tag--danger { background: var(--dp-danger); color: #fff; }

.dp-alert {
    padding: 10px 12px;
    margin: 0 0 14px;
    background: rgb(214 69 69 / .15);
    border: 1px solid var(--dp-danger);
    border-radius: var(--dp-radius-sm);
    color: #ffc9c9;
    font-size: .9rem;
}

/* ------------------------------------------------------------------ modal */

.dp-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgb(0 0 0 / .6);
    overflow-y: auto;
}
.dp-modal__box {
    width: 100%;
    max-width: 460px;
    max-height: 90dvh;
    overflow-y: auto;
    padding: 20px;
    background: var(--dp-surface);
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius);
}
.dp-modal__title { margin: 0 0 16px; font-size: 1.15rem; }
.dp-modal__actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.dp-modal__actions .dp-btn { flex: 1; }

/* The pairing link. Wraps rather than truncating — it is copied by hand onto a tablet
   and is shown exactly once, so every character has to be visible. */
.dp-code {
    padding: 12px;
    background: var(--dp-bg);
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius-sm);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .82rem;
    word-break: break-all;
    user-select: all;
}

/* ==========================================================================
   CHARTS
   Palette validated with the dataviz validator against the dark chart surface
   (#16273f): lightness band, chroma floor, CVD separation and contrast all pass.
     BAR   #2fa36b   (= --dp-ok)
     KARTE #1f6fff   (= --dp-blue)
   Deutan ΔE 27.5, normal ΔE 29.4 — well clear. Tritan separation is 6.4, in the
   floor band, which is legal only with secondary encoding: both segments carry a
   direct label AND a 2px surface gap, so identity never rests on hue alone.
   ========================================================================== */

.dp-chart {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--dp-surface-2);
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius);
}
.dp-chart__title {
    margin: 0 0 4px;
    font-size: .95rem;
    font-weight: 700;
}
.dp-chart__sub {
    margin: 0 0 16px;
    font-size: .8rem;
    color: var(--dp-text-muted);
}
.dp-chart__empty {
    padding: 8px 0 4px;
    font-size: .9rem;
    color: var(--dp-text-muted);
}

/* ------------------------------------------------------- ranked bars (h) */

/* Horizontal because the labels are long German service names — rotating them or
   truncating would cost more than the vertical space saves. */
.dp-bars { display: flex; flex-direction: column; gap: 10px; }

.dp-bar__row {
    display: grid;
    grid-template-columns: minmax(90px, 27%) 1fr auto;
    align-items: center;
    gap: 10px;
}
.dp-bar__label {
    font-size: .85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dp-bar__track {
    /* display:block is load-bearing, not tidiness: these are spans, and height has no
       effect on an inline box — the bars rendered as empty tracks with no fill at all. */
    display: block;
    position: relative;
    height: 20px;                 /* mark spec: bars capped well under 24px */
    background: var(--dp-bg);
    border-radius: 4px;
}
.dp-bar__fill {
    display: block;
    height: 100%;
    min-width: 3px;
    background: var(--dp-blue);
    /* Square at the baseline, 4px rounded at the data end — the end is where the
       value is, so that is the end that gets shaped. */
    border-radius: 0 4px 4px 0;
}
.dp-bar__value {
    font-size: .85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.dp-bar__count {
    font-size: .78rem;
    color: var(--dp-text-muted);
    font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ split bar */

/* Two values, so this is one bar rather than a pie: a two-slice pie asks the reader
   to compare angles when a single length answers it instantly. */
.dp-split {
    display: flex;
    height: 28px;
    border-radius: 6px;
    overflow: hidden;
    /* The 2px surface gap between segments — separation by negative space, never a
       stroke, which would add ink that is not data. */
    gap: 2px;
    background: var(--dp-surface-2);
}
.dp-split__seg {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3px;
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.dp-split__seg--cash { background: var(--dp-ok); border-radius: 6px 0 0 6px; }
.dp-split__seg--card { background: var(--dp-blue); border-radius: 0 6px 6px 0; }

.dp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    font-size: .82rem;
    /* Text wears text tokens, never the series colour — the swatch beside it carries
       identity, so the label stays readable at any contrast. */
    color: var(--dp-text-muted);
}
.dp-legend__item { display: flex; align-items: center; gap: 6px; }
.dp-legend__dot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }

/* -------------------------------------------------------- hour columns */

.dp-hours {
    display: grid;
    grid-auto-flow: column;
    /* Capped so a day with a single busy hour renders as one column with air beside it,
       not a wall of colour that reads as a rendering fault. Mark spec caps bars at 24px;
       columns get a little more because they carry the hour label underneath. */
    grid-auto-columns: minmax(0, 34px);
    justify-content: start;
    align-items: end;
    gap: 2px;                     /* the surface gap again, between adjacent columns */
    height: 130px;
}
.dp-hour { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.dp-hour__col {
    display: block;
    background: var(--dp-blue);
    border-radius: 4px 4px 0 0;   /* rounded cap, square on the baseline */
    min-height: 2px;
}
.dp-hour__col--empty { background: var(--dp-border); }
.dp-hour__label {
    margin-top: 6px;
    font-size: .68rem;
    color: var(--dp-text-dim);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ table view */

/* Every chart's numbers are also available as text — the contrast warning on any
   fill is discharged here, and a screen reader never depends on a bar's length. */
.dp-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.dp-table th, .dp-table td {
    padding: 7px 10px;
    text-align: left;
    border-bottom: 1px solid var(--dp-border);
}
.dp-table th { color: var(--dp-text-muted); font-weight: 600; font-size: .78rem; }
.dp-table td:last-child, .dp-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.dp-details { margin-top: 14px; }
.dp-details > summary {
    cursor: pointer;
    font-size: .82rem;
    color: var(--dp-text-muted);
    padding: 4px 0;
}

/* ==========================================================================
   DESKTOP LAYOUTS
   The terminal is a tablet app and stays touch-first. The panel and the admin
   are desk tools opened on a laptop, and were wrong: a phone column stretched
   across 1440px with one field per row. These give them the shape DoyaOps uses —
   a split sign-in, a capped content column, and forms that use the width.
   ========================================================================== */

/* -------------------------------------------------------------- sign-in */

/* Two columns on a desktop, stacked on a phone: brand and promise on the left,
   the form on the right — the same split cloud.doyaops.com uses, so someone who
   signs in there does not arrive somewhere that feels like a different product. */
.dp-auth {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 32px;
    padding: 24px;
    /* A faint grid, like the DoyaOps sign-in. Two gradients rather than an image:
       nothing to download, and it scales to any viewport. */
    background:
        linear-gradient(rgba(36, 64, 107, .16) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(90deg, rgba(36, 64, 107, .16) 1px, transparent 1px) 0 0 / 44px 44px,
        radial-gradient(1200px 600px at 20% 15%, #12203a 0%, var(--dp-bg) 60%);
}

@media (min-width: 900px) {
    .dp-auth {
        grid-template-columns: 1fr minmax(380px, 440px);
        gap: 64px;
        padding: 48px min(8vw, 96px);
    }
}

/* Grid children default to min-width:auto, so one unbreakable string — the
   cloud.doyaops.com line under the button — was widening the column past the
   viewport and pushing the card off the right edge of a phone. */
.dp-auth > * { min-width: 0; }
.dp-auth__foot { overflow-wrap: anywhere; }

.dp-auth__brand { max-width: 560px; }

.dp-auth__logo { height: 46px; margin-bottom: 40px; }

.dp-auth__eyebrow {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--dp-text-dim);
    margin: 0 0 14px;
}
.dp-auth__tagline {
    margin: 0 0 16px;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
}
.dp-auth__body {
    margin: 0 0 32px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dp-text-muted);
    max-width: 46ch;
}
.dp-auth__features { display: flex; flex-direction: column; gap: 14px; }
.dp-auth__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .95rem;
    color: var(--dp-text);
}
.dp-auth__bullet {
    width: 34px; height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--dp-surface-3);
    color: var(--dp-blue);
    font-weight: 800;
}

/* The brand column is the part that goes when there is no room: on a phone the
   form is the whole job, and a wall of marketing above it just pushes it down. */
@media (max-width: 899px) {
    .dp-auth__body, .dp-auth__features { display: none; }
    .dp-auth__logo { height: 36px; margin-bottom: 18px; }
    .dp-auth__brand { max-width: none; text-align: center; }
}

.dp-auth__card {
    width: 100%;
    padding: 32px;
    background: var(--dp-surface);
    border: 1px solid var(--dp-border);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgb(0 0 0 / .35);
}
.dp-auth__title { margin: 0 0 6px; font-size: 1.45rem; font-weight: 800; }
.dp-auth__sub { margin: 0 0 24px; font-size: .92rem; color: var(--dp-text-muted); }
.dp-auth__foot {
    margin: 20px 0 0;
    font-size: .82rem;
    color: var(--dp-text-dim);
    text-align: center;
}

/* On a phone the header runs out of room: shop name, logo, language and sign-out do not
   fit across 390px, and the sign-out ran off the right edge. The logo goes first — it
   repeats a wordmark already spelled out beside it — and the language name follows,
   leaving the flag, which is the part that identifies the control anyway. */
@media (max-width: 599px) {
    .dp-lang--inline .dp-lang__name { display: none; }
    .dp-lang--inline .dp-lang__toggle { padding-inline: 10px; gap: 6px; }
}

/* -------------------------------------------------- language switcher */

/*
 * A flag, the language name and a chevron — the shape DoyaOps uses, so the switcher is
 * recognisable to anyone arriving from there.
 *
 * Built on <details>, so it opens and closes and answers the keyboard without a line of
 * JavaScript. The one thing that costs is closing on an outside click, which <details>
 * does not do on its own; a full-screen backdrop behind the open menu buys it back
 * without script.
 */
.dp-lang {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 40;
}
/* Inside a header the switcher stops being fixed to the viewport — but it must stay a
   positioned box, or the menu below it anchors to the page instead and lands at the
   bottom of the document. */
.dp-lang--inline { position: relative; top: auto; right: auto; }

.dp-lang__toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 0 14px;
    background: var(--dp-surface-2);
    border: 1px solid var(--dp-border);
    border-radius: 999px;
    color: var(--dp-text);
    font-size: .88rem;
    cursor: pointer;
    user-select: none;
    list-style: none;          /* Safari keeps a disclosure triangle without this. */
}
.dp-lang__toggle::-webkit-details-marker { display: none; }
.dp-lang__toggle:hover { border-color: var(--dp-blue); }
.dp-lang:not([open]) .dp-lang__toggle:focus-visible,
.dp-lang__toggle:focus-visible { outline: 2px solid var(--dp-blue); outline-offset: 2px; }

/* 4:3 keeps the German bands square-ish and the Union Jack from stretching. */
.dp-lang__flag {
    width: 22px;
    height: 16px;
    flex: 0 0 auto;
    border-radius: 3px;
    /* A hairline, so a white-heavy flag still reads as an object on a dark surface. */
    box-shadow: 0 0 0 1px rgb(255 255 255 / .18);
    object-fit: cover;
}
.dp-lang__name { font-weight: 600; }
.dp-lang__chevron { width: 14px; height: 14px; color: var(--dp-text-dim); }
.dp-lang[open] .dp-lang__chevron { transform: rotate(180deg); }

.dp-lang__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 2;
    min-width: 100%;
    padding: 6px;
    background: var(--dp-surface);
    border: 1px solid var(--dp-border);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgb(0 0 0 / .45);
}

/* Clicking anywhere else closes the menu — no script, just a backdrop that swallows
   the click and lets the <summary> toggle handle it. */
.dp-lang[open] .dp-lang__toggle::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
}

.dp-lang__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--dp-text);
    font-size: .9rem;
    text-decoration: none;
    white-space: nowrap;
}
.dp-lang__item:hover { background: var(--dp-surface-2); }
.dp-lang__item.is-current { color: var(--dp-blue); font-weight: 700; }

/* ----------------------------------------------------- panel / admin */

/* Capped, not stretched. A sales table pulled across a 27" monitor is a row of
   numbers nobody can trace back to its label. */
@media (min-width: 900px) {
    body.dp-panel .dp-main,
    body.dp-panel .dp-tabs,
    body.dp-panel .dp-header { max-width: 1200px; margin-inline: auto; width: 100%; }

    body.dp-panel .dp-header { border-radius: 0 0 14px 14px; }

    /* Same inset as the content below it, so the header's edges line up with the first
       field rather than sitting ten pixels proud of it. */
    body.dp-panel .dp-header { padding-inline: 24px; }
    body.dp-panel .dp-main { padding: 24px 24px 60px; }
}

/* Forms lay out in columns on a desk and stack on a phone — the toolbar was a
   single column at every width, which is what made the desktop look unfinished. */
@media (min-width: 700px) {
    .dp-toolbar { align-items: end; }
    .dp-toolbar .dp-field--inline { flex: 1 1 200px; margin-bottom: 0; }
    .dp-toolbar .dp-btn--auto { flex: 0 0 auto; }
}

/* A modal on a laptop can afford two columns; on a phone it must not. */
@media (min-width: 700px) {
    .dp-modal__box { max-width: 560px; padding: 28px; }
    .dp-form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 16px;
    }
    .dp-form-grid .dp-field--wide { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
    /* Two charts side by side once there is room for both to stay readable. */
    .dp-charts-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
}

/* TH.7 (59ab52): the older wide-screen grid (tiles | cart) is replaced by the rail layout at the end of this file.
 */
/* ------------------------------------------------- platform console (admin) */

/*
 * DOYA's own sign-in, deliberately unlike the shop owner's.
 *
 * The owner's screen sells the product: two columns, a promise, three bullets. This one
 * has no one to persuade — the people who reach it already work here, and everyone else
 * should realise within a second that they have the wrong address. So: one narrow card on
 * a plain surface, a steel accent instead of the product blue, and no marketing at all.
 *
 * The grid the customer screens use is dropped too. Shared styling was how this surface
 * ended up looking like a second front door for shop owners in the first place.
 */
.dp-console {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(900px 500px at 50% -10%, #16233b 0%, var(--dp-bg) 70%);
}

.dp-console__card {
    width: 100%;
    max-width: 400px;
    padding: 32px 28px;
    background: var(--dp-surface);
    border: 1px solid var(--dp-border);
    border-radius: 16px;
    /* A flat top rule in steel, not the product blue: this is tooling, not the product. */
    border-top: 3px solid #64748b;
    box-shadow: 0 20px 50px rgb(0 0 0 / .4);
    text-align: left;
}

.dp-console__logo { height: 30px; margin-bottom: 22px; opacity: .9; }

.dp-console__eyebrow {
    margin: 0 0 6px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--dp-text-dim);
}

.dp-console__title { margin: 0 0 6px; font-size: 1.3rem; font-weight: 800; }

.dp-console__sub {
    margin: 0 0 24px;
    font-size: .88rem;
    line-height: 1.5;
    color: var(--dp-text-muted);
}

.dp-console__foot {
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--dp-border);
    font-size: .78rem;
    line-height: 1.5;
    color: var(--dp-text-dim);
}

/* --------------------------------------------------------- pairing dialog */

/*
 * Three ways to get one token onto a tablet, numbered, because they are alternatives
 * rather than steps to follow in order — scanning is enough on its own.
 */
.dp-pair__step {
    margin: 18px 0 8px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--dp-text-muted);
}
.dp-pair__step:first-child { margin-top: 4px; }

.dp-pair__qr {
    display: block;
    width: 180px;
    height: 180px;
    /* White padding around it: a QR needs its quiet zone against a dark page or the
       camera cannot find the corner markers. */
    padding: 10px;
    background: #fff;
    border-radius: 10px;
}

.dp-code--copy {
    cursor: pointer;
    transition: border-color .15s ease;
}
.dp-code--copy:hover,
.dp-code--copy:focus-visible { border-color: var(--dp-blue); outline: none; }

/* The one route that works when the panel and the till are the same phone. */
.dp-pair__open {
    display: flex;
    text-decoration: none;
    margin-bottom: 8px;
}
.dp-pair__openhint { margin: 0 2px 4px; font-size: .82rem; }

/* ------------------------------------------------------------ my sales */

.dp-mine__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    /* Ü.6: Abstand zu den Kacheln darunter - das Datumsfeld berührte die KARTE-Kachel. */
    margin-bottom: 14px;
}
.dp-mine__head .dp-section-title { margin: 0; }
/* K58: the two closing buttons stood directly on each other. */
.dp-mine__close { margin-top: 10px; }

.dp-mine__date {
    min-height: var(--dp-tap-min);
    padding: 0 12px;
    background: var(--dp-surface-2);
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius-sm);
    color: var(--dp-text);
    font: inherit;
    font-size: 1rem;
}

/* A corrected sale stays on the list, struck through — the record is the product. */
.dp-row.is-reversed .dp-row__title,
.dp-row.is-reversed .dp-row__value { text-decoration: line-through; opacity: .65; }

#screenMine .dp-btn--ghost { margin-top: 16px; }

/* A header button that keeps its words on a desk and becomes its icon on a phone. */
.dp-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.dp-icon-btn svg { width: 19px; height: 19px; flex: 0 0 auto; }

@media (max-width: 599px) {
    /* The employee's name is the one thing on this bar that must not be cut, and with the
       label spelled out there was not room for it. */
    .dp-icon-btn__label { display: none; }
    .dp-icon-btn { padding: 6px 2px; }
}

/* The reason a sale was corrected — never struck through, even on a struck-through row:
   it is the one line on that row that still has to be read. */
.dp-row__reason {
    margin-top: 3px;
    color: var(--dp-text);
    font-style: italic;
    text-decoration: none;
    opacity: 1;
}
.dp-row.is-reversed .dp-row__reason { text-decoration: none; opacity: 1; }


/* Under the button, not above the fields: what an employee has to do on this screen is type
   two things, and the explanation of what else happens can wait until they have. */
.dp-claim__note { margin: 16px 2px 0; text-align: center; }

/* -------------------------------------------------------- install prompt */

/*
 * A slim bar at the foot of the sign-in screen offering "add to home screen". Above the
 * home indicator, out of the way of the form, and gone once dismissed or once the app is
 * running installed.
 */
.dp-install {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + var(--dp-safe-bottom));
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--dp-surface-2);
    border: 1px solid var(--dp-border);
    border-radius: 14px;
    box-shadow: 0 12px 34px rgb(0 0 0 / .45);
}
.dp-install__hint {
    flex: 1 1 auto;
    font-size: .86rem;
    line-height: 1.4;
    color: var(--dp-text);
}
.dp-install__go {
    flex: 1 1 auto;
    min-height: 44px;
    padding: 0 16px;
    border: none;
    border-radius: 10px;
    background: var(--dp-blue);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.dp-install__x {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: none;
    color: var(--dp-text-dim);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.dp-install__x:hover { color: var(--dp-text); }

/* Analytics trend badge — sits under a headline figure, shows the change vs the previous
   equal-length period. Colour carries direction; the arrow carries it again for anyone who
   cannot separate the two greens/reds by hue. */
.dp-stat__delta { display: inline-block; margin-top: 3px; font-size: .72rem; font-weight: 600; letter-spacing: .01em; }
.dp-stat__delta--up { color: var(--dp-ok); }
.dp-stat__delta--down { color: var(--dp-danger); }
.dp-stat__delta--flat { color: var(--dp-text); opacity: .5; }

/* Quick-range chips beside the date pickers. */
.dp-presets { display: inline-flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* "Logbuch, keine Kasse" notice — a one-time full-screen scrim the user clicks away. */
.dp-disclaimer { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(4, 8, 16, .72); }
.dp-disclaimer__card { max-width: 440px; width: 100%; background: var(--dp-card); border: 1px solid var(--dp-border); border-radius: var(--dp-radius); padding: 28px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.dp-disclaimer__title { margin: 0 0 12px; font-size: 1.15rem; }
.dp-disclaimer__body { margin: 0 0 22px; line-height: 1.55; font-size: .95rem; color: var(--dp-text); opacity: .85; }
.dp-disclaimer .dp-btn { width: 100%; }

/* Kiosk (shared till): big name tiles + a numeric PIN pad, sized for tapping on a tablet. */
.dp-kiosk-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.dp-kiosk-tile { min-height: 84px; border: 1px solid var(--dp-border); border-radius: var(--dp-radius); background: var(--dp-tile); color: var(--dp-text); font-size: 1.15rem; font-weight: 600; cursor: pointer; }
.dp-kiosk-tile:active { background: var(--dp-blue); color: #fff; }

.dp-pin { display: flex; gap: 16px; justify-content: center; margin: 14px 0 20px; }
.dp-pin__dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--dp-border); }
.dp-pin__dot.is-filled { background: var(--dp-blue); border-color: var(--dp-blue); }

.dp-pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 320px; margin: 0 auto; }
.dp-pinpad__key { min-height: 68px; border: 1px solid var(--dp-border); border-radius: var(--dp-radius); background: var(--dp-tile); color: var(--dp-text); font-size: 1.4rem; font-weight: 600; cursor: pointer; }
.dp-pinpad__key:active { background: var(--dp-blue); color: #fff; }
.dp-pinpad__key--muted { background: transparent; font-size: 1.2rem; opacity: .8; }

/* ---------------------------------------------------- shared panel filter
 *
 * One bar above the panes that governs Auswertung and Verkäufe alike. The chips carry a real
 * selected state: the old text links looked identical whether or not they were the range on
 * screen, so "7 Tage" and "30 Tage" were indistinguishable after the click.
 */
.dp-filterbar {
    /* Same gutter and cap as .dp-main / .dp-tabs, so the bar lines up with the cards it
       governs instead of floating off to the page edge. */
    padding: 14px 12px 10px;
    border-bottom: 1px solid var(--dp-border);
}
@media (min-width: 900px) {
    body.dp-panel .dp-filterbar { max-width: 1080px; margin-inline: auto; width: 100%; }
}
.dp-filterbar .dp-toolbar { margin-bottom: 6px; }
.dp-filterbar__summary {
    margin: 0;
    font-size: .88rem;
    color: var(--dp-muted);
}

.dp-chip {
    border: 1px solid var(--dp-border);
    background: transparent;
    color: var(--dp-muted);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
}
.dp-chip:hover { color: var(--dp-text); border-color: var(--dp-border-strong, var(--dp-border)); }
.dp-chip.is-active {
    background: var(--dp-blue);
    border-color: var(--dp-blue);
    color: #fff;
}

/* "Nothing here" has to say so. An empty pane reads as a broken page. */
/* Spans the chart grid: a "nichts gefunden" box squeezed into one column reads like a
   chart that failed to draw, next to an empty space where the others should be. */
.dp-charts-2 > .dp-empty { grid-column: 1 / -1; }

.dp-empty {
    border: 1px dashed var(--dp-border);
    border-radius: var(--dp-radius);
    padding: 34px 22px;
    text-align: center;
}
.dp-empty__msg { margin: 0; font-size: 1rem; font-weight: 600; color: var(--dp-text); }
.dp-empty__hint { margin: 6px 0 0; font-size: .88rem; color: var(--dp-muted); }

/* An employee who has left still owns past numbers; the row says so instead of showing a name
 * nobody on the floor recognises. */
.dp-bar__row .dp-bar__label { white-space: normal; overflow: visible; text-overflow: clip; }

.dp-bar__off {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--dp-muted);
    opacity: .8;
}

/* The day and time the till is on. Quiet, but never absent: the overview can be pointed at
   another date, and without this there is nothing on screen that says which day a tap would
   actually book. */
.dp-header__clock {
    margin-left: 10px;
    font-size: .8rem;
    color: var(--dp-muted);
    white-space: nowrap;
}
@media (max-width: 480px) { .dp-header__clock { display: none; } }

/* The header has to hold a logo, a name and up to five actions on a phone. It was letting the
   brand and the tools overlap — "DOYA" printed on top of "Logbuch" — because neither side was
   allowed to give way. The brand shrinks and truncates; the actions keep their size and scroll
   sideways if they must, so a button is never unreachable and never covered. */
.dp-terminal .dp-header { gap: 8px; }
.dp-terminal .dp-header__brand {
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
}
.dp-terminal .dp-header__staff {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dp-terminal .dp-header__tools {
    flex: 0 0 auto;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}
.dp-terminal .dp-header__tools::-webkit-scrollbar { display: none; }

/* Under ~430px the logo alone carries the branding: a truncated shop name earns nothing and
   the actions are what an employee actually needs to reach. */
@media (max-width: 430px) {
    .dp-terminal .dp-header__staff { display: none; }
}

/* A sale the server refused for good: the customer paid and nothing was recorded. Loud on
   purpose and it does not fade — the toast pattern is wrong here, because the only repair is
   a person re-entering the booking. Pinned under the header, the one spot free on every
   screen (same reasoning as .dp-toast). */
.dp-lost {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 72px;
    z-index: 60;
    max-width: min(92vw, 460px);
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid #f0b23c;
    background: #3b2408;
    color: #ffe9c2;
    font-size: 15px;
    line-height: 1.45;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

.dp-lost strong { display: block; margin-bottom: 6px; font-size: 16px; }
.dp-lost__hint { margin-top: 8px; font-weight: 600; }
.dp-lost .dp-btn--link { margin-top: 10px; color: #ffe9c2; text-decoration: underline; }

/* Ü.3: one line per lost case, its own "Verwerfen" beside it rather than only the banner's
   single "Verstanden" - a discard is a decision about that one case, not about the banner. */
.dp-lost__line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}
.dp-lost__line .dp-btn--link { margin-top: 0; flex: 0 0 auto; }
.dp-lost__line .dp-btn--link:disabled { opacity: .5; cursor: not-allowed; text-decoration: none; }

/* Ankreuzfeld im Formular-Baustein.
 *
 * `.dp-field input` stylt Texteingaben: volle Breite, 44 px hoch, gefuellter Hintergrund. Auf
 * ein <input type="checkbox"> angewandt ergab das einen 160 px breiten, leeren weissen Kasten
 * ueber der Beschriftung — der Schalter "Namen an der Kasse anzeigen" sah aus wie ein
 * kaputtes Textfeld, und ob er an oder aus war, konnte man ueberhaupt nicht sehen. */
.dp-field input[type="checkbox"] {
    width: 22px;
    min-width: 22px;
    height: 22px;
    min-height: 22px;
    padding: 0;
    margin: 0;
    accent-color: var(--dp-blue);
    cursor: pointer;
}

/* Kaestchen und Beschriftung nebeneinander, nicht untereinander. */
.dp-field--inline {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.dp-field--inline > span {
    display: inline;
    margin-bottom: 0;
    color: var(--dp-text);
}

/* Zweizeilige Kachel: Nummer klein und zurueckgenommen, Name gross und fett. Der Name ist,
   was der Mitarbeiter sucht; die Nummer ist nur die Bruecke zur alten neutralen Beschriftung. */
.dp-kiosk-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    line-height: 1.2;
    padding: 8px 10px;
}
.dp-kiosk-tile__num {
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .42);
    letter-spacing: .04em;
}
.dp-kiosk-tile__name { font-size: 1.35rem; font-weight: 800; }

/* Dieselbe Ordnung in der Mitarbeiterliste des Inhabers. */
.dp-row__kiosk {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--dp-text-muted);
    margin-bottom: 2px;
}

/* T.6 (5e257b): the TSE outage bar. Sticky at the top and in the flow, so it covers nothing it could
   block; no close control, and no pointer events of its own - there is nothing to tap on it. */
.dp-tse-banner {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0.6rem 1rem;
    background: var(--dp-danger);
    color: #fff;
    font-weight: 600;
    text-align: center;
    pointer-events: none;
}
.dp-tse-banner[hidden] { display: none; }

/* ==========================================================================
   D.3 — approved "Einsatzfokus" presentation for the live till.

   The earlier rules remain the proven interaction layer. This final section maps that
   layer to the approved brand tokens and responsive zones without changing behaviour.
   ========================================================================== */

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-SemiBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root,
:root[data-kasse-palette="einsatzfokus"] {
    /* CI.1 (81ab52): the light side of the default world is the DOYA CI of the approved homepage (doyaops.com) - white, a hint of
       Pale Sky for the working surface, Prussian Blue text, True Cobalt for every main action. Replaces the warm "Galerie" of TH.3.
       Contrasts (text on its surface, computed by tools/js-tests/doya-ci-kontrast.test.mjs from these very tokens):
       ink #0d2347 on #ffffff 15.6:1 and on #eaf4fd 14.0:1, muted #3d5470 on #ffffff 7.8:1 and on #eaf4fd 7.0:1, white on True Cobalt
       #001d86 13.8:1, control border #5e7894 on #ffffff 4.6:1 (non-text, 3:1). Fresh Sky #11a6f6 (2.7:1 on white) is the logo and the
       focus ring's inner gap only, never text. */
    --k-light-page: #ffffff; --k-light-app: #eaf4fd; --k-light-bg: #ffffff;
    --k-light-surface: #ffffff; --k-light-surface-2: #f3f8fd; --k-light-surface-3: #c8e5fc;
    --k-light-border: #5e7894; --k-light-line: #d3e0ee; --k-light-header: #ffffff;
    --k-light-text: #0d2347; --k-light-muted: #3d5470; --k-light-dim: #5f615e; --k-light-locked: #5f615e;
    --k-light-primary: #001d86; --k-light-primary-strong: #00126a; --k-light-eyebrow: #001d86;
    --k-light-focus-outline: #001d86; --k-light-focus-gap: #ffffff;
    --k-light-warn: #fff1cc; --k-light-warn-text: #4f3500; --k-light-warn-border: #a87a12;
    --k-light-tse: #eaf4fd; --k-light-tse-text: #0d2347; --k-light-tse-border: #5e7894;

    --k-dark-page: #0a0b0d; --k-dark-app: #171c26; --k-dark-bg: #1c2230;
    --k-dark-surface: #171c26; --k-dark-surface-2: #242c3d; --k-dark-surface-3: #0d2347;
    --k-dark-border: #7f97b8; --k-dark-line: #33405a; --k-dark-header: #010101;
    --k-dark-text: #f4f8fc; --k-dark-muted: #b9cbe0; --k-dark-dim: #b9cbe0; --k-dark-locked: #b9cbe0;
    --k-dark-primary: #001d86; --k-dark-primary-strong: #001466; --k-dark-eyebrow: #6cc8fa;
    --k-dark-focus-outline: #6cc8fa; --k-dark-focus-gap: #010101;
    --k-dark-warn: #3a2c0e; --k-dark-warn-text: #ffe3a3; --k-dark-warn-border: #a87a12;
    --k-dark-tse: #102d49; --k-dark-tse-text: #e5f4ff; --k-dark-tse-border: #38516f;
}

/* TH.7 (59ab52): the three older colour worlds (midnight, cobalt, calm) are gone - in the light look they made pale blue surfaces.
   kasse-theme.js maps every stored or owner-set name to this one world. */

/* GA.4 (3e410f): the eight group colours - a fixed palette, chosen by number (data-farbe), never sent as a colour by
   the server. Light tints and deep tones, the same in every colour world: each keeps 4.5:1 against that world's tile
   text (tools/js-tests/kasse-theme.test.mjs computes it). Order: blue, green, red, orange, violet, teal, yellow, pink. */
:root {
    --k-light-gruppe-1: #cfe2ff; --k-dark-gruppe-1: #163f80;
    --k-light-gruppe-2: #ccebd2; --k-dark-gruppe-2: #1d5a2e;
    --k-light-gruppe-3: #ffd5d5; --k-dark-gruppe-3: #7a1f24;
    --k-light-gruppe-4: #ffdfbd; --k-dark-gruppe-4: #7a4108;
    --k-light-gruppe-5: #e4d6ff; --k-dark-gruppe-5: #4b2a80;
    --k-light-gruppe-6: #c4ece7; --k-dark-gruppe-6: #0f5751;
    --k-light-gruppe-7: #fff0a6; --k-dark-gruppe-7: #5c4a00;
    --k-light-gruppe-8: #ffd7ec; --k-dark-gruppe-8: #7a1f55;
}

:root {
    --dp-page: var(--k-light-page); --dp-app: var(--k-light-app); --dp-bg: var(--k-light-bg);
    --dp-surface: var(--k-light-surface); --dp-surface-2: var(--k-light-surface-2); --dp-surface-3: var(--k-light-surface-3);
    --dp-border: var(--k-light-border); --dp-line: var(--k-light-line);
    --dp-blue: var(--k-light-primary); --dp-blue-strong: var(--k-light-primary-strong); --dp-navy: var(--k-light-header);
    --dp-cash: #176b43;
    --dp-cash-strong: #0e4a2d;
    --dp-card: var(--k-light-primary); --dp-card-strong: var(--k-light-primary-strong);
    --dp-text: var(--k-light-text); --dp-text-muted: var(--k-light-muted); --dp-text-dim: var(--k-light-dim); --dp-locked: var(--k-light-locked);
    --dp-danger: #72111f;
    --dp-danger-bg: #fde6e9;
    --dp-danger-text: #72111f;
    --dp-warn: var(--k-light-warn); --dp-warn-text: var(--k-light-warn-text); --dp-warn-border: var(--k-light-warn-border);
    --dp-tse-bg: var(--k-light-tse); --dp-tse-text: var(--k-light-tse-text); --dp-tse-border: var(--k-light-tse-border);
    --dp-ok: #0e4a2d;
    --dp-ok-bg: #e2f4eb;
    --dp-focus: #11a6f6;
    --dp-eyebrow: var(--k-light-eyebrow);
    --dp-focus-outline: var(--k-light-focus-outline); --dp-focus-gap: var(--k-light-focus-gap);
    --dp-radius: 8px;
    --dp-radius-sm: 6px;
    --dp-font: "Montserrat", sans-serif;
    --dp-gruppe-1: var(--k-light-gruppe-1); --dp-gruppe-2: var(--k-light-gruppe-2); --dp-gruppe-3: var(--k-light-gruppe-3); --dp-gruppe-4: var(--k-light-gruppe-4); --dp-gruppe-5: var(--k-light-gruppe-5); --dp-gruppe-6: var(--k-light-gruppe-6); --dp-gruppe-7: var(--k-light-gruppe-7); --dp-gruppe-8: var(--k-light-gruppe-8);
    color-scheme: light;
}

:root[data-theme="dark"] {
        --dp-page: var(--k-dark-page); --dp-app: var(--k-dark-app); --dp-bg: var(--k-dark-bg);
        --dp-surface: var(--k-dark-surface); --dp-surface-2: var(--k-dark-surface-2); --dp-surface-3: var(--k-dark-surface-3);
        --dp-border: var(--k-dark-border); --dp-line: var(--k-dark-line);
        --dp-blue: var(--k-dark-primary); --dp-blue-strong: var(--k-dark-primary-strong); --dp-navy: var(--k-dark-header);
        --dp-card: var(--k-dark-primary); --dp-card-strong: var(--k-dark-primary-strong);
        --dp-text: var(--k-dark-text); --dp-text-muted: var(--k-dark-muted); --dp-text-dim: var(--k-dark-dim); --dp-locked: var(--k-dark-locked);
        --dp-danger: #c4485b;
        --dp-danger-bg: #3e1a20;
        --dp-danger-text: #ffd2d8;
        --dp-warn: var(--k-dark-warn); --dp-warn-text: var(--k-dark-warn-text); --dp-warn-border: var(--k-dark-warn-border);
        --dp-tse-bg: var(--k-dark-tse); --dp-tse-text: var(--k-dark-tse-text); --dp-tse-border: var(--k-dark-tse-border);
        --dp-ok: #bff0d6;
        --dp-ok-bg: #0f2e22;
        --dp-eyebrow: var(--k-dark-eyebrow);
        --dp-focus-outline: var(--k-dark-focus-outline); --dp-focus-gap: var(--k-dark-focus-gap);
        --dp-gruppe-1: var(--k-dark-gruppe-1); --dp-gruppe-2: var(--k-dark-gruppe-2); --dp-gruppe-3: var(--k-dark-gruppe-3); --dp-gruppe-4: var(--k-dark-gruppe-4); --dp-gruppe-5: var(--k-dark-gruppe-5); --dp-gruppe-6: var(--k-dark-gruppe-6); --dp-gruppe-7: var(--k-dark-gruppe-7); --dp-gruppe-8: var(--k-dark-gruppe-8);
        color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --dp-page: var(--k-dark-page); --dp-app: var(--k-dark-app); --dp-bg: var(--k-dark-bg);
        --dp-surface: var(--k-dark-surface); --dp-surface-2: var(--k-dark-surface-2); --dp-surface-3: var(--k-dark-surface-3);
        --dp-border: var(--k-dark-border); --dp-line: var(--k-dark-line);
        --dp-blue: var(--k-dark-primary); --dp-blue-strong: var(--k-dark-primary-strong); --dp-navy: var(--k-dark-header);
        --dp-card: var(--k-dark-primary); --dp-card-strong: var(--k-dark-primary-strong);
        --dp-text: var(--k-dark-text); --dp-text-muted: var(--k-dark-muted); --dp-text-dim: var(--k-dark-dim); --dp-locked: var(--k-dark-locked);
        --dp-danger: #c4485b; --dp-danger-bg: #3e1a20; --dp-danger-text: #ffd2d8;
        --dp-warn: var(--k-dark-warn); --dp-warn-text: var(--k-dark-warn-text); --dp-warn-border: var(--k-dark-warn-border);
        --dp-tse-bg: var(--k-dark-tse); --dp-tse-text: var(--k-dark-tse-text); --dp-tse-border: var(--k-dark-tse-border);
        --dp-ok: #bff0d6; --dp-ok-bg: #0f2e22; --dp-eyebrow: var(--k-dark-eyebrow);
        --dp-focus-outline: var(--k-dark-focus-outline); --dp-focus-gap: var(--k-dark-focus-gap);
        --dp-gruppe-1: var(--k-dark-gruppe-1); --dp-gruppe-2: var(--k-dark-gruppe-2); --dp-gruppe-3: var(--k-dark-gruppe-3); --dp-gruppe-4: var(--k-dark-gruppe-4); --dp-gruppe-5: var(--k-dark-gruppe-5); --dp-gruppe-6: var(--k-dark-gruppe-6); --dp-gruppe-7: var(--k-dark-gruppe-7); --dp-gruppe-8: var(--k-dark-gruppe-8);
        color-scheme: dark;
    }
}

html,
body {
    background: var(--dp-page);
    color: var(--dp-text);
    font-family: var(--dp-font);
}

button,
input,
select,
textarea { font-family: inherit; }

:focus-visible {
    outline: 3px solid var(--dp-focus-outline) !important;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px var(--dp-focus-gap);
}

.dp-app {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    background: var(--dp-bg);
}

.dp-header {
    min-height: 70px;
    padding: calc(7px + var(--dp-safe-top)) 18px 7px;
    background: var(--dp-navy);
    border-bottom: 1px solid var(--dp-border);
    color: var(--dp-text);
}

.dp-header__picture {
    display: inline-flex;
    flex: 0 0 auto;
}

.dp-header__logo {
    width: 94px;
    height: 38px;
    object-fit: cover;
    opacity: 1;
}
.dp-header__logo--dark { display: none; }
:root[data-theme="dark"] .dp-header__logo--light { display: none; }
:root[data-theme="dark"] .dp-header__logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .dp-header__logo--light { display: none; }
    :root:not([data-theme]) .dp-header__logo--dark { display: block; }
}

.dp-header__staff { font-size: .9rem; }

.dp-header .dp-btn--link {
    flex: 0 0 auto;
    min-height: 56px;
    padding: 0 8px;
    color: var(--dp-text-muted);
    font-weight: 600;
}
.dp-header .dp-btn--link:hover { color: var(--dp-text); }

.dp-main {
    min-width: 0;
    padding: 22px 20px 28px;
    background: var(--dp-bg);
}

.dp-main--narrow { max-width: 560px; }

.dp-section-title {
    color: var(--dp-eyebrow);
    font-size: .75rem;
    letter-spacing: .08em;
}

.dp-tile,
.dp-receipt__line,
.dp-cart,
.dp-row,
.dp-stat,
.dp-amount,
.dp-group,
.dp-chart {
    background: var(--dp-surface-2);
    border-color: var(--dp-border);
}

.dp-tile__price { color: var(--dp-eyebrow); }
.dp-tile--gesperrt {
    opacity: 1;
    color: var(--dp-locked);
}
.dp-tile--gesperrt .dp-tile__price { color: var(--dp-locked); }

.dp-cart__line,
.dp-receipt__line,
.dp-row,
.dp-group__head,
.dp-cart__total { border-color: var(--dp-line); }

.dp-cart__total,
.dp-group__head { background: var(--dp-surface-3); }

.dp-cart__remove {
    width: 56px;
    height: 56px;
    border-color: var(--dp-border);
}

/* D.4 after R.6.b: the percent action is a full touch target and uses the palette's
   readable eyebrow colour instead of dark True Cobalt on a dark cart surface. */
.dp-cart__discount {
    width: 56px;
    height: 56px;
    border-color: var(--dp-border);
    background: var(--dp-surface-2);
    color: var(--dp-eyebrow);
}
.dp-cart__discount:active {
    border-color: var(--dp-focus-outline);
    color: var(--dp-eyebrow);
}

.dp-btn,
.dp-tile,
.dp-pay__btn,
.dp-btn--link,
.dp-pinpad__key,
.dp-kiosk-tile { min-height: 56px; }

.dp-btn--link {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    color: var(--dp-text-muted);
    font-weight: 600;
}

.dp-btn {
    background: var(--dp-blue);
    color: #ffffff;
}
.dp-btn:active { background: var(--dp-blue-strong); }

.dp-btn--ghost {
    background: transparent;
    border-color: var(--dp-border);
    color: var(--dp-text);
}

.dp-pay {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.dp-pay__btn {
    min-height: 112px;
    text-align: left;
    padding: 18px;
}

.dp-pay__btn--cash { background: var(--dp-cash); }
.dp-pay__btn--cash:active { background: var(--dp-cash-strong); }
.dp-pay__btn--card {
    background: var(--dp-card);
    border: 2px dashed var(--dp-focus);
}
.dp-pay__btn--card:active { background: var(--dp-card-strong); }

.dp-field input,
.dp-field select {
    background: var(--dp-surface-2);
    border-color: var(--dp-border);
    color: var(--dp-text);
}

.dp-field input::placeholder {
    color: var(--dp-text-muted);
    opacity: 1;
}

.dp-alert {
    background: var(--dp-danger-bg);
    border-color: var(--dp-danger);
    color: var(--dp-danger-text);
}

.dp-offline {
    background: var(--dp-warn);
    color: var(--dp-warn-text);
    border-bottom: 1px solid var(--dp-warn-border);
}

.dp-tse-banner {
    background: var(--dp-tse-bg);
    color: var(--dp-tse-text);
    border-bottom: 1px solid var(--dp-tse-border);
}

.dp-toast {
    background: var(--dp-ok-bg);
    color: var(--dp-ok);
    border: 2px solid var(--dp-ok);
    border-radius: 6px;
}

/* H.4: a notice that something did not happen (a scan that booked nothing) - not the green tick of a booking. */
.dp-toast.dp-toast--hinweis {
    background: var(--dp-bg);
    color: var(--dp-warn);
    border-color: var(--dp-warn);
}

.dp-kiosk-tile__num { color: var(--dp-text-muted); }

.dp-disclaimer__card,
dialog.dp-disclaimer__card {
    max-width: 500px;
    width: min(100%, 500px);
    padding: 24px;
    background: var(--dp-bg);
    border: 2px solid var(--dp-border);
    border-radius: 8px;
    color: var(--dp-text);
    text-align: left;
    box-shadow: 0 20px 60px rgb(0 0 0 / .35);
}

dialog.dp-disclaimer__card::backdrop { background: rgb(10 11 13 / .72); }
dialog.dp-disclaimer__card .dp-list { display: grid; gap: 8px; }
dialog.dp-disclaimer__card .dp-btn { margin-top: 8px; }
dialog.dp-disclaimer__card [data-kachel].is-active {
    border: 3px solid var(--dp-focus);
    background: var(--dp-surface-3);
}

.dp-flow { display: none; }
.dp-flow__eyebrow {
    margin: 0 0 8px;
    color: var(--dp-eyebrow);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.dp-flow h2 { margin: 0 0 14px; font-size: 1.15rem; }
.dp-flow__steps { margin: 0; padding: 0; list-style: none; }
.dp-flow__step {
    padding: 12px 10px;
    border-top: 1px solid var(--dp-line);
}
.dp-flow__step strong,
.dp-flow__step span { display: block; }
.dp-flow__step span {
    margin-top: 3px;
    color: var(--dp-text-muted);
    font-size: .78rem;
    line-height: 1.4;
}
.dp-flow__back {
    margin: 18px 0 0;
    padding: 12px;
    border-left: 5px solid var(--dp-eyebrow);
    background: var(--dp-surface-3);
    font-size: .8rem;
}
.dp-flow__back strong,
.dp-flow__back span { display: block; }
.dp-flow__back span { margin-top: 3px; color: var(--dp-text-muted); }

.dp-action-intro h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    line-height: 1.25;
}
.dp-action-intro > p:last-child {
    margin: 0 0 16px;
    color: var(--dp-text-muted);
    font-size: .86rem;
    line-height: 1.45;
}

.dp-theme-dialog {
    width: min(92vw, 440px);
    padding: 0;
    border: 0;
    border-radius: var(--dp-radius);
    color: var(--dp-text);
    background: transparent;
}
.dp-theme-dialog::backdrop { background: rgb(0 0 0 / .62); }
.dp-theme-dialog__card {
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 2px solid var(--dp-border);
    border-radius: var(--dp-radius);
    background: var(--dp-bg);
}
.dp-theme-dialog__card h2 { margin: 0; }
.dp-theme-dialog__card .dp-section-title { margin: 0; }
.dp-theme-dialog__card .dp-btn { margin-top: 4px; }

/* B.4: the customer's receipt code - large enough to scan from across the counter, black on white
   in every theme (a scanner reads dark on light), never larger than the screen when sideways. */
.dp-beleg-dialog { max-height: calc(100dvh - 32px); }
.dp-beleg-dialog__card {
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    justify-items: center;
    text-align: center;
}
.dp-beleg-dialog__qr {
    width: min(72vw, 52dvh, 320px);
    aspect-ratio: 1;
    background: #fff;
    border-radius: 8px;
}
.dp-beleg-dialog__qr svg { display: block; width: 100%; height: 100%; }
.dp-beleg-dialog__betrag { margin: 0; font-size: 1.25rem; font-weight: 700; }
.dp-beleg-dialog__hinweis { margin: 0; color: var(--dp-text-muted); font-size: .9rem; line-height: 1.4; }
.dp-beleg-dialog__card .dp-btn { width: 100%; }
/* A.15: "Drucken" next to "Fertig" - two equal buttons, the print note above them. */
.dp-beleg-dialog__aktionen {
    position: sticky;
    bottom: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    padding-top: 4px;
    background: var(--dp-bg);
}
.dp-beleg-dialog__aktionen .dp-btn { margin-top: 0; min-height: 56px; }
.dp-beleg-dialog__druck { color: var(--dp-text); font-weight: 600; }
/* B.5.a: "Per E-Mail" - three equal buttons when it is offered; search, hits and a new customer above them. */
.dp-beleg-dialog__aktionen:has(#receiptQrMail:not([hidden])) { grid-template-columns: 1fr 1fr 1fr; }
.dp-beleg-dialog__email { display: grid; gap: 8px; width: 100%; text-align: left; }
.dp-beleg-dialog__label { font-size: .9rem; color: var(--dp-text-muted); }
.dp-beleg-dialog__eingabe {
    width: 100%; min-height: 48px; padding: 8px 12px; font-size: 1rem;
    border: 1px solid var(--dp-border); border-radius: 8px; background: var(--dp-surface-2); color: var(--dp-text);
}
.dp-beleg-dialog__treffer { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dp-beleg-dialog__treffer li { display: grid; gap: 4px; padding: 8px; border: 1px solid var(--dp-border); border-radius: 8px; }
.dp-beleg-dialog__neu { display: grid; gap: 8px; }
.dp-beleg-dialog__neu summary { cursor: pointer; min-height: 40px; line-height: 40px; }
.dp-beleg-dialog__neu[open] { display: grid; gap: 8px; }
.dp-beleg-dialog__zustimmung { display: flex; gap: 8px; align-items: center; font-size: .95rem; }
/* On a short window (a phone sideways, a small phone) the code gives way before the buttons do. */
@media (max-height: 760px) {
    .dp-beleg-dialog__card { padding: 16px; gap: 10px; }
    .dp-beleg-dialog__qr { width: min(72vw, 34dvh, 320px); }
}

/* TH.7 (59ab52): the 190 px | tiles | 310 px grid with the side guide, and the header rules of narrow windows, are replaced by the rail layout at the end of this file.
 */
/* =====================================================================================
 * A.14 - the till on the phone, upright and sideways: calm, readable, nothing that jumps.
 * (Hakan, 08.10.2026: "die idiotensicherste Kasse der Welt, aber unauffällig".)
 *
 * Last in the file on purpose: it settles what the layers above leave open. Rules:
 *  - the page itself never scrolls and never moves (the system keyboard cannot push it up); only
 *    a screen's own content scrolls;
 *  - a compact header: logo, name, "Menü", "Sperren" - everything else is inside the menu;
 *  - sideways (landscape) the till is two columns: services | cart, like on the tablet;
 *  - PIN and amounts are typed on the till's own pad.
 * ===================================================================================== */

html { height: 100%; }
body.dp-terminal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: auto;
    overflow: hidden;
    overscroll-behavior: none;
}
/* A.15 (237485): the outage bar and the till share the window - the bar takes its own height off the top
   and the till gets what is left. A fixed "height: 100%" for the till made it as tall as the whole window
   with the bar on top, pushing the pay button below the edge. */
body.dp-terminal { display: flex; flex-direction: column; }
body.dp-terminal .dp-app { height: auto; flex: 1 1 0; min-height: 0; }
body.dp-terminal .dp-tse-banner {
    position: relative;
    flex: 0 0 auto;
    padding-top: calc(0.6rem + var(--dp-safe-top));
    padding-left: calc(1rem + env(safe-area-inset-left, 0px));
    padding-right: calc(1rem + env(safe-area-inset-right, 0px));
}
body.dp-terminal .dp-main { min-height: 0; overscroll-behavior: contain; }

/* TH.7 (59ab52): the compact header row is the rail now (end of this file).
 */
.dp-header__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--dp-border);
    border-radius: 999px;
    background: transparent;
    color: var(--dp-text);
    font: inherit;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
}
.dp-header__btn:active { background: var(--dp-surface-3); }
.dp-header__icon::before { content: "☰"; font-size: 1.05rem; line-height: 1; }

.dp-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 10px;
    z-index: 800;
    display: grid;
    gap: 2px;
    min-width: 230px;
    max-width: calc(100vw - 20px);
    padding: 6px;
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius);
    background: var(--dp-surface);
    box-shadow: 0 12px 32px rgb(0 0 0 / .4);
}
.dp-menu[hidden], .dp-menu__item[hidden] { display: none; }
.dp-menu__item {
    min-height: 48px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--dp-radius-sm);
    background: transparent;
    color: var(--dp-text);
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}
.dp-menu__item:active { background: var(--dp-surface-3); }

.dp-toast { top: calc(var(--dp-safe-top) + 58px); }

/* --- "?" circles: small, quiet, a short explanation on tap ------------------------------ */
.dp-help {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-left: 6px;
    padding: 0;
    border: 1px solid var(--dp-border);
    border-radius: 50%;
    background: transparent;
    color: var(--dp-text-muted);
    font: inherit;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
    vertical-align: middle;
    cursor: pointer;
}
.dp-help::after { content: ""; position: absolute; inset: -11px; }
.dp-help-dialog__text { margin: 0; font-size: 1.05rem; line-height: 1.5; }

/* --- the own pad: PIN, amounts ---------------------------------------------------------- */
.dp-main--pad { display: flex; flex-direction: column; align-items: center; }
.dp-main--pad .dp-hint { margin: 2px 0 0; text-align: center; }
.dp-main--pad .dp-alert { margin: 0 0 10px; width: 100%; max-width: 320px; }
.dp-pin { margin: 12px 0 14px; min-height: 18px; }
.dp-pinpad { width: 100%; gap: 10px; }
.dp-pinpad__key {
    min-height: clamp(48px, 8.5dvh, 68px);
    touch-action: manipulation;
}
/* A.17: PIN keys act on pointerdown (bindPadKey) - no pan or pinch may claim a quick second tap. Amount keys
   (data-cash, the day close's number pads) stay a click with pan allowed: a swipe to scroll must type nothing. */
.dp-pinpad__key[data-pin],
.dp-pinpad__key[data-pad],
.dp-numpad--pin .dp-pinpad__key {
    touch-action: none;
}
.dp-pinpad__key--ok { background: var(--dp-blue); border-color: var(--dp-blue); color: #fff; }
.dp-pinpad__key:disabled { opacity: .3; cursor: default; }
.dp-pinpad__key--ok:disabled { background: transparent; color: var(--dp-text-muted); border-color: var(--dp-border); }
/* CT.02 (589b40): the empty cell where the confirm key used to sit; and the neutral "being checked" look of the dots. */
.dp-pinpad__gap { min-height: 1px; }
.dp-pin.is-checking .dp-pin__dot { animation: dp-pin-check 0.9s ease-in-out infinite; }
.dp-pin.is-checking .dp-pin__dot:nth-child(2) { animation-delay: .1s; }
.dp-pin.is-checking .dp-pin__dot:nth-child(3) { animation-delay: .2s; }
.dp-pin.is-checking .dp-pin__dot:nth-child(4) { animation-delay: .3s; }
.dp-pin.is-checking .dp-pin__dot:nth-child(5) { animation-delay: .4s; }
.dp-pin.is-checking .dp-pin__dot:nth-child(6) { animation-delay: .5s; }
@keyframes dp-pin-check { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .dp-pin.is-checking .dp-pin__dot { animation: none; opacity: .5; } }
.dp-pin__back { margin-top: 12px; padding: 12px 16px; font-size: .95rem; }

/* TH.7 (59ab52): the cart lines are the calm list of the Galerie footer now (end of this file).
 */
/* --- groups as tabs -------------------------------------------------------------------- */
.dp-tabs-bar { display: flex; gap: 8px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; }
.dp-tabs-bar::-webkit-scrollbar { display: none; }
.dp-tabs-bar__tab {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--dp-border);
    border-radius: 999px;
    background: transparent;
    color: var(--dp-text-muted);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.dp-tabs-bar__tab.is-active { background: var(--dp-blue); border-color: var(--dp-blue); color: #fff; }

/* GA.4: a tile, a tab and a chip take their group's colour from data-farbe (1..8); 0 or none keeps the default. */
.dp-tile[data-farbe="1"], .dp-tabs-bar__tab[data-farbe="1"], .dp-chip[data-farbe="1"],
.dp-swatch[data-farbe="1"] { --dp-gruppe: var(--dp-gruppe-1); }
.dp-tile[data-farbe="2"], .dp-tabs-bar__tab[data-farbe="2"], .dp-chip[data-farbe="2"],
.dp-swatch[data-farbe="2"] { --dp-gruppe: var(--dp-gruppe-2); }
.dp-tile[data-farbe="3"], .dp-tabs-bar__tab[data-farbe="3"], .dp-chip[data-farbe="3"],
.dp-swatch[data-farbe="3"] { --dp-gruppe: var(--dp-gruppe-3); }
.dp-tile[data-farbe="4"], .dp-tabs-bar__tab[data-farbe="4"], .dp-chip[data-farbe="4"],
.dp-swatch[data-farbe="4"] { --dp-gruppe: var(--dp-gruppe-4); }
.dp-tile[data-farbe="5"], .dp-tabs-bar__tab[data-farbe="5"], .dp-chip[data-farbe="5"],
.dp-swatch[data-farbe="5"] { --dp-gruppe: var(--dp-gruppe-5); }
.dp-tile[data-farbe="6"], .dp-tabs-bar__tab[data-farbe="6"], .dp-chip[data-farbe="6"],
.dp-swatch[data-farbe="6"] { --dp-gruppe: var(--dp-gruppe-6); }
.dp-tile[data-farbe="7"], .dp-tabs-bar__tab[data-farbe="7"], .dp-chip[data-farbe="7"],
.dp-swatch[data-farbe="7"] { --dp-gruppe: var(--dp-gruppe-7); }
.dp-tile[data-farbe="8"], .dp-tabs-bar__tab[data-farbe="8"], .dp-chip[data-farbe="8"],
.dp-swatch[data-farbe="8"] { --dp-gruppe: var(--dp-gruppe-8); }
.dp-tile[data-farbe]:not([data-farbe="0"]) { background: var(--dp-gruppe); }
.dp-tabs-bar__tab[data-farbe]:not([data-farbe="0"]):not(.is-active) { background: var(--dp-gruppe); color: var(--dp-text); }
.dp-tabs-bar__tab[data-farbe]:not([data-farbe="0"]).is-active { box-shadow: inset 0 -4px 0 var(--dp-gruppe); }
.dp-chips { display: flex; gap: 8px; margin: -4px 0 12px; overflow-x: auto; scrollbar-width: none; }
.dp-chips::-webkit-scrollbar { display: none; }
.dp-chip {
    flex: 0 0 auto; min-height: 36px; padding: 6px 14px; border: 1px solid var(--dp-border); border-radius: 999px;
    background: var(--dp-surface-2); color: var(--dp-text); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.dp-chip[data-farbe]:not([data-farbe="0"]) { background: var(--dp-gruppe); }
.dp-chip.is-active { border-color: var(--dp-blue); box-shadow: inset 0 0 0 2px var(--dp-blue); }
.dp-tabs-bar__symbol { margin-right: 6px; }
/* KB.1 (380c26): the group's picture on its tab, in place of the symbol. */
.dp-tabs-bar__bild { width: 22px; height: 22px; margin-right: 6px; border-radius: 4px; object-fit: cover; vertical-align: middle; }
/* GA.4: the colour sample of a group or selection in the administration's catalog view. */
.dp-swatch {
    display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 22px; padding: 0 6px;
    border: 1px solid var(--dp-border); border-radius: 6px; background: var(--dp-gruppe, var(--dp-surface-2)); vertical-align: middle;
}
/* --- GE.1: price level above the tabs; a tile that follows the level carries a dot ------------- */
.dp-tabs-bar--ebene { padding-bottom: 10px; border-bottom: 1px solid var(--dp-border); }
.dp-tile__ebene { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--dp-ok); vertical-align: middle; }

/* --- cash: given amount typed on the pad, notes add up ------------------------------------ */
.dp-cash { display: grid; gap: 10px; }
.dp-cash[hidden] { display: none; }
.dp-cash__sum { display: grid; gap: 6px; padding: 10px 14px; border: 1px solid var(--dp-border); border-radius: var(--dp-radius); background: var(--dp-surface-2); }
.dp-cash__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dp-cash__label { color: var(--dp-text-muted); font-size: .9rem; }
.dp-cash__value { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.dp-cash__row--change .dp-cash__value { font-size: 1.3rem; color: var(--dp-ok); }
.dp-cash__keys { display: grid; gap: 8px; }
.dp-cash-quick { grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 0; }
.dp-cash-quick__btn { min-height: 44px; padding: 0 2px; font-size: .95rem; }
.dp-pinpad--amount { max-width: none; gap: 6px; }
.dp-pinpad--amount .dp-pinpad__key { min-height: clamp(42px, 7dvh, 58px); }
.dp-cash__actions { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; }
.dp-cash__actions .dp-btn { margin: 0 !important; }
#screenPayment.is-cash > .dp-section-title,
#screenPayment.is-cash #payLines { display: none; }
#screenPayment.is-cash .dp-amount { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 14px; margin-bottom: 10px; }
#screenPayment.is-cash .dp-amount__value { font-size: 1.4rem; margin: 0; }

/* Before sign-in the logo already says "DOYA" - the name beside it said it twice. */
body.dp-terminal:has(#screenKioskPick:not([hidden])) .dp-header__staff,
body.dp-terminal:has(#screenKioskPin:not([hidden])) .dp-header__staff,
body.dp-terminal:has(#screenPairing:not([hidden])) .dp-header__staff { display: none; }

/* --- phones, short screens (sideways) ---------------------------------------------------- */
@media (orientation: landscape) and (max-height: 520px) {
    body.dp-terminal .dp-main { padding: 8px 12px 8px; }
    .dp-toast { top: calc(var(--dp-safe-top) + 48px); }

    /* PIN screens: hint + dots on the left, pad on the right. */
    .dp-main--pad { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: min-content; column-gap: 24px; align-content: center; justify-items: center; max-width: 760px; }
    .dp-main--pad > :not(.dp-pinpad) { grid-column: 1; width: 100%; text-align: center; }
    .dp-main--pad > .dp-pinpad { grid-column: 2; grid-row: 1 / span 6; align-self: center; max-width: 300px; }
    .dp-pinpad__key { min-height: 46px; }
    .dp-pin { margin: 8px 0; }

    /* Payment: BAR / KARTE and the two ways out stay in one view. */
    #screenPayment .dp-pay__btn { min-height: 64px; height: 64px; font-size: 1.3rem; }
    #screenPayment .dp-receipt { margin-bottom: 6px; }
    #screenPayment .dp-receipt__line { padding: 4px 12px; }
    #screenPayment .dp-amount { padding: 6px 14px; margin-bottom: 8px; }
    #screenPayment #payMethodGroup .dp-btn { min-height: 44px; margin-top: 6px !important; }

    /* Cash: sums left, keys right. */
    .dp-cash { grid-template-columns: 1fr 1.2fr; align-items: start; column-gap: 14px; }
    .dp-cash__sum { grid-column: 1; }
    .dp-cash__keys { grid-column: 2; grid-row: 1 / span 2; }
    .dp-cash__actions { grid-column: 1; align-self: end; }
    .dp-pinpad--amount .dp-pinpad__key { min-height: 38px; }
    .dp-cash-quick__btn { min-height: 38px; }
    #screenPayment.is-cash .dp-amount { margin-bottom: 6px; }
}

/* TH.7 (59ab52): the two-column landscape grid is the rail layout now (end of this file).
 */
/* --- portrait, small phones ------------------------------------------------------------------ */
@media (orientation: portrait) and (max-width: 599px) {
    body.dp-terminal .dp-main { padding: 12px 12px 8px; }
    .dp-tile { min-height: 68px; }
}

/* The lines on the payment screen scroll by themselves: BAR and KARTE are never pushed out of reach. */
#screenPayment #payLines { max-height: 30dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
@media (orientation: landscape) and (max-height: 520px) { #screenPayment #payLines { max-height: 22dvh; } }
@media (orientation: portrait) and (max-width: 599px) {
    #screenPayment .dp-pay { gap: 8px; }
    #screenPayment .dp-pay__btn { min-height: clamp(72px, 11dvh, 112px); height: clamp(72px, 11dvh, 112px); }
}

/* TH.7 (59ab52): the two header rows of narrow phones are the rail bar now (end of this file).
 */
/* A.14.a: the number pad under a field that must not open the system keyboard. */
.dp-numpad { max-width: 320px; margin: 8px auto 12px; }
.dp-numpad[hidden] { display: none; }

/* A.15 (237485), 568x320: a small phone sideways with the outage bar standing is shorter than the till's
   footer - the pay button slid 17 px under the edge. The footer gives up its intro text and some air, the
   cart its height, so "Kunde abschließen" is always inside the window. */
@media (orientation: landscape) and (max-height: 360px) and (max-width: 599px) {
    body.dp-terminal .dp-footer { padding: 6px 12px calc(6px + var(--dp-safe-bottom)); }
    body.dp-terminal .dp-footer .dp-action-intro { display: none; }
    body.dp-terminal .dp-footer .dp-cart { margin-bottom: 6px; }
    body.dp-terminal .dp-footer .dp-cart__lines { max-height: 14dvh; }
    body.dp-terminal .dp-footer .dp-btn { min-height: 48px; }
    /* 5b893d: the bar names the date of an earlier day ("seit 16.11., 10:27 Uhr") - a little smaller here, so
       its second line does not push the pay buttons below the edge of a small phone held sideways. */
    body.dp-terminal .dp-tse-banner { font-size: 0.8rem; padding-top: calc(0.3rem + var(--dp-safe-top)); padding-bottom: 0.3rem; }
}

/* G1.1: add-ons - the choice page of an article and the indented line under its main line. */
.dp-zusatz { margin: 0 0 18px; }
.dp-zusatz__titel { font-weight: 600; margin: 0 0 8px; }
.dp-tile--zusatz[aria-pressed="true"],
.dp-tile--gewaehlt { outline: 3px solid var(--dp-blue); outline-offset: -3px; background: var(--dp-surface-3); }

/* ------------------------------------------------ GR.1 (ec4713): the hospitality form */

.dp-bewirtung { max-width: 460px; text-align: left; }
/* The link in the receipt dialog steps aside while the e-mail search is open: that section needs the dialog's height. */
.dp-beleg-dialog__card:has(#receiptMail:not([hidden])) #receiptQrBewirtung { display: none; }
.dp-bewirtung__text {
    margin: 0 0 16px;
    max-height: 60dvh;
    overflow: auto;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: .8rem;
    line-height: 1.25;
    white-space: pre;
}
.dp-bewirtung__aktionen { display: flex; gap: 10px; justify-content: flex-end; }

/* "Drucken": only the form leaves the page - the till, the buttons and the dark backdrop stay off the paper. */
@media print {
    body.dp-bewirtung-druck > *:not(dialog.dp-bewirtung) { display: none !important; }
    body.dp-bewirtung-druck dialog.dp-bewirtung { position: static; max-width: none; border: 0; box-shadow: none; background: #fff; color: #000; }
    body.dp-bewirtung-druck .dp-bewirtung__text { max-height: none; overflow: visible; }
    body.dp-bewirtung-druck .dp-bewirtung__aktionen { display: none; }
}

/* ------------------------------------------------ GQ.3 (f62633): status line and message box */

/* The line shows state and switches nothing: small, calm, always there. Tones: ok, info, warn, fehler. */
.dp-leiste { display: block; }
.dp-statuszeile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 6px 14px;
    background: var(--dp-surface);
    border-bottom: 1px solid var(--dp-border);
    color: var(--dp-text);
    font-size: .85rem;
}
.dp-statuszeile[hidden] { display: none; }
.dp-statuszeile__platz {
    padding: 3px 10px;
    border: 1px solid var(--dp-border);
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}
.dp-statuszeile__platz--ok { border-color: var(--dp-ok); color: var(--dp-ok); }
.dp-statuszeile__platz--info { color: var(--dp-text-muted); }
.dp-statuszeile__platz--warn { background: var(--dp-warn); border-color: var(--dp-warn); color: #241a02; }
.dp-statuszeile__platz--fehler { background: var(--dp-danger); border-color: var(--dp-danger); color: #fff; }

/* The box with OK (E.12): a dialog of the page, red for a refusal, yellow for a warning, green for success. */
.dp-meldung { border-top-width: 8px; border-top-style: solid; }
.dp-meldung--fehler { border-top-color: var(--dp-danger); }
.dp-meldung--warn { border-top-color: var(--dp-warn); }
.dp-meldung--ok { border-top-color: var(--dp-ok); }
.dp-meldung__text { margin: 0 0 16px; font-size: 1.1rem; line-height: 1.4; text-align: left; }

/* A short window (a phone sideways) cannot spare a row for calm news: only what needs attention stays, small and tight,
   and a line with nothing to say takes no row at all. The pay buttons stay inside the window (AusfallKlick). */
@media (max-height: 420px) {
    .dp-statuszeile { padding: 1px 8px; gap: 2px 6px; font-size: .7rem; line-height: 1.1; }
    .dp-statuszeile__platz { padding: 0 6px; }
    .dp-statuszeile__platz--ok,
    .dp-statuszeile__platz--info { display: none; }
    .dp-statuszeile:not(:has(.dp-statuszeile__platz--warn, .dp-statuszeile__platz--fehler)) { display: none; }
}

/* GJ.4: the receipt search - the filter fields in a grid that folds to one column on a phone. */
.dp-belegsuche { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0 12px; }
.dp-belegsuche .dp-field select { width: 100%; }
.dp-belegsuche__zeile { width: 100%; text-align: left; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }

/* GQ.1 (8a565a): the owner's quick keys - a bar above the tiles and the page of special functions. The text stays the
   tile's own (contrast as every tile, in every palette); the colour is a strip at the left edge, set by one of eight
   classes and never by a style from the server. */
.dp-tasten {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: var(--dp-gap);
    margin-bottom: 14px;
}
.dp-tasten--seite {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.dp-taste {
    min-height: var(--dp-tap-min);
    padding: 8px 12px;
    background: var(--dp-surface-2);
    border: 1px solid var(--dp-border);
    border-left: 6px solid var(--dp-taste-farbe, var(--dp-border));
    border-radius: var(--dp-radius-sm);
    color: var(--dp-text);
    font: inherit;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
}
.dp-taste:active { transform: scale(.97); background: var(--dp-surface-3); }
.dp-taste.is-active { background: var(--dp-surface-3); outline: 2px solid var(--dp-blue); outline-offset: -2px; }
.dp-taste--gesperrt,
.dp-taste:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.dp-taste--grau    { --dp-taste-farbe: #7b8794; }
.dp-taste--blau    { --dp-taste-farbe: #1f6fff; }
.dp-taste--gruen   { --dp-taste-farbe: #2fa36b; }
.dp-taste--gelb    { --dp-taste-farbe: #e0b400; }
.dp-taste--orange  { --dp-taste-farbe: #ef7d22; }
.dp-taste--rot     { --dp-taste-farbe: #d64545; }
.dp-taste--lila    { --dp-taste-farbe: #8a4fd8; }
.dp-taste--tuerkis { --dp-taste-farbe: #17a2a8; }

/* ------------------------------------------------ GL.1 (79b8f0): the owner's layout for this device */

/* Set on <html> by geraet-layout.js before the first paint; without an attribute nothing below applies and the
   till looks as it always did. Fixed tile columns beat the breakpoints - the keypad stays three wide. */
html[data-kasse-spalten="2"] .dp-grid:not(.dp-grid--keypad) { grid-template-columns: repeat(2, 1fr); }
html[data-kasse-spalten="3"] .dp-grid:not(.dp-grid--keypad) { grid-template-columns: repeat(3, 1fr); }
html[data-kasse-spalten="4"] .dp-grid:not(.dp-grid--keypad) { grid-template-columns: repeat(4, 1fr); }
html[data-kasse-spalten="5"] .dp-grid:not(.dp-grid--keypad) { grid-template-columns: repeat(5, 1fr); }
html[data-kasse-spalten="6"] .dp-grid:not(.dp-grid--keypad) { grid-template-columns: repeat(6, 1fr); }
html[data-kasse-spalten="7"] .dp-grid:not(.dp-grid--keypad) { grid-template-columns: repeat(7, 1fr); }
html[data-kasse-spalten="8"] .dp-grid:not(.dp-grid--keypad) { grid-template-columns: repeat(8, 1fr); }

/* On a phone held upright more than three columns leave tiles too small to hit: the owner's number is capped there. */
@media (max-width: 599px) {
    html[data-kasse-spalten="4"] .dp-grid:not(.dp-grid--keypad),
    html[data-kasse-spalten="5"] .dp-grid:not(.dp-grid--keypad),
    html[data-kasse-spalten="6"] .dp-grid:not(.dp-grid--keypad),
    html[data-kasse-spalten="7"] .dp-grid:not(.dp-grid--keypad),
    html[data-kasse-spalten="8"] .dp-grid:not(.dp-grid--keypad) { grid-template-columns: repeat(3, 1fr); }
}

/* A large tile: taller and with a bigger name, also where a media rule sets its own minimum. */
html[data-kasse-groesse="gross"] { --dp-tile-h: 120px; }
html[data-kasse-groesse="gross"] .dp-tile:not(.dp-tile--key) { min-height: var(--dp-tile-h); }
html[data-kasse-groesse="gross"] .dp-tile:not(.dp-tile--key) .dp-tile__name { font-size: 1.2rem; }
html[data-kasse-groesse="gross"] .dp-tile:not(.dp-tile--key) .dp-tile__price { font-size: 1.05rem; }

/* TH.7 (59ab52): mirroring for a left-handed person is part of the rail layout now (end of this file).
 */
/* ------------------------------------------------ GL.4 (73b6fa): the rest screen after the idle lock */

.dp-ruhe {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: var(--dp-bg);
    color: var(--dp-text);
    cursor: pointer;
}
.dp-ruhe[hidden] { display: none; }
.dp-ruhe__logo { width: min(60vw, 320px); height: auto; }
.dp-ruhe__logo--dark { display: none; }
:root[data-theme="dark"] .dp-ruhe__logo--light { display: none; }
:root[data-theme="dark"] .dp-ruhe__logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .dp-ruhe__logo--light { display: none; }
    :root:not([data-theme]) .dp-ruhe__logo--dark { display: block; }
}
.dp-ruhe__uhr { margin: 0; font-size: clamp(3rem, 12vw, 6rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.dp-ruhe__hinweis { margin: 0; color: var(--dp-text-muted); font-size: 1.1rem; }

/* ------------------------------------------------ GQ.4 (4fe200): the quantity before the article and in the line */

.dp-menge { display: flex; align-items: center; gap: 10px; padding: 6px 0 10px; }
.dp-menge__knopf { min-width: 96px; min-height: var(--dp-tap-min); font-weight: 700; }
.dp-menge__chip {
    min-height: 44px;
    padding: 0 16px;
    border: 2px solid var(--dp-blue);
    border-radius: 999px;
    background: transparent;
    color: var(--dp-text);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}
.dp-menge__chip[hidden] { display: none; }

/* TH.7 (59ab52): the line with its quantity keys is the quantity box and the strip of the Galerie footer now (end of this file).
 */
.dp-menge-dialog { max-width: 360px; }
.dp-menge-dialog__titel { margin: 0 0 8px; font-size: 1.1rem; }
.dp-menge-dialog__anzeige { display: block; margin: 0 0 12px; font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dp-pinpad--menge { margin-bottom: 12px; }

/* ------------------------------------------------ GA.11 (d924ae): article search at the till */

.dp-suche { display: flex; gap: 8px; align-items: stretch; margin: 0 0 12px; }
.dp-suche[hidden] { display: none; }
.dp-suche__feld, .dp-suche__nummer {
    min-height: 48px;
    padding: 8px 12px;
    border: 1px solid var(--dp-border);
    border-radius: 8px;
    background: var(--dp-surface);
    color: var(--dp-text);
    font: inherit;
}
.dp-suche__feld { flex: 1 1 auto; min-width: 0; }
.dp-suche__nummer { flex: 0 0 96px; width: 96px; font-variant-numeric: tabular-nums; }
.dp-suche__taste { flex: 0 0 auto; width: auto; min-height: 48px; margin: 0; padding-inline: 16px; }
.dp-suche__treffer { display: grid; gap: 6px; margin: 0 0 12px; }
.dp-suche__treffer[hidden] { display: none; }
.dp-suche__treffer-knopf {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 56px;
    padding: 8px 14px;
    border: 1px solid var(--dp-border);
    border-radius: 8px;
    background: var(--dp-surface);
    color: var(--dp-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.dp-suche__nr { min-width: 3ch; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--dp-eyebrow); }
.dp-suche__name { overflow-wrap: anywhere; }
.dp-suche__preis { font-weight: 700; font-variant-numeric: tabular-nums; }
.dp-suche__nichts { margin: 0; padding: 8px 4px; color: var(--dp-text-muted); }

/* GA.7 (fded2a): the info button of an article with details - its own button in the tile's corner, thumb-sized, so a
   tap on it never books and a tap on the tile never opens it. */
.dp-tile-wrap { position: relative; display: grid; }
.dp-tile-wrap > .dp-tile { width: 100%; height: 100%; padding-right: 52px; }
.dp-tile__info {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--dp-border);
    border-radius: 999px;
    background: var(--dp-surface);
    color: var(--dp-text);
    font: italic 700 1rem/1 Georgia, serif;
    cursor: pointer;
}
.dp-tile__info:focus-visible { outline: 3px solid var(--dp-blue); outline-offset: 2px; }
.dp-dialog__zeile { margin: 0 0 8px; text-align: left; }
.dp-dialog__zeile strong { display: block; font-size: 0.85rem; }

/* ------------------------------------------------ GK.4 (f3c8c8): standing label "Bondruck AUS" */

.dp-bondruck-aus {
    position: fixed;
    left: 10px;
    bottom: 10px;
    z-index: 90;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--dp-warn);
    color: #241a02;
    font-size: .9rem;
    font-weight: 700;
    pointer-events: none;
}
.dp-bondruck-aus[hidden] { display: none; }

/* GU.3: the details of a customer at the register - one input per line, touch-sized. */
.dp-dialog__felder { display: grid; gap: 0.5rem; margin-bottom: 0.75rem; }
.dp-dialog__felder .dp-field { display: grid; gap: 0.25rem; }
.dp-dialog__felder input, .dp-dialog__felder select, .dp-dialog__felder textarea { min-height: 44px; font: inherit; }

/* ------------------------------------------------ GH.1 (321a9b): the area of the device in the head */

.dp-header__bereich {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--dp-surface-3);
    color: var(--dp-text);
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
}
.dp-header__bereich[hidden] { display: none; }

/* =====================================================================================================================
 * TH.3 (6fb6fc): Theme Hell - the "Galerie" of TH.2 for the till (v1), with the missing-picture row of v2 (verwaltung.css)
 * and the cash quick amounts of v3.
 *
 * Only the light look. Every rule here hangs on :root[data-aussehen="hell"], which kasse-theme.js sets from the chosen
 * theme ("Hell", or "System" while the system is light). The dark look keeps every declaration it had; it only gets the
 * new tile PICTURES (a picture is the same in both) and nothing else.
 *
 * Tokens: see the colour world above (CI.1: Prussian ink #0d2347, True Cobalt #001d86, white). 12 px corners, a 4/8/12/16/24/32
 * rhythm, Montserrat. No text sits on a picture without the dark gradient under it; measured contrasts are in the PR text.
 * ===================================================================================================================== */

:root[data-aussehen="hell"] {
    --dp-radius: 12px;
    --dp-radius-sm: 8px;
    --dp-gap: 12px;
    --dp-card: #001d86;
    --dp-card-strong: #00126a;
    --th-ink: #0d2347;
    --th-line: var(--dp-line);
    --th-lift: 0 1px 2px rgb(13 35 71 / .07), 0 2px 8px rgb(13 35 71 / .05);
}

/* --- the tile picture: the same in light and dark (it is a photo) ---------------------------------------------------- */
.dp-tile__bild {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    pointer-events: none;
}

/* TH.7 (59ab52): the slim header is the rail now (end of this file).
 */
:root[data-aussehen="hell"] .dp-menu {
    border-color: var(--th-line);
    border-radius: var(--dp-radius);
    box-shadow: 0 12px 32px rgb(13 35 71 / .16);
}
/* TH.7 (59ab52): the layout of the light look is the rail layout now (end of this file).
 */
:root[data-aussehen="hell"] .dp-main { background: var(--dp-app); }

/* --- group tabs: thin, text only, an underline for the chosen one (the group colour becomes the underline) ------------ */
:root[data-aussehen="hell"] .dp-tabs-bar { gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--th-line); }
:root[data-aussehen="hell"] .dp-tabs-bar__tab {
    min-height: 44px;
    padding: 0 12px;
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: var(--dp-text-muted);
    font-weight: 600;
    white-space: nowrap;
    box-shadow: none;
}
:root[data-aussehen="hell"] .dp-tabs-bar__tab.is-active {
    background: transparent;
    border-color: transparent;
    border-bottom-color: var(--th-ink);
    color: var(--th-ink);
    font-weight: 700;
}
/* The owner's group colour (GA.4) stays the tab's colour: a pale tab; the chosen one is the ink underline like every tab. */
:root[data-aussehen="hell"] .dp-tabs-bar__tab[data-farbe]:not([data-farbe="0"]):not(.is-active) {
    background: var(--dp-gruppe);
    color: var(--dp-text);
    border-radius: var(--dp-radius-sm) var(--dp-radius-sm) 0 0;
}
:root[data-aussehen="hell"] .dp-tabs-bar__tab[data-farbe]:not([data-farbe="0"]).is-active { box-shadow: none; border-bottom-color: var(--th-ink); }
:root[data-aussehen="hell"] .dp-tabs-bar--ebene { border-bottom: 0; padding-bottom: 0; }
:root[data-aussehen="hell"] .dp-chip {
    min-height: 40px;
    border: 1px solid var(--th-line);
    border-radius: 999px;
    background: var(--dp-bg);
    color: var(--dp-text);
}
:root[data-aussehen="hell"] .dp-chip.is-active { background: var(--th-ink); border-color: var(--th-ink); color: #fff; box-shadow: none; }
:root[data-aussehen="hell"] .dp-chip[data-farbe]:not([data-farbe="0"]):not(.is-active) { background: var(--dp-gruppe); border-color: transparent; }
:root[data-aussehen="hell"] .dp-section-title { color: var(--dp-text-muted); letter-spacing: .1em; }

/* --- the tiles: squares, name and price on the picture or on a calm surface ---------------------------------------- */
:root[data-aussehen="hell"] .dp-grid { gap: 12px; }
:root[data-aussehen="hell"] .dp-tile {
    background: var(--dp-bg);
    border: 1px solid var(--th-line);
    border-radius: var(--dp-radius);
    box-shadow: var(--th-lift);
}
:root[data-aussehen="hell"] .dp-tile:active { background: var(--dp-surface-3); }
:root[data-aussehen="hell"] .dp-tile[data-farbe]:not([data-farbe="0"]) { background: var(--dp-gruppe); border-color: transparent; }

:root[data-aussehen="hell"] .dp-tile--artikel {
    position: relative;
    min-height: 96px;
    padding: 12px;
    justify-content: center;
    overflow: hidden;
}
:root[data-aussehen="hell"] .dp-tile--artikel .dp-tile__name {
    position: relative;
    z-index: 1;
    font-size: .95rem;
    font-weight: 700;
    color: var(--th-ink);
}
:root[data-aussehen="hell"] .dp-tile--artikel .dp-tile__price {
    position: relative;
    z-index: 1;
    font-size: .9rem;
    font-weight: 600;
    color: var(--dp-text-muted);
    white-space: nowrap;
}
:root[data-aussehen="hell"] .dp-tile--artikel .dp-tile__ebene { background: var(--dp-ok); }

/* TH.8 (c06bd0): the article tile is as high and as roomy in the dark look as in the light one (".dp-tile { min-height: 56px }" of the
   dark palette block took the light look's 96 px away: 63 px against 96 px). The same height and padding in both looks. */
.dp-tile--artikel { min-height: 96px; padding: 12px; justify-content: center; }
.dp-tile--artikel .dp-tile__name { font-size: .95rem; font-weight: 700; }

/* A shop with tile pictures: every article tile is a square; the ones without a picture show their first letter. This and the
   picture tile below are the same in the dark look (a photo is a photo): they apply as soon as the shop has pictures. */
.dp-bilder .dp-tile--artikel,
:root[data-aussehen="hell"] .dp-bilder .dp-tile--artikel {
    position: relative;
    aspect-ratio: 1;
    min-height: 0;
    padding: 12px;
    justify-content: flex-end;
    overflow: hidden;
}
.dp-bilder .dp-tile--artikel .dp-tile__name,
.dp-bilder .dp-tile--artikel .dp-tile__price { position: relative; z-index: 1; }
.dp-bilder .dp-tile--artikel:not(.dp-tile--bild)::before {
    content: attr(data-anfang);
    content: attr(data-anfang) / "";
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 52px;
    display: grid;
    place-items: center;
    color: var(--dp-text-muted);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1;
}
.dp-tile--bild,
:root[data-aussehen="hell"] .dp-tile--bild {
    position: relative;
    overflow: hidden;
    border-width: 0;
    background: #1b2430;
}
.dp-tile--bild[data-farbe]:not([data-farbe="0"]),
:root[data-aussehen="hell"] .dp-tile--bild[data-farbe]:not([data-farbe="0"]) { background: #1b2430; }
.dp-tile--bild::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(8 14 24 / .9) 0%, rgb(8 14 24 / .76) 40%, rgb(8 14 24 / .42) 62%, rgb(8 14 24 / 0) 86%);
    pointer-events: none;
}
.dp-tile--bild .dp-tile__name,
.dp-tile--bild .dp-tile__price,
:root[data-aussehen="hell"] .dp-tile--bild .dp-tile__name,
:root[data-aussehen="hell"] .dp-tile--bild .dp-tile__price { position: relative; z-index: 1; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .45); }
.dp-tile--bild .dp-tile__name,
:root[data-aussehen="hell"] .dp-tile--bild .dp-tile__name { font-weight: 700; }
.dp-tile--bild .dp-tile__price,
:root[data-aussehen="hell"] .dp-tile--bild .dp-tile__price { font-weight: 600; }
.dp-tile--bild .dp-tile__ebene,
:root[data-aussehen="hell"] .dp-tile--bild .dp-tile__ebene { background: #7fe0ae; }
:root[data-aussehen="hell"] .dp-tile--gesperrt.dp-tile--artikel { opacity: .55; box-shadow: none; }
:root[data-aussehen="hell"] .dp-tile--ausverkauft .dp-tile__price { color: var(--dp-danger); }
:root[data-aussehen="hell"] .dp-tile-wrap > .dp-tile { padding-right: 12px; }
:root[data-aussehen="hell"] .dp-tile__info {
    top: 8px;
    right: 8px;
    z-index: 2;
    border-color: var(--th-line);
    background: rgb(255 255 255 / .94);
    color: var(--th-ink);
}
@media (max-width: 599px) {
    .dp-bilder .dp-tile--artikel,
    :root[data-aussehen="hell"] .dp-bilder .dp-tile--artikel { aspect-ratio: 4 / 3; }
}

/* --- the bon: calm, white, the amount large, the main action in ink ------------------------------------------------ */
:root[data-aussehen="hell"] .dp-action-intro .dp-section-title { color: var(--dp-text-muted); }
:root[data-aussehen="hell"] .dp-action-intro h2 { color: var(--th-ink); font-size: 1.15rem; }
:root[data-aussehen="hell"] .dp-cart {
    border: 0;
    border-radius: 0;
    background: transparent;
}
:root[data-aussehen="hell"] .dp-cart__line { border-bottom: 1px solid var(--th-line); background: transparent; }
:root[data-aussehen="hell"] .dp-cart__name { color: var(--th-ink); font-weight: 600; }
:root[data-aussehen="hell"] .dp-cart__price { color: var(--th-ink); }
:root[data-aussehen="hell"] .dp-cart__remove,
:root[data-aussehen="hell"] .dp-cart__discount { border-color: var(--th-line); }
:root[data-aussehen="hell"] .dp-cart__mengetaste {
    border: 1px solid var(--th-line);
    border-radius: var(--dp-radius-sm);
    background: var(--dp-bg);
    color: var(--th-ink);
}
:root[data-aussehen="hell"] .dp-cart__total {
    padding: 16px 0 12px;
    border-top: 1px solid var(--th-line);
    background: transparent;
    font-size: 1.15rem;
}
:root[data-aussehen="hell"] .dp-cart__total span:last-child { font-size: 1.6rem; font-weight: 800; }
/* --- the main buttons: round corners, ghost = white with a hairline ------------------------------------------------ */
:root[data-aussehen="hell"] .dp-btn { border-radius: var(--dp-radius); }
:root[data-aussehen="hell"] .dp-btn--ghost {
    background: var(--dp-bg);
    border: 1px solid var(--dp-border);
    color: var(--th-ink);
}
:root[data-aussehen="hell"] .dp-btn--ghost:active { background: var(--dp-surface-2); }
:root[data-aussehen="hell"] .dp-tile:focus-visible { box-shadow: 0 0 0 3px var(--dp-focus-gap); }

/* --- paying: the amount large, "Bar" white with a hairline, "Karte" in ink ------------------------------------------ */
:root[data-aussehen="hell"] #screenPayment .dp-section-title { color: var(--dp-text-muted); }
:root[data-aussehen="hell"] .dp-amount {
    border: 0;
    background: transparent;
    text-align: center;
    padding: 16px 0;
}
:root[data-aussehen="hell"] .dp-amount__label { color: var(--dp-text-muted); font-size: .95rem; font-weight: 600; }
:root[data-aussehen="hell"] .dp-amount__value { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; color: var(--th-ink); letter-spacing: -.01em; }
:root[data-aussehen="hell"] .dp-receipt { border-radius: var(--dp-radius); border-color: var(--th-line); background: var(--dp-bg); }
:root[data-aussehen="hell"] .dp-pay__btn { border-radius: var(--dp-radius); }
:root[data-aussehen="hell"] .dp-pay__btn--cash {
    background: var(--dp-bg);
    border: 1px solid var(--dp-border);
    color: var(--th-ink);
}
:root[data-aussehen="hell"] .dp-pay__btn--cash:active { background: var(--dp-surface-2); }
:root[data-aussehen="hell"] .dp-pay__btn--card { background: var(--th-ink); color: #fff; }
:root[data-aussehen="hell"] .dp-pay__btn--card:active { background: #05090f; }

/* --- the cash dialog: amounts that fill "Gegeben" in one tap (v3), then the pad ------------------------------------- */
.dp-cash-quick--schnell { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dp-cash-quick--schnell:empty { display: none; }
.dp-cash-quick__btn--schnell { min-height: 56px; font-size: 1.1rem; font-weight: 700; }
:root[data-aussehen="hell"] .dp-cash__sum {
    border: 1px solid var(--th-line);
    border-radius: var(--dp-radius);
    background: var(--dp-bg);
}
:root[data-aussehen="hell"] .dp-cash-quick__btn--schnell { border-color: var(--dp-eyebrow); color: var(--dp-eyebrow); }
:root[data-aussehen="hell"] .dp-cash-quick__btn--schnell:first-child { background: var(--dp-eyebrow); color: #fff; }
:root[data-aussehen="hell"] .dp-pinpad__key { border-color: var(--th-line); border-radius: var(--dp-radius); background: var(--dp-bg); }
:root[data-aussehen="hell"] .dp-pinpad__key--muted { background: transparent; }
:root[data-aussehen="hell"] #payCashConfirm:not(:disabled) { background: var(--th-ink); border-color: var(--th-ink); }

/* --- dialogs and fields --------------------------------------------------------------------------------------------- */
:root[data-aussehen="hell"] input,
:root[data-aussehen="hell"] select,
:root[data-aussehen="hell"] textarea { border-radius: var(--dp-radius-sm); }
:root[data-aussehen="hell"] .dp-theme-dialog__card,
:root[data-aussehen="hell"] .dp-disclaimer__card,
:root[data-aussehen="hell"] dialog.dp-disclaimer__card { border-radius: 16px; border-color: var(--th-line); }

/* TH.7 (59ab52): paying in one calm column is part of the rail layout now (end of this file).
 */
:root[data-aussehen="hell"] .dp-pay__btn { justify-content: center; align-items: center; text-align: center; letter-spacing: .02em; }
:root[data-aussehen="hell"] .dp-receipt__line { background: transparent; border-color: var(--th-line); }
:root[data-aussehen="hell"] .dp-pay__btn--card { border: 1px solid var(--th-ink); }

/* TH.7 (59ab52): the bon column is the Galerie footer now (end of this file).
 */


/* TH.3 (6fb6fc), 568x320: the light theme gives header, sum and amount more air than the dark one - on a small phone
   sideways with the outage bar standing that pushed "Kunde abschließen" and the pay buttons under the edge
   (A.15, 237485). Same look, less air; the buttons keep their 44 px. */
@media (orientation: landscape) and (max-height: 360px) and (max-width: 599px) {
    :root[data-aussehen="hell"] .dp-cart__total { padding: 6px 0; }
    :root[data-aussehen="hell"] .dp-cart__total span:last-child { font-size: 1.3rem; }
    :root[data-aussehen="hell"] .dp-amount { padding: 2px 0; margin-bottom: 6px; }
    :root[data-aussehen="hell"] .dp-amount__value { font-size: 1.75rem; margin-top: 0; }
    :root[data-aussehen="hell"] #screenPayment .dp-pay__btn { min-height: 56px; padding-block: 8px; }
}

/* =====================================================================================================================
 * TH.7 (59ab52): the till as the approved draft TH.2 v1 "Galerie" - the layout, not only the colours.
 *
 *   rail | tab row + tiles | bon
 *
 * A narrow icon rail on the left (the old header row is gone: "Menü", "Sperren" and the status line sit in it), the tab row above the
 * tiles with search and the pencil at its right end, the tiles in a dense grid with a badge for what is on the bon, the bon as a calm
 * list with its sum and the ways to pay at the foot. Both looks (the dark one keeps its colours, they come from the tokens).
 *
 *   >= 600 px   the three columns (rail 80, bon 320 - 400)      < 600 px   a bar on top (rail turned sideways), the bon below the tiles
 *
 * Last in the file on purpose: it settles the layers above. Everything here is layout and look - no screen, no id and no handler
 * of the till depends on it.
 * ===================================================================================================================== */

body.dp-terminal {
    --th-rail: 80px;
    --th-cart: 400px;
    --th-rand: 24px;
}
@media (max-width: 1360px) { body.dp-terminal { --th-cart: 360px; } }
@media (max-width: 1099px) { body.dp-terminal { --th-cart: 320px; --th-rand: 16px; } }
@media (max-width: 899px)  { body.dp-terminal { --th-rail: 64px; } }
@media (max-width: 599px)  { body.dp-terminal { --th-rand: 12px; } }

/* Fields stay editable and pasteable although the till's body does not let text be marked (a pasted registration code - 535135). */
body.dp-terminal input,
body.dp-terminal textarea,
body.dp-terminal select { -webkit-user-select: text; user-select: text; }

/* A line for a screen reader and the click tests (the text stays in the page, the eye gets the icon). */
.dp-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* --- the grid of the till ----------------------------------------------------------------------------------------------- */
body.dp-terminal .dp-app {
    display: grid;
    grid-template-columns: var(--th-rail) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "rail bar" "rail main";
    align-items: stretch;
    max-width: none;
    margin: 0;
    padding: 0;
    column-gap: 0;
    background: var(--dp-app);
}
body.dp-terminal:has(#footer:not([hidden])) .dp-app {
    grid-template-columns: var(--th-rail) minmax(0, 1fr) var(--th-cart);
    grid-template-areas: "rail bar bar" "rail main cart";
}
body.dp-terminal .dp-header { grid-area: rail; }
body.dp-terminal .dp-offline { grid-area: bar; }
body.dp-terminal .dp-main { grid-area: main; width: auto; background: var(--dp-app); }
body.dp-terminal .dp-footer { grid-area: cart; }
body.dp-terminal .dp-flow,
body.dp-terminal .dp-leiste,
body.dp-terminal .dp-action-intro { display: none !important; }

/* The administration has a rail of its own (the same 80 px): the till's steps aside and it takes the whole row. */
body.dp-terminal:has(#screenManagement:not([hidden])) .dp-header { display: none; }
body.dp-terminal:has(#screenManagement:not([hidden])) .dp-app { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bar" "main"; }

/* A screen that is not the tiles keeps the middle: the narrow ones (PIN, forms) stand in the middle of it. */
body.dp-terminal .dp-main--narrow { width: 100%; max-width: 560px; margin: 32px auto 0; align-self: start; max-height: calc(100% - 32px); }
body.dp-terminal .dp-main--pad { padding-inline: 16px; }

/* --- the rail ------------------------------------------------------------------------------------------------------------ */
body.dp-terminal .dp-header {
    position: relative;
    z-index: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 0;
    padding: calc(16px + var(--dp-safe-top)) 0 16px;
    background: var(--dp-bg);
    border: 0;
    border-right: 1px solid var(--dp-line);
    overflow: visible;
    color: var(--dp-text);
}
body.dp-terminal .dp-header__brand { flex: 0 0 auto; display: block; min-width: 0; margin: 0 0 12px; overflow: visible; }
body.dp-terminal .dp-header__marke { display: block; width: 40px; height: 40px; }
.dp-rail,
.dp-rail__fuss { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.dp-rail__fuss { margin-top: auto; }
.dp-rail__item {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--dp-text-muted);
    cursor: pointer;
    transition: background-color .06s ease;
}
.dp-rail__item:active { background: var(--dp-surface-3); }
.dp-rail__item[hidden] { display: none; }
.dp-rail__symbol {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dp-rail__symbol--voll { fill: currentColor; stroke: none; }
/* The place the employee is at, drawn by what is on show - no script. */
body:has(#screenCatalog:not([hidden])) #tillBtn,
body:has(#screenTables:not([hidden])) #tablesBtn,
body:has(#screenMine:not([hidden])) #mineBtn,
.dp-rail__item[aria-expanded="true"] { background: var(--dp-surface-3); color: var(--dp-eyebrow); }
.dp-header__avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--dp-card);
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.dp-header__avatar:empty { display: none; }

/* The status line: a dot for what is well (the words are its tooltip and stay in the page), a small label for what needs a look. */
body.dp-terminal .dp-statuszeile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 76px;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--dp-text);
    font-size: .66rem;
    line-height: 1.2;
}
body.dp-terminal .dp-statuszeile__platz { padding: 3px 5px; border-radius: 8px; white-space: normal; text-align: center; overflow-wrap: anywhere; hyphens: auto; font-weight: 600; }
body.dp-terminal .dp-statuszeile__platz--ok,
body.dp-terminal .dp-statuszeile__platz--info {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--dp-ok);
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}
body.dp-terminal .dp-statuszeile__platz--info { background: var(--dp-text-muted); }

/* The "…" of the rail: the less used entries open to the side of it. */
body.dp-terminal .dp-menu {
    top: auto;
    right: auto;
    bottom: 72px;
    left: calc(100% + 8px);
    min-width: 220px;
    border-color: var(--dp-line);
    border-radius: 12px;
    background: var(--dp-bg);
    box-shadow: 0 12px 32px rgb(13 35 71 / .16);
}
body.dp-terminal .dp-menu__item { min-height: 48px; border-radius: 8px; font-weight: 600; }

/* --- the tab row and the tiles ------------------------------------------------------------------------------------------- */
body.dp-terminal #screenCatalog {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: var(--dp-app);
}
body.dp-terminal #screenCatalog[hidden] { display: none; }
.dp-reiterzeile {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    gap: 16px;
    height: 64px;
    padding: 0 var(--th-rand);
    border-bottom: 1px solid var(--dp-line);
}
.dp-reiterzeile__reiter { display: flex; flex: 1 1 auto; min-width: 0; }
.dp-reiterzeile__werkzeuge { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; margin-left: auto; }
:root .dp-reiterzeile .dp-tabs-bar { flex: 1 1 auto; gap: 24px; margin: 0; border: 0; overflow-x: auto; }
:root .dp-reiterzeile .dp-tabs-bar__tab,
:root .dp-reiterzeile .dp-tabs-bar__tab[data-farbe]:not([data-farbe="0"]):not(.is-active) {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--dp-text-muted);
    font-weight: 500;
    box-shadow: none;
}
:root .dp-reiterzeile .dp-tabs-bar__tab.is-active,
:root .dp-reiterzeile .dp-tabs-bar__tab[data-farbe]:not([data-farbe="0"]).is-active { background: transparent; color: var(--dp-text); font-weight: 600; border: 0; box-shadow: none; }
:root .dp-reiterzeile .dp-tabs-bar__tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--dp-text);
}
/* The owner's group colour (GA.4) stays visible on the tab - a small dot in front of the name. */
:root .dp-reiterzeile .dp-tabs-bar__tab[data-farbe]:not([data-farbe="0"])::before {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dp-gruppe);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18);
}
.dp-symbolknopf {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--dp-text);
    cursor: pointer;
}
.dp-symbolknopf:active,
.dp-symbolknopf[aria-expanded="true"] { background: var(--dp-surface-3); }
.dp-symbolknopf[hidden] { display: none; }
.dp-symbolknopf svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body.dp-terminal .dp-reiterzeile .dp-menge__chip { min-height: 36px; padding: 0 14px; font-size: .95rem; }

body.dp-terminal #screenCatalog > .dp-suche { margin: 12px var(--th-rand) 0; }
/* GY.15: the camera scanner over the catalog. */
.dp-kamera { align-items: center; background: var(--dp-surface-2); border: 1px solid var(--dp-border); border-radius: 16px; display: flex; flex-wrap: wrap; gap: 12px; margin: 12px var(--th-rand) 0; padding: 12px; }
.dp-kamera[hidden] { display: none; }
.dp-kamera__bild { background: #000; border-radius: 12px; height: 160px; max-width: 100%; object-fit: cover; width: 240px; }
.dp-kamera__text { flex: 1 1 180px; margin: 0; }
body.dp-terminal #screenCatalog > .dp-suche__treffer { margin: 8px var(--th-rand) 0; }
body.dp-terminal #catalogBody {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: var(--th-rand);
}

/* Dense: four tiles wide from 1100 px, three from 600 px, two on a phone. The owner's own column count (GL.1) still wins. */
:where(body.dp-terminal) .dp-grid:not(.dp-grid--keypad) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 600px) { :where(body.dp-terminal) .dp-grid:not(.dp-grid--keypad) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { :where(body.dp-terminal) .dp-grid:not(.dp-grid--keypad) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* What stands on the bon: a round badge in the corner of the tile (the article's own info button moves one place to the left of it). */
.dp-tile__menge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 16px;
    background: #fff;
    color: #0d2347;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 1px 3px rgb(0 0 0 / .25);
    pointer-events: none;
}
.dp-tile-wrap .dp-tile__menge { right: 52px; }
@media (max-width: 599px) { .dp-tile__menge { top: 8px; right: 8px; min-width: 28px; height: 28px; border-radius: 14px; } }

/* --- the bon --------------------------------------------------------------------------------------------------------------- */
body.dp-terminal .dp-footer {
    position: relative;
    top: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    background: var(--dp-bg);
    border: 0;
    border-left: 1px solid var(--dp-line);
    box-shadow: none;
}
body.dp-terminal .dp-footer[hidden] { display: none; }
body.dp-terminal .dp-cart__kopf {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    height: 64px;
    padding: 0 12px 0 24px;
    border-bottom: 1px solid var(--dp-line);
}
body.dp-terminal .dp-cart__kopftext { flex: 1 1 auto; min-width: 0; }
/* GO.2: "Tische" in the head of a table's bon stays small - the head line ("Terrasse: Tisch 12 · V000001") is what matters. */
body.dp-terminal .dp-cart__kopf .dp-cart__tische { flex: 0 0 auto; width: auto; min-width: 0; min-height: 36px; padding: 0 14px; font-size: .9rem; }
body.dp-terminal .dp-cart__titel { margin: 0; overflow: hidden; font-size: 1rem; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
/* Review #789, N2: at a table the head names area, table and tab - it may take a second line rather than lose the tab's number. */
body.dp-terminal .dp-cart__titel[data-bestellen] { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
body.dp-terminal .dp-cart__unter { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin: 0; overflow: hidden; color: var(--dp-text-muted); font-size: .875rem; line-height: 1.3; white-space: nowrap; }
body.dp-terminal .dp-cart__unter .dp-header__clock { margin: 0; color: var(--dp-text-muted); font-size: .875rem; }
body.dp-terminal .dp-cart__unter .dp-header__bereich { padding: 0 8px; background: var(--dp-surface-3); font-size: .78rem; line-height: 1.5; }
body.dp-terminal .dp-cart__leer { margin: 24px; color: var(--dp-text-muted); }
body.dp-terminal .dp-cart__leer[hidden] { display: none; }

body.dp-terminal .dp-footer .dp-cart {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
}
body.dp-terminal .dp-footer .dp-cart[hidden] { display: none; }
body.dp-terminal .dp-footer .dp-cart__lines { flex: 1 1 0; min-height: 0; max-height: none; overflow-y: auto; padding: 8px var(--th-rand); overscroll-behavior: contain; }
body.dp-terminal .dp-footer .dp-cart__line { display: block; padding: 0; border: 0; background: transparent; }
body.dp-terminal .dp-footer .dp-cart__line--position {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--dp-line);
}
body.dp-terminal .dp-footer .dp-cart__line--position:has(+ .dp-cart__line--zusatz) { padding-bottom: 2px; border-bottom: 0; }
body.dp-terminal .dp-footer .dp-cart__line--zusatz { padding: 0 0 10px; }
body.dp-terminal .dp-footer .dp-cart__line--zusatz:has(+ .dp-cart__line--zusatz) { border-bottom: 0; padding-bottom: 2px; }
body.dp-terminal .dp-footer .dp-cart__mengefeld {
    grid-column: 1;
    min-width: 32px;
    height: 28px;
    margin-top: 2px;
    padding: 0 4px;
    border: 0;
    border-radius: 8px;
    background: var(--dp-app);
    color: var(--dp-text);
    font: inherit;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
}
body.dp-terminal .dp-footer .dp-cart__line.is-offen .dp-cart__mengefeld { background: var(--dp-surface-3); color: var(--dp-eyebrow); }
body.dp-terminal .dp-footer .dp-cart__name { grid-column: 2; display: block; min-height: 0; padding: 3px 0 0; overflow: visible; color: var(--dp-text); font-size: 1rem; font-weight: 600; line-height: 1.35; white-space: normal; text-overflow: clip; }
body.dp-terminal .dp-footer .dp-cart__price { grid-column: 3; padding-top: 3px; color: var(--dp-text); font-size: 1rem; font-weight: 600; text-align: right; }
body.dp-terminal .dp-footer .dp-cart__name .dp-hint,
body.dp-terminal .dp-footer .dp-cart__name small { display: block; margin: 0; color: var(--dp-text-muted); font-size: .875rem; font-weight: 500; }
body.dp-terminal .dp-footer .dp-cart__line--zusatz .dp-cart__name { grid-column: 2; padding-top: 0; color: var(--dp-text-muted); font-size: .875rem; font-weight: 500; }
body.dp-terminal .dp-footer .dp-cart__line--zusatz .dp-cart__price { padding-top: 0; color: var(--dp-text-muted); font-size: .875rem; font-weight: 500; }
body.dp-terminal .dp-footer .dp-cart__line--zusatz { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; column-gap: 12px; }
/* The strip of an open line. */
body.dp-terminal .dp-footer .dp-cart__streifen { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
body.dp-terminal .dp-footer .dp-cart__menge { display: inline-flex; align-items: center; gap: 4px; }
body.dp-terminal .dp-footer .dp-cart__mengetaste { min-width: 44px; min-height: 44px; border: 1px solid var(--dp-border); border-radius: 10px; background: var(--dp-bg); color: var(--dp-text); font-size: 1.25rem; font-weight: 700; cursor: pointer; }
body.dp-terminal .dp-footer .dp-cart__mengezahl { min-width: 52px; font-size: 1.05rem; }
body.dp-terminal .dp-footer .dp-cart__remove { width: auto; height: 44px; padding: 0 16px; border: 1px solid var(--dp-border); border-radius: 10px; background: var(--dp-bg); color: var(--dp-danger-text); font: inherit; font-size: .9rem; font-weight: 600; line-height: 1; cursor: pointer; }
body.dp-terminal .dp-footer .dp-cart__remove:active { background: var(--dp-danger); border-color: var(--dp-danger); color: #fff; }
body.dp-terminal .dp-footer .dp-cart__line:not(.dp-cart__line--position) { padding: 4px 0; }
body.dp-terminal .dp-footer .dp-cart__line .dp-btn--link { min-height: 44px; padding: 0; color: var(--dp-text-muted); font-size: .9rem; }

body.dp-terminal .dp-cart__fuss {
    display: flex;
    flex: 0 0 auto;
    margin-top: auto;
    flex-direction: column;
    gap: 12px;
    padding: 16px var(--th-rand) calc(var(--th-rand) + var(--dp-safe-bottom));
    border-top: 1px solid var(--dp-line);
}
body.dp-terminal .dp-cart__summen { display: flex; flex-direction: column; gap: 8px; }
body.dp-terminal .dp-cart__mwst { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; color: var(--dp-text-muted); font-size: .875rem; }
body.dp-terminal .dp-cart__mwst[hidden] { display: none; }
body.dp-terminal .dp-footer .dp-cart__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--dp-text); font-size: 1rem; font-weight: 700; }
body.dp-terminal .dp-footer .dp-cart__total span:last-child { font-size: 1.75rem; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.dp-terminal .dp-zahlen { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.35fr); gap: 8px; }
body.dp-terminal .dp-zahlen > button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 64px;
    padding: 0 8px;
    border: 1px solid var(--dp-border);
    border-radius: 10px;
    background: var(--dp-bg);
    color: var(--dp-text);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}
body.dp-terminal .dp-zahlen > button:active { background: var(--dp-surface-3); }
body.dp-terminal .dp-zahlen > button:disabled { opacity: .5; cursor: default; }
/* TH.8 (c06bd0): "body.dp-terminal .dp-zahlen > button" above is more specific than ".dp-zahlen__karte" - the card button stayed white in both looks.
   Written with the same ">" it wins, and Karte is the dark button the draft shows (a disabled one stays dark, only dimmer). */
body.dp-terminal .dp-zahlen > .dp-zahlen__karte { border-color: var(--dp-card); background: var(--dp-card); color: #fff; }
body.dp-terminal .dp-zahlen > .dp-zahlen__karte:active { background: var(--dp-card-strong); }
body.dp-terminal .dp-zahlen > .dp-zahlen__karte:disabled { opacity: .7; }
/* GO.2 (601b40): at a table the foot is one green key, "Abschicken", across the whole width; the lines already in the kitchen
   stand green above the new ones, by product group, without a key of their own. */
body.dp-terminal .dp-zahlen > .dp-zahlen__abschicken { grid-column: 1 / -1; border-color: var(--dp-cash); background: var(--dp-cash); color: #fff; font-size: 1.1rem; }
body.dp-terminal .dp-zahlen > .dp-zahlen__abschicken:active { background: var(--dp-cash-strong); }
body.dp-terminal .dp-zahlen > .dp-zahlen__abschicken[hidden] { display: none; }
body.dp-terminal .dp-zahlen > button[hidden], body.dp-terminal .dp-footer .dp-cart__summen[hidden], .dp-cart__tische[hidden] { display: none; }
body.dp-terminal .dp-footer .dp-cart__kueche { margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: var(--dp-ok-bg, #e2f4eb); color: var(--dp-ok, #0e4a2d); }
body.dp-terminal .dp-footer .dp-cart__kueche-kopf { margin: 0 0 4px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
body.dp-terminal .dp-footer .dp-cart__gruppe { margin: 6px 0 2px; font-size: .85rem; font-weight: 700; opacity: .85; }
body.dp-terminal .dp-footer .dp-cart__line--gesendet { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; padding: 4px 0; }
body.dp-terminal .dp-footer .dp-cart__line--gesendet .dp-hint { color: inherit; opacity: .8; }
body.dp-terminal .dp-footer .dp-cart__gesendet-menge { font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
/* Review #789, N3: "Neu" is its own line under the green block, with room and a rule - it is not part of the kitchen. */
body.dp-terminal .dp-footer .dp-cart__neu { margin: 4px 0 6px; padding-top: 10px; border-top: 1px solid var(--dp-border); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dp-text-muted); }
/* Review #789, H1: a line of a send without an answer waits for its key - marked, without keys. */
body.dp-terminal .dp-footer .dp-cart__line--unterwegs { border-left: 3px solid var(--dp-warn-border, #d9a400); padding-left: 8px; }
body.dp-terminal .dp-footer .dp-cart__line--unterwegs [data-unterwegs] { color: var(--dp-warn-text, #7a5200); }
body.dp-terminal .dp-zahlen svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body.dp-terminal .dp-zahlen__mehr svg { fill: currentColor; stroke: none; }
body.dp-terminal .dp-zahlen__mehr { padding: 0; }
body.dp-terminal .dp-mehr {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    left: 0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    border: 1px solid var(--dp-line);
    border-radius: 12px;
    background: var(--dp-bg);
    box-shadow: 0 12px 32px rgb(14 26 43 / .18);
}
body.dp-terminal .dp-mehr[hidden] { display: none; }
body.dp-terminal .dp-mehr__eintrag { min-height: 48px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--dp-text); font: inherit; font-size: 1rem; font-weight: 600; text-align: left; cursor: pointer; }
body.dp-terminal .dp-mehr__eintrag:active { background: var(--dp-surface-3); }
body.dp-terminal .dp-mehr__eintrag:disabled { color: var(--dp-text-muted); cursor: default; }
body.dp-terminal .dp-mehr__eintrag[hidden] { display: none; }
body.dp-terminal .dp-mehr__hinweis { margin: 0; padding: 8px 14px; }

/* --- paying: the amount in the middle, the guest's bon beside it --------------------------------------------------------- */
body.dp-terminal #screenPayment { padding: var(--th-rand); }
@media (min-width: 900px) {
    body.dp-terminal #screenPayment { padding-inline: max(24px, calc((100% - 720px) / 2)); }
}
/* From 1100 px the amount and the keys stand in the middle, the guest's lines in a column of their own beside them (as the bon column of the till). */
@media (min-width: 1100px) {
    body.dp-terminal #screenPayment:not([hidden]) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) var(--th-cart);
        grid-template-rows: 1fr repeat(6, auto) 1fr;
        align-items: start;
        padding: 0;
        overflow: hidden;
    }
    body.dp-terminal #screenPayment > * { grid-column: 1; width: min(560px, calc(100% - 48px)); margin-inline: auto; }
    body.dp-terminal #screenPayment > .dp-section-title { grid-row: 2; text-align: center; }
    body.dp-terminal #screenPayment > #payTeil { grid-row: 3; }
    body.dp-terminal #screenPayment > .dp-amount { grid-row: 4; }
    body.dp-terminal #screenPayment > #payMethodGroup,
    body.dp-terminal #screenPayment > #tipPanel,
    body.dp-terminal #screenPayment > #mixedPaymentPanel,
    body.dp-terminal #screenPayment > #cashGivenPanel,
    body.dp-terminal #screenPayment > #cardStepPanel { grid-row: 5; }
    body.dp-terminal #screenPayment > #payLines {
        grid-column: 2;
        grid-row: 1 / -1;
        align-self: stretch;
        width: auto;
        max-height: none;
        margin: 0;
        padding: 8px var(--th-rand);
        overflow-y: auto;
        border: 0;
        border-left: 1px solid var(--dp-line);
        border-radius: 0;
        background: var(--dp-bg);
    }
    body.dp-terminal #screenPayment > #payLines .dp-receipt__line { padding: 12px 0; }
}
body.dp-terminal .dp-pay__btn--cash,
body.dp-terminal .dp-pay__btn--card { border-radius: 12px; }

/* --- mirrored for a left-handed person: the bon next to the rail, the tiles on the right -------------------------------------- */
@media (min-width: 600px) {
    html[data-kasse-spiegel] body.dp-terminal:has(#footer:not([hidden])) .dp-app {
        grid-template-columns: var(--th-rail) var(--th-cart) minmax(0, 1fr);
        grid-template-areas: "rail bar bar" "rail cart main";
    }
    html[data-kasse-spiegel] body.dp-terminal .dp-footer { border-left: 0; border-right: 1px solid var(--dp-line); }
}

/* --- below 600 px: the rail turns into a bar, the bon sits under the tiles --------------------------------------------------- */
@media (max-width: 599px) {
    body.dp-terminal .dp-app,
    body.dp-terminal:has(#footer:not([hidden])) .dp-app,
    body.dp-terminal:has(#screenManagement:not([hidden])) .dp-app {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto minmax(0, 1fr) auto;
        grid-template-areas: "rail" "bar" "main" "cart";
    }
    body.dp-terminal .dp-header {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 2px;
        padding: calc(8px + var(--dp-safe-top)) 6px 8px;
        border-right: 0;
        border-bottom: 1px solid var(--dp-line);
    }
    body.dp-terminal .dp-header__brand { margin: 0 4px 0 0; }
    body.dp-terminal .dp-header__marke { width: 32px; height: 32px; }
    .dp-rail,
    .dp-rail__fuss { flex-direction: row; width: auto; gap: 2px; }
    .dp-rail__fuss { flex: 1 1 auto; justify-content: flex-end; margin-top: 0; }
    .dp-rail__item { width: 38px; height: 38px; border-radius: 10px; }
    .dp-rail__symbol { width: 22px; height: 22px; }
    .dp-header__avatar { width: 30px; height: 30px; margin: 0 0 0 2px; font-size: .72rem; }
    body.dp-terminal .dp-statuszeile { flex-direction: row; flex-wrap: wrap; justify-content: center; width: auto; max-width: none; padding: 0 2px; }
    body.dp-terminal .dp-statuszeile:has(.dp-statuszeile__platz:not(.dp-statuszeile__platz--ok):not(.dp-statuszeile__platz--info)) { order: 99; flex: 0 0 100%; margin-top: 6px; }
    body.dp-terminal .dp-menu { bottom: auto; top: calc(100% + 4px); right: 8px; left: auto; }
    body.dp-terminal .dp-reiterzeile { height: 52px; gap: 8px; }
    body.dp-terminal .dp-reiterzeile .dp-tabs-bar { gap: 18px; }
    body.dp-terminal .dp-footer { border-left: 0; border-top: 1px solid var(--dp-line); max-height: 52dvh; }
    body.dp-terminal .dp-cart__kopf { height: 48px; padding: 0 4px 0 12px; }
    body.dp-terminal .dp-cart__kopftext { display: flex; align-items: baseline; gap: 10px; }
    body.dp-terminal .dp-footer .dp-cart { flex: 0 1 auto; }
    body.dp-terminal .dp-footer .dp-cart__lines { flex: 0 1 auto; max-height: 19dvh; padding: 4px 12px; }
    body.dp-terminal .dp-footer .dp-cart__line--position { padding: 8px 0; }
    body.dp-terminal .dp-cart__leer { margin: 12px; }
    body.dp-terminal .dp-cart__fuss { gap: 8px; padding: 10px 12px calc(10px + var(--dp-safe-bottom)); }
    body.dp-terminal .dp-cart__mwst { display: none; }
    body.dp-terminal .dp-footer .dp-cart__total span:last-child { font-size: 1.4rem; }
    body.dp-terminal .dp-zahlen > button { min-height: 52px; }
    body.dp-terminal #screenCatalog > .dp-suche { margin-inline: 12px; }
    html[data-kasse-spiegel] body.dp-terminal:has(#footer:not([hidden])) .dp-app { grid-template-areas: "rail" "bar" "main" "cart"; }
}

/* A window that is wide but short (a phone sideways): the rail gives up its air so every entry stays inside it. */
@media (max-height: 520px) and (min-width: 600px) {
    body.dp-terminal .dp-header { gap: 2px; padding-block: 6px; overflow-y: auto; }
    body.dp-terminal .dp-header__brand { margin-bottom: 2px; }
    body.dp-terminal .dp-header__marke { width: 30px; height: 30px; }
    .dp-rail,
    .dp-rail__fuss { gap: 2px; }
    .dp-rail__item { width: 40px; height: 40px; }
    .dp-header__avatar { width: 32px; height: 32px; margin-top: 2px; font-size: .75rem; }
    body.dp-terminal .dp-cart__kopf,
    .dp-reiterzeile { height: 52px; }
    body.dp-terminal .dp-cart__fuss { gap: 8px; padding-block: 10px; }
    body.dp-terminal .dp-zahlen > button { min-height: 52px; }
    body.dp-terminal .dp-footer .dp-cart__total span:last-child { font-size: 1.4rem; }
}
@media (max-height: 520px) and (max-width: 599px) {
    body.dp-terminal .dp-footer { max-height: 62dvh; }
    body.dp-terminal .dp-footer .dp-cart__lines { max-height: 14dvh; }
}

/* The pay screen's own two ways to pay and the grid of the light look: one place for the narrower windows. */
@media (max-width: 899px) { .dp-pay { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .dp-pay { grid-template-columns: 1fr; } }

/* TH.8 (c06bd0): "Meine Verkäufe" - the two quiet text buttons ("Abrechnung drucken", "Beleg eines Kollegen stornieren") sat in the corner of a tile
   grid or at an odd indent as bare text. They are the small outlined buttons of the till now, on a line of their own at the left edge. */
body.dp-terminal #mineTotals > .dp-row__actions { grid-column: 1 / -1; flex-wrap: wrap; align-items: center; }
body.dp-terminal #screenMine .dp-btn--link {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--dp-border);
    border-radius: 10px;
    background: var(--dp-bg);
    color: var(--dp-text);
    font-size: .9rem;
    font-weight: 600;
}
body.dp-terminal #screenMine .dp-btn--link:active { background: var(--dp-surface-3); }
body.dp-terminal #mineList > .dp-row__actions { margin-top: 12px; }

/* TH.8 (c06bd0): "Kategorien" - the groups as photo tiles with the name and how many articles they hold (the draft TH.2 v1, kategorien-1440): three
   across on the wide screen, two on a phone, tall tiles; a group without a picture is a calm warm tile with its first letter. The photo tile is the
   one of the articles (".dp-tile--bild": the picture, the dark gradient at the bottom, white words) - the same in the light and the dark look. */
body.dp-terminal .dp-grid.dp-grid--kategorien:not(.dp-grid--keypad) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { body.dp-terminal .dp-grid.dp-grid--kategorien:not(.dp-grid--keypad) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dp-tile.dp-tile--kategorie {
    position: relative;
    min-height: 180px;
    padding: 16px;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 2px;
    overflow: hidden;
    text-align: left;
    border-radius: 12px;
}
.dp-tile--kategorie .dp-tile__name { position: relative; z-index: 1; font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.dp-tile--kategorie .dp-tile__price { position: relative; z-index: 1; font-size: .875rem; font-weight: 500; white-space: nowrap; }
.dp-tile--kategorie:not(.dp-tile--bild)::before {
    content: attr(data-anfang);
    content: attr(data-anfang) / "";
    position: absolute;
    top: 14px;
    left: 16px;
    color: var(--dp-text-muted);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    opacity: .4;
}
.dp-kategorien-zurueck { margin-bottom: 12px; min-height: 44px; }

/* TH.8 (c06bd0): "Zurück zum Bon" at the top left of the pay screen (the draft TH.2 v1, bezahlen-1440); from 1100 px it stands in the first row of the grid. */
body.dp-terminal #screenPayment > .dp-pay-zurueck {
    display: inline-flex;
    align-items: center;
    align-self: start;
    justify-self: start;
    width: auto;
    min-height: 44px;
    margin: 0 0 8px;
    padding: 0 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--dp-text-muted);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
body.dp-terminal #screenPayment > .dp-pay-zurueck:active { background: var(--dp-surface-2); }
@media (min-width: 1100px) {
    body.dp-terminal #screenPayment > .dp-pay-zurueck { grid-row: 1; margin: 10px 0 0 24px; }
}
.dp-tile--kategorie:not(.dp-tile--bild) .dp-tile__price { color: var(--dp-text-muted); }
/* On a small phone held sideways (568x320, A.15) there is no room for a row of its own: "Abbrechen" below does the same. */
@media (max-height: 400px) { body.dp-terminal #screenPayment > .dp-pay-zurueck { display: none; } }

/* TH.11 (ec057c): the Karte step of the pay screen - the amount stays the large figure (as in the cash step), the terminal's state under it
   (green, as in the draft TH.2 v1 bezahlen-1440: "Terminal bereit · Karte, Handy oder Uhr"), then "Karte buchen" and the way back. */
.dp-cardstep { display: grid; gap: 14px; justify-items: center; margin: 4px auto 0; max-width: 460px; width: 100%; }
.dp-cardstep[hidden] { display: none; }
.dp-cardstep__status { margin: 0; text-align: center; font-size: 1.05rem; font-weight: 600; color: var(--dp-ok); }
.dp-cardstep__status[data-terminal="bereit"]::before { content: "))) "; font-weight: 800; letter-spacing: -.1em; }
.dp-cardstep .dp-cash__actions { width: 100%; }
#screenPayment.is-card > .dp-section-title,
#screenPayment.is-card #payLines { display: none; }
#payCardConfirm:not(:disabled) { min-height: 64px; font-size: 1.2rem; font-weight: 700; }
:root[data-aussehen="hell"] #payCardConfirm:not(:disabled) { background: var(--th-ink); border-color: var(--th-ink); color: #fff; }
/* From 1100 px the guest's bon stays beside the cash and the card step, as in the draft (bezahlen-1440); below that the step has the screen to itself. */
@media (min-width: 1100px) {
    body.dp-terminal #screenPayment.is-cash > #payLines,
    body.dp-terminal #screenPayment.is-card > #payLines { display: block; }
}

/* TH.11 (ec057c): the pay screen in the dark look has the layout of the light one (the draft bezahlen-1440): the amount large and without a box
   (64 px on a wide screen instead of 32), Bar a quiet outlined key and not green, Karte a solid key and not dashed. Colours stay the look's own. */
:root:not([data-aussehen="hell"]) .dp-amount { border: 0; background: transparent; text-align: center; padding: 16px 0; }
:root:not([data-aussehen="hell"]) .dp-amount__label { font-size: .95rem; font-weight: 600; }
:root:not([data-aussehen="hell"]) .dp-amount__value { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.01em; }
:root:not([data-aussehen="hell"]) .dp-pay__btn { border-radius: var(--dp-radius); justify-content: center; align-items: center; text-align: center; letter-spacing: .02em; }
:root:not([data-aussehen="hell"]) .dp-pay__btn--cash { background: var(--dp-surface-2); border: 1px solid var(--dp-border); color: var(--dp-text); }
:root:not([data-aussehen="hell"]) .dp-pay__btn--cash:active { background: var(--dp-surface); }
:root:not([data-aussehen="hell"]) .dp-pay__btn--card { border: 1px solid var(--dp-card); }
@media (orientation: landscape) and (max-height: 360px) and (max-width: 599px) {
    :root:not([data-aussehen="hell"]) .dp-amount { padding: 2px 0; margin-bottom: 6px; }
    :root:not([data-aussehen="hell"]) .dp-amount__value { font-size: 1.75rem; margin-top: 0; }
}
/* The cash step keeps its compact amount row in every look (the rule above is for the choice of Bar / Karte). */
body.dp-terminal #screenPayment.is-cash .dp-amount { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 14px; margin-bottom: 10px; }
body.dp-terminal #screenPayment.is-cash .dp-amount__value { font-size: 1.4rem; margin: 0; }
:root[data-aussehen="hell"] body.dp-terminal #screenPayment.is-cash .dp-amount { padding: 8px 0; }

/* TH.11: the tip as chips, the terminal's line and the foot of the bon on the pay screen. */
.dp-tipchips { display: grid; justify-items: center; gap: 10px; margin: 0 0 14px; }
.dp-tipchips[hidden] { display: none; }
.dp-tipchips__label { margin: 0; color: var(--dp-text-muted); font-size: .95rem; font-weight: 600; }
.dp-tipchips__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dp-tipchip {
    min-width: 92px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--dp-border);
    border-radius: 22px;
    background: var(--dp-surface);
    color: var(--dp-text);
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
}
.dp-tipchip[hidden] { display: none; }
.dp-tipchip[aria-pressed="true"] { background: var(--dp-card); border-color: var(--dp-card); color: #fff; }
.dp-tipchip:disabled { opacity: .5; cursor: default; }
.dp-pay-terminal { margin: 14px 0 0; text-align: center; font-weight: 600; color: var(--dp-ok); }
.dp-pay-terminal[hidden] { display: none; }
.dp-pay-terminal::before { content: "))) "; font-weight: 800; letter-spacing: -.1em; }
.dp-pay-fuss { display: grid; gap: 8px; padding: 12px 0 0; margin-top: 8px; border-top: 1px solid var(--dp-border); }
.dp-pay-fuss__zeile, .dp-pay-fuss__summe { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.dp-pay-fuss__zeile { color: var(--dp-text-muted); font-size: .9rem; }
.dp-pay-fuss__zeile[hidden] { display: none; }
.dp-pay-fuss__summe { font-weight: 800; font-size: 1.2rem; }
.dp-pay-fuss__aufteilen { min-height: 44px; margin: 4px 0 0 !important; }
/* On a narrow screen the amount stands right under the lines: only the split key of the foot stays. */
@media (max-width: 1099px) {
    .dp-pay-fuss { border-top: 0; padding-top: 0; }
    .dp-pay-fuss__zeile, .dp-pay-fuss__summe { display: none; }
}
@media (min-width: 1100px) {
    body.dp-terminal #screenPayment > #payLines { display: flex; flex-direction: column; }
    body.dp-terminal #screenPayment > #payLines > .dp-pay-fuss { margin-top: auto; position: sticky; bottom: 0; background: var(--dp-bg); padding: 12px 0 16px; }
}
@media (max-width: 480px) {
    .dp-tipchip { min-width: 0; padding: 0 14px; }
    .dp-tipchips__row { gap: 6px; }
}

/* =====================================================================================================================
 * GP.11 (e759bd): the live plan of the tables at the tablet (js/tischplan-live-ansicht.js). Tokens tisch-*: every state has a colour, a
 * symbol and a word - the colour never carries a state alone; each ring/badge colour reaches 3:1 against its ground (docs/design/kasse/TOKENS.md).
 * The floor's own colours (--tp-*) are the editor's, light and dark.
 * ===================================================================================================================== */
.dp-live {
    --tp-boden: #f5efe6; --tp-wand: #24314a; --tp-tisch: #fff; --tp-tisch-rand: #b8a58c; --tp-nr: #0d2347; --tp-stuhl: #e3d5c2; --tp-stuhl-rand: #b8a58c;
    --tp-flaeche: #f4f1ec; --tp-punkte: #d5cec3;
    --tisch-frei: #5e7894;      --tisch-frei-bg: #ffffff;
    --tisch-geoeffnet: #0a5fa8; --tisch-geoeffnet-bg: #e3f1fc;
    --tisch-bestellt: #001d86;  --tisch-bestellt-bg: #e4e8f7;
    --tisch-gang: #8a5a00;      --tisch-gang-bg: #fff1cc;
    --tisch-fertig: #0e6b3f;    --tisch-fertig-bg: #e2f4eb;
    --tisch-rechnung: #6a3fb5;  --tisch-rechnung-bg: #efe8fb;
    --tisch-belegt: #5f615e;    --tisch-belegt-bg: #e9eaea;
    --tisch-ink: #0d2347; --tisch-badge-ink: #ffffff;
    --tisch-zeit-gelb-bg: #fff1cc; --tisch-zeit-gelb-ink: #4f3500; --tisch-zeit-gelb-rand: #8a5a00;
    --tisch-zeit-rot-bg: #72111f; --tisch-zeit-rot-ink: #ffffff;
    display: flex; flex-direction: column; gap: 8px; min-height: 0; flex: 1 1 0;
    color: var(--dp-text);
}
:root[data-aussehen="dunkel"] .dp-live {
    --tp-boden: #1c1916; --tp-wand: #5a6577; --tp-tisch: #2b2a2e; --tp-tisch-rand: #6b6670; --tp-nr: #f4f8fc; --tp-stuhl: #3a332c; --tp-stuhl-rand: #6b5d4e;
    --tp-flaeche: #0b0c0f; --tp-punkte: #1d2129;
    --tisch-frei: #8fa6c4;      --tisch-frei-bg: #242c3d;
    --tisch-geoeffnet: #6cc8fa; --tisch-geoeffnet-bg: #12354f;
    --tisch-bestellt: #9db0ff;  --tisch-bestellt-bg: #1d2a5e;
    --tisch-gang: #ffc857;      --tisch-gang-bg: #3a2c0e;
    --tisch-fertig: #6ee0a8;    --tisch-fertig-bg: #0f2e22;
    --tisch-rechnung: #c9adff;  --tisch-rechnung-bg: #33224f;
    --tisch-belegt: #aab4bf;    --tisch-belegt-bg: #2f353d;
    --tisch-ink: #f4f8fc; --tisch-badge-ink: #0b0c0f;
    --tisch-zeit-gelb-bg: #3a2c0e; --tisch-zeit-gelb-ink: #ffe3a3; --tisch-zeit-gelb-rand: #ffc857;
    --tisch-zeit-rot-bg: #ffd2d8; --tisch-zeit-rot-ink: #5a0d18;
}
.dp-live [data-zustand="frei"] { --tisch-c: var(--tisch-frei); --tisch-bg: var(--tisch-frei-bg); }
.dp-live [data-zustand="geoeffnet"] { --tisch-c: var(--tisch-geoeffnet); --tisch-bg: var(--tisch-geoeffnet-bg); }
.dp-live [data-zustand="bestellt"] { --tisch-c: var(--tisch-bestellt); --tisch-bg: var(--tisch-bestellt-bg); }
.dp-live [data-zustand="gang"] { --tisch-c: var(--tisch-gang); --tisch-bg: var(--tisch-gang-bg); }
.dp-live [data-zustand="fertig"] { --tisch-c: var(--tisch-fertig); --tisch-bg: var(--tisch-fertig-bg); }
.dp-live [data-zustand="rechnung"] { --tisch-c: var(--tisch-rechnung); --tisch-bg: var(--tisch-rechnung-bg); }
.dp-live [data-zustand="belegt"] { --tisch-c: var(--tisch-belegt); --tisch-bg: var(--tisch-belegt-bg); }
.dp-live [data-zustand="unbekannt"] { --tisch-c: var(--tisch-frei); --tisch-bg: var(--tp-tisch); }

#screenTables.dp-tables--plan { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
#screenTables.dp-tables--plan .dp-section-title,
#screenTables.dp-tables--plan .dp-tables__open,
#screenTables.dp-tables--plan #tablesCustomers,
#screenTables.dp-tables--plan #tablesMine,
#screenTables.dp-tables--plan #tablesAllSection,
#screenTables.dp-tables--plan #tablesGrid,
#screenTables.dp-tables--plan #tablesBack,
#screenTables.dp-tables--plan .dp-tables__views { display: none; }
#screenTables.dp-tables--plan .dp-tables__head { margin: 0; font-size: 1rem; }
#screenTables.dp-tables--plan .dp-tables__actions { margin-bottom: 0; }
#screenTables.dp-tables--plan .dp-tables__actions .dp-btn { min-height: 44px; flex: 0 1 auto; }
#screenTables.dp-tables--plan #tablesPlan { order: 20; }
.dp-tables__views { display: flex; margin: 0 0 8px; }
.dp-tables__views .dp-btn { width: auto; min-width: 160px; }

.dp-live__kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dp-live__reiterbox { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border: 1px solid var(--dp-border); border-radius: 14px; background: var(--dp-surface-2); }
.dp-live__reiter, .dp-live__schalter, .dp-live__zoom button {
    min-height: 44px; min-width: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--dp-text);
    font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer;
}
.dp-live__reiter[aria-selected="true"] { background: var(--dp-surface-3); box-shadow: inset 0 0 0 2px var(--dp-focus); }
.dp-live__schalter { border: 1px solid var(--dp-border); background: var(--dp-surface-2); }
.dp-live__schalter[aria-pressed="true"] { background: var(--dp-surface-3); box-shadow: inset 0 0 0 2px var(--dp-focus); }
.dp-live__stand { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--dp-surface-2); border: 1px solid var(--dp-border); font-size: .8125rem; font-weight: 700; }
.dp-live__stand::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dp-ok); box-shadow: 0 0 0 2px var(--dp-ok-bg); }
.dp-live__stand[data-online="false"] { background: var(--dp-warn); color: var(--dp-warn-text); border-color: var(--dp-warn-border); }
.dp-live__stand[data-online="false"]::before { background: var(--dp-warn-text); box-shadow: none; border-radius: 2px; }
.dp-live__banner { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--dp-warn); color: var(--dp-warn-text); border: 1px solid var(--dp-warn-border); font-weight: 600; }
.dp-live__banner[hidden], .dp-live__blatt[hidden], .dp-live__ablage[hidden], .dp-live__reiterbox[hidden] { display: none; }

.dp-live__flaeche { position: relative; flex: 1 1 0; min-height: 240px; overflow: hidden; border-radius: 16px; background: var(--tp-flaeche); background-image: radial-gradient(var(--tp-punkte) 1px, transparent 1px); background-size: 24px 24px; touch-action: none; }
.dp-live__svg { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; }
.dp-live .dv-tp__boden { fill: var(--tp-boden); }
.dp-live .dv-tp__wand { stroke: var(--tp-wand); stroke-width: 8px; }
.dp-live .dv-tp__wandstueck { fill: var(--tp-wand); }
.dp-live .dv-tp__deko { fill: var(--tp-stuhl); stroke: var(--tp-stuhl-rand); stroke-width: 2; }
.dp-live .dv-tp__fest { pointer-events: none; }
.dp-live .dv-tp__tischflaeche { fill: var(--tisch-bg, var(--tp-tisch)); stroke-width: 4; }
.dp-live .dv-tp__stuhl { fill: var(--tp-stuhl); stroke: var(--tp-stuhl-rand); stroke-width: 1.5; }
.dp-live .dv-tp__treffer { pointer-events: none; }
.dp-live__t { cursor: pointer; outline: none; }
.dp-live__t:focus-visible .dp-live__ring { stroke: var(--dp-focus); stroke-width: 7px; }
.dp-live__treffer { pointer-events: all; }
.dp-live__ring { stroke: var(--tisch-c); stroke-width: 4px; }
.dp-live__t[data-zustand="frei"] .dp-live__ring { stroke-width: 2px; opacity: .55; }
.dp-live__t[data-zustand="unbekannt"] .dp-live__ring { opacity: .25; stroke-width: 2px; }
.dp-live__t[data-zustand="belegt"] .dp-live__ring { stroke-dasharray: 2 7; stroke-linecap: round; stroke-width: 5px; }
.dp-live__t[data-zustand="gang"] .dp-live__ring { stroke-dasharray: 12 6; }
.dp-live__t[data-zustand="belegt"] { opacity: .8; }
.dp-live__t--revier { opacity: .5; }
.dp-live__svg--meine .dp-live__t:not(.dp-live__t--eigen) { opacity: .25; }
.dp-live__nr { fill: var(--tp-nr); font-family: Montserrat, system-ui, sans-serif; font-size: 16px; font-weight: 700; pointer-events: none; paint-order: stroke; stroke: var(--tisch-bg, var(--tp-tisch)); stroke-width: 3px; stroke-linejoin: round; }
.dp-live__raumname text { fill: var(--tp-nr); font-family: Montserrat, system-ui, sans-serif; font-size: 14px; font-weight: 700; pointer-events: none; }
.dp-live__badge { pointer-events: none; color: var(--tisch-badge-ink); }
.dp-live__badge circle { fill: var(--tisch-c); stroke: var(--tp-boden); stroke-width: 2px; }
.dp-live__badge > :not(circle) { transform: scale(.78); transform-box: fill-box; transform-origin: center; }
.dp-live__chip { pointer-events: none; }
/* GY.3.b: the reservation chip under the state chip. */
.dp-live__res { pointer-events: none; }
.dp-live__res rect { fill: var(--dp-surface-3, #eef1f6); stroke: var(--dp-border, #b8c0cc); stroke-width: 1px; }
.dp-live__res text { fill: var(--dp-text, #14213d); font-size: 11px; font-weight: 700; }
.dp-live__chip rect { fill: var(--tisch-bg); stroke: var(--tisch-c); stroke-width: 1.5px; }
.dp-live__wort { fill: var(--tisch-ink); font-family: Montserrat, system-ui, sans-serif; font-size: 11px; font-weight: 700; }
.dp-live__zeile2 { fill: var(--tisch-ink); font-family: Montserrat, system-ui, sans-serif; font-size: 10px; font-weight: 600; }
.dp-live__chip[data-zeit="gelb"] rect { fill: var(--tisch-zeit-gelb-bg); stroke: var(--tisch-zeit-gelb-rand); stroke-width: 2.5px; }
.dp-live__chip[data-zeit="gelb"] text { fill: var(--tisch-zeit-gelb-ink); }
.dp-live__chip[data-zeit="rot"] rect { fill: var(--tisch-zeit-rot-bg); stroke: var(--tisch-zeit-rot-bg); }
.dp-live__chip[data-zeit="rot"] text { fill: var(--tisch-zeit-rot-ink); }
.dp-live__svg--dicht .dp-live__chip, .dp-live__svg--dicht .dp-live__zeile2 { display: none; }
.dp-live [data-zustand="unbekannt"] .dp-live__chip { display: none; }

.dp-live__zoom { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 2px; padding: 4px 6px; border: 1px solid var(--dp-border); border-radius: 16px; background: var(--dp-surface); box-shadow: 0 4px 14px rgba(13, 35, 71, .18); }
.dp-live__zoom span { min-width: 52px; text-align: center; font-size: .8125rem; font-weight: 600; color: var(--dp-text-muted); }
.dp-live__zoom button { padding: 0 10px; font-size: 1.25rem; }
.dp-live__legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 12px; border: 1px solid var(--dp-border); border-radius: 14px; background: var(--dp-surface-2); font-size: .8125rem; font-weight: 600; }
.dp-live__legendeintrag { display: inline-flex; align-items: center; gap: 6px; }
.dp-live__legendeintrag .dp-live__sym { padding: 3px; border-radius: 50%; background: var(--tisch-c); color: var(--tisch-badge-ink); box-sizing: content-box; }
.dp-live__ablage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dp-live__ablagetitel { font-size: .8125rem; font-weight: 700; color: var(--dp-text-muted); }
.dp-live__ablagetisch { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px; border: 2px solid var(--tisch-c); border-radius: 12px; background: var(--tisch-bg); color: var(--tisch-ink); font: inherit; font-weight: 700; cursor: pointer; }
.dp-live__ablagetisch .dp-live__sym { color: var(--tisch-c); }
.dp-live__ablagewort { font-size: .75rem; font-weight: 600; }

.dp-live__blatt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(13, 35, 71, .35); }
.dp-live__blattkarte { width: min(420px, 100%); padding: 16px; border-radius: 16px; background: var(--dp-surface); border: 1px solid var(--dp-border); box-shadow: 0 12px 32px rgba(13, 35, 71, .35); }
.dp-live__blatttitel { margin: 0 0 8px; font-size: 1.15rem; font-weight: 700; }
.dp-live__blattzeile { margin: 0 0 6px; color: var(--dp-text-muted); }
.dp-live__stepper { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.dp-live__stepper span { flex: 1; font-weight: 600; }
.dp-live__stepper input { width: 72px; min-height: 48px; text-align: center; font: inherit; font-size: 1.25rem; font-weight: 700; border: 1px solid var(--dp-border); border-radius: 10px; background: var(--dp-surface-2); color: var(--dp-text); }
.dp-live__stepper .dp-btn { width: 48px; min-width: 48px; padding: 0; }
.dp-live__blattknoepfe { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.dp-live__blattknoepfe .dp-btn { flex: 1 1 120px; width: auto; min-height: 48px; }
.dp-live[hidden], .dp-tables__views[hidden] { display: none; }

/* =====================================================================================================================
 * GP.12 (739b2a): the live plan at the phone (js/tischplan-telefon-ansicht.js). Upright: "Meine Tische" as cards by waiting time, the chip
 * "frei", the mini plan, the thumb bar - everything that is done is in the lower half, nothing needs a hover, every target is 56 px and more.
 * Sideways the screen shows the plan of GP.11 with larger hit areas. The colours are GP.11's tokens (tisch-*), light and dark.
 * The decoration of GP.8 (walls, doors, plants, ...) is drawn by the plan from here on: its two colours are tokens of the plan, too.
 * ===================================================================================================================== */
.dp-live { --tp-pflanze: #6f9b64; --tp-pflanze-dunkel: #4d7a45; --tp-symbol: #3c4f73; --tp-symbol-zeichen: #fff; }
:root[data-aussehen="dunkel"] .dp-live { --tp-pflanze: #52805a; --tp-pflanze-dunkel: #3b6644; --tp-symbol: #5a6577; --tp-symbol-zeichen: #f4f8fc; }
.dp-live .dv-tp__dekorschicht { pointer-events: none; }

#screenTables.dp-tables--telefon { display: flex; flex-direction: column; gap: 8px; padding-bottom: var(--dp-safe-bottom); overflow-y: auto; }
#screenTables.dp-tables--telefon .dp-section-title,
#screenTables.dp-tables--telefon .dp-tables__open,
#screenTables.dp-tables--telefon #tablesCustomers,
#screenTables.dp-tables--telefon #tablesMine,
#screenTables.dp-tables--telefon #tablesAllSection,
#screenTables.dp-tables--telefon #tablesGrid,
#screenTables.dp-tables--telefon #tablesBack,
#screenTables.dp-tables--telefon .dp-tables__views { display: none; }
#screenTables.dp-tables--telefon .dp-tables__head { margin: 0; font-size: 1rem; }
/* With a table open its three steps stand in one row - the cards and the thumb bar keep the room. */
#screenTables.dp-tables--telefon .dp-tables__actions { margin-bottom: 0; flex-wrap: nowrap; gap: 6px; }
#screenTables.dp-tables--telefon .dp-tables__actions .dp-btn { min-height: 48px; flex: 1 1 0; min-width: 0; padding: 0 6px; font-size: .8125rem; line-height: 1.15; text-align: center; }
#screenTables.dp-tables--telefon #tablesPhone { order: 20; }
.dp-tables__views { flex-wrap: wrap; gap: 8px; }
.dp-tables__views .dp-btn[hidden] { display: none; }

.dp-tel { flex: 1 0 auto; gap: 8px; }
.dp-tel__kopf { display: flex; align-items: center; gap: 10px; }
.dp-tel__titel { margin: 0; font-size: 1.25rem; font-weight: 800; }
.dp-tel .dp-live__stand { margin-left: auto; }

/* The area chips: one line, scrolls sideways when they are many; each is a pill of 48 px. */
.dp-tel__chips { display: flex; flex-wrap: nowrap; gap: 8px; padding: 0; border: 0; background: transparent; overflow-x: auto; scrollbar-width: none; flex: 0 0 auto; touch-action: pan-x; }
.dp-tel__chips::-webkit-scrollbar { display: none; }
.dp-tel__chips .dp-live__reiter { flex: 0 0 auto; min-height: 48px; padding: 0 18px; border: 1.5px solid var(--dp-border); border-radius: 999px; background: var(--dp-surface-2); font-size: .9375rem; font-weight: 700; }
.dp-tel__chips .dp-live__reiter[aria-selected="true"] { background: var(--dp-surface-3); border-color: var(--dp-focus); box-shadow: inset 0 0 0 1.5px var(--dp-focus); }

/* The middle: the cards and the chip "frei" scroll up and down; a swipe sideways changes the area (touch-action leaves the sideways move to us). */
.dp-tel__mitte { flex: 1 1 0; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; display: flex; flex-direction: column; gap: 8px; padding: 2px 0; }
.dp-tel__karten { display: flex; flex-direction: column; gap: 8px; }
.dp-tel__karte {
    display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 10px 14px; text-align: left;
    border: 2px solid var(--tisch-c); border-radius: 16px; background: var(--tisch-bg); color: var(--tisch-ink); font: inherit; cursor: pointer;
}
.dp-tel__karte[data-zustand="gang"] { border-style: dashed; }
.dp-tel__karte:focus-visible { outline: 3px solid var(--dp-focus); outline-offset: 2px; }
.dp-tel__karte--sprung { animation: dp-tel-sprung 1.4s ease-out 1; }
@keyframes dp-tel-sprung { 0%, 60% { box-shadow: 0 0 0 4px var(--dp-focus); } 100% { box-shadow: 0 0 0 0 transparent; } }
.dp-tel__nr { flex: 0 0 auto; min-width: 2.4ch; font-size: 1.75rem; font-weight: 800; line-height: 1; text-align: center; }
.dp-tel__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dp-tel__wort { display: inline-flex; align-items: center; gap: 6px; font-size: 1rem; font-weight: 700; }
.dp-tel__wort .dp-live__sym { flex: 0 0 auto; padding: 3px; border-radius: 50%; background: var(--tisch-c); color: var(--tisch-badge-ink); box-sizing: content-box; }
.dp-tel__zeile2 { font-size: .8125rem; font-weight: 600; opacity: .9; }
.dp-tel__zeit { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--tisch-c); background: var(--tisch-bg); font-size: .9375rem; font-weight: 800; white-space: nowrap; }
.dp-tel__zeit[data-zeit="gelb"] { background: var(--tisch-zeit-gelb-bg); color: var(--tisch-zeit-gelb-ink); border: 2.5px solid var(--tisch-zeit-gelb-rand); }
.dp-tel__zeit[data-zeit="rot"] { background: var(--tisch-zeit-rot-bg); color: var(--tisch-zeit-rot-ink); border-color: var(--tisch-zeit-rot-bg); }
.dp-tel__leer { margin: 0; padding: 18px 8px; text-align: center; color: var(--dp-text-muted); font-weight: 600; }
.dp-tel__leer[hidden], .dp-tel__frei[hidden] { display: none; }

.dp-tel__frei { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 2px 2px; }
.dp-tel__freititel { font-size: .9375rem; font-weight: 800; color: var(--dp-text); }
.dp-tel__freichip { min-width: 52px; min-height: 52px; padding: 0 12px; border: 2px solid var(--tisch-c); border-radius: 14px; background: var(--tisch-bg); color: var(--tisch-ink); font: inherit; font-size: 1.125rem; font-weight: 800; cursor: pointer; }
.dp-tel__freichip:focus-visible { outline: 3px solid var(--dp-focus); outline-offset: 2px; }

/* The mini plan: closed (only its button), half of the screen's height, or the whole middle. */
.dp-tel__mini { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; }
.dp-tel__minikopf { display: flex; gap: 8px; }
.dp-tel__miniknopf { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--dp-border); border-radius: 14px; background: var(--dp-surface-2); color: var(--dp-text); font: inherit; font-weight: 700; cursor: pointer; }
.dp-tel__miniknopf::before { content: "▾"; margin-right: 8px; }
.dp-tel__mini[data-mini="zu"] .dp-tel__miniknopf::before { content: "▸"; }
.dp-tel__minititel { flex: 1 1 auto; text-align: left; }
.dp-tel__minizahl { font-size: .875rem; font-weight: 600; color: var(--dp-text-muted); }
.dp-tel__groesser { flex: 0 0 auto; min-width: 52px; min-height: 52px; border: 1.5px solid var(--dp-border); border-radius: 14px; background: var(--dp-surface-2); color: var(--dp-text); font: inherit; font-size: 1.25rem; cursor: pointer; }
.dp-tel__groesser[hidden] { display: none; }
.dp-tel__flaeche { flex: 0 0 auto; min-height: 0; height: clamp(110px, 28dvh, 280px); }
.dp-tel__mini[data-mini="zu"] .dp-tel__flaeche { display: none; }
.dp-tel[data-mini="voll"] .dp-tel__mitte { display: none; }
.dp-tel[data-mini="voll"] .dp-tel__mini { flex: 1 1 0; min-height: 0; }
.dp-tel[data-mini="voll"] .dp-tel__flaeche { flex: 1 1 0; height: auto; }
.dp-tel [data-live="ablage"], .dp-tel [data-live="legende"] { display: none; }
.dp-tel .dp-live__blatt { position: fixed; inset: 0; z-index: 40; }

/* The thumb bar: the table number, "Tisch", "Plan", "Mehr" - each 56 px high, at the bottom edge inside the safe area. */
.dp-tel__daumen { position: sticky; bottom: 0; z-index: 5; flex: 0 0 auto; display: flex; gap: 8px; padding: 8px 0 calc(8px + var(--dp-safe-bottom)); border-top: 1px solid var(--dp-border); background: var(--dp-bg); }
.dp-tel__nummer { flex: 1 1 64px; min-width: 0; width: 64px; min-height: 56px; padding: 0 8px; text-align: center; font: inherit; font-size: 1.375rem; font-weight: 800; border: 2px solid var(--dp-border); border-radius: 14px; background: var(--dp-surface-2); color: var(--dp-text); }
.dp-tel__nummer:focus-visible { outline: 3px solid var(--dp-focus); outline-offset: 1px; }
.dp-tel__daumenknopf { flex: 1 1 64px; min-width: 0; min-height: 56px; padding: 0 8px; border: 1.5px solid var(--dp-border); border-radius: 14px; background: var(--dp-surface-2); color: var(--dp-text); font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.dp-tel__daumenknopf--haupt { flex-grow: 1.4; border-color: var(--dp-blue); background: var(--dp-blue); color: #fff; }
.dp-tel__daumenknopf:focus-visible { outline: 3px solid var(--dp-focus); outline-offset: 2px; }
.dp-tel .dp-live__banner { flex: 0 0 auto; padding: 6px 12px; font-size: .875rem; }
.dp-tel--offline .dp-tel__daumenknopf--haupt { opacity: .6; }

@media (max-width: 360px) {
    #screenTables.dp-tables--telefon .dp-tables__actions .dp-btn { font-size: .6875rem; padding: 0 3px; overflow-wrap: anywhere; hyphens: auto; }
}

/* The plan on a phone: the header wraps (the area tabs get a row of their own and scroll instead of breaking the page sideways). */
@media (max-width: 599px) {
    #screenTables.dp-tables--plan .dp-live__reiterbox { order: 5; flex: 1 1 100%; min-width: 0; flex-wrap: nowrap; overflow-x: auto; }
    #screenTables.dp-tables--plan .dp-live__stand { margin-left: 0; padding: 0 10px; }
    #screenTables.dp-tables--plan .dp-live__schalter, #screenTables.dp-tables--plan .dp-live__reiter { padding: 0 10px; flex: 0 0 auto; }
}
@media (max-height: 500px) and (orientation: landscape) {
    #screenTables.dp-tables--plan .dp-live__legende { display: none; }
    #screenTables.dp-tables--plan .dp-live__schalter, #screenTables.dp-tables--plan .dp-live__reiter { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .dp-tel__karte--sprung { animation: none; box-shadow: 0 0 0 4px var(--dp-focus); } }
/* A phone sideways: the head line and its actions share one row, so the plan keeps the height. */
@media (max-height: 500px) and (orientation: landscape) {
    #screenTables.dp-tables--plan { flex-flow: row wrap; align-items: center; gap: 6px 10px; }
    #screenTables.dp-tables--plan > * { flex: 0 0 auto; }
    #screenTables.dp-tables--plan #tablesPlan { flex: 1 1 100%; }
    #screenTables.dp-tables--plan .dp-tables__actions { flex-wrap: nowrap; }
    #screenTables.dp-tables--plan .dp-tables__actions .dp-btn { min-height: 44px; padding: 0 12px; font-size: .9375rem; }
    #screenTables.dp-tables--plan #tablesNotice, #screenTables.dp-tables--plan #tablesMode, #screenTables.dp-tables--plan #tablesMergeList, #screenTables.dp-tables--plan #tablesOffers { flex: 1 1 100%; }
}

/* GL.6 (a17604): function buttons a layout set hides or recolours. Hiding is display only; the server checks every right. The
   mandatory buttons (Bar, Karte, Sperren, Meine Verkäufe) have no rule here. The colours repeat geraet-layout.js (a test holds them). */
html[data-kasse-aus~="weitere-zahlarten"] #finishBtn { display: none !important; }
html[data-kasse-aus~="rechnung-aufteilen"] #aufteilenBtn { display: none !important; }
html[data-kasse-aus~="menge"] #mengeBtn { display: none !important; }
html[data-kasse-aus~="artikel-suche"] #sucheBtn { display: none !important; }
html[data-kasse-aus~="kunde-suchen"] #receiptQrMail { display: none !important; }
html[data-kasse-aus~="tische"] #tablesBtn { display: none !important; }
html[data-kasse-aus~="ausverkauft"] #soldOutBtn { display: none !important; }
html[data-kasse-aus~="sonderfunktionen"] #specialKeysBtn { display: none !important; }
html[data-kasse-aus~="kartenabgleich"] #cardReconBtn { display: none !important; }
html[data-kasse-aus~="mein-tag"] #meinTagBtn { display: none !important; }
html[data-kasse-aus~="pin-aendern"] #pwBtn { display: none !important; }
[data-knopf-farbe] { background: var(--knopf-bg) !important; border-color: var(--knopf-bg) !important; color: var(--knopf-fg) !important; }
[data-knopf-farbe] svg { stroke: currentColor; }
[data-knopf-farbe="gruen"] { --knopf-bg: #1b7a3d; --knopf-fg: #ffffff; }
[data-knopf-farbe="gelb"] { --knopf-bg: #f5c518; --knopf-fg: #1a1a1a; }
[data-knopf-farbe="blau"] { --knopf-bg: #1d5fbf; --knopf-fg: #ffffff; }
[data-knopf-farbe="rot"] { --knopf-bg: #b3261e; --knopf-fg: #ffffff; }
[data-knopf-farbe="grau"] { --knopf-bg: #5f6368; --knopf-fg: #ffffff; }
:root[data-aussehen="dunkel"] [data-knopf-farbe="gruen"] { --knopf-bg: #4cc77a; --knopf-fg: #0b1f12; }
:root[data-aussehen="dunkel"] [data-knopf-farbe="gelb"] { --knopf-bg: #ffd54a; --knopf-fg: #1a1400; }
:root[data-aussehen="dunkel"] [data-knopf-farbe="blau"] { --knopf-bg: #8ab8ff; --knopf-fg: #0a1a33; }
:root[data-aussehen="dunkel"] [data-knopf-farbe="rot"] { --knopf-bg: #ff8a80; --knopf-fg: #330a07; }
:root[data-aussehen="dunkel"] [data-knopf-farbe="grau"] { --knopf-bg: #b0b6bd; --knopf-fg: #14171a; }

/* =====================================================================================================================
 * GP.13 (1fa9aa): dragging an own table onto a free one (change tables) or onto another own one (merge) - js/tischplan-live-ansicht.js,
 * js/tische.js. The table that is carried stands dimmed where it was, the table under it shows what a drop does (ring and word, never only
 * the colour), a drop on a colleague's table springs back. The hint with "Rückgängig" stands over the plan for five seconds.
 * ===================================================================================================================== */
.dp-live__t[data-ziehbar="1"] { cursor: grab; }
.dp-live--zieht, .dp-live--zieht * { cursor: grabbing; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.dp-live__t--zieht { opacity: .4; }
.dp-live__t--zieht .dp-live__ring { stroke-dasharray: 5 6; }
.dp-live__t[data-ziel] .dp-live__ring { stroke-width: 9px; opacity: 1; }
.dp-live__t[data-ziel="wechseln"] .dp-live__ring { stroke: var(--dp-ok); }
.dp-live__t[data-ziel="zusammenlegen"] .dp-live__ring { stroke: var(--dp-focus); stroke-dasharray: 14 5; }
.dp-live__t[data-ziel="abweisen"] .dp-live__ring { stroke: var(--dp-danger); stroke-dasharray: 2 6; stroke-linecap: round; }
.dp-live__geist {
    position: fixed; z-index: 60; transform: translate(-50%, -50%); pointer-events: none; display: flex; align-items: center; gap: 8px;
    min-width: 56px; height: 56px; padding: 0 16px; border-radius: 16px; background: var(--dp-blue); color: #fff; font-size: 1.375rem; font-weight: 800;
    box-shadow: 0 10px 26px rgba(13, 35, 71, .4); opacity: .96;
}
.dp-live__geist[data-art="wechseln"]::after { content: "→ wechseln"; font-size: .875rem; font-weight: 700; }
.dp-live__geist[data-art="zusammenlegen"]::after { content: "→ zusammenlegen"; font-size: .875rem; font-weight: 700; }
.dp-live__geist[data-art="abweisen"] { background: var(--dp-danger); }
.dp-live__geist[data-art="abweisen"]::after { content: "belegt"; font-size: .875rem; font-weight: 700; }
.dp-live__geist--zurueck { opacity: 0; transition: left .2s ease-out, top .2s ease-out, opacity .2s ease-out; }
.dp-live__hinweis {
    position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 190px); z-index: 6; display: flex; align-items: center; gap: 10px;
    padding: 8px 8px 8px 14px; border: 1px solid var(--dp-border); border-radius: 16px; background: var(--dp-surface); color: var(--dp-text);
    box-shadow: 0 6px 18px rgba(13, 35, 71, .25); font-weight: 600;
}
.dp-live__hinweis[hidden] { display: none; }
.dp-live__hinweistext { flex: 1 1 auto; min-width: 0; }
.dp-live__hinweis .dp-btn { min-height: 44px; flex: 0 0 auto; width: auto; }
.dp-tel .dp-live__hinweis { position: fixed; left: 12px; right: 12px; bottom: calc(84px + var(--dp-safe-bottom)); max-width: none; z-index: 41; }
.dp-live__blattknoepfe--liste { max-height: 46vh; overflow-y: auto; overscroll-behavior: contain; }
.dp-live__blattknoepfe--liste .dp-btn { flex: 1 1 96px; }
.dp-tel__zeile { display: flex; align-items: stretch; gap: 8px; }
.dp-tel__zeile .dp-tel__karte { flex: 1 1 auto; width: auto; min-width: 0; }
.dp-tel__menue { flex: 0 0 56px; min-height: 72px; border: 1.5px solid var(--dp-border); border-radius: 16px; background: var(--dp-surface-2); color: var(--dp-text); font: inherit; font-size: 1.5rem; font-weight: 800; cursor: pointer; }
.dp-tel__menue:focus-visible { outline: 3px solid var(--dp-focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .dp-live__geist--zurueck { transition: none; } }

/* =====================================================================================================================
 * GH.2 (84fd49): the waiter's mode at the phone (js/kellner-modus-ansicht.js). A waiter's device at a narrow window: the thumb bar with
 * "Tische", "Bestellen", "Kassieren" at the bottom, the head with the open table at the top, the two placeholders until GH.3 and GH.4 are built.
 * Every target is 56 px and more, nothing needs a hover; the bar keeps clear of the home indicator (safe area). <html data-kellner-modus="an">
 * is set only while the bar stands.
 * ===================================================================================================================== */
html { --kl-leiste: calc(60px + var(--dp-safe-bottom)); }
.dp-kl-leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; padding-bottom: var(--dp-safe-bottom); border-top: 1px solid var(--dp-border); background: var(--dp-bg); box-shadow: 0 -6px 18px rgb(14 26 43 / .08); }
.dp-kl-leiste[hidden] { display: none; }
.dp-kl-leiste__knopf { flex: 1 1 0; min-width: 0; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 6px; border: 0; background: transparent; color: var(--dp-text-muted); font: inherit; font-size: .8125rem; font-weight: 700; cursor: pointer; }
.dp-kl-leiste__knopf svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dp-kl-leiste__knopf[aria-current="page"] { color: var(--dp-eyebrow); box-shadow: inset 0 3px 0 var(--dp-eyebrow); }
.dp-kl-leiste__knopf:focus-visible { outline: 3px solid var(--dp-focus); outline-offset: -3px; }

.dp-kl-kopf { position: sticky; top: 0; z-index: 6; flex: 0 0 auto; margin: 0 0 8px; padding: 10px 12px; border-bottom: 1px solid var(--dp-border); background: var(--dp-bg); color: var(--dp-text); font-size: 1.0625rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.dp-kl-kopf[hidden], .dp-kl-bereich[hidden] { display: none; }
.dp-kl-bereich { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 24px 12px; }
.dp-kl-bereich__titel { margin: 0; font-size: 1.5rem; }
.dp-kl-bereich__text { margin: 0; font-size: 1.0625rem; color: var(--dp-text-muted); }
.dp-kl-bereich .dp-btn { min-height: 56px; }

/* In Bestellen and Kassieren the tables screen shows only the head and the placeholder; tische.js keeps its state behind it. */
#screenTables[data-kl-bereich="bestellen"] > :not(#kellnerKopf):not(#kellnerBereich),
#screenTables[data-kl-bereich="kassieren"] > :not(#kellnerKopf):not(#kellnerBereich) { display: none !important; }

/* The head of the waiter's mode names the open table already: the tables screen's own head line (with the V number) would say it twice. */
html[data-kellner-modus="an"] #screenTables .dp-tables__head { display: none; }

/* The bar stands over the foot of the screen: the content keeps clear of it, the thumb bar of GP.12 sits right above it, the offer bar too. */
html[data-kellner-modus="an"] #screenTables,
html[data-kellner-modus="an"] #screenTables.dp-tables--telefon { padding-bottom: calc(var(--kl-leiste) + 8px); }
/* One bar at the foot: the four buttons of the tables (number, "Öffnen", "Plan", "Mehr") stand as a row of 44 px under the head, in the area "Tische" only
   (they belong to the section of the cards). The list scrolls inside itself, the row "frei:" under it stays in view, the mini plan starts closed (js). */
html[data-kellner-modus="an"] #tablesPhone:not([hidden]) { display: flex; flex-direction: column; flex: 1 1 0; min-height: 320px; }
html[data-kellner-modus="an"] .dp-tel__daumen { order: -1; position: static; gap: 6px; padding: 0; border-top: 0; background: transparent; }
html[data-kellner-modus="an"] .dp-tel__nummer,
html[data-kellner-modus="an"] .dp-tel__daumenknopf { min-height: 44px; height: 44px; padding: 0 6px; border-radius: 12px; font-size: .9375rem; }
html[data-kellner-modus="an"] .dp-tel__nummer { font-size: 1.0625rem; }
html[data-kellner-modus="an"] .dp-tel__mitte { overflow: hidden; min-height: 140px; }
html[data-kellner-modus="an"] .dp-tel__karten { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
html[data-kellner-modus="an"] .dp-tel__frei { flex: 0 0 auto; }
/* A small phone (the same height GP.12 closes the mini plan at): the title row "Meine Tische" / "Live" gives its place to the list - the head names the area, the offline banner stays. */
@media (max-height: 679px) {
    html[data-kellner-modus="an"] .dp-tel > .dp-tel__kopf { display: none; }
}
html[data-kellner-modus="an"] .dp-tables__offerbar { bottom: calc(var(--kl-leiste) + 12px); }
@media (min-width: 600px) {
    /* A phone sideways: the rail stands on the left and keeps its foot (menu, colours, lock) free. */
    .dp-kl-leiste { left: var(--th-rail, 64px); }
}
@media (max-height: 520px) {
    html { --kl-leiste: calc(48px + var(--dp-safe-bottom)); }
    .dp-kl-leiste__knopf { min-height: 48px; flex-direction: row; gap: 8px; font-size: .9375rem; }
}
/* A phone sideways shows the plan and its own head line ("Restaurant: Tisch 5 · V000003"): the waiter's head would only say it twice and take the plan's height. */
@media (max-height: 500px) and (orientation: landscape) {
    #screenTables.dp-tables--plan:not([data-kl-bereich]) .dp-kl-kopf { display: none; }
    html[data-kellner-modus="an"] #screenTables.dp-tables--plan:not([data-kl-bereich]) .dp-tables__head { display: block; }
}

/* =====================================================================================================================
   CI.1 stage 2 (81ab52): the brand shows, like on doyaops.com - the light look only (the dark look keeps its rail and its tiles).
   A Prussian Blue rail with white symbols, Fresh Sky as the mark of the place you are at, the logo large on a white plate; the
   total large on Pale Sky, "Karte" True Cobalt with a shadow, "Bar" green and on the left; the sign-in centred like the hero of the
   homepage; photo tiles with a calm Prussian gradient (the white text keeps >= 4.5:1: the worst pixel behind it measures 12:1,
   tools/klicktest/doya-ci-klick.mjs). Colour and type only - no behaviour. Without a photo an article keeps the stage-1 tile.
   "kompakt" (M200, per device in the administration): small tiles without a photo, for a till with many articles.
   ===================================================================================================================== */

/* --- the rail ------------------------------------------------------------------------------------------------------- */
:root[data-aussehen="hell"] body.dp-terminal .dp-header { background: #0d2347; border-right: 0; padding-top: 20px; color: #fff; }
:root[data-aussehen="hell"] body.dp-terminal .dp-header__brand { background: #fff; border-radius: 16px; padding: 9px; margin: 0 0 22px; box-shadow: 0 2px 10px rgb(0 0 0 / .25); }
:root[data-aussehen="hell"] body.dp-terminal .dp-header__marke { width: 42px; height: 42px; }
:root[data-aussehen="hell"] body.dp-terminal .dp-rail__item { color: #fff; position: relative; }
:root[data-aussehen="hell"] body.dp-terminal .dp-rail__item:hover { background: rgb(255 255 255 / .12); }
:root[data-aussehen="hell"] body.dp-terminal .dp-rail__item:active { background: rgb(255 255 255 / .2); }
:root[data-aussehen="hell"] body:has(#screenCatalog:not([hidden])) #tillBtn,
:root[data-aussehen="hell"] body:has(#screenTables:not([hidden])) #tablesBtn,
:root[data-aussehen="hell"] body:has(#screenMine:not([hidden])) #mineBtn,
:root[data-aussehen="hell"] body.dp-terminal .dp-rail__item[aria-expanded="true"] { background: rgb(17 166 246 / .24); color: #fff; }
:root[data-aussehen="hell"] body:has(#screenCatalog:not([hidden])) #tillBtn::before,
:root[data-aussehen="hell"] body:has(#screenTables:not([hidden])) #tablesBtn::before,
:root[data-aussehen="hell"] body:has(#screenMine:not([hidden])) #mineBtn::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: #11a6f6;
}
:root[data-aussehen="hell"] body.dp-terminal .dp-header__avatar { background: #001d86; box-shadow: 0 0 0 2px #fff; }
/* the status dot sits on the rail now: light enough to be seen on Prussian Blue */
:root[data-aussehen="hell"] body.dp-terminal .dp-header .dp-statuszeile__platz--ok { background: #7fe0ae; }
:root[data-aussehen="hell"] body.dp-terminal .dp-header .dp-statuszeile__platz--info { background: #c8e5fc; }

/* --- the bon: the total and the payment as the eye-catcher ------------------------------------------------------------ */
:root[data-aussehen="hell"] body.dp-terminal .dp-footer .dp-cart__total { background: #eaf4fd; border-radius: 12px; padding: 12px 16px; margin: 0 0 12px; }
:root[data-aussehen="hell"] body.dp-terminal .dp-footer .dp-cart__total span:last-child { font-size: 2.4rem; font-weight: 700; letter-spacing: -.04em; color: #0d2347; }
:root[data-aussehen="hell"] body.dp-terminal .dp-zahlen > button { min-height: 76px; font-size: 1.1rem; font-weight: 700; }
:root[data-aussehen="hell"] body.dp-terminal .dp-zahlen > .dp-zahlen__karte { background: var(--dp-card); box-shadow: 0 8px 18px rgb(0 29 134 / .3); }
:root[data-aussehen="hell"] body.dp-terminal .dp-zahlen > .dp-zahlen__karte:disabled { box-shadow: none; }
:root[data-aussehen="hell"] body.dp-terminal .dp-zahlen > .dp-zahlen__bar { border: 2px solid var(--dp-cash); color: var(--dp-cash-strong); }
:root[data-aussehen="hell"] .dp-pay__btn--card { background: var(--dp-card); }

/* --- the sign-in: centred, with the brand, big tiles for the people ---------------------------------------------------------- */
:root[data-aussehen="hell"] #screenKioskPick { text-align: center; padding: 9vh 24px 0; background: #fff; }
:root[data-aussehen="hell"] #screenKioskPick::before { content: ""; display: block; height: 54px; width: 160px; margin: 0 auto 36px; background: url("/img/doya-logo-light.svg") center / contain no-repeat; }
:root[data-aussehen="hell"] #screenKioskPick .dp-section-title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.08; font-weight: 600; letter-spacing: -.05em; text-transform: none; color: #0d2347; margin: 0 0 10px; }
:root[data-aussehen="hell"] #screenKioskPick .dp-section-title::before { content: "Guten Tag."; display: block; color: #001d86; }
:root[data-aussehen="hell"] #screenKioskPick::after { content: "Tippe auf deinen Namen."; display: block; color: #3d5470; margin-top: 28px; font-size: 1.05rem; }
:root[data-aussehen="hell"] #kioskTiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; max-width: 960px; margin: 36px auto 0; }
:root[data-aussehen="hell"] #kioskTiles .dp-kiosk-tile { min-width: 220px; min-height: 140px; border-radius: 16px; border: 1px solid #c9d9ea; background: #fff; box-shadow: 0 4px 16px rgb(13 35 71 / .08); }
:root[data-aussehen="hell"] #kioskTiles .dp-kiosk-tile__name { font-size: 1.6rem; font-weight: 700; color: #0d2347; letter-spacing: -.02em; }
:root[data-aussehen="hell"] #kioskTiles .dp-kiosk-tile:hover { border-color: #001d86; box-shadow: 0 8px 22px rgb(0 29 134 / .16); }
:root[data-aussehen="hell"] #kioskTiles .dp-kiosk-tile::before {
    content: "";
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-bottom: 4px;
    background: #c8e5fc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001d86' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='9' r='3.4'/%3E%3Cpath d='M5.5 19c.8-3.2 3.4-4.8 6.5-4.8s5.7 1.6 6.5 4.8'/%3E%3C/svg%3E") center / 26px no-repeat;
}
@media (max-width: 700px) {
    :root[data-aussehen="hell"] #kioskTiles .dp-kiosk-tile { min-width: 150px; min-height: 112px; }
    :root[data-aussehen="hell"] #screenKioskPick { padding-top: 4vh; }
}

/* --- photo tiles: a calm Prussian gradient, the price stays readable ------------------------------------------------------------ */
:root[data-aussehen="hell"] .dp-tile--bild::after { background: linear-gradient(to top, rgb(13 35 71 / .94) 0%, rgb(13 35 71 / .9) 30%, rgb(13 35 71 / .5) 52%, rgb(13 35 71 / 0) 80%); }

/* --- "kompakt" (M200): small tiles, no photo - the stage-1 tile for every article --------------------------------------------- */
html[data-kasse-groesse="kompakt"] .dp-tile__bild,
html[data-kasse-groesse="kompakt"] .dp-tile--bild::after { display: none; }
html[data-kasse-groesse="kompakt"] .dp-tile--bild,
:root[data-aussehen="hell"][data-kasse-groesse="kompakt"] .dp-tile--bild { background: var(--dp-bg); border-width: 1px; }
html[data-kasse-groesse="kompakt"] .dp-tile--bild[data-farbe]:not([data-farbe="0"]),
:root[data-aussehen="hell"][data-kasse-groesse="kompakt"] .dp-tile--bild[data-farbe]:not([data-farbe="0"]) { background: var(--dp-gruppe); }
html[data-kasse-groesse="kompakt"] .dp-tile--bild .dp-tile__name,
:root[data-aussehen="hell"][data-kasse-groesse="kompakt"] .dp-tile--bild .dp-tile__name { color: var(--dp-text); text-shadow: none; }
html[data-kasse-groesse="kompakt"] .dp-tile--bild .dp-tile__price,
:root[data-aussehen="hell"][data-kasse-groesse="kompakt"] .dp-tile--bild .dp-tile__price { color: var(--dp-text-muted); text-shadow: none; }
html[data-kasse-groesse="kompakt"] .dp-tile--artikel,
:root[data-aussehen="hell"][data-kasse-groesse="kompakt"] .dp-tile--artikel { min-height: 64px; padding: 8px 10px; justify-content: center; }
html[data-kasse-groesse="kompakt"] .dp-bilder .dp-tile--artikel,
:root[data-aussehen="hell"][data-kasse-groesse="kompakt"] .dp-bilder .dp-tile--artikel { aspect-ratio: auto; } /* the photo grid draws squares (4:3 in the light look): compact tiles are as high as their text needs */
html[data-kasse-groesse="kompakt"] .dp-bilder .dp-tile--artikel:not(.dp-tile--bild)::before { display: none; } /* no big initial where the photo would be */
html[data-kasse-groesse="kompakt"] .dp-tile--artikel .dp-tile__name { font-size: .88rem; }
html[data-kasse-groesse="kompakt"] .dp-tile--artikel .dp-tile__price { font-size: .82rem; }

/* --- stage 2, small windows (81ab52): the Prussian rail must not outgrow the bar it turns into -------------------------------------
   The rules above are made for the 80 px rail (white plate 60 px, 20 px air on top, 22 px below). Below 600 px the rail is a bar over the till
   and in a window lower than 520 px it gives up its air (stage 1 does exactly that, further up): without these lines the stage-2 plate made the bar
   111 px high, which pushed the PIN pad out of a 568 x 320 phone (the lowest keys below the window, nobody could type the PIN) and the way
   back of the pay screen to y = 123 on a 390 px phone. Same colours, smaller plate - nothing else changes. */
@media (max-width: 599px) {
    :root[data-aussehen="hell"] body.dp-terminal .dp-header { padding: calc(8px + var(--dp-safe-top)) 6px 8px; }
    :root[data-aussehen="hell"] body.dp-terminal .dp-header__brand { margin: 0 4px 0 0; padding: 4px; border-radius: 10px; box-shadow: none; }
    :root[data-aussehen="hell"] body.dp-terminal .dp-header__marke { width: 28px; height: 28px; }
}
@media (max-height: 520px) and (min-width: 600px) {
    :root[data-aussehen="hell"] body.dp-terminal .dp-header { padding-block: 6px; }
    :root[data-aussehen="hell"] body.dp-terminal .dp-header__brand { margin-bottom: 2px; padding: 5px; border-radius: 10px; box-shadow: none; }
    :root[data-aussehen="hell"] body.dp-terminal .dp-header__marke { width: 26px; height: 26px; }
}
/* the bon in a low phone window (568 x 320 sideways): the large total and the 76 px pay buttons of stage 2 pushed Bar, Karte and "..." out of the
   window (y 273 to 349 of 320); stage 1's sizes (52 px buttons, 1.4rem total) return there, a tall phone keeps the big ones. */
@media (max-width: 599px) and (max-height: 520px) {
    :root[data-aussehen="hell"] body.dp-terminal .dp-footer .dp-cart__total { padding: 4px 12px; margin: 0 0 6px; }
    :root[data-aussehen="hell"] body.dp-terminal .dp-footer .dp-cart__total span:last-child { font-size: 1.4rem; }
    :root[data-aussehen="hell"] body.dp-terminal .dp-zahlen > button { min-height: 52px; }
}
/* the centred sign-in in a low window (a phone sideways): the greeting steps back so the people stay in reach */
@media (max-height: 520px) {
    :root[data-aussehen="hell"] #screenKioskPick { padding-top: 8px; }
    :root[data-aussehen="hell"] #screenKioskPick::before { height: 30px; margin-bottom: 8px; }
    :root[data-aussehen="hell"] #screenKioskPick .dp-section-title { font-size: 1.5rem; margin-bottom: 4px; }
    :root[data-aussehen="hell"] #screenKioskPick::after { display: none; }
    :root[data-aussehen="hell"] #kioskTiles { gap: 10px; margin-top: 12px; }
    :root[data-aussehen="hell"] #kioskTiles .dp-kiosk-tile { min-height: 88px; }
}

/* GC.1 (7a9f58): selling a value voucher - quick values to tap, Bar and Karte side by side, the number large to read out. */
.dp-gutschein__betraege { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--dp-gap); margin: 4px 0 12px; }
.dp-gutschein__betrag { min-height: var(--dp-tap-min); border: 1px solid var(--dp-border); border-radius: var(--dp-radius-sm); background: var(--dp-surface); color: var(--dp-text); font: inherit; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.dp-gutschein__betrag[aria-pressed="true"] { background: var(--dp-card); border-color: var(--dp-card); color: #fff; }
.dp-gutschein__zahlen { display: grid; grid-template-columns: 1fr 1fr; gap: var(--dp-gap); }
.dp-gutschein__zahlen .dp-btn { min-height: var(--dp-tap-min); margin: 0; }
#gsBar { background: var(--dp-cash); border-color: var(--dp-cash); }
#gsKarte { background: var(--dp-card); border-color: var(--dp-card); }
.dp-gutschein__ergebnis { text-align: center; }
.dp-gutschein__titel { margin: 8px 0 4px; font-size: 1.2rem; font-weight: 700; color: var(--dp-ok); }
.dp-gutschein__wert { margin: 4px 0 12px; font-size: 2.4rem; font-weight: 800; color: var(--dp-text); }
.dp-gutschein__nummer { margin: 0 0 12px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 2rem; font-weight: 700; letter-spacing: .08em; color: var(--dp-text); overflow-wrap: anywhere; }
@media (max-width: 480px) {
    .dp-gutschein__betraege { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dp-gutschein__nummer { font-size: 1.6rem; }
}
/* TM.4 (1932a2): "Heute erwartet" above the tiles - one row of appointments, one tap each (at least 48 px). */
.dp-heute {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    padding: 8px var(--th-rand, 16px);
    border-bottom: 1px solid var(--dp-line);
    background: var(--dp-surface);
}
.dp-heute[hidden] { display: none; }
.dp-heute__titel { flex: 0 0 auto; font-weight: 600; color: var(--dp-text-muted); }
.dp-heute__liste { display: flex; flex: 1 1 auto; gap: 8px; min-width: 0; overflow-x: auto; }
.dp-heute__termin {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius-sm);
    background: var(--dp-app, var(--dp-bg));
    color: var(--dp-text);
    font: inherit;
    white-space: nowrap;
    cursor: pointer;
}
.dp-heute__termin--fertig { border-color: var(--dp-ok); }
.dp-heute__termin:disabled { opacity: .6; cursor: progress; }
.dp-cart__termin { color: var(--dp-text-muted); font-size: .95em; }
@media (max-width: 600px) {
    /* On a phone the title goes above the row, so the appointments get the whole width; the row still scrolls sideways. */
    .dp-heute { flex-wrap: wrap; gap: 4px 8px; }
    .dp-heute__titel { flex-basis: 100%; font-size: .875rem; }
    .dp-heute__termin { max-width: 85vw; overflow: hidden; text-overflow: ellipsis; }
}
