/* ============================================================
   Takarítási napló – stílusok
   Dolgozói oldal: világos, friss (fehér + türkiz), nagy gombok, egy kézzel
   is kényelmes. Vezetői oldal (body.admin-theme): sötét palaszürke, hogy
   első pillantásra megkülönböztethető legyen.
   Régi Safari miatt: nincs `inset`, `aspect-ratio`; flexben `gap` helyett
   margó, ahol fontos (a gridben a gap mindenhol működik).
   ============================================================ */

:root {
  --bg: #eef4f4;
  --card: #ffffff;
  --ink: #16282b;
  --muted: #5d7275;
  --line: #d6e3e3;
  --brand: #0f7c80;
  --brand-2: #12a1a6;
  --brand-ink: #ffffff;
  --ok: #1f8f4e;
  --ok-bg: #e3f5ea;
  --warn: #b77900;
  --warn-bg: #fff4d6;
  --danger: #c63d3d;
  --danger-bg: #fde8e8;
  --btn: #e6efef;
  --btn-ink: #16282b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 40, 43, .06), 0 4px 14px rgba(16, 40, 43, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.admin-theme {
  --bg: #1b2429;
  --card: #26333a;
  --ink: #e6eef0;
  --muted: #9db0b5;
  --line: #3a4a52;
  --brand: #19a3a8;
  --brand-2: #2cc0c4;
  --brand-ink: #06262a;
  --ok: #4cc47f;
  --ok-bg: #1f3a2c;
  --warn: #f0b93a;
  --warn-bg: #3d3420;
  --danger: #ef6b6b;
  --danger-bg: #432628;
  --btn: #33434b;
  --btn-ink: #e6eef0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 var(--font);
  min-height: 100vh;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
a { color: var(--brand); }
code { font-size: .9em; }
[hidden] { display: none !important; }

.loading { text-align: center; color: var(--muted); padding: 30vh 16px 0; }
.muted { color: var(--muted); }
.small, small { font-size: .85em; }
.grow { -webkit-box-flex: 1; flex: 1 1 auto; min-width: 0; }
.spacer { flex: 1 1 auto; }
.warn-text { color: var(--warn); }

.wrap { max-width: 640px; margin: 0 auto; padding: 14px 16px 90px; }
.wrap.wide { max-width: 1100px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 14px;
}
.center-card { max-width: 420px; margin: 8vh auto 0; }
@media (max-width: 460px) { .center-card { margin: 16px; } }

.login { text-align: center; }
.login form { text-align: left; margin-top: 16px; }
.brand-mark {
  width: 64px; height: 64px; margin: 0 auto 12px;
  border-radius: 18px; background: var(--brand); color: var(--brand-ink);
  font-size: 38px; line-height: 64px; font-weight: 700;
}
.brand-mini {
  display: inline-block; width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand); color: var(--brand-ink); text-align: center;
  line-height: 30px; font-weight: 700; margin-right: 8px; flex: 0 0 auto;
}

/* ---------- Űrlapok ---------- */
label { display: block; margin: 0 0 12px; font-size: .92rem; color: var(--muted); }
input, textarea, select {
  display: block; width: 100%; margin-top: 4px;
  font: inherit; font-size: 16px; /* iOS ne nagyítson rá */
  color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 12px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); }
textarea { resize: vertical; }
label.check { display: flex; align-items: center; color: var(--ink); font-size: 1rem; margin-top: 8px; }
label.check input { width: 22px; height: 22px; margin: 0 10px 0 0; flex: 0 0 auto; }
.form-error { color: var(--danger); margin: 8px 0 0; font-size: .92rem; }

