/* === Import & CSS Variables ================================================= */
@import url('https://fonts.googleapis.com/css2?family=Marcellus&display=swap');

:root {
    --primary: #d4af37;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f7f7f7;
    --gray: #ccc;
    --border-radius: 4px;
    --font-family: 'Marcellus', serif;
    --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

    /* main alatti hely */
    --header-offset: 0.2rem;
    --header-offset-mobile: 2rem;

    --ar-surface: #ffffff;
    --ar-surface-2: #f6f7f9;
    /* semleges, hűvös szürke */
    --ar-text: #1f2937;
    --ar-text-muted: #6b7280;
    --ar-border: rgba(0, 0, 0, .08);
    --ar-radius: 12px;
    --ar-shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
    --ar-shadow-md: 0 6px 18px rgba(0, 0, 0, .08);

    /* táblázat semleges háttérszínek */
    --ar-table-zebra: #f6f7f9;
    --ar-table-hover: #eef2f6;
    --ar-table-foot: #f5f7fa;

    --bk-surface: #fff;
    --bk-text: #111;
    --bk-muted: #666;
    --bk-border: #e6e6e6;
    --bk-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    --bk-radius: 12px;
    --bk-primary: var(--primary, #d4af37);

}

/* === Base Layout ============================================================ */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background: var(--gray-light);
    color: var(--black);
}

.maincontainer {
    width: 95%;
    margin: 0 auto;
    padding: var(--header-offset, 5rem) 2rem 2rem calc(140px + 2rem);
    /* fix hely a menünek */
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
    z-index: 0;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .maincontainer {
        padding: var(--header-offset, 5rem) 1rem 2rem 1rem;
    }
}

/* === Headings & Common Blocks ============================================== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin: 2rem 0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.fentigomb {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.alsogomb {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
}

.alsogomb-bal {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

/* === SIDEBAR — desktop + mobil offcanvas ================================ */

/* Alap (desktop): fix bal oldali sáv */
.sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    width: 180px !important;
    background: #fff !important;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 1rem 0.5rem 1.25rem !important;
    border-right: 2px solid var(--primary) !important;
    overflow-y: auto !important;
    z-index: 10000 !important;
    transition: transform 0.28s ease !important;
    scrollbar-width: thin;
    transform: translateX(0) !important;
    /* desktopon mindig látszik */
}

/* Logo */
.sidebar img.logo-sidebar {
    width: 120px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
}

/* Menü linkek */
.sidebar a.btn-auth {
    display: block;
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    color: #111;
    text-decoration: none;
    border-left: 4px solid transparent;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1.25;
}

.sidebar a.btn-auth:hover {
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--primary);
    color: var(--primary);
}

.sidebar-link {
    display: block;
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #111;
    text-decoration: none;
    border-left: 4px solid transparent;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(212, 175, 55, 0.15);
    border-left: 4px solid var(--primary);
    color: var(--primary);
}

/* Csoportcímek */
.sidebar-group {
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.sidebar-group-title {
    font-size: 0.72rem;
    margin: 0.3rem 0 0.2rem 0.5rem;
    letter-spacing: 0.3px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
}

/* Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

/* === Mobil / tablet: offcanvas mód ===================================== */
/* 1024px alatt elrejtve, body.sidebar-open esetén csúszik be.
   NINCS extra top padding, így a menü tényleg felülről indul. */

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%) !important;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.35) !important;
        border-right: 1px solid rgba(0, 0, 0, 0.12) !important;
        padding-top: 1rem !important;
        /* normál felső padding, nem 3.2rem */
    }

    body.sidebar-open .sidebar {
        transform: translateX(0) !important;
    }
}

/* === Hamburger gomb ===================================================== */
/* header.php:
   <button class="sidebar-toggle" type="button" aria-label="Menü"><span></span></button>
*/

.sidebar-toggle {
    position: fixed;
    top: 0.6rem;
    left: 0.6rem;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .18);
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    z-index: 1101;
}

/* Három csík */
.sidebar-toggle span,
.sidebar-toggle::before,
.sidebar-toggle::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: #000;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.sidebar-toggle span {
    margin: 0;
}

.sidebar-toggle::before {
    transform: translateY(-6px);
}

.sidebar-toggle::after {
    transform: translateY(6px);
}

/* X állapot, ha nyitva a sidebar */
body.sidebar-open .sidebar-toggle::before {
    transform: translateY(0) rotate(45deg);
}

body.sidebar-open .sidebar-toggle::after {
    transform: translateY(0) rotate(-45deg);
}

body.sidebar-open .sidebar-toggle span {
    opacity: 0;
}

/* Csak 1024px alatt jelenjen meg */
@media (max-width: 1024px) {
    .sidebar-toggle {
        display: flex;
    }
}

/* === Overlay ============================================================ */
/* header.php:
   <div class="mobile-overlay"></div>
*/

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    z-index: 1100;
    transition: opacity 0.25s ease;
}

body.sidebar-open .mobile-overlay {
    opacity: 1;
    pointer-events: auto;
}


/* === Dashboard Wrapper ====================================================== */
.dashboard {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem auto 4rem auto;
    max-width: 1100px;
    padding: 0 1rem;
}

/* === Widget (Unified) ======================================================= */
.widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Accent variant (thinner padding + primary border) */
.widget--accent {
    border-color: var(--primary);
    border-radius: var(--border-radius, 6px);
    padding: 1rem;
}

.widget-title {
    text-align: center;
    margin-bottom: 1rem;
}

.widget-title h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.8rem;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 0.4rem;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    padding: 0.6rem 0;
    border-bottom: 1px dashed #ddd;
    font-size: 0.95rem;
    line-height: 1.4;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget-footer {
    margin-top: 1rem;
    text-align: right;
}

/* === Tooltips ============================================================== */
.info-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    line-height: 1;
    border-radius: 50%;
    font-size: .9rem;
    border: 1px solid var(--gray, #ccc);
    cursor: help;
    user-select: none;
    position: relative;
}

.info-tip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    top: calc(100% + .5rem);
    transform: translateX(-50%);
    min-width: 220px;
    max-width: 360px;
    padding: .6rem .75rem;
    background: #111;
    color: #fff;
    border-radius: .4rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
    font-size: .85rem;
    line-height: 1.35;
    white-space: pre-line;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.info-tip::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% + .2rem);
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #111;
    opacity: 0;
    transition: opacity .18s ease;
}

.info-tip:hover::after,
.info-tip:focus::after,
.info-tip:hover::before,
.info-tip:focus::before {
    opacity: 1;
}

/* === Tables (Unified) ====================================================== */
.table-auth-wrapper {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--primary);
    border-radius: 6px;
    margin-top: 1rem;
}

.table-auth {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #fff;
    table-layout: auto;
}

.table-auth thead th {
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
    padding: 0.7rem 0.6rem;
    white-space: nowrap;
    background: #fff;
}

