/* NextCut – szalon és superadmin felület */

@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-var.woff") format("woff");
    font-weight: 200 800;
    font-display: swap;
}

:root {
    --ink: #17191c;
    --ink-2: #202327;
    --ink-3: #2b2f35;
    --on-dark: #e9eaec;
    --on-dark-muted: #9aa0a7;
    --bg: #f1f2f3;
    --surface: #ffffff;
    --surface-2: #f7f8f8;
    --line: #e0e2e4;
    --line-soft: #eceeef;
    --text: #17191c;
    --muted: #5b6168;
    --muted-2: #80868d;
    --gold: #c9a45c;
    --gold-hover: #d6b571;
    --gold-soft: #f6efe1;
    --gold-text: #7f5f22;
    --chart: #b3842f;
    --ok: #2f7350;
    --ok-soft: #e5f1ea;
    --bad: #b1442f;
    --bad-soft: #f9e8e4;
    --warn: #8a5d0c;
    --warn-soft: #fbf0d9;
    --r-lg: 16px;
    --r: 12px;
    --r-sm: 8px;
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --side-w: 244px;
    --focus: 0 0 0 3px rgba(201, 164, 92, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    font-feature-settings: "tnum" 1, "cv11" 1;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--gold-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3 { margin: 0; line-height: 1.25; }
p { margin: 0 0 12px; }
small { font-size: 12.5px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.i { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.92em; letter-spacing: 0; }
.mr-auto { margin-right: auto; }
.inline { display: inline; }
.stack { display: grid; gap: 8px; }
[hidden] { display: none !important; }

/* ---------- Márka ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__word { font-size: 21px; letter-spacing: -0.035em; line-height: 1; white-space: nowrap; }
.brand__a { font-weight: 600; }
.brand__b { font-weight: 800; color: var(--gold); }
.brand--dark .brand__a { color: #d5d8dc; }
.brand--light .brand__a { color: var(--ink); }

/* ---------- Gombok ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 40px; padding: 8px 16px;
    font: inherit; font-size: 14px; font-weight: 650; line-height: 1.2;
    color: var(--ink); background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--r-sm);
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: #c9ccd0; color: var(--ink); }
.btn:disabled, .btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn .i { width: 17px; height: 17px; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn--ghost { background: transparent; border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); }
.btn--danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn--danger:hover { background: #973725; color: #fff; }
.btn--danger-ghost { background: transparent; border-color: transparent; color: var(--bad); }
.btn--danger-ghost:hover { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.btn--small { min-height: 32px; padding: 5px 11px; font-size: 13px; }
.btn--lg { min-height: 48px; font-size: 15.5px; }
.btn--block { width: 100%; }
.btn--icon { width: 40px; padding: 0; }
.btn--icon.btn--small { width: 32px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.btn-row form { margin: 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--gold-text); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-btn--muted { color: var(--muted); font-size: 13px; }

/* ---------- Űrlapok ---------- */
.form { display: grid; gap: 14px; }
.form--tight { gap: 10px; margin-top: 12px; }
.form__actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.field { display: grid; gap: 5px; min-width: 0; align-content: start; }
.field__label { font-size: 13px; font-weight: 650; color: var(--ink); }
.field__label small { font-weight: 500; color: var(--muted); }
.field__hint { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.field--inline { grid-template-columns: auto 110px; align-items: center; column-gap: 12px; }
.field--inline .field__hint { grid-column: 1 / -1; }
.input {
    width: 100%; min-height: 40px; padding: 8px 11px;
    font: inherit; font-size: 14.5px; color: var(--ink);
    background: var(--surface); border: 1px solid #d4d7da; border-radius: var(--r-sm);
    transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--gold); box-shadow: var(--focus); }
textarea.input { resize: vertical; min-height: 64px; line-height: 1.45; }
select.input { padding-right: 30px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b6168' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.input--small { min-height: 34px; padding: 5px 9px; font-size: 13.5px; width: auto; }
.input--narrow { max-width: 120px; }
.input--time { width: 128px; }
.input--mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; }
.grid2, .grid3, .grid4 { display: grid; gap: 12px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-addr { display: grid; gap: 12px; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.6fr); }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.check { display: inline-flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 14.5px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold-text); flex: none; }
.check small { display: block; color: var(--muted); font-size: 12.5px; }
.check--field { align-self: end; padding-bottom: 8px; }
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14.5px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { flex: none; width: 40px; height: 24px; margin-top: 1px; border-radius: 12px; background: #cfd2d6; position: relative; transition: background-color .15s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked + .switch__track { background: var(--ink); }
.switch input:checked + .switch__track::after { transform: translateX(16px); background: var(--gold); }
.switch input:focus-visible + .switch__track { box-shadow: var(--focus); }
.switch small { display: block; color: var(--muted); font-size: 12.5px; }
.switch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; background: var(--surface); }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--on-dark); }
.chip input:focus-visible + span { box-shadow: var(--focus); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--gold)); flex: none; }
.form-error { color: var(--bad); font-size: 13.5px; margin: 0; }
.details { margin-top: 4px; }
.details > summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--gold-text); padding: 4px 0; }
.details[open] > summary { margin-bottom: 10px; }
.details--danger > summary { color: var(--bad); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.swatch input:checked + span { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.swatch input:focus-visible + span { box-shadow: var(--focus); }
.seg { display: inline-flex; padding: 3px; background: var(--line-soft); border-radius: 10px; gap: 2px; }
.seg__btn { position: relative; border: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; padding: 6px 14px; border-radius: 7px; cursor: pointer; color: var(--muted); }
.seg__btn input { position: absolute; opacity: 0; }
.seg__btn.is-active, .seg__btn:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.seg--block { display: flex; }
.seg--block .seg__btn { flex: 1; text-align: center; }

/* ---------- Váz: oldalsáv + tartalom ---------- */
.shell { min-height: 100vh; }
.side {
    position: fixed; inset: 0 auto 0 0; z-index: 40;
    width: var(--side-w); display: flex; flex-direction: column;
    background: var(--ink); color: var(--on-dark);
    padding: 18px 12px 14px; overflow-y: auto;
}
.side__brand { display: block; padding: 4px 10px 16px; text-decoration: none; }
.side__salon { display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 10px; border-radius: var(--r); background: var(--ink-2); }
.side__salon .i { color: var(--gold); }
.side__logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: #fff; }
.side__mono { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--ink-3); color: var(--gold); font-weight: 800; }
.side__name { font-weight: 650; font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.side__nav { display: grid; gap: 2px; }
.side__link {
    display: flex; align-items: center; gap: 11px; width: 100%;
    padding: 9px 10px; border-radius: 9px;
    color: #c5c9ce; text-decoration: none; font-size: 14.5px; font-weight: 550;
    background: none; border: 0; font-family: inherit; cursor: pointer; text-align: left;
}
.side__link .i { color: #8b9198; }
.side__link:hover { background: var(--ink-2); color: #fff; }
.side__link.is-active { background: var(--ink-3); color: #fff; }
.side__link.is-active .i { color: var(--gold); }
.side__link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side__lock { width: 14px; height: 14px; opacity: .6; }
.side__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ink-3); display: grid; gap: 2px; }
.side__foot form { margin: 0; }
.side-backdrop { display: none; }

.main { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 14px; padding: 18px 32px 6px; flex-wrap: wrap; }
.top__menu { display: none; background: none; border: 0; padding: 6px; margin-left: -6px; cursor: pointer; color: var(--ink); }
.top__menu .i { width: 24px; height: 24px; }
.top__title { font-size: 24px; font-weight: 750; letter-spacing: -0.02em; margin-right: auto; }
.top__link { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; max-width: 100%; }
.top__link-label { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.top__link-url { font-weight: 650; font-size: 14px; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top__link-url:hover { text-decoration: underline; }
.top__link .btn { min-height: 32px; width: 32px; border: 0; border-radius: 50%; }
.top__site { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); text-decoration: none; }
.content { padding: 14px 32px 48px; width: 100%; max-width: 1240px; }
.app--wide .content { max-width: none; }

.imp-bar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 7px 16px; background: var(--gold); color: var(--ink); font-size: 13.5px; }
.imp-bar form { margin: 0; }
.imp-bar__btn { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 5px 12px; font: inherit; font-weight: 650; cursor: pointer; }
.imp-bar__btn .i { width: 15px; height: 15px; }
.app:has(.imp-bar) .side { top: 38px; }

/* ---------- Üzenetek ---------- */
.flashes { padding: 8px 32px 0; max-width: 1240px; display: grid; gap: 8px; }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px 11px 14px; border-radius: var(--r); font-size: 14.5px; background: var(--ok-soft); color: #1d4b33; margin: 0 0 12px; }
.flashes .flash { margin: 0; }
.flash .i { margin-top: 2px; }
.flash span { flex: 1; }
.flash--error { background: var(--bad-soft); color: #7a2a1b; }
.flash__x { background: none; border: 0; padding: 2px; cursor: pointer; color: inherit; opacity: .6; }
.flash__x .i { width: 16px; height: 16px; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 10px 32px 0; padding: 10px 12px 10px 16px; border-radius: var(--r); font-size: 14px; max-width: calc(1240px - 64px); }
.app--wide .banner { max-width: none; }
.banner > span { display: block; }
.banner > span .i { vertical-align: -4px; margin-right: 6px; }
.banner--trial { background: var(--gold-soft); color: #5b4415; }
.banner--danger { background: var(--bad-soft); color: #7a2a1b; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin: 0 0 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; }
.notice .i { margin-top: 2px; color: var(--muted); }
.notice--gold { background: var(--gold-soft); border-color: #ecdcb9; }
.notice--gold .i { color: var(--gold-text); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 11px 14px 11px 18px; background: var(--ink); color: #fff; border-radius: 12px; font-size: 14.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: opacity .2s, transform .2s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.is-error { background: #7a2a1b; }
.toast button { background: var(--gold); color: var(--ink); border: 0; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }

/* ---------- Panelek, fejlécek ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 18px; }
.panel--flush { padding: 0; overflow: hidden; }
.panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel__title { font-size: 16.5px; font-weight: 750; letter-spacing: -0.01em; margin-bottom: 4px; }
.panel__title .count { font-weight: 600; color: var(--muted-2); font-size: 14px; margin-left: 4px; }
.panel__sub { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; max-width: 70ch; }
.panel__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.panel .panel__title + .form { margin-top: 10px; }
.settings-form h2.panel__title:not(:first-of-type) { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.narrow-panel { max-width: 760px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head__lead { color: var(--muted); font-size: 14px; margin: 0; max-width: 72ch; }
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.back { margin: 0 0 12px; font-size: 14px; }
.back a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--ink); }
.back .i { width: 16px; height: 16px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.cols--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols__side { display: grid; gap: 0; }
.cols__side .grid2 { grid-template-columns: minmax(0, 1fr); }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.list-head .panel__title { margin: 0; color: var(--ink); }
.list-head__sort a { margin-left: 8px; color: var(--muted); text-decoration: none; }
.list-head__sort a[aria-current] { color: var(--ink); font-weight: 700; }
.empty { padding: 28px 20px; text-align: center; }
.empty__title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.empty .btn { margin-top: 10px; }
.h3 { font-size: 14.5px; font-weight: 750; margin: 20px 0 8px; }

.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs__tab { padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs__tab:hover { color: var(--ink); }
.tabs__tab.is-active { color: var(--ink); border-bottom-color: var(--gold); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters__item { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.filters__item.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.search { position: relative; flex: 1; max-width: 420px; min-width: 220px; }
.search .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.search .input { padding-left: 36px; }
.dropdown { position: relative; }
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 320px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 30px rgba(23, 25, 28, .12); }
.dropdown__item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; }
.dropdown__item:hover { background: var(--surface-2); }
.dropdown__form { display: grid; gap: 8px; padding: 10px; border-top: 1px solid var(--line-soft); margin-top: 6px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 14px; border-top: 1px solid var(--line-soft); }

/* ---------- Táblázatok, címkék ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12.5px; font-weight: 650; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table--rows tbody tr:hover { background: var(--surface-2); }
.table--compact td, .table--compact th { padding: 8px 10px; }
.table .num { text-align: right; }
.table tr.is-off td { color: var(--muted-2); }
.table tr.status-cancelled td { color: var(--muted-2); }
.table .check small { display: block; }
.panel--flush .table th:first-child, .panel--flush .table td:first-child { padding-left: 20px; }
.panel--flush .table th:last-child, .panel--flush .table td:last-child { padding-right: 20px; }
.row-link { font-weight: 650; color: var(--ink); text-decoration: none; }
.row-link:hover { color: var(--gold-text); text-decoration: underline; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--line-soft); color: var(--muted); white-space: nowrap; vertical-align: 1px; }
.tag--gold { background: var(--gold-soft); color: var(--gold-text); }
.tag--warn { background: var(--warn-soft); color: var(--warn); }
.tag--muted { background: var(--line-soft); color: var(--muted-2); }
.tag--online { background: #e8eef5; color: #2f557a; margin-left: 6px; }
.tag--proc { background: var(--gold-soft); color: var(--gold-text); }
.pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--line-soft); color: var(--muted); }
.pill--confirmed { background: #e8eef5; color: #2f557a; }
.pill--completed, .pill--order-paid, .pill--sub-active { background: var(--ok-soft); color: var(--ok); }
.pill--no_show, .pill--order-failed, .pill--sub-expired { background: var(--bad-soft); color: var(--bad); }
.pill--cancelled, .pill--order-cancelled { background: var(--line-soft); color: var(--muted-2); }
.pill--order-pending, .pill--sub-trial { background: var(--warn-soft); color: var(--warn); }
.pill--sub-suspended { background: var(--ink); color: #fff; }
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c, var(--ink-3)); color: #fff; font-weight: 800; font-size: 16px; flex: none; }
.avatar--xs { width: 24px; height: 24px; font-size: 11px; margin-left: -6px; border: 2px solid var(--surface); }
.avatar--xs:first-child { margin-left: 0; }
.avatar--lg { width: 56px; height: 56px; font-size: 22px; background: var(--ink); color: var(--gold); }
.avatar--img { object-fit: cover; background: #fff; border: 1px solid var(--line); }

/* ---------- Áttekintés ---------- */
.dash { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.dash__side { display: grid; gap: 0; }
.stats-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; display: grid; gap: 2px; }
.stat__value { font-size: 26px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; }
.stat__value--money { font-size: 21px; }
.stat__label { font-size: 13px; color: var(--muted); line-height: 1.35; }
.day-list { list-style: none; margin: 0; padding: 0; }
.day-list__item { display: grid; grid-template-columns: 58px 4px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.day-list__item:first-child { border-top: 0; }
.day-list__time { font-weight: 750; font-size: 15px; line-height: 1.2; }
.day-list__time small { display: block; font-weight: 500; color: var(--muted-2); font-size: 12.5px; }
.day-list__bar { align-self: stretch; border-radius: 2px; background: var(--c); }
.day-list__name { font-weight: 700; color: var(--ink); text-decoration: none; }
.day-list__name:hover { text-decoration: underline; }
.day-list__meta { display: block; color: var(--muted); font-size: 13.5px; }
.day-list__status { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.day-list__item.is-past { opacity: .62; }
.day-list__item.is-next .day-list__time { color: var(--gold-text); }
.day-list__item.status-no_show .day-list__status { color: var(--bad); }
.day-list__item.status-completed .day-list__status { color: var(--ok); }
.setup { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.setup__item { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.setup__item a { color: var(--ink); font-weight: 600; }
.setup__dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cfd2d6; display: grid; place-items: center; }
.setup__item.is-done .setup__dot { border-color: var(--ok); background: var(--ok); color: #fff; }
.setup__item.is-done .setup__dot .i { width: 13px; height: 13px; }
.setup__item.is-done a { color: var(--muted-2); text-decoration: line-through; font-weight: 500; }
.mini-list { list-style: none; margin: 6px 0 0; padding: 0; }
.mini-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.mini-list li:first-child { border-top: 0; }
.mini-list li > a, .mini-list li > span:first-child { display: grid; color: var(--ink); text-decoration: none; min-width: 0; }
.mini-list li > a span, .mini-list li > span:first-child span { color: var(--muted); font-size: 13px; }
.mini-list li form { margin: 0; }
.mini-list--small li { font-size: 13px; padding: 6px 0; }
.mini-list--pad li { padding: 10px 20px; }

/* ---------- KPI-k és diagramok ---------- */
.kpis { display: grid; grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kpi__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi__value { font-size: 24px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; }
.kpi--hero { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.kpi--hero .kpi__label, .kpi--hero .kpi__note { color: var(--on-dark-muted); }
.kpi--hero .kpi__value { font-size: 30px; color: #fff; }
.kpi__note { font-size: 12.5px; color: var(--muted); }
.delta { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.delta--up { color: var(--ok); }
.delta--down { color: var(--bad); }
.kpi--hero .delta--up { color: #8fd3ad; }
.kpi--hero .delta--down { color: #f0a796; }
.month-nav { display: flex; align-items: center; gap: 6px; }
.month-nav__label { font-size: 19px; font-weight: 750; min-width: 170px; text-align: center; }

.colchart { display: grid; grid-template-columns: 44px minmax(0, 1fr); height: 240px; margin: 8px 0 6px; }
.colchart__axis { position: relative; margin-bottom: 22px; }
.colchart__axis span { position: absolute; right: 8px; transform: translateY(50%); font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }
.colchart__plot { position: relative; display: flex; align-items: stretch; gap: 2px; padding-bottom: 22px; }
.colchart__grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line-soft); margin-bottom: 22px; }
.colchart__grid:first-of-type { border-top-color: #cfd2d6; }
.colchart__slot { position: relative; flex: 1; display: flex; align-items: flex-end; justify-content: center; min-width: 0; outline: none; }
.colchart__slot::before { content: ""; position: absolute; inset: 0 0 -22px; border-radius: 4px; }
.colchart__slot:hover::before, .colchart__slot:focus-visible::before { background: rgba(23, 25, 28, .04); }
.colchart__bar { position: relative; width: 100%; max-width: 24px; background: var(--chart); border-radius: 4px 4px 0 0; min-height: 0; }
.colchart__slot.is-weekend .colchart__x { color: var(--ink); font-weight: 700; }
.colchart__x { position: absolute; bottom: -20px; font-size: 11.5px; color: var(--muted-2); }
.hbars { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.hbars__row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 128px; gap: 12px; align-items: center; font-size: 14px; }
.hbars--days .hbars__row { grid-template-columns: 100px minmax(0, 1fr) 40px; }
.hbars__label { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars__track { height: 12px; border-radius: 0 4px 4px 0; position: relative; }
.hbars__bar { display: block; height: 100%; background: var(--chart); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbars__value { text-align: right; font-weight: 700; white-space: nowrap; }
.hbars__value small { display: block; font-weight: 500; color: var(--muted); }
.tip { position: fixed; z-index: 300; pointer-events: none; background: var(--ink); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); max-width: 260px; }

/* ---------- Szolgáltatások ---------- */
.svc-group__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) auto 110px auto; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.svc:first-child { border-top: 0; }
.svc.is-off .svc__name, .svc.is-off .svc__price { color: var(--muted-2); }
.svc__name { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; text-align: left; }
.svc__name:hover { color: var(--gold-text); text-decoration: underline; }
.svc__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; margin-top: 2px; }
.svc__staff { display: flex; }
.svc__price { font-weight: 700; text-align: right; white-space: nowrap; }
.row-actions { display: flex; gap: 2px; align-items: center; }
.row-actions form { margin: 0; }

/* ---------- Munkatársak ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.staff-card { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); }
.staff-card:hover { border-color: #c9ccd0; color: var(--ink); }
.staff-card.is-off { opacity: .6; }
.staff-card__body { flex: 1; display: grid; gap: 3px; min-width: 0; }
.staff-card__name { font-weight: 750; font-size: 16px; }
.staff-card__title { color: var(--muted); font-size: 13.5px; }
.staff-card__hours { display: flex; gap: 3px; margin-top: 4px; }
.wk { font-size: 11px; font-weight: 700; width: 26px; text-align: center; padding: 2px 0; border-radius: 5px; background: var(--line-soft); color: var(--muted-2); }
.wk.is-on { background: var(--ink); color: var(--gold); }
.staff-card__tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.staff-card__go { color: var(--muted-2); }
.hours { display: grid; gap: 0; }
.hours__row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.hours__row:first-of-type { border-top: 0; }
.hours__ranges { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.hours__range { display: inline-flex; align-items: center; gap: 6px; }
.hours__range--2[data-empty] .input { opacity: .55; }
.hours__range--2[data-empty] .input:focus { opacity: 1; }
.hours__closed { display: none; color: var(--muted-2); font-size: 14px; }
.hours__row.is-off .hours__range { display: none; }
.hours__row.is-off .hours__closed { display: inline; }

/* ---------- Vendégek ---------- */
.client-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.client-head__main { flex: 1; min-width: 220px; }
.client-head__name { font-size: 21px; font-weight: 750; letter-spacing: -0.015em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.client-head__contact { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; font-size: 14.5px; }
.client-head__contact a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; }
.client-head__contact a:hover { text-decoration: underline; }
.client-head__contact .i { width: 16px; height: 16px; color: var(--muted-2); }
.client-head__stats { display: flex; gap: 22px; margin: 0; flex-wrap: wrap; }
.client-head__stats dt { font-size: 12.5px; color: var(--muted); }
.client-head__stats dd { margin: 0; font-weight: 750; font-size: 17px; }
.client-head__stats dd.warn { color: var(--bad); }
.client-head__cta { margin: 0; }
.stamps { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; margin: 6px 0 12px; max-width: 320px; }
.stamps__dot { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed #c5c9cd; display: grid; place-items: center; font-size: 11px; color: var(--muted-2); font-weight: 700; }
.stamps__dot.is-on { border: 0; background: var(--ink); color: var(--gold); }
.stamps__dot .i { width: 60%; height: 60%; }
.pass-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }
.pass { display: grid; gap: 5px; }
.pass__name { font-weight: 700; }
.pass__meter { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--chart) var(--p), var(--line-soft) var(--p)); }
.pass__meta { font-size: 12.5px; color: var(--muted); }
.pass.is-off { opacity: .55; }
.pass form { margin: 0; }

/* ---------- Beállítások ---------- */
.settings-form { max-width: 880px; }
.upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.upload__preview { height: 64px; width: auto; max-width: 160px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.upload__preview--logo { width: 64px; object-fit: contain; background: var(--surface-2); }
.linkbox { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); }
.linkbox__url { font-weight: 750; font-size: 16px; color: var(--ink); margin-right: auto; word-break: break-all; }
.tips { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; color: var(--muted); }
.tips strong { color: var(--ink); }
.slug-field { display: flex; align-items: stretch; border: 1px solid #d4d7da; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.slug-field__base { padding: 9px 4px 9px 12px; background: var(--surface-2); color: var(--muted); font-size: 14.5px; white-space: nowrap; border-right: 1px solid var(--line); }
.slug-field .input { border: 0; border-radius: 0; }
.slug-field:focus-within { border-color: var(--gold); box-shadow: var(--focus); }
.slug-field .input:focus { box-shadow: none; }
.upsell { text-align: center; max-width: 560px; margin: 24px auto; padding: 36px 28px; }
.upsell__icon { width: 34px; height: 34px; color: var(--gold-text); margin-bottom: 10px; }

/* ---------- Előfizetés ---------- */
.sub-status { border-left: 4px solid var(--gold); }
.sub-status--active { border-left-color: var(--ok); }
.sub-status--expired, .sub-status--suspended { border-left-color: var(--bad); }
.sub-status__label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sub-status__title { font-size: 20px; font-weight: 750; margin: 2px 0 6px; }
.sub-status p { margin: 0; }
.period-toggle { display: inline-flex; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 14px; }
.period-toggle__opt { position: relative; cursor: pointer; }
.period-toggle__opt input { position: absolute; opacity: 0; }
.period-toggle__opt span { display: block; padding: 7px 16px; border-radius: 999px; font-weight: 650; font-size: 14px; color: var(--muted); }
.period-toggle__opt input:checked + span { background: var(--ink); color: #fff; }
.period-toggle__opt input:focus-visible + span { box-shadow: var(--focus); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; }
.plan { position: relative; cursor: pointer; display: block; }
.plan input { position: absolute; opacity: 0; }
.plan__box { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); transition: border-color .15s; }
.plan:hover .plan__box { border-color: #c2c6ca; }
.plan input:checked + .plan__box { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.plan input:focus-visible + .plan__box { box-shadow: var(--focus); }
.plan.is-disabled { cursor: not-allowed; opacity: .55; }
.plan__name { font-size: 18px; font-weight: 800; }
.plan__desc { color: var(--muted); font-size: 13.5px; }
.plan__price { margin: 6px 0; }
.plan__price strong { font-size: 24px; letter-spacing: -0.02em; }
.plan__price small { display: block; color: var(--muted); }
.plan__features { display: grid; gap: 5px; font-size: 13.5px; margin-top: 4px; }
.plan__features span { display: flex; gap: 7px; align-items: flex-start; }
.plan__features .i { width: 16px; height: 16px; color: var(--ok); margin-top: 2px; }
.plan__warn { font-size: 12.5px; color: var(--bad); font-weight: 600; }
.plan .tag { align-self: flex-start; }
.only-yearly { display: none; }
.order-form:has(input[name="period"][value="yearly"]:checked) .only-yearly { display: block; }
.order-form:has(input[name="period"][value="yearly"]:checked) .only-monthly { display: none; }
.order-form .panel { display: grid; gap: 12px; align-content: start; }
.order-form .panel .panel__title { margin-bottom: 0; }
.methods { display: grid; gap: 8px; margin-bottom: 12px; }
.method { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; }
.method:has(input:checked) { border-color: var(--ink); }
.method input { margin-top: 3px; accent-color: var(--ink); }
.method small { display: block; color: var(--muted); font-size: 13px; }
.bank { display: grid; gap: 0; margin: 14px 0; border-top: 1px solid var(--line-soft); }
.bank > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
.bank dt { color: var(--muted); font-size: 13.5px; }
.bank dd { margin: 0; font-weight: 650; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bank__ref dd { font-size: 17px; }
.facts { display: grid; gap: 0; margin: 0; }
.facts > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; word-break: break-word; }
.facts--copy dd { display: flex; align-items: center; gap: 6px; }
.code { margin: 6px 0 12px; padding: 10px 12px; background: var(--ink); color: #e4e6e8; border-radius: var(--r-sm); font-size: 13px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.plan-edit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0 8px 4px 0; }
.inline-form .input { width: 120px; }

/* ---------- Belépés ---------- */
.auth { background: var(--bg); }
.auth__wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.auth__brand { margin-bottom: 22px; text-decoration: none; }
.auth__brand .brand__word { font-size: 26px; }
.auth__card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.auth__title { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; margin-bottom: 14px; }
.auth__alt { margin: 16px 0 0; text-align: center; font-size: 14px; }
.auth__alt + .auth__alt { margin-top: 6px; }
.auth__foot { margin-top: 18px; font-size: 13px; }
.auth__foot a { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; font-size: 14px; }
.checks__item { display: flex; gap: 8px; align-items: flex-start; }
.checks__item small { display: block; color: var(--muted); }
.checks__item.is-ok .i { color: var(--ok); }
.checks__item.is-bad .i { color: var(--bad); }
.debug { white-space: pre-wrap; font-size: 12px; background: var(--surface-2); padding: 10px; border-radius: 8px; max-height: 300px; overflow: auto; }

/* ---------- Modális ablak ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(640px, calc(100vw - 24px)); width: 100%; max-height: calc(100vh - 24px); color: var(--text); }
.modal--narrow { max-width: min(440px, calc(100vw - 24px)); }
.modal::backdrop { background: rgba(23, 25, 28, .5); }
.modal[open] { animation: modal-in .16s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal__box { display: flex; flex-direction: column; max-height: calc(100vh - 24px); background: var(--surface); border-radius: 18px; overflow: hidden; margin: 0; }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 12px; }
.modal__title { font-size: 19px; font-weight: 750; letter-spacing: -0.015em; }
.modal__sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.modal__body { padding: 4px 20px 16px; overflow-y: auto; display: grid; gap: 14px; align-content: start; }
.modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line-soft); background: var(--surface-2); }
.modal__foot--wrap { flex-wrap: wrap; justify-content: flex-start; }
.modal--side { margin-right: 0; margin-top: 0; height: 100vh; max-height: 100vh; max-width: min(440px, 100vw); }
.modal--side .modal__box { height: 100vh; max-height: 100vh; border-radius: 18px 0 0 18px; }
.modal--side .modal__body { flex: 1; }
.modal--side[open] { animation: side-in .18s ease-out; }
@keyframes side-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Naptár ---------- */
.cal { display: flex; flex-direction: column; gap: 12px; }
.cal__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal__nav, .cal__tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cal__title { position: relative; display: inline-flex; align-items: center; margin-left: 6px; font-size: 18px; font-weight: 750; letter-spacing: -0.015em; cursor: pointer; }
.cal__picker { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.cal__picker::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.cal__frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: auto; max-height: calc(100vh - 170px); position: relative; }
.cal__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--muted); margin: 0; }
.cal__legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 18px; height: 12px; border-radius: 3px; }
.lg--proc { background: repeating-linear-gradient(135deg, #f3e7cd 0 4px, #fbf6ea 4px 8px); border: 1px solid #e3cf9f; }
.lg--off { background: repeating-linear-gradient(135deg, #eceef0 0 4px, #f6f7f8 4px 8px); }
.lg--done { background: var(--ok-soft); border-left: 3px solid var(--ok); }
.cal-loading { padding: 60px; text-align: center; color: var(--muted); }

.cg { --hour: 84px; min-width: 100%; width: max-content; }
.cg__head { position: sticky; top: 0; z-index: 6; display: grid; grid-template-columns: 58px repeat(var(--cols), minmax(var(--colw, 160px), 1fr)); background: var(--surface); border-bottom: 1px solid var(--line); }
.cg__corner { position: sticky; left: 0; z-index: 2; background: var(--surface); }
.cg__colhead { display: flex; align-items: center; gap: 8px; padding: 10px 10px; border-left: 1px solid var(--line-soft); min-width: 0; font-size: 14px; font-weight: 700; }
.cg__colhead small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.cg__colhead .avatar { width: 28px; height: 28px; font-size: 12px; }
.cg__colhead.is-today { color: var(--gold-text); }
.cg__colhead.is-today .cg__daynum { background: var(--ink); color: var(--gold); }
.cg__daynum { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; font-size: 14px; }
.cg__colhead-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg__grid { display: grid; grid-template-columns: 58px repeat(var(--cols), minmax(var(--colw, 160px), 1fr)); position: relative; }
.cg__times { position: sticky; left: 0; z-index: 4; background: var(--surface); height: var(--h); border-right: 1px solid var(--line-soft); }
.cg__hour { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11.5px; color: var(--muted-2); font-weight: 600; }
.cg__hour:first-child { transform: none; }
.cg__col {
    position: relative; height: var(--h); border-left: 1px solid var(--line-soft); cursor: crosshair;
    background-image:
        linear-gradient(to bottom, var(--line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
    background-size: 100% var(--hour), 100% calc(var(--hour) / 2);
    background-position: 0 var(--offset, 0), 0 var(--offset, 0);
}
.cg__off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(225, 228, 231, .55) 0 5px, rgba(244, 245, 246, .55) 5px 10px); pointer-events: none; }
.cg__block { position: absolute; left: 3px; right: 3px; z-index: 1; border-radius: 6px; background: repeating-linear-gradient(135deg, #e4e6e9 0 6px, #eff0f2 6px 12px); border: 1px solid #d6d9dc; padding: 4px 8px; font-size: 12px; color: var(--muted); font-weight: 600; overflow: hidden; cursor: pointer; }
.cg__block:hover { border-color: #b9bdc2; }
.cg__now { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid var(--bad); z-index: 3; pointer-events: none; }
.cg__now::before { content: ""; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.cg__ghost { position: absolute; left: 3px; right: 3px; z-index: 2; border-radius: 6px; background: var(--gold-soft); border: 1.5px dashed var(--gold); pointer-events: none; font-size: 12px; font-weight: 700; padding: 3px 7px; color: var(--gold-text); }

.ev {
    position: absolute; z-index: 2; left: 3px; right: 3px; min-height: 18px;
    border-radius: 6px; overflow: hidden; cursor: pointer; touch-action: manipulation;
    background: #f5efe2; background: color-mix(in srgb, var(--c, #c9a45c) 17%, white);
    border-left: 3px solid var(--c, var(--gold));
    padding: 3px 7px 3px 7px; font-size: 12.5px; line-height: 1.3; color: var(--ink);
    box-shadow: 0 0 0 1px var(--surface);
    user-select: none; -webkit-user-select: none;
}
.ev:hover { filter: brightness(.97); }
.ev:focus-visible { box-shadow: var(--focus); }
.ev__time { font-weight: 700; font-size: 11.5px; color: #3c4147; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 30px; }
.ev > :not(.ev__proc) { position: relative; z-index: 1; }
.ev__name { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev__svc { color: #4b5157; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev__icons { position: absolute !important; top: 3px; right: 5px; display: flex; gap: 3px; }
.ev__icons .i { width: 13px; height: 13px; }
.ev__proc { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(201, 164, 92, .28) 0 5px, rgba(255, 255, 255, .55) 5px 10px); border-top: 1px dashed rgba(127, 95, 34, .35); border-bottom: 1px dashed rgba(127, 95, 34, .35); font-size: 11px; color: var(--gold-text); padding: 1px 7px; font-weight: 650; pointer-events: none; z-index: 0; display: flex; align-items: flex-end; justify-content: flex-end; line-height: 1.2; }
.ev__buffer { position: absolute; left: 3px; right: 3px; border-radius: 0 0 6px 6px; background: rgba(23, 25, 28, .04); pointer-events: none; z-index: 1; }
.ev.is-completed { background: var(--ok-soft); border-left-color: var(--ok); }
.ev.is-completed .ev__name, .ev.is-completed .ev__svc { color: #3b5a47; }
.ev.is-no_show { background: var(--bad-soft); border-left-color: var(--bad); }
.ev.is-no_show .ev__name { text-decoration: line-through; }
.ev.is-dragging { opacity: .35; }
.ev.is-short .ev__svc { display: none; }
.ev.is-tiny .ev__time { display: none; }
.ev.is-tiny { padding-top: 1px; padding-bottom: 1px; }

/* Foglalási űrlap */
.client-pick { position: relative; }
.client-pick__results { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 28px rgba(23, 25, 28, .14); max-height: 260px; overflow-y: auto; }
.client-pick__results li button { display: flex; width: 100%; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 0; background: none; font: inherit; font-size: 14px; text-align: left; border-radius: 8px; cursor: pointer; }
.client-pick__results li button:hover, .client-pick__results li button:focus { background: var(--surface-2); outline: none; }
.client-pick__results li span { color: var(--muted); font-size: 13px; }
.client-pick__selected { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.client-pick__selected .cp-main { flex: 1; min-width: 0; font-size: 14px; }
.client-pick__selected .cp-name { font-weight: 750; font-size: 15px; }
.client-pick__selected .cp-meta { color: var(--muted); font-size: 13px; }
.client-pick__search { position: relative; }
.client-pick #bf-new-client { margin-top: 8px; }
.slots { display: grid; gap: 6px; }
.slots__label { font-size: 12.5px; color: var(--muted); }
.slots__list { display: flex; flex-wrap: wrap; gap: 5px; max-height: 92px; overflow-y: auto; }
.slots__list button { padding: 4px 9px; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.slots__list button:hover, .slots__list button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.conflict { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--r); background: var(--warn-soft); color: var(--warn); font-size: 14px; }
.conflict p { margin: 0; }

/* Foglalás részletei */
.bd { display: grid; gap: 14px; }
.bd__status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bd__client { padding: 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-soft); display: grid; gap: 6px; }
.bd__client-name { font-size: 17px; font-weight: 750; color: var(--ink); text-decoration: none; }
.bd__client-name:hover { text-decoration: underline; }
.bd__contacts { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 14px; }
.bd__contacts a { display: inline-flex; gap: 6px; align-items: center; color: var(--ink); }
.bd__contacts .i { width: 15px; height: 15px; color: var(--muted-2); }
.bd__facts { display: grid; gap: 0; margin: 0; }
.bd__facts > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.bd__facts > div:first-child { border-top: 0; }
.bd__facts dt { color: var(--muted); }
.bd__facts dd { margin: 0; font-weight: 600; }
.bd__tech { white-space: pre-wrap; font-size: 13px; padding: 10px 12px; background: var(--gold-soft); border-radius: var(--r-sm); color: #4a3814; font-family: ui-monospace, Menlo, Consolas, monospace; }
.bd__warn { color: var(--bad); font-size: 13.5px; font-weight: 650; }
.bd__note { font-size: 14px; padding: 8px 12px; border-left: 3px solid var(--line); background: var(--surface-2); border-radius: 0 8px 8px 0; }
.bd__stamps { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.bd__stamps .stamps { margin: 0; max-width: 220px; flex: 1; }
.status-btn--done { background: var(--ok); border-color: var(--ok); color: #fff; }
.status-btn--done:hover { background: #255c40; color: #fff; }

/* ---------- Mobil ---------- */
@media (max-width: 1100px) {
    .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .kpi--hero { grid-column: 1 / -1; }
    .dash { grid-template-columns: minmax(0, 1fr); }
    .cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    :root { --side-w: 270px; }
    .side { transform: translateX(-100%); transition: transform .2s ease-out; box-shadow: none; }
    .shell.is-side-open .side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
    .shell.is-side-open .side-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(23, 25, 28, .45); }
    .main { margin-left: 0; }
    .top { padding: 12px 16px 4px; }
    .top__menu { display: inline-flex; }
    .top__title { font-size: 20px; }
    .top__link { order: 3; width: 100%; }
    .top__link-label { display: none; }
    .top__link-url { margin-right: auto; }
    .content { padding: 12px 16px 40px; }
    .flashes { padding: 8px 16px 0; }
    .banner { margin: 8px 16px 0; }
    .cols--even { grid-template-columns: minmax(0, 1fr); }
    .app:has(.imp-bar) .side { top: 0; }
}
@media (max-width: 640px) {
    body { font-size: 14.5px; }
    .hide-sm { display: none !important; }
    .grid2, .grid3, .grid4 { grid-template-columns: minmax(0, 1fr); }
    .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-addr { grid-template-columns: 100px minmax(0, 1fr); }
    .grid-addr .field:last-child { grid-column: 1 / -1; }
    .panel { padding: 16px; border-radius: 14px; }
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .svc { grid-template-columns: minmax(0, 1fr) auto; }
    .svc__staff { display: none; }
    .svc .row-actions { grid-column: 1 / -1; justify-content: flex-end; margin-top: -6px; }
    .hours__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .hbars__row { grid-template-columns: 100px minmax(0, 1fr) 96px; gap: 8px; }
    .bank > div, .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .page-head__actions { margin-left: 0; }
    .search { max-width: none; }
    .modal { max-width: 100vw; max-height: 100vh; margin: auto 0 0; }
    .modal__box { border-radius: 18px 18px 0 0; max-height: 92vh; }
    .modal--side { margin: auto 0 0; height: auto; max-height: 92vh; }
    .modal--side .modal__box { height: auto; max-height: 92vh; border-radius: 18px 18px 0 0; }
    .cal__frame { max-height: calc(100vh - 200px); }
    .cg { --hour: 76px; }
    .cal__title { font-size: 16px; }
    .colchart { height: 200px; grid-template-columns: 38px minmax(0, 1fr); }
    .client-head__stats { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