/* ---------- Gombok ---------- */
.btn {
  display: inline-block; font: inherit; font-weight: 600;
  border: 0; border-radius: 12px; cursor: pointer;
  background: var(--btn); color: var(--btn-ink);
  padding: 12px 16px; min-height: 48px;
  text-align: center; -webkit-tap-highlight-color: transparent;
}
.btn:active { -webkit-transform: scale(.98); transform: scale(.98); }
.btn:disabled { opacity: .5; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.done { background: var(--ok); color: #fff; }
.btn.danger { background: var(--danger-bg); color: var(--danger); }
.btn.big { width: 100%; min-height: 60px; font-size: 1.15rem; }
.btn.small { min-height: 40px; padding: 8px 12px; font-size: .92rem; }
.icon-btn {
  font: inherit; font-size: 1.25rem; line-height: 1;
  width: 44px; height: 44px; flex: 0 0 auto;
  border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer;
}
.icon-btn:hover { background: var(--btn); }
.link { font: inherit; background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

.row2, .row3 { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; gap: 10px; margin-bottom: 14px; }
.row3 { margin: 10px 0 0; grid-template-columns: repeat(3, 1fr); grid-gap: 8px; gap: 8px; }
.btn.stack { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 4px; font-size: .88rem; line-height: 1.2; }
.btn.stack > span { font-size: 1.3rem; margin-bottom: 2px; }
.instr { background: var(--bg); border-radius: 10px; padding: 8px 10px; margin: 8px 0; font-size: .95rem; white-space: pre-wrap; }

/* Mai feladataim */
.task-item {
  display: flex; align-items: center; width: 100%;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  background: var(--card); border: 0; border-left: 5px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow);
  padding: 10px 12px; margin-bottom: 8px; min-height: 52px;
}
.task-item.open { border-left-color: var(--ok); }
.task-item.done { opacity: .6; }
.task-icon { flex: 0 0 auto; width: 28px; font-size: 1.2rem; text-align: center; margin-right: 8px; }
.task-room { flex: 1 1 auto; min-width: 0; }
.task-room small { display: block; }
.task-count { flex: 0 0 auto; font-weight: 700; font-variant-numeric: tabular-nums; margin-left: 8px; }

/* Jelzés-típusok */
.kind-grid { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; gap: 10px; }
.kind-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 92px; padding: 10px 6px; font: inherit; font-weight: 600; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer;
}
.kind-btn:active { border-color: var(--brand); }
.kind-icon { font-size: 2rem; margin-bottom: 4px; }
.supply-list label.check { margin: 0 0 10px; }

.notice { background: var(--warn-bg); color: var(--ink); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.notice.error { background: var(--danger-bg); color: var(--danger); }
pre.code, p.code {
  background: var(--bg); border-radius: 10px; padding: 10px 12px;
  white-space: pre-wrap; word-break: break-all; font-family: Consolas, Menlo, monospace; font-size: .9rem;
}

/* ---------- Fejléc ---------- */
.topbar {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center;
  background: var(--card); box-shadow: var(--shadow);
  padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top));
}
.topbar-title { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; font-weight: 700; }
.who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sync {
  flex: 0 0 auto; font-size: .8rem; font-weight: 600; white-space: nowrap;
  border-radius: 999px; padding: 4px 10px; margin: 0 6px;
}
.sync.ok { background: var(--ok-bg); color: var(--ok); }
.sync.wait { background: var(--warn-bg); color: var(--warn); }
.sync.off { background: var(--danger-bg); color: var(--danger); }

/* ---------- Dolgozói főoldal ---------- */
.current { border-left: 6px solid var(--ok); }
.current-label { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); }
.current-room { font-size: 1.45rem; font-weight: 700; margin: 2px 0; }
.current-time { margin: 8px 0 14px; font-size: 1.05rem; }
#timer { font-variant-numeric: tabular-nums; font-weight: 700; }
.idle { text-align: center; }
.idle p { margin: .3em 0; }