.table-auth tbody td {
    border-bottom: 1px solid #eee;
    padding: 0.65rem 0.6rem;
    vertical-align: middle;
}

.table-auth tbody tr:last-child td {
    border-bottom: none;
}

/* Numeric helper class (use in markup) */
.table-auth td.num {
    text-align: right;
    white-space: nowrap;
}

/* Optional sticky header */
.table--sticky thead th {
    position: sticky;
    top: 0;
    z-index: 3;
}




/* === Forms (Unified) ======================================================= */
form {
    width: 100%;
    max-width: 100%;
}

.form-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
}

fieldset.form-block {
    flex: 1 1 220px;
    min-width: 220px;
    margin: 0;
    padding: 0.75rem;
    border: none;
    box-sizing: border-box;
    align-self: start;
}

fieldset.form-block legend {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.8rem;
    padding-bottom: 0.25rem;
    border: 0;
}

.form-section {
    display: grid;
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    gap: 24px;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    align-items: start;
}

@media (max-width: 1280px) {
    .form-section {
        grid-template-columns: repeat(3, minmax(260px, 1fr));
    }
}

@media (max-width: 992px) {
    .form-section {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
}

@media (max-width: 640px) {
    .form-section {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

.mezo {
    background: #fff;
    padding: 0.6rem 0.9rem;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    font-size: 0.84rem;
    line-height: 1.4;
    min-height: 40px;
}

.mezo strong,
.mezo label {
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--black);
}

.mezo span,
.mezo div {
    font-size: 0.84rem;
    color: var(--black);
    word-break: break-word;
}

.mezo input,
.mezo select,
.mezo textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mezo input[type="file"] {
    display: block;
    width: 100%;
    max-width: 100%;
}

/* Inline actions in forms */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray);
}

/* === Buttons (Unified + Modifiers) ========================================= */
.btn-auth {
    display: inline-block;
    font-family: var(--font-family);
    line-height: 1.2;
    box-sizing: border-box;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    background: #fff;
    color: var(--black);
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    font-size: .85rem;
    padding: .45rem .85rem;
    transition: box-shadow .15s ease, transform .05s ease-in;
}

.btn-auth:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
    transform: translateY(-1px);
}

.btn--primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

.btn--ghost {
    background: #fff;
    border-color: #ddd;
    color: #000;
}

.btn--sm {
    padding: .35rem .7rem;
    font-size: .82rem;
}

/* === Utilities ============================================================= */
.input-short {
    width: 48px;
    padding: 0.3rem;
    font-size: 0.75rem;
    text-align: right;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.copy-btn {
    background: none;
    border: none;
    padding: 0.1rem;
    margin-left: 0.3rem;
    cursor: pointer;
    vertical-align: middle;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    line-height: 1;
}

.copy-btn:hover {
    color: var(--black);
}

.copy-btn svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

/* === Global Toast ========================================================== */
.global-alert {
    position: fixed;
    top: 1rem;
    right: -420px;
    min-width: 240px;
    max-width: 340px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    opacity: 0;
    transition: right .4s ease, opacity .4s ease;
}

.global-alert.show {
    right: 1rem;
    opacity: 1;
}

.global-alert.success {
    background: #28a745;
}

.global-alert.error {
    background: #dc3545;
}

.global-alert.info {
    background: #17a2b8;
}

.global-alert.warning {
    background: #ffc107;
    color: #000;
}

/* === Required Fields ======================================================= */
.required {
    color: #d93025;
    font-weight: normal;
    font-size: 0.85rem;
    margin-left: 4px;
}

.mezo input[required],
.mezo select[required],
.mezo textarea[required] {
    border: 1px solid #e0b4b4;
    background-color: #fffafa;
    transition: all 0.3s ease;
}

.mezo input[required]:focus,
.mezo select[required]:focus,
.mezo textarea[required]:focus {
    border-color: #d93025;
    background-color: #fff;
    outline: none;
}

.mezo input:valid,
.mezo select:valid,
.mezo textarea:valid {
    border: 1px solid #ccc;
    background-color: #fff;
}

/* === Search (Generic) ====================================================== */
.eszkoz-kereso-wrap {
    display: flex;
    justify-content: center;
    margin: 0 0 1rem;
}

.kereso-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem auto 2rem auto;
    padding: 0.5rem 1rem;
    max-width: 500px;
    background: #fff;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.kereso-box input[type="text"] {
    flex: 1;
    padding: 0.45rem 0.8rem;
    font-size: 0.85rem;
    border: none;
    outline: none;
    background: transparent;
    color: var(--black);
    font-family: var(--font-family);
}

.kereso-box button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background 0.2s ease;
}

.kereso-box button:hover {
    background: #c29c2c;
}

/* === felhasznalo_reszletek.php ===== */


/* ===== Felhasználó részletei (user-show) — ütközésmentes, :root nélkül ===== */

.user-show .form-block.card {
    background: #fff;
    border: 1px solid #d4af37;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

.user-show .form-block.card legend {
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 8px;
}

/* Meződoboz egységes megjelenítés */
.user-show .form-block.card .mezo {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.user-show .form-block.card .mezo .ertek {
    white-space: pre-wrap;
    line-height: 1.35;
}

.user-show .copy-btn {
    background: none;
    border: 0;
    padding: 2px 4px;
    margin-left: 6px;
    cursor: pointer;
    color: #d4af37;
}

.user-show .show-pin-btn {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: .9rem;
}

/* Full width kártya a gridben */
.user-show .fullwidth {
    grid-column: 1 / -1;
}

/* Kapcsolt területek – chip lista */
.user-show .chip-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.user-show .chip {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #e6e6e6;
    border-radius: 999px;
    background: #fafafa;
    font-size: .92rem;
    line-height: 1;
}

/* Órabér táblázat */
.user-show .oraber-view .oraber-tablewrap {
    width: 100%;
    overflow: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

.user-show .oraber-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: .95rem;
}

.user-show .oraber-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    text-align: center;
    white-space: nowrap;
    padding: 10px 8px;
    border-bottom: 2px solid #d4af37;
    font-weight: 700;
}

.user-show .oraber-table tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f1f1;
    vertical-align: middle;
}

.user-show .oraber-table .area-name {
    width: 44%;
    text-align: left;
    white-space: normal;
    word-break: break-word;
}

@media (max-width:1100px) {
    .user-show .oraber-table .area-name {
        width: 52%;
    }
}

.user-show .oraber-table .num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.user-show .muted-note {
    color: #666;
    margin: .4rem 0 0;
}

/* Reszponzív finomhangolás – örökli a globális .form-section rácsot */
@media (max-width:820px) {
    .user-show .chip {
        font-size: .9rem;
    }
}




/* === felhasznalo_szerkeszt_form.php ===== */

/* 3 oszlopos űrlap, töréspontokkal */
.form-section.edit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr)) !important;
    gap: 24px;
    grid-auto-flow: dense;
    align-items: start;
}

