/* ==========================================================================
   Kulcsrakész CRM – felület
   A színek a kulcsrakesz-hazepites.hu arculatához igazodnak:
   élénk narancs és majdnem fekete.

   --brand:        interaktív elemek (gomb, hivatkozás, aktív menü). Szándékosan
                   egy árnyalattal mélyebb a márkanarancsnál, hogy fehér szöveggel
                   a 4,5:1 kontrasztarányt (WCAG AA) teljesítse.
   --brand-bright: a márka élénk narancsa dekoratív felületekhez (diagram, sáv),
                   ahol nem fut rajta apró szöveg.
   ========================================================================== */

:root {
    --brand: #D64200;
    --brand-bright: #FA4D00;
    --brand-dark: #B03600;
    --brand-soft: #FFF0E8;
    --ink: #16181C;
    --ink-soft: #3C4048;
    --muted: #6B7078;
    --line: #E3E5E9;
    --bg: #F5F6F7;
    --surface: #FFFFFF;
    --success: #1F7A4D;
    --success-bg: #E8F5EE;
    --warning: #A9631A;
    --warning-bg: #FDF3E4;
    --danger: #B3261E;
    --danger-bg: #FCECEA;
    --info: #1F5B8F;
    --info-bg: #E9F1F9;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(27, 33, 69, .06), 0 4px 16px rgba(27, 33, 69, .06);
    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* A rejtett elemek akkor is rejtve maradjanak, ha az elrendezés flexet állít be. */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; color: var(--ink); }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }

p { margin: 0 0 .75rem; }

/* --------------------------------------------------------------- elrendezés */

.app { display: flex; min-height: 100vh; }

