/*
 * ADMIN KÖZÖS · a pult, a pincér, a konyhai kijelző és a tulajdonosi
 * felület közös darabjai.
 *
 * Ez a rész a `style.css`-ből jött ki. Az a fájl „közös"-nek hívta magát,
 * de a 316 osztályából 122 SOHA nem fordult elő vendégoldalon: asztaltérkép,
 * hőtérkép, PIN-panel, személyzeti csevegő, kapcsolók. A vendég telefonja
 * ezt mind letöltötte az étlap megnyitásakor.
 *
 * A BETÖLTÉS SORRENDJE SZÁMÍT: ez a lap KÖZVETLENÜL a `style.css` után jön,
 * és a felületi lap (`szemelyzet.css` / `tulaj.css` / `kijelzo.css`) ELŐTT.
 * Így a szabályok pontosan ott maradnak a kaszkádban, ahol eddig voltak —
 * a kiköltöztetés nem változtatott a megjelenésen.
 */

/*
 * A TULAJDONOSI ÉS SZEMÉLYZETI LAPOK ALAPHANGJA — vonal, felület, sarok,
 * árnyék, figyelmeztető színek.
 *
 * A `body`-n áll, nem a `:root`-on: a `qb-fixed-light` a body-n írja át a
 * színeket, és a `var()` annak az elemnek az értékéből számol, ahol a
 * tulajdonság áll. A `:root`-on a sötét téma színeiből keverne.
 */
body {
  --ui-vonal: color-mix(in srgb, var(--hairline) 58%, var(--surface));
  --ui-halvany: color-mix(in srgb, var(--paper) 52%, var(--surface));
  --ui-fo: var(--mint-solid);
  --ui-fo-sotet: var(--mint-solid-hover);
  --ui-fo-halvany: color-mix(in srgb, var(--mint-solid) 10%, var(--surface));
  --ui-figy: #9a5708;
  --ui-figy-halvany: #fbefd9;
  --ui-csillag: #b7791f;
  --ui-csillag-halvany: #fff2d6;
  --ui-veszely: #b42318;
  --ui-veszely-halvany: #fdecea;
  --ui-r: 14px;
  --ui-r-kicsi: 9px;
  --ui-arnyek: 0 1px 2px rgba(60, 40, 10, 0.04), 0 8px 24px rgba(60, 40, 10, 0.06);
  --ui-arnyek-lebego: 0 2px 6px rgba(40, 30, 10, 0.08), 0 20px 44px rgba(40, 30, 10, 0.16);
}

/*
 * CSAK A FELOLVASÓNAK. A telephelyváltó címkéje eddig a vendégoldal
 * szabályára támaszkodott, ami itt nem töltődik be — ezért látszott.
 */
.qb-srtext {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.qb-btn--szerkeszt {
  --btn-szin: var(--sky-solid);
}

.qb-btn--torol {
  --btn-szin: var(--plum);
}

.qb-btn--szerkeszt:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--sky) 38%, transparent);
  outline-offset: 3px;
}

.qb-btn--torol:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--plum) 38%, transparent);
  outline-offset: 3px;
}

.qb-switch.is-locked {
  opacity: 0.45;
  /*
   * `not-allowed`, nem `pointer`: az egérmutató azt mondja meg, hogy ez a
   * kapcsoló nem fog átbillenni. Hogy közben megnyomható és elmagyarázza
   * magát, az külön kedvesség — nem szabad kapcsolót ígérnie.
   */
  cursor: not-allowed;
}

.qb-switch.is-on {
  color: var(--mint-solid);
}

.qb-switch.is-on .qb-switch__track,
.qb-toggle__input:checked + .qb-toggle__track {
  background: var(--mint-solid);
  border-color: var(--mint-solid);
}

.qb-switch.is-on .qb-switch__knob,
.qb-toggle__input:checked + .qb-toggle__track .qb-toggle__knob {
  transform: translateX(22px);
}