@media (max-width:1280px) {
    .form-section.edit-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
    }
}

@media (max-width:820px) {
    .form-section.edit-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Kártya megjelenés (fieldset) */
.form-block.card {
    background: #fff;
    border: 1px solid #d4af37;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    padding: 14px;
}

.form-block.card legend {
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 8px;
}

/* Meződobozok egységesítése a kártyákon belül */
.form-block.card .mezo {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.form-block.card .mezo input,
.form-block.card .mezo select,
.form-block.card .mezo textarea {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 15px;
    box-sizing: border-box;
}

.form-block.card .mezo input:focus,
.form-block.card .mezo select:focus,
.form-block.card .mezo textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .18);
}

/* Felső gombsor igazítás */
.topbar-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}

/* (Ha maradt régi alsó gombsáv ezen az oldalon, rejtsük el) */
.user-edit .sticky-actions {
    display: none;
}

/* ===== Órabér blokk – TELJES SZÉLESSÉG + legalul ======================== */
.oraber-block {
    grid-column: 1 / -1 !important;
    /* teljes sor szélesség */
    margin-top: 24px;
}

/* Kapcsolt területek többválasztó – teljes szélesség */
#fld_kapcsolt_teruletek {
    width: 100%;
    min-height: 160px;
}

/* Segédszöveg */
.oraber-help {
    margin: 4px 0 10px;
    color: #555;
    font-size: 13px;
}

/* Órabér táblázat */
.oraber-wrap {
    overflow: visible;
    /* ne kényszerítsen saját görgetést */
}

.oraber-table {
    width: 100%;
    table-layout: fixed;
    /* ne legyen vízszintes görgetés */
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.oraber-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    border-bottom: 2px solid #d4af37;
    padding: 8px 6px;
    text-align: center;
    white-space: nowrap;
}

.oraber-table tbody td {
    border-bottom: 1px solid #eee;
    padding: 8px 6px;
    vertical-align: middle;
}

.oraber-table .area-name {
    width: 44%;
    text-align: left;
    white-space: normal;
    word-break: break-word;
}

@media (max-width:1100px) {
    .oraber-table .area-name {
        width: 52%;
    }
}

.oraber-table input[type="number"] {
    width: 100%;
    max-width: none;
    /* ne legyen 110px limit */
    text-align: right;
    padding: 7px 9px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
}

/* ===== Csatolmányok egységesen teljes szélességben ======================= */
.attachments-block {
    grid-column: 1 / -1;
}


/* === felhasznalok.php ================================================== */
.felhasznalo-lista {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.felhasznalo-csempe {
    background: #fff;
    width: 100%;
    max-width: 800px;
    padding: 1rem 1.2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
    transition: box-shadow 0.2s ease;
}

.felhasznalo-csempe.inaktiv {
    opacity: 0.65;
    border-left-color: #aaa;
}

.felhasznalo-fejlec {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}

.felhasznalo-fejlec h2 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--black);
}

.felhasznalo-muveletek {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.jelszo-form {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid #eee;
}

.jelszo-form input[type="password"] {
    padding: 0.3rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 0.4rem;
    max-width: 200px;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .form-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .mezo {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }

    .mezo strong,
    .mezo label {
        font-size: 0.72rem;
    }

    fieldset.form-block legend {
        font-size: 0.85rem;
    }
}

/* === partnerek.php =================================================== */
.form-columns-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.form-row {
    background: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

.form-lista {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.partner-szerkeszto {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.log-container .form-actions {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.log-table {
    width: 100%;
    border-collapse: collapse;
}

.log-table th,
.log-table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}

.log-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* === Munkák (munkak.php, munkak_szerkeszt.php) ============================= */
main[data-page="munkak"] .form-inline {
    width: 100%;
}

main[data-page="munkak"] .form-inline-group {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    align-items: start;
}

main[data-page="munkak"] .mezo {
    grid-column: span 4;
}

@media (max-width: 1200px) {
    main[data-page="munkak"] .mezo {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    main[data-page="munkak"] .form-inline-group {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    main[data-page="munkak"] .mezo {
        grid-column: 1 / -1;
    }

    main[data-page="munkak"] .alsogomb {
        justify-content: stretch;
        flex-wrap: wrap;
    }

    main[data-page="munkak"] .alsogomb .btn-auth {
        flex: 1 1 auto;
        text-align: center;
    }
}

main[data-page="munkak"] .alsogomb {
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

main[data-page="munkak"] .table-auth td:last-child .btn-auth {
    white-space: nowrap;
    padding: 0.35rem 0.7rem;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.status-fuggoben {
    background: #e0e0e0;
    color: #333;
}

.status-folyamatban {
    background: #007bff20;
    color: #007bff;
}

.status-teljesitve {
    background: #28a74520;
    color: #28a745;
}

/* Filters */
.filter-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0 1.5rem;
    align-items: center;
}

.filter-bar .mezo {
    flex: 1 1 200px;
    min-width: 200px;
    padding: 0.4rem 0.6rem;
    border: none;
    box-shadow: none;
}

.filter-bar .mezo label {
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-bar select,
.filter-bar input {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.45rem 0.7rem;
    font-size: 0.9rem;
    width: 100%;
}

/* ============================================================
   Széf & Bank (szef.php) – letisztult, professzionális
   Minden szabály a main[data-page="szef"] alatt él.
   Használja a meglévő CSS változóidat (pl. --primary).
   ============================================================ */

main[data-page="szef"] .is-hidden {
    display: none !important;
}

/* --- Összegző kártya / címletek ------------------------------------------ */
main[data-page="szef"] .szef-summary {
    background: var(--white);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius, 8px);
    box-shadow: var(--box-shadow, 0 8px 20px rgba(0, 0, 0, .08));
    padding: 1rem;
    margin: 0 0 1.25rem;
}

main[data-page="szef"] .szef-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .8rem;
    margin: .25rem 0 .75rem;
}

main[data-page="szef"] .szef-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: .8rem;
    text-align: center;
    font-size: .95rem;
}

main[data-page="szef"] .szef-darabok-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .25rem 0 .6rem;
}

main[data-page="szef"] .info-tip {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    font-size: .85rem;
    border-radius: 50%;
    border: 1px solid #ccc;
    cursor: help;
    background: #fff;
}

main[data-page="szef"] .szef-darabok-center {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .6rem .8rem;
}

main[data-page="szef"] .cimlet-item {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    padding: .5rem .6rem;
    font-size: .92rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}

main[data-page="szef"] .cimlet-item.cimlet-low {
    border-color: #d32f2f;
    background: #fff7f7;
    color: #b71c1c;
}

/* --- Tranzakció űrlap ----------------------------------------------------- */
main[data-page="szef"] .form-section-szef {
    background: #fff;
    border: 1px solid var(--primary);
    border-radius: 12px;
    box-shadow: var(--box-shadow, 0 8px 20px rgba(0, 0, 0, .06));
    padding: 1rem;
    display: grid;
    gap: 1rem;
}

/* Felső kapcsolók (Széf/Bank × Bevételezés/Kivét) */
main[data-page="szef"] .form-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1rem;
    align-items: center;
    justify-content: flex-start;
}

main[data-page="szef"] .radio-pill-group {
    display: flex;
    gap: .5rem;
    align-items: center;
}

main[data-page="szef"] .radio-pill-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

main[data-page="szef"] .radio-pill-group label {
    padding: .42rem .9rem;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: box-shadow .15s ease, border-color .15s ease, transform .05s ease-in;
    user-select: none;
}

main[data-page="szef"] .radio-pill-group input[type="radio"]:checked+label {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .18);
    transform: translateY(-1px);
}

/* Űrlap sorok, mezők */
main[data-page="szef"] .form-row-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem 1rem;
    align-items: flex-start;
    width: 100%;
}

main[data-page="szef"] .mezo {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: .65rem .8rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 180px;
}

main[data-page="szef"] .mezo label {
    font-weight: 600;
    font-size: .9rem;
    color: #333;
    margin: 0;
}

main[data-page="szef"] .mezo input,
main[data-page="szef"] .mezo select,
main[data-page="szef"] .mezo textarea {
    width: 100%;
    box-sizing: border-box;
    padding: .5rem .6rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: .95rem;
    background: #fff;
}

main[data-page="szef"] .mezo input:focus,
main[data-page="szef"] .mezo select:focus,
main[data-page="szef"] .mezo textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .18);
}

/* Utility szélességek */
main[data-page="szef"] .u-w-220 {
    width: 220px;
    max-width: 100%;
}

main[data-page="szef"] .u-w-320 {
    width: 320px;
    max-width: 100%;
}

main[data-page="szef"] .u-flex-1 {
    flex: 1 1 260px;
}

/* Címlet-rács (széf bevét/kivét) */
main[data-page="szef"] .cimlet-input-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: .6rem .8rem;
    width: 100%;
}

main[data-page="szef"] .cimlet-input {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

main[data-page="szef"] .cimlet-input label {
    font-size: .8rem;
    color: #444;
}

main[data-page="szef"] .cimlet-input input[type="number"] {
    text-align: right;
    padding: .35rem .45rem;
    font-variant-numeric: tabular-nums;
}

/* Alsó gombsor */
main[data-page="szef"] .alsogomb {
    display: flex;
    justify-content: center;
    margin-top: .25rem;
}

main[data-page="szef"] .btn-auth.btn--primary {
    border-color: var(--primary);
    background: var(--primary);
    color: #000;
    font-weight: 700;
    padding: .55rem 1rem;
    border-radius: 10px;
    transition: box-shadow .15s ease, transform .05s ease-in;
}

main[data-page="szef"] .btn-auth.btn--primary:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
    transform: translateY(-1px);
}

/* Flash üzenetek (meglévő osztályokhoz diszkrét finomítás) */
main[data-page="szef"] .bk-alert {
    margin: .6rem 0 1rem;
    padding: .65rem .85rem;
    border-radius: 10px;
    border-left: 4px solid transparent;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    font-weight: 600;
}

/* Reszponzív finomhangolás */
@media (max-width: 680px) {

    main[data-page="szef"] .u-w-220,
    main[data-page="szef"] .u-w-320 {
        width: 100%;
    }

    main[data-page="szef"] .form-toggle-row {
        gap: .6rem .8rem;
    }
}


/* === Eszközök (eszkozok.php) =============================================== */
main[data-page="eszkozok"] .kereso-box {
    margin: 0 auto 1rem;
    max-width: 540px;
    width: 100%;
}

main[data-page="eszkozok"] #eszkozok-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

main[data-page="eszkozok"] .form-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    background: #fff;
    grid-template-columns: unset;
}

main[data-page="eszkozok"] .form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

main[data-page="eszkozok"] .form-header>div:first-child {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

main[data-page="eszkozok"] .form-header strong {
    font-size: 1rem;
    line-height: 1.2;
}

main[data-page="eszkozok"] .category-tag {
    background: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: .15rem .4rem;
    font-size: .75rem;
    color: #333;
}

main[data-page="eszkozok"] .form-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    gap: .5rem;
}