.section-title { margin-top: 22px; }
.day { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 16px 0 6px; }
.log-item, .room-item {
  display: flex; align-items: center; width: 100%;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  background: var(--card); border: 0; border-radius: 12px; box-shadow: var(--shadow);
  padding: 12px; margin-bottom: 8px; min-height: 52px;
}
.log-time { flex: 0 0 auto; font-variant-numeric: tabular-nums; font-weight: 600; margin-right: 10px; }
.log-room { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-meta { flex: 0 0 auto; color: var(--muted); font-size: .88rem; margin-left: 8px; white-space: nowrap; }
.log-meta span { margin-left: 4px; }
.pending { color: var(--warn); }
.note-box { background: var(--bg); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; }
.big-check { font-size: 48px; color: var(--ok); text-align: center; margin: 0; }

.rooms-head { display: flex; align-items: center; margin-bottom: 10px; }
.rooms-head input { margin: 0 0 0 6px; }
.room-code { font-weight: 700; min-width: 76px; margin-right: 10px; }
.room-name { color: var(--muted); }
.room-item.active { border-left: 6px solid var(--ok); }
.plain { padding-left: 18px; }

/* ---------- Párbeszéd, értesítés ---------- */
.modal-backdrop {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 50;
  background: rgba(10, 25, 28, .5);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal {
  background: var(--card); color: var(--ink);
  width: 100%; max-width: 560px; max-height: 92vh; overflow: auto;
  border-radius: 18px 18px 0 0; padding: 18px 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
@media (min-width: 700px) {
  .modal-backdrop { align-items: center; }
  .modal { border-radius: 18px; }
}
.modal-title { font-size: 1.2rem; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; margin: 14px -4px 0; }
.modal-actions .btn { margin: 4px; flex: 1 1 auto; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  -webkit-transform: translate(-50%, 150%); transform: translate(-50%, 150%);
  max-width: calc(100% - 32px); width: max-content;
  background: #16282b; color: #fff; border-radius: 12px; padding: 12px 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25); opacity: 0;
  transition: transform .25s, opacity .25s;
}
.toast.show { -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0); opacity: 1; }
.toast.ok { background: var(--ok); }
.toast.error { background: var(--danger); }

/* ---------- QR-olvasó ---------- */
.scanner { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 70; background: #000; color: #fff; }
.scanner video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner-frame {
  position: absolute; left: 50%; top: 42%; width: 64vmin; height: 64vmin;
  -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);
  border: 3px solid rgba(255, 255, 255, .9); border-radius: 20px;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45);
}
.scanner-hint, .scanner-error {
  position: absolute; left: 16px; right: 16px; top: calc(16px + env(safe-area-inset-top));
  text-align: center; font-weight: 600; margin: 0;
}
.scanner-error { background: var(--danger); border-radius: 12px; padding: 12px; top: 30%; }
.scanner-close {
  position: absolute; left: 16px; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom));
  width: calc(100% - 32px);
}

/* ============================================================
   VEZETŐI FELÜLET
   ============================================================ */
.admin-bar { flex-wrap: wrap; }
.tabs { display: flex; flex: 0 0 auto; }
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 56px; height: 52px; padding: 2px 6px; margin-left: 2px;
  font: inherit; font-size: 1.25rem; color: var(--muted);
  background: none; border: 0; border-radius: 12px; cursor: pointer;
}
.tab small { font-size: .68rem; margin-top: 2px; }
.tab.active { background: var(--btn); color: var(--ink); }
@media (max-width: 760px) {
  .admin-bar .topbar-title { flex-basis: 100%; margin-bottom: 4px; }
  /* Sok fül: telefonon oldalra görgethető sor */
  .tabs { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; min-width: 64px; margin: 0; }
}

/* Alfülek (Beállítások) */
.subtabs { display: flex; flex-wrap: wrap; margin: 0 -4px 12px; }
.subtab {
  font: inherit; font-weight: 600; color: var(--muted); cursor: pointer;
  background: none; border: 0; border-radius: 999px; padding: 8px 14px; margin: 4px;
}
.subtab.active { background: var(--btn); color: var(--ink); }

/* Áttekintés */
.day-nav input[type=date] { width: auto; margin: 0 4px; padding: 8px 10px; }
.ov-cards { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 10px; gap: 10px; margin-bottom: 14px; }
@media (max-width: 640px) { .ov-cards { grid-template-columns: 1fr 1fr; } }
.ov-card {
  font: inherit; color: var(--ink); text-align: left; background: var(--card); border: 0;
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; font-size: .9rem;
}
button.ov-card { cursor: pointer; }
.ov-card.alert { box-shadow: inset 4px 0 0 var(--danger), var(--shadow); }
.ov-num { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.ok-text { color: var(--ok); }
.row-line { display: flex; align-items: center; border-top: 1px solid var(--line); padding: 8px 0; }
.row-line:first-of-type { border-top: 0; }
.row-line small { display: block; }
.row-line > .btn { margin-left: 8px; }
.row-line.bought { opacity: .6; }
.row-btn { width: 100%; font: inherit; color: inherit; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer; }

/* Munkaterv */
label.inline { display: flex; align-items: center; margin: 0; }
label.inline select { width: auto; margin: 0 0 0 8px; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; position: -webkit-sticky; position: sticky; top: 64px; z-index: 4; border-left: 5px solid var(--brand); }
.bulk-bar > .btn { margin: 4px 0 4px 8px; }
.plan-sec h3 { margin: 0; }
.plan-room { display: flex; align-items: flex-start; border-top: 1px solid var(--line); padding: 8px 0; }
.plan-room .chips { margin-top: 4px; }
.plan-check { margin: 2px 10px 0 0; }
.plan-check input, .small-check input { width: 22px; height: 22px; margin: 0; }
label.small-check { margin: 0; font-size: .85rem; }
label.small-check input { margin-right: 6px; }
.seg { display: flex; margin: 0 0 12px; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg-opt { flex: 1 1 0; margin: 0; }
.seg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-opt span { display: block; text-align: center; padding: 10px 4px; color: var(--ink); font-weight: 600; cursor: pointer; }
.seg-opt input:checked + span { background: var(--brand); color: var(--brand-ink); }
.wd-row { display: grid; grid-template-columns: repeat(7, 1fr); grid-gap: 4px; gap: 4px; }
.wd { margin: 0; }
.wd input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wd span { display: block; text-align: center; padding: 10px 0; border-radius: 10px; background: var(--btn); color: var(--ink); font-weight: 600; cursor: pointer; }
.wd input:checked + span { background: var(--brand); color: var(--brand-ink); }
.wd input:focus-visible + span, .seg-opt input:focus-visible + span { outline: 2px solid var(--brand-2); }

/* Jelzések */
.issue { border-left: 5px solid var(--danger); }
.issue.st-in_progress { border-left-color: var(--warn); }
.issue.st-done { border-left-color: var(--ok); opacity: .8; }
.issue-head { display: flex; align-items: flex-start; }
.issue-icon { font-size: 1.6rem; margin-right: 10px; }
.badge { flex: 0 0 auto; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; margin-left: 8px; }
.badge.st-open { background: var(--danger-bg); color: var(--danger); }
.badge.st-in_progress { background: var(--warn-bg); color: var(--warn); }
.badge.st-done { background: var(--ok-bg); color: var(--ok); }
.issue-edit { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 10px; gap: 10px; margin-top: 10px; }
.issue-edit label { margin: 0; min-width: 0; }
.issue-edit input, .issue-edit select { min-width: 0; padding: 8px 10px; }
@media (max-width: 560px) { .issue-edit { grid-template-columns: 1fr 1fr; } }
.issue-actions { display: flex; align-items: center; }
.issue-actions > .btn { margin-right: 6px; }
.issue-actions > .btn.primary { margin-right: 0; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; margin: 4px 0 12px; }
.toolbar > * { margin: 3px 6px 3px 0; }
.toolbar h2 { margin-bottom: 0; }

.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-gap: 10px; gap: 10px; padding: 12px; }
.filters label { margin: 0; min-width: 0; }
.filters input, .filters select { min-width: 0; max-width: 100%; }
.filters input, .filters select { padding: 8px 10px; }
@media (max-width: 560px) {
  .filters { grid-template-columns: 1fr 1fr; grid-gap: 8px; gap: 8px; }
  .filters label { font-size: .8rem; }
  .filters input, .filters select { padding: 7px 6px; font-size: 15px; }
}

.log-table { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.lt-row {
  display: grid; grid-template-columns: 100px 100px 1.1fr 2fr 90px 110px; grid-gap: 8px; gap: 8px; align-items: center;
  width: 100%; font: inherit; color: inherit; text-align: left;
  background: none; border: 0; border-top: 1px solid var(--line);
  padding: 10px 12px; cursor: pointer;
}
.lt-row:hover { background: var(--btn); }
.lt-head { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; cursor: default; border-top: 0; }
.lt-head:hover { background: none; }
.flags span { margin-right: 3px; }
.open-badge { color: var(--warn); font-style: normal; font-weight: 700; }
@media (max-width: 760px) {
  .lt-head { display: none; }
  .lt-row { grid-template-columns: 1fr auto; grid-gap: 2px 10px; gap: 2px 10px; }
  .lt-row > span:nth-child(1) { grid-column: 1; font-weight: 700; }
  .lt-row > span:nth-child(2) { grid-column: 2; text-align: right; }
  .lt-row > span:nth-child(3) { grid-column: 1; }
  .lt-row > span:nth-child(4) { grid-column: 1 / 3; }
  .lt-row > span:nth-child(5) { grid-column: 1; color: var(--muted); }
  .lt-row > span:nth-child(6) { grid-column: 2; text-align: right; }
}

dl.details { display: grid; grid-template-columns: 130px 1fr; grid-gap: 6px 12px; gap: 6px 12px; margin: 0 0 12px; }
dl.details dt { color: var(--muted); font-size: .9rem; }
dl.details dd { margin: 0; }
@media (max-width: 460px) { dl.details { grid-template-columns: 1fr; } dl.details dd { margin-bottom: 6px; } }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); grid-gap: 8px; gap: 8px; margin-bottom: 12px; }
.photo-grid a { display: block; position: relative; padding-top: 100%; border-radius: 10px; overflow: hidden; background: var(--bg); }
.photo-grid img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { color: var(--muted); font-size: .8rem; text-transform: uppercase; }

.chips, .room-chips { display: flex; flex-wrap: wrap; margin: 0 -3px; }
.chip {
  display: inline-block; font: inherit; font-size: .9rem; color: inherit; text-align: left;
  background: var(--btn); border: 0; border-radius: 999px; padding: 6px 12px; margin: 3px; cursor: pointer;
}
.chip.inactive, .inactive > summary, .section-block.inactive .section-head { opacity: .55; }
.chip.inactive { text-decoration: line-through; }

details.building > summary { display: flex; align-items: center; cursor: pointer; list-style: none; }
details.building > summary::-webkit-details-marker { display: none; }
details.building > summary::before { content: "▸"; margin-right: 10px; color: var(--muted); }
details.building[open] > summary::before { content: "▾"; }
details.building > summary small { display: block; }
.icon-row { display: flex; align-items: center; flex: 0 0 auto; }
.section-block { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 8px; }
.section-head { display: flex; align-items: center; }

.worker { display: flex; align-items: center; }
.worker.inactive { opacity: .6; }

/* ---------- Nyomtatás (PDF) ---------- */
#print { display: none; }
@media print {
  body.printing > *:not(#print), body.printing #app { display: none !important; }
  body.printing #print { display: block !important; }
  body.printing { background: #fff; color: #000; font-size: 10.5pt; }
  body.printing .toast { display: none; }
  @page { size: A4; margin: 12mm; }
}
#print { color: #000; }
#print .card { background: none; box-shadow: none; border: 1px solid #999; border-radius: 4px; padding: 6px 10px; margin: 0 0 10px; color: #000; }
#print .card h2 { margin: 0 0 2px; }
#print .card p { margin: 3px 0; }
#print .muted { color: #444; }

.room-summary { border-left: 6px solid var(--brand); }
.room-summary p { margin: 4px 0; }
table.data tr[data-room] { cursor: pointer; }
table.data tr[data-room]:hover td { background: var(--btn); }

/* Telefonon külön lapon megnyitott jegyzőkönyv (admin.js openPrintWindow) */
body.print-page { background: #fff; color: #000; padding: 0 12px 24px; }
body.print-page #print { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.print-bar {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 5;
  background: #fff; border-bottom: 1px solid #ccc; padding: 10px 0; margin-bottom: 12px;
}
.print-actions { display: grid; grid-template-columns: 2fr 1fr; grid-gap: 8px; gap: 8px; }
.print-help { font-size: 13px; color: #444; margin: 8px 0 0; }
@media print {
  .print-bar { display: none !important; }
  body.print-page { padding: 0; }
  body.print-page #print { overflow: visible; }
}
.p-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #000; padding-bottom: 6px; margin-bottom: 10px; }
.p-head h1 { font-size: 16pt; margin: 2px 0 0; }
.p-meta { text-align: right; font-size: 9pt; }
.p-table, #print table.data { width: 100%; border-collapse: collapse; font-size: 9pt; }
.p-table th, .p-table td, #print table.data th, #print table.data td { border: 1px solid #999; padding: 3px 5px; vertical-align: top; text-align: left; white-space: normal; }
.p-table th, #print table.data th { background: #eee; color: #000; }
.p-table tr { page-break-inside: avoid; }
#print h2 { font-size: 12pt; margin: 14px 0 6px; }
.p-sum { margin-top: 8px; font-weight: 700; }
.p-sign { display: flex; justify-content: space-between; margin-top: 30px; }

.qr-sheet { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 4mm; gap: 4mm; }
.qr-label {
  border: 1px dashed #999; border-radius: 3mm; padding: 4mm; text-align: center;
  page-break-inside: avoid; break-inside: avoid;
}
.qr-label svg { width: 42mm; height: 42mm; display: block; margin: 0 auto 2mm; }
.qr-code { font-size: 18pt; font-weight: 700; letter-spacing: .03em; }
.qr-name { font-size: 10pt; min-height: 1.2em; }
.qr-where { font-size: 8pt; color: #444; }