.qb-course__quick.is-later { border-color: #b77b26; background: #fff6e6; color: #70470c; }

.qb-itemstate.is-held { background: #fff0d4; color: #855612; }

.qb-dot {
  width: 8px;
  height: 8px;
  background: var(--mint);
  border-radius: var(--radius-pill);
}

.qb-dot.is-off {
  background: var(--amber);
  animation: qb-pulse 1.6s ease-in-out infinite;
}

.qb-card.is-new {
  border-color: var(--amber);
}

.qb-card.is-new::before {
  background: var(--amber);
}

.qb-card.is-new .qb-card__head {
  background: var(--tint-amber);
}

.qb-card__foot .qb-actions {
  flex: 1 1 100%;
  gap: 8px;
}

.qb-card__foot .qb-actions .qb-btn {
  flex: 1 1 96px;
  min-width: 0;
  justify-content: center;
}

.qb-card__foot .qb-actions .qb-btn--pay {
  flex: 2 1 140px;
}

.qb-actions--spaced {
  margin-top: 12px;
}

.qb-allergen {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent);
  border-radius: var(--radius-pill);
  color: var(--brand-dark);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
}

.qb-issue {
  padding: 16px;
  background: var(--plum-soft);
  border: 1px solid var(--plum);
  border-radius: var(--radius);
}

.qb-page > .qb-form,
.qb-page > .qb-inlineform {
  margin-top: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--lift);
}

.qb-bevalt .qb-bevalt__cim {
  margin: 0;
}

.qb-ikongomb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  /*
   * A HÁTTERET A KÖZÖS SZABÁLY ADJA (fémes csillanás, fentebb). Egy lapos
   * `background: var(--surface)` itt később állt a fájlban, tehát MEGETTE
   * az átmenetet — a gomb pedig egyedül maradt laposnak a lapon.
   */
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.qb-ikongomb:hover {
  border-color: var(--ink);
}

.qb-ikongomb:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qb-ikongomb__jel {
  width: 19px;
  height: 19px;
}

.qb-ikongomb.is-be {
  border-color: var(--mint-solid);
  background: var(--tint-mint);
  color: var(--mint-solid);
}

.qb-terheles--szabad {
  border-color: var(--mint-solid);
  color: var(--mint-solid);
}

.qb-terheles--telik {
  border-color: var(--amber);
  color: var(--amber);
}

.qb-terheles--tele {
  border-color: var(--plum);
  color: var(--plum);
}

.qb-adminbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 10px 0;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ui-vonal);
}

/*
 * EGY SOR: hely, menü, kilépés. A `.qb-staffbar` `display: contents`, így a
 * logó, a név és a kilépés közvetlenül ennek a rácsnak a cellái, a menü
 * pedig közéjük áll. Az értesítősávok a teljes szélességet kapják alattuk.
 */
.qb-adminbar > .qb-wrap {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
}

.qb-adminbar > .qb-wrap > .qb-notice {
  grid-column: 1 / -1;
  margin: 10px 0 0;
}

.qb-wrap {
  max-width: var(--page-wide);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.qb-adminbar .qb-buttons {
  display: inline-flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}

.qb-adminbar .qb-buttons a {
  position: relative;
  flex: 1 1 auto;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  background: none;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  color: var(--ash);
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease;
}

/* A közös gombsor árnyékot ad a lenyomásra is — a menüfülön az csak zaj. */
.qb-adminbar .qb-buttons a:hover,
.qb-adminbar .qb-buttons a:active {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  box-shadow: none;
  color: var(--ink);
}

.qb-adminbar .qb-buttons a.is-primary {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  border: 0;
  color: var(--ink);
  font-weight: 650;
  box-shadow: none;
}

.qb-adminbar .qb-buttons a.is-primary .qb-navtag {
  color: var(--brand-dark);
  opacity: 0.85;
}

.qb-navsor {
  position: relative;
  display: flex;
  grid-row: 1;
  grid-column: 3;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.qb-navsor > .qb-buttons {
  flex: 1 1 auto;
  min-width: 0;
}

.qb-navtobb {
  position: relative;
  flex: 0 0 auto;
}

.qb-navtobb summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--ash);
  font-size: 0.875rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.qb-navtobb summary::-webkit-details-marker {
  display: none;
}

.qb-navtobb[open] summary,
.qb-navtobb summary:hover {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink);
}

.qb-navtobb__chevron {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.16s ease;
}

.qb-navtobb[open] .qb-navtobb__chevron {
  transform: translateY(2px) rotate(225deg);
}

.qb-navtobb__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: min(420px, calc(100vw - 24px));
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--ui-vonal);
  border-radius: var(--ui-r);
  box-shadow: var(--ui-arnyek-lebego);
}

.qb-navtobb__cim {
  margin: 8px 4px 4px;
  color: var(--ash);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qb-navtobb__cim:first-child {
  margin-top: 0;
}

.qb-navtobb__sor {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}

.qb-navtag {
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--champagne) 16%, transparent);
  color: var(--champagne);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
}

@media (min-width: 900px) {
  .qb-navsor > .qb-buttons {
    flex: 0 1 auto;
  }

  .qb-adminbar .qb-buttons a {
    flex: 0 0 auto;
  }

  /* A „Több" a sor VÉGÉN marad, nem tapad a fülekhez. */
  .qb-navtobb {
    margin-left: auto;
  }}