@media (max-width: 640px) {
    main[data-page="eszkozok"] .form-section {
        align-items: flex-start;
    }

    main[data-page="eszkozok"] .form-header {
        flex-direction: column;
        align-items: stretch;
        gap: .6rem;
    }

    main[data-page="eszkozok"] .form-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* === Eszköz hozzáadás (eszkoz_uj.php) ====================================== */
main[data-page="eszkoz_uj"] form {
    max-width: 520px;
    margin: 0 auto;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

main[data-page="eszkoz_uj"] .form-block {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: 1rem;
}

main[data-page="eszkoz_uj"] label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

main[data-page="eszkoz_uj"] input,
main[data-page="eszkoz_uj"] select {
    padding: 0.5rem 0.7rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: .9rem;
    font-family: inherit;
    width: 100%;
}

main[data-page="eszkoz_uj"] .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
    margin-top: 1.2rem;
}

/* === Napi teendők (napi_teendok.php) ======================================= */
main[data-page="napi_teendok"] .uj-teendo-form {
    max-width: 980px;
    margin: 0 auto 1.25rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

main[data-page="napi_teendok"] .uj-teendo-form .form-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.8fr;
    gap: 1rem;
}

@media (max-width: 980px) {
    main[data-page="napi_teendok"] .uj-teendo-form .form-grid {
        grid-template-columns: 1fr;
    }
}

main[data-page="napi_teendok"] .uj-teendo-form .mezo {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

main[data-page="napi_teendok"] .uj-teendo-form label {
    font-weight: 600;
    font-size: .9rem;
    color: #333;
}

main[data-page="napi_teendok"] .uj-teendo-form input,
main[data-page="napi_teendok"] .uj-teendo-form select,
main[data-page="napi_teendok"] .uj-teendo-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: .5rem .7rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: .9rem;
    background: #fff;
}

main[data-page="napi_teendok"] .table-wrapper {
    border: 1px solid var(--primary);
    border-radius: 6px;
    background: #fff;
    overflow: auto;
    max-height: 70vh;
}

/* oszlopszélességek + tördelés */
main[data-page="napi_teendok"] .table-auth thead th:nth-child(1),
main[data-page="napi_teendok"] .table-auth tbody td:nth-child(1) {
    min-width: 240px;
    max-width: 380px;
    text-align: left;
    white-space: normal;
    word-break: break-word;
}

main[data-page="napi_teendok"] .table-auth thead th:nth-child(2),
main[data-page="napi_teendok"] .table-auth tbody td:nth-child(2) {
    min-width: 260px;
    max-width: 420px;
    text-align: left;
    white-space: normal;
    word-break: break-word;
}

main[data-page="napi_teendok"] .table-auth thead th:nth-child(3),
main[data-page="napi_teendok"] .table-auth tbody td:nth-child(3) {
    min-width: 140px;
    text-align: center;
    white-space: nowrap;
}

main[data-page="napi_teendok"] .table-auth thead th:nth-child(4),
main[data-page="napi_teendok"] .table-auth tbody td:nth-child(4) {
    min-width: 180px;
    text-align: left;
    white-space: nowrap;
}

main[data-page="napi_teendok"] .table-auth thead th:nth-child(5),
main[data-page="napi_teendok"] .table-auth tbody td:nth-child(5) {
    min-width: 160px;
    text-align: center;
    white-space: nowrap;
}

main[data-page="napi_teendok"] .table-auth thead th:nth-child(6),
main[data-page="napi_teendok"] .table-auth tbody td:nth-child(6),
main[data-page="napi_teendok"] .table-auth thead th:nth-child(7),
main[data-page="napi_teendok"] .table-auth tbody td:nth-child(7) {
    min-width: 220px;
    text-align: center;
    white-space: nowrap;
}

main[data-page="napi_teendok"] .inline-form {
    display: inline-flex;
    gap: .4rem;
    align-items: center;
    flex-wrap: wrap;
}

main[data-page="napi_teendok"] .inline-form input[type="text"],
main[data-page="napi_teendok"] .inline-form select {
    padding: .35rem .5rem;
    font-size: .85rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

main[data-page="napi_teendok"] .inline-form input[type="text"] {
    min-width: 220px;
    max-width: 360px;
}

main[data-page="napi_teendok"] .status-badge {
    display: inline-block;
    padding: .2rem .5rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid #ddd;
    background: #f7f7f7;
}

main[data-page="napi_teendok"] .status-folyamatban {
    color: #0b5ed7;
    border-color: #cfe2ff;
    background: #e7f1ff;
}

main[data-page="napi_teendok"] .status-fuggoben {
    color: #9a6700;
    border-color: #ffe69c;
    background: #fff3cd;
}

main[data-page="napi_teendok"] .status-teljesitve {
    color: #0a7b34;
    border-color: #bfe6ca;
    background: #dff6e3;
}

@media (max-width: 768px) {
    main[data-page="napi_teendok"] .inline-form {
        width: 100%;
        justify-content: center;
    }

    main[data-page="napi_teendok"] .inline-form input[type="text"] {
        min-width: 160px;
        max-width: 100%;
    }
}

/* === beosztas.php ============================================== */
.table-beosztas {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    table-layout: fixed;
}

.table-beosztas thead th {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.table-beosztas tbody td {
    text-align: center;
    padding: 0.4rem;
    vertical-align: middle;
}

.table-beosztas td:first-child {
    font-weight: bold;
    text-align: left;
    background: var(--gray-light);
    width: 180px;
}

.ora-input {
    width: 90px;
    padding: 0.2rem;
    font-size: 0.85rem;
    margin: 2px 0;
    text-align: center;
}

/* Napi beosztás – központozás csak ezen az oldalon a table-auth fejlécre */
main[data-page="beosztas"] .table-auth thead th {
    text-align: center !important;
    vertical-align: middle;
    padding: 0.7rem;
}

main[data-page="beosztas"] .table-auth tbody td {
    padding: 0.6rem 0.8rem;
    vertical-align: top;
}

main[data-page="beosztas"] .table-auth tbody tr td:first-child {
    white-space: nowrap;
    text-align: center;
    width: 140px;
}

main[data-page="beosztas"] .table-auth tbody tr td:nth-child(2) {
    text-align: center;
    width: 80px;
    font-weight: bold;
}

main[data-page="beosztas"] .names-cell {
    text-align: left;
}

main[data-page="beosztas"] .names-cell .name-line {
    display: block;
    padding: 0.2rem 0 0.2rem 1rem;
    font-size: 0.9rem;
    line-height: 1.3;
    position: relative;
}

main[data-page="beosztas"] .names-cell .name-line::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}




/* === Széf elrendezés (reszponzív grid) === */
.szef-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0;

}

.szef-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0.8rem;
    font-size: 0.95rem;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;

}

/* === Listák egységes stílusa a widgetekben === */
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    padding: 0.6rem 0;
    border-bottom: 1px dashed #ddd;
    font-size: 0.95rem;
    line-height: 1.4;
}

.widget ul li:last-child {
    border-bottom: none;
}

/* === Widget lábléc (Tovább gomb helye) === */
.widget-footer {
    margin-top: 1rem;
    text-align: right;
}


/* === Széf egyes értékek === */
.szef-item {
    background: #f9f9f9;
    padding: 0.75rem 1.2rem;
    border-radius: 6px;
    flex: 1 1 160px;
    text-align: center;
    font-size: 0.82rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.szef-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
}


/* === Széf – Címletek fejléc + tooltip === */
.szef-darabok-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .5rem 0 0.75rem;
}

.info-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    line-height: 1;
    border-radius: 50%;
    font-size: .9rem;
    border: 1px solid var(--gray, #ccc);
    cursor: help;
    user-select: none;
    position: relative;
}

/* Tooltip buborék (a data-tooltip tartalmából) */
.info-tip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    top: calc(100% + .5rem);
    transform: translateX(-50%);
    min-width: 220px;
    max-width: 360px;
    padding: .6rem .75rem;
    background: #111;
    color: #fff;
    border-radius: .4rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
    font-size: .85rem;
    line-height: 1.35;
    white-space: pre-line;
    /* sortörések megőrzése a PHP-ból */
    z-index: 1000;

    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

/* Kis háromszög a buborékhoz */
.info-tip::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% + .2rem);
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #111;

    opacity: 0;
    transition: opacity .18s ease;
}

/* Megjelenítés hover/focus esetén */
.info-tip:hover::after,
.info-tip:focus::after,
.info-tip:hover::before,
.info-tip:focus::before {
    opacity: 1;
}

/* === Címletek lista === */
.szef-darabok-center {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: .6rem .8rem;
}

@media (max-width: 900px) {
    .szef-darabok-center {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }
}

