:root {
  --bg: #f3f4f6; --card: #fff; --text: #1b1c1f; --muted: #6b7078; --line: #e3e5e8; --row: #fafafb;
  --hover: #eaf3ff; --top: #111214; --top-ink: #e9eaec; --accent: #c20e0a; --accent-ink: #fff;
  --ok: #2e7d32; --warn: #a15c00; --field: #fff;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1012; --card: #18191c; --text: #e7e9ec; --muted: #9aa0a8; --line: #2a2c31; --row: #1c1d21;
          --hover: #1d2a3a; --top: #08090a; --field: #1f2125; --accent: #e5231d; --ok: #4caf50; --warn: #e0a24a; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
h1, h2, h3, .brand { font-family: Montserrat, system-ui, sans-serif; }
h1 { font-size: 22px; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h2 { font-size: 15px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
h3 { font-size: 14px; margin: 16px 0 6px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .mono { font-family: ui-monospace, Consolas, monospace; } .nowrap { white-space: nowrap; }

/* felső menü */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; padding: 0 16px; height: 52px; background: var(--top); color: var(--top-ink); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 16px; font-weight: 600; white-space: nowrap; }
.brand b { color: var(--accent); }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.menu { display: flex; gap: 2px; flex: 1; }
.menu a { text-decoration: none; padding: 7px 12px; border-radius: 8px; color: #c9ccd1; white-space: nowrap; }
.menu a:hover { background: #24262a; color: #fff; }
.menu a.on { background: #26282c; color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.user { display: flex; align-items: center; gap: 10px; color: #c9ccd1; white-space: nowrap; }
.user form { margin: 0; }
.user button { background: none; border: 1px solid #3a3d42; color: #e9eaec; border-radius: 8px; padding: 5px 10px; cursor: pointer; font: inherit; }
.menu-toggle, .burger { display: none; }
@media (max-width: 860px) {
  .burger { display: block; margin-left: auto; width: 34px; height: 34px; cursor: pointer; position: relative; }
  .burger span, .burger span::before, .burger span::after { position: absolute; left: 6px; right: 6px; height: 2px; background: #fff; content: ""; }
  .burger span { top: 16px; } .burger span::before { top: -7px; left: 0; right: 0; } .burger span::after { top: 7px; left: 0; right: 0; }
  .menu, .user { display: none; }
  .menu-toggle:checked ~ .menu { display: flex; flex-direction: column; position: absolute; top: 52px; left: 0; right: 0; background: var(--top); padding: 8px; }
  .menu-toggle:checked ~ .user { display: flex; position: absolute; top: 52px; right: 16px; transform: translateY(calc(6 * 38px + 12px)); }
}

.page { max-width: 1500px; margin: 0 auto; padding: 18px 16px 40px; }
.toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar p { margin: 4px 0 0; }
.back { text-decoration: none; color: var(--muted); font-size: 13px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
input, select, textarea { font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-height: 36px; }
input[type=search] { min-width: 280px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.btn { display: inline-flex; align-items: center; gap: 6px; font: 600 13.5px "Open Sans", sans-serif; padding: 7px 14px; min-height: 36px; border-radius: 8px;
       border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.danger { color: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; }
.btn.release { background: rgba(46, 125, 50, .14); border-color: rgba(46, 125, 50, .45); color: var(--ok); text-decoration: none; }
@supports (background: color-mix(in srgb, red 50%, blue)) {   /* (régi Chrome-ban — pl. Windows 7 — a fenti tartalék él) */
  .btn.release { background: color-mix(in srgb, var(--ok) 16%, var(--card)); border-color: color-mix(in srgb, var(--ok) 45%, var(--card)); }
}
.btn.wide { width: 100%; justify-content: center; min-height: 42px; font-size: 15px; }

/* állapot-fülek */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 6px 0 0; }
.tabs a { text-decoration: none; padding: 8px 12px; border-radius: 8px 8px 0 0; color: var(--muted); border: 1px solid transparent; border-bottom: 0; margin-bottom: -1px; }
.tabs a.on { background: var(--card); color: var(--text); border-color: var(--line); font-weight: 600; }
.tabs a .av-dot { color: #168451; font-size: 11px; vertical-align: 1px; }
.tabs .n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--line); color: var(--text); font-size: 12px; text-align: center; margin-left: 4px; }
.tabs a.st-new .n { background: #1565c0; color: #fff; }

/* táblázat */
.table-wrap { background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; }
.grid th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--card); }
.grid td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid tbody tr:nth-child(even) td { background: var(--row); }
.grid tbody tr[data-href] { cursor: pointer; }
.grid tbody tr[data-href]:hover td { background: var(--hover); }
.grid td a { text-decoration: none; font-weight: 600; }
.grid .empty { text-align: center; color: var(--muted); padding: 30px; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 14px 0; color: var(--muted); }

.badge { display: inline-block; padding: 2px 9px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--line); color: var(--text); font-family: "Open Sans", sans-serif; }
.badge.st-new { background: #1565c0; color: #fff; }
.badge.sms { background: #6a1b9a; color: #fff; text-decoration: none; }
.badge.nt-queued, .badge.nt-sending { background: #f9a825; color: #222; }
.badge.st-processing { background: #f9a825; color: #1b1c1f; }
.badge.st-offer_ready { background: #e3e5e8; color: #333; }
.badge.st-rejected_manual, .badge.st-rejected_auto { background: #c62828; color: #fff; }
.badge.st-closed, .badge.st-deleted { background: #9e9e9e; color: #fff; }
.chip { display: inline-block; padding: 1px 7px; margin: 1px 3px 1px 0; border-radius: 6px; font-size: 12px; background: var(--line); white-space: nowrap; }
.chip.warn { background: #fff3e0; color: #8a4b00; }
@media (prefers-color-scheme: dark) { .chip.warn { background: #3a2a12; color: #f0b56a; } }

/* részletek */
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions form { margin: 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 980px) { .cols { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.big { font-size: 17px; font-weight: 600; margin: 0 0 10px; font-family: Montserrat, sans-serif; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.kv ul { margin: 0; padding-left: 18px; }
.quote { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--row); white-space: pre-wrap; }
.plain { list-style: none; padding: 0; margin: 0; } .plain li { padding: 4px 0; }
.note { display: flex; gap: 8px; margin-bottom: 12px; align-items: flex-start; }
.note textarea { flex: 1; resize: vertical; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 6px 0 10px 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.timeline li.k-note::before { background: #1565c0; }
.timeline li.k-state_changed::before { background: #f9a825; }
.timeline li.k-request-created::before { background: var(--ok); }
.timeline li.k-message_in::before { background: var(--accent); }
.timeline li.k-ticket_in::before, .timeline li.k-ticket_out::before, .timeline li.k-ticket_assigned::before,
.timeline li.k-ticket_no_reply::before { background: #7b4fc9; }
.timeline .when { color: var(--muted); font-size: 12px; }
.timeline .what { white-space: pre-wrap; }
/* munkalap idővonal: kompakt, egy bejegyzés egy sor (időpont · felhasználó · szöveg), görgethető */
.ws-timeline .note { margin-bottom: 8px; align-items: center; gap: 6px; }
.ws-timeline .note input { flex: 1; min-height: 0; height: 28px; padding: 2px 8px; border-radius: 6px; font-size: 13.5px; }
.ws-timeline .note .btn { height: 28px; min-height: 0; width: 34px; padding: 0; font-size: 18px; line-height: 1; justify-content: center; }
.tl-compact { overflow-y: auto; position: relative; border-left: 0; }
.tl-compact li { display: grid; grid-template-columns: 112px 90px 1fr; gap: 10px; align-items: baseline; padding: 2px 0 2px 18px;
                 font-size: 13.5px; border-bottom: 1px solid var(--line); }
.tl-compact li:last-child { border-bottom: 0; }
.tl-compact li::before { top: 8px; left: 2px; width: 8px; height: 8px; }
.tl-compact .when { font-size: 12.5px; white-space: nowrap; }
.tl-compact .who { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-compact .what { white-space: pre-wrap; overflow-wrap: anywhere; }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.flash.error { background: #ffebee; color: #b71c1c; border-color: #ef9a9a; }
.flash.warn { background: #fff8e1; color: #6d4c00; border-color: #ffd54f; }
.anomaly { padding: 12px 16px; border-radius: 8px; margin-bottom: 12px; background: #c62828; color: #fff; border: 2px solid #8e0000; }
.anomaly a { color: #fff; text-decoration: underline; font-weight: 600; }
.anomaly .small { opacity: .9; }
.timeline li.k-identity_anomaly::before { background: #c62828; }

/* munkalap */
.statusline { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ws-cols { grid-template-columns: 1.25fr 1fr; align-items: start; }
@media (max-width: 1100px) { .ws-cols { grid-template-columns: 1fr; } }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.panel-head h2 { margin: 0; }
.versions { display: flex; gap: 4px; flex-wrap: wrap; }
.ver { text-decoration: none; font-size: 12px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.ver.on { border-color: var(--text); color: var(--text); font-weight: 600; }
.big-price { font-size: 20px; font-family: Montserrat, sans-serif; color: var(--ok); }
.offer-actions { margin-bottom: 12px; }
.offer-form fieldset { border: 0; padding: 0; margin: 0; }
.offer-form fieldset[disabled] { opacity: .75; }
.offer-form label, .mt label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.offer-form label.check, label.check { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 13.5px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; align-items: end; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
/* munkalap: növekmény-táblázat (gyári / konkurens / Rigotech, +%) */
.offer-top { display: flex; flex-wrap: wrap; align-items: flex-start; }
.offer-top .gain-box { padding-left: 18px; border-left: 1px solid var(--line); margin-bottom: 10px; }
/* széles képernyőn a Tuning adatok doboza mindig az ártáblázat mellett (jobbra) marad — kiküldés után sem csúszik le
   (a gombsor ilyenkor hosszabb: Link másolása) */
@media (min-width: 1200px) { .offer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
.gain { border-collapse: collapse; margin: 0; font-size: 13px; }
.gain-box .other-data-title { margin-top: 16px; }
/* (width 0 + min-width 100%: a doboz szélességét a Tuning táblázat adja, a hosszú sablon-nevek nem szélesítik) */
.other-data { display: grid; gap: 0; width: 0; min-width: 100%; }
.other-data textarea { width: 100%; }
.other-data label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
/* a motor-sablon legördülő: az Autó kártya / statisztika legördülőivel azonos kis stílus */
.other-data select.od-template { min-height: 0; padding: 2px 6px; border-radius: 6px; font-size: 13px; width: 100%; max-width: 100%; margin-bottom: 8px; }
.other-data .od-nums { margin-bottom: 10px; justify-self: start; }
.other-data .od-nums label { display: inline; margin: 0; font-size: inherit; color: var(--text); }
.other-data .od-nums input { width: 48px; min-height: 0; padding: 2px 6px; text-align: right; font-size: 13px; }
.gain th, .gain td { border: 1px solid var(--line); padding: 3px 6px; text-align: center; }
.gain thead th { font-weight: 700; padding: 5px 8px; }
.gain tbody th { text-align: left; font-weight: 400; white-space: nowrap; }
.gain .g-other { background: rgba(230, 90, 90, .16); }
.gain .g-rig { background: rgba(60, 170, 90, .16); }
.gain .g-hyb { background: rgba(70, 130, 220, .14); text-align: center; white-space: nowrap; }
.gain th, .gain td { height: 26px; padding: 0 5px; }
.gain thead th { padding: 0 6px; font-size: 12px; }
.gain input { width: 56px; min-height: 0; padding: 1px 4px; text-align: center; font-size: 13px; }
.mt { margin-top: 10px; }
form.inline { display: inline; margin: 0; }
details.blocks { margin: 10px 0; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
/* Ajánlat kártya: „Megjelenés és blokkok” buborék — balra a specifikus infók, jobbra a blokk-lista, alul a Mentés */
.appear-box { margin: 10px 0 12px; padding: 10px 14px 12px; border: 1px solid var(--line); border-radius: 10px; }
.appear-title { font-size: 15px; margin: 0 0 8px; }
.appear-cols { display: grid; grid-template-columns: minmax(0, auto) minmax(260px, 1fr); gap: 24px; align-items: start; margin-bottom: 10px; }
.appear-box .info-box { margin: 0; padding: 0; border: 0; }
.appear-box details.blocks { margin: 0; }
@media (max-width: 900px) { .appear-cols { grid-template-columns: 1fr; } }
details.blocks summary { cursor: pointer; }
h3.inline { display: inline; }
.slot { margin: 8px 0; }
.slot-t { font-weight: 600; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; }
.brow { display: flex; align-items: center; gap: 8px; padding: 2px 4px; border-radius: 6px; }
.brow.is-on { background: var(--row); }
.brow .bkey { flex: 1; font-family: ui-monospace, Consolas, monospace; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow.is-on .bkey { font-weight: 600; }
.brow select { min-height: 26px; padding: 1px 6px; font-size: 12px; }
.brow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.brow .dot.auto { background: var(--ok); }
input.num { width: 110px; min-height: 30px; padding: 3px 6px; }
.small-table td, .small-table th { padding: 5px 8px; font-size: 13px; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.file { display: grid; gap: 2px; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px; font-size: 12px; }
.file img { width: 100%; height: 80px; object-fit: cover; border-radius: 4px; }
.file .ext { height: 80px; display: grid; place-items: center; background: var(--row); border-radius: 4px; font-weight: 700; color: var(--muted); }
.file .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* állapot-színek */
.badge.of-draft, .badge.bk-not_started, .badge.jb-scheduled, .badge.fu-test_period, .badge.nt-queued { background: #e3e5e8; color: #333; }
.badge.of-sent, .badge.bk-awaiting_customer, .badge.bk-qualifying, .badge.bk-awaiting_booking, .badge.nt-redirected { background: #1565c0; color: #fff; }
.badge.of-viewed, .badge.of-info_requested, .badge.jb-in_progress, .badge.fu-call_due, .badge.bk-on_hold { background: #f9a825; color: #1b1c1f; }
/* zöld csak a kész munka (user, 2026-10-23) */
.badge.jb-done { background: #2e7d32; color: #fff; }
.badge.of-accepted, .badge.bk-booked, .badge.bk-done, .badge.fu-completed, .badge.nt-sent { background: #e3e5e8; color: #333; }
.badge.of-rejected, .badge.bk-cancelled, .badge.bk-no_show, .badge.jb-not_tunable, .badge.jb-refused_by_us, .badge.fu-problem, .badge.nt-failed { background: #c62828; color: #fff; }
.badge.of-expired, .badge.of-superseded, .badge.jb-cancelled_by_customer, .badge.nt-suppressed { background: #9e9e9e; color: #fff; }
.ver.of-accepted { border-color: #9e9e9e; } .ver.of-rejected { border-color: #c62828; }
.badge.of-delivered { background: #00897b; color: #fff; }
.dotc { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; background: #e3e5e8; }
.dotc.of-sent { background: #1565c0; } .dotc.of-delivered { background: #00897b; } .dotc.of-viewed, .dotc.of-info_requested { background: #f9a825; }
.dotc.of-accepted { background: #9e9e9e; } .dotc.of-rejected { background: #c62828; } .dotc.of-expired { background: #9e9e9e; }
/* ügyfél-aktivitás */
.activity { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; background: var(--row); }
.act-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.act-list { list-style: none; margin: 0; padding: 0; }
.act-list li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0 4px 18px; border-bottom: 1px dashed var(--line); position: relative; font-size: 13px; }
.act-list li:last-child { border-bottom: 0; }
.act-list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.act-list li.ok::before { background: #9e9e9e; } .act-list li.bad::before { background: #c62828; } .act-list li.warn::before { background: #f9a825; }
.act-list li b { text-align: right; font-weight: 600; }

/* belépés */
.login-body { min-height: 100vh; display: grid; place-items: center; background: var(--top); padding: 16px; }
.login { width: 100%; max-width: 360px; background: var(--card); border-radius: 14px; padding: 26px 24px; display: grid; gap: 14px; }
.login label { display: grid; gap: 5px; font-weight: 600; font-size: 13px; }
.login input { min-height: 42px; font-size: 15px; }
.brand.big { font-size: 22px; justify-content: center; margin-bottom: 6px; color: var(--text); }

/* ===== munkalap-lista: fülek, statisztika, telefon ===== */
.stats { display: flex; gap: 22px; flex-wrap: wrap; margin: 4px 0 10px; font-weight: 600; font-size: 13.5px; }
.stats span b { font-family: Montserrat, sans-serif; color: var(--ok); font-size: 15px; margin-left: 4px; }
.subfilter { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 8px 0 0; font-size: 12.5px; }
.subfilter a { text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: 2px 9px; color: var(--muted); }
.subfilter a.on { border-color: var(--text); color: var(--text); font-weight: 600; }
td.phone-cell { width: 34px; text-align: center; padding-left: 6px; padding-right: 0; }
.phone-btn { background: none; border: 0; cursor: pointer; font-size: 17px; color: #2e7d32; padding: 0 4px; line-height: 1; }
.phone-btn:hover { transform: scale(1.15); }
.btn.tiny { min-height: 26px; padding: 2px 8px; font-size: 12px; }

/* ===== időpontfoglaló ablak (calendar1) ===== */
body.bk-open { overflow: hidden; }
.bk-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 12px; }
.bk-dialog { background: var(--card); color: var(--text); border-radius: 10px; width: min(1500px, 100%); height: min(900px, 100%);
  display: grid; grid-template-columns: 230px 240px 1fr; gap: 10px; padding: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
@media (max-width: 1000px) { .bk-dialog { grid-template-columns: 1fr; overflow-y: auto; height: 100%; } }
.bk-left, .bk-mid { overflow-y: auto; font-size: 13px; }
.bk-left label { display: grid; gap: 3px; margin: 6px 0 2px; }
.bk-left input, .bk-left select { padding: 3px 6px; min-height: 28px; border: 1px solid #c8c8c8; border-radius: 3px; font-size: 13px; }
.bk-left label.chk { display: flex; gap: 6px; align-items: center; }
.bk-left label.chk input { min-height: 0; }
.bk-left hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.bk-name { font-weight: 700; font-size: 14px; }
.bk-h { font-weight: 700; }
.bk-cur { font-size: 12px; background: #fff4e0; border: 1px solid #f0c27a; color: #6b4a00; border-radius: 6px; padding: 4px 8px; margin: 4px 0; }
.bk-acts { white-space: nowrap; }
.bk-row { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0; }
.g { background: #43a047; color: #fff; border: none; border-radius: 4px; padding: 6px 10px; cursor: pointer; font: inherit; font-size: 13px; text-decoration: none; display: inline-block; text-align: center; }
.g:hover { background: #388e3c; } .g:active { background: #2e7d32; }
.g:disabled { background: #a5d6a7; color: #f1f8e9; cursor: default; }
.g.wide { display: block; width: 100%; margin-top: 6px; }
.bk-st { color: #888; font-size: 12px; min-height: 16px; white-space: pre-wrap; }
.bk-st.bad { color: #c62828; }
.bk-car-title { font-weight: 700; margin-bottom: 6px; }
.bk-mid dl { margin: 0 0 10px; } .bk-mid dt { color: #888; font-size: 11.5px; margin-top: 4px; } .bk-mid dd { margin: 0; }
.bk-recent { color: #888; font-size: 12px; margin-top: 10px; display: grid; gap: 6px; }
.bk-nav { display: flex; gap: 4px; }
.bk-week { text-align: center; font-weight: 700; } .bk-month { text-align: center; }
.bk-grid { flex: 1; overflow: auto; border: 1px solid var(--line); margin-top: 4px; font-size: 11px; }
.bk-gh { display: grid; grid-template-columns: 46px repeat(7, 1fr); position: sticky; top: 0; z-index: 3; background: var(--card); border-bottom: 1px solid var(--line); }
.bk-dh { text-align: center; padding: 3px 0; font-weight: 600; }
.bk-dh.today { background: #a5d6a7; } .bk-dh.we { background: #e0e0e0; }
.bk-gb { display: grid; grid-template-columns: 46px repeat(7, 1fr); }
.bk-times div { height: 20px; line-height: 20px; color: #888; text-align: right; padding-right: 4px; border-bottom: 1px solid transparent; }
.bk-day { position: relative; border-left: 1px solid var(--line); }
.bk-day.we { background: #e0e0e0; }
.bk-slot { height: 20px; border-bottom: 1px solid #eee; cursor: pointer; }
.bk-slot:hover { background: rgba(67,160,71,.18); }
.bk-slot.now { background: #e53935; }
.bk-ev { position: absolute; color: #fff; padding: 1px 3px; border: 1px solid #fff; font-size: 10px; overflow: hidden; line-height: 1.2; z-index: 2; pointer-events: none; }
@media (prefers-color-scheme: dark) { .bk-dh.we, .bk-day.we { background: #2a2c31; } .bk-slot { border-bottom-color: #26282c; } }
/* időpontfoglalás-állapotok (régi CRM nevek) */
.badge.bk-a0_nincs_valasz, .badge.bk-a6_lezart, .badge.bk-a8_kesobb { background: #e3e5e8; color: #333; }
.badge.bk-a1_minosites { background: #1565c0; color: #fff; }
.badge.bk-a9_igeret { background: #7b1fa2; color: #fff; }
.badge.bk-a5_idopont_beirva { background: #e3e5e8; color: #333; }

/* a rejtett elemek (pl. a foglaló ablak) maradjanak rejtve, akkor is, ha az osztályuk display-t állít */
[hidden] { display: none !important; }

/* beállítások */
.set-body { margin-top: 14px; }
.set-form label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.set-form label.check { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 13.5px; }
.set-form h3 { margin: 14px 0 6px; font-size: 14px; }
.set-form .hint { font-size: 11.5px; color: var(--muted); }
.set-form .field-note { display: grid; gap: 4px; align-content: start; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.set-form .field-note .badge { justify-self: start; margin-top: 6px; }
.err { color: #c62828; font-size: 12px; }
.nowrap { white-space: nowrap; }
pre.small { background: var(--row); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; overflow-x: auto; }
.actions form { display: inline; }
.set-form .check-inline { display: flex; gap: 6px; align-items: center; font-size: 12px; }
.set-form .check-inline input { min-height: 0; }
.badge.nt-bounced { background: #6a1b9a; color: #fff; }
/* AJK form: járműkategória-mátrix */
.matrix th.grp { text-align: center; border-bottom: 1px solid var(--line); }
.matrix th.item { white-space: normal; min-width: 92px; font-size: 12px; vertical-align: bottom; }
.matrix td.c { text-align: center; }
.matrix td.c input { width: 18px; height: 18px; }

/* ---- Ügyfelek (2026-10-22) ---- */
.tabhelp { margin: -4px 0 10px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cards3 .panel { margin-bottom: 0; }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } }
.cards3 + .panel, .cards3 + h2 { margin-top: 14px; }
details.more { margin-top: 8px; } details.more summary { cursor: pointer; color: var(--muted); font-size: 13px; }
details.note summary { cursor: pointer; }
details.note .pre { white-space: pre-wrap; margin: 8px 0 0; font-size: 13px; }
h2.section { margin: 18px 0 10px; }
.panel.car h3 { margin: 0; font-size: 15px; }
.plate { display: inline-block; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; font-family: monospace; font-weight: 600; color: var(--text); }
table.grid.compact td { padding: 6px 8px; }
table.grid tr.done td:first-child { box-shadow: inset 3px 0 0 #2e7d32; }
.filters input.city { width: 150px; }
th.num, td.num { text-align: right; }
dialog.dlg { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; max-width: 640px; width: calc(100% - 32px); background: var(--card); color: var(--text); }
dialog.dlg::backdrop { background: rgba(0,0,0,.45); }
dialog.dlg h2 { margin: 0 0 12px; }
dialog.dlg label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
dialog.dlg label input, dialog.dlg label select, dialog.dlg label textarea { display: block; width: 100%; margin-top: 4px; box-sizing: border-box; }
dialog.dlg label.check { display: flex; gap: 8px; align-items: center; color: var(--text); }
dialog.dlg label.check input { width: auto; margin: 0; }
.toolbar .actions { display: flex; gap: 8px; flex-wrap: wrap; }
th.sortable a { color: inherit; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
th.sortable .arrow { font-size: 10px; color: var(--muted); }
th.sortable.on .arrow { color: var(--text); }
th.sortable.num a { justify-content: flex-end; }
.nvf-toggle { display: inline-flex; align-items: center; margin-left: 6px; }
.nvf-toggle label.check { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; font-weight: 600; }
.nvf-toggle input { width: 18px; height: 18px; margin: 0; }
.panel.car h3 { margin: 0 0 8px; }
table.grid.sheets { table-layout: fixed; width: 100%; }
table.grid.sheets td { padding: 7px 10px; vertical-align: middle; }
table.grid.sheets col.c-no { width: 90px; }
table.grid.sheets col.c-date { width: 150px; }
table.grid.sheets col.c-offer { width: 190px; }
table.grid.sheets col.c-job { width: 230px; }
table.grid.sheets td.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { table.grid.sheets col.c-date { width: 105px; } table.grid.sheets col.c-offer { width: 130px; } table.grid.sheets col.c-job { width: 150px; } }
.panel.pending { border-color: #f9a825; box-shadow: inset 4px 0 0 #f9a825; }
.panel.pending h2 { display: flex; align-items: center; gap: 8px; }
table.grid.sheets td { vertical-align: top; }
.open-req { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 600; color: #b26a00; white-space: nowrap; }

/* munkalap-oldal: sűrűbb kártyák (2026-10-23; előtte: git tag v0.8-munkalap-kinezet-elott) */
.ws-cols { gap: 10px; }
.ws-cols .panel { padding: 10px 12px; margin-bottom: 10px; }
.ws-cols h2 { font-size: 13px; margin-bottom: 6px; }
.ws-cols .panel-head { margin-bottom: 6px; }
.ws-cols .big { font-size: 15px; margin-bottom: 6px; }
.ws-cols .kv { grid-template-columns: 120px 1fr; gap: 3px 10px; font-size: 13.5px; }
.ws-car .kv { grid-template-columns: 110px 1fr; }
.kv-form { display: grid; gap: 4px; margin-top: 8px; }
.kv-form label { display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.kv-form input { min-height: 0; padding: 3px 7px; border-radius: 6px; font-size: 13.5px; width: 100%; max-width: 230px; }
.kv-form input[name=manufacturing_year] { max-width: 70px; }
.save-state { min-height: 16px; } .save-state.err { color: var(--accent); }
/* felső kártyasor: Autó · Ügyfél · AJK kivonat (· később statisztika) — keskeny, magas kártyák */
.ws-top { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; align-items: start; margin-bottom: 10px; }
.ws-top .panel { padding: 10px 12px; margin: 0; }
.ws-top h2 { font-size: 13px; margin-bottom: 6px; }
.ws-top .big { font-size: 15px; margin-bottom: 6px; }
.ws-top .kv { grid-template-columns: 100px 1fr; gap: 3px 10px; font-size: 13.5px; }
/* AJK kivonat */
.ws-ajk { font-size: 13.5px; }
.ws-ajk .lbl { color: var(--muted); }
.ajk-row { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; margin-bottom: 4px; }
.ajk-row select { min-height: 0; padding: 2px 6px; font-size: 13px; border-radius: 6px; width: 100%; }
.ajk-note { font-size: 12px; color: var(--muted); margin: -2px 0 4px 100px; }
.ajk-extras { margin: 2px 0 4px; }
.ajk-extras summary { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; cursor: pointer; list-style: none; }
.ajk-extras summary::-webkit-details-marker { display: none; }
.ajk-extras[open] .caret { transform: rotate(180deg); }
.ajk-picked .chip { font-size: 11.5px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.chip.red, .ajk-opt.red span, .ajk-line .red { color: #c62828; font-weight: 600; }
.chip.red { background: #ffebee; }
.ajk-group { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 8px 0 2px; }
.ajk-opt { display: grid; grid-template-columns: 18px 1fr auto; gap: 6px; align-items: center; padding: 1px 0; font-size: 13px; cursor: pointer; }
.ajk-opt input { min-height: 0; margin: 0; }
.ajk-opt.soon span { color: var(--muted); }
.ajk-opt .by-cust { font-size: 10px; background: var(--line); border-radius: 4px; padding: 0 4px; color: var(--text); }
.ajk-save { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.btn.tiny { padding: 2px 10px; font-size: 12.5px; min-height: 0; }
.ajk-line { border-top: 1px solid var(--line); padding: 3px 0; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.ajk-line span + span::before { content: "· "; color: var(--muted); font-weight: 400; }
.ajk-line .lbl + span::before { content: ""; }

/* Autó kártya: motor-sor, legördülők, autócsere */
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left;
  text-decoration: underline dotted; text-underline-offset: 3px; }
.linkish:hover { color: var(--accent); }
.car-engine { margin: -2px 0 6px; font-size: 13.5px; }
.kv-form select { min-height: 0; padding: 2px 6px; border-radius: 6px; font-size: 13px; width: 100%; max-width: 230px; }
.car-dlg { width: min(620px, 96vw); max-height: 92vh; padding: 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--text); }
.car-dlg[open] { display: flex; flex-direction: column; gap: 8px; }
.car-dlg::backdrop { background: rgba(0,0,0,.45); }
.car-dlg-head { display: flex; justify-content: space-between; align-items: center; }
.car-dlg p { margin: 0; }
.car-dlg iframe { width: 100%; height: 180px; max-height: calc(92vh - 130px); border: 0; border-radius: 8px; background: transparent; }
.car-dlg-foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; }

/* AJK és AJ statisztika */
.ws-stat .kv { grid-template-columns: 120px 1fr; align-items: center; }
.ws-stat .stat-views { display: flex; align-items: center; gap: 8px; }
.ws-stat .stat-valid { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; }
.ws-stat .stat-valid input { width: 48px; min-height: 0; padding: 2px 6px; text-align: right; font-size: 13px; }
.stat-form { margin: 0; }
.stat-form select { min-height: 0; padding: 2px 6px; font-size: 13px; border-radius: 6px; width: 100%; max-width: 200px; }

/* Ügyfél kártya: időpontfoglalás */
.bk-state { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); display: grid; gap: 3px; }
.bk-state .lbl { font-size: 12.5px; color: var(--muted); }
.bk-row { display: flex; gap: 6px; align-items: center; }
.bk-row select { min-height: 0; padding: 2px 6px; font-size: 13px; border-radius: 6px; flex: 1; max-width: 240px; }
.bk-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.bk-actions .btn.primary { padding: 5px 12px; font-size: 13px; }

.stat-ws { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 6px; display: grid; gap: 3px; }
.stat-ws .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.stat-ws b { font-size: 15px; }
.stat-form select.is-done { background: #2e7d32; color: #fff; border-color: #2e7d32; }

.stat-fu { display: grid; gap: 4px; }

/* Árazás: alfülek + mátrix-szerkesztő */
.subtabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; }
.subtabs a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 14px; font-size: 13px; text-decoration: none; color: var(--text); background: var(--card); }
.subtabs a.on { background: var(--text); color: var(--card); border-color: var(--text); }
.mx-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
table.mx td.mx-cell { user-select: none; cursor: cell; }
table.mx td.mx-cell.sel { background: rgba(21, 101, 192, .18); }
table.mx td.mx-cell.sel input { border-color: #1565c0; }
table.mx input.changed { background: #fff8e1; color: #333; }

/* Ajánlat kártya: ártáblázat */
.price-rows { border-collapse: collapse; margin: 0 0 10px; min-width: 320px; font-size: 13.5px; }
.price-rows td { padding: 3px 10px 3px 0; border-bottom: 1px solid var(--line); }
.price-rows td.num { text-align: right; white-space: nowrap; padding-right: 0; }
.price-rows tr.main td { font-weight: 600; }

/* Árazás: járműkategória-fülek, útmutató sor, Leírás */
.cattabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--line); margin: 0 0 10px; }
.cattabs a { padding: 6px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.cattabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.mx-help { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.cat-desc { margin: 0 0 10px; }
.cat-desc label { display: grid; gap: 3px; font-size: 12.5px; color: var(--muted); max-width: 760px; }
.cat-desc textarea { font-size: 13.5px; color: var(--text); }

/* PPro-korrekció: márka × kor */
.bc-add { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.bc-add select { min-height: 0; padding: 3px 6px; font-size: 13px; }
table.mx.bc input.num { width: 62px; padding: 2px 4px; min-height: 0; font-size: 12.5px; }
table.mx.bc th { text-align: center; }

/* Alapdíjak - kedvezmények: két keskeny kártya egymás mellett */
.narrow-cards { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.narrow-cards .panel.narrow { width: 340px; max-width: 100%; }
.panel.narrow .set-form label { display: grid; gap: 3px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }

/* Ajánlat kártya: a fő munka tételei */
.price-rows tr.off td { color: var(--muted); text-decoration: line-through; }
.price-rows tr.off td .pl-check { text-decoration: none; }
.price-rows tr.sum td { font-weight: 700; border-top: 2px solid var(--text); border-bottom: 0; padding-top: 5px; }
.price-rows.extra { margin-top: -4px; }
.pl-check { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.ups-tog { margin-left: 6px; font: inherit; font-size: 11px; line-height: 1.4; padding: 1px 7px; border-radius: 10px; cursor: pointer;
  border: 1px solid #f9a825; background: #f9a825; color: #1b1c1f; vertical-align: middle; }
.ups-tog.off { border-style: dashed; background: transparent; color: var(--muted); border-color: var(--line); opacity: .55; }
tr:hover .ups-tog.off, .ups-tog.off:focus { opacity: 1; }
.ups-tog.manual { box-shadow: 0 0 0 2px rgba(21, 101, 192, .6); }
.ups-tog:disabled { cursor: default; }
.pl-manual { display: inline-flex; gap: 4px; align-items: center; margin: 0; }
.pl-manual input { width: 90px; min-height: 0; padding: 2px 6px; text-align: right; font-size: 13px; }

/* Ajánlat kártya: fő munka + Egyéb tételek két oszlopban */
.price-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.price-rows.others tr.head td { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.price-rows.others tr.cust td { background: rgba(21, 101, 192, .07); }
.price-rows.others tr.cust td:first-child { box-shadow: inset 3px 0 0 rgba(21, 101, 192, .55); padding-left: 6px; }
.price-rows.others tr.off td { text-decoration: none; }
.price-rows.others tr.off td .pl-check { color: var(--muted); }

/* Ajánlat ár-tételek: két kompakt oszlop, függőleges elválasztó, minden sor azonos magas (a jelölős is) */
.price-cols { display: flex; flex-wrap: wrap; gap: 0; align-items: flex-start; margin-bottom: 10px; }
.price-cols .pc { padding-right: 18px; }
.price-cols .pc + .pc { padding-left: 18px; padding-right: 0; border-left: 1px solid var(--line); }
.pc-title { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 4px; height: 18px; line-height: 18px; }
table.pl { border-collapse: collapse; font-size: 13.5px; }
table.pl td { height: 24px; padding: 0 10px 0 0; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; line-height: 1; }
table.pl td.num { text-align: right; }
table.pl td.disc { color: var(--muted); min-width: 44px; }
table.pl tr:last-child td { border-bottom: 0; }
table.pl tr.sum td { font-weight: 700; border-top: 2px solid var(--text); }
table.pl tr.off td { color: var(--muted); }
table.pl:not(.others) tr.off td.num, table.pl:not(.others) tr.off td.num input { text-decoration: line-through; }
table.pl tr.off td .pl-check { text-decoration: none; }
table.pl .pl-check { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
table.pl .pl-check input { margin: 0; width: 14px; height: 14px; min-height: 0; }
table.pl .pl-manual { display: inline-flex; gap: 4px; align-items: center; margin: 0; }
table.pl .pl-manual input { width: 80px; height: 20px; min-height: 0; padding: 0 6px; text-align: right; font-size: 13px; }
table.pl.others tr.cust td { background: rgba(21, 101, 192, .07); }
table.pl.others tr.cust td:first-child { box-shadow: inset 3px 0 0 rgba(21, 101, 192, .55); padding-left: 6px; }
.opt-disc { margin: -2px 0 10px; font-size: 13px; }
.opt-disc input { width: 70px; min-height: 0; padding: 2px 6px; margin-left: 6px; }

/* mátrixok: a kor-sáv évjárat-intervalluma (tárgyévből) */
.yr { color: var(--text); font-size: 12px; margin-left: 10px; font-weight: 400; }
.yr-col { display: block; margin-left: 0; font-size: 10.5px; }

/* ármátrixok: tartalomhoz szűkítve, felesleges oszloptávolság nélkül */
.mx-form .table-wrap { display: inline-block; max-width: 100%; border-top: 1px solid var(--line); border-radius: 10px; }
table.grid.mx { width: auto; }
table.grid.mx th, table.grid.mx td { padding: 4px 8px; vertical-align: middle; }
table.grid.mx td.mx-cell { padding: 3px 4px; }
table.grid.mx input.num { width: 84px; min-height: 0; height: 26px; padding: 2px 6px; text-align: right; }
table.grid.mx.bc th, table.grid.mx.bc td.mx-cell { padding: 3px 2px; text-align: center; }
table.grid.mx.bc input.num { width: 58px; }

table.grid.mx td.pct input.num { width: 56px; }
table.grid.mx td.pct { border-left: 1px solid var(--line); }

/* Beállítások → Export / import */
.panel.narrow-wide { max-width: 900px; }
table.grid.mx-auto-w { width: auto; }

/* második (kedvezményes) mátrix: egy sornyi térköz az első táblázat alatt */
.mx-second { margin-top: 28px; }

/* Ajánlat kártya: elsődleges / másodlagos szolgáltatás-bontás */
.pl-role { font-size: 10px; background: var(--line); border-radius: 4px; padding: 0 4px; margin-left: 2px; }
.price-summary { margin: 4px 0 12px; font-size: 13.5px; max-width: 600px; }
.price-summary .ps-row { display: grid; grid-template-columns: 190px 1fr; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.price-summary .ps-l { color: var(--muted); }
.price-summary ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.price-summary .ps-total { display: grid; grid-template-columns: 190px 1fr; gap: 10px; align-items: baseline; margin-top: 12px; padding-top: 8px; border-top: 2px solid var(--text); }
.price-summary .ps-total .ps-l { color: var(--text); font-weight: 700; }
.price-summary .big-price { font-size: 22px; }
.pl-refresh { margin: 8px 0 0; }
.pl-decline { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 13.5px; cursor: pointer; }
.pl-decline input { margin: 0; width: 14px; height: 14px; min-height: 0; }
/* (width 0 + min-width 100%: a gombsor nem szélesíti az oszlopot — kiküldés után több gomb van, ilyenkor tördel) */
.pl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; width: 0; min-width: 100%; }

/* Beállítások: egy sornyi szünet két kártya között (pl. AJK form fül) */
.panel.panel-gap { margin-top: 28px; }

/* Beállítások → Ajánlat megjelenítés: blokkszerkesztő (lista · szerkesztő · előnézet) */
.be { display: grid; grid-template-columns: 280px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1400px) { .be { grid-template-columns: 260px minmax(0, 1fr); } .be-list { grid-row: span 2; } .be-prev { grid-column: 2; } }
@media (max-width: 900px) { .be { grid-template-columns: 1fr; } .be-list { grid-row: auto; position: static; max-height: 50vh; } .be-prev { grid-column: auto; } }
.be-list { position: sticky; top: 8px; max-height: calc(100vh - 24px); display: flex; flex-direction: column; }
.be-list .be-groups { overflow: auto; margin: 6px -6px 0; padding: 0 6px; }
.be-search { width: 100%; margin-bottom: 6px; }
.be-chk { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.be-slot-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin: 12px 0 4px; }
.be-slot-h .muted { font-weight: 400; text-transform: none; }
.be-item { display: block; padding: 5px 8px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 13px; }
.be-item:hover { background: var(--hover); }
.be-item.on { background: var(--hover); box-shadow: inset 3px 0 0 var(--accent); }
.be-item.inactive .be-key { color: var(--muted); text-decoration: line-through; }
.be-key { display: block; word-break: break-all; }
.be-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2e7d32; margin-right: 5px; vertical-align: 1px; }
.be-facts { display: block; margin-top: 2px; }
.chip { display: inline-block; font-size: 11px; padding: 0 5px; margin: 1px 2px 0 0; border-radius: 4px; background: var(--line); }
.chip.alt { background: rgba(21, 101, 192, .12); }
.be-fields { display: grid; grid-template-columns: 2fr 90px 1fr auto; gap: 10px; align-items: end; }
.be-active { display: flex; gap: 6px; align-items: center; white-space: nowrap; padding-bottom: 8px; }
.be-note { display: block; margin: 8px 0; }
.be-conds details { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin: 6px 0; }
.be-conds summary { cursor: pointer; font-size: 13px; }
.be-conds summary select { width: auto; display: inline-block; padding: 0 4px; height: 24px; min-height: 0; }
.be-factlist { max-height: 260px; overflow: auto; columns: 2; font-size: 12.5px; margin-top: 6px; }
.be-factlist label { display: block; break-inside: avoid; }
.be-fgrp { font-weight: 700; margin: 6px 0 2px; break-after: avoid; }
#be-body, .be-edit .CodeMirror { width: 100%; height: 60vh; min-height: 360px; font: 12.5px/1.45 Consolas, monospace; border: 1px solid var(--line); border-radius: 8px; }
.be-bar { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.be-bar .save-state.err { color: #c62828; }
.be-prev-bar { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 8px; }
.be-prev-bar label { flex: 1 1 220px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: none; padding: 6px 10px; cursor: pointer; font: inherit; font-size: 13px; color: var(--text); }
.seg button.on { background: var(--text); color: var(--card); }
.be-frame-wrap { background: var(--hover); border-radius: 8px; padding: 6px; }
.be-frame { display: block; width: 100%; max-width: none; margin: 0 auto; height: 72vh; border: 0; background: #fff; border-radius: 6px; }

/* Blokkszerkesztő: változatok, forgatókönyv-szimulátor, hibakereső */
.be-vers { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.be-vers summary { cursor: pointer; font-size: 13px; }
.be-vers table { width: 100%; font-size: 12.5px; border-collapse: collapse; margin-top: 6px; }
.be-vers td { padding: 3px 6px 3px 0; border-top: 1px solid var(--line); vertical-align: top; }
.be-vers td:last-child { white-space: nowrap; text-align: right; }
.be-diff { max-height: 320px; overflow: auto; font: 12px/1.4 Consolas, monospace; white-space: pre-wrap; background: var(--hover); border-radius: 6px; padding: 8px; margin: 6px 0 0; }
.be-diff .add { color: #2e7d32; } .be-diff .del { color: #c62828; } .be-diff .hunk { color: var(--muted); }
.be-sim { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .be-sim { grid-template-columns: 1fr; } }
.be-sim .be-factlist { max-height: 46vh; columns: 1; }
.be-sim-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 8px; }
.be-sim-tools label { flex: 1 1 160px; }
.sim-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.sim-row.warn-üres .sim-slot, .sim-row.warn-több .sim-slot { color: #b26a00; }
.sim-slot { font-weight: 700; }
.sim-slot .muted { font-weight: 400; display: block; font-size: 11.5px; }
.sim-b { display: block; color: var(--text); text-decoration: none; padding: 1px 0; }
.sim-b:hover .be-key { text-decoration: underline; }
.sim-b .be-key { display: inline; }
.sim-warn { display: inline-block; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 4px; background: rgba(249, 168, 37, .25); color: #8a5a00; }
.be-check table { width: 100%; font-size: 13px; border-collapse: collapse; }
.be-check td, .be-check th { text-align: left; padding: 4px 8px 4px 0; border-top: 1px solid var(--line); vertical-align: top; }
.be-check .err { color: #c62828; font-family: Consolas, monospace; font-size: 12px; word-break: break-word; }

/* Beállítások → Ajánlat megjelenítés: Specifikus infók (030-as modulok és megjelenési feltételeik) */
.inf { margin-bottom: 28px; }
.inf-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.inf-list { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 6px; }
.inf-list th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.inf-list td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.inf-list tr[data-inf-href] { cursor: pointer; }
.inf-list tr[data-inf-href]:hover { background: var(--hover); }
.inf-list tr.on { background: var(--hover); box-shadow: inset 3px 0 0 var(--accent); }
.inf-list tr.inactive a { color: var(--muted); text-decoration: line-through; }
.inf-list .num { text-align: right; white-space: nowrap; width: 1%; }
.inf-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); align-items: start; }
@media (max-width: 1100px) { .inf-edit { grid-template-columns: 1fr; } }
.inf-fields { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.inf-tabs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.inf-form .CodeMirror, #inf-code { width: 100%; height: 420px; font: 12.5px/1.45 Consolas, monospace; border: 1px solid var(--line); border-radius: 8px; }
.inf-frame { height: 520px; }
.inf-sub { margin-top: 22px; }
.inf-rules { margin-top: 8px; }
.inf-rule { display: grid; grid-template-columns: 40px minmax(140px, 260px) minmax(0, 1fr) 50px auto auto; gap: 8px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.inf-rule.inactive { opacity: .55; }
.inf-rule .pos { font-weight: 700; text-align: right; color: var(--muted); }
.inf-rule .mod { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inf-rule .hits { text-align: right; white-space: nowrap; }
@media (max-width: 800px) { .inf-rule { grid-template-columns: 34px minmax(0, 1fr) auto auto; } .inf-rule .chips { grid-column: 2 / -1; } .inf-rule .hits { display: none; } }
.icon-btn { border: 1px solid var(--line); background: none; border-radius: 6px; padding: 2px 7px; cursor: pointer; font-size: 14px; color: var(--text); }
.icon-btn:hover { background: var(--hover); }
.rule-form { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--accent); border-radius: 10px; }
.rule-form fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 10px 0; padding: 6px 10px 8px; }
.rule-form legend { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 4px; }
.rf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.rf-grid .rf-wide { grid-column: span 2; }
@media (max-width: 800px) { .rf-grid { grid-template-columns: 1fr 1fr; } }
.rf-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 4px 0; font-size: 13px; }
.rf-checks label, .rf-opts label { display: inline-flex; gap: 5px; align-items: center; }
.rf-checks select { width: auto; min-height: 26px; padding: 1px 6px; }
.rf-l { font-weight: 600; font-size: 12.5px; }
.rf-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; font-size: 12.5px; }
.rf-og { display: flex; flex-direction: column; gap: 2px; }
.rf-gh { font-weight: 700; }
.rule-test { margin: 8px 0; padding: 8px 10px; background: var(--hover); border-radius: 8px; font-size: 13px; min-height: 20px; }
.rule-test .err { color: #c62828; }
.inf-fields label, .inf-form .be-note, .rf-grid label { display: flex; flex-direction: column; gap: 3px; }
.inf-fields .be-active, .rf-grid .be-active { flex-direction: row; align-items: center; }
.inf-fields input, .inf-form .be-note input, .rf-grid input, .rf-grid select { width: 100%; }
.inf-off { margin-top: 3px; opacity: .7; }
.inf-head-btns { display: flex; gap: 8px; }
.inf-css { margin: 12px 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--hover); }
.inf-css .CodeMirror, #inf-css-ta { width: 100%; height: 300px; font: 12.5px/1.45 Consolas, monospace; border: 1px solid var(--line); border-radius: 8px; }
.inf-css code { font-size: 11.5px; }

/* Munkalap → Ajánlat: specifikus infók doboza */
.info-box { margin: 10px 0 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.info-box-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.info-box-h .save-state { margin-left: auto; }
.info-box-h .save-state.err { color: #c62828; }
/* sorok rácsban: a jelölések a leghosszabb cím után, egy vonalban; sormagasság az ár-tételekéhez igazítva */
.info-rows { display: inline-grid; grid-template-columns: auto auto auto; column-gap: 10px; max-width: 100%; }
/* tartalék a subgrid nélküli böngészőkre (pl. Windows 7 Chrome ≤ 109): soronként saját rács — különben a sor elemei
   egymásra csúsznak; ahol van subgrid, ott a jelölések a leghosszabb cím után egy vonalban */
.info-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 10px; grid-column: 1 / -1;
            align-items: center; height: 24px; padding: 0 4px;
            border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13.5px; }
@supports (grid-template-columns: subgrid) {
  .info-row { grid-template-columns: subgrid; }
}
.info-row:last-child { border-bottom: 0; }
.info-row:hover { background: var(--hover); }
.info-row input { margin: 0; width: 14px; height: 14px; min-height: 0; }
.info-row .info-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-row .info-src { justify-self: start; }
.info-row:not(.is-on) .info-t { color: var(--muted); text-decoration: line-through; }
.info-src { font-size: 11px; padding: 0 6px; border-radius: 4px; background: var(--line); color: var(--muted); white-space: nowrap; }
.info-src.manual { background: rgba(249, 168, 37, .25); color: #8a5a00; }
.info-add { display: block; margin-top: 8px; width: auto; max-width: 100%; min-height: 0; padding: 2px 6px; border-radius: 6px; font-size: 13px; }

/* Autó kártya: katalógus-jelzők (forrasztásos ECU, nem élő tétel) */
.car-flag { display: inline-block; margin: 2px 0 6px; padding: 2px 8px; border-radius: 6px; font-size: 12.5px; background: var(--line); color: var(--muted); }
.car-flag.solder { background: rgba(249, 168, 37, .25); color: #8a5a00; font-weight: 600; }

/* Tuning adatok: forrás-jelölés (nincs jel = cardb; kék = saját érték; piros keret = üres) */
.gain input.src-custom { background: rgba(21, 101, 192, .12); border-color: rgba(21, 101, 192, .55); color: #0d47a1; }
.gain input.src-empty { border-color: #c62828; box-shadow: inset 0 0 0 1px #c62828; }
/* kiküldés előtti figyelmeztetés */
dialog.send-warn { border: 2px solid #c62828; border-radius: 10px; padding: 14px 18px; max-width: 520px; }
dialog.send-warn h3 { color: #c62828; margin: 0 0 8px; font-size: 15px; }
dialog.send-warn ul { margin: 0 0 14px 18px; padding: 0; color: #c62828; font-size: 13.5px; line-height: 1.5; }
.send-warn-btns { display: flex; gap: 8px; justify-content: flex-end; }
/* Beállítások → Teljesítményadatok: saját lista */
table.perf-list td { vertical-align: top; }
table.perf-list input { width: 64px; min-height: 0; padding: 2px 6px; text-align: right; font-size: 13px; }
table.perf-list input.src-custom { background: rgba(21, 101, 192, .12); border-color: rgba(21, 101, 192, .55); color: #0d47a1; }

/* Beállítások → SMS */
.sms-price { display: flex; gap: 6px; }
.sms-price input[name=currency] { width: 70px; flex: 0 0 auto; }
.sms-sum { display: flex; flex-wrap: wrap; gap: 12px; }
.sms-sum-card { flex: 1 1 260px; }
.sms-balance { font-size: 28px; font-weight: 700; color: #2e7d32; margin: 2px 0 4px; }
.sms-balance.neg, .sms-log .neg { color: #c62828; }
.sms-log .pos { color: #2e7d32; }
.sms-log .num { text-align: right; }
.sms-log tr.is-topup td { background: rgba(46, 125, 50, .07); }
.sms-log .sms-text { max-width: 320px; }
.sms-topup { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.sms-topup label { display: flex; flex-direction: column; font-size: 13px; }

/* ---------- e-mail-sablon szerkesztő ---------- */
.et { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .et { grid-template-columns: 1fr; } }
.et-edit form > label { display: block; margin-bottom: 8px; }
.et-row { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; margin-bottom: 8px; }
.et-name { flex: 1 1 260px; }
.et-subject { width: 100%; }
#et-body, .et-edit .CodeMirror { width: 100%; height: 62vh; min-height: 360px; font: 12.5px/1.45 Consolas, monospace; border: 1px solid var(--line); border-radius: 8px; }
.et-prev { position: sticky; top: 10px; }
.et-frame { height: 70vh; }
.et-test { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-top: 10px; }
.et-test label { flex: 1 1 260px; }
.et-test .save-state.err { color: #c62828; }

/* becsült (golden.db: inc_estimated) növekmény a munkalap tuning-táblázatánál */
.gain-box.is-est .gain { outline: 2px dashed #e0a800; outline-offset: 3px; }
.est-badge { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 700;
  background: #fff3cd; color: #6d4c00; border: 1px solid #e0a800; vertical-align: middle; }

/* ---------- Beállítások → Járművek ---------- */
.veh-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.veh-stats > div { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; min-width: 120px; }
.veh-stats b { display: block; font-size: 20px; }
.veh-stats span { font-size: 12px; color: var(--muted); }
.veh-cats { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin-bottom: 8px; }
.veh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 14px; margin-bottom: 8px; }
.veh-grid label, .veh-add > label { display: block; }
.veh-grid select, .veh-grid input { width: 100%; }
.veh-add textarea, .veh-reason textarea { width: 100%; }
.veh-reason { display: flex; gap: 6px; align-items: flex-start; min-width: 260px; }
.veh-rules td { vertical-align: top; }
form.inline { display: inline; }

/* Tickets (ügyfél-levelezés): menügomb, lista, chat-buborékok */
.menu a.tickets-nav { position: relative; }
/* elérhetőség-jelzés a felhasználónév előtt: kicsi, visszafogott, de látható */
.user a.av-nav { font-size: 11px; line-height: 1; padding: 4px 8px; border-radius: 10px; text-decoration: none;
  color: #f0b45c; border: 1px solid rgba(240, 180, 92, .55); background: rgba(240, 180, 92, .1); margin-right: 4px; }
.user a.av-nav.av-closed { color: #ff8a80; border-color: rgba(255, 138, 128, .6); background: rgba(255, 138, 128, .12); }
.user a.av-nav:hover { background: rgba(255, 255, 255, .08); }
.menu a.tk-unread { background: #c62828; color: #fff; }
.menu a.tk-open { background: #e08a00; color: #1b1c1f; }
.menu a.tk-unread:hover { background: #b71c1c; } .menu a.tk-open:hover { background: #f29a10; }
.tk-count { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; background: #fff; color: #c62828; font-size: 11.5px; font-weight: 700; text-align: center; line-height: 18px; }
.tk-list td { vertical-align: top; }
.tk-list tr.tk-row-unread td { font-weight: 600; }
.tk-list tr.tk-row-unread td:first-child { box-shadow: inset 3px 0 0 #c62828; }
.tk-list tr.tk-row-open td:first-child { box-shadow: inset 3px 0 0 #e08a00; }
.tk-ws { display: inline-block; padding: 2px 8px; border-radius: 10px; font-weight: 700; font-size: 12.5px; text-decoration: none; }
.tk-ws.green { background: #2e7d32; color: #fff; } .tk-ws.orange { background: #e08a00; color: #1b1c1f; } .tk-ws.none { background: var(--line); color: var(--muted); }
.tk-alts { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.tk-alts form { margin: 0; }
.tk-alts button { font: inherit; font-size: 12px; padding: 1px 7px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.tk-alts button:hover { border-color: #2e7d32; }
.tk-alts .cur { border-color: #2e7d32; color: #2e7d32; font-weight: 700; cursor: default; }
.tk-snip { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 460px; }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 640px; overflow-y: auto; padding: 4px 2px; }
.bubble { max-width: 78%; border-radius: 12px; padding: 8px 12px; background: var(--row); border: 1px solid var(--line); }
.bubble.in { align-self: flex-start; border-top-left-radius: 3px; }
.bubble.out { align-self: flex-end; background: #e6f1ff; border-color: #c4dcf7; border-top-right-radius: 3px; }
@media (prefers-color-scheme: dark) { .bubble.out { background: #17283b; border-color: #23405e; } }
.bubble .bh { font-size: 12px; color: var(--muted); margin-bottom: 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.bubble .bt { white-space: pre-wrap; word-break: break-word; }
.bubble .bt .q { color: var(--muted); }
.bubble details { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.bubble .ba { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bubble .ba a { font-size: 12px; }
.chat-reply textarea { width: 100%; min-height: 90px; font: inherit; padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--field); color: var(--text); }
.chat-reply .chat-files { display: inline-flex; align-items: center; gap: 4px; margin: 6px 8px 6px 0; font-size: 13px; cursor: pointer; }
.chat-reply .chat-files input { font-size: 12px; max-width: 320px; }
.chat-reply .chat-ch { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.chat-reply .chat-ch label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.tk-quick { margin-top: 6px; white-space: normal; }
.tk-bar { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.tk-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.tk-seg .n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; text-align: center; margin-left: 2px; }
.tk-bulk { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.tk-list .tk-cb { width: 28px; text-align: center; }
.tk-list .tk-cb input { width: 16px; height: 16px; cursor: pointer; }
.tk-list tr.tk-row-sel td { background: rgba(21, 101, 192, .08); }
.tk-quick summary { cursor: pointer; color: var(--accent, #1565c0); }
.tk-quick textarea { width: 280px; min-height: 70px; }
.tk-ws.cust { background: #e3f1e4; color: #2e7d32; border: 1px solid #2e7d32; }

/* ---- Időpontok (automatikus foglalás) ---- */
.ab-cols { grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); }
@media (max-width: 1000px) { .ab-cols { grid-template-columns: 1fr; } }
.ab-nav { display: flex; align-items: center; gap: 8px; }
.ab-nav h2 { margin: 0 6px; min-width: 150px; text-align: center; }
.ab-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ab-dn { font-size: 12px; color: var(--muted); text-align: center; text-transform: uppercase; }
.ab-day { border: 1px solid var(--line); border-radius: 8px; min-height: 92px; padding: 4px; display: flex; flex-direction: column; gap: 3px; background: var(--card); }
.ab-day.out { opacity: .45; }
.ab-day.past { background: transparent; }
.ab-day.today { border-color: #1565c0; box-shadow: inset 0 0 0 1px #1565c0; }
.ab-dh { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.ab-dact { display: inline-flex; gap: 2px; }
.ab-dact button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; padding: 0 3px; border-radius: 4px; }
.ab-dact button:hover { background: var(--line); color: var(--text); }
.ab-chip { display: block; width: 100%; border-radius: 6px; padding: 2px 5px; font: inherit; font-size: 12px; text-align: left; cursor: pointer; border: 1px solid transparent; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
span.ab-chip { display: inline; width: auto; cursor: default; }
.ab-chip.free { background: #e3f4ea; color: #155c36; border-color: #9fd5b4; font-weight: 600; }
.ab-chip.off { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
.ab-chip.off:hover { border-color: #9fd5b4; color: #155c36; }
.ab-chip.taken { background: #1565c0; color: #fff; }
.ab-chip.dim { opacity: .6; }
.ab-booked { font-size: 11px; color: var(--muted); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-list { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.ab-list li { display: flex; align-items: center; gap: 6px; padding: 3px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ab-list form.inline { margin-left: auto; }
.ab-set { display: grid; gap: 6px; }
.ab-set label { display: grid; gap: 2px; font-size: 13px; }
.ab-ws { margin: 8px 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 4px; }
.ab-ws .ab-link { display: flex; gap: 6px; align-items: center; }
.ab-ws .ab-link input { flex: 1; font-size: 12px; min-width: 0; }
.badge.ab-sent, .badge.ab-opened { background: #1565c0; color: #fff; }
.badge.ab-booked, .badge.bk-a5_auto_foglalva { background: #168451; color: #fff; }
.badge.ab-callback, .badge.bk-a1_auto_hivni { background: #c62828; color: #fff; }
.badge.ab-expired, .badge.ab-cancelled { background: #9e9e9e; color: #fff; }
.badge.bk-a1_auto_meghivo { background: #1565c0; color: #fff; }
/* Google Naptár foglaltság az Időpontok naptárban: céges kék, privát piros */
.ab-ev { display: block; font-size: 11px; line-height: 1.3; padding: 1px 5px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
span.ab-ev { cursor: default; }
.ab-ev.primary { background: #e3edfb; color: #0d4a96; border-left: 3px solid #1565c0; }
.ab-ev.privat { background: #fdeaea; color: #9b1c1c; border-left: 3px solid #c62828; }
p span.ab-ev { display: inline; }
.ab-chip.busy-primary { box-shadow: inset 3px 0 0 #1565c0; background: #e3edfb; color: #0d4a96; border-color: #9dbbe6; }
.ab-chip.busy-privat { box-shadow: inset 3px 0 0 #c62828; background: #fdeaea; color: #9b1c1c; border-color: #eba3a3; }
.ab-chip.free.busy-primary, .ab-chip.free.busy-privat { text-decoration: line-through; }
/* Időpont-típusok: Megvárja (alap zöld) / Leteszi (borostyán) */
.ab-chip i { font-style: normal; font-weight: 400; font-size: 11px; }
.ab-chip.k-letesz.free:not(.busy-primary):not(.busy-privat) { background: #fff3dc; color: #7a4a00; border-color: #efc27a; }
.ab-chip.k-letesz.off:not(.busy-primary):not(.busy-privat) { border-style: dotted; }
.ab-chip.k-letesz.off:not(.busy-primary):not(.busy-privat):hover { border-color: #efc27a; color: #7a4a00; }
.ab-types td { vertical-align: top; font-size: 13px; }
.ab-types .ab-chip { display: inline-block; width: auto; }
.ab-kind { font-size: 11px; padding: 0 6px; border-radius: 8px; background: #e3f4ea; color: #155c36; }
.ab-kind.k-letesz { background: #fff3dc; color: #7a4a00; }
/* Időpontok: Google Naptár mód-kapcsoló */
.ab-mode { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px 8px; margin: 4px 0; display: grid; gap: 6px; }
.ab-mode legend { font-size: 13px; padding: 0 4px; }
.ab-set .ab-mode label { display: flex; gap: 8px; align-items: flex-start; }
.ab-mode input { margin-top: 3px; }
.ab-set label.ab-chk { display: flex; gap: 8px; align-items: flex-start; }
.ab-chk input { margin-top: 3px; }
/* lejárt ajánlat: az ügyfél frissítést kért (Kezeletlen fül) */
.badge.refresh-req { background: #e65100; color: #fff; font-weight: 700; }
/* Munkalap: Időpontfoglalás blokk + egységes (kisebb) gombméret a munkalapon és a hívás-ablakban (2026-11-15) */
.ws-page { display: contents; }
.bk-state h2.bk-title { margin: 6px 0 6px; }
.bk-next { font-weight: 700; color: var(--ok); font-size: 15px; margin-top: 4px; }
.bk-next span { font-weight: 600; }
.sync-on { color: var(--ok); }
.ws-page .btn, .ws-page .bk-actions .btn.primary { min-height: 30px; padding: 4px 12px; font-size: 13px; }
.ws-page .btn.tiny { min-height: 0; padding: 2px 10px; font-size: 12.5px; }
.btn.ok-ghost { background: transparent; color: var(--ok); border: 2px solid var(--ok); }
.btn.ok-ghost:hover { background: rgba(46, 125, 50, .08); }
.bk-dialog .g { border-radius: 8px; padding: 5px 12px; font-weight: 600; min-height: 30px; }
/* Naptárbejegyzés az ügyfélnek: munkalap-panel + hívás-ablak (2026-11-15) */
.bk-calsend { margin: 8px 0 4px; padding: 8px 10px; border: 1px dashed var(--line, #ccc); border-radius: 8px; }
.bk-calsend input { flex: 1; min-width: 180px; }

/* Időpontok: Automatikus foglalás indítás blokk (2026-11-15) */
.ab-left { min-width: 0; }
.ab-auto p.small { margin: 0 0 6px; }
.ab-auto-grid { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 8px 14px; align-items: center; margin: 10px 0; font-size: 13.5px; }
.ab-auto-grid .lbl { color: var(--muted); font-size: 13px; }
.ab-auto input.num { min-height: 0; padding: 3px 8px; border-radius: 6px; width: 110px; text-align: right; }
.ab-auto input.num.short { width: 60px; }
.ab-svcs { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ab-svcs .ab-chk, .ab-toggle { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.ab-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.ab-toggle .tg { width: 36px; height: 20px; border-radius: 10px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.ab-toggle .tg::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: left .15s; }
.ab-toggle input:checked + .tg { background: var(--ok); }
.ab-toggle input:checked + .tg::after { left: 18px; }
.ab-toggle input:focus-visible + .tg { outline: 2px solid var(--accent); outline-offset: 2px; }
.ab-auto .btn { min-height: 30px; padding: 4px 12px; font-size: 13px; }
.ab-auto .btn.tiny { min-height: 0; padding: 2px 10px; font-size: 12.5px; }
.ab-auto-foot { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; display: grid; gap: 8px; }
.ab-stats { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--muted); }
.ab-stats b { color: var(--text); }
.ab-stats.ab-total { font-size: 13.5px; }
.ab-stats .hl b { color: var(--ok); font-size: 15px; }
.ab-probe { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.ab-probe label { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.ab-probe-res p { margin: 0 0 4px; }
.ab-conds { list-style: none; margin: 0 0 8px; padding: 0; font-size: 13px; display: grid; gap: 2px; }
.ab-conds .ok, .ab-probe-res b.ok { color: var(--ok); } .ab-conds .bad, .ab-probe-res b.bad { color: #c62828; }
.ab-conds .bad b, .ab-conds .ok b { color: var(--text); font-weight: 600; }
@media (max-width: 700px) { .ab-auto-grid { grid-template-columns: 1fr; } }
/* Időpontfoglaló ablak — munkalap-stílusú kártyák, kis gombok, kijelölés-jelölő (2026-11-15) */
.bk-dialog { position: relative; grid-template-columns: 330px 330px minmax(0, 1fr); gap: 10px; padding: 10px; background: var(--bg); }
.bk-dialog .panel.bk-p { padding: 10px 12px; margin: 0 0 10px; }
.bk-dialog h2 { font-size: 13px; margin: 0 0 6px; }
.bk-left, .bk-mid { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; font-size: 13px; }
.bk-left .panel:last-child, .bk-mid .panel:last-child { margin-bottom: 0; }
.bk-dialog .btn { min-height: 30px; padding: 4px 12px; font-size: 13px; }
.bk-dialog .btn.tiny { min-height: 0; padding: 2px 9px; font-size: 12.5px; }
.bk-dialog .btn:disabled { opacity: .45; cursor: default; }
.bk-dialog .btn.hangup { background: #c62828; border-color: #c62828; color: #fff; }
.bk-dialog input, .bk-dialog select { min-height: 0; padding: 3px 8px; border-radius: 6px; font-size: 13px; }
.bk-dialog .bk-full { display: block; width: 100%; margin-top: 6px; justify-content: center; }
.bk-x { position: absolute; top: 8px; right: 10px; z-index: 6; width: 30px; height: 30px; padding: 0; border-radius: 8px;
  background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; }
.bk-x:hover { border-color: var(--muted); color: var(--text); }
.bk-name { display: block; font-weight: 700; font-size: 15px; color: var(--text); text-decoration: none; margin-bottom: 6px; }
.bk-name:hover { text-decoration: underline; }
.bk-callrow { display: flex; gap: 6px; align-items: center; }
.bk-callrow input { flex: 1; min-width: 0; }
.bk-callrow .btn { white-space: nowrap; }
.bk-chks { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 2px; }
.bk-dialog label.chk { display: inline-flex; gap: 6px; align-items: center; margin: 0; white-space: nowrap; cursor: pointer; }
.bk-dialog label.chk input { min-height: 0; margin: 0; }
.bk-f { display: grid; grid-template-columns: 66px 1fr; gap: 8px; align-items: center; margin: 4px 0; }
.bk-f > span { color: var(--muted); font-size: 12.5px; }
.bk-opts { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.bk-opts > span { display: contents; }
.bk-opts input { width: 64px; }
.bk-dialog .bk-cur { margin: 0 0 6px; }
.bk-dialog .bk-st { min-height: 0; }
.bk-dialog .bk-st:not(:empty) { margin-top: 4px; }
.bk-car-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.bk-carflow { display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: 13px; }
.bk-carflow .it { display: flex; max-width: 100%; }
.bk-carflow .k { color: var(--muted); white-space: nowrap; margin-right: 5px; }
.bk-carflow .v { min-width: 0; overflow-wrap: anywhere; }
.bk-logp { flex: 1; display: flex; flex-direction: column; min-height: 180px; }
.bk-dialog .bk-recent { flex: 1; min-height: 0; overflow-y: auto; margin: 0 0 8px; color: inherit; font-size: 12.5px; display: block; }
.bk-dialog .bk-recent li { grid-template-columns: auto 1fr; gap: 0 8px; padding: 3px 0 3px 16px; }
.bk-dialog .bk-recent .what { grid-column: 1 / -1; }
.bk-logadd { display: flex; gap: 6px; }
.bk-logadd input { flex: 1; min-width: 0; }
.bk-logadd .btn { width: 34px; padding: 0; justify-content: center; font-size: 18px; }
.bk-calp { display: flex; flex-direction: column; min-width: 0; min-height: 0; margin: 0 !important; }
.bk-dialog .bk-nav { display: flex; align-items: center; gap: 6px; padding-right: 36px; flex-wrap: wrap; }
.bk-dialog .bk-nav h2 { margin: 0 8px 0 0; }
.bk-dialog .bk-week { font-weight: 700; margin-left: 8px; } .bk-dialog .bk-month { color: var(--muted); }
.bk-dialog .bk-grid { margin-top: 6px; border-radius: 6px; }
.bk-mark { position: absolute; left: 1px; right: 1px; z-index: 4; pointer-events: none; border: 2px dashed var(--ok); border-radius: 4px;
  background: rgba(46, 125, 50, .14); color: var(--ok); font-weight: 700; font-size: 10.5px; padding: 1px 4px; box-sizing: border-box; }
@media (max-width: 1000px) { .bk-dialog { grid-template-columns: 1fr; } .bk-left, .bk-mid { overflow: visible; } .bk-calp { min-height: 600px; } }
.bk-dialog [hidden] { display: none !important; }

/* Telefon-sáv (phonebar.js): élő hívás a jobb alsó sarokban */
.badge.st-ok { background: #2e7d32; color: #fff; }
.phonebar-stack { position: fixed; right: 16px; bottom: 16px; z-index: 9000; display: flex; flex-direction: column;
  gap: 10px; align-items: flex-end; max-height: calc(100vh - 32px); overflow-y: auto; }
.phonebar { position: relative; width: 300px; max-width: calc(100vw - 32px);
  background: #fff; color: #1b1c1f; border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.28); padding: 12px 14px;
  border-left: 6px solid #1565c0; font-family: "Open Sans", sans-serif; }
.phonebar.ringing { border-left-color: #2e7d32; animation: pb-pulse 1.2s ease-in-out infinite; }
.phonebar.over { border-left-color: #9e9e9e; opacity: .92; }
@keyframes pb-pulse { 0%,100% { box-shadow: 0 8px 28px rgba(0,0,0,.28); } 50% { box-shadow: 0 0 0 6px rgba(46,125,50,.35), 0 8px 28px rgba(0,0,0,.28); } }
.phonebar .pb-x { position: absolute; top: 4px; right: 8px; border: 0; background: none; font-size: 20px; cursor: pointer; color: #777; }
.phonebar .pb-head { font-size: 12px; color: #555; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.phonebar .pb-who { font-size: 18px; font-weight: 700; margin-top: 4px; font-family: Montserrat, sans-serif; }
.phonebar .pb-sub { font-size: 13px; color: #444; }
.phonebar .pb-ws { display: inline-block; margin-top: 4px; font-size: 13px; }
.phonebar .pb-rec { margin-top: 6px; font-size: 12px; font-weight: 700; color: #c62828; }
.phonebar .pb-rec.paused { color: #ef6c00; } .phonebar .pb-rec.saved { color: #2e7d32; }
.phonebar .pb-btns { display: flex; gap: 8px; margin-top: 10px; }
.phonebar .pb-btns .btn { flex: 1; }
.phonebar .pb-ok { background: #2e7d32; color: #fff; border-color: #2e7d32; }
.phonebar .pb-no { background: #c62828; color: #fff; border-color: #c62828; }

/* hívás-kártya: az ügyfél munkalapjai (legutóbb kezelt sorrendben) */
.phonebar .pb-ws, .ccard .cc-ws { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.pb-chip, .cc-chip { border: 1px solid #c5cbd3; background: #f3f5f8; color: #1b1c1f; border-radius: 12px; padding: 2px 9px;
  font-size: 12px; cursor: pointer; font-family: "Open Sans", sans-serif; }
.pb-chip:hover, .cc-chip:hover, .cc-chip.on { background: #1565c0; border-color: #1565c0; color: #fff; }
.phonebar.no-ws, .ccard.no-ws { background: #fbf6e9; }

/* Hívások menü: élő hívás alatt kiemelve */
.menu a.calls-nav.live { background: #2e7d32; color: #fff; border-radius: 6px; animation: pb-navpulse 1.4s ease-in-out infinite; }
@keyframes pb-navpulse { 50% { background: #43a047; } }

/* Lebegő panel (panel.js): CRM-oldal az aktuális oldal fölött, keretben — 'ws' munkalap-ablak, 'layer' teljes képernyős réteg */
.rt-panel { position: fixed; inset: 0; display: flex; }
.rt-panel-ws { background: rgba(0,0,0,.45); align-items: stretch; justify-content: center; padding: 16px; }
.rt-panel-box { background: var(--bg, #f4f5f7); display: flex; flex-direction: column; overflow: hidden; flex: 1; }
.rt-panel-ws .rt-panel-box { flex: 0 1 1400px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.rt-panel-head { display: flex; gap: 8px; align-items: center; padding: 8px 12px; flex-wrap: wrap; background: var(--card, #fff); border-bottom: 1px solid var(--line, #dde1e6); }
.rt-panel-layer .rt-panel-head { background: #1b1c1f; border-bottom: 0; gap: 10px; }
.rt-panel-title { font-weight: 700; font-family: Montserrat, sans-serif; margin-right: 8px; }
.rt-panel-extra { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.rt-panel-back { background: #ef6c00; border-color: #ef6c00; color: #fff; font-weight: 700; }
.rt-panel iframe { flex: 1; width: 100%; border: 0; background: var(--bg, #f4f5f7); }
html.rt-panel-open body { overflow: hidden; }
.rt-panel-hint { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9500; background: #c62828; color: #fff; padding: 8px 14px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.25); font-size: 14px; }
html.in-frame .topbar { display: none; }

/* Hívások oldal: statisztika, idővonal három oszlopban (Hívott · Fogadott · Nem fogadott) */
.cl-stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 14px; }
.cl-stats span { background: var(--card, #fff); border: 1px solid var(--line, #dde1e6); border-radius: 10px; padding: 8px 14px;
  font-size: 13px; display: flex; gap: 10px; align-items: baseline; }
.cl-stats b { font-size: 20px; font-family: Montserrat, sans-serif; }
.cl-stats .st-out b { color: #1565c0; } .cl-stats .st-in b { color: #2e7d32; }
.cl-stats .st-missed b { color: #c62828; } .cl-stats .st-other b { color: #8d6e63; }
.cl-grid { display: flex; flex-direction: column; gap: 6px; }
.cl-head, .cl-row { display: grid; grid-template-columns: 56px 1fr 1fr 1fr; gap: 12px; align-items: start; }
.cl-head { position: sticky; top: 0; z-index: 2; background: var(--bg, #f4f5f7); padding: 6px 0; }
.cl-head div { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; }
.cl-head .h-out { color: #1565c0; } .cl-head .h-in { color: #2e7d32; } .cl-head .h-missed { color: #c62828; }
.cl-time { font-size: 13px; color: var(--muted, #666); padding-top: 10px; text-align: right; font-variant-numeric: tabular-nums; }
.cl-day { margin: 14px 0 4px; padding: 4px 0 4px 68px; font-weight: 700; font-size: 13px; color: var(--muted, #555);
  border-bottom: 1px solid var(--line, #dde1e6); }
.cl-gap { height: 0; border-top: 1px dashed var(--line, #d0d4da); margin: 6px 0 6px 68px; }
.ccard { background: #fff; color: #1b1c1f; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.12); padding: 9px 12px;
  border-left: 5px solid #607d8b; font-family: "Open Sans", sans-serif; }
.ccard.no-ws { border-left-style: dashed; }
.ccard.live { box-shadow: 0 0 0 3px rgba(46,125,50,.45), 0 2px 8px rgba(0,0,0,.12); }
.ccard .cc-head { font-size: 11.5px; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: .03em; display: flex; gap: 8px; }
.ccard .cc-live { color: #2e7d32; } .ccard .cc-rec { color: #c62828; margin-left: auto; }
.ccard .cc-who { font-size: 16px; font-weight: 700; font-family: Montserrat, sans-serif; margin-top: 2px; }
.ccard .cc-sub { font-size: 12.5px; color: #444; }
.ccard .cc-act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; align-items: center; }
.ccard .cc-back { font-size: 12px; color: #2e7d32; font-weight: 600; }
.cl-pager { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; align-items: center; }
.cl-pager a { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line, #dde1e6); text-decoration: none; }
.cl-pager a.on { background: #1565c0; color: #fff; border-color: #1565c0; }
@media (max-width: 760px) {
  .cl-head { display: none; }
  .cl-row { grid-template-columns: 44px 1fr; }
  .cl-row .cl-cell:empty { display: none; }
  .cl-day, .cl-gap { margin-left: 0; padding-left: 0; }
  .ccard.c-out { border-left-color: #1565c0; } .ccard.c-in { border-left-color: #2e7d32; } .ccard.c-missed { border-left-color: #c62828; }
}
@media (prefers-color-scheme: dark) {
  .ccard, .phonebar { background: #2a2d33; color: #e8e9eb; }
  .ccard .cc-sub, .phonebar .pb-sub { color: #c2c5ca; } .ccard .cc-head, .phonebar .pb-head { color: #aab0b8; }
  .phonebar.no-ws, .ccard.no-ws { background: #33302a; }
  .pb-chip, .cc-chip { background: #3a3e46; color: #e8e9eb; border-color: #4a4f58; }
}

/* munkalap: AJK kivonat + Projekt mappa egy oszlopban; Projekt mappa kártya */
.ws-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ws-project .kv-form { margin-top: 0; }
.ws-project .kv-form label { grid-template-columns: 150px 1fr; }
.ws-project .kv-form input { max-width: 120px; }
.ws-project input::placeholder { color: var(--muted); opacity: .7; }
.pf-sub { font-size: 12.5px; margin: 6px 0 4px; color: var(--muted); font-weight: 600; }
.pf-sep { border: 0; border-top: 1px solid var(--line, rgba(127,127,127,.25)); margin: 10px 0 4px; }
.pf-name { display: flex; gap: 6px; align-items: flex-start; }
.pf-name code { flex: 1; min-width: 0; word-break: break-all; font-size: 12.5px; user-select: all; }
/* Időpontok (2026-11-20): heti statisztika, a típusok + beállítások egymás mellett; Beírt időpontok: „Üf. foglalta” pötty */
.stats b.plain { font-family: inherit; color: inherit; font-size: inherit; margin: 0; }
.ab-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .ab-pair { grid-template-columns: 1fr; } }
.grid th.center, .grid td.center { text-align: center; }
.self-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #2e9e4f; vertical-align: middle; }

/* hívás-kártyák (2026-11-20): időpont a címsorban, fizető ügyfél (van kész munkalapja), kész munkalap zöld száma,
   „mindig kihangosítva” jelölő a telefon-sávon */
.ccard .cc-when { text-transform: none; letter-spacing: 0; font-weight: 500; }
.cc-pay { display: inline-block; vertical-align: 2px; margin-left: 4px; padding: 0 7px; border-radius: 9px; font-size: 10.5px;
  font-weight: 600; font-family: "Open Sans", sans-serif; letter-spacing: .02em; color: #8a6d1f; background: #f6efd9;
  border: 1px solid #e6d9ad; }
.pb-chip.done, .cc-chip.done { color: #2e7d32; border-color: #a5d6a7; }
.pb-chip.done:hover, .cc-chip.done:hover, .cc-chip.done.on { color: #fff; }
.phonebar .pb-auto { display: flex; align-items: center; gap: 3px; font-size: 12px; color: #555; white-space: nowrap; cursor: pointer; }
@media (prefers-color-scheme: dark) {
  .cc-pay { color: #e2c66f; background: #3a3424; border-color: #5a4e2c; }
  .pb-chip.done, .cc-chip.done { color: #81c784; border-color: #3f6b42; }
  .phonebar .pb-auto { color: #aab0b8; }
}
/* beírt (foglalt) időpontú munkalap: narancs — mint a foglaló ablak aktuális időpont-doboza (.bk-cur) */
.pb-chip.booked, .cc-chip.booked { color: #b26a00; border-color: #f0c27a; background: #fff4e0; }
.pb-chip.booked:hover, .cc-chip.booked:hover, .cc-chip.booked.on { color: #fff; background: #ef6c00; border-color: #ef6c00; }
@media (prefers-color-scheme: dark) {
  .pb-chip.booked, .cc-chip.booked { color: #ffb74d; border-color: #6b4f22; background: #3a3020; }
}

/* Tickets: lehetséges ügyfél (a levélben szereplő telefonszám alapján, 2026-11-20) */
.tk-suggest { margin: 8px 0; padding: 8px 10px; border: 1px dashed #f0c27a; border-radius: 8px; background: #fff8ec; }
.tk-maybe { color: #b26a00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tk-suggest { background: #2a2216; border-color: #6b5226; } :root:not([data-theme="light"]) .tk-maybe { color: #f0b860; } }
:root[data-theme="dark"] .tk-suggest { background: #2a2216; border-color: #6b5226; }
:root[data-theme="dark"] .tk-maybe { color: #f0b860; }
/* Tickets: telefonos előzmény a beszélgetésben (2026-11-20) */
.chat-ev { align-self: center; max-width: 86%; text-align: center; font-size: 12.5px; color: var(--muted); padding: 3px 10px; border: 1px dashed var(--line); border-radius: 10px; }
.chat-ev-sub { font-style: italic; margin-top: 2px; white-space: pre-wrap; }
/* Csatornák (2026-11-21, docs/csatornak.md): jelvény csatornánként — a .badge.sms régi osztály is megmarad */
.badge.ch { text-decoration: none; white-space: nowrap; }
.badge.ch-sms { background: #6a1b9a; color: #fff; }
.badge.ch-whatsapp { background: #1f8f4e; color: #fff; }
.badge.ch-messenger { background: #1565c0; color: #fff; }
.badge.ch-email { background: #e3e5e8; color: #333; }
.badge.nt-delivered, .badge.nt-read { background: #d7f0dd; color: #1b5e20; }
.ch-closed { color: #b26a00; }
.ch-card .ch-hook { margin: 6px 0 10px; display: grid; gap: 3px; }
.ch-card .ch-hook code { user-select: all; word-break: break-all; }
@media (prefers-color-scheme: dark) {
  .badge.ch-whatsapp { background: #1b6e3f; }
  .badge.ch-messenger { background: #1e4f8f; }
  .badge.ch-email { background: #33363b; color: #ddd; }
  .badge.nt-delivered, .badge.nt-read { background: #1f3a26; color: #a5d6a7; }
  .ch-closed { color: #f0b860; }
}
.ar-rule { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px 10px; margin: 8px 0; display: grid; gap: 6px; }
.ar-rule legend { padding: 0 4px; }
.ar-rule textarea { width: 100%; font: inherit; }
.ar-rule .ar-cool input { max-width: 90px; }
