/* ============================================================
   Tagsági rendszer – egyedi stílusok (Bootstrap 5 kiegészítés)
   ============================================================ */

:root {
    --app-dark: #1e2430;
    --app-dark-2: #262e3e;
    --app-accent: #3b82f6;
    --app-sidebar-w: 260px;
}

body {
    background: #f4f6fa;
}

/* ---------------- Elrendezés ---------------- */

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

.app-sidebar {
    width: var(--app-sidebar-w);
    flex: 0 0 var(--app-sidebar-w);
    background: var(--app-dark);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.app-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1.5rem;
}

.app-topbar {
    background: var(--app-dark);
}

.app-page-heading {
    background: var(--app-dark-2);
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    color: #fff;
}

/* ---------------- Oldalsó menü ---------------- */

.sidebar-brand {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-brand-icon {
    font-size: 1.6rem;
    color: var(--app-accent);
}

.app-nav {
    flex: 1 1 auto;
    padding: 1rem 0.75rem;
}

.app-nav-link {
    color: #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.92rem;
    transition: all 0.15s ease;
}

.app-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.app-nav-link.active {
    color: #fff;
    background: var(--app-accent);
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-offcanvas {
    background: var(--app-dark);
    color: #fff;
}

.app-offcanvas .offcanvas-header .btn-close {
    filter: invert(1);
}

/* ---------------- Badge ---------------- */

.app-badge {
    background: var(--app-accent);
    color: #fff;
}

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

.app-card {
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.app-card .card-header {
    background: #fff;
    border-bottom: 1px solid #eef2f7;
    font-weight: 600;
    padding: 0.85rem 1.25rem;
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

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

.stat-card {
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.stat-card .stat-icon {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    font-size: 3rem;
    opacity: 0.25;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.stat-card .stat-value {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.stat-green  { background: linear-gradient(135deg, #22c55e, #15803d); }
.stat-orange { background: linear-gradient(135deg, #f59e0b, #b45309); }
.stat-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.stat-cyan   { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.stat-red    { background: linear-gradient(135deg, #ef4444, #b91c1c); }

.stat-card .stat-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.stat-card .stat-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* ---------------- Táblázatok ---------------- */

.table thead th {
    border-bottom-width: 1px;
    border-top: 0;
    background: #f8fafc;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    white-space: nowrap;
}

.table td, .table th {
    vertical-align: middle;
}

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

/* ---------------- Jelenlét ---------------- */

.att-radio {
    display: none;
}

.att-btn {
    min-width: 72px;
    text-align: center;
    border: 1px solid #dee2e6;
    padding: 0.35rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    user-select: none;
    color: #475569;
    background: #fff;
    transition: all 0.12s ease;
    font-weight: 600;
}

.att-btn:hover {
    border-color: #94a3b8;
}

.att-radio.yes-pick:checked + .att-btn {
    background: #dcfce7;
    border-color: #16a34a;
    color: #15803d;
}

.att-radio.no-pick:checked + .att-btn {
    background: #fee2e2;
    border-color: #dc2626;
    color: #b91c1c;
}

.att-cell {
    display: inline-flex;
    gap: 0.4rem;
}

/* ---------------- Bizonylat ---------------- */

.receipt-sheet {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border: 1px dashed #cbd5e1;
    padding: 2rem;
}

/* ---------------- Nyomtatás ---------------- */

@media print {
    .app-sidebar, .app-topbar, .no-print, .btn, .app-page-heading {
        display: none !important;
    }
    .app-main {
        padding: 0 !important;
    }
    body {
        background: #fff;
    }
    .print-area {
        box-shadow: none !important;
    }
}

/* ---------------- Kis képernyő ---------------- */

@media (max-width: 991.98px) {
    .app-main {
        padding: 1rem;
    }
    .stat-card .stat-value {
        font-size: 1.35rem;
    }
}

@media (min-width: 992px) {
    .app-topbar {
        display: none !important;
    }
}

/* ---------------- Egyebek ---------------- */

.small-muted {
    color: #64748b;
    font-size: 0.85rem;
}

.nowrap {
    white-space: nowrap;
}

.cursor-pointer {
    cursor: pointer;
}

tbody tr.clickable {
    cursor: pointer;
}

legend.checkbox-legend {
    font-size: 1rem;
    font-weight: 600;
}