@media (max-width: 640px) {
    .szef-darabok-center {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

.cimlet-item {
    padding: .45rem .6rem;
    border: 1px solid var(--gray, #ddd);
    border-radius: .4rem;
    background: var(--white, #fff);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
    font-size: .95rem;
}

/* 30 db alatti kiemelés */
.cimlet-item.cimlet-low {
    border-color: #d32f2f;
    background: #fff7f7;
    color: #b71c1c;
}

/* apró “low” pont jelzés (diszkrét) */
.cimlet-item.cimlet-low::after {
    content: "•";
    margin-left: .35rem;
    font-weight: 700;
}




/* === Listaformázás === */
.widget ul {
    padding-left: 1.2rem;
    margin: 0 0 1rem 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.widget ul li {
    margin-bottom: 0.4rem;
}

/* === Widget lábléc (gomb elhelyezése) === */
.widget-footer {
    margin-top: 1rem;
    text-align: right;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}






.form-section-szef {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    background: #fff;
}

/* Felső rádiógombok – 1 sorban egymás után */
.form-toggle-row {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 1.2rem;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

/* Rádiógomb csoport – inline elrendezés */
.radio-pill-group {
    display: contents;
}

.radio-pill-group input[type="radio"] {
    display: none;
}

.radio-pill-group label {
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    border: 1px solid var(--gray);
    cursor: pointer;
    background: var(--white);
    transition: background 0.3s, color 0.3s, font-weight 0.3s;
    font-size: 0.75rem;
    text-align: center;
    white-space: nowrap;
}

.radio-pill-group input[type="radio"]:checked+label {
    background: var(--primary);
    color: var(--white);
    font-weight: bold;
}

/* Bank + Széf címletek egymás mellett */
.form-row-inputs {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}

/* Bank mező */
#bank-resz.mezo {
    max-width: 200px;
    flex: 0 0 auto;
}

/* Széf rész */
#szef-resz {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Címletek inputmező sorban */
.cimlet-input-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.6rem 1rem;
    margin-bottom: 1rem;
}

.cimlet-input {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
}

.cimlet-input label {
    margin-bottom: 0.2rem;
    font-weight: 500;
    font-size: 0.7rem;
    white-space: nowrap;
}

.cimlet-input input {
    width: 100%;
    max-width: 80px;
    padding: 0.3rem;
    font-size: 0.75rem;
    text-align: right;
    border: 1px solid var(--gray);
    border-radius: 4px;
    background: var(--white);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Széf címletek megjelenítése középen, vízszintesen */
.szef-darabok-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    padding: 1rem 0;
}

/* Egy címlet-darab blokk stílusa */
.cimlet-item {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    min-width: 110px;
    text-align: center;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Mire + Megjegyzés */
.form-row-dual {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
}

/* Széf összegblokk */
.szef-summary {
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    background: var(--white);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--primary);
}

.szef-grid {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.szef-item {
    flex: 1;
    font-weight: bold;
    text-align: center;
    color: var(--primary);
}



/* === Eszköz megrendelések – költségkeret widgetek =========================== */
.widget-container-megrendelesek {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.widgetkoltseg {
    background: #fff;
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    padding: 1rem 1.2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.widgetkoltseg:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.widgetkoltseg h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 0.8rem 0;
    text-align: center;
}

.widgetkoltseg p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    line-height: 1.35;
    color: #333;
}

.widgetkoltseg p strong {
    font-weight: 700;
    color: var(--black);
}

.widgetkoltseg .btn-auth {
    margin-top: 0.8rem;
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
    align-self: flex-end;
}


/* ===== Havi keret szerkesztés oldal ===== */
main[data-page="keret-szerkesztes"] .keret-wrapper {
    margin-top: 1rem;
    border: 1px solid var(--primary);
    border-radius: 6px;
    overflow: hidden;
}

main[data-page="keret-szerkesztes"] .keret-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

main[data-page="keret-szerkesztes"] .keret-table thead {
    background: var(--primary);
    color: var(--white);
    text-align: left;
}

main[data-page="keret-szerkesztes"] .keret-table th,
main[data-page="keret-szerkesztes"] .keret-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
}

main[data-page="keret-szerkesztes"] .keret-table tr:nth-child(even) {
    background: #fafafa;
}

main[data-page="keret-szerkesztes"] .keret-input {
    width: 120px;
    text-align: right;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
}

main[data-page="keret-szerkesztes"] .keret-input:focus {
    outline: 2px solid var(--primary);
}



/* Terület statisztika – izolált osztályok */
main[data-page="terulet-stats"] .terulet-stats-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

main[data-page="terulet-stats"] .terulet-stats-chartwrap {
    position: relative;
    min-height: 320px;
}

main[data-page="terulet-stats"] .terulet-stats-canvas {
    width: 100%;
    height: 320px;
}

main[data-page="terulet-stats"] .terulet-stats-summary {
    margin: 0.5rem 0 1rem 0;
    display: flex;
    gap: 2rem;
}

main[data-page="terulet-stats"] .terulet-stats-legend {
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

main[data-page="terulet-stats"] .legend-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

main[data-page="terulet-stats"] .legend-up {
    background: rgba(0, 160, 80, 0.6);
}

main[data-page="terulet-stats"] .legend-down {
    background: rgba(210, 60, 60, 0.6);
}

main[data-page="terulet-stats"] .legend-same {
    background: rgba(128, 128, 128, 0.6);
}


/* === Eszköz megrendelések – táblázat sticky header + sticky első oszlop === */
.table-auth-wrapper-eszkoz-megrendeles {
    max-width: 100%;
    max-height: 70vh;
    /* görgethető magasság */
    overflow: auto;
    border: 1px solid var(--primary);
    border-radius: 6px;
}

/* fejléc ragadjon a tetejére */
.table-auth-wrapper-eszkoz-megrendeles thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #fff;
    /* hogy takarja az alatta levőt */
}

/* első oszlop ragadjon bal oldalra */
.table-auth-wrapper-eszkoz-megrendeles th:first-child,
.table-auth-wrapper-eszkoz-megrendeles td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    /* háttér fixálás */
    border-right: 1px solid #eee;
    min-width: 180px;
    /* hogy olvasható maradjon a hosszabb eszköznév */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
}

/* ha egyszerre sticky header + sticky oszlop (bal felső sarok) */
.table-auth-wrapper-eszkoz-megrendeles thead th:first-child {
    z-index: 4;
}

/* ============================================================
   kintlevosegek.php
   ============================================================ */

/* ====== OLDALFEJ – 3 KPI kártya, ragadós sáv (nincs arany háttér) ====== */
.ar-header {
    position: sticky;
    top: calc(var(--header-offset, 16px) + 8px);
    z-index: 5;

    padding: .6rem .8rem;
    margin: .6rem 0 1rem;
}

.ar-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: .8rem;
}

@media (max-width: 1024px) {
    .ar-kpis {
        grid-template-columns: 1fr;
    }
}

.ar-kpi {
    display: grid;
    place-items: center;
    text-align: center;
    background: var(--ar-surface);
    /* tiszta fehér */
    border: 1px solid var(--ar-border);
    border-top: 3px solid var(--primary);
    /* accent only */
    border-radius: var(--ar-radius);
    box-shadow: var(--ar-shadow-sm);
    padding: 1rem 1.1rem;
}

.ar-kpi__title {
    margin: 0 0 .2rem;
    font-size: .95rem;
    color: #2b2b2b;
    letter-spacing: .15px;
}

.ar-kpi__value {
    margin: 0;
    color: var(--primary);
    font-weight: 800;
    font-size: clamp(1.45rem, 2vw, 2.1rem);
    line-height: 1.1;
    font-variant-numeric: tabular-nums lining-nums;
}

/* ====== AGING bontás – semleges kártyák ====== */
.ar-aging {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0 0.75rem;
}

.ar-aging__card {
    position: relative;
    overflow: hidden;
    background: #fff;
    /* fehér háttér */
    border: 1px solid var(--ar-border);
    border-radius: var(--ar-radius);
    box-shadow: var(--ar-shadow-sm);
    padding: .9rem 1rem;
    transition: box-shadow .18s ease, transform .06s ease-in;
}

.ar-aging__card:hover {
    box-shadow: var(--ar-shadow-md);
    transform: translateY(-1px);
}

.ar-aging__title {
    margin: 0;
    font-size: .93rem;
    color: #2b2b2b;
}

.ar-aging__value {
    margin: .25rem 0 0;
    font-weight: 700;
    font-size: 1.15rem;
    color: #111;
    white-space: nowrap;
    font-variant-numeric: tabular-nums lining-nums;
}

/* diszkrét accent csík — marad amber/red, de csak csík, nem háttér */
.ar-aging__card--warn::before,
.ar-aging__card--hot::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 12px 0 0 12px;
}

.ar-aging__card--warn::before {
    background: #c27d0e;
}

.ar-aging__card--hot::before {
    background: #b71c1c;
}

/* Jelmagyarázat */
.ar-legend {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
    margin: .5rem 0 1rem;
    font-size: .85rem;
    color: #666;
}

.ar-legend__dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    display: inline-block;
    margin-right: .35rem;
}

