/* =====================================================================
   AtalanyEV – design system (EU-TAX arculat)
   Paletta és tipográfia a www.eutax.hu (Avada) témából származik:
   zöld #a0ce4e / #63920f, szöveg #4a4a4a, Open Sans.
   ===================================================================== */

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/open-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
        U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/open-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --brand: #a0ce4e;
    --brand-dark: #63920f;
    --brand-darker: #54770f;
    --brand-light: #d1e990;
    --brand-tint: #f3f9e8;
    --brand-ring: rgba(160, 206, 78, 0.35);

    --ink: #333333;
    --text: #4a4a4a;
    --muted: #747474;
    --border: #e0dede;
    --border-soft: #ebeaea;
    --bg: #f4f4f2;
    --surface: #ffffff;
    --surface-alt: #f9f9f9;

    --ok: #5ca340;
    --ok-bg: #e9f5e3;
    --ok-ink: #3e7a2a;
    --warn: #d9b917;
    --warn-bg: #fcf8e3;
    --warn-ink: #8a6d00;
    --danger: #a64242;
    --danger-bg: #f7e4e4;
    --danger-ink: #8f2f2f;
    --info-bg: #eaf1f8;
    --info-ink: #35597d;

    --radius: 6px;
    --radius-lg: 10px;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    --font: "Open Sans", "Segoe UI", system-ui, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { font-size: 15px; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 0.93rem;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand-darker); text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0 0 0.5rem; }
h1 { font-size: 1.5rem; font-weight: 700; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 0.8rem; }

/* ---------------------------------------------------------------------
   Fejléc + navigáció
   --------------------------------------------------------------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
    min-height: 62px;
    background: var(--surface);
    border-top: 4px solid var(--brand);
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--ink);
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { height: 34px; width: auto; display: block; }
.brand-sep { width: 1px; height: 26px; background: var(--border); }
.brand-app { font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; white-space: nowrap; }

.mainnav {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
    flex: 1;
    flex-wrap: wrap;
    align-self: stretch;
}
.mainnav a,
.mainnav .soon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.7rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
}
.mainnav a:hover { color: var(--brand-dark); text-decoration: none; }
.mainnav a.active { color: var(--brand-dark); border-bottom-color: var(--brand); }
.mainnav .soon { color: var(--muted); cursor: default; font-weight: 500; }
.mainnav .soon em {
    font-style: normal;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    color: var(--muted);
}

.userbox { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; }
.userbox form { display: inline; margin: 0; }
.userbox-link { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: inherit; }
.userbox-link:hover { text-decoration: none; color: inherit; }
.userbox-link:hover .username { color: var(--brand-dark); }
.userbox-link.active .username { color: var(--brand-dark); }
.avatar {
    width: 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-tint); color: var(--brand-darker);
    font-weight: 700; font-size: 0.85rem; text-transform: uppercase;
    border: 1px solid var(--brand-light);
}
.username { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------------
   Tartalom + oldalfejléc
   --------------------------------------------------------------------- */
.content {
    max-width: 1160px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
}

.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.5rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-dark); }

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.page-header h1 { margin: 0; }
.page-sub { color: var(--muted); font-size: 0.88rem; margin: 0.15rem 0 0; max-width: 60ch; }
.page-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.page-actions form { display: inline; margin: 0; }