.sidebar {
    width: 244px;
    flex: 0 0 244px;
    background: var(--ink);
    color: #D9DCE8;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar__brand {
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.sidebar__brand img { max-width: 100%; height: auto; display: block; }
.sidebar__brand-text { color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.sidebar__brand-sub { color: #9AA1BD; font-size: .76rem; margin-top: 2px; }

.sidebar__nav { padding: 10px 8px; flex: 1; }
.sidebar__group { margin-bottom: 14px; }
.sidebar__group-title {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .09em;
    color: #7C84A6; padding: 6px 10px; font-weight: 700;
}
.sidebar a.nav-link {
    display: flex; align-items: center; gap: 9px;
    padding: 8px 10px; border-radius: var(--radius-sm);
    color: #D9DCE8; text-decoration: none; font-size: .9rem;
}
.sidebar a.nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar a.nav-link.is-active { background: var(--brand); color: #fff; font-weight: 600; }
.nav-link__badge {
    margin-left: auto; background: rgba(255, 255, 255, .16);
    padding: 1px 7px; border-radius: 999px; font-size: .72rem; font-weight: 700;
}
.nav-link__badge--alert { background: var(--brand); color: #fff; }

.sidebar__footer {
    padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem;
}
.sidebar__user { color: #fff; font-weight: 600; }
.sidebar__role { color: #9AA1BD; font-size: .75rem; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px 22px; display: flex; align-items: center; gap: 14px;
    position: sticky; top: 0; z-index: 20;
}
.topbar__title { flex: 1; min-width: 0; }
.topbar__title h1 { margin: 0; font-size: 1.22rem; }
.topbar__subtitle { color: var(--muted); font-size: .84rem; }
.topbar__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.menu-toggle {
    display: none; background: none; border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 7px 10px; cursor: pointer; font-size: 1rem;
}

.content { padding: 20px 22px 48px; flex: 1; }

/* ------------------------------------------------------------------ kártyák */

.card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px;
}
.card__header {
    padding: 13px 16px; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.card__header h2, .card__header h3 { margin: 0; }
.card__header-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.card__body { padding: 16px; }
.card__body--flush { padding: 0; }
.card__footer { padding: 12px 16px; border-top: 1px solid var(--line); background: #FAFBFC; }

/* ------------------------------------------------------------------- rácsok */

.grid { display: grid; gap: 16px; grid-template-columns: repeat(12, 1fr); }
.grid > .col-3 { grid-column: span 3; }
.grid > .col-4 { grid-column: span 4; }
.grid > .col-6 { grid-column: span 6; }
.grid > .col-8 { grid-column: span 8; }
.grid > .col-12 { grid-column: span 12; }

/* ------------------------------------------------------------------- gombok */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-size: .88rem; font-weight: 600; font-family: inherit;
    cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid rgba(192, 86, 58, .35); outline-offset: 1px; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { background: #F0F1F4; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink-soft); }
.btn--ghost:hover { background: #EEF0F4; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #8F1E17; color: #fff; }
.btn--sm { padding: 5px 10px; font-size: .8rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ------------------------------------------------------------------ űrlapok */

.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid--single { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.field .hint { font-size: .76rem; color: var(--muted); }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="date"], input[type="datetime-local"], input[type="number"], input[type="search"],
select, textarea {
    width: 100%; padding: 8px 10px; font-family: inherit; font-size: .9rem;
    color: var(--ink); background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius-sm);
}
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(192, 86, 58, .14);
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
    border-color: var(--danger); background: #FFF9F8;
}
.field__error { color: var(--danger); font-size: .78rem; font-weight: 600; }

.checkbox { display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; }
.checkbox input { margin-top: 3px; }

fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 14px; }
legend { font-size: .82rem; font-weight: 700; color: var(--ink-soft); padding: 0 6px; }

.form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* --------------------------------------------------------------- üzenetek */

.alert {
    padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 14px;
    border: 1px solid transparent; font-size: .88rem;
}
.alert strong { display: block; margin-bottom: 2px; }
.alert--success { background: var(--success-bg); border-color: #BFE3CF; color: var(--success); }
.alert--warning { background: var(--warning-bg); border-color: #F0D6A8; color: var(--warning); }
.alert--error { background: var(--danger-bg); border-color: #F3C6C2; color: var(--danger); }
.alert--info { background: var(--info-bg); border-color: #C6DBEE; color: var(--info); }

.empty-state { text-align: center; padding: 34px 18px; color: var(--muted); }
.empty-state__icon { font-size: 2rem; display: block; margin-bottom: 8px; opacity: .55; }
.empty-state__title { font-weight: 700; color: var(--ink); margin-bottom: 4px; }

.loading { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; }
.loading::before {
    content: ""; width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid var(--line); border-top-color: var(--brand);
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* -------------------------------------------------------------- táblázatok */

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th, table.data td { padding: 10px 12px; text-align: left; vertical-align: top; }
table.data thead th {
    background: #FAFBFC; border-bottom: 1px solid var(--line);
    font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
    white-space: nowrap;
}
table.data tbody tr { border-bottom: 1px solid var(--line); }
table.data tbody tr:hover { background: #FBFBFD; }
table.data td.numeric, table.data th.numeric { text-align: right; }
table.data .row-actions { display: flex; gap: 6px; justify-content: flex-end; }

.sort-link { color: var(--muted); text-decoration: none; display: inline-flex; gap: 3px; }
.sort-link:hover { color: var(--brand); }
.sort-link.is-active { color: var(--brand); font-weight: 700; }

/* ---------------------------------------------------------------- címkék */

.badge {
    display: inline-block; padding: 2px 9px; border-radius: 999px;
    font-size: .74rem; font-weight: 700; white-space: nowrap;
    border: 1px solid transparent;
}
.badge--new { background: #E9F1F9; color: #1F5B8F; border-color: #C6DBEE; }
.badge--progress { background: #FDF3E4; color: #A9631A; border-color: #F0D6A8; }
.badge--later { background: #EFEFF3; color: #4E5468; border-color: #DCDEE6; }
.badge--meeting { background: #E8F5EE; color: #1F7A4D; border-color: #BFE3CF; }
.badge--callback { background: var(--brand-soft); color: var(--brand-dark); border-color: #FBD3BE; }
.badge--closing { background: #EDEAF6; color: #4B3C8C; border-color: #D5CEEC; }
.badge--far { background: #F1F0EC; color: #6B6455; border-color: #DFDCD2; }
.badge--void { background: #F2F3F5; color: #6B7185; border-color: #DDE0E6; }

.badge--low { background: #F2F3F5; color: #6B7185; border-color: #DDE0E6; }
.badge--normal { background: #E9F1F9; color: #1F5B8F; border-color: #C6DBEE; }
.badge--high { background: #FDF3E4; color: #A9631A; border-color: #F0D6A8; }
.badge--urgent { background: var(--danger-bg); color: var(--danger); border-color: #F3C6C2; }

.badge--overdue { background: var(--danger); color: #fff; }
.badge--muted { background: #F2F3F5; color: var(--muted); border-color: #DDE0E6; }
.badge--ok { background: var(--success-bg); color: var(--success); border-color: #BFE3CF; }

/* ------------------------------------------------------------ szűrősáv */

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { flex: 1 1 168px; min-width: 0; }
.filters .field--search { flex: 2 1 260px; }
.filter-summary { font-size: .84rem; color: var(--muted); margin-top: 10px; }

/* --------------------------------------------------------------- mobilkártya */

.card-list { display: none; }
.lead-card {
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 13px 14px; margin-bottom: 10px; background: var(--surface);
}
.lead-card__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.lead-card__name { font-weight: 700; font-size: 1rem; }
.lead-card__meta { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.lead-card__contacts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.lead-card__contacts a {
    display: inline-flex; align-items: center; gap: 5px; text-decoration: none;
    background: #F5F6F8; border: 1px solid var(--line); border-radius: 999px;
    padding: 5px 11px; font-size: .82rem; color: var(--ink-soft);
}
.lead-card__contacts a:hover { border-color: var(--brand); color: var(--brand); }
.lead-card__footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* ------------------------------------------------------------------ napló */

.log { list-style: none; margin: 0; padding: 0; }
.log__item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.log__item:last-child { border-bottom: none; }
.log__meta {
    display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
    font-size: .78rem; color: var(--muted); margin-bottom: 5px;
}
.log__time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-soft); }
.log__author { font-weight: 600; }
.log__content { white-space: pre-wrap; word-break: break-word; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 20px; position: relative; }
.timeline::before {
    content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line);
}
.timeline__item { position: relative; padding: 8px 0; }
.timeline__item::before {
    content: ""; position: absolute; left: -19px; top: 14px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--surface); border: 2px solid var(--brand);
}
.timeline__time { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

details.collapsible { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
details.collapsible + details.collapsible { margin-top: 12px; }
details.collapsible > summary {
    padding: 13px 16px; cursor: pointer; font-weight: 700; list-style: none;
    display: flex; align-items: center; gap: 10px;
}
details.collapsible > summary::-webkit-details-marker { display: none; }
details.collapsible > summary::before { content: "▸"; color: var(--brand); font-size: .9rem; }
details.collapsible[open] > summary::before { content: "▾"; }
details.collapsible > summary .count {
    margin-left: auto; background: #F0F1F4; color: var(--muted);
    padding: 1px 9px; border-radius: 999px; font-size: .76rem;
}
details.collapsible > .details-body { padding: 0 16px 16px; }

/* ---------------------------------------------------------------- mutatók */

.metric__value { font-size: 1.9rem; font-weight: 800; line-height: 1.1; color: var(--ink); }
.metric__caption { color: var(--muted); font-size: .82rem; margin-top: 3px; }
.metric__delta { font-size: .8rem; font-weight: 700; margin-top: 6px; }
.metric__delta--up { color: var(--success); }
.metric__delta--down { color: var(--danger); }
.metric__delta--flat { color: var(--muted); }
.metric__note { font-size: .76rem; color: var(--muted); margin-top: 4px; }

/* --------------------------------------------------------------- diagramok */

.bar-chart { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr auto; gap: 10px; align-items: center; }
.bar-row__label { font-size: .84rem; color: var(--ink-soft); }
.bar-row__track { background: #F0F1F4; border-radius: 999px; height: 15px; overflow: hidden; }
.bar-row__fill { height: 100%; border-radius: 999px; background: var(--brand-bright); min-width: 2px; }
.bar-row__value { font-size: .82rem; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }

.column-chart { display: flex; align-items: flex-end; gap: 4px; height: 168px; overflow-x: auto; padding-top: 8px; }
.column { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 26px; flex: 1; }
.column__bar { width: 100%; background: var(--brand-bright); border-radius: 4px 4px 0 0; min-height: 2px; }
.column__bar--secondary { background: var(--ink-soft); }
.column__label { font-size: .66rem; color: var(--muted); white-space: nowrap; }
.column__value { font-size: .7rem; font-weight: 700; color: var(--ink-soft); }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 10px; }
.chart-legend__key { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend__swatch { width: 11px; height: 11px; border-radius: 3px; background: var(--brand-bright); }
.chart-legend__swatch--secondary { background: var(--ink-soft); }

/* ------------------------------------------------------------- dashboard */

.dashboard { display: grid; gap: 16px; grid-template-columns: repeat(12, 1fr); }
.widget { grid-column: span 6; }
.widget--small { grid-column: span 3; }
.widget--medium { grid-column: span 6; }
.widget--large { grid-column: span 8; }
.widget--full { grid-column: span 12; }
.widget .card { height: 100%; margin-bottom: 0; display: flex; flex-direction: column; }
.widget .card__body { flex: 1; }
.widget__drag { cursor: grab; color: var(--muted); font-size: 1rem; user-select: none; }
.widget.is-dragging { opacity: .45; }
.widget.is-over .card { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(192, 86, 58, .18); }

.widget-picker { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); }
.widget-picker__item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; }
.widget-picker__item h4 { margin: 0 0 3px; font-size: .88rem; }
.widget-picker__item p { margin: 0 0 8px; font-size: .78rem; color: var(--muted); }

.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list__item { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mini-list__item:last-child { border-bottom: none; }
.mini-list__main { flex: 1; min-width: 0; }
.mini-list__title { font-weight: 600; font-size: .89rem; }
.mini-list__title a { text-decoration: none; color: var(--ink); }
.mini-list__title a:hover { color: var(--brand); }
.mini-list__sub { color: var(--muted); font-size: .78rem; }
.mini-list__time { font-size: .75rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- egyebek */

.stack { display: flex; flex-direction: column; gap: 6px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }

.definition { display: grid; grid-template-columns: minmax(130px, 32%) 1fr; gap: 8px 14px; font-size: .89rem; }
.definition dt { color: var(--muted); }
.definition dd { margin: 0; word-break: break-word; }

.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 12px; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 5px 10px; border-radius: var(--radius-sm); text-decoration: none;
    border: 1px solid var(--line); color: var(--ink-soft); font-size: .84rem;
}
.pagination .is-current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }

.contact-links { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-links a {
    display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
    padding: 7px 12px; border-radius: var(--radius-sm);
    background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; font-size: .86rem;
}
.contact-links a:hover { background: #FFE2D2; }

.progress { background: #F0F1F4; border-radius: 999px; height: 9px; overflow: hidden; }
.progress__fill { height: 100%; background: var(--brand-bright); border-radius: 999px; }

.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 22px; background: var(--ink); }
.auth-card { width: 100%; max-width: 396px; background: var(--surface); border-radius: 16px; padding: 26px; box-shadow: 0 18px 44px rgba(0, 0, 0, .28); }
.auth-card__brand { text-align: center; margin-bottom: 18px; }
.auth-card__brand img { max-width: 210px; height: auto; }

.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
    padding: 8px 14px; border-radius: 0 0 var(--radius-sm) 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* -------------------------------------------------------------- reszponzív */

@media (max-width: 1100px) {
    .grid > .col-3 { grid-column: span 6; }
    .grid > .col-4 { grid-column: span 6; }
    .grid > .col-8 { grid-column: span 12; }
    .widget--small { grid-column: span 6; }
    .widget--large { grid-column: span 12; }
}

@media (max-width: 860px) {
    .sidebar {
        position: fixed; inset: 0 auto 0 0; z-index: 60;
        transform: translateX(-100%); transition: transform .2s ease;
        box-shadow: 0 0 40px rgba(0, 0, 0, .3);
    }
    .sidebar.is-open { transform: translateX(0); }
    .menu-toggle { display: inline-flex; order: 0; flex: 0 0 auto; }
    .content { padding: 16px 14px 44px; }

    /* A fejlécben a cím és a műveletek külön sorba kerülnek, hogy ne fedjék egymást. */
    .topbar { padding: 10px 14px; flex-wrap: wrap; align-items: flex-start; row-gap: 10px; }
    .topbar__title { order: 1; flex: 1 1 auto; min-width: 0; }
    .topbar__title h1 { font-size: 1.1rem; }
    .topbar__subtitle { font-size: .8rem; }
    .topbar__actions { order: 2; flex: 1 1 100%; }
    .topbar__actions .btn { flex: 1 1 auto; }

    /* Asztali táblázat helyett kártyás nézet. */
    .table-wrap { display: none; }
    .card-list { display: block; }

    .grid > .col-3, .grid > .col-4, .grid > .col-6 { grid-column: span 12; }
    .widget, .widget--small, .widget--medium, .widget--large, .widget--full { grid-column: span 12; }
    .form-grid { grid-template-columns: 1fr; }
    .definition { grid-template-columns: 1fr; gap: 2px 0; }
    .definition dt { margin-top: 8px; font-size: .78rem; }
    .bar-row { grid-template-columns: 1fr; gap: 3px; }
    .bar-row__value { text-align: right; }
}

.sidebar-backdrop { display: none; }
@media (max-width: 860px) {
    .sidebar-backdrop.is-visible {
        display: block; position: fixed; inset: 0; background: rgba(27, 33, 69, .45); z-index: 50;
    }
}

@media print {
    .sidebar, .topbar__actions, .menu-toggle, .form-actions { display: none !important; }
    body { background: #fff; }
    .card { box-shadow: none; }
}