.ar-legend__dot--warn {
    background: #c27d0e;
}

.ar-legend__dot--hot {
    background: #b71c1c;
}

/* ====== WIDGET zóna – semleges dobozok ====== */
.ar-widgets {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
    align-items: start;
    margin: .4rem 0 1.2rem;
}

@media (max-width: 1100px) {
    .ar-widgets {
        grid-template-columns: 1fr;
    }
}

.ar-widget {
    background: #fff;
    border: 1px solid var(--ar-border);
    border-radius: var(--ar-radius);
    box-shadow: var(--ar-shadow-sm);
    padding: 1.1rem 1.2rem;
}

.ar-widget__title {
    margin: 0 0 .6rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    text-align: left;
    letter-spacing: .2px;
}

/* ====== Táblázatok – semleges zebra/hover, nem arany ====== */
.ar-table__wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--ar-border);
    border-radius: 8px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, .04);
}

.ar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    font-size: .95rem;
    color: var(--ar-text);
}

.ar-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    text-align: left;
    white-space: nowrap;
    border-bottom: 2px solid var(--primary);
    /* accent only */
    padding: .7rem .6rem;
    font-weight: 700;
    letter-spacing: .2px;
}

.ar-table tbody td {
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    padding: .6rem .6rem;
    vertical-align: middle;
}

.ar-table tbody tr:nth-child(even) {
    background: var(--ar-table-zebra);
}

/* semleges zebra */
.ar-table tbody tr:hover {
    background: var(--ar-table-hover);
}

/* semleges hover */
.ar-table tfoot td {
    background: var(--ar-table-foot);
    /* semleges foot */
    border-top: 2px solid var(--primary);
    font-weight: 700;
    padding: .7rem .6rem;
}

.ar-num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums lining-nums;
}

.ar-strong {
    font-weight: 800;
    color: #111;
}

/* ====== Részletező blokk ====== */
.ar-detail {
    background: #fff;
    border: 1px solid var(--ar-border);
    border-radius: var(--ar-radius);
    box-shadow: var(--ar-shadow-sm);
    padding: 1.1rem 1.2rem;
}

/* ====== Státusz jelvények ====== */
.ar-badge {
    display: inline-block;
    padding: .28rem .6rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    border: 1px solid #ddd;
    background: #f4f6f8;
    color: #333;
    /* semleges */
}

.ar-badge--pending {
    color: #9a6700;
    border-color: #ffe69c;
    background: #fff9e6;
}

/* világos semleges-sárga */
.ar-badge--progress {
    color: #0b5ed7;
    border-color: #cfe2ff;
    background: #e7f1ff;
}

.ar-badge--done {
    color: #0a7b34;
    border-color: #bfe6ca;
    background: #dff6e3;
}

/* ====== Gomb átmenetek (változatlan) ====== */
.ar .btn-auth {
    transition: box-shadow .15s ease, transform .05s ease-in, background-color .15s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ar * {
        transition: none !important;
    }
}





/* booking.css
*/



.bk-container {
    max-width: 1200px;
    margin: 0 auto;
}

.bk-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 1rem 0 1.25rem;
    text-align: center;
    letter-spacing: .2px;
    color: var(--black);
}

/* Flash üzenetek */
.bk-alert {
    margin: .6rem 0 1rem;
    padding: .65rem .8rem;
    border-radius: 8px;
    border-left: 4px solid transparent;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    font-weight: 600;
}

.bk-alert--ok {
    border-left-color: #28a745;
    background: #f2fbf5;
    color: #0b6b2a;
}

.bk-alert--err {
    border-left-color: #dc3545;
    background: #fff2f3;
    color: #a11623;
}

.bk-alert--info {
    border-left-color: #0d6efd;
    background: #eef5ff;
    color: #0b3d91;
}

/* Szűrősor */
.bk-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .8rem 1rem;
    align-items: end;
    margin: .5rem 0 1.2rem;
}

.bk-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.bk-field label {
    font-size: .9rem;
    font-weight: 600;
    color: #333;
}

.bk-field input[type="number"],
.bk-field input[type="text"],
.bk-field select {
    padding: .5rem .65rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: .95rem;
    background: #fff;
}

.bk-readonly {
    padding: .5rem .65rem;
    border: 1px dashed #ddd;
    border-radius: 8px;
    background: #fafafa;
    font-size: .95rem;
}

.bk-actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

/* Eszközsor / toolbar */
.bk-toolbar {
    display: flex;
    gap: .6rem;
    align-items: center;
    flex-wrap: wrap;
    margin: .4rem 0 1rem;
}

/* Widget kártyák */
.bk-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
    padding: 1rem 1.1rem;
    margin: 1rem 0 1.2rem;
}

.bk-widget__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-bottom: .6rem;
}

.bk-widget__head h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: .2px;
    color: var(--black);
}

.bk-help {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #ccc;
    font-size: .85rem;
    user-select: none;
    background: #fff;
    cursor: help;
}

/* KPI-k */
.bk-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .8rem;
    margin: .2rem 0 1rem;
}

.bk-kpi {
    display: grid;
    place-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid #eee;
    border-top: 3px solid var(--primary);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
    padding: .9rem 1rem;
}