/* ---------------------------------------------------------------------
   Panel (kártya konténer)
   --------------------------------------------------------------------- */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.8rem 1.1rem;
    border-bottom: 1px solid var(--border-soft);
}
.panel-header h2, .panel-header h3 { margin: 0; }
.panel-tools { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.panel-tools form { display: inline; margin: 0; }
.panel-body { padding: 1.1rem; }
.panel-body > :last-child { margin-bottom: 0; }
.panel-footer {
    padding: 0.8rem 1.1rem;
    border-top: 1px solid var(--border-soft);
    background: var(--surface-alt);
    display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.25rem; align-items: start; }
.grid-2 > .panel { margin-bottom: 0; }

/* ---------------------------------------------------------------------
   Táblázat
   --------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; }

table.table { border-collapse: collapse; width: 100%; }
.table th, .table td {
    padding: 0.6rem 0.9rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.88rem;
}
.table thead th {
    background: var(--surface-alt);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.table tbody tr:hover td { background: var(--surface-alt); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot th {
    background: var(--surface-alt);
    border-top: 2px solid var(--border);
    font-weight: 700;
    color: var(--ink);
}
.table .num, .table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .nowrap { white-space: nowrap; }
.table td.actions { padding: 0.35rem 0.9rem; }
.table .primary-cell { font-weight: 600; color: var(--ink); }
.table .primary-cell a { color: var(--ink); }
.table .primary-cell a:hover { color: var(--brand-dark); }

tr.row-missing td { background: #fffaf0; }
tr.row-confirmed td { background: var(--brand-tint); }
.table tbody tr.row-missing:hover td { background: #fff4dc; }
.table tbody tr.row-confirmed:hover td { background: #eaf4d9; }

/* ---------------------------------------------------------------------
   Gombok
   --------------------------------------------------------------------- */
button, .btn, a.button-like {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--brand-dark);
    color: #fff;
    border: 1px solid var(--brand-dark);
    padding: 0.48rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
button:hover, .btn:hover, a.button-like:hover {
    background: var(--brand-darker);
    border-color: var(--brand-darker);
    color: #fff;
    text-decoration: none;
}
button:disabled, .btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
button:focus-visible, .btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-ring); }

.btn-secondary, button.btn-secondary, a.button-like.btn-secondary {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--border);
}
.btn-secondary:hover, button.btn-secondary:hover, a.button-like.btn-secondary:hover {
    background: var(--surface-alt);
    border-color: #cfcccc;
    color: var(--ink);
}
.btn-danger, button.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover, button.btn-danger:hover { background: #8f2f2f; border-color: #8f2f2f; }
.btn-ghost, button.btn-ghost {
    background: transparent; border-color: transparent; color: var(--brand-dark);
}
.btn-ghost:hover, button.btn-ghost:hover { background: var(--brand-tint); border-color: transparent; color: var(--brand-darker); }
.btn-sm, button.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--brand-dark); padding: 0; text-decoration: underline; font-weight: 400; }
.btn-link:hover { background: none; color: var(--brand-darker); }

.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.actions form { display: inline; margin: 0; }
.toolbar { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.toolbar form { display: inline; margin: 0; }

/* ---------------------------------------------------------------------
   Badge, flash
   --------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    color: var(--text);
    white-space: nowrap;
}
.badge-ok { background: var(--ok-bg); border-color: #cde7bf; color: var(--ok-ink); }
.badge-warn { background: var(--warn-bg); border-color: #efe1a1; color: var(--warn-ink); }
.badge-danger, .badge-off { background: var(--danger-bg); border-color: #edc7c7; color: var(--danger-ink); }
.badge-info { background: var(--info-bg); border-color: #cddbea; color: var(--info-ink); }
.badge-brand { background: var(--brand-tint); border-color: var(--brand-light); color: var(--brand-darker); }

.flash {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.88rem;
    border: 1px solid transparent;
    border-left-width: 4px;
}
.flash::before {
    content: "";
    flex: 0 0 auto;
    width: 18px; height: 18px;
    margin-top: 0.05rem;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
}
.flash-ok { background: var(--ok-bg); border-color: #cde7bf; border-left-color: var(--ok); color: var(--ok-ink); }
.flash-ok::before { background-color: var(--ok); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E"); }
.flash-warn { background: var(--warn-bg); border-color: #efe1a1; border-left-color: var(--warn); color: var(--warn-ink); }
.flash-warn::before { background-color: var(--warn); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M8 4v5'/%3E%3Ccircle cx='8' cy='12' r='0.6' fill='white'/%3E%3C/svg%3E"); }
.flash-err { background: var(--danger-bg); border-color: #edc7c7; border-left-color: var(--danger); color: var(--danger-ink); }
.flash-err::before { background-color: var(--danger); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 5l6 6M11 5l-6 6'/%3E%3C/svg%3E"); }
.flash a { color: inherit; text-decoration: underline; font-weight: 600; }
.flash p { margin: 0; }

.error { color: var(--danger-ink); }
.info { color: var(--ok-ink); }
.muted { color: var(--muted); font-size: 0.85rem; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }

/* ---------------------------------------------------------------------
   Űrlapok
   --------------------------------------------------------------------- */
label { font-size: 0.85rem; }

input:not([type=checkbox]):not([type=radio]), select, textarea {
    display: block;
    width: 100%;
    padding: 0.45rem 0.65rem;
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-ring);
}
input[readonly] { background: var(--surface-alt); color: var(--muted); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand-dark); width: 15px; height: 15px; margin: 0; }
select { appearance: auto; cursor: pointer; }

