/* mySaloon – közös kinézet (a látványterv alapján: docs/02 + design/) */

:root {
  --bg: #F7F1EA;
  --ink: #2B211B;
  --ink-2: #4A3C33;
  --muted: #6A5A4E;
  --muted-2: #7A695C;
  --teal: #0B7A75;
  --teal-dark: #075955;
  --teal-soft: #D5F3EF;
  --warn: #A2410C;
  --warn-soft: #FFF3EB;
  --line: rgba(43, 33, 27, 0.1);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-line: rgba(255, 255, 255, 0.95);
  --shadow: 0 10px 30px rgba(74, 48, 30, 0.07);
  --radius: 22px;
  --font: Manrope, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; -webkit-tap-highlight-color: transparent; } /* nincs dupla koppintásos nagyítás, és koppintáskor nem villan szürkén (iPhone) */
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 15px/1.45 var(--font); }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { margin: 0; letter-spacing: -0.3px; }
h1 { font-size: 22px; font-weight: 800; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* háttér-foltok */
.page-bg { position: relative; min-height: 100vh; overflow: clip; }
.blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.45; pointer-events: none; }
.blob-1 { width: 520px; height: 520px; background: #FFCFA6; top: -200px; left: 160px; }
.blob-2 { width: 480px; height: 480px; background: #F6C2CB; bottom: -160px; right: 80px; position: fixed; }

/* ---- gombok ---- */
.btn { min-height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(43,33,27,0.12); background: rgba(255,255,255,0.85); color: var(--ink); font: 700 14px var(--font); display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.btn-primary { border: 0; background: var(--teal); color: #fff; font-weight: 800; }
.btn-primary:hover { color: #fff; }
.btn-block { width: 100%; min-height: 48px; border-radius: 14px; }
.btn-link { min-height: 36px; padding: 0 8px; display: inline-flex; align-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--teal); font: 800 13px var(--font); }
.icon-btn { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(43,33,27,0.12); background: rgba(255,255,255,0.9); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; position: relative; }

/* egységes hover / lenyomás / fókusz (docs/02 „Hover és lenyomás”) */
button, a, select { transition: filter .15s ease, background-color .15s ease, box-shadow .15s ease, transform .1s ease; }
.btn:not(:disabled):hover, .icon-btn:hover { filter: brightness(.94); box-shadow: 0 4px 14px rgba(74,48,30,0.12); }
.btn:not(:disabled):active, .icon-btn:active { transform: scale(.98); }
.btn-link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---- űrlap ---- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 12px; font-weight: 800; color: var(--ink-2); letter-spacing: 0.3px; text-transform: uppercase; }
.input { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(43,33,27,0.12); background: #fff; font: 600 15px var(--font); color: var(--ink); outline: none; }
.input:focus { border-color: rgb(var(--teal-rgb, 11 122 117) / 0.55); box-shadow: 0 0 0 3px rgb(var(--teal-rgb, 11 122 117) / 0.12); }
.input.upper { text-transform: uppercase; letter-spacing: 0.6px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--teal); }
.alert { padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.alert-error { background: var(--warn-soft); color: #8A3A0B; border: 1px solid rgba(162,65,12,0.2); }
.alert-ok { background: var(--teal-soft); color: var(--teal-dark); }
/* dátum- és időmező: iPhone-on is ugyanolyan magas, mint a többi mező; üresen halvány „éééé. hh. nn.” felirat (app.js: data-empty) */
input.input[type=date], input.input[type=time], input.input[type=datetime-local], input.input[type=month] { -webkit-appearance: none; appearance: none; min-height: 46px; line-height: 44px; display: block; text-align: left; }
input.input[type=date]::-webkit-date-and-time-value, input.input[type=time]::-webkit-date-and-time-value, input.input[type=datetime-local]::-webkit-date-and-time-value { text-align: left; min-height: 1.2em; }
input.input.sm[type=date] { min-height: 38px; line-height: 36px; }
.date-ph > input[data-empty]:not(:focus)::-webkit-datetime-edit { color: transparent; }
.date-ph { position: relative; display: block; min-width: 0; }
.date-ph > .ph { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #A89A8E; font-weight: 600; pointer-events: none; font-size: 15px; }
.date-ph > input:not([data-empty]) + .ph, .date-ph > input:focus + .ph { display: none; }
select.input { -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236A5A4E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; padding-right: 36px; }

/* ---- kártyák ---- */
.card { padding: 18px; border-radius: var(--radius); background: rgba(255,255,255,0.66); border: 1px solid var(--glass-line); box-shadow: var(--shadow); backdrop-filter: blur(20px); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.muted { color: var(--muted); }

/* ---- admin keret ---- */
.pagewrap { position: relative; display: flex; flex-wrap: wrap; gap: 16px; padding: 16px; }
.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
/* betöltéskor csak a tartalom úszik be (a felső sáv nem: áttetsző szülő alatt a sáv fölötti homály nem működne, és frissítéskor „ugrana”);
   a kitöltés csak az elején tart, a végén nem marad külön réteg (különben az alsó panel a háttere alá kerülne) */
.main > .content { animation: pgin .32s cubic-bezier(.2,.8,.2,1) backwards; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 46px; } /* gombokkal és nélkülük is ugyanolyan magas */
.page-head .sub { font-size: 14px; font-weight: 700; color: var(--muted); }
.page-head > :last-child:not(.title-row):not(:first-child) { margin-left: auto; } /* a fejléc gombjai sortöréskor is jobbra */

/* oldalsó menü: asztalon saját, rejtett sávú görgetés; oldalváltáskor a helyén marad (app.js) */
.side { flex: 1 1 232px; max-width: 260px; align-self: flex-start; border-radius: 24px; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
@media (min-width: 1101px) {
  .side { position: sticky; top: 16px; }
  .side > .nav { max-height: calc(100vh - 32px); }
  /* a menükártyán belül a menüpontok görögnek; ahol még van tartalom (fent / lent), ott a lista széle behalványul (mint telefonon a vízszintes soroknál) */
  .nav-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; display: flex; flex-direction: column; gap: 3px; margin: 0 -14px; padding: 0 14px; }
  .nav-scroll::-webkit-scrollbar { display: none; }
  .nav-scroll > * { flex-shrink: 0; } /* a menüpontok nem nyomódnak össze, a lista görög */
  .nav-scroll[data-v=t] { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40px); mask-image: linear-gradient(to bottom, transparent, #000 40px); }
  .nav-scroll[data-v=b] { -webkit-mask-image: linear-gradient(to top, transparent, #000 40px); mask-image: linear-gradient(to top, transparent, #000 40px); }
  .nav-scroll[data-v=tb] { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
}
.nav-scroll { display: contents; }
@media (min-width: 1101px) { .nav-scroll { display: flex; } }
.nav { width: 100%; min-width: 232px; padding: 14px; border-radius: 24px; background: rgba(255,255,255,0.5); border: 1px solid var(--glass-line); box-shadow: var(--shadow); backdrop-filter: blur(20px); display: flex; flex-direction: column; gap: 3px; }
.nav-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; padding: 6px 8px 8px; }
.logo-m { width: 30px; height: 30px; border-radius: 10px; background: var(--teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.nav-brand .grow { flex: 1; }
.nav-expiry[hidden] { display: none; }
.nav-expiry { margin: 0 4px 10px; padding: 8px 10px; border-radius: 12px; background: var(--warn-soft); border: 1px solid rgba(162,65,12,0.2); color: #8A3A0B; font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.mi { height: 40px; padding: 0 12px; border-radius: 12px; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; width: 100%; border: 0; background: transparent; text-align: left; }
.mi:hover { color: var(--ink); background: rgba(43,33,27,0.06); }
.mi[aria-current="page"] { background: var(--ink); color: #fff; }
.mi .badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #FFE3D3; color: var(--warn); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.mi.inside { background: rgba(43,33,27,0.05); }
.mi .chev { margin-left: auto; transition: transform .2s ease; }
.mi[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mi.off { color: #B3A394; cursor: not-allowed; }
.mi.off:hover { background: transparent; }
.sub-mi { min-height: 36px; padding: 7px 12px 7px 40px; line-height: 1.25; border-radius: 10px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.sub-mi:hover { color: var(--ink-2); background: rgba(43,33,27,0.06); }
.sub-mi[aria-current="page"] { background: rgb(var(--teal-rgb, 11 122 117) / 0.13); color: var(--teal-dark); }
.sub-mi .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.subs[hidden] { display: none; }
.nav-sep { height: 1px; background: var(--line); margin: 8px 4px; }

/* felső sáv: görgetéskor felül marad (asztalon ragadós, mobilon rögzített) */
.topwrap { position: sticky; top: 16px; z-index: 40; } /* ugyanott áll meg, ahol az oldalmenü teteje: görgetéskor sem csúszik feljebb */
.topbar { position: relative; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 20px; background: rgba(255,255,255,0.5); border: 1px solid var(--glass-line); box-shadow: 0 8px 24px rgba(74,48,30,0.06); backdrop-filter: blur(20px); width: 100%; }
.topbar .hello { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .tools { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.storage { height: 40px; padding: 0 12px; border-radius: 12px; background: rgba(255,255,255,0.7); border: 1px solid rgba(43,33,27,0.08); display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.storage .meter { display: block; width: 70px; height: 4px; border-radius: 99px; background: rgba(43,33,27,0.1); overflow: hidden; margin-top: 3px; }
.storage .meter span { display: block; height: 100%; background: var(--teal); }
.rev-btn { height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid rgb(var(--teal-rgb, 11 122 117) / 0.25); background: rgba(213,243,239,0.7); color: var(--teal-dark); font: 800 13px var(--font); display: inline-flex; align-items: center; gap: 6px; }
.tb-btn { height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(43,33,27,0.14); background: rgba(255,255,255,0.9); color: var(--ink); font: 800 14px var(--font); display: inline-flex; align-items: center; gap: 8px; }
.tb-btn.primary { border: 0; background: var(--teal); color: #fff; padding: 0 16px; }
.count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--warn); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.restricted-note { margin-left: auto; padding: 8px 12px; border-radius: 12px; background: var(--warn-soft); border: 1px solid rgba(162,65,12,0.25); color: #8A3A0B; font-size: 13px; font-weight: 800; }
.dropwrap { position: relative; }
.drop { position: absolute; right: 0; top: 48px; width: min(300px, 88vw); padding: 16px; border-radius: 18px; background: rgba(255,252,248,0.97); border: 1px solid rgba(43,33,27,0.08); box-shadow: 0 18px 44px rgba(74,48,30,0.18); display: flex; flex-direction: column; gap: 10px; z-index: 31; animation: upin .18s ease both; }
.drop[hidden] { display: none; }
.drop-grid { display: grid; grid-template-columns: 1fr auto auto; row-gap: 7px; column-gap: 12px; font-size: 13px; }
.drop-grid .n { color: var(--muted); }
.drop-grid b { text-align: right; }
.drop-sum { display: flex; justify-content: space-between; font-size: 15px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 10px; }
.dropback { position: fixed; inset: 0; z-index: 29; border: 0; background: transparent; cursor: default; }
.dropback[hidden] { display: none; }

/* felső sáv: a görgetett tartalom, ami a sáv fölé csúszik, elmosódik és nem kattintható. A rétegnek nincs saját színe
   (a háttér nem változik, nincs látható csík), és a széleken fokozatosan fut ki, így a szöveg sehol sem tűnik levágottnak. */
/* számítógépen külön, rögzített elem (a sáv saját rétegén belül a homály nem érné el a sáv alatti tartalmat); a helyét és méretét az app.js
   igazítja a sávhoz (bal széle és szélessége a sávé ±14 px, magassága a lap tetejétől a sáv alja + 14 px) */
.topshade { position: fixed; top: 0; left: 0; width: 0; height: 0; z-index: 39; pointer-events: auto;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  /* a homály formája a sávot követi: fölötte és a sarkai mellett teljes, a sáv aljától (és lekerekített sarkaitól) indulva 14 px-en fokozatosan kifut,
     az alsó sarkoknál ívben (a sáv 20 px-es lekerekítését követve); oldalt a sáv szélénél halványul el */
  -webkit-mask: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent) 0 0 / 100% calc(100% - 34px) no-repeat, linear-gradient(#000 calc(100% - 14px), transparent) 34px 0 / calc(100% - 68px) 100% no-repeat, radial-gradient(circle at 100% 0, #000 20px, transparent 34px) 0 100% / 34px 34px no-repeat, radial-gradient(circle at 0 0, #000 20px, transparent 34px) 100% 100% / 34px 34px no-repeat;
  mask: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent) 0 0 / 100% calc(100% - 34px) no-repeat, linear-gradient(#000 calc(100% - 14px), transparent) 34px 0 / calc(100% - 68px) 100% no-repeat, radial-gradient(circle at 100% 0, #000 20px, transparent 34px) 0 100% / 34px 34px no-repeat, radial-gradient(circle at 0 0, #000 20px, transparent 34px) 100% 100% / 34px 34px no-repeat; }
/* telefonon az alulról felcsúszó panel (kiválasztott foglalás, vendég, termék…) alatt: az oldal homályos és nem kattintható, csak a felső sáv;
   a háttérre koppintás bezárja a panelt */
.sheetback { display: none; }
.scrim { display: none; position: fixed; inset: 0; border: 0; background: rgba(43,33,27,0.35); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); z-index: 55; }
.show-m { display: none !important; }
@media (max-width: 1100px) { .lbl { display: none; } }
@media (max-width: 1100px) {
  .pagewrap { padding: 84px 10px 10px; gap: 10px; }
  .topwrap { position: static; z-index: auto; } /* rugalmas elemként a z-index külön réteget csinálna, és a felső sáv a panel háttere alá kerülne */
  /* telefonon a sáv körül végig (fölötte és mellette is), lefelé a sáv aljáig fokozatosan elhalványulva */
  /* telefonon: a képernyő tetejétől a sáv mellett is teljes homály, a sáv aljától (72 px) és a lekerekített sarkaitól indulva a résben fokozatosan kifut */
  .topshade { display: none; }
  .topwrap::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 96px; z-index: 44; pointer-events: auto; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    -webkit-mask: linear-gradient(#000 0 0) 0 0 / 100% 52px no-repeat, linear-gradient(#000 72px, transparent) 30px 0 / calc(100% - 60px) 100% no-repeat, radial-gradient(circle at 100% 0, #000 20px, transparent 44px) -14px 52px / 44px 44px no-repeat, radial-gradient(circle at 0 0, #000 20px, transparent 44px) calc(100% + 14px) 52px / 44px 44px no-repeat;
    mask: linear-gradient(#000 0 0) 0 0 / 100% 52px no-repeat, linear-gradient(#000 72px, transparent) 30px 0 / calc(100% - 60px) 100% no-repeat, radial-gradient(circle at 100% 0, #000 20px, transparent 44px) -14px 52px / 44px 44px no-repeat, radial-gradient(circle at 0 0, #000 20px, transparent 44px) calc(100% + 14px) 52px / 44px 44px no-repeat; }
  .dropback { z-index: 44; } /* nyitott lenyílónál a háttérre koppintás a lenyílót zárja (a panel-háttér és a homályos sáv fölött) */
  body:has(.detail.open) .sheetback { display: block; position: fixed; inset: 0; z-index: 44; border: 0; padding: 0; background: rgba(43,33,27,0.35);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); touch-action: none; animation: fadein .2s ease both; }
  html:not(.ready) body:has(.detail.open) .sheetback { animation-delay: .3s; } /* frissítéskor a tartalom beúszása után jelenik meg (addig a panel a háttér alá kerülne) */
  .topbar { position: fixed; top: 10px; left: 10px; right: 10px; width: auto; z-index: 45; box-shadow: 0 10px 26px rgba(74,48,30,0.14); background: rgba(255,255,255,0.5); }
  .dropwrap { position: static; }
  .drop { left: 0; right: 0; width: auto; top: calc(100% + 8px); }
  .side { display: none; }
  /* telefonon az oldalmenü balról becsúszik és kicsúszik, a háttér közben finoman sötétedik / világosodik */
  .side { display: block; position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); max-width: none; z-index: 60; padding: 10px; overflow-y: auto; height: 100%; overscroll-behavior: contain; background: var(--bg); border-radius: 0;
    transform: translateX(-100%); visibility: hidden; transition: transform .3s cubic-bezier(.22,.8,.24,1), box-shadow .3s ease, visibility 0s linear .3s; }
  .side.open { transform: none; visibility: visible; box-shadow: 10px 0 40px rgba(43,33,27,0.18); transition: transform .3s cubic-bezier(.22,.8,.24,1), box-shadow .3s ease; }
  .side.peek { visibility: visible; transition: none; } /* húzás közben az ujjat követi */
  .side .nav { min-height: 100%; }
  .scrim { display: block; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
  .scrim.open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
  .hide-m { display: none !important; }
  .show-m { display: inline-flex !important; }
  .card { padding: 14px; border-radius: 18px; }
}

/* üres állapot / készülő oldal */
.empty { padding: 40px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.empty .ico { width: 56px; height: 56px; border-radius: 18px; background: var(--teal-soft); color: var(--teal-dark); display: inline-flex; align-items: center; justify-content: center; }
.empty p { margin: 0; max-width: 460px; color: var(--muted); }

/* üzenet alul */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 95; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font: 700 14px var(--font); box-shadow: 0 14px 34px rgba(43,33,27,0.3); display: flex; align-items: center; gap: 10px; animation: upin .25s ease both; }

/* képernyőzár (B18) */
.lockscreen { position: fixed; inset: 0; z-index: 120; background: rgba(247,241,234,0.82); backdrop-filter: blur(26px) saturate(1.2); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lockcard { width: min(420px, 100%); padding: 24px; border-radius: 24px; background: #FBF7F2; box-shadow: 0 30px 80px rgba(43,33,27,0.25); display: flex; flex-direction: column; gap: 14px; animation: popin .2s ease both; }
.staff-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.staff-pick label { cursor: pointer; }
.staff-pick input { position: absolute; opacity: 0; }
.staff-pick span { display: inline-flex; min-height: 38px; padding: 0 14px; align-items: center; border-radius: 999px; border: 1px solid rgba(43,33,27,0.12); background: #fff; font-weight: 700; font-size: 14px; }
.staff-pick input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.staff-pick input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

/* belépő oldal */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px 16px; position: relative; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; }
.auth-brand .logo-m { width: 40px; height: 40px; border-radius: 12px; font-size: 17px; }
.auth-brand .tag { padding: 4px 8px; border-radius: 999px; background: rgba(43,33,27,0.07); font-size: 13px; color: var(--ink-2); }
.auth-card { width: min(420px, 100%); padding: 24px; border-radius: 26px; background: rgba(255,252,248,0.9); border: 1px solid var(--glass-line); box-shadow: 0 24px 60px rgba(74,48,30,0.12); display: flex; flex-direction: column; gap: 14px; animation: popin .2s ease both; }
.auth-card .step { font-size: 12px; font-weight: 800; color: var(--ink-2); letter-spacing: 0.3px; }
.auth-foot { font-size: 13px; color: var(--muted); }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 36px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid rgba(43,33,27,0.12); background: #fff; font: 700 13px var(--font); color: var(--ink); }
.chip .mini-logo { width: 24px; height: 24px; border-radius: 7px; background: #F3D9C4; color: #8A5A3A; font-size: 8px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.salon-chosen { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(43,33,27,0.04); }
.salon-chosen .mini-logo { width: 38px; height: 38px; border-radius: 11px; background: #F3D9C4; color: #8A5A3A; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.salon-chosen .code { font-size: 12px; color: var(--muted); font-weight: 700; }
.salon-chosen .btn-link { margin-left: auto; }

@keyframes pgin { from { opacity: 0 } to { opacity: 1 } }
@keyframes popin { from { opacity: 0; scale: .96 } to { opacity: 1; scale: 1 } }
@keyframes upin { from { opacity: 0; translate: 0 14px } to { opacity: 1; translate: 0 0 } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ===================== 2a: naptár és foglalás ===================== */
.small { font-size: 12.5px; }
.title-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.res-photo { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex: 0 0 auto; }
.head-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-warn { border: 1px solid rgba(162,65,12,0.3); background: #FFF3EB; color: var(--warn); font-weight: 800; }
.btn-warn:hover { color: var(--warn); }
.btn-warn-outline { border: 1px solid rgba(162,65,12,0.35); background: #fff; color: var(--warn); font-weight: 800; }
.btn-warn-soft { border: 1px solid rgba(162,65,12,0.25); background: #FFF3EB; color: var(--warn); }
.btn-danger { border: 0; background: var(--warn); color: #fff; font-weight: 800; }
.btn-dark { border: 0; background: var(--ink); color: #fff; font-weight: 800; }
.btn-soft { border: 0; background: var(--teal-soft); color: var(--teal-dark); font-weight: 800; }
.btn-outline-teal { border: 1px solid var(--teal); background: #fff; color: var(--teal-dark); font-weight: 800; }
.btn-dashed { border: 1px dashed rgba(43,33,27,0.22); background: transparent; }
.btn.active { border: 2px solid var(--teal); color: var(--teal-dark); background: #fff; }
.btn-warn-soft.active { border-color: var(--warn); color: var(--warn); background: #FFF3EB; }
a.btn:hover { color: inherit; }
a.btn-primary:hover { color: #fff; }

/* napváltó */
.daynav { display: flex; align-items: center; gap: 6px; }
.datepick label { position: relative; display: inline-flex; align-items: center; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(43,33,27,0.12); background: rgba(255,255,255,0.9); font-weight: 800; font-size: 14px; cursor: pointer; white-space: nowrap; }
.datepick input[type=date] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.daynav .icon-btn { width: 46px; height: 46px; }

/* kapcsoló (Szabad sávok) */
.switch-btn { height: 44px; padding: 0 14px 0 10px; border-radius: 12px; border: 1px solid rgba(43,33,27,0.12); background: rgba(255,255,255,0.9); font: 700 14px var(--font); display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 40px; height: 24px; border-radius: 999px; background: #CDBFB1; position: relative; transition: background-color .15s ease; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.2); transition: left .15s ease; }
[aria-checked="true"] > .sw { background: var(--teal); }
[aria-checked="true"] > .sw::after { left: 19px; }

/* elrendezés: lista + oldalsáv (900 px felett mindig egymás mellett) */
.cal-wrap { display: flex; gap: 14px; align-items: flex-start; }
.cal-list { flex: 1 1 auto; min-width: 0; }
.cal-side { flex: 0 0 440px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-head h2 { font-size: 18px; font-weight: 800; }
.card-head .muted { font-size: 13px; font-weight: 700; }
@media (max-width: 1250px) { .cal-side { flex-basis: 360px; } }

/* idősáv-lista */
.slots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.slot { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 56px; padding: 6px 14px; border-radius: 14px; background: rgba(255,255,255,0.55); border: 2px solid transparent; color: var(--ink); }
a.slot:hover { color: var(--ink); background: #fff; }
.slot.on { background: #fff; border-color: var(--teal); }
.slot .t { font-weight: 800; font-size: 15px; text-align: right; }
.slot .who { display: flex; flex-direction: column; min-width: 0; }
.slot .who b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot .who span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot.free { background: rgba(255,255,255,0.3); }
.slot.free .who b { color: var(--muted-2); font-weight: 700; }
.slot.free.past { opacity: .45; }
.slot.band { display: flex; justify-content: center; min-height: 40px; font-size: 13px; font-weight: 700; color: var(--muted); background: repeating-linear-gradient(-45deg, rgba(43,33,27,0.05) 0 10px, rgba(43,33,27,0.02) 10px 20px); }
.slot.band.closed { color: #8A3A0B; background: repeating-linear-gradient(-45deg, rgba(162,65,12,0.1) 0 10px, rgba(162,65,12,0.04) 10px 20px); }
.pill { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.pill-ok { background: var(--teal-soft); color: var(--teal-dark); }
.pill-warn { background: #FFF3EB; color: var(--warn); }
.pill-muted { background: rgba(43,33,27,0.07); color: var(--ink-2); }
.pill-struck { background: #FFF3EB; color: var(--warn); text-decoration: line-through; }
.pill-add { border: 1px solid rgb(var(--teal-rgb, 11 122 117) / 0.4); background: #fff; color: var(--teal-dark); }
.pill-add:hover { background: var(--teal-soft); color: var(--teal-dark); }

/* részletpanel */
.detail { gap: 12px; }
.sect { margin: 6px 0 0; font-size: 12.5px; font-weight: 800; color: var(--ink-2); letter-spacing: 0.4px; }
.panel-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.panel-head .when { font-size: 12px; font-weight: 800; color: var(--teal); letter-spacing: 0.3px; }
.pname { font-size: 22px; font-weight: 800; margin: 2px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { min-height: 38px; padding: 0 12px; border-radius: 11px; background: rgba(43,33,27,0.06); color: var(--ink); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; }
.chip-btn:hover { color: var(--ink); background: rgba(43,33,27,0.1); }
.paybox { padding: 12px 14px; border-radius: 16px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.paybox b { font-size: 14px; }
.pass-box { background: rgba(230,228,255,0.6); color: #3A3690; }
.ok-box { background: rgba(213,243,239,0.7); color: var(--teal-dark); }
.warn-box { background: #FFF3EB; color: #8A3A0B; }
.muted-box { background: rgba(43,33,27,0.06); color: var(--ink-2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two form { display: contents; }
.subpanel { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,0.75); border: 1px solid rgba(43,33,27,0.08); }
.att-done { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; font-size: 13px; }
.att-done.ok { background: rgba(213,243,239,0.7); color: var(--teal-dark); }
.att-done.warn { background: #FFF3EB; color: #8A3A0B; }
.att-done span { flex: 1 1 200px; }
.att-done form { margin-left: auto; }
.passcard { padding: 10px 12px; border-radius: 13px; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid rgba(43,33,27,0.08); }
.passcard.using { background: rgba(213,243,239,0.6); border-color: rgb(var(--teal-rgb, 11 122 117) / 0.35); }
.passcard .row { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 14px; }
.tag { flex: 0 0 auto; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; background: rgba(43,33,27,0.07); color: var(--muted); }
.tag.t-ok { background: var(--teal-soft); color: var(--teal-dark); }
.tag.t-dark { background: var(--teal); color: #fff; }
.divider { height: 1px; background: var(--line); margin: 4px 0; }
.daypick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dp { height: 56px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; border: 1px solid rgba(43,33,27,0.1); color: var(--ink); line-height: 1.1; }
.dp small { font-size: 11px; font-weight: 700; color: var(--muted); }
.dp b { font-size: 16px; }
.dp.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.dp.on small { color: #DFF5F2; }
.dp.off { background: transparent; border-style: dashed; color: #A39282; cursor: not-allowed; }
.timepick { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.tp input, .chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.tp span { height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font: 800 13px var(--font); background: #fff; border: 1px solid rgba(43,33,27,0.1); cursor: pointer; }
.tp.taken span { background: rgba(43,33,27,0.04); color: #A39282; border-color: transparent; text-decoration: line-through; cursor: not-allowed; }
.tp input:checked + span { background: var(--teal); color: #fff; border-color: var(--teal); }
.tp input:focus-visible + span, .chip-radio input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.chip-radio span, .chip-link { min-height: 36px; padding: 0 12px; border-radius: 999px; font: 700 13px var(--font); display: inline-flex; align-items: center; background: #fff; color: var(--ink); border: 1px solid rgba(43,33,27,0.12); cursor: pointer; }
.chip-radio input:checked + span, .chip-link.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-link:hover { color: var(--ink); }
.chip-link.on:hover { color: #fff; }
.selected-cust { padding: 10px 12px; border-radius: 12px; border: 2px solid rgba(43,33,27,0.1); display: flex; flex-direction: column; background: #fff; }
.selected-cust.changed { border-color: var(--teal); }
.search-row { display: flex; gap: 8px; }
.hit { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #fff; color: var(--ink); border: 1px solid rgba(43,33,27,0.08); }
.hit:hover { color: var(--ink); border-color: var(--teal); }
.note { padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.note.ok { background: rgba(213,243,239,0.7); color: var(--teal-dark); }
.note.warn { background: #FFF3EB; color: #8A3A0B; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 10px; }
.results input[readonly] { background: rgba(43,33,27,0.04); }
.stats h2 { font-size: 18px; font-weight: 800; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 10px; border-radius: 14px; background: rgba(43,33,27,0.04); display: flex; flex-direction: column; }
.stat span { font-size: 12px; font-weight: 700; color: var(--muted); }
.stat b { font-size: 20px; }
.toast-error { background: #8A3A0B; }

@media (max-width: 600px) { .two.m1 { grid-template-columns: 1fr; } }
@media (max-width: 1100px) {
  .cal-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .cal-side { display: contents; }
  .stats { margin-top: 0; }
  .detail { display: none; }
  .detail.open { display: flex; position: fixed; left: 0; right: 0; bottom: 0; max-height: 85vh; overflow-y: auto; z-index: 50; border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(74,48,30,0.25); background: #FBF7F2; animation: upin .3s cubic-bezier(.2,.8,.2,1) backwards; }
  .head-tools { width: 100%; }
  /* az alulról felcsúszó panel fejléce (név, bezárás) mindig látszik, csak alatta görög a tartalom */
  .detail.open { padding-top: 0; overflow-x: hidden; }
  .detail.open > .panel-head { position: sticky; top: 0; z-index: 3; padding: 14px 0 8px; background: #FBF7F2; box-shadow: -14px 0 0 #FBF7F2, 14px 0 0 #FBF7F2; } /* oldalra árnyékkal terül ki a háttér (nincs vízszintes görgetés) */
  .head-tools > .btn-warn { margin-left: auto; } /* telefonon a Zárás a sor jobb szélén (balra a szabad sávok / nézetváltó) */
  .daynav { flex: 1 1 auto; }
  .datepick { flex: 1 1 auto; }
  .datepick label { width: 100%; justify-content: center; }
  .slot { grid-template-columns: 46px minmax(0,1fr) auto; padding: 6px 10px; gap: 10px; }
}

/* összesített naptár */
.cal-main { flex: 1 1 auto; min-width: 0; }
.cal-side.narrow { flex-basis: 360px; }
@media (max-width: 1250px) { .cal-side.narrow { flex-basis: 320px; } }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 13px; background: rgba(43,33,27,0.06); }
.seg a { min-height: 38px; padding: 0 14px; border-radius: 10px; display: inline-flex; align-items: center; font: 800 13px var(--font); color: var(--muted); }
.seg a:hover { color: var(--ink); }
.seg a[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 3px 10px rgba(74,48,30,0.1); }
.show-m-flex { display: none !important; }
.grid-scroll { overflow-x: auto; }
.dgrid { min-width: calc(56px + var(--cols) * 150px); }
.dg-head { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(150px, 1fr)); border-bottom: 1px solid var(--line); }
.dg-col-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; border-left: 1px solid var(--line); min-width: 0; }
.dg-col-head a { display: flex; flex-direction: column; color: var(--ink); min-width: 0; }
.dg-col-head b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-col-head small { font-size: 12px; color: var(--muted); font-weight: 600; }
.dg-body { position: relative; display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(150px, 1fr)); }
.dg-axis { position: relative; background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat; } /* a fejléc alatti dupla vonal az időoszlopban is */
.dg-axis span { position: absolute; right: 8px; transform: translateY(-1px); font-size: 11px; font-weight: 700; color: var(--muted); }
.dg-col { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: 100% 84px; }
.dg-off { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(-45deg, rgba(43,33,27,0.045) 0 10px, rgba(43,33,27,0.015) 10px 20px); font-size: 13px; font-weight: 700; color: var(--muted); }
.dg-closed { position: absolute; left: 6px; right: 6px; border-radius: 10px; padding: 6px 8px; display: flex; flex-direction: column; font-size: 12px; color: #8A3A0B; border: 1px solid rgba(162,65,12,0.3); background: repeating-linear-gradient(-45deg, rgba(162,65,12,0.12) 0 10px, rgba(162,65,12,0.05) 10px 20px); overflow: hidden; }
.ev { position: absolute; left: 6px; right: 6px; border-radius: 10px; padding: 3px 9px; display: flex; flex-direction: column; overflow: hidden; color: var(--ink); background: color-mix(in srgb, var(--c) 18%, #fff); border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); font-size: 12px; line-height: 1.35; }
.ev:hover { color: var(--ink); filter: brightness(.97); }
.ev b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev span { color: color-mix(in srgb, var(--c) 70%, #2B211B); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.short { flex-direction: row; gap: 6px; align-items: center; padding: 2px 8px; }
.ev.on { background: #fff; border: 2px solid var(--teal); box-shadow: 0 6px 18px rgb(var(--teal-rgb, 11 122 117) / 0.18); z-index: 2; }
.ev.ns { background: #FFF8F3; border: 1px dashed rgba(162,65,12,0.5); }
.ev.ns b { text-decoration: line-through; color: var(--warn); }
.ev .ok-mark { position: absolute; right: 6px; top: 5px; color: var(--teal); }
.dg-now { position: absolute; left: 56px; right: 0; height: 2px; background: #B4530A; z-index: 3; pointer-events: none; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); padding-top: 4px; border-top: 1px solid var(--line); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend svg { color: var(--teal); }
.lg-ns { width: 16px; height: 12px; border: 1px dashed rgba(162,65,12,0.6); border-radius: 3px; }
.lg-closed { width: 16px; height: 12px; border-radius: 3px; background: repeating-linear-gradient(-45deg, rgba(162,65,12,0.25) 0 3px, transparent 3px 6px); }
.lg-now { width: 16px; height: 2px; background: #B4530A; }

/* hét */
.week { overflow-x: auto; }
.week-grid { width: 100%; border-collapse: separate; border-spacing: 6px; min-width: 680px; }
.week-grid th { font-size: 13px; font-weight: 800; color: var(--ink-2); text-align: center; padding-bottom: 2px; }
.week-grid thead th span { display: inline-block; white-space: nowrap; } /* a nap felirata (és a mai nap kiemelése) sosem törik szét */
.week-grid th.today span { background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 8px; }
.week-grid th[scope=row] { text-align: left; white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: none; min-width: 84px; max-width: 170px; padding-right: 8px; line-height: 1.3; } /* hosszú naptárnév: szavanként két sorba */
.week-grid .dot, .where .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.wk { display: flex; flex-direction: column; gap: 2px; height: 72px; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid rgba(43,33,27,0.08); color: var(--ink); }
.wk:hover { color: var(--ink); border-color: var(--teal); }
.wk.today { border: 2px solid var(--teal); }
.wk b { font-size: 16px; }
.wk small { font-size: 11px; color: var(--muted); font-weight: 700; }
.wk .bar { height: 4px; border-radius: 99px; background: rgba(43,33,27,0.1); overflow: hidden; margin-top: auto; }
.wk .bar span { display: block; height: 100%; background: var(--teal); }
.wk.off { background: transparent; border: 1px dashed rgba(43,33,27,0.2); color: var(--muted); }

/* lista */
.list-head, .brow { display: grid; grid-template-columns: 70px 1.2fr 1.4fr 1.4fr 1.2fr; gap: 10px; align-items: center; }
.list-head { font-size: 12.5px; font-weight: 800; color: var(--ink-2); padding: 0 14px; }
.blist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.brow { min-height: 52px; padding: 6px 14px; border-radius: 14px; border: 2px solid transparent; color: var(--ink); font-size: 14px; }
.brow:hover { color: var(--ink); background: rgba(255,255,255,0.7); }
.brow.on { border-color: var(--teal); background: #fff; }
.brow .where { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-warn-soft { background: #FFF3EB; color: var(--warn); }

@media (max-width: 1100px) {
  .show-m-flex { display: flex !important; }
}
/* telefonon a napi naptár egyszerre egy naptárat mutat (fölötte választó); tableten mind látszik egymás mellett */
@media (max-width: 700px) {
  .dgrid { min-width: 0; --cols: 1 !important; }
  .dg-head, .dg-body { grid-template-columns: 44px minmax(0, 1fr); }
  .dg-col-head:not(.focus), .dg-col:not(.focus) { display: none; }
  .dg-now { left: 44px; }
  .list-head:not(.arr-cols) { display: none; }
}
@media (min-width: 701px) { .res-pick { display: none !important; } }

/* jobbról beúszó panel (Új foglalás) */
.drawer-back { position: fixed; inset: 0; z-index: 80; border: 0; background: rgba(43,33,27,0.35); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: fadein .2s ease both; display: block; } /* minden felugró ablak és beúszó panel mögött ugyanaz az elhomályosítás */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100%); z-index: 81; background: #FBF7F2; box-shadow: -20px 0 60px rgba(74,48,30,0.22); display: flex; flex-direction: column; overflow: hidden; animation: drin .3s cubic-bezier(.2,.8,.2,1) backwards; } /* a végén nem marad eltolás: a benne lévő felugró ablak a képernyőhöz igazodik */
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { flex: 1; font-size: 20px; font-weight: 800; }
.logo-m.dark { background: var(--ink); width: 38px; height: 38px; border-radius: 12px; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.drawer-foot { padding: 14px 20px 18px; border-top: 1px solid var(--line); background: rgba(255,252,248,0.97); display: flex; flex-direction: column; gap: 8px; }
.drawer-foot .summary { font-size: 14px; }
.drawer-foot .why { font-size: 13px; font-weight: 700; color: var(--warn); }
.btn:disabled { background: rgba(43,33,27,0.1); color: #8C7B6E; border: 0; }
.search-box { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 14px; background: #fff; border: 1px solid rgba(43,33,27,0.12); color: var(--muted); }
.search-box input { flex: 1; border: 0; outline: none; background: transparent; font: 600 15px var(--font); color: var(--ink); min-width: 0; }
.avatar { width: 36px; height: 36px; border-radius: 10px; background: rgba(43,33,27,0.07); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.hit .row, .selected-cust .row { display: flex; align-items: center; gap: 12px; }
.selected-cust .row .btn-link { margin-left: auto; }
.hit { align-items: center; padding: 10px 12px; border-radius: 14px; }
.chip-link.sm { min-height: 32px; font-size: 12.5px; }
.chip-link.off { color: #A39282; border-style: dashed; cursor: not-allowed; }
.month-head { display: flex; align-items: center; justify-content: space-between; }
.month-head [aria-disabled="true"] { opacity: .35; pointer-events: none; }
.month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mh { text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); padding: 2px 0; }
.md { height: 48px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; background: #fff; border: 1px solid rgba(43,33,27,0.1); color: var(--ink); }
.md b { font-size: 15px; }
.md small { font-size: 10px; font-weight: 700; color: var(--muted); }
.md:hover { color: var(--ink); border-color: var(--teal); }
.md.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.md.on small { color: #DFF5F2; }
.md.past { background: transparent; border-color: transparent; color: #C3B4A6; }
.md.closed { background: transparent; border: 1px dashed rgba(43,33,27,0.2); color: #A39282; }
.md.full { background: #FFF3EB; border-color: rgba(162,65,12,0.25); }
.timepick.links { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
.tpl { height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font: 800 13px var(--font); background: #fff; border: 1px solid rgba(43,33,27,0.1); color: var(--ink); }
.tpl:hover { color: var(--ink); border-color: var(--teal); }
.tpl.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.tpl.taken { background: rgba(43,33,27,0.04); color: #A39282; border-color: transparent; text-decoration: line-through; }
.tpl.custom { border-style: dashed; }
.tpl.custom.on { border-style: solid; }
.phone-row { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }
.check.warn { color: var(--warn); font-weight: 800; }
@keyframes drin { from { opacity: 0; transform: translateX(48px) } to { opacity: 1; transform: none } }
@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }
.cat-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 2px; }
details.more { border-radius: 14px; border: 1px dashed rgba(43,33,27,0.18); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
details.more summary { cursor: pointer; font-size: 13px; font-weight: 800; color: var(--ink-2); }
details.more[open] summary { margin-bottom: 8px; }
.logo-m.warnbg { background: #FFF3EB; color: var(--warn); width: 38px; height: 38px; border-radius: 12px; }
.seg.wide { display: grid; grid-template-columns: 1fr 1fr; }
.seg.wide a { justify-content: center; }
.conflict { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: #FFF6F0; border: 1px solid rgba(162,65,12,0.25); }
.conflict > b { color: var(--warn); display: flex; align-items: center; gap: 6px; }
.crow { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.8); font-size: 13px; }
.chip-radio.danger input:checked + span { background: var(--warn); border-color: var(--warn); }
.band-del { margin-left: 10px; }
.band-del .btn-link { min-height: 28px; color: var(--warn); font-size: 12px; }
.confirm { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 91; width: min(420px, calc(100% - 32px)); padding: 22px; border-radius: 22px; background: #fff; box-shadow: 0 30px 70px rgba(43,33,27,0.3); display: flex; flex-direction: column; gap: 16px; animation: popin .2s ease both; }
.confirm h2 { font-size: 18px; font-weight: 800; }
.ev[data-move] { cursor: grab; touch-action: none; -webkit-user-drag: none; user-select: none; }
.ev.dragging { opacity: .35; }
.ev.ghost { position: fixed; z-index: 70; pointer-events: none; box-shadow: 0 14px 34px rgba(43,33,27,0.25); opacity: .95; cursor: grabbing; }

/* ===================== tartalomcsere, töltésjelző ===================== */
.content { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
/* oldalváltás: felül teljes szélességű vékony sáv, benne a haladó csík; az oldal enyhén elhomályosul, kattintás és görgetés tiltva */
.loadbar { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 200; background: rgb(var(--teal-rgb, 11 122 117) / 0.14); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.loadbar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, var(--teal), #19A29A); box-shadow: 0 0 8px rgb(var(--teal-rgb, 11 122 117) / 0.45); }
.is-nav .loadbar, .is-loading .loadbar, .nav-done .loadbar { opacity: 1; transition: none; }
.is-nav .loadbar::after, .is-loading .loadbar::after { animation: loadbar 2.4s cubic-bezier(.15,.8,.25,1) forwards; }
.nav-done .loadbar { opacity: 0; transition: opacity .25s ease .1s; }
.nav-done .loadbar::after { animation: loadend .22s ease-out forwards; }
@keyframes loadend { from { width: 80% } to { width: 100% } }
@keyframes loadbar { 0% { width: 0 } 25% { width: 45% } 60% { width: 75% } 100% { width: 94% } }
.navshield { position: fixed; inset: 0; z-index: 180; background: rgba(250,246,241,0.22); -webkit-backdrop-filter: blur(1.2px) saturate(.95); backdrop-filter: blur(1.2px) saturate(.95); opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility 0s linear .15s; cursor: progress; touch-action: none; }
.is-nav .navshield { opacity: 1; visibility: visible; transition: opacity .15s ease; }
/* betöltés közben nem lehet összevissza kattintgatni; a töltésjelző 250 ms után, elhomályosítással és pörgő jellel úszik be */
[aria-busy="true"] { pointer-events: none; }
.content, .drawer-body, .drawer-foot { transition: filter .25s ease, opacity .25s ease; }
.content { position: relative; }
.content.loading { filter: blur(2.5px) saturate(.9); opacity: .55; }
.drawer.loading .drawer-body, .drawer.loading .drawer-foot { filter: blur(2.5px); opacity: .5; }
.loader-spin { position: fixed; z-index: 190; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.85); box-shadow: 0 14px 34px rgba(74,48,30,0.16); backdrop-filter: blur(8px); opacity: 0; transform: scale(.85); transition: opacity .22s ease, transform .22s ease; pointer-events: none; }
.is-loading .loader-spin { opacity: 1; transform: scale(1); }
/* a jobb oldali panelben a pörgő jel a panel közepén */
.drawer::after { content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 3px solid rgb(var(--teal-rgb, 11 122 117) / 0.2); border-top-color: var(--teal); opacity: 0; transition: opacity .2s ease; animation: spin .7s linear infinite; pointer-events: none; }
.drawer.loading::after { opacity: 1; }
.drawer-layer ~ .loader-spin, body:has(.drawer.loading) .loader-spin { display: none; }
.drawer-loading { flex: 1; display: flex; align-items: center; justify-content: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgb(var(--teal-rgb, 11 122 117) / 0.2); border-top-color: var(--teal); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* saját lenyíló lista */
.ms-pop { position: fixed; z-index: 9999; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid rgba(43,33,27,0.1); box-shadow: 0 18px 44px rgba(43,33,27,0.2); overflow-y: auto; animation: upin .14s ease both; }
.ms-pop button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; font: 700 14px var(--font); color: var(--ink); text-align: left; }
.ms-pop button[hidden], .ms-grp[hidden] { display: none; }
.ms-pop button:hover, .ms-pop button:focus-visible { background: rgba(43,33,27,0.06); outline: none; }
.ms-pop button[aria-selected="true"] { background: rgb(var(--teal-rgb, 11 122 117) / 0.1); color: var(--teal-dark); }
.ms-pop button[aria-selected="true"]::after { content: "✓"; color: var(--teal); }
.ms-pop button:disabled { color: #B3A394; }
.ms-grp { padding: 10px 12px 4px; font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: 0.3px; text-transform: uppercase; }
.ms-search { width: 100%; min-height: 40px; margin-bottom: 4px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(43,33,27,0.12); font: 600 14px var(--font); outline: none; position: sticky; top: 0; background: #fff; }
select.input:hover { border-color: rgb(var(--teal-rgb, 11 122 117) / 0.45); }

/* húzás: ahová nem lehet, az halvány; a szellemkép jelzi a zárást / tiltást */
.dg-col.no-drop { background-color: rgba(43,33,27,0.06); }
.ev.ghost.bad { background: #fff; border: 2px dashed rgba(162,65,12,0.6); }
.ev.ghost.bad span, .ev.ghost.warn span { color: var(--warn); font-weight: 800; }
.ev.ghost.warn { border: 2px solid var(--warn); }

/* egymás melletti mezők: a beviteli dobozok alja egy vonalban, ha a cím két sorba törik */
.two > .field, .metric-grid > .field, .phone-row > * { justify-content: flex-end; }
.metric-grid { align-items: end; }
.two { align-items: end; }
.today-btn { min-height: 46px; padding: 0 14px; font-weight: 800; color: var(--teal-dark); }
.today-btn[aria-disabled="true"] { color: #B3A394; pointer-events: none; }
.day-empty { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgb(var(--teal-rgb, 11 122 117) / 0.07); color: var(--teal-dark); font-size: 14px; }
.day-empty span { display: flex; flex-direction: column; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.btnrow { margin-top: 6px; }
.tpl.custom { grid-column: 1 / -1; }
.month-head .icon-btn[aria-disabled="true"] { opacity: .35; }
.today-btn { color: var(--ink); }
.chip-link.check::before { content: ""; width: 14px; height: 14px; margin-right: 8px; border-radius: 4px; border: 1.5px solid rgba(43,33,27,0.35); background: #fff; flex: 0 0 auto; }
.chip-link.check.on::before { border-color: #fff; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B211B' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.md.expired { background: transparent; border: 1px dashed rgba(58,54,144,0.3); color: #9A97C9; }
.md.expired small { color: #7C79B5; }
.note.pass-note { background: rgba(230,228,255,0.6); color: #3A3690; font-weight: 600; margin: 0; }

/* fizetési mód kártyák (Új foglalás) */
.pay-opts { display: flex; flex-direction: column; gap: 8px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid rgba(43,33,27,0.1); color: var(--ink); }
.pay-opt:hover { color: var(--ink); border-color: rgb(var(--teal-rgb, 11 122 117) / 0.45); }
.pay-opt.on { border: 2px solid var(--teal); padding: 11px 13px; background: rgba(213,243,239,0.35); }
.po-ico { width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; background: rgba(43,33,27,0.06); color: var(--ink-2); }
.po-ico.pass { background: rgba(230,228,255,0.8); color: #3A3690; }
.po-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.po-txt b { font-size: 14.5px; }
.po-txt span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.po-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(43,33,27,0.2); flex: 0 0 auto; }
.pay-opt.on .po-check { border: 0; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.confirm-back { z-index: 90; }
/* foglalás áthelyezése / lemondása / módosítása: felugró ablak, a fejléc mindig látszik, csak a tartalom görög */
.bmodal-layer { position: fixed; inset: 0; z-index: 88; display: flex; align-items: center; justify-content: center; padding: 16px; }
.bmodal-back { position: absolute; inset: 0; background: rgba(43,33,27,0.35); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: fadein .2s ease both; }
.bmodal { position: relative; width: min(560px, 100%); max-height: min(88vh, 860px); display: flex; flex-direction: column; border-radius: 22px; background: #FBF7F2; box-shadow: 0 30px 70px rgba(43,33,27,0.3); overflow: hidden; animation: popin .2s ease both; }
.bmodal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.bmodal-head .when { font-size: 12px; font-weight: 800; color: var(--teal); letter-spacing: 0.3px; }
.bmodal-head h2 { font-size: 19px; font-weight: 800; margin: 2px 0; }
.bmodal-body { overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 600px) { .bmodal-layer { padding: 0; align-items: flex-end; } .bmodal { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; animation: upin .25s ease both; } }
.confirm { width: min(460px, calc(100% - 32px)); gap: 12px; }
.confirm .cf-note { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.confirm .btn { white-space: nowrap; }

/* ===================== 2b: vendégek és bérletek ===================== */
.list-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1 1 220px; }
.cust-cols { grid-template-columns: minmax(0, 1fr) 150px 120px 70px; }
.pass-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 140px 110px 110px; }
.num { text-align: right; }
.namecell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar.dark { background: var(--teal); color: #fff; }
.avatar.xl { width: 48px; height: 48px; border-radius: 14px; font-size: 16px; }
.avatar.xl.dark { background: var(--ink); }
.tag.t-warn { background: #FFF3EB; color: var(--warn); }
.tag.t-soon { background: #FFD9B8; color: #7A3608; }
.tag.lg { font-size: 12.5px; padding: 5px 10px; }
.cust-head { display: flex; align-items: center; gap: 12px; }
.mini-pass { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(213,243,239,0.6); color: var(--teal-dark); font-size: 13.5px; }
.mini-pass:hover { color: var(--teal-dark); background: rgba(213,243,239,0.9); }
textarea.input.area { min-height: 64px; padding: 10px 14px; resize: vertical; line-height: 1.45; }
.self-end { align-self: flex-end; }
.self-start { align-self: flex-start; }
.cust-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cust-id { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cust-id .title-row { flex-wrap: wrap; gap: 8px; }
.icon-btn.lg { width: 46px; height: 46px; border-radius: 14px; font-size: 20px; font-weight: 800; }
.tabs-wide { overflow-x: auto; align-self: flex-start; max-width: 100%; }
.stat-grid.four { grid-template-columns: repeat(4, 1fr); }
.note-box { padding: 10px 14px; border-radius: 14px; background: #FFF8EA; border: 1px solid rgba(180,83,9,0.2); font-size: 13.5px; color: #6B3E07; }
.brow.simple { grid-template-columns: 130px minmax(0, 1fr) auto; }
.dark-pass { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--ink); color: #fff; }
.dark-pass:hover { color: #fff; filter: brightness(1.08); }
.dark-pass span { font-size: 12.5px; color: #E6DDD3; }
.passcard.big { gap: 6px; padding: 14px 16px; }
.rtable { display: flex; flex-direction: column; }
.rrow { display: grid; grid-template-columns: 140px repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.rrow.buy { grid-template-columns: 110px minmax(0, 1fr) 110px 110px; }
.rrow.voided { opacity: .5; text-decoration: line-through; }
.narrow-card { max-width: 760px; }
fieldset.plain { border: 0; margin: 0; padding: 0; min-width: 0; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch-row.off { opacity: .55; cursor: not-allowed; }
.sw-input { position: absolute; opacity: 0; pointer-events: none; }
.sw-input:checked + .sw { background: var(--teal); }
.sw-input:checked + .sw::after { left: 19px; }
.sw-input:focus-visible + .sw { outline: 2px solid var(--teal); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid rgba(43,33,27,0.1); font-size: 13.5px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); flex: 0 0 auto; }
.done-box { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 20px 10px; }
.done-box .ico { width: 56px; height: 56px; border-radius: 18px; background: var(--teal-soft); color: var(--teal-dark); display: inline-flex; align-items: center; justify-content: center; }
.done-box h2 { font-size: 20px; }



.meter-cell { display: flex; align-items: center; gap: 8px; }
.meter-cell .meter { flex: 1; }
.meter { display: block; height: 5px; border-radius: 99px; background: rgba(43,33,27,0.1); overflow: hidden; min-width: 40px; }
.meter span { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.meter.low span { background: var(--warn); }
.meter.light { background: rgba(255,255,255,0.18); }
.meter.light span { background: #F6C8A3; }
.warn-text { color: var(--warn); font-weight: 800; }
.ok-text { color: var(--teal); font-weight: 700; }
.pass-hero { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 20px; background: var(--ink); color: #fff; }
.pass-hero .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pass-hero .who { color: #E6DDD3; font-size: 12.5px; font-weight: 700; }
.pass-hero .tag { background: #F6C8A3; color: #5B2A06; }
.pass-hero .tag.t-ok { background: #F6C8A3; color: #5B2A06; }
.pass-hero .small { color: #E6DDD3; }
.pass-hero.compact { padding: 14px 16px; }
.pname-l { font-size: 18px; font-weight: 800; }
.pass-hero .big { display: flex; align-items: baseline; gap: 8px; }
.pass-hero .big b { font-size: 34px; line-height: 1; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.three .btn { padding: 0 8px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.use-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.7); color: var(--ink); font-size: 13px; }
.use-row:hover { color: var(--ink); background: #fff; }
.adj-row { padding: 8px 12px; border-radius: 10px; background: rgba(43,33,27,0.05); font-size: 12.5px; color: var(--ink-2); }
.stepper { display: flex; align-items: center; gap: 10px; }
.step-val { width: 80px; text-align: center; font-size: 22px; font-weight: 800; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; }
.price-l { font-size: 20px; }
.po-price { font-size: 14px; white-space: nowrap; }
.drawer-form { display: contents; }
.drawer-form:has(input[name=dij][value=dijmentes]:checked) [data-paid-only] { display: none; }
.show-m-block { display: none; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.pager-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pager-jump { display: flex; align-items: center; gap: 6px; }
@media (max-width: 1100px) { .pager .pg-prev, .pager .pg-next { width: 38px; padding: 0; justify-content: center; } .pager-tools { flex-wrap: nowrap; } }
.btn.sm { min-height: 38px; padding: 0 12px; font-size: 13px; }
.input.sm { min-height: 38px; width: auto; padding-left: 10px; }
@media (max-width: 1100px) {
  .show-m-block { display: block; }
  .stat-grid.four { grid-template-columns: repeat(2, 1fr); }
  .three { grid-template-columns: 1fr 1fr; }
  .brow.simple { grid-template-columns: 1fr auto; }
  .brow.simple > .muted { grid-column: 1; }
  .rrow.buy { grid-template-columns: 90px minmax(0, 1fr) auto; }
  .rrow.buy > .muted { display: none; }
}

/* ===================== 2b javítások ===================== */
/* vízszintes görgetés: ahol még van tartalom, az a szél behalványul (a data-f-et az app.js állítja) */
.hfade { scrollbar-width: thin; }
.hfade[data-f=l] { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px); mask-image: linear-gradient(to right, transparent, #000 36px); }
.hfade[data-f=r] { -webkit-mask-image: linear-gradient(to left, transparent, #000 36px); mask-image: linear-gradient(to left, transparent, #000 36px); }
.hfade[data-f=lr] { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
@media (pointer: coarse) { .nobar { scrollbar-width: none; } .nobar::-webkit-scrollbar { display: none; } }
.tabs-wide { flex-wrap: nowrap; }
.tabs-wide a { flex: 0 0 auto; }

/* aktív bérlet kártyája (mint a foglalásnál) */
.pass-opt .po-txt { gap: 1px; }
.pass-opt .meter { margin-top: 6px; max-width: 220px; }
.pass-opt .warn-text { font-weight: 800; }
.po-go { color: var(--muted); display: inline-flex; flex: 0 0 auto; }
.pass-wrap { display: flex; flex-direction: column; gap: 6px; }
.pill-plan { background: rgba(230,228,255,0.8); color: #3A3690; }
.group-title { margin-top: 4px; }

/* vendég adatlap – Bérletek fül */
.pblocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 14px; align-items: start; }
.pblock { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 20px; background: #fff; border: 1px solid rgba(43,33,27,0.08); box-shadow: 0 1px 2px rgba(43,33,27,0.04); }
.pblock.past { background: rgba(255,255,255,0.55); }
.pblock.past .po-ico.pass { background: rgba(43,33,27,0.06); color: var(--muted); }
.pb-head { display: flex; align-items: center; gap: 12px; }
.pb-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pb-name b { font-size: 16px; }
.pb-stats { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; }
.pb-stats > div { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 14px; background: rgba(43,33,27,0.04); min-width: 0; }
.pb-stats span:first-child { font-size: 11.5px; font-weight: 800; color: var(--muted); }
.pb-stats b { font-size: 15px; }
.pb-stats b small { font-size: 12px; color: var(--muted); }
.pb-stats b.pb-use { font-size: 13px; line-height: 1.35; }
.pb-uses summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; }
.pb-uses summary::-webkit-details-marker { display: none; }
.pb-uses summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -3px 0 0 4px; transition: transform .15s; }
.pb-uses[open] summary::after { transform: rotate(225deg); margin-top: 3px; }
.uses { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.use { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; background: rgba(43,33,27,0.035); color: var(--ink); }
.use:hover { color: var(--ink); background: rgba(213,243,239,0.5); }
.use.cancelled { opacity: .65; }
.u-date { width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid rgba(43,33,27,0.08); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex: 0 0 auto; }
.u-date b { font-size: 17px; }
.u-date small { font-size: 10.5px; font-weight: 800; color: var(--muted); margin-top: 2px; }
.u-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13.5px; }
.u-txt .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pb-actions .btn-link { margin-left: auto; }

/* Bérletek – Bérlettípusok fül: szolgáltatás szerinti csoportok, csoportonként tömör táblázat */
.tgroups { display: flex; flex-direction: column; gap: 12px; }
.tgroup { border-radius: 18px; background: #fff; border: 1px solid rgba(43,33,27,0.08); padding: 6px 6px 8px; }
.tgroup.off { background: rgba(255,255,255,0.55); }
.tgroup.off .po-ico.pass { background: rgba(43,33,27,0.06); color: var(--muted); }
.tg-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 6px; }
.tg-head .po-ico { width: 30px; height: 30px; border-radius: 10px; }
.tg-head b { font-size: 15px; }
.trow { display: grid; grid-template-columns: minmax(0, 2.2fr) 70px 90px minmax(0, 1.2fr) minmax(0, 1.1fr) 90px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; font-size: 14px; }
.trow:not(.thead):hover { background: rgba(43,33,27,0.035); }
.trow.thead { font-size: 12px; font-weight: 800; color: var(--muted); padding-top: 2px; padding-bottom: 2px; }
.trow + .trow:not(.thead) { border-top: 1px solid var(--line); border-radius: 0; }
.t-name, .t-price { display: flex; flex-direction: column; min-width: 0; }
.t-act { display: flex; justify-content: flex-end; }
.btn.btn-sm { min-height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.tg-more summary { cursor: pointer; list-style: none; margin: 10px 0; }
.tg-more summary::-webkit-details-marker { display: none; }
.tg-more summary::before { content: "▸ "; }
.tg-more[open] summary::before { content: "▾ "; }
@media (max-width: 1100px) {
  .trow { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 0.9fr) auto; }
  .trow.thead { display: none; }
}
@media (max-width: 1100px) {
  .pb-stats { grid-template-columns: 1fr 1fr; }
  .pb-stats > div:last-child { grid-column: 1 / -1; }
  .pb-actions .btn-link { margin-left: 0; }
}
.note.own-note { display: flex; gap: 10px; align-items: flex-start; background: rgba(230,228,255,0.6); color: #3A3690; font-weight: 600; line-height: 1.45; }
.note.own-note svg { flex: 0 0 auto; margin-top: 2px; }
.pblocks.wide { grid-template-columns: 1fr; }
@media (min-width: 1100px) {
  .pblocks.wide .pblock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "head uses" "stats uses" "actions uses"; grid-template-rows: auto auto 1fr; column-gap: 22px; }
  .pblocks.wide .pb-head { grid-area: head; }
  .pblocks.wide .pb-stats { grid-area: stats; grid-template-columns: 1fr 1fr; }
  .pblocks.wide .pb-stats > div:last-child { grid-column: 1 / -1; }
  .pblocks.wide .pb-uses, .pblocks.wide .pblock > .muted.small { grid-area: uses; }
  .pblocks.wide .pb-actions { grid-area: actions; align-self: end; }
  .pblocks.wide .uses { max-height: 360px; }
}
fieldset.plain:disabled .switch-row { cursor: default; opacity: .7; }
fieldset.plain:disabled .input { background: rgba(43,33,27,0.04); color: var(--ink-2); }
.tg-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.t-act { gap: 6px; flex-wrap: wrap; }
.trow { grid-template-columns: minmax(0, 2.2fr) 70px 90px minmax(0, 1.2fr) minmax(0, 1.1fr) auto; }
.btn.btn-ghost { background: transparent; border-color: transparent; color: var(--teal-dark); }
.btn.btn-ghost:hover { background: rgba(213,243,239,0.6); }
@media (max-width: 1100px) { .trow { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 0.9fr) auto; } .t-act { flex-direction: column; align-items: stretch; } }
.subpanel.danger-panel { border: 1.5px solid rgba(162,65,12,0.35); background: #FFF8F3; gap: 12px; }
.dp-title { display: flex; align-items: center; gap: 8px; color: #8A3A0B; font-size: 16px; }
.dp-sect { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid rgba(162,65,12,0.15); }
.dp-sect ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.6; }

/* saját helyi menü (jobb klikk / ⋮) */
.cmenu { position: fixed; z-index: 120; min-width: 220px; max-width: 320px; padding: 6px; border-radius: 16px; background: rgba(255,255,255,0.98); border: 1px solid rgba(43,33,27,0.1);
  box-shadow: 0 18px 50px rgba(74,48,30,0.22), 0 2px 6px rgba(74,48,30,0.08); animation: cmin .12s ease-out both; transform-origin: top left; }
@keyframes cmin { from { opacity: 0; transform: scale(.97) translateY(-3px); } to { opacity: 1; transform: none; } }
.cm-title { padding: 7px 10px 6px; font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.cm-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 700 13.5px var(--font); text-align: left; cursor: pointer; text-decoration: none; }
.cm-item:hover, .cm-item:focus-visible { background: rgba(213,243,239,0.65); color: var(--teal-dark); outline: none; }
.cm-item.danger { color: var(--warn); }
.cm-item.danger:hover, .cm-item.danger:focus-visible { background: #FFF3EB; color: var(--warn); }
.cm-ico { width: 18px; display: inline-flex; justify-content: center; color: var(--muted); flex: 0 0 auto; }
.cm-item:hover .cm-ico, .cm-item:focus-visible .cm-ico { color: inherit; }
.cm-sep { height: 1px; background: var(--line); margin: 4px 6px; }
.ctx-on { outline: 2px solid rgb(var(--teal-rgb, 11 122 117) / 0.45); outline-offset: -2px; }
.kebab { width: 34px; height: 34px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.kebab:hover, .kebab[aria-expanded="true"], .ctx-on .kebab { background: rgba(43,33,27,0.06); color: var(--ink); }
.trow { grid-template-columns: minmax(0, 2.2fr) 70px 90px minmax(0, 1.2fr) minmax(0, 1.1fr) 40px; }
@media (max-width: 1100px) { .trow { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 0.9fr) 40px; } .t-act { flex-direction: row; } }
.push-right { margin-left: auto; }
.check.locked { cursor: default; color: var(--ink-2); }
.check.locked input { opacity: .65; }
/* bérlettípus-táblázat: a sorkiemelés a kártya teljes szélességében */
.tgroup { padding: 0 0 4px; overflow: hidden; }
.tg-head { padding: 14px 16px 8px; }
.trow { padding: 10px 16px; border-radius: 0; }
.trow.thead { padding-top: 4px; padding-bottom: 6px; }
.trow + .trow:not(.thead) { border-top: 1px solid var(--line); }
.trow:not(.thead):hover { background: rgba(213,243,239,0.35); }
.trow .c { text-align: center; justify-self: center; }
.btn, .kebab, .cmenu, .seg a, .chip-link, .ev, .slot.booking .t { -webkit-user-select: none; user-select: none; }
.cf-field { margin: 0 0 4px; }
.uses.compact { margin: 0; max-height: none; }
.uses.compact .use { padding: 6px 8px; gap: 10px; }
.uses.compact .u-date { width: 40px; height: 40px; }
.chosen-opt { cursor: default; }
.input.upper::placeholder { text-transform: none; letter-spacing: 0; }
.dg-closed { padding-right: 26px; }
.dg-del { position: absolute; top: 4px; right: 4px; margin: 0; }
.dg-del-btn { width: 22px; height: 22px; border-radius: 7px; border: 0; background: rgba(255,255,255,0.75); color: #8A3A0B; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: .7; }
.dg-closed:hover .dg-del-btn, .dg-del-btn:focus-visible { opacity: 1; }
.dg-del-btn:hover { background: #fff; }

/* ===================== 2c: kassza ===================== */
.tb-btn { position: relative; }
.tb-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--teal); color: #fff; font: 800 11px var(--font); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.selected-cust.locked { border-color: rgba(43,33,27,0.2); background: rgba(255,255,255,0.85); }
.selected-cust .tag svg { vertical-align: -2px; }
.lock-why { margin-top: 6px; }
.arrear-offer { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #FFF3EB; color: #8A3A0B; font-size: 13px; }
.arrear-offer span { flex: 1; }
.empty-box { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 22px 14px; border-radius: 16px; border: 1.5px dashed rgba(43,33,27,0.16); }
.empty-box .ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(43,33,27,0.06); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
.pos-line { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid rgba(43,33,27,0.09); }
.pos-line.over { border-color: rgba(162,65,12,0.45); }
.pl-top { display: flex; align-items: flex-start; gap: 10px; }
.kind { flex: 0 0 auto; padding: 3px 7px; border-radius: 7px; font-size: 10px; font-weight: 800; letter-spacing: .3px; margin-top: 2px; }
.k-booking { background: #D5F3EF; color: #075955; } .k-arrear { background: #FFF3EB; color: #A2410C; } .k-pass { background: #E6E4FF; color: #3A3690; }
.k-product { background: #F3E7DA; color: #7A4E2A; } .k-custom { background: rgba(43,33,27,0.07); color: #4A3C33; }
.pl-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.pl-total { display: flex; flex-direction: column; align-items: flex-end; font-size: 14.5px; white-space: nowrap; }
.pl-total s { font-size: 12px; color: var(--muted); }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 9px; }
.pl-tools { display: flex; align-items: center; gap: 8px; }
.stepper.sm { gap: 0; border: 1px solid rgba(43,33,27,0.12); border-radius: 11px; overflow: hidden; background: #fff; }
.stepper.sm form { display: contents; }
.step-btn { width: 36px; height: 36px; border: 0; background: #fff; font: 800 18px var(--font); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.step-btn:disabled { color: #C9BBAE; cursor: not-allowed; }
.input.qty { width: 54px; height: 36px; min-height: 0; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; text-align: center; padding: 0 4px; font-weight: 800; }
.disc-btn { margin-left: auto; min-height: 34px; padding: 0 10px; border-radius: 9px; display: inline-flex; align-items: center; font: 800 12px var(--font); color: var(--teal-dark); }
.disc-btn.on, .disc-btn:hover { background: rgba(213,243,239,0.8); color: var(--teal-dark); }
.pl-disc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: rgba(43,33,27,0.04); }
.seg.mini { padding: 2px; border-radius: 10px; }
.seg.mini button { min-width: 38px; height: 32px; border: 0; border-radius: 8px; background: transparent; font: 800 13px var(--font); color: var(--muted); cursor: pointer; }
.seg.mini button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(74,48,30,0.12); }
.input.disc-in { width: 90px; min-height: 36px; height: 36px; }
.pl-disc .cap { flex-basis: 100%; font-size: 12px; font-weight: 700; color: #7A695C; }
.pl-start { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.pl-start .field { flex: 1 1 160px; }
.from-pass { font-size: 13px; padding: 8px 10px; border-radius: 10px; background: rgba(230,228,255,0.6); color: #3A3690; }
.adders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.adder { min-height: 44px; font-size: 13px; }
.adder.on { border: 2px solid var(--teal); color: var(--teal-dark); background: #fff; }
.pick-row { width: 100%; display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 10px; border: 1px solid rgba(43,33,27,0.08); background: #FBF7F2; font: 700 13px var(--font); color: var(--ink); text-align: left; cursor: pointer; }
.pick-row:hover:not(:disabled) { border-color: var(--teal); background: #fff; }
.pick-row:disabled { color: #B3A394; cursor: not-allowed; }
.pick-row small { font-weight: 600; }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.methods form { display: contents; }
.method { min-height: 46px; border-radius: 13px; border: 1px solid rgba(43,33,27,0.12); background: #fff; color: var(--ink); font: 800 14px var(--font); cursor: pointer; }
.method.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-pay { min-height: 50px; font-size: 15px; }
.warn-link { color: var(--warn); }
.effects { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.effects li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(213,243,239,0.55); color: var(--teal-dark); font-size: 13.5px; font-weight: 700; }
.effects svg { flex: 0 0 auto; margin-top: 2px; }
.rw-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; background: #fff; border: 1px solid rgba(43,33,27,0.09); cursor: pointer; }
.rw-row input { width: 18px; height: 18px; accent-color: var(--teal); }
.arr-cols { grid-template-columns: 130px minmax(0, 2fr) 100px minmax(110px, 1fr); }
.brow.arr-cols { grid-template-areas: "when who amt st"; }
.brow.arr-cols .a-when { grid-area: when; } .brow.arr-cols .a-who { grid-area: who; min-width: 0; } .brow.arr-cols .a-amt { grid-area: amt; } .brow.arr-cols .a-st { grid-area: st; min-width: 0; }
.brow.arr-cols .a-st .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1250px) {
  .list-head.arr-cols { display: none; }
  .brow.arr-cols { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who amt" "when st"; row-gap: 4px; align-items: center; }
  .brow.arr-cols .a-when { font-size: 12.5px; color: var(--muted); font-weight: 700; }
  .brow.arr-cols .a-amt, .brow.arr-cols .a-st { justify-self: end; }
}

/* ===================== vendégkijelző (tablet) ===================== */
.disp-body { min-height: 100vh; margin: 0; }
.disp { min-height: 100vh; padding: 32px; box-sizing: border-box; display: flex; flex-direction: column; gap: 18px; }
.disp.offline::after { content: "Nincs kapcsolat – újrapróbálkozás…"; position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); padding: 8px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; }
.disp-wait { flex: 1; display: flex; align-items: center; justify-content: center; }
.disp-pair { max-width: 420px; margin: 12vh auto 0; padding: 0 20px; display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; }
.disp-pair form { width: 100%; }
.input.pair-code { font-size: 34px; letter-spacing: 10px; text-align: center; height: 70px; font-weight: 800; }
.disp-head { display: flex; align-items: center; gap: 14px; }
.disp-logo { width: 56px; height: 56px; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(74,48,30,0.1); display: inline-flex; align-items: center; justify-content: center; font: 800 24px var(--font); color: var(--teal); flex: 0 0 auto; }
.disp-logo.xl { width: 96px; height: 96px; border-radius: 26px; font-size: 42px; }
.disp-hello { display: block; font-size: 15px; font-weight: 700; color: var(--muted); }
.disp-name { font-size: 30px; }
.disp-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 24px; align-items: end; }
.disp-lines { align-self: stretch; padding: 10px 26px; border-radius: 26px; background: rgba(255,255,255,0.8); box-shadow: 0 10px 30px rgba(74,48,30,0.06); overflow-y: auto; }
.disp-line { display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.disp-line > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.disp-line b { font-size: 21px; }
.disp-line span { color: var(--muted); font-size: 15px; }
.disp-amt { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.disp-amt b { font-size: 22px; }
.disp-disc { color: var(--teal-dark) !important; font-weight: 800; font-size: 14px !important; }
.disp-sum { padding: 26px 28px; border-radius: 26px; background: var(--ink); color: #fff; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 18px 50px rgba(43,33,27,0.3); }
.disp-row { display: flex; justify-content: space-between; font-size: 16px; color: #E6DDD3; }
.disp-row.disc { color: #7FE3D5; font-weight: 800; }
.disp-pay-l { margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.15); color: #E6DDD3; font-size: 15px; }
.disp-total { font-size: 58px; line-height: 1.05; letter-spacing: -1px; }
.disp-method { align-self: flex-start; margin-top: 6px; padding: 6px 14px; border-radius: 99px; background: rgba(255,255,255,0.12); font-weight: 800; font-size: 15px; }
.disp-foot { text-align: center; color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.disp-idle, .disp-thanks { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.disp-idle h1 { font-size: 46px; margin: 0; }
.disp-cta { margin-top: 24px; padding: 18px 28px; border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(74,48,30,0.08); display: flex; flex-direction: column; gap: 4px; font-size: 18px; }
.disp-cta b { font-size: 26px; color: var(--teal-dark); }
.disp-check { width: 110px; height: 110px; border-radius: 34px; background: var(--teal-soft); color: var(--teal-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 60px; font-weight: 800; }
.disp-thanks h1 { font-size: 52px; margin: 8px 0 0; }
.disp-thanks p { font-size: 22px; color: var(--ink-2); margin: 0; }
.disp-next { margin-top: 18px; padding: 16px 24px; border-radius: 20px; background: #fff; display: flex; flex-direction: column; gap: 4px; font-size: 17px; }
.disp-next b { font-size: 24px; }
@media (max-width: 800px) { .disp { padding: 18px; } .disp-grid { grid-template-columns: 1fr; } .disp-total { font-size: 44px; } }
.pair-box { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px; border-radius: 18px; background: var(--teal-soft); text-align: center; }
.pair-show { font-size: 44px; letter-spacing: 6px; color: var(--teal-dark); }
.disp-item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.dot-state { width: 10px; height: 10px; border-radius: 50%; background: #C9BBAE; flex: 0 0 auto; }
.dot-state.on { background: var(--teal); box-shadow: 0 0 0 4px rgb(var(--teal-rgb, 11 122 117) / 0.15); } .dot-state.wait { background: #E0A15A; }
.row-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
form > .hit { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.conflict .btn, .two > a.btn { text-align: center; line-height: 1.25; }
.own-offer { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: rgba(230,228,255,0.45); color: #3A3690; }
.own-offer .pick-row { background: #fff; }
.own-pass { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(230,228,255,0.6); color: #3A3690; font-size: 13px; }
.own-pass span { flex: 1; }
.disc-prev.over { color: var(--warn); }
.switch-row .sw { flex: 0 0 auto; }
/* beállítás-oldalak: két oszlop kártyákkal (Fizetés és kassza mintájára) */
.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.set-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.set-col .card { gap: 12px; }
.sw-list .switch-row:last-child { border-bottom: 0; }
.check.end { align-self: end; min-height: 46px; font-size: 13.5px; }
.slide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.slide-th { position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: rgba(43,33,27,0.06); }
.slide-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-th form { position: absolute; top: 6px; right: 6px; }
.upload-drop { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; border: 1.5px dashed rgba(43,33,27,0.2); cursor: pointer; color: var(--ink); }
.upload-drop:hover { border-color: var(--teal); background: rgba(213,243,239,0.3); }
.upload-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pb-step { font-size: 11.5px; font-weight: 800; letter-spacing: .4px; color: var(--teal-dark); text-transform: uppercase; }
.disp-item { flex-wrap: wrap; }
.disp-item.awaiting { background: rgba(213,243,239,0.35); border-radius: 14px; padding: 12px; border-bottom: 0; }
.disp-ico { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(43,33,27,0.06); color: var(--muted); flex: 0 0 auto; }
.disp-ico.on { background: var(--ink); color: #fff; } .disp-ico.wait { background: #FFF3EB; color: var(--warn); }
.confirm-row { flex-basis: 100%; display: flex; gap: 8px; }
.input.confirm-code { width: 120px; text-align: center; font-size: 22px; letter-spacing: 6px; font-weight: 800; }
@media (max-width: 1000px) { .set-grid { grid-template-columns: 1fr; } }
.disp-pair .pair-show { font-size: 64px; letter-spacing: 14px; color: var(--teal-dark); }
.disp-idle.has-slides { justify-content: flex-start; align-items: stretch; text-align: left; gap: 18px; }
.disp-slides { position: relative; flex: 1; min-height: 300px; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 14px 40px rgba(74,48,30,0.12); }
.disp-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .9s ease; background: #fff; }
.disp-slide.on { opacity: 1; }
.disp-cta.row { flex-direction: row; align-items: baseline; justify-content: center; gap: 12px; margin-top: 0; }

/* ===================== 2d: kezdőképernyő, csengő, értesítések ===================== */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 20px; background: rgba(255,255,255,0.82); border: 1px solid rgba(43,33,27,0.06); box-shadow: 0 10px 30px rgba(74,48,30,0.06); color: var(--ink); }
.kpi:hover { color: var(--ink); border-color: rgb(var(--teal-rgb, 11 122 117) / 0.35); }
.kpi span { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.kpi b { font-size: 30px; line-height: 1.1; }
.kpi small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi.warn { background: #FFF6F0; border-color: rgba(162,65,12,0.25); }
.kpi.warn span, .kpi.warn b, .kpi.warn small { color: var(--warn); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.home-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card-title { font-size: 17px; margin: 0; }
.tline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tl-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--ink); }
.tl-row:hover { background: rgba(43,33,27,0.04); color: var(--ink); }
.tl-row.now { background: rgba(213,243,239,0.6); }
.tl-row.done .tl-txt b { color: var(--muted); }
.tl-time { width: 44px; font-weight: 800; font-size: 14px; color: var(--ink-2); flex: 0 0 auto; }
.tline .dot, .res-row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--teal)); flex: 0 0 auto; }
.tl-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tl-txt .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-now { background: var(--teal); color: #fff; }
.btn-link.center { align-self: center; }
.note-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(43,33,27,0.04); color: var(--ink); }
.note-row:hover { color: var(--ink); filter: brightness(0.98); }
.note-row > span:last-child { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; }
.note-row.n-new { background: rgba(213,243,239,0.6); } .note-row.n-cancel, .note-row.n-arrear { background: #FFF3EB; } .note-row.n-review { background: #FFF8EA; } .note-row.n-move { background: rgba(230,228,255,0.5); }
.note-row.read { background: rgba(43,33,27,0.03); opacity: .75; }
.n-ico { width: 32px; height: 32px; border-radius: 10px; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: 0 0 auto; }
.n-new .n-ico { color: var(--teal); } .n-cancel .n-ico, .n-arrear .n-ico { color: var(--warn); } .n-review .n-ico { color: #C07A10; } .n-move .n-ico { color: #3A3690; }
.res-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; flex-wrap: wrap; }
.res-row b { min-width: 110px; }
.todo { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.todo-check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid rgba(43,33,27,0.3); background: #fff; cursor: pointer; flex: 0 0 auto; }
.todo.done .todo-check { border: 0; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.todo-txt { flex: 1; font-weight: 700; font-size: 14px; }
.todo.done .todo-txt { text-decoration: line-through; color: var(--muted); }
.todo-add { display: flex; gap: 8px; }
.todo-add .input { flex: 1; }
.todo-add .btn { width: 46px; padding: 0; }
.cel-row, .hol-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.cel-ico { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; background: #FFF8EA; flex: 0 0 auto; }
.cel-ico.nameday { background: rgba(230,228,255,0.6); }
.hol-seg form { display: contents; }
.hol-seg button[aria-pressed="true"].closed-btn { background: var(--warn); color: #fff; }
.bell-drop { width: min(380px, calc(100vw - 24px)); gap: 8px; max-height: 70vh; overflow-y: auto; }
.ntoasts { position: fixed; right: 18px; bottom: 18px; z-index: 96; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 36px)); }
.ntoast { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 36px 12px 14px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: 0 14px 34px rgba(43,33,27,0.3); font-size: 13.5px; animation: upin .25s ease both; transition: opacity .4s, transform .4s; }
.ntoast:hover { color: #fff; }
.ntoast b { color: #7FE3D5; } .ntoast.n-cancel b, .ntoast.n-arrear b { color: #F6C8A3; }
.ntoast.out { opacity: 0; transform: translateY(8px); }
.nt-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; color: #E6DDD3; font-size: 18px; cursor: pointer; }
.panel-in-drawer > .panel-head .icon-btn { display: none; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-grid { grid-template-columns: 1fr; } }
/* kezdőképernyő: két egyforma oszlop, áthúzható kártyák (dolgozónként megjegyezve) */
.dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.dash-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 120px; border-radius: 22px; transition: background .15s; }
.dash.dragging .dash-col { background: rgba(213,243,239,0.25); outline: 2px dashed rgb(var(--teal-rgb, 11 122 117) / 0.25); outline-offset: 4px; }
.w-head { display: flex; align-items: center; gap: 8px; }
.w-head .card-title { flex: 1; }
.w-grip { display: inline-flex; color: rgba(43,33,27,0.3); cursor: grab; margin-left: -6px; margin-right: 8px; touch-action: none; padding: 4px 2px; }
.w-grip svg { margin-right: -10px; }
.w-grip:hover { color: var(--ink-2); }
.widget.lifted { position: fixed; z-index: 90; pointer-events: none; box-shadow: 0 24px 60px rgba(74,48,30,0.28); transform: rotate(0.6deg); opacity: .96; }
.w-ph { border-radius: var(--radius); border: 2px dashed rgb(var(--teal-rgb, 11 122 117) / 0.45); background: rgba(213,243,239,0.35); }
body.grabbing, body.grabbing * { cursor: grabbing !important; user-select: none; }
.more-hidden { display: none; }
.nd-line { padding: 10px 12px; border-radius: 12px; background: rgba(230,228,255,0.45); color: #3A3690; font-size: 13.5px; }
@media (max-width: 1000px) { .dash { grid-template-columns: 1fr; } }

/* ===================== 3: beállítás-oldalak ===================== */
.savebar { position: fixed; bottom: 14px; left: 16px; width: calc(100% - 32px); z-index: 40; display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 12px 14px 12px 18px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: 0 18px 44px rgba(43,33,27,0.3); animation: upin .2s ease both; }
.savebar > span { flex: 1; }
.savebar .muted { color: #E6DDD3; }
.savebar .btn:not(.btn-primary) { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.2); }
.set-card-head { display: flex; flex-direction: column; gap: 2px; }
.set-card-head .sect { margin: 0; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick [data-val] { position: relative; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(43,33,27,0.14); background: #fff; font: 800 13px var(--font); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pick [data-val].on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pick .ord { min-width: 18px; height: 18px; border-radius: 99px; background: #fff; color: var(--ink); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.pick .ord:empty { display: none; }
.img-slot { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; border: 1.5px dashed rgba(43,33,27,0.18); }
.img-slot .thumb { width: 72px; height: 72px; border-radius: 16px; background: #fff center / cover no-repeat; border: 1px solid var(--line); flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--muted); }
.img-slot .thumb.wide { width: 128px; }
.img-slot.img-pending { border-color: var(--teal); background: rgb(var(--teal-rgb, 11 122 117) / 0.04); } /* kiválasztott, még nem mentett kép */
.img-slot .img-pending-note { display: block; margin-top: 4px; color: var(--teal-dark); font-weight: 700; }
.img-slot .grow { display: flex; flex-direction: column; gap: 4px; }
.file-btn { position: relative; overflow: hidden; align-self: flex-start; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.slug-row { display: flex; align-items: center; border: 1px solid rgba(43,33,27,0.14); border-radius: 12px; background: #fff; padding-left: 14px; }
.slug-row span { color: var(--muted); font-weight: 700; white-space: nowrap; }
.slug-row .input { border: 0; padding-left: 2px; background: transparent; }
.savebar[hidden] { display: none; }
/* a „nem mentett módosítások” sáv körül alul: a sáv alá csúszó tartalom elmosódik (a felső sáv homályának tükörképe – a sáv tetejétől
   14 px-en felfelé fokozatosan kifut, oldalt a sáv szélénél halványul el); a helyét az app.js igazítja a sávhoz */
.botshade { position: fixed; bottom: 0; z-index: 39; pointer-events: auto; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadein .2s ease both;
  -webkit-mask: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent) 0 100% / 100% calc(100% - 34px) no-repeat, linear-gradient(transparent, #000 14px) 34px 0 / calc(100% - 68px) 100% no-repeat, radial-gradient(circle at 100% 100%, #000 18px, transparent 34px) 0 0 / 34px 34px no-repeat, radial-gradient(circle at 0 100%, #000 18px, transparent 34px) 100% 0 / 34px 34px no-repeat;
  mask: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent) 0 100% / 100% calc(100% - 34px) no-repeat, linear-gradient(transparent, #000 14px) 34px 0 / calc(100% - 68px) 100% no-repeat, radial-gradient(circle at 100% 100%, #000 18px, transparent 34px) 0 0 / 34px 34px no-repeat, radial-gradient(circle at 0 100%, #000 18px, transparent 34px) 100% 0 / 34px 34px no-repeat; }
/* Naptárak beállítás */
.intro { margin: -6px 0 0; max-width: 820px; font-size: 14px; }
.res-grid { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.res-list { gap: 8px; }
.res-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 2px solid transparent; color: var(--ink); }
.res-item:hover { background: rgba(43,33,27,0.04); color: var(--ink); }
.res-item.on { border-color: var(--teal); background: #fff; }
.res-item .grow { display: flex; flex-direction: column; min-width: 0; }
.res-item b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-ini { width: 40px; height: 40px; border-radius: 12px; background: var(--c) center / cover no-repeat; color: #fff; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.res-ini.xl { width: 64px; height: 64px; border-radius: 18px; font-size: 18px; }
.res-head { display: flex; align-items: center; gap: 14px; }
.res-edit { gap: 14px; }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; width: 36px; height: 36px; border-radius: 12px; background: var(--c); border: 3px solid transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.6); cursor: pointer; }
.swatch input:checked + span { border-color: var(--ink); }
.swatch input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(43,33,27,0.14); background: #fff; font: 800 13px var(--font); cursor: pointer; }
.chip-check input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-check input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.hrow { display: grid; grid-template-columns: auto minmax(0, 1fr) 90px; gap: 8px 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hrow .hday { grid-column: 1 / -1; font-size: 13.5px; }
.hrow .seg.mini label { display: contents; }
.hrow .seg.mini input { position: absolute; opacity: 0; }
.hrow .seg.mini span { min-width: 64px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font: 800 12.5px var(--font); color: var(--muted); cursor: pointer; padding: 0 8px; }
.hrow .seg.mini input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(74,48,30,0.12); }
.hrow .seg.mini input[value="0"]:checked + span { color: var(--warn); }
.ranges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.range { display: inline-flex; align-items: center; gap: 4px; }
.input.time { width: 96px; min-height: 38px; height: 38px; padding: 0 8px; }
.closed-note { display: none; }
.hrow:has(input[value="0"]:checked) .ranges, .hrow:has(input[value="0"]:checked) .htotal { display: none; }
.hrow:has(input[value="0"]:checked) .closed-note { display: inline; }
.htotal { text-align: right; }
.sub-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; }
.unit-in { display: flex; align-items: center; gap: 8px; }
.unit-in .input { width: 110px; }
.three-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.cl-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 1000px) { .res-grid { grid-template-columns: 1fr; } .hrow { grid-template-columns: auto; } .hrow .ranges, .hrow .closed-note { grid-column: 1 / -1; } .htotal { display: none; } }

/* Beállítások → Szolgáltatások */
.svc-list { gap: 10px; }
.svc-group { display: flex; flex-direction: column; gap: 2px; }
.svc-cat { display: flex; align-items: center; gap: 8px; padding: 8px 6px 4px 12px; color: var(--ink); border-radius: 12px; border: 2px solid transparent; }
.svc-cat b { flex: 1 1 auto; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.svc-cat:hover { background: rgba(43,33,27,0.04); color: var(--ink); }
.svc-cat.on { border-color: var(--teal); background: #fff; }
.svc-cat .kebab { width: 28px; height: 28px; }
.svc-item { padding: 8px 12px; }
.svc-price { font-weight: 800; font-size: 13px; white-space: nowrap; }
.svc-empty { padding: 2px 12px 6px; }
.svc-hidden { display: none !important; }
.svc-hours { display: none; }
form:has(input[name="szukites"]:checked) .svc-hours { display: flex; }
.svc-hours .hrow { grid-template-columns: auto minmax(0, 1fr); }
.svc-hours .htotal { display: none; }
.lang-box { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: block; }
.lang-box summary { cursor: pointer; font-weight: 800; font-size: 13px; }
.lang-box > :not(summary) { margin-top: 12px; }
.chip-check .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 8px; display: inline-block; }
.svc-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-three .unit-in .input { width: 100%; min-width: 0; }
@media (max-width: 700px) { .svc-three { grid-template-columns: 1fr 1fr; } .svc-three > :first-child { grid-column: 1 / -1; } .svc-hours .hrow { grid-template-columns: auto; } }
.unit-in > span { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.svc-deadline .unit-in .input { width: 150px; }
.m-back { display: none; }
@media (max-width: 1000px) {
  .res-grid.has-sel > .res-list { display: none; }
  .res-grid.has-sel > .m-back { display: inline-flex; justify-self: start; }
  .res-grid:not(.has-sel) > .res-list ~ .res-edit { display: none; }
}

/* Beállítások → Bérlet-típusok */
.pt-ini { background: var(--ink); font-size: 14px; }
.pt-ini.off { background: rgba(43,33,27,0.25); }
.pt-preview { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, #1F6F6A, #2B211B); color: #fff; }
.pt-preview .muted { color: rgba(255,255,255,0.7); letter-spacing: .06em; font-weight: 800; font-size: 11px; }
.pt-preview b { font-size: 19px; }
.pt-preview span:last-child { font-size: 13.5px; opacity: .9; }
.pt-cat { margin-top: 2px; font-weight: 800; }
.pt-hours { display: none; }
form:has(input[name="idokorlat"]:checked) .pt-hours { display: flex; }
.pt-hours .hrow { grid-template-columns: auto minmax(0, 1fr); }
.pt-hours .htotal { display: none; }
.pt-ext { display: none; }
form:has(input[name="hosszabbithato"]:checked) .pt-ext { display: grid; }
form:has(input[name="korlatlan"]:checked) .pt-sessions { opacity: .45; pointer-events: none; }
@media (max-width: 700px) { .pt-hours .hrow { grid-template-columns: auto; } }
.two .unit-in .input { width: 150px; }

body.has-savebar .main { padding-bottom: 84px; }
@media (min-width: 1001px) { .res-grid { grid-template-columns: minmax(300px, 410px) minmax(0, 1fr); } }
.set-list-head { display: flex; gap: 8px; align-items: center; width: 100%; }
.set-list-head .input { flex: 1 1 auto; min-width: 0; }
.set-list-head .seg { flex: 0 0 auto; margin: 0; }
.ro-note { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
fieldset.ro { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
fieldset.ro .savebar, fieldset.ro .sub-actions, fieldset.ro [data-add-range], fieldset.ro [data-del-range], fieldset.ro [data-copy-monday], fieldset.ro a.btn, fieldset.ro .file-btn { display: none !important; }
fieldset.ro .input, fieldset.ro .chip-check, fieldset.ro .switch-row, fieldset.ro .seg { opacity: .75; }

/* Szolgáltatás-választó (Naptárak, Bérlet-típusok) */
.spick { display: flex; flex-direction: column; gap: 8px; }
.spick-top { display: flex; align-items: center; gap: 12px; }
.spick-top .input { flex: 1 1 auto; min-width: 0; }
.spick-top [data-spick-count] { white-space: nowrap; }
.spick-cat { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.6); }
.spick-cat summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; list-style: none; font-size: 13.5px; }
.spick-cat summary::-webkit-details-marker { display: none; }
.spick-cat summary b { flex: 1 1 auto; min-width: 0; }
.spick-cat .chev { display: inline-flex; color: var(--muted); transition: transform .15s; }
.spick-cat[open] .chev { transform: rotate(90deg); }
.spick-n { font: 800 12px var(--font); color: var(--muted); padding: 2px 8px; border-radius: 999px; background: rgba(43,33,27,0.06); }
.spick-n.on { background: var(--ink); color: #fff; }
.spick-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 12px; padding: 0 12px 10px; }
.spick-item { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.spick-item:hover { background: rgba(43,33,27,0.04); }
.spick-item input { width: 17px; height: 17px; accent-color: var(--teal); flex: 0 0 auto; }
.spick-item.svc-hidden { display: none; }
.img-slot .thumb.sq { background-size: contain; background-origin: content-box; padding: 6px; }
.pt-off { border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.pt-off summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-weight: 800; font-size: 13.5px; padding: 6px 4px; }
.pt-off summary::-webkit-details-marker { display: none; }
.pt-off .chev { display: inline-flex; color: var(--muted); transition: transform .15s; }
.pt-off[open] .chev { transform: rotate(90deg); }
.pt-off > .muted { padding: 0 4px 4px; }

/* Szalon: térkép tűvel, elérhetőség láthatóság-kapcsolóval */
.map-pick { position: relative; }
.map-canvas { height: 280px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #EFE9E2; display: flex; align-items: center; justify-content: center; }
.map-canvas.mapboxgl-map { display: block; }
.map-actions { margin-top: 8px; align-items: center; }
.vis-in { display: flex; align-items: center; gap: 10px; }
.vis-in .input { flex: 1 1 auto; min-width: 0; }
.vis-sw { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; cursor: pointer; position: relative; }
.vis-sw .vis-txt { width: 52px; font: 800 12px var(--font); color: var(--muted); }
.vis-sw .vis-txt::before { content: 'Rejtve'; }
.vis-sw input:checked ~ .vis-txt { color: var(--teal); }
.vis-sw input:checked ~ .vis-txt::before { content: 'Látszik'; }
.vis-in:has(.vis-sw input:not(:checked)) .input { color: var(--muted); }
.card .switch-row:last-child { border-bottom: 0; }
.cm-item:disabled { opacity: .4; cursor: default; background: none !important; color: var(--ink) !important; }
[data-sortable] > [data-sort-id] { touch-action: auto; }
.sorting { opacity: .9; box-shadow: 0 12px 30px rgba(43,33,27,0.18); background: #fff; border-radius: 16px; position: relative; z-index: 5; }
@media (hover: hover) { [data-sortable] > .svc-item, [data-sortable] > .svc-group > .svc-cat { cursor: grab; } }
.hrow { align-items: start; }
.hrow .seg.mini { margin-top: 2px; }
.hrow .closed-note, .hrow .htotal { padding-top: 10px; }

/* E-mail címzettek */
.mails { display: flex; flex-direction: column; gap: 8px; }
.mail-chips { display: flex; flex-direction: column; gap: 6px; }
.mail-chip { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; padding: 0 6px 0 14px; border-radius: 12px; background: #fff; border: 1px solid rgba(43,33,27,0.12); font: 600 15px var(--font); }
.mail-add { display: flex; gap: 8px; }
.mail-add .input { flex: 1 1 auto; min-width: 0; }
.err-text { color: var(--warn); }

/* Fizetés és kassza */
.set-seg { align-self: flex-start; flex-wrap: wrap; }
.set-seg label { display: contents; }
.set-seg input { position: absolute; opacity: 0; }
.set-seg span { min-height: 34px; border-radius: 9px; display: inline-flex; align-items: center; padding: 0 12px; font: 800 13px var(--font); color: var(--muted); cursor: pointer; }
.set-seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(74,48,30,0.12); }
.set-seg input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 1px; }
.vat-list { display: flex; flex-wrap: wrap; gap: 6px; }
.vat-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mail-add .btn { white-space: nowrap; flex: 0 0 auto; }
.wrong-row { display: flex; align-items: center; gap: 8px; justify-content: flex-end; padding: 2px 4px; }

/* Értesítések */
.set-seg a { display: contents; color: inherit; text-decoration: none; }
.set-seg a[aria-selected="true"] span { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(74,48,30,0.12); }
.mail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.mail-kinds { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.mail-kinds a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: 800 13px var(--font); color: var(--ink); }
.mail-kinds a[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.mail-kinds .tag { font-size: 10.5px; padding: 1px 6px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; border: 1px dashed var(--teal); background: rgb(var(--teal-rgb, 11 122 117) / 0.06); font: 700 13px var(--font); color: var(--ink); cursor: pointer; }
.mail-preview { position: sticky; top: 16px; }
.mail-preview iframe { width: 100%; height: 720px; border: 0; border-radius: 16px; background: #F7F1EA; pointer-events: none; user-select: none; } /* csak megnézni lehet: semmi nem kattintható benne */
@media (max-width: 1100px) { .mail-grid { grid-template-columns: 1fr; } .mail-preview { position: static; } }

/* Dolgozók és jogok */
.staff-ini { background: var(--teal-soft, #D5F3EF); color: var(--teal-dark, #075955); }
.res-item.inactive { opacity: .6; }
.perm-list { display: flex; flex-direction: column; }
.res-access { display: flex; flex-direction: column; gap: 6px; }
.ra-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.ra-row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); display: inline-block; margin-right: 8px; }
.log-filter { display: flex; gap: 12px; flex-wrap: wrap; }
.log-filter .field { min-width: 200px; }
.log-list { display: flex; flex-direction: column; }
.log-row { display: grid; grid-template-columns: 130px 160px auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.log-row .tag { justify-self: start; }
@media (max-width: 800px) { .log-row { grid-template-columns: 1fr auto; } .log-text { grid-column: 1 / -1; } .log-when { grid-column: 1 / -1; } }
.perm-list[hidden], [data-perms][hidden], .owner-note[hidden] { display: none !important; }
.pdf-thumb { background: #FFF3EB !important; color: var(--warn) !important; }
.fincat { flex-wrap: wrap; align-items: center; gap: 10px; }
.inline-edit summary { list-style: none; cursor: pointer; }
.inline-edit summary::-webkit-details-marker { display: none; }
.inline-edit[open] { flex-basis: 100%; order: 5; display: flex; flex-direction: column; gap: 6px; }
.warn-text { color: var(--warn) !important; }

/* egységes lista-sor és hozzáadó sor (ÁFA-kulcsok, címzettek, saját fizetési módok): az inputokkal azonos magasság és lekerekítés */
.item-list { display: flex; flex-direction: column; gap: 6px; }
.item-row { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 6px 0 14px; border-radius: 12px; background: #fff; border: 1px solid rgba(43,33,27,0.12); font-size: 15px; }
.item-row .grow { min-width: 0; }
.item-row .icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.add-row, .mail-add { display: flex; gap: 8px; align-items: stretch; }
.add-row > .input, .mail-add > .input { flex: 1 1 auto; min-width: 0; }
.add-row .unit-in { flex: 0 0 auto; }
.add-row .unit-in .input { width: 90px; }
.add-row > .btn, .mail-add > .btn { min-height: 46px; flex: 0 0 auto; white-space: nowrap; }
.sub-setting { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 12px 14px; margin-left: 2px; border-left: 2px solid var(--line); border-bottom: 1px solid var(--line); }
.custom-method { gap: 10px; }
.custom-method .sw-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
body.has-savebar .toast { bottom: 96px; }
body.has-savebar .ntoasts { bottom: 96px; }
[data-show-if][hidden] { display: none !important; }
.item-list.inline { flex-direction: row; flex-wrap: wrap; }
.item-list.inline .item-row { display: inline-flex; min-height: 40px; padding: 0 4px 0 12px; font-size: 14px; }
.sub-setting { padding: 12px 14px; margin: 2px 0 10px; border: 0; border-radius: 12px; background: rgba(43,33,27,0.04); gap: 8px; }
.sub-setting .set-seg { background: #fff; }
.stack[data-show-if] { display: flex; flex-direction: column; gap: 14px; }
/* összetartozó beállítás (pl. Készpénz + kerekítés): az elválasztó vonal a csoport alá kerül, nem közéjük */
.switch-row:has(+ .sub-setting:not([hidden])) { border-bottom: 0; }
.sub-setting:not([hidden]) { margin-bottom: 0; }
.sub-setting:not([hidden]) + * { border-top: 1px solid var(--line); padding-top: 12px; } /* a térköz a vonal alatt van, nem fölötte */

/* ---- Leltár (AdminLeltar) ---- */
.pill-amber { background: #FFF6E5; color: #8A5208; }
.hist-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: #FFF6E5; color: #6E4206; font-size: 14px; }
.hist-note span { flex: 1 1 260px; }
.grip { color: var(--muted-2); display: inline-flex; }
.inv-tools { display: flex; gap: 10px 14px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.inv-chips { flex-wrap: nowrap; overflow-x: auto; flex: 1 1 100%; min-width: 0; padding-bottom: 2px; }
.inv-chips .chip-link { flex: 0 0 auto; white-space: nowrap; }
.inv-opts { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; width: 100%; }
.inv-opts > .set-seg { margin-right: auto; }
.inv-sel { display: flex; flex-direction: column; gap: 4px; }
.inv-sel .label { font-size: 11px; }
.inv-sel .input { min-height: 38px; width: auto; font-size: 13.5px; padding: 0 10px; }
.inv-cols { grid-template-columns: minmax(0, 1fr) 96px 96px 104px 110px; } /* a terméknév kapja a lehető legtöbb helyet */
.inv-cols > span:nth-child(n+3) { text-align: right; }
.inv-list { display: flex; flex-direction: column; gap: 2px; }
.inv-sec { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px 4px; font-size: 12.5px; letter-spacing: 0.4px; color: var(--ink-2); }
.inv-sec:first-child { padding-top: 2px; }
.inv-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nm-col { display: flex; flex-direction: column; min-width: 0; }
.inv-thumb { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #6A4A3A; background: #fff center / cover no-repeat; }
.inv-thumb.lg { width: 64px; height: 64px; border-radius: 16px; font-size: 16px; }
.brow.inv-cols .pill { justify-self: start; }
.inv-foot { padding: 12px 4px 0; border-top: 1px solid var(--line); }
.inv-sec .kebab { margin-left: auto; }
.inv-sec { align-items: center; min-height: 40px; }
.inv-val { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.inv-val .sect { margin: 0; }
.inv-val-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; }
.inv-val-row b { font-size: 18px; }
.inv-hero { display: flex; align-items: center; gap: 14px; }
.inv-pname { font-size: 18px; font-weight: 800; line-height: 1.25; }
.inv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inv-stats .stat b { font-size: 17px; }
.wk-box { display: flex; flex-direction: column; gap: 8px; }
.wk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.wk-chart { display: flex; align-items: flex-end; gap: 4px; height: 84px; padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.wk-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: pointer; }
.wk-bar > span { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--teal); transition: background-color .15s ease; }
.wk-bar.dim > span { background: rgb(var(--teal-rgb, 11 122 117) / 0.4); }
.wk-axis { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.note.muted-note { background: rgba(43,33,27,0.05); color: var(--ink-2); font-weight: 600; margin: 0; }
.inv-modes { align-self: stretch; flex-wrap: nowrap; }
.inv-modes span { flex: 1 1 0; justify-content: center; white-space: nowrap; }
.subpanel .unit-in .input, .drawer .unit-in .input { width: 100%; min-width: 0; }
.subpanel .unit-in, .drawer .unit-in { min-width: 0; }
.mv-list { display: flex; flex-direction: column; }
.mv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.mv-row > :nth-child(2), .mv-row > :nth-child(4) { text-align: right; }
.margin-box { padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 800; background: rgba(43,33,27,0.04); color: var(--muted); }
.margin-box.ok { background: rgba(213,243,239,0.6); color: var(--teal-dark); }
.margin-box.low { background: #FFF3EB; color: var(--warn); }
.ro-val { display: flex; align-items: center; background: rgba(43,33,27,0.04); }
.drawer-foot.two { display: grid; }
@media (max-width: 1250px) { .inv-wrap .cal-side.narrow { flex-basis: 340px; } }
@media (max-width: 1100px) {
  .brow.inv-cols { min-height: 56px; }
  .inv-sel .input { width: 100%; }
  .inv-opts { width: 100%; }
  .inv-opts .inv-sel { flex: 1 1 140px; }
}
@media print {
  .side, .topwrap, .cal-side, .inv-tools, .list-tools, .page-head .row-gap, .inv-sec .kebab, .toast, .ntoasts, .scrim, .blob { display: none !important; }
  body, .page-bg { background: #fff !important; }
  .pagewrap { padding: 0 !important; display: block !important; }
  .card { box-shadow: none !important; border: 0 !important; background: #fff !important; backdrop-filter: none !important; padding: 0 !important; }
  .brow { min-height: 0; padding: 3px 0; break-inside: avoid; }
  .brow.on { border-color: transparent; }
  .inv-thumb { display: none; }
  .hide-m { display: block !important; }
  .inv-foot.show-m-flex { display: flex !important; }
}
.inv-wrap .list-tools .seg { overflow-x: auto; max-width: 100%; }
.inv-search-row { display: flex; gap: 8px; align-items: stretch; flex: 1 1 260px; min-width: 0; }
.inv-search-row .search-box { flex: 1 1 auto; min-width: 0; }
.inv-mseg { flex: 0 0 auto; align-self: stretch; align-items: stretch; flex-wrap: nowrap; }
.inv-mseg span { min-height: 0; padding: 0 11px; }
.btn-icon { width: 46px; padding: 0; justify-content: center; }
.inv-wrap .list-tools .seg a { white-space: nowrap; flex: 0 0 auto; }

.combo { position: relative; }
.combo-in { padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A5A4E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 14px no-repeat; cursor: pointer; }
.combo-in:focus { cursor: text; }
.combo-pop .combo-none { color: var(--muted); }
.combo-pop .combo-new { color: var(--teal-dark); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }
.inv-sec-btns { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; }
.inv-sec .kebab { margin-left: 0; }
.inv-fold svg { transition: transform .15s ease; }
.inv-fold[aria-expanded="false"] svg { transform: rotate(-90deg); }
.inv-rows { display: flex; flex-direction: column; gap: 2px; }
.inv-rows[hidden] { display: none; }
.inv-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.inv-pager .pager { flex: 1 1 auto; padding-top: 0; }
.inv-fold { width: 34px; height: 34px; border-radius: 10px; border: 0; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.inv-fold:hover { background: rgba(43,33,27,0.06); color: var(--ink); }

/* keresőmező: nagyító (keresés) / × (törlés) gomb a végén; a böngésző saját × jele helyett */
.search-box input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.sb-btn { flex: 0 0 auto; width: 32px; height: 32px; margin-right: -6px; border-radius: 9px; border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sb-go { background: var(--teal); color: #fff; }
.sb-clear { background: rgba(43,33,27,0.07); color: var(--ink-2); }
.sb-btn:hover { filter: brightness(.94); }
.sb-btn[hidden] { display: none; }

/* ---- Forgalom (AdminForgalom) ---- */
.rev-head { gap: 10px 14px; }
.rev-head .title-row { margin-right: auto; }
.rev-label { min-width: 150px; text-align: center; font-size: 15px; }
.rev-right { margin-left: auto; align-items: center; }
.rev-right .seg { min-height: 46px; align-items: stretch; } /* a Bruttó / Nettó ugyanolyan magas, mint mellette a gomb */
.rev-right .seg a { min-height: 0; }
/* ha nem fér ki egy sorba: az időszakváltó és a léptető (< 2026. október >) a teljes szélességet kitölti, egymás alatt;
   a gombok jobbra, egymás mellett */
@media (max-width: 1100px) {
  .rev-head .rev-seg { flex: 1 1 320px; }
  .rev-head .rev-seg a { flex: 1 1 0; justify-content: center; padding: 0 8px; }
  .rev-head .daynav { flex: 1 1 260px; }
  .rev-head .daynav .rev-label { flex: 1 1 auto; min-width: 0; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(255,255,255,0.7); border: 1px solid rgba(43,33,27,0.08); }
  .rev-head .rev-right { flex-wrap: nowrap; }
}
.rev-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rev-range .input { width: auto; min-height: 42px; }
.rev-chart-card .wk-head { align-items: baseline; flex-wrap: wrap; }
.rev-chart-card .wk-head .sect { margin: 0; }
.rev-plot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.rev-y { display: flex; flex-direction: column; justify-content: space-between; height: 180px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: right; padding-bottom: 1px; }
.rev-bars { height: 180px; gap: 3px; }
.rev-x { display: flex; gap: 3px; margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--muted); }
.rev-x span { flex: 1; min-width: 0; white-space: nowrap; overflow: visible; }
.rev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rev-grid.two-one { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
/* megosztás-bontás (Forgalom). FIGYELEM: osztálynévben ne legyen „share”, „social”, „banner”, „promo”, „ad-” – a reklám- és közösségi blokkolók elrejtik! */
.part-row { display: flex; flex-direction: column; gap: 5px; }
.part-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.top-row { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.top-n { width: 22px; color: var(--muted); }
.num { white-space: nowrap; text-align: right; }
.sale.voided .amt { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--warn); }
.sale-list { display: flex; flex-direction: column; gap: 2px; }
.sale { border-radius: 14px; border: 1px solid transparent; }
.sale[open] { background: #fff; border-color: rgba(43,33,27,0.08); }
.sale-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto 24px; gap: 10px; align-items: center; min-height: 56px; padding: 6px 12px; cursor: pointer; list-style: none; border-radius: 14px; }
.sale-row::-webkit-details-marker { display: none; }
.sale-row:hover { background: rgba(255,255,255,0.7); }
.sale-chev { color: var(--muted); display: inline-flex; transition: transform .15s ease; }
.sale[open] .sale-chev { transform: rotate(180deg); }
.sale-body { display: flex; flex-direction: column; gap: 6px; padding: 4px 14px 14px; }
.sale-item { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sale-item .grow { flex: 1 1 200px; }
.rev-bcols { grid-template-columns: 120px minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 1fr) 140px minmax(0, 0.8fr); }
.rev-fcols { grid-template-columns: 120px minmax(0, 1fr) auto; }
.push-right { margin-left: auto; }
@media (max-width: 1100px) { .rev-grid { grid-template-columns: 1fr 1fr; } .rev-grid.two-one { grid-template-columns: 1fr; } }
@media (max-width: 1100px) {
  .rev-grid { grid-template-columns: 1fr; }
  .rev-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .sale-row { grid-template-columns: 74px minmax(0, 1fr) auto; }
  .sale-chev { display: none; }
  .rev-bcols { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .rev-fcols { grid-template-columns: 90px minmax(0, 1fr) auto; }
  .rev-y { display: none; }
  .rev-plot { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Bevétel / kiadás (AdminBevetelKiadas) ---- */
.btn-ok-soft { border: 1px solid rgb(var(--teal-rgb, 11 122 117) / 0.3); background: var(--teal-soft); color: var(--teal-dark); }
.fin-cols { grid-template-columns: 80px minmax(0, 1fr) 110px 120px; }
.fin-cols > :nth-child(3) { text-align: left; justify-self: stretch; } /* a fizetési mód mindig egy oszlopban, balra rendezve */
.fin-cols > :nth-child(4) { text-align: right; }
.fin-hero { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 20px; background: var(--ink); color: #fff; }
.fin-hero .small { color: #E6DDD3; font-weight: 800; letter-spacing: 0.3px; }
.fin-title { font-size: 17px; }
.fin-amount { font-size: 28px; line-height: 1.1; }
.fin-hero.inc .fin-amount { color: #9BE3D9; }
.fin-hero.exp .fin-amount { color: #F6C8A3; }
.kv-list { display: flex; flex-direction: column; }
.kv-scroll .kv { grid-template-columns: auto minmax(0, 1fr); }
.kv-scroll .kv > span { white-space: nowrap; }
.kv-scroll .kv > b { white-space: nowrap; overflow-x: auto; scrollbar-width: none; } /* ha nem fér ki, az adat vízszintesen görgethető, nem csúszik a címkére */
.kv-scroll .kv > b::-webkit-scrollbar { display: none; }
/* közös felugró ablak (<dialog>): fejléc mindig látszik, a tartalom görög; telefonon alulról jön fel */
dialog.dlg { padding: 0; border: 0; border-radius: 22px; width: min(520px, calc(100% - 32px)); max-height: min(88vh, 860px); background: #FBF7F2; color: var(--ink); box-shadow: 0 30px 70px rgba(43,33,27,0.3); overflow: hidden; }
dialog.dlg[open] { display: flex; flex-direction: column; animation: popin .2s ease both; }
dialog.dlg::backdrop { background: rgba(43,33,27,0.35); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
@media (max-width: 600px) { dialog.dlg { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 92vh; } dialog.dlg[open] { animation: upin .25s ease both; } }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fin-rep { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.file-ico { flex: 0 0 auto; padding: 3px 6px; border-radius: 6px; background: #FFF3EB; color: var(--warn); font-size: 10.5px; font-weight: 800; }
.item-row .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.log-mini { display: flex; flex-direction: column; padding: 6px 0; border-bottom: 1px solid var(--line); }
.drop-file { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 14px; border-radius: 16px; border: 1.5px dashed rgba(43,33,27,0.2); text-align: center; cursor: pointer; }
.drop-file:hover { border-color: var(--teal); }
.drop-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fin-kind { align-self: stretch; flex-wrap: nowrap; }
.fin-kind span { flex: 1 1 0; justify-content: center; }
@media (max-width: 1100px) { .kv { grid-template-columns: 100px minmax(0, 1fr); } }
@media (max-width: 600px) { .kpi b { font-size: 21px; white-space: nowrap; } .kpi { padding: 14px; } .rev-x { overflow: hidden; } }

/* ---- Támogatás (AdminTamogatas) ---- */
.sup-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 14px; align-items: start; }
.sup-list { gap: 4px; }
.sup-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 58px; padding: 6px 10px; border-radius: 14px; border: 2px solid transparent; color: var(--ink); }
.sup-row:hover { color: var(--ink); background: rgba(255,255,255,0.7); }
.sup-row.on { border-color: var(--teal); background: #fff; }
.sup-row.closed { opacity: .75; }
.sup-ini { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.sup-row.closed .sup-ini { background: #B3A394; }
.sup-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sup-title { font-size: 19px; font-weight: 800; }
.msgs { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; }
.msg.me { align-self: flex-end; background: var(--teal-soft); border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-who { font-size: 12px; font-weight: 800; color: var(--muted); }
.msg-file { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.m-back { display: none; }
@media (max-width: 1100px) {
  .sup-grid { grid-template-columns: 1fr; }
  .sup-grid.has-sel .sup-list { display: none; }
  .sup-grid.has-sel .m-back { display: inline-flex !important; align-self: flex-start; }
  .msg { max-width: 96%; }
}

/* ---- Előfizetésem (AdminElofizetes) ---- */
.sub-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.sub-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sub-hero { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 20px; border-radius: 20px; background: var(--ink); color: #fff; }
.sub-hero .small { color: #E6DDD3; font-weight: 700; }
.sub-name { font-size: 24px; line-height: 1.2; }
.sub-state { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 10px 14px; border-radius: 14px; background: var(--teal-soft); color: var(--teal-dark); }
.sub-state .small { color: inherit; }
.sub-state.warn { background: #FFE6D5; color: var(--warn); }
.sub-usage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.usage { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 16px; background: rgba(43,33,27,0.04); }
.usage b { font-size: 18px; }
.chip-static { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); font-size: 13px; font-weight: 800; }
.sub-pending { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.sub-plans summary { list-style: none; cursor: pointer; }
.sub-plans summary::-webkit-details-marker { display: none; }
.sub-plans[open] summary { margin-bottom: 12px; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.plan-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid rgba(43,33,27,0.1); }
.plan-card.on { border: 2px solid var(--teal); }
.plan-card form, .plan-card .btn { margin-top: auto; }
.plan-card .btn { align-self: flex-start; }
.plan-card[hidden] { display: none; }
.plan-name { font-size: 16px; }
.plan-price { font-size: 22px; }
.inv-cols-s { grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.2fr) 120px 130px 64px; }
@media (max-width: 1000px) { .sub-grid { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .sub-usage { grid-template-columns: 1fr; } .inv-cols-s { grid-template-columns: 90px minmax(0, 1fr) auto; } .inv-cols-s > :nth-child(5), .inv-cols-s > :nth-child(6) { grid-column: auto; } }

/* nyitvatartás (naptár, szolgáltatás, bérlettípus) kis képernyőn: a nap neve és a Nyitva / Zárva egy sorban, a választó jobbra */
@media (max-width: 1000px) {
  .hrow, .svc-hours .hrow, .pt-hours .hrow { grid-template-columns: minmax(0, 1fr) auto; }
  .hrow .hday { grid-column: 1; align-self: center; }
  .hrow .seg.mini { grid-column: 2; justify-self: end; margin-top: 0; }
  .hrow .ranges, .hrow .closed-note { grid-column: 1 / -1; }
}
.nowrap { white-space: nowrap; flex-shrink: 0; }
/* telefonon a mértékegységes mezők (perccel, nappal, órával…) keskenyebbek, hogy a mértékegységgel együtt kiférjenek */
@media (max-width: 700px) {
  .two .unit-in, .svc-deadline .unit-in { min-width: 0; }
  .two .unit-in .input, .svc-deadline .unit-in .input, .unit-in .input { width: 100%; min-width: 0; max-width: 130px; }
  .two > .field { min-width: 0; }
}
/* Látható naptárak: a név balra (hosszú névnél szavanként több sorba törik), a választó mindig egy sorban, jobbra */
.ra-row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.ra-row > span:first-child { min-width: 0; overflow-wrap: break-word; hyphens: none; line-height: 1.3; }
.ra-row > .seg { flex-wrap: nowrap; white-space: nowrap; justify-self: end; }
@media (max-width: 380px) { .ra-row > .seg span { padding: 0 8px; } }
.rev-head .rev-right:not(:has(.seg)) { justify-content: flex-end; } /* Bevétel / kiadás: a két gomb egymás mellett, jobbra */

/* egységes magasság: a gombok ugyanolyan magasak, mint a mezők (46 px); hosszabb felirat a gombon belül több sorba törhet */
.btn-wrap { white-space: normal; text-align: center; line-height: 1.25; padding-top: 6px; padding-bottom: 6px; }
.hours-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
.hours-actions > form:not(.inline-form) { display: contents; }
.hours-actions > .btn, .hours-actions > form:not(.inline-form) > .btn { width: 100%; height: 100%; }
.hours-actions .inline-form > .btn { flex: 0 0 auto; }
.hours-actions > .inline-form { display: flex; grid-column: 1 / -1; }
.hours-actions .inline-form .field { flex: 1 1 auto; min-width: 0; }
fieldset.ro .hours-actions { display: none !important; }
/* leltár: a Rendezés és a Készlet napján egyforma magas */
.inv-sel input.input[type=date] { min-height: 38px; line-height: 36px; }
.bmodal-head .when.warn-text { color: var(--warn); }

/* ===== Listák kis helyen (kártyaszerű sorok) =====
   A lista a saját szélességéhez igazodik (nem a képernyőéhez): ha a mellette lévő panel miatt vagy telefonon keskeny,
   a táblázatos oszlopok helyett a név alatt egy második sorban látszik minden adat, jobbra a fontos érték (készlet, összeg, állapot). */
.lq { container: lista / inline-size; }
.c-sub, .c-sub-i { display: none; }
.nm-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.namecell .nm-col { min-width: 0; }
@container lista (max-width: 640px) {
  .list-head { display: none !important; }
  .brow .c-wide, .brow .c-wide-i, .brow .hide-m { display: none !important; }
  .brow .c-sub { display: block; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; } /* a második sor törhet, hogy minden adat látsszon */
  .brow .c-sub-i { display: inline; }
  .brow { row-gap: 2px; grid-template-areas: none !important; }
  .brow > * { grid-area: auto !important; }
  /* vendég: csak a név (előtte bérlet-ikon, ha van), alatta telefon · utolsó alkalom · alkalmak száma – a név kapja a teljes szélességet */
  .lq .brow.cust-cols { grid-template-columns: minmax(0, 1fr); }
  /* bérlet: a név (alatta a bérlet neve · vásárlás) a teljes szélességet kapja; jobbra keskeny oszlopban egymás alatt a maradék és a lejárat */
  .lq .brow.pass-cols { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "m r" "m e" !important; column-gap: 12px; }
  .lq .brow.pass-cols > .nm-col { grid-area: m !important; }
  .lq .brow.pass-cols > .meter-cell { grid-area: r !important; flex-direction: column-reverse; align-items: flex-end; gap: 3px; }
  .lq .brow.pass-cols > .meter-cell .meter { width: 64px; flex: 0 0 auto; }
  .lq .brow.pass-cols > span:nth-child(4) { grid-area: e !important; display: block !important; text-align: right; font-size: 12.5px; }
  /* leltár: a terméknév a lehető legszélesebb, jobbra csak a készlet */
  .lq .brow.inv-cols { grid-template-columns: minmax(0, 1fr) auto; }
  /* bevétel / kiadás: a fizetési mód kis helyen is külön oszlopban, balra rendezve */
  .lq .brow.fin-cols { grid-template-columns: minmax(0, 1fr) 72px 96px; font-size: 13.5px; } /* a dátum a megnevezés alá kerül, így a névnek több hely jut */
  .lq .brow.fin-cols > .fin-pay { display: block !important; font-size: 12.5px; }
  .lq .blist .brow:not([class*="-cols"]) { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .lq .blist .brow:not([class*="-cols"]) > .where { display: none; }
  .brow.rev-bcols { grid-template-columns: 92px minmax(0, 1fr) auto; }
  .sale-row { grid-template-columns: 74px minmax(0, 1fr) auto; }
  .sale-row .sale-chev { display: none; }
}

/* listákban a név nem vágódik le: szükség esetén két sorba törik */
.lq .brow .nm { white-space: normal; overflow-wrap: break-word; word-break: normal; hyphens: manual; overflow: visible; text-overflow: clip; line-height: 1.3; }
.pass-ic { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--teal-soft); color: var(--teal-dark); }
.cf-hint { color: var(--warn); font-weight: 700; margin-top: 4px; }
.cf-hint[hidden] { display: none; }
.confirm [data-c=yes]:disabled { opacity: .45; cursor: not-allowed; }
/* lehúzással frissítés: a böngésző saját újratöltése helyett a mienk (csak az oldal tartalma frissül) */
html, body { overscroll-behavior-y: contain; }
.ptr { position: fixed; top: 74px; left: 50%; z-index: 46; width: 40px; height: 40px; margin-top: -40px; border-radius: 50%; background: #fff; box-shadow: 0 8px 22px rgba(74,48,30,0.2); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translate(-50%, 0); pointer-events: none; }
.ptr .spinner { width: 20px; height: 20px; border-width: 2.5px; animation: none; }
.ptr.ready .spinner { border-color: var(--teal); border-top-color: var(--teal); }
.ptr.spin { transform: translate(-50%, 64px) !important; opacity: 1 !important; }
.ptr.spin .spinner { animation: spin .7s linear infinite; border-color: rgb(var(--teal-rgb, 11 122 117) / 0.2); border-top-color: var(--teal); }
.ptr.back { transition: transform .25s ease, opacity .25s ease; }
@media (min-width: 1101px) { .ptr { top: 90px; } }
/* kilépő animációk: a beúszó panel, a felugró ablak és a telefonos alsó panel ugyanolyan finoman zárul, ahogy megnyílt */
@keyframes drout { from { opacity: 1; transform: none } to { opacity: 0; transform: translateX(48px) } }
@keyframes fadeout { from { opacity: 1 } to { opacity: 0 } }
@keyframes popout { from { opacity: 1; transform: none } to { opacity: 0; transform: scale(.96) } }
@keyframes downout { from { opacity: 1; translate: 0 0 } to { opacity: 0; translate: 0 40px } }
.drawer-layer.closing { pointer-events: none; }
.drawer-layer.closing .drawer { animation: drout .26s cubic-bezier(.4,0,.6,1) forwards; }
.drawer-layer.closing .drawer-back { animation: fadeout .26s ease forwards; }
.bmodal-layer.closing { pointer-events: none; }
.bmodal-layer.closing .bmodal { animation: popout .2s ease forwards; }
.bmodal-layer.closing .bmodal-back { animation: fadeout .2s ease forwards; }
@media (max-width: 600px) { .bmodal-layer.closing .bmodal { animation: downout .22s ease forwards; } }
.detail.open.closing { animation: downout .22s ease forwards !important; pointer-events: none; }
body.sheet-closing .sheetback { animation: fadeout .22s ease forwards !important; }

/* a vendég online foglaláskor / lemondáskor írt üzenete a foglalás paneljén */
.note-box { background: #FFF6D6; color: #7A5A00; }
.guest-note { margin: 10px 0 4px; }
.guest-note p { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.45; color: #5C4400; white-space: pre-line; }
.legal-ta { min-height: 220px; padding: 12px 14px; font: 500 13px/1.55 var(--font); resize: vertical; }
/* a két kapcsoló egy-egy vonallal válik el (mint a többi kapcsolós lista); a kinyíló szerkesztő a vonal fölött marad */
.legal-field { border-bottom: 1px solid var(--line); }
.legal-field .switch-row { border-bottom: 0; }
.legal-field:has(.legal-own:checked) { padding-bottom: 14px; }
.legal-edit { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.legal-field:has(.legal-own:not(:checked)) .legal-edit { display: none; }
.gal-list { display: flex; flex-direction: column; gap: 6px; }
.gal-row { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; background: rgba(43,33,27,0.03); cursor: grab; }
.gal-row img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.gal-grip { color: var(--muted-2); font-weight: 800; letter-spacing: -2px; }
.gal-row.sorting { opacity: .6; }
.embed-row { display: flex; gap: 8px; }
.embed-row .input { font-size: 12px; }
/* a csengő alja és az összes értesítés oldala */
.bell-foot { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.bell-all { flex: 1; height: 38px; min-height: 0; padding-top: 0; padding-bottom: 0; box-sizing: border-box; justify-content: center; gap: 4px; font-weight: 800; }
.bell-set { flex: none; box-sizing: border-box; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); background: rgba(43,33,27,0.05); }
.notif-page { display: flex; flex-direction: column; gap: 4px; }
.notif-filters { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.notif-filters .notif-seg { flex: 1 1 auto; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.notif-seg::-webkit-scrollbar { display: none; }
.notif-seg a { flex: none; white-space: nowrap; gap: 6px; }
.notif-seg .n-ico.sm { margin: 0; background: rgba(255,255,255,0.9); }
.n-ico.n-new { color: var(--teal); } .n-ico.n-cancel, .n-ico.n-arrear { color: var(--warn); } .n-ico.n-review { color: #C07A10; } .n-ico.n-move { color: #3A3690; }
/* támogatás-válasz és előfizetés / számla a platformtól */
.note-row.n-ticket { background: rgba(230,228,255,0.5); } .note-row.n-sub { background: #EEF6EA; }
.n-ticket .n-ico, .n-ico.n-ticket { color: #3A3690; } .n-sub .n-ico, .n-ico.n-sub { color: #3E7A2E; }
.unread-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-right: 6px; vertical-align: middle; }
@media (max-width: 760px) { .notif-filters { flex-wrap: nowrap; flex-direction: column; align-items: stretch; } .notif-filters .chip-link { align-self: flex-start; } }
.chip-n { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: rgba(43,33,27,0.08); font-size: 11px; font-weight: 800; }
.chip.on .chip-n { background: rgba(255,255,255,0.25); }
.n-ico.sm { width: 18px; height: 18px; font-size: 11px; margin-right: 4px; }
.notif-day { margin: 12px 0 2px; }
.note-row.big { padding: 10px 8px; border-radius: 12px; }
.note-row.big:hover { background: rgba(43,33,27,0.04); }
.new-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-left: 6px; vertical-align: middle; }
/* rövid, a felülethez illő buborék ([data-tip], pl. a vendéglistán a bérlet-ikon: „Van bérlete”) – a body-hoz csatolva, így nem vágja le a sor */
.tipbox { position: fixed; z-index: 400; padding: 6px 10px; border-radius: 9px; background: var(--ink); color: #fff; font: 700 12px/1.2 var(--font); white-space: nowrap;
  box-shadow: 0 8px 20px rgba(43,33,27,0.22); pointer-events: none; transform: translate(-50%, calc(-100% - 8px)); animation: tipin .14s ease both; }
.tipbox::after { content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); }
@keyframes tipin { from { opacity: 0; margin-top: 4px; } to { opacity: 1; margin-top: 0; } }
.dp.past { opacity: .7; }
.dp.past b { color: var(--muted); }
.tp.past span { background: rgba(43,33,27,0.04); color: var(--muted); border-style: dashed; }
[data-swipe] { touch-action: pan-y; }
.note-row.big .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* áthelyezés: zárt nap (választható, figyelmeztetéssel) és egyedi időpont */
.dp.closed { background: repeating-linear-gradient(135deg, #fff 0 6px, rgba(43,33,27,0.04) 6px 12px); border-style: dashed; }
.dp.closed small:last-child { font-size: 9.5px; color: #A2410C; }
.dp.closed.on { background: var(--teal); border-style: solid; }
.dp.closed.on small:last-child { color: #DFF5F2; }
.mv-custom { display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(43,33,27,0.04); }
.mv-custom .tp-custom span { padding: 0 14px; }
.mv-custom .mv-time { min-height: 40px; }
.mv-custom .mv-force { grid-column: 1 / -1; }
/* jogi szövegek: nyelvi fülek (magyar / angol) – a nem választott nyelv szerkesztője rejtve, de a mentésben benne van */
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.legal-pane { display: flex; flex-direction: column; gap: 6px; }
.rev-drawer { display: flex; flex-direction: column; gap: 8px; }
.rev-drawer p { margin: 0; font-size: 15px; line-height: 1.5; white-space: pre-line; }
.stars-lg { color: #C07A10; font-size: 22px; letter-spacing: 2px; }

/* ===== Platform admin (5. szakasz): sötét oldalmenü, a többi elem az admin felületé ===== */
.platform .pf-nav { background: #2B211B; border-color: #2B211B; color: #fff; backdrop-filter: none; }
.platform .pf-nav .mi { color: rgba(255,255,255,0.86); }
.platform .pf-nav .mi:hover { background: rgba(255,255,255,0.08); color: #fff; }
.platform .pf-nav .mi[aria-current="page"] { background: #fff; color: var(--ink); }
.platform .pf-nav .nav-sep { background: rgba(255,255,255,0.14); }
.platform .pf-nav .icon-btn { background: rgba(255,255,255,0.1); color: #fff; border-color: transparent; }
.pf-brand { display: flex; flex-direction: column; line-height: 1.15; }
.pf-brand b { font-size: 16px; }
.pf-brand small { font-size: 11px; font-weight: 800; color: #F2B27A; letter-spacing: .6px; }
.pf-who { padding: 6px 12px 8px; color: rgba(255,255,255,0.6); line-height: 1.5; }
.pf-topbar { display: none; }
@media (max-width: 900px) { .pf-topbar { display: flex; align-items: center; gap: 10px; } .pf-topbar .pf-date { margin-left: auto; font-size: 12px; color: var(--muted); } }
.platform .col { display: flex; flex-direction: column; min-width: 0; }
.pf-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pf-kpi { padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,0.86); border: 1px solid var(--glass-line); display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; }
.pf-kpi:hover { color: var(--ink); box-shadow: 0 6px 18px rgba(74,48,30,0.1); }
.pf-kpi span { font-size: 12px; font-weight: 700; color: var(--muted); }
.pf-kpi b { font-size: 28px; line-height: 1.1; }
.pf-kpi.amber b { color: #8A5208; } .pf-kpi.red b { color: #B42318; } .pf-kpi.warn b { color: #A2410C; }
.pf-todo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.pf-todo:first-of-type { border-top: 0; }
.pf-fees { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: baseline; }
.pf-fees b { font-size: 17px; text-align: right; }
.pill-red { background: #FDE8E7; color: #B42318; } .pill-amber { background: #FFF6E5; color: #8A5208; } .pill-dark { background: var(--ink); color: #fff; }
.pf-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.pf-facts > div { padding: 10px 12px; border-radius: 14px; background: rgba(43,33,27,0.04); display: flex; flex-direction: column; gap: 1px; }
.pf-facts span { font-size: 11.5px; font-weight: 700; color: var(--muted); } .pf-facts b { font-size: 16px; }
.pf-bar { height: 8px; border-radius: 999px; background: rgba(43,33,27,0.08); overflow: hidden; }
.pf-bar > span { display: block; height: 100%; background: var(--teal); } .pf-bar > span.hi { background: var(--warn); }
.pf-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.pf-msg { padding: 12px 14px; border-radius: 16px; display: flex; flex-direction: column; gap: 4px; background: #fff; margin-right: 40px; }
.pf-msg.p { background: rgb(var(--teal-rgb, 11 122 117) / 0.08); margin: 0 0 0 40px; }
.pf-msg.n { background: #FFF6E5; border: 1px dashed rgba(180,83,9,0.35); margin: 0 0 0 40px; }
.pf-msg .who { font-size: 12px; font-weight: 800; color: var(--muted); }
.pf-msg p { margin: 0; white-space: pre-line; font-size: 14px; line-height: 1.5; }
.pf-lead { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.pf-lead:first-child { border-top: 0; }
.pf-table { display: flex; flex-direction: column; }
.pf-trow { display: grid; gap: 10px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line); font-size: 13.5px; }
.pf-trow.head { border-top: 0; font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: .3px; }
.pf-inv { grid-template-columns: 1.1fr 1.4fr 1.6fr .9fr .9fr auto; }
.pf-acc { grid-template-columns: 1.6fr 1.6fr 1fr .8fr auto; }
.pf-hol { grid-template-columns: 1fr 2fr auto; }
@media (max-width: 760px) { .pf-trow { grid-template-columns: 1fr 1fr !important; } .pf-trow.head { display: none; } }
.imp-bar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: #2B211B; color: #fff; font-size: 13px; font-weight: 700; border-radius: 0 0 14px 14px; margin: -4px 0 8px; }
.imp-bar form { margin-left: auto; }
.imp-bar .btn { min-height: 32px; }
.totp-key { font: 800 18px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px; padding: 12px 14px; border-radius: 12px; background: rgba(43,33,27,0.05); text-align: center; word-break: break-all; }
.pf-srow { display: flex; align-items: center; gap: 10px; }
.pf-srow.on { background: #fff; box-shadow: inset 0 0 0 2px var(--teal); }
.pf-shead { display: flex; align-items: center; gap: 12px; }
.pf-shead .mini-logo { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: rgba(43,33,27,0.06); font-weight: 800; flex: none; }
.pf-shead .mini-logo img { width: 100%; height: 100%; object-fit: cover; }
.pf-custom { border: 1px dashed rgba(43,33,27,0.18); border-radius: 14px; padding: 12px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pf-custom[hidden] { display: none; }
.pf-more { border-top: 1px solid var(--line); padding-top: 10px; }
.pf-more summary { cursor: pointer; font-weight: 800; font-size: 13px; }
.pf-more[open] summary { margin-bottom: 10px; }
.pf-owner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border-radius: 12px; background: rgba(43,33,27,0.04); }
.row-gap.wrap { flex-wrap: wrap; }
.totp-qr { display: flex; justify-content: center; padding: 8px; border-radius: 16px; background: #fff; }
.totp-qr svg { width: 220px; height: 220px; max-width: 100%; }

/* Első beállítás (telepítő) */
.setup-intro { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.setup-meter { display: block; height: 8px; border-radius: 99px; background: rgba(43,33,27,0.08); overflow: hidden; }
.setup-meter > span { display: block; height: 100%; border-radius: inherit; background: var(--teal); transition: width .3s ease; }
.setup-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.setup-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.setup-num { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: rgba(43,33,27,0.06); color: var(--ink-2); }
.setup-step.ok .setup-num { background: var(--teal); color: #fff; }
.setup-step.locked { opacity: .6; }
.setup-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.setup-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.setup-acts { margin-top: 4px; align-items: center; }
.setup-acts form { margin: 0; }
.setup-sub { flex-basis: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line); }
.setup-finish { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.setup-finish form { margin: 0; }
.tb-btn.off, .btn.off { opacity: .45; cursor: not-allowed; }
.setup-back { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(213,243,239,0.7); color: var(--ink); font-weight: 800; font-size: 14px; }
.setup-back .muted { margin-left: auto; font-weight: 600; }
/* a termék logója (pickr-jel): a kerek sarkú csempe maga az SVG */
.logo-m.mark { background: none; padding: 0; overflow: hidden; }
.logo-m.mark svg { width: 100%; height: 100%; display: block; }
.badge[hidden] { display: none !important; }
/* Beállítások → Vállalkozás: kikapcsolt nyilvános foglalási oldalnál a csak ahhoz tartozó részek rejtve */
.gp-master { margin-bottom: 14px; }
.gp-master .switch-row { border-bottom: 0; }
#content:has(input[name="foglalasi_oldal"]:not(:checked)) .gp-only, .gp-off .gp-only { display: none !important; } /* .gp-off: a foglalási oldal ki van kapcsolva (másik oldalon) */

/* Első beállítás – lépésenkénti telepítő */
.wiz { max-width: 780px; margin: 0 auto 24px; display: flex; flex-direction: column; gap: 14px; }
.wiz-steps { display: flex; gap: 6px; overflow-x: auto; padding: 2px; }
.wiz-dot { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 99px; background: rgba(255,255,255,0.6); color: var(--muted); font-weight: 700; font-size: 13px; white-space: nowrap; }
.wiz-dot .n { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(43,33,27,0.08); color: var(--ink-2); font-weight: 800; font-size: 12px; }
.wiz-dot.ok .n { background: var(--teal); color: #fff; }
.wiz-dot.on { background: var(--ink); color: #fff; }
.wiz-dot.on .n { background: #fff; color: var(--ink); }
.wiz-dot:hover { color: var(--ink); } .wiz-dot.on:hover { color: #fff; }
.wiz-card { display: flex; flex-direction: column; gap: 14px; padding: 26px 28px; }
.wiz-card h1 { margin: 0; font-size: 26px; letter-spacing: -.4px; }
.wiz-count { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--teal); }
.wiz-lead { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.wiz-plan { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.wiz-plan li span { display: block; color: var(--muted); font-size: 14px; }
.wiz-example { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #FFF8EA; font-size: 14px; color: #6A4A10; }
.wiz-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wiz-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(213,243,239,0.55); }
.wiz-list li b { display: block; }
.wiz-add { border: 1px dashed rgba(43,33,27,0.2); border-radius: 16px; padding: 14px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.wiz-add legend { padding: 0 6px; font-weight: 800; font-size: 13px; }
.wiz-add > .btn { align-self: flex-start; }
.wiz-add-d > summary { list-style: none; display: inline-flex; margin-bottom: 10px; }
.wiz-add-d > summary::-webkit-details-marker { display: none; }
.wiz-addr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.wiz-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.wiz-choices.col { grid-template-columns: 1fr; }
.wiz-choice { position: relative; display: flex; cursor: pointer; }
.wiz-choice input { position: absolute; opacity: 0; }
.wiz-choice > span { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 14px; border: 2px solid rgba(43,33,27,0.12); background: #fff; }
.wiz-choice small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.wiz-choice input:checked + span { border-color: var(--teal); background: rgba(213,243,239,0.5); }
.wiz-choice input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.wiz-hours { display: grid; grid-template-columns: minmax(120px, 1fr) auto auto auto; gap: 8px 10px; align-items: center; }
.wh-day { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.wiz-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { display: inline-flex; padding: 8px 14px; border-radius: 99px; border: 2px solid rgba(43,33,27,0.12); background: #fff; font-weight: 700; font-size: 14px; }
.chip-check input:checked + span { border-color: var(--teal); background: rgba(213,243,239,0.6); color: var(--teal-dark); }
.chip-check input:checked + span::before { content: '✓'; margin-right: 7px; }
.wiz-sum { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wiz-sum li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.wiz-sum li svg { color: var(--teal); flex: none; margin-top: 2px; }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.wiz-next { min-height: 46px; padding: 0 20px; font-size: 15px; gap: 6px; }
.wiz-enter { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wiz-ico { align-self: center; width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(213,243,239,0.8); color: var(--teal); }
@media (max-width: 600px) {
  .wiz-card { padding: 20px 16px; }
  .wiz-card h1 { font-size: 22px; }
  .wiz-addr { grid-template-columns: 1fr; }
  .wiz-hours { grid-template-columns: 1fr auto auto auto; gap: 8px 6px; }
  .wiz-hours .input.sm { width: 92px; }
  .wiz-nav .btn { flex: 1; justify-content: center; }
}
/* bemutató (túra) */
.tour { position: fixed; inset: 0; z-index: 400; }
.tour-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(30,22,17,0.62); transition: all .28s ease; pointer-events: none; }
.tour-card { position: fixed; z-index: 401; max-width: calc(100vw - 24px); background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: 0 18px 50px rgba(0,0,0,0.25); display: flex; flex-direction: column; gap: 6px; transition: left .28s ease, top .28s ease; }
.tour-n { font-size: 12px; font-weight: 800; color: var(--teal); letter-spacing: .5px; }
.tour-t { font-size: 18px; }
.tour-d { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.tour-acts { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.tour-acts .btn { white-space: nowrap; }
.tour-skip { min-height: 32px; display: inline-flex; align-items: center; padding: 0; white-space: nowrap; }
.tour-right { margin-left: auto; display: flex; align-items: center; gap: 8px; } /* Vissza + Tovább mindig egymás mellett, jobbra; a Kihagyom balra */
.tour-card > .tour-go { margin-top: 8px; justify-content: center; } /* a záró lépés gombja külön sorban, nem törik ketté */
.tour-help { font-weight: 800; font-size: 17px; text-decoration: none; color: var(--ink-2); }
.wiz-hours .wh-day:has(input:not(:checked)) + .input, .wiz-hours .wh-day:has(input:not(:checked)) + .input + span + .input { opacity: .35; }

.wiz-item { flex-wrap: wrap; }
.wiz-edit { flex-basis: 100%; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; padding-top: 8px; }
.wiz-edit:not([hidden]) { display: grid; }
@media (max-width: 600px) { .wiz-edit { grid-template-columns: 1fr 1fr; } .wiz-edit > .input { grid-column: 1 / -1; } }
.wiz-edit[hidden] { display: none; }
/* belépés: a vállalkozás kis logója (kép vagy kezdőbetűk) és az e-mailes belépés vállalkozás-választója */
.chip .mini-logo, .salon-chosen .mini-logo { overflow: hidden; }
.chip .mini-logo img, .salon-chosen .mini-logo img { width: 100%; height: 100%; object-fit: cover; }
.chip.chip-wide { align-self: stretch; width: 100%; min-height: 52px; border-radius: 14px; padding: 6px 12px 6px 8px; text-align: left; cursor: pointer; }
.chip.chip-wide .mini-logo { width: 38px; height: 38px; border-radius: 11px; font-size: 12px; }

/* jogi szövegek szerkesztője: egyszerű eszköztár (félkövér, dőlt, címsor, felsorolás, számozott lista) és előnézet */
.md-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px; border-radius: 12px 12px 0 0; border: 1px solid rgba(43,33,27,0.14); border-bottom: 0; background: rgba(43,33,27,0.04); }
.md-bar button { min-width: 34px; height: 32px; padding: 0 9px; border: 0; border-radius: 8px; background: transparent; font: 800 13px var(--font); color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.md-bar button:hover { background: #fff; color: var(--ink); }
.md-bar button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(74,48,30,0.12); }
.md-bar .md-sep { width: 1px; height: 20px; background: rgba(43,33,27,0.14); margin: 0 3px; }
.md-bar .md-prev { margin-left: auto; }
.md-wrap { display: flex; flex-direction: column; }
.md-wrap .legal-ta { border-top-left-radius: 0; border-top-right-radius: 0; }
.md-view strong, .legal-body strong { font-weight: 800; color: var(--ink); }
.md-view { min-height: 220px; padding: 12px 16px; border: 1px solid rgba(43,33,27,0.14); border-radius: 0 0 12px 12px; background: #fff; font-size: 14px; line-height: 1.6; color: var(--ink-2); overflow: auto; max-height: 520px; }
.md-view h2 { font-size: 19px; margin: 2px 0 12px; color: var(--ink); } .md-view h3 { font-size: 15px; margin: 16px 0 6px; color: var(--ink); } .md-view h4 { font-size: 14px; margin: 12px 0 4px; }
.md-view p { margin: 0 0 10px; } .md-view ul, .md-view ol { margin: 0 0 10px; padding-left: 22px; } .md-view a { color: var(--teal); }
.md-help { font-size: 12px; }

/* vállalkozásválasztó a menü tetején (ugyanazzal a fiókkal több vállalkozás) */
.biz-pick { position: relative; margin: 2px 0 8px; width: 0; min-width: 100%; } /* a hosszú név nem szélesíti a menüt: a doboz szélességét a menü adja, a név levágva (…) */
.biz-cur { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 16px; border: 1px solid rgba(43,33,27,0.1); background: rgba(255,255,255,0.7); text-align: left; cursor: pointer; font: inherit; color: var(--ink); transition: background .15s, box-shadow .15s; }
.biz-cur:hover { background: #fff; box-shadow: 0 6px 18px rgba(74,48,30,0.08); }
.biz-cur .chev { margin-left: auto; color: var(--muted); display: inline-flex; transition: transform .2s; }
.biz-cur[aria-expanded="true"] .chev { transform: rotate(180deg); }
.biz-nm { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.biz-nm small { font-size: 11px; font-weight: 800; letter-spacing: .4px; color: var(--muted); text-transform: uppercase; }
.biz-nm b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-logo { width: 34px; height: 34px; flex: none; border-radius: 10px; overflow: hidden; background: #F3D9C4; color: #8A5A3A; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.biz-logo img { width: 100%; height: 100%; object-fit: cover; }
.biz-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 18px 44px rgba(43,33,27,0.18); display: flex; flex-direction: column; gap: 2px; animation: fadein .15s ease both; }
.biz-list[hidden] { display: none; }
.biz-list form { margin: 0; }
.biz-opt { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 0; border-radius: 12px; background: transparent; font: 700 14px var(--font); color: var(--ink); text-align: left; cursor: pointer; }
.biz-opt:hover { background: rgb(var(--teal-rgb, 11 122 117) / 0.08); }
.biz-opt.on { background: var(--teal-soft); color: var(--teal-dark); }
.biz-opt .biz-logo { width: 30px; height: 30px; }
.biz-opt .grow { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* belépés: vállalkozás-választó gombok – rámutatva kiemelődnek */
.chip.chip-wide { transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.chip.chip-wide:hover { background: #fff; border-color: rgb(var(--teal-rgb, 11 122 117) / 0.45); box-shadow: 0 8px 22px rgba(74,48,30,0.1); transform: translateY(-1px); }
.chip.chip-wide:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* összesített naptár, telefon: a naptárválasztó egy sorban görgethető, színpöttyel; a kiválasztott látszik */
.res-pick { margin-bottom: 4px; flex-wrap: nowrap; overflow-x: auto; flex: none; min-width: 0; padding-bottom: 2px; }
.res-pick .chip-link { flex: 0 0 auto; white-space: nowrap; }
.res-pick .chip-link { gap: 6px; }
.res-pick .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* felső sáv kis telefonon (6–7 jegyű napi forgalommal is egy sorban): a forgalom nem törik, a gombok kicsit keskenyebbek */
.rev-btn { white-space: nowrap; flex: none; }
.rev-short { display: none; }
@media (max-width: 380px) {
  .topbar { gap: 6px; padding: 8px 10px; }
  .topbar .tools { gap: 6px; }
  .topbar .icon-btn, .topbar .tb-btn { min-width: 40px; width: 40px; padding: 0; justify-content: center; }
  .rev-btn { padding: 0 8px; gap: 3px; font-size: 12px; }
  .rev-btn svg { display: none; }
}
@media (max-width: 340px) { .rev-btn:has(.rev-short) .rev-amt { display: none; } .rev-short { display: inline; } }
/* Beállítások: a csoport oldalai fülsorként az oldal tetején */
.set-tabs { align-self: flex-start; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; align-items: center; margin-top: -4px; }
.set-tabs a { white-space: nowrap; flex: none; }

/* Vendégoldal → Oldal és megjelenés: témaválasztó, élő minta, sorrend-lista, megosztási előnézet */
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.theme-opt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 14px; border: 1.5px solid rgba(43,33,27,0.1); background: #fff; cursor: pointer; }
.theme-opt input { position: absolute; opacity: 0; }
.theme-opt:has(input:checked) { border-color: var(--ink); box-shadow: 0 6px 16px rgba(74,48,30,0.12); }
.theme-opt:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.theme-sw { height: 46px; border-radius: 10px; display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid rgba(43,33,27,0.06); }
.theme-sw i { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.theme-sw i.ln { width: auto; flex: 1; height: 8px; border-radius: 99px; opacity: .35; }
.theme-nm { font: 800 12px var(--font); padding: 0 2px 2px; }
.color-in { display: flex; align-items: center; gap: 10px; }
.color-in input[type=color] { width: 46px; height: 40px; padding: 0; border: 1px solid rgba(43,33,27,0.15); border-radius: 10px; background: #fff; cursor: pointer; }
.color-in code { font: 700 13px ui-monospace, monospace; color: var(--muted); }
.warn-t { color: var(--warn) !important; font-weight: 700; }
.theme-prev { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--bg); border: 1px solid rgba(43,33,27,0.08); }
.theme-prev .tp-blob { position: absolute; width: 180px; height: 180px; right: -60px; top: -70px; border-radius: 50%; background: var(--blob1); filter: blur(40px); opacity: .6; }
.theme-prev > span:not(.tp-blob) { position: relative; }
.tp-head { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.tp-logo { width: 34px; height: 34px; border-radius: 11px; background: #fff center / cover no-repeat; display: inline-flex; align-items: center; justify-content: center; font: 800 12px var(--font); color: var(--teal-dark); }
.tp-chips { display: flex; gap: 6px; }
.tp-chip { padding: 5px 10px; border-radius: 99px; background: rgba(43,33,27,0.06); font: 700 12px var(--font); }
.tp-chip.on { background: var(--teal-soft); color: var(--teal-dark); font-weight: 800; }
.tp-card { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,0.85); font-size: 13px; }
.tp-card span { color: var(--muted); }
.tp-card .tp-link { color: var(--teal); font-weight: 800; }
.tp-btn { align-self: stretch; height: 46px; border-radius: var(--btn-r); background: var(--teal); color: var(--on-teal); font: 800 15px var(--font); display: flex; align-items: center; justify-content: center; }
.order-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.order-list li { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 14px; border-radius: 12px; background: #fff; border: 1px solid rgba(43,33,27,0.08); font-weight: 700; font-size: 14px; }
.order-list li .grow { flex: 1; }
.order-list li:first-child [data-move="-1"], .order-list li:last-child [data-move="1"] { opacity: .3; pointer-events: none; }
.order-list li:has([data-order-on]:not(:checked)) .grow { opacity: .45; text-decoration: line-through; }
.order-list.compact li { padding-top: 3px; padding-bottom: 3px; font-size: 13px; }
.order-list li.empty { opacity: .6; }
.og-prev { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid rgba(43,33,27,0.12); background: #F0F2F5; max-width: 420px; }
.og-img { aspect-ratio: 1200 / 630; background: #E4E6EB center / cover no-repeat; }
.og-txt { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; font-family: system-ui, -apple-system, sans-serif; }
.og-txt small { font-size: 11px; color: #65676B; letter-spacing: .3px; }
.og-txt b { font-size: 15px; color: #050505; }
.og-txt span { font-size: 13px; color: #65676B; }
@media (max-width: 700px) { .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* rejtett szolgáltatás: a foglalási link és a QR-kód */
.hidden-link { display: flex; flex-direction: column; gap: 8px; }
.hidden-link code { font-size: 12px; word-break: break-all; background: #fff; padding: 6px 8px; border-radius: 8px; }
.qr-box { margin-top: 8px; background: #fff; padding: 10px; border-radius: 12px; align-self: flex-start; display: inline-block; }
.note-row.n-request { background: #FFF8EA; } .n-request .n-ico, .n-ico.n-request { color: #B45309; }
/* jóváhagyásra váró online foglalás */
.ev.pending { outline: 2px dashed #B45309; outline-offset: -2px; }
.paybox.approval-box { background: #FFF8EA; border: 1px solid rgba(180,83,9,0.25); display: flex; flex-direction: column; gap: 8px; }

/* Kérdőív-szerkesztő */
.q-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: q; }
.q-row { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 8px 34px; border-radius: 14px; background: #fff; border: 1px solid rgba(43,33,27,0.1); counter-increment: q; }
.q-row::before { content: counter(q) "."; position: absolute; left: 12px; top: 20px; font: 800 13px var(--font); color: var(--muted); }
.q-main { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 8px; }
.q-foot { display: flex; align-items: center; gap: 6px; }
.q-list li:first-child [data-q-move="-1"], .q-list li:last-child [data-q-move="1"] { opacity: .3; pointer-events: none; }
@media (max-width: 700px) { .q-main { grid-template-columns: 1fr; } }
/* kitöltött kérdőív a foglalásnál / a vendégnél */
.qresp { display: block; padding: 12px; border-radius: 14px; background: rgba(255,255,255,0.7); border: 1px solid rgba(43,33,27,0.08); }
.qresp[open] > summary { margin-bottom: 6px; }
.qresp summary { cursor: pointer; }
.qresp dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.qresp dt { font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 4px; }
.qresp dd { margin: 0; font-weight: 600; white-space: pre-wrap; }
.qresp .sig { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 19px; }
/* csoportos alkalom a napi naptárban: fejléc a létszámmal, alatta beljebb a résztvevők */
.slot.session { background: var(--teal-soft); border-color: rgb(var(--teal-rgb, 11 122 117) / 0.25); }
.slot.session.full { background: #FFF3EB; }
.slots li.in-session { padding-left: 22px; position: relative; }
.slots li.in-session::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; border-left: 2px solid rgb(var(--teal-rgb, 11 122 117) / 0.25); }
/* naptár: foglalási mód és órarendes alkalmak */
.mode-pick { padding: 12px; border-radius: 14px; background: rgba(43,33,27,0.04); margin-bottom: 6px; }
.sess-add { padding: 14px; border-radius: 16px; border: 1.5px dashed rgba(43,33,27,0.16); margin-top: 8px; }
.ev.group { outline: 2px solid rgb(var(--teal-rgb, 11 122 117) / 0.35); outline-offset: -2px; }
/* Forgalom → Dolgozók */
.staff-rev { display: flex; flex-direction: column; gap: 4px; overflow-x: auto; }
.sr-row { display: grid; grid-template-columns: minmax(160px, 1.6fr) .7fr 1fr .6fr 1.2fr 1fr 1fr 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.7); font-size: 14px; min-width: 860px; }
.sr-row.head { background: transparent; font: 800 11px var(--font); letter-spacing: .5px; color: var(--muted); padding-top: 0; padding-bottom: 0; }
.sr-row .nm { display: flex; flex-direction: column; }
.sr-row .meter.sm { display: inline-block; width: 60px; height: 6px; vertical-align: middle; }
@media (max-width: 700px) {
  .sr-row { min-width: 0; grid-template-columns: 1fr 1fr; }
  .sr-row.head { display: none; }
  .sr-row .nm { grid-column: 1 / -1; }
  .sr-row [data-l]::before { content: attr(data-l); display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
}

/* Sztornó ablak */
.void-modal { max-width: 560px; }
.vgroup { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid rgba(43,33,27,0.1); }
.vgroup.linked { border-style: dashed; border-color: rgb(var(--teal-rgb, 11 122 117) / 0.4); }
.vrow { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.vrow input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--warn); flex: none; }
.vrow .grow { display: flex; flex-direction: column; gap: 4px; }
.vitem { display: flex; flex-direction: column; }
.vstock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0 0 30px; }
.void-sum { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 14px; background: #FFF3EB; font-weight: 700; }
.void-sum b { font-size: 18px; color: var(--warn); }
.sale-item.voided .grow, .sale-item.voided .num { text-decoration: line-through; opacity: .6; }

/* Vendégoldal → Oldal és megjelenés: elérhetőségek helyben szerkesztve (sorrend, láthatóság, adat) */
.con-list li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 8px; padding: 5px 6px 5px 12px; }
.con-list .con-lab { font-size: 13.5px; }
.con-list .input { min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-weight: 600; }
.con-list .con-acts { display: inline-flex; align-items: center; gap: 4px; }
.con-list li:has(.vis-sw input:not(:checked)) .con-lab { opacity: .45; text-decoration: line-through; }
@media (max-width: 520px) { .con-list li { grid-template-columns: minmax(0, 1fr) auto; } .con-list .input { grid-column: 1 / -1; grid-row: 2; } }

/* Dolgozók: a naptár-hozzáférés alatti magyarázat nem lóg össze a kedvezményekkel; a jutalék sora külön levegőt kap */
.perm-more { display: flex; flex-direction: column; gap: 14px; }
.perm-more .res-access .ra-row:last-child { border-bottom: 0; }
.perm-more .ra-note { margin: -8px 0 6px; }

/* Kérdőív-szerkesztő: Magyar / English váltó, kinek-sor, lehetőségek soronként, kitöltésszám a listában */
.fe-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
/* kérdés sora: a saját HU / EN váltója dönti el, melyik nyelvű mezők látszanak */
[data-ml]:not([data-ml-cur="en"]) .lp-en, [data-ml][data-ml-cur="en"] .lp-hu { display: none !important; }
.q-row .q-head { margin-bottom: 2px; } /* a nyelvváltó ugyanaz, mint a többi kétnyelvű mezőnél */
.fe-edit .field > .input + .input { margin-top: 0; }
.fe-who { align-items: start; }
.seg.wrap { flex-wrap: wrap; }
.q-lab { display: flex; flex-direction: column; min-width: 0; }
.q-opts { display: flex; flex-direction: column; gap: 6px; padding-left: 2px; }
.q-opts[hidden] { display: none; }
.opt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.opt-row { display: flex; align-items: center; gap: 8px; }
.opt-row .input { flex: 1 1 auto; min-width: 0; min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.opt-dot { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid rgba(43,33,27,0.3); }
.q-row.multi .opt-dot { border-radius: 5px; }
.opt-add { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; }
.cnt-ini { flex-direction: column; gap: 0; line-height: 1; background: var(--teal-soft); color: var(--teal-dark); }
.cnt-ini b { font-size: 15px; }
.cnt-ini small { font-size: 8.5px; font-weight: 800; letter-spacing: .2px; margin-top: 2px; }

/* Csoportos alkalom panelje (összesített naptár) */
.sess-cap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sess-cap .sess-add-btn { margin-left: auto; }
.sess-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sess-person { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #fff; border: 1px solid rgba(43,33,27,0.08); color: inherit; text-decoration: none; }
.sess-person:hover { border-color: rgb(var(--teal-rgb, 11 122 117) / 0.4); }
.sess-person .grow { display: flex; flex-direction: column; min-width: 0; }
.sess-person .grow b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; flex: none; }
.ev.group.hosted { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--c) 12%, #fff) 0 8px, color-mix(in srgb, var(--c) 6%, #fff) 8px 16px); }
.ev.group.full b::after { content: " · betelt"; font-weight: 700; }
.slot.session.hosted { opacity: .85; }
.htable { display: flex; flex-direction: column; }
.loc-ini { background: var(--teal-soft); color: var(--teal-dark); }
.loc-ini.main { background: var(--teal); color: #fff; }
/* Adatvédelem: a második kapcsoló (saját adatkezelési tájékoztató) fölött kevesebb hely */
.legal-field + .legal-field .switch-row { padding-top: 6px; }
.legal-field:has(.legal-own:checked) { padding-bottom: 10px; }

/* Szolgáltatások: Egyéni / Csoportos fül a kereső előtt */
.svc-kinds { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; }
.svc-kinds button { border: 0; background: transparent; font: 800 13.5px var(--font); color: var(--muted); border-radius: 10px; min-height: 38px; cursor: pointer; }
.svc-kinds button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(74,48,30,0.12); }
.svc-list[data-kind="egyeni"] .svc-item[data-kind="csoportos"], .svc-list[data-kind="csoportos"] .svc-item[data-kind="egyeni"] { display: none; }
.svc-list[data-kind="egyeni"] .svc-group:has(.svc-item):not(:has(.svc-item[data-kind="egyeni"])),
.svc-list[data-kind="csoportos"] .svc-group:has(.svc-item):not(:has(.svc-item[data-kind="csoportos"])) { display: none; }

/* saját színválasztó */
.cpick { position: relative; display: flex; align-items: center; gap: 8px; }
.cp-sw { width: 46px; height: 46px; flex: none; border-radius: 12px; border: 1px solid rgba(43,33,27,0.18); box-shadow: inset 0 0 0 3px #fff; cursor: pointer; }
.cp-hex { font: 700 14px ui-monospace, monospace; text-transform: uppercase; max-width: 130px; }
.cp-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 248px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 18px 44px rgba(43,33,27,0.22); display: flex; flex-direction: column; gap: 12px; animation: upin .14s ease both; }
.cp-sv { position: relative; height: 150px; border-radius: 10px; cursor: crosshair; touch-action: none; }
.cp-dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 2px 6px rgba(0,0,0,.3); pointer-events: none; }
.cp-hue { position: relative; height: 14px; border-radius: 99px; cursor: pointer; touch-action: none; background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.cp-knob { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); pointer-events: none; }
.cp-sws { display: grid; grid-template-columns: repeat(9, 1fr); gap: 5px; }
.cp-sws button { aspect-ratio: 1; border-radius: 7px; border: 1px solid rgba(43,33,27,0.15); cursor: pointer; padding: 0; }
/* csoportos alkalom sora: létszám és „+ Foglalás” egymás mellett, a gomb a felirat szélességében */
.slot.session { grid-template-columns: 56px minmax(0,1fr) auto auto; }
.slot.session .pill-add { white-space: nowrap; width: auto; }
@media (max-width: 1100px) { .slot.session { grid-template-columns: 46px minmax(0,1fr) auto auto; } }
/* rejtett szolgáltatás: a titkos link kapcsolója alatt csak akkor van vonal, ha a link-panel látszik */
.sub-setting > .switch-row:has(+ [hidden]), .sub-setting > .switch-row:last-child { border-bottom: 0; padding-bottom: 0; }
/* órarend: új alkalom – a mezők a sor tetejére igazodnak (eltérő magasságú magyarázat mellett is) */
.sess-add .two { align-items: start; }

/* Kérdőív → Kitöltések: összesítés és lista */
.fr-head { display: flex; flex-direction: column; gap: 2px; }
.fr-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.fr-q { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid rgba(43,33,27,0.08); }
.fr-bar { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; align-items: center; gap: 8px; font-size: 13px; }
.fr-bar .fr-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-bar .fr-n { font-weight: 800; font-size: 12px; color: var(--muted); white-space: nowrap; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.fr-texts { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.fr-list { display: flex; flex-direction: column; gap: 6px; }

/* kétnyelvű mező: a felirat mellett kis HU / EN váltó (zászlóval), alatta a választott nyelv mezője */
.ml-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ml-sw { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: rgba(43,33,27,0.06); flex: none; }
.ml-sw button { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 7px; border: 0; border-radius: 7px; background: transparent; font: 800 11px var(--font); color: var(--muted); cursor: pointer; }
.ml-sw button .flag { font-size: 13px; line-height: 1; }
.ml-sw button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(74,48,30,0.14); }
.ml-sw button.has::after { content: ""; position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.ml-pane { display: flex; flex-direction: column; gap: 4px; }
.ml-pane[hidden] { display: none; }

/* csoportos alkalom: telítettség (a doboz alján sáv), panel-műveletek */
.ev.group { padding-bottom: 8px; }
.ev-fill { position: absolute; left: 8px; right: 8px; bottom: 4px; height: 4px; border-radius: 99px; background: rgba(43,33,27,0.1); overflow: hidden; }
.ev-fill > i { display: block; height: 100%; background: var(--c); border-radius: inherit; }
.ev.group.full b::after { content: ""; }
.ev.group.cancelled, .slot.session.cancelled { opacity: .55; text-decoration: line-through; }
.slot.session .who { color: inherit; text-decoration: none; min-width: 0; display: flex; flex-direction: column; }
.slot.session.on { border-color: var(--teal); }
.sess-fill { display: grid; grid-template-columns: auto 90px auto; align-items: center; gap: 8px; }
.sess-fill .meter span.over { background: var(--warn); }
.sess-ops { display: flex; flex-direction: column; gap: 8px; }
.sess-op { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid rgba(43,33,27,0.08); }
.sess-op.col { display: block; }
.sess-op.col summary { cursor: pointer; }
.sess-op.col[open] summary { margin-bottom: 10px; }
.sess-op .field { flex: 1; }
.sess-op .unit-in .input { width: 90px; }

/* Napló: lenyitható sor a részletekkel (mi változott: régi → új) */
.log-det { display: block; padding: 0; }
.log-det > summary { display: grid; grid-template-columns: 130px 160px auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 2px; cursor: pointer; list-style: none; }
.log-det > summary::-webkit-details-marker { display: none; }
.log-det[open] > summary .sale-chev { transform: rotate(180deg); }
.log-dl { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: rgba(43,33,27,0.04); display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; font-size: 13px; }
.log-dl dt { color: var(--muted); font-weight: 700; }
.log-dl dd { margin: 0; overflow-wrap: anywhere; }
.log-dl dd.chg { font-weight: 700; }
@media (max-width: 800px) { .log-det > summary { grid-template-columns: 1fr auto; } .log-det > summary .log-text, .log-det > summary .log-when { grid-column: 1 / -1; } }
.log-head .rev-seg { margin-left: auto; }

/* Forgalom: kártyák (eladások, foglalások, dolgozók, egyéb bevétel / kiadás) */
.rev-card { display: flex; flex-direction: column; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rev-grid.inner { margin: 0; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rev-block { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,0.6); border: 1px solid rgba(43,33,27,0.06); }
.stat-grid.wide { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.set-card-head.row-between { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
.rev-card .set-card-head .sect { margin: 0; }

/* vendégkijelző: kérdőív kitöltése a tableten */
.disp-form-wrap { width: min(720px, 100%); margin: 0 auto; padding: 8px 4px 40px; overflow-y: auto; }
.disp.is-form { overflow-y: auto; }
.disp-form .qform { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.disp-form .qform legend { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.disp-form .input { font-size: 17px; min-height: 52px; }
.disp-form .btn-block { min-height: 56px; font-size: 17px; }
.disp-send { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--teal-soft); }
.disp-send .input { width: auto; min-height: 36px; }
.disp-pending { display: flex; align-items: center; gap: 10px; }

/* kérdőív kitöltése az adminban (foglalás panel) és a vendégkijelzőn */
.qform { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.qform legend { float: left; width: 100%; font-weight: 800; font-size: 16px; padding: 0; margin-bottom: 2px; }
.qform .req { color: var(--warn); }
.qf-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.qf-opts.col { flex-direction: column; align-items: flex-start; }
.qf-opt { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.qf-opt input { width: 20px; height: 20px; accent-color: var(--teal); }
.qf-consent { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: var(--teal-soft); }
.qf-ctext { max-height: 260px; overflow: auto; background: #fff; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.note.ok-note { background: var(--teal-soft); color: var(--teal-dark); border-color: transparent; }
.sub-setting > .switch-row:first-child { padding-top: 0; }
.sub-setting:has(> .switch-row:only-child), .sub-setting:has(> .switch-row + [hidden]:last-child) { padding-top: 10px; padding-bottom: 10px; }
.gp-gap { margin-top: 14px; margin-bottom: 14px; }

/* élő ellenőrzés: a hibás mező kerete és alatta az üzenet */
.v-err { border-color: var(--warn) !important; box-shadow: 0 0 0 3px rgba(180,35,24,0.12) !important; }
.v-msg { display: block; color: var(--warn); font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.range + .v-msg { flex-basis: 100%; }
.confirm .cf-note { white-space: pre-line; }

/* Órarend (heti nézet) */
.tt-grid { min-width: calc(56px + 7 * 120px); }
.tt-grid .dg-head, .tt-grid .dg-body { grid-template-columns: 56px repeat(7, minmax(120px, 1fr)); }
.tt-slot { position: absolute; left: 4px; right: 4px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: transparent; text-decoration: none; }
.tt-slot:hover { background: rgb(var(--teal-rgb, 11 122 117) / 0.08); color: var(--teal-dark); }
.tt-slot span { font-weight: 800; }
.tt-ev { z-index: 2; overflow: hidden; padding: 4px 8px; line-height: 1.3; display: flex; flex-direction: column; justify-content: flex-start; }
.tt-ev b, .tt-ev span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.tt-top { align-items: start; }
.tt-list { display: none; }
.tt-list .daypick { margin-bottom: 14px; }
.tt-list .dp small:last-child { font-weight: 600; }
.tt-rep, .tt-ev .tt-rep { display: inline-flex; vertical-align: -1px; margin-right: 4px; color: var(--teal-dark); overflow: visible; }
.tt-col.past { background-color: rgba(43,33,27,0.025); }
.dg-col-head .small { font-weight: 600; }
@media (max-width: 760px) { .tt-card, .tt-intro, .tt-add-top { display: none; } .tt-list { display: block; } }
.tt-list .card-head { margin-bottom: 12px; }
.sr-rates { display: flex; flex-direction: column; gap: 8px; }
.rate-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px 150px; gap: 10px; align-items: center; padding: 6px 0; }
.rate-row .unit-in { min-width: 0; }
.rate-row .unit-in .input { width: auto; flex: 1 1 auto; min-width: 0; }
.rate-row > span:first-child { min-width: 0; }
.rate-row[hidden] { display: none; }
.rate-name { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; }
.rate-name .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 8px; display: inline-block; }
@media (max-width: 600px) { .rate-row { grid-template-columns: 1fr 1fr; } .rate-name { grid-column: 1 / -1; } }

.tt-link { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.party-note { display: flex; gap: 8px; align-items: flex-start; background: rgba(213,243,239,0.7); color: var(--teal-dark); font-weight: 600; }
.party-note svg { flex: 0 0 auto; margin-top: 1px; }

/* fülek egy űrlapon belül (pl. a szolgáltatás szerkesztője): ugyanaz a fülsor, gombokkal */
.seg button[data-pane-tab] { min-height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; display: inline-flex; align-items: center; font: 800 13px var(--font); color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button[data-pane-tab]:hover { color: var(--ink); }
.seg button[data-pane-tab][aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 3px 10px rgba(74,48,30,0.1); }
.seg button[data-pane-tab].has-err::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #C2410C; margin-left: 6px; }
[data-pane][hidden] { display: none !important; }
.rate-table { display: flex; flex-direction: column; gap: 6px; }
.rate-table .rate-row { padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,0.7); border: 1px solid var(--line); }
.rate-table .rate-row.head { background: transparent; border-color: transparent; padding-top: 0; padding-bottom: 0; font: 800 11px var(--font); letter-spacing: .5px; color: var(--muted); text-transform: uppercase; }
.rate-table .rate-row:not(.head):not([hidden]) ~ .rate-empty { display: none; }
@media (max-width: 600px) { .rate-table .rate-row.head { display: none; } }
.occ-box { padding: 12px 14px; border-radius: 14px; background: rgba(213,243,239,0.45); border: 1px solid rgb(var(--teal-rgb, 11 122 117) / 0.15); }
.occ-box .sess-cap { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.occ-box .sess-fill { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; }
.occ-box .sess-fill .muted { grid-column: 1 / -1; }
.occ-box .sess-cap .btn { align-self: flex-start; }
.tt-ev.cancelled { opacity: .55; text-decoration: line-through; }
.tt-ev.full { border-color: #E0A458; }
.seat-field .row-gap { align-items: center; }
.seat-field { margin: 4px 0 12px; }
.party-badge { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: rgb(var(--teal-rgb, 11 122 117) / 0.12); color: var(--teal-dark); font-size: 11.5px; font-weight: 800; vertical-align: 1px; }

.code-ta { font: 600 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(43,33,27,0.03); }
.embed-preview { padding: 16px; border-radius: 14px; border: 1px dashed rgba(43,33,27,0.18); background: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.embed-frame { width: 100%; min-height: 560px; border: 0; border-radius: 12px; background: #F7F1EA; }
.embed-notes { margin: 8px 0 0; padding-left: 18px; line-height: 1.6; }
[data-embed-off] { opacity: .55; pointer-events: none; }

.rev-sec { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.rev-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 0 4px; }
.rev-sec-head .sect { margin: 0; }
.rev-sec .rev-grid.inner { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.rev-sec .card.rev-block { margin: 0; padding: 18px; border-radius: var(--radius); background: rgba(255,255,255,0.66); border: 1px solid var(--glass-line); box-shadow: var(--shadow); gap: 10px; }

/* választó kártyák (pl. a zárás: mi legyen a foglalásokkal) */
.cl-affected { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; background: #FFF3EB; }
.cl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.cl-list li { display: flex; gap: 10px; align-items: baseline; }
.cl-list li > b { min-width: 44px; }
.choice-cards { display: flex; flex-direction: column; gap: 8px; }
.choice-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card > span:first-of-type { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; }
.choice-card small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.choice-card:has(input:checked) { border-color: var(--teal); background: rgb(var(--teal-rgb, 11 122 117) / 0.06); }
.choice-card.danger:has(input:checked) { border-color: #C2410C; background: #FFF3EB; }
.choice-card:has(input:focus-visible) { box-shadow: 0 0 0 3px rgb(var(--teal-rgb, 11 122 117) / 0.25); }
.choice-card:has(input:checked) .po-check { border-color: var(--teal); background: var(--teal); box-shadow: inset 0 0 0 4px #fff; }
.choice-card.danger:has(input:checked) .po-check { border-color: #C2410C; background: #C2410C; }
/* naptár: mobilon a nézetválasztó (Nap / Hét / Lista) mindig külön, második sorban, teljes szélességben */
@media (max-width: 760px) {
  .head-tools { flex-wrap: wrap; }
  .head-tools > .seg[aria-label="Nézet"] { order: 20; flex: 1 1 100%; display: flex; }
  .head-tools > .seg[aria-label="Nézet"] > a { flex: 1 1 0; justify-content: center; }
}
/* kezelési jegyzetek */
.note-list { display: flex; flex-direction: column; gap: 8px; }
.note-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.7); border: 1px solid var(--line); }
.note-body { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; white-space: normal; }
.extras-note { display: flex; gap: 8px; align-items: flex-start; background: #FFF8E6; color: #7A5200; font-weight: 600; }
.extras-note svg { flex: 0 0 auto; margin-top: 1px; }
/* galéria sorrendje: a nyilas lista, bélyegképpel, a végén X */
.gal-order li img { width: 64px; height: 46px; object-fit: cover; border-radius: 9px; flex: 0 0 auto; }
/* foglalás panel: egy összesítő kártya – létszám, fizetés, kiegészítők, kérdőív, üzenet soronként (12. kör) */
.bk-sum { display: flex; flex-direction: column; border-radius: 16px; background: #fff; border: 1px solid rgba(43,33,27,0.08); overflow: hidden; }
.bk-row { display: grid; grid-template-columns: 118px 1fr; gap: 10px; padding: 11px 14px; font-size: 13.5px; }
.bk-row + .bk-row { border-top: 1px solid rgba(43,33,27,0.06); }
.bk-k { display: inline-flex; align-items: flex-start; gap: 6px; color: var(--muted); font-weight: 700; font-size: 12.5px; padding-top: 1px; }
.bk-k svg { flex: 0 0 auto; margin-top: 1px; }
.bk-v { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bk-v b { font-size: 14px; }
.bk-v form { margin-top: 4px; }
.bk-row.warn { background: #FFF8EA; }
.bk-row.ok .bk-k { color: var(--teal-dark); }
.bk-row.total { background: rgba(213,243,239,0.45); }
.bk-row.total .bk-k { color: var(--teal-dark); }
.bk-v .guest-msg { white-space: normal; }
.bk-v details { margin-top: 2px; }
@media (max-width: 420px) { .bk-row { grid-template-columns: 1fr; gap: 4px; } }

/* kiegészítő: raktári termék választó (felugró ablak) és a kiválasztott termék kártyája */
.pp-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.pp-row .col { min-width: 0; display: flex; flex-direction: column; flex: 1 1 auto; }
.pp-row .inv-thumb { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background-color: #EADFCB; background-size: cover; background-position: center; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; color: #7A5F2E; }
.pp-price { white-space: nowrap; font-size: 14px; }
.pp-card { padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid rgba(43,33,27,0.08); }
.pp-list { display: flex; flex-direction: column; gap: 6px; max-height: 56vh; overflow: auto; }
.pp-item { border: 1px solid rgba(43,33,27,0.08); background: #fff; border-radius: 14px; padding: 8px 12px; cursor: pointer; font: inherit; color: inherit; }
.pp-item:hover, .pp-item:focus-visible { border-color: var(--teal); background: rgba(213,243,239,0.35); }
.pp-item[hidden] { display: none; }
.ex-list[data-kind="berles"] .svc-item[data-kind="raktari"], .ex-list[data-kind="raktari"] .svc-item[data-kind="berles"] { display: none; }
/* egymás melletti mezők: ha valamelyik címe két sorba törik, a mezők alja akkor is egy vonalban van (a cím sor a többié is olyan magas, alulra igazítva) */
.three-in { align-items: end; }
.three-in > .field { justify-content: flex-end; }

/* ár-táblák fejléce: az első oszlop címe a bal szélen (behúzás nélkül), a többi oszlop a mezők fölött marad */
.rate-table .rate-row.head > span:first-child { margin-left: -12px; }
/* jegyzet: melyik időponthoz – görgethető kártya-lista (sok alkalomnál is áttekinthető) */
.nb-times { display: flex; flex-direction: column; gap: 6px; max-height: 236px; overflow: auto; padding: 2px; }
.nb-time { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); cursor: pointer; }
.nb-time input { position: absolute; opacity: 0; pointer-events: none; }
.nb-time:has(input:checked) { border-color: var(--teal); background: rgba(213,243,239,0.4); }
.nb-time:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(11,122,117,0.25); }
.nb-time .col { min-width: 0; }
.nb-dt { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; background: rgba(43,33,27,0.06); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.nb-dt small { font-size: 9.5px; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.nb-dt b { font-size: 15px; }
.nb-dt.none { color: var(--muted); }
.note-card .tag.priv { margin-left: 6px; }

.nb-time .col { display: flex; flex-direction: column; }
/* egymás melletti mezők: a cím alulra igazodik (ha az egyik két sorba törik, a mezők alja akkor is egy vonalban) */
.two > .field > .label, .three-in > .field > .label { margin-top: auto; }
/* admin lábléc: a platform jogi szövegei (ÁSZF, adatkezelés, sütik) */
.admin-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 28px 0 8px; padding-top: 14px; border-top: 1px solid rgba(43,33,27,0.08); font-size: 12px; color: var(--muted); }
.admin-foot span { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.admin-foot a { color: var(--ink-2); font-weight: 700; }
body.has-savebar .admin-foot { margin-bottom: 96px; }
.nb-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.nb-filter .input { flex: 1 1 180px; width: auto; min-height: 36px; }
.nb-time[hidden] { display: none; }
.nb-filter .seg button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; font: 800 12.5px var(--font); color: var(--muted); cursor: pointer; }
.nb-filter .seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 3px 10px rgba(74,48,30,0.1); }
/* felugró ablakos „sor-gomb” (a ki-be nyitós részek helyett): kérdőív-kitöltés, stb. */
.qresp-btn { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.qresp-btn:hover { border-color: var(--teal); }
.qresp-dl { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.qresp-dl dt { color: var(--muted); font-weight: 700; }
.qresp-dl dd { margin: 0; }
.pop-dlg .bmodal-body { overflow: auto; }
/* napló és eladások: a sor gomb, a részletek felugró ablakban (15. kör) */
button.log-det { display: grid; grid-template-columns: 130px 160px auto minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 9px 2px; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; font: inherit; color: inherit; cursor: pointer; }
button.log-det:hover { background: rgba(255,255,255,0.6); }
@media (max-width: 800px) { button.log-det { grid-template-columns: 1fr auto; } button.log-det .log-text, button.log-det .log-when { grid-column: 1 / -1; } }
button.sale-row { width: 100%; background: none; border: 0; text-align: left; font: inherit; color: inherit; }
.pop-dlg .sale-body, .pop-dlg .log-dl { padding: 0; }
/* Forgalom → Eladások: kis nézetben 1, nagyobban legfeljebb 2 doboz egymás mellett (soha nem 3) */
.rev-sec .rev-grid.inner.rev-sales { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .rev-sec .rev-grid.inner.rev-sales { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Napló: minden sor ugyanolyan rácsban (lenyíló és sima sor egyforma méretű, az oszlopok egy vonalban) */
.log-row:not(.log-det), .log-det > summary { grid-template-columns: 130px 160px 150px minmax(0, 1fr) 20px; padding: 9px 2px; min-height: 44px; }
.log-row .tag, .log-det > summary .tag { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-nochev { width: 14px; }
@media (max-width: 800px) { .log-row:not(.log-det), .log-det > summary { grid-template-columns: 1fr auto; } }