.bk-kpi__title {
    margin: 0 0 .2rem;
    font-size: .92rem;
    color: #2b2b2b;
}

.bk-kpi__value {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 800;
    color: #111;
    font-variant-numeric: tabular-nums lining-nums;
}

/* Két kis kártya egymás mellett (aktuális értékek) */
.bk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .8rem;
}

.bk-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
    padding: .8rem 1rem;
}

.bk-card__title {
    font-size: .92rem;
    margin: 0 0 .25rem;
    color: #444;
}

.bk-card__value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111;
    font-variant-numeric: tabular-nums lining-nums;
}

/* Diagram wrap (csak a vászon konténer) */
.bk-chartwrap {
    position: relative;
    min-height: 260px;
}

/* Táblázat */
.bk-tablewrap {
    width: 100%;
    overflow: auto;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, .04);
}

.bk-tablewrap--sticky thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
}

.bk-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    font-size: .95rem;
}

.bk-table thead th {
    text-align: left;
    padding: .65rem .6rem;
    border-bottom: 2px solid var(--primary);
    font-weight: 800;
    letter-spacing: .2px;
    white-space: nowrap;
}

.bk-table tbody td {
    padding: .55rem .6rem;
    border-bottom: 1px solid #f1f1f1;
    vertical-align: middle;
}

.bk-table tbody tr:nth-child(even) {
    background: #fffef9;
}

.bk-table tbody tr:hover {
    background: #fffdf2;
}

.bk-table tfoot td {
    padding: .7rem .6rem;
    border-top: 2px solid var(--primary);
    font-weight: 800;
    background: #fffef4;
}

.bk-center {
    text-align: center;
}

.bk-num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums lining-nums;
}

.bk-sticky-col {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #fff;
    box-shadow: 2px 0 3px rgba(0, 0, 0, .03);
}

/* Inline űrlapok a gombsorban */
.bk-inline {
    display: inline-flex;
}

/* Napló – diff megjelenítés */
.bk-diff {
    display: grid;
    gap: .2rem;
}

.bk-diff__row {
    font-size: .92rem;
    line-height: 1.2;
}

.bk-diff__label {
    font-weight: 700;
    margin-right: .35rem;
}

.bk-diff__old {
    color: #a11623;
}

.bk-diff__new {
    color: #0b6b2a;
}



/* superadminhoz tartozó rész */

.acl-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.acl-toolbar__left,
.acl-toolbar__right {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.table-auth thead th.col-center,
.table-auth tbody td.col-center {
    text-align: center;
}

.col-drag {
    width: 32px;
}

.drag-handle {
    cursor: grab;
    background: var(--drag-bg, transparent);
}

.acl-row.dragging {
    opacity: .6;
}

/* Egyszerű kapcsoló (switch) — csak CSS, JS nélkül */
.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 999px;
    transition: .2s;
}

.switch .slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: #fff;
    transition: .2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.switch input:checked+.slider {
    background: #4caf50;
}

.switch input:checked+.slider:before {
    transform: translateX(20px);
}

/* kisebb input a sorrendhez */
.input.input--sm {
    max-width: 90px;
}

/* cella, ahol a path van (drag target segít) */
.cell-path .path {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .92em;
    color: #333;
}

/* kereső, szűrő egységes méret */
#searchBox {
    min-width: 240px;
}

#filterGroup {
    min-width: 200px;
}


/* === Auth (login.php) – fehér alap, a meglévő sémádhoz igazítva =========== */
.page.page--auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 3rem 1.25rem;
    background: #fff;
    /* fehér alap, mint kérted */
    color: var(--black);
}

/* Kártya + márka */
.page--auth .auth-card {
    width: min(480px, 92vw);
    border-radius: calc(var(--border-radius) * 3);
    border: 1px solid var(--ar-border, rgba(0, 0, 0, .08));
    background: #fff;
    box-shadow: var(--box-shadow);
    padding: 1.25rem 1.25rem 1.1rem;
}

.page--auth .auth-brand {
    display: block;
    text-align: center;
    margin: .1rem 0 .75rem;
}

.page--auth .auth-logo {
    width: 160px;
    max-width: 60vw;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .08));
    user-select: none;
    transition: transform .15s ease;
}

.page--auth .auth-brand:hover .auth-logo {
    transform: translateY(-1px);
}

/* Cím */
.page--auth .auth-title {
    margin: 0 0 .75rem;
    text-align: center;
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    font-weight: 800;
    letter-spacing: .3px;
    color: var(--black);
}

.page--auth .auth-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: .6rem auto 0;
    border-radius: 999px;
    background: var(--primary);
}

/* Üzenetek */
.page--auth .alert {
    border-radius: calc(var(--border-radius) * 2.5);
    padding: .75rem .9rem;
    font-weight: 600;
    margin: .75rem 0 0;
    border-left: 4px solid transparent;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.page--auth .alert--error {
    border-left-color: #dc3545;
    background: #fff3f4;
    color: #7d1620;
}

.page--auth .alert--info {
    border-left-color: #0d6efd;
    background: #eef5ff;
    color: #0b3d91;
}

/* Form */
.page--auth .form-auth {
    margin-top: .9rem;
    display: grid;
    gap: .9rem;
}

.page--auth .form-group {
    display: grid;
    gap: .4rem;
}

.page--auth label {
    font-size: .95rem;
    font-weight: 700;
    color: #222;
}

.page--auth .input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e4e4e4;
    border-radius: calc(var(--border-radius) * 2.5);
    padding: .65rem .8rem;
    font-size: .98rem;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, transform .02s ease-in;
}

.page--auth .input:hover {
    border-color: #dcdcdc;
}

.page--auth .input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .28);
    background: #fff;
}

.page--auth .input::placeholder {
    color: #9aa1a9;
}

/* Gomb – a globális .btn-auth alapra építve */
.page--auth .btn-auth.btn--primary {
    width: 100%;
    border-radius: calc(var(--border-radius) * 3);
    padding: .7rem 1rem;
    font-weight: 800;
    letter-spacing: .2px;
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
}

.page--auth .btn-auth.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .16);
}

/* Alsó link */
.page--auth .muted {
    margin: 1rem 0 0;
    text-align: center;
    color: var(--ar-text-muted, #6b7280);
    font-size: .96rem;
}

.page--auth .muted a {
    color: var(--black);
    text-decoration: none;
    border-bottom: 1px solid rgba(17, 17, 17, .25);
}

.page--auth .muted a:hover {
    color: var(--primary);
    border-bottom-color: currentColor;
}

/* Reszponzív */
@media (max-width: 480px) {
    .page--auth .auth-card {
        padding: 1rem;
        border-radius: calc(var(--border-radius) * 3);
    }

    .page--auth .btn-auth.btn--primary {
        padding: .65rem .9rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .page--auth * {
        animation: none !important;
        transition: none !important;
    }
}