/* Klasszikus, blokkos label + input (egyszerű űrlapok) */
form.simple label { display: block; margin: 0 0 0.8rem; font-weight: 600; color: var(--ink); }
form.simple label input:not([type=checkbox]),
form.simple label select { margin-top: 0.25rem; font-weight: 400; max-width: 420px; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 0.9rem 1.25rem;
}
.form-grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.field { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.field > label, .field-label { font-size: 0.8rem; font-weight: 600; color: var(--ink); }
.field-hint { font-size: 0.76rem; color: var(--muted); }
.field-error { color: var(--danger-ink); font-size: 0.78rem; }
.field.span-2 { grid-column: span 2; }
@media (max-width: 640px) { .field.span-2 { grid-column: auto; } }

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--ink);
    cursor: pointer;
}
.checkbox input { flex: 0 0 auto; }
label.inline { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; cursor: pointer; }
label.inline input { width: auto; margin: 0; }

.input-group { display: flex; align-items: stretch; }
.input-group input:not([type=checkbox]) { border-top-right-radius: 0; border-bottom-right-radius: 0; text-align: right; font-variant-numeric: tabular-nums; }
.input-group .suffix {
    display: inline-flex; align-items: center;
    padding: 0 0.6rem;
    border: 1px solid var(--border); border-left: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--surface-alt);
    color: var(--muted); font-size: 0.82rem; white-space: nowrap;
}

fieldset.form-section {
    border: 0;
    padding: 0;
    margin: 0 0 1.5rem;
    min-width: 0;
}
fieldset.form-section legend {
    display: block;
    width: 100%;
    padding: 0 0 0.4rem;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    border-bottom: 2px solid var(--brand);
}
fieldset.form-section .section-hint { margin: -0.5rem 0 0.9rem; }

.form-footer {
    display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap;
    padding-top: 1rem; margin-top: 0.5rem; border-top: 1px solid var(--border-soft);
}

/* Szűrő- és tömeges sáv */
.filter-bar, .bulk-bar {
    display: flex;
    gap: 0.75rem 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.filter-bar .field { min-width: 9rem; }
.filter-bar .field.wide { min-width: 16rem; }
.filter-bar .field.narrow { min-width: 6rem; width: 7rem; }
.bulk-bar {
    align-items: center;
    background: var(--brand-tint);
    border-color: var(--brand-light);
    box-shadow: none;
}
.bulk-bar .bulk-label { font-weight: 600; color: var(--ink); font-size: 0.85rem; }
.bulk-bar select { width: auto; }

/* Számlasor – kifizetési dátum cella */
.settlement-cell { min-width: 15rem; }
.table.compact th, .table.compact td { padding: 0.5rem 0.6rem; }
.settlement-cell form { display: flex; flex-direction: column; gap: 0.35rem; }
.settlement-cell .settlement-edit { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.settlement-cell input[type=date] { width: auto; padding: 0.3rem 0.5rem; font-size: 0.82rem; }
.settlement-cell .settlement-meta { display: flex; gap: 0.5rem; align-items: center; font-size: 0.78rem; color: var(--muted); }
.settlement-current { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------
   KPI kártyák, progress
   --------------------------------------------------------------------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
    margin: 0 0 1.25rem;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 0.9rem 1.1rem;
    display: flex; flex-direction: column; gap: 0.25rem;
}
.card-label {
    font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted);
}
.card-value { font-size: 1.55rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.card-value small { font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-left: 0.2rem; }
.card-value.sm { font-size: 1.1rem; }
.toolbar.end { justify-content: flex-end; }
.cell-trunc { max-width: 26rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-note { font-size: 0.78rem; color: var(--muted); }
.card-link { margin-top: auto; font-size: 0.82rem; font-weight: 600; }
.card.accent { border-top: 3px solid var(--brand); }

.bar { height: 8px; background: var(--border-soft); border-radius: 4px; margin-top: 0.4rem; overflow: hidden; }
.bar-fill { height: 100%; background: var(--brand); border-radius: 4px; transition: width 0.3s ease; }
.bar-fill.bar-over { background: var(--danger); }
.bar-caption { display: flex; justify-content: space-between; font-size: 0.76rem; color: var(--muted); margin-top: 0.3rem; }

/* ---------------------------------------------------------------------
   Definíciós lista, üres állapot, gyorslinkek
   --------------------------------------------------------------------- */
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1.25rem; margin: 0; }
dl.kv dt { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding-top: 0.15rem; }
dl.kv dd { margin: 0; color: var(--ink); }

.empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--muted);
}
.empty .empty-icon {
    width: 44px; height: 44px; margin: 0 auto 0.7rem;
    border-radius: 50%; background: var(--surface-alt); border: 1px dashed var(--border);
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--brand);
}
.empty p { margin: 0 0 0.8rem; }