.qb-navtobb__panel .qb-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2px;
  padding: 0;
  background: none;
  border: 0;
}

.qb-navtobb__panel .qb-buttons a {
  justify-content: flex-start;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.qb-navtobb__panel .qb-buttons a:hover {
  background: var(--brand-soft);
}

.qb-navtobb__panel .qb-buttons a.is-primary {
  background: var(--ui-fo-halvany);
  color: var(--ui-fo);
}

.qb-navtobb__cim + .qb-navtobb__sor {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.qb-navtobb__panel > .qb-navtobb__sor:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.qb-staffbar {
  display: contents;
}

.qb-staffbar__logo,
.qb-staffbar__monogram {
  grid-row: 1;
  grid-column: 1;
}

.qb-staffbar__logo {
  width: auto;
  max-width: 120px;
  height: 34px;
  overflow: hidden;
  border-radius: var(--ui-r-kicsi);
  object-fit: contain;
}

.qb-staffbar__monogram {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ui-fo);
  color: #fff;
  font: 700 0.8125rem/1 var(--font-display);
  letter-spacing: 0.02em;
}

.qb-staffbar__who {
  display: grid;
  grid-row: 1;
  grid-column: 2;
  gap: 1px;
  min-width: 0;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.2;
}

.qb-staffbar__who strong,
.qb-staffbar__role {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qb-staffbar__role {
  color: var(--ash);
  font-family: var(--font-body);
  font-size: 0.75rem;
}

.qb-staffbar__out {
  grid-row: 1;
  grid-column: 4;
}

/*
 * TELEFONON KÉT SOR: fent a hely és a kilépés, alatta a teljes szélességű,
 * vízszintesen görgethető menü.
 */
@media (max-width: 900px) {
  .qb-adminbar > .qb-wrap {
    grid-template-columns: auto minmax(0, 1fr) auto;
    row-gap: 8px;
  }

  .qb-staffbar__out {
    grid-column: 3;
  }

  .qb-navsor {
    grid-row: 2;
    grid-column: 1 / -1;
  }
}

.qb-staffbar__outbtn {
  flex: 0 0 auto;
}

.qb-staffbar__venue {
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}

.qb-staffbar__venueform {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.qb-staffbar__venueform .qb-staffbar__venue {
  max-width: min(240px, 50vw);
  margin-left: 0;
  background: var(--paper);
}

.qb-staffbar__venuego {
  min-height: 30px;
  padding: 3px 9px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.qb-staffbar__out,
.qb-inline-form {
  display: inline-block;
  width: auto;
  margin: 0;
}


.qb-login .qb-field {
  margin-top: 24px;
}

.qb-login .qb-btn {
  width: 100%;
  margin-top: 16px;
}

.qb-help .qb-field__hint {
  margin-top: 10px;
}

.qb-pinbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(22, 25, 28, 0.55);
}

.qb-pinbox__panel {
  width: 100%;
  max-width: 380px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.qb-pinbox .qb-field,
.qb-pinbox .qb-actions {
  margin-top: 20px;
}

.qb-pinbox input {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  letter-spacing: 0.4em;
  text-align: center;
}

.qb-tablewrap .qb-table {
  margin-top: 0;
  min-width: 520px;
}

.qb-table {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.qb-table th {
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ash);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: left;
  white-space: nowrap;
}

.qb-table td {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}

.qb-table tbody tr:hover td {
  background: var(--tint-sky);
}

.qb-table tr.is-inactive td {
  color: var(--ash);
}

.qb-table th.qb-num {
  text-align: right;
}


.qb-inlineform .qb-field {
  flex: 1 1 160px;
  margin: 0;
}

.qb-table input[type="text"],
.qb-table input[type="number"] {
  width: 100%;
  min-width: 60px;
  padding: 6px 8px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
}

.qb-menusec__count.is-warn {
  color: var(--amber);
}

.qb-menulist,
.qb-tablesheet__items {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.qb-form .qb-field,
.qb-form .qb-check,
.qb-form .qb-actions,
.qb-form .qb-field__hint {
  margin-top: 20px;
}

.qb-form .qb-btn--primary {
  justify-content: center;
}

.qb-notice--bad {
  background: var(--plum-soft);
  border: 1px solid var(--plum);
  border-radius: var(--radius);
}

.qb-notice--bad p {
  margin: 4px 0;
}

.qb-table code,
.qb-tablecard__age {
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.qb-tablecard.is-zart {
  opacity: 0.55;
  border-style: dotted;
}

.qb-tablesheet__actions .qb-btn {
  text-decoration: none;
}

.qb-primary-actions .qb-btn {
  flex: 1 1 0;
  padding: 16px 20px;
  min-height: 64px;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.qb-stocknotice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 8px 10px 8px 12px;
  background: var(--ui-figy-halvany);
  border: 1px solid color-mix(in srgb, var(--amber) 24%, transparent);
  border-radius: var(--ui-r);
  color: var(--ink);
}

.qb-adminbar .qb-stocknotice,
.qb-adminbar .qb-lownotice {
  grid-column: 1 / -1;
  margin: 10px 0 0;
}

.qb-stocknotice__mark,
.qb-lownotice__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 800;
}

.qb-stocknotice__copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.qb-stocknotice__copy span {
  color: var(--ash);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.qb-stocknotice > a {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

/*
 * ══════════════════════════════════════════════════════════════════════════
 * FOGYÓBAN · a felajánlott levétel (lib/admin-nav.php)
 * ══════════════════════════════════════════════════════════════════════════
 *
 * MIÉRT NEM UGYANAZ, MINT AZ „ELFOGYOTT" SÁV. Az fölötte ül, és HÍRT közöl:
 * megtörtént, nincs teendő, egy „Rendben" elteszi. Ez DÖNTÉST kér, terméken-
 * ként, és a döntés itt is születik meg — ezért nem egysoros, hanem soros:
 * minden termék kap egy nevet, egy indoklást és egy gombot.
 *
 * A SZÍNE UGYANAZ A BOROSTYÁN. Nem azért, mert ugyanaz, hanem mert ugyanarról
 * szól — a stop-listáról. Két külön szín ugyanannak a dolognak a két
 * állapotára azt sugallná, hogy két különböző rendszerről van szó.
 * ══════════════════════════════════════════════════════════════════════════
 */
.qb-lownotice {
  margin: 0 0 16px;
  padding: 10px 12px;
  background: var(--ui-figy-halvany);
  border: 1px solid color-mix(in srgb, var(--amber) 24%, transparent);
  border-radius: var(--ui-r);
  color: var(--ink);
}

.qb-lownotice__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.qb-lownotice__head span:not(.qb-lownotice__mark) {
  color: var(--ash);
  font-size: 0.8125rem;
}

.qb-lownotice__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-weight: 800;
}

.qb-lownotice__list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.qb-lownotice__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.qb-lownotice__name {
  flex: 0 1 auto;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Az INDOKLÁS halkabb: azt magyarázza, honnan tudjuk — nem az a teendő. */
.qb-lownotice__why {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ash);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.qb-lownotice__row .qb-btn {
  flex: 0 0 auto;
}

.qb-lownotice__tobb {
  margin: 2px 0 0;
  color: var(--ash);
  font-size: 0.8125rem;
}

.qb-lownotice__error {
  margin: 8px 0 0;
  color: var(--plum);
  font-size: 0.8125rem;
}

.qb-secondary-actions .qb-btn {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.8rem;
  text-align: center;
  justify-content: center;
}

.qb-secondary-actions a.qb-btn {
  flex: 0 1 auto;
  min-width: 100px;
}

.qb-quicksheet__panel .qb-btn--ghost {
  background: var(--paper);
  border-color: var(--hairline-strong);
}

.qb-quicksheet__panel > .qb-sheet__body {
  overflow-y: auto;
}

.qb-quick__item.is-active {
  background: var(--go-surface);
  border-color: var(--go-border);
}

.qb-quick__item.is-added {
  background: var(--tint-mint);
  border-color: var(--mint);
  box-shadow: inset 3px 0 0 var(--mint-solid);
}

.qb-optbtn:not(.is-on) .qb-optbtn__delta {
  color: var(--mint-solid);
}

.qb-quicksheet__panel .qb-optbtn.is-on {
  background: var(--mint-solid);
  border-color: var(--mint-solid);
  color: var(--on-accent);
  font-weight: 700;
}

.qb-quicksheet__panel .qb-optbtn.is-on::before {
  content: "✓";
  flex: 0 0 auto;
  font-weight: 900;
}

.qb-ikon {
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qb-heat__bar.is-empty .qb-heat__seg {
  background: none;
}

.qb-heat__cell.is-empty .qb-heat__dot {
  background: var(--hairline);
}

.qb-heat__cell.is-empty .qb-heat__count {
  color: var(--ash);
}

.qb-heat__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qb-chart__bar.is-empty {
  fill: var(--hairline);
}

.qb-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 44px;
  object-fit: contain;
}

.qb-itemstate.is-pulton {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--sky);
  color: var(--on-accent);
}

.qb-paynotice__row.is-done {
  opacity: 0.58;
}

.qb-heat {
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--hairline));
  border-radius: var(--radius);
  box-shadow: var(--lift);
}

.qb-heat__alert {
  display: flex;
  flex: 1 1 100%;
  align-items: center;
  gap: 10px;
  order: 3;
  margin: 0;
  padding: 10px 12px;
  background: var(--plum-soft);
  border-left: 4px solid var(--plum);
  border-radius: var(--radius-sm);
  color: var(--plum);
  font-size: 0.85rem;
  font-weight: 800;
}

.qb-heat__alertmark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--plum);
  border-radius: var(--radius-pill);
  color: var(--on-accent);
  font-family: var(--font-mono);
}

.qb-heat__cells {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qb-heat__bar {
  display: flex;
  gap: 2px;
  height: 10px;
  padding: 2px;
  background: color-mix(in srgb, var(--hairline) 45%, var(--surface));
  border-radius: var(--radius-sm);
}

.qb-heat__seg {
  border-radius: var(--radius-xs);
  transition: flex-grow 0.25s ease;
}

.qb-heat__seg.is-friss    { background: var(--mint); }

.qb-heat__seg.is-meleg    { background: var(--amber); }

.qb-heat__seg.is-forro    { background: var(--plum); }

.qb-heat__seg.is-kritikus { background: var(--plum); }

.qb-heat__seg.is-g0  { flex: 0 0 0; }

.qb-heat__seg.is-g1  { flex: 1 0 0; }

.qb-heat__seg.is-g2  { flex: 2 0 0; }

.qb-heat__seg.is-g3  { flex: 3 0 0; }

.qb-heat__seg.is-g4  { flex: 4 0 0; }

.qb-heat__seg.is-g5  { flex: 5 0 0; }

.qb-heat__seg.is-g6  { flex: 6 0 0; }

.qb-heat__seg.is-g7  { flex: 7 0 0; }

.qb-heat__seg.is-g8  { flex: 8 0 0; }

.qb-heat__seg.is-g9  { flex: 9 0 0; }

.qb-heat__seg.is-g10 { flex: 10 0 0; }

.qb-heat__seg.is-g11 { flex: 11 0 0; }

.qb-heat__seg.is-g12 { flex: 12 0 0; }

.qb-heat__cell {
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.qb-heat__dot {
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hairline);
}

.qb-heat__cell.is-friss .qb-heat__dot    { background: var(--mint); }

.qb-heat__cell.is-meleg .qb-heat__dot    { background: var(--amber); }

.qb-heat__cell.is-forro .qb-heat__dot    { background: var(--plum); }

.qb-heat__cell.is-kritikus .qb-heat__dot { background: var(--plum); }

.qb-heat__count {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.qb-heat__label {
  color: var(--ash);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-transform: uppercase;
}

.qb-heat__stat {
  display: grid;
  gap: 2px;
  padding-left: 10px;
  border-left: 1px solid var(--hairline);
}

.qb-heat__stat .qb-heat__label {
  min-height: 2.1em;
}

.qb-heat__figure {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
}

.qb-heat__value {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  color: var(--ink);
}

/*
 * ══════════════════════════════════════════════════════════════════════════
 * NYOMTATÁS · a lapfejléc nem kell papírra
 * ══════════════════════════════════════════════════════════════════════════
 *
 * A QR-lap többi nyomtatási szabálya NEM ide tartozik: azok az
 * `assets/qr-booking.css`-ben élnek (`qb-qrcard*`, `qb-qrprintgrid`,
 * `qb-qrprintcard`, `body.qb-qrlap`), és az a lap az admin felületen a
 * `$pageStyles`-ból, tehát EZ UTÁN töltődik — bármit írnánk ide ugyanarról,
 * úgyis az nyerne.
 *
 * Rövid ideig itt állt egy másolatuk: a `style.css` szétválasztásakor
 * kiestek, én pedig a régi mentésből tettem vissza őket, nem tudva, hogy
 * időközben átköltöztek a saját lapjukra. A másolat egy már nem létező
 * osztályra is hivatkozott (`.qb-qrprint`, a mai jelölésben
 * `qb-qrprintgrid`/`qb-qrprintcard`), tehát nem is működött volna.
 *
 * Ami itt marad, az minden admin lapra vonatkozik, nem csak a QR-re: a cím,
 * a bevezető és a szemöldök-felirat papíron csak helyet foglal.
 * ══════════════════════════════════════════════════════════════════════════
 */

@media print {
  .qb-page h1,
  .qb-lead,
  .qb-eyebrow {
    display: none;
  }

}