.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.75rem; }
.quick-link {
    display: flex; flex-direction: column; gap: 0.2rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.12s ease, background-color 0.12s ease;
}
.quick-link:hover { border-color: var(--brand); background: var(--brand-tint); text-decoration: none; color: var(--ink); }
.quick-link strong { font-size: 0.92rem; }
.quick-link span { font-size: 0.8rem; color: var(--muted); }

/* Adóévi paraméter – évkártya */
.year-card .year-title { display: flex; align-items: center; gap: 0.75rem; }
.year-card .year-number { font-size: 1.5rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.param-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem 1.5rem; }
.param-group h4 {
    margin: 0 0 0.5rem; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted);
}
.param-group ul { list-style: none; margin: 0; padding: 0; }
.param-group li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; border-bottom: 1px dashed var(--border-soft); font-size: 0.86rem; }
.param-group li:last-child { border-bottom: 0; }
.param-group li span:last-child { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 2658 előnézet */
.amount-input { width: 9.5rem; text-align: right; font-variant-numeric: tabular-nums; margin-left: auto; padding: 0.3rem 0.5rem; }
.amount-input.is-override { border-color: var(--warn); background: var(--warn-bg); }
tr.row-derived td { color: var(--muted); }
tr.row-derived .amount-input { background: var(--surface-alt); }
.computed-hint { font-size: 0.72rem; text-align: right; }

.wage-table td { padding: 0.4rem 0.6rem; }
.wage-table td input, .wage-table td select { font-size: 0.86rem; padding: 0.35rem 0.5rem; }
.wage-table .col-month { width: 8rem; }
.wage-table .col-remove { width: 3rem; text-align: center; }
.btn-icon { padding: 0.3rem 0.5rem; line-height: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------------
   Login
   --------------------------------------------------------------------- */
body.login-page { display: flex; flex-direction: column; min-height: 100vh; }
body.login-page .content { flex: 1; display: flex; align-items: center; justify-content: center; max-width: none; padding: 2rem 1rem; }
.login-box {
    width: 100%; max-width: 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--brand);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    padding: 2rem 2rem 1.75rem;
}
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.login-brand img { height: 46px; width: auto; }
.login-brand .login-app { font-weight: 600; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.login-box h1 { font-size: 1.15rem; text-align: center; margin-bottom: 1.2rem; }
.login-box .field { margin-bottom: 0.9rem; }
.login-box button { margin-top: 0.4rem; }
.login-footer { text-align: center; font-size: 0.75rem; color: var(--muted); margin-top: 1.25rem; }

/* ---------------------------------------------------------------------
   Reszponzív
   --------------------------------------------------------------------- */
@media (max-width: 900px) {
    .topbar { flex-wrap: wrap; padding: 0.5rem 1rem; gap: 0.5rem 1rem; min-height: 0; }
    .brand-app, .brand-sep { display: none; }
    .mainnav { order: 3; flex-basis: 100%; gap: 0; }
    .mainnav a, .mainnav .soon { padding: 0.5rem 0.6rem; font-size: 0.82rem; }
    .userbox { margin-left: auto; }
    .content { padding: 1rem 1rem 2rem; }
}
