@import "components.css";
@import "nexus-shell.css";

/* ── Alapvető elrendezés és görgetősáv stabilitás oldalváltáskor ───────────── */
html {
    scrollbar-gutter: stable;
}

/* ── Alpine.js x-show / display fix Bootstrap d-flex ellen ───────────────────── */
[x-cloak],
[style*="display:none"],
[style*="display: none"] {
    display: none !important;
}

/* ── Web Components CLS / FOUC megelőzés oldalbetöltéskor ───────────────────── */
nexus-header:not(:defined),
nexus-dashboard-header:not(:defined) {
    visibility: hidden;
    min-height: 92px;
    display: block;
}

nexus-select:not(:defined) {
    visibility: hidden;
    min-height: 38px;
    display: block;
}

/* ── Modal ───────────────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--nexus-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-box {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 1rem;
}

.modal-box-sm { max-width: 380px; }

/* ── Kártyák ─────────────────────────────────────────────────────────────────── */
.item-card {
    border: 1px solid #dee2e6;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}

.item-card:hover {
    box-shadow: 0 .4rem .8rem rgba(0, 0, 0, .1) !important;
    transform: translateY(-2px);
    border-color: rgba(13, 110, 253, .35);
}

/* ── Legördülő (Alpine.js, Bootstrap JS nélkül) ──────────────────────────────── */
.dropdown-wrapper {
    position: relative;
}

.dropdown-wrapper .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
    top: calc(100% + 4px);
    min-width: 160px;
    z-index: 100;
}

/* ── Alpine x-cloak ──────────────────────────────────────────────────────────── */
[x-cloak] { display: none !important; }

/* ── Bejelentkezési oldal ─────────────────────────────────────────────────────── */
.login-card { width: 360px; max-width: 95vw; }

/* ── Értesítések ────────────────────────────────────────────────────────────── */
.notification-navbar {
    position: relative;
}

.app-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-bell {
    position: relative;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--nexus-card-border);
    border-radius: 50%;
    color: var(--nexus-text-main);
    background: var(--nexus-card-bg);
    transition: background .15s ease, border-color .15s ease, transform .15s ease, color .15s ease;
    cursor: pointer;
}

.notification-bell:hover,
.notification-bell:focus {
    color: var(--nexus-accent-blue);
    border-color: var(--nexus-accent-blue);
    background: var(--nexus-accent-blue-subtle);
    transform: scale(1.05);
}

.notification-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--nexus-card-bg);
    border-radius: 10px;
    background: var(--nexus-red-solid);
    color: var(--nexus-on-solid);
    font-size: .65rem;
    font-weight: 700;
    line-height: 1;
}

.notification-badge.is-visible { display: inline-flex; }

.notification-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1080;
    width: min(390px, calc(100vw - 24px));
    max-height: min(520px, calc(100vh - 80px));
    display: none;
    overflow: hidden;
    border: 1px solid var(--nexus-card-border);
    border-radius: 0.75rem;
    background: var(--nexus-card-bg);
    color: var(--nexus-text-main);
    box-shadow: var(--nexus-shadow-md);
}

.notification-panel.is-open { display: flex; flex-direction: column; }
.notification-panel-header,
.notification-panel-footer {
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    background: var(--nexus-card-bg);
    border-bottom: 1px solid var(--nexus-card-border);
}
.notification-panel-footer {
    border-top: 1px solid var(--nexus-card-border);
    border-bottom: 0;
}
.notification-panel-list { overflow-y: auto; }
.notification-panel-empty { padding: 2rem 1rem; text-align: center; color: var(--nexus-text-muted); }

.notification-item {
    display: flex;
    gap: .75rem;
    padding: .85rem 1rem;
    color: var(--nexus-text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--nexus-card-border);
    background: var(--nexus-card-bg);
    transition: background .15s ease;
}
.notification-item:hover { background: var(--nexus-accent-blue-subtle); color: var(--nexus-text-main); }
.notification-item.is-unread { background: var(--nexus-accent-blue-subtle); }
.notification-item-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--nexus-accent-blue-subtle);
    color: var(--nexus-accent-blue);
}
.notification-item-body { min-width: 0; flex: 1; }
.notification-item-title { font-size: .9rem; font-weight: 600; color: var(--nexus-text-main); }
.notification-item-text {
    margin-top: .15rem;
    overflow: hidden;
    color: var(--nexus-text-muted);
    font-size: .8rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.notification-item-time { margin-top: .25rem; color: var(--nexus-text-muted); font-size: .7rem; }
.notification-page-list .notification-item {
    margin-bottom: .65rem;
    border: 1px solid var(--nexus-card-border);
    border-radius: .55rem;
}

@media (max-width: 575.98px) {
    #appNavbar {
        padding-left: .5rem !important;
        padding-right: .5rem !important;
        flex-wrap: nowrap;
    }

    #appNavbar .navbar-brand {
        margin-right: 0;
        font-size: 1rem;
    }

    #appNavbarBreadcrumb,
    #appNavbarExtra {
        display: none;
    }

    .app-navbar-actions {
        gap: .35rem !important;
    }

    .app-logout-button {
        width: 32px;
        height: 32px;
        padding: 0;
    }

    .notification-bell {
        width: 32px;
        height: 32px;
    }

    .notification-panel {
        position: fixed;
        top: 52px;
        right: 8px;
        left: 8px;
        width: auto;
        max-height: calc(100vh - 60px);
    }
}

[data-bs-theme="dark"] .notification-panel,
[data-bs-theme="dark"] .notification-item {
    background: var(--nexus-card-bg);
    color: var(--nexus-text-main);
    border-color: var(--nexus-card-border);
}
[data-bs-theme="dark"] .notification-panel-header,
[data-bs-theme="dark"] .notification-panel-footer,
[data-bs-theme="dark"] .notification-item {
    border-color: var(--nexus-card-border);
}
[data-bs-theme="dark"] .notification-item:hover { background: var(--nexus-card-bg-elevated); }
[data-bs-theme="dark"] .notification-item.is-unread { background: var(--nexus-accent-blue-subtle); }
[data-bs-theme="dark"] .notification-item-text,
[data-bs-theme="dark"] .notification-item-time,
[data-bs-theme="dark"] .notification-panel-empty { color: var(--nexus-text-muted); }
[data-bs-theme="dark"] .notification-item-icon { background: var(--nexus-card-bg-elevated); color: var(--nexus-accent-blue); }
[data-bs-theme="dark"] .item-card {
    border-color: var(--nexus-card-border);
    background: var(--nexus-card-bg);
}

/* ── Dashboard Grid & Nexus Modern Card System ───────────────────────────── */
body {
    background-color: var(--nexus-bg) !important;
    color: var(--nexus-text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
}

body.dashboard-body {
    background-color: var(--nexus-bg) !important;
}

/* ── Egységes tartalomszélesség ───────────────────────────────────────────────
   Az /app/ alatti MINDEN oldal tartalmi burkolója ezt használja:
   <main class="container-fluid app-page px-3 px-md-4 py-4">
   A szélesség egyetlen helyről, a --app-content-max-width változóból jön; oldalanként
   nem szabad saját max-width-et adni a fő burkolónak. */
:root {
    --app-content-max-width: 1560px;
}

.app-page {
    width: 100%;
    max-width: var(--app-content-max-width);
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 991.98px) {
    .app-page {
        max-width: 100%;
    }

    .container-fluid.app-page {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* ── Nexus Fejléc Ikon és Statisztikai Dobozok (Globális) ─────────────────── */
.summary-stat-icon,
.nexus-header-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.summary-stat-box {
    background: var(--nexus-card-bg);
    border: 1px solid var(--nexus-card-border);
    border-radius: 1rem;
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: var(--nexus-card-shadow);
    flex: 1;
    min-width: 140px;
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

.summary-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--nexus-shadow-md);
    border-color: var(--nexus-accent-blue);
}

/* GridStack 2D Modular Grid Styling */
.grid-stack {
    margin: -8px;
}

@media (max-width: 767.98px) {
    .grid-stack {
        margin: 0;
    }
    .grid-stack > .grid-stack-item {
        position: relative !important;
        width: 100% !important;
        left: 0 !important;
        top: auto !important;
        margin-bottom: 1rem !important;
        height: auto !important;
    }
    .grid-stack > .grid-stack-item > .grid-stack-item-content {
        position: relative !important;
        inset: 0 !important;
        height: auto !important;
    }
}

.grid-stack-item {
    min-width: 0;
}

/* GridStack handles: disable all sides except bottom-right corner */
.grid-stack-item .ui-resizable-e,
.grid-stack-item .ui-resizable-w,
.grid-stack-item .ui-resizable-s,
.grid-stack-item .ui-resizable-n,
.grid-stack-item .ui-resizable-sw,
.grid-stack-item .ui-resizable-nw,
.grid-stack-item .ui-resizable-ne {
    display: none !important;
}

.grid-stack-item .ui-resizable-se {
    display: flex !important;
    align-items: center;
    justify-content: center;
    right: 28px !important;
    bottom: 28px !important;
    width: 20px !important;
    height: 20px !important;
    cursor: se-resize !important;
    opacity: 0.4;
    background: transparent !important;
    border: none !important;
    transform: rotate(90deg);
    transition: opacity .15s ease, transform .15s ease;
    z-index: 20;
}

@media (max-width: 767.98px) {
    .grid-stack-item .ui-resizable-se {
        display: none !important;
    }
}

.grid-stack-item:hover .ui-resizable-se {
    opacity: 0.95;
    transform: rotate(90deg) scale(1.15);
}

.grid-stack-item .ui-resizable-se::before {
    content: '\F149';
    font-family: 'bootstrap-icons' !important;
    font-size: 13px;
    font-style: normal;
    color: var(--nexus-accent-blue);
    line-height: 1;
    display: inline-block;
}

.grid-stack-placeholder > .placeholder-content {
    border: 2px dashed var(--nexus-accent-blue) !important;
    background: var(--nexus-accent-blue-subtle) !important;
    border-radius: 1.25rem !important;
}

/* Grid Column Spans */
.col-span-1  { grid-column: span 1; }
.col-span-2  { grid-column: span 2; }
.col-span-3  { grid-column: span 3; }
.col-span-4  { grid-column: span 4; }
.col-span-5  { grid-column: span 5; }
.col-span-6  { grid-column: span 6; }
.col-span-7  { grid-column: span 7; }
.col-span-8  { grid-column: span 8; }
.col-span-9  { grid-column: span 9; }
.col-span-10 { grid-column: span 10; }
.col-span-11 { grid-column: span 11; }
.col-span-12 { grid-column: span 12; }

@media (max-width: 1199.98px) and (min-width: 992px) {
    .col-span-3 { grid-column: span 6; }
}

@media (max-width: 991.98px) {
    .col-span-1, .col-span-2, .col-span-3, .col-span-4,
    .col-span-5, .col-span-6, .col-span-7, .col-span-8,
    .col-span-9, .col-span-10, .col-span-11, .col-span-12 {
        grid-column: span 12 !important;
    }
}

.card-nexus {
    border-radius: 1.25rem;
    border: 1px solid var(--nexus-card-border);
    background: var(--nexus-card-bg);
    box-shadow: var(--nexus-card-shadow);
    display: flex;
    flex-direction: column;
    padding: 1.35rem 1.45rem;
    position: relative;
    transition: box-shadow .2s ease, border-color .2s ease;
}

@media (max-width: 767.98px) {
    .card-nexus {
        padding: 1.15rem 1rem;
        border-radius: 1.1rem;
    }
}

.card-nexus.is-pinned,
.grid-stack-item.is-pinned .card-nexus {
    border: 2px solid var(--nexus-accent-blue) !important;
}

.card-nexus-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.card-nexus-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--nexus-text-main);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

.card-nexus-title i {
    font-size: 1.15rem;
    color: var(--nexus-accent-blue);
}

.card-nexus-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

@media (max-width: 767.98px) {
    .card-nexus-body {
        max-height: none !important;
        overflow-y: visible !important;
        padding-right: 0 !important;
    }
}

/* Finom és modern Nexus görgetősáv */
.card-nexus-body::-webkit-scrollbar {
    width: 6px;
}

.card-nexus-body::-webkit-scrollbar-track {
    background: transparent;
}

.card-nexus-body::-webkit-scrollbar-thumb {
    background: var(--nexus-card-border);
    border-radius: 9999px;
}

.card-nexus-body::-webkit-scrollbar-thumb:hover {
    background: var(--nexus-accent-blue);
}

.card-nexus-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--nexus-card-border);
}

/* ── Nexus App Layout & Sidebar ─────────────────────────────────────────── */
body,
.nexus-app-layout {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    background: var(--nexus-bg);
}

@media (max-width: 991.98px) {
    body,
    .nexus-app-layout {
        flex-direction: column !important;
        width: 100% !important;
        overflow-x: hidden;
    }
}

.mini-grid-item .ui-resizable-se::before {
    content: '\F149';
    font-family: 'bootstrap-icons' !important;
    font-size: 11px;
    font-style: normal;
    color: var(--nexus-accent-blue);
    line-height: 1;
    display: inline-block;
}

.mini-ctrl-btn {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid var(--nexus-card-border);
    background: var(--nexus-card-bg);
    color: var(--nexus-text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all .15s;
    padding: 0;
}

.mini-ctrl-btn:hover:not(:disabled) {
    background: var(--nexus-accent-blue-subtle);
    border-color: var(--nexus-accent-blue);
    color: var(--nexus-accent-blue);
}

.mini-ctrl-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.mini-badge {
    font-size: 0.65rem;
    font-family: monospace;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 5px;
    background: var(--nexus-accent-blue-subtle);
    color: var(--nexus-accent-blue);
}

/* Nexus Pill Badges */
.nexus-badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.nexus-badge-blue  { background: var(--nexus-blue-solid); color: var(--nexus-on-solid); }
.nexus-badge-green { background: var(--nexus-green-solid); color: var(--nexus-on-solid); }
.nexus-badge-red   { background: var(--nexus-red-solid); color: var(--nexus-on-solid); }

.nexus-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.nexus-status-active {
    background: var(--nexus-green-solid);
    color: var(--nexus-on-solid);
}

/* Nexus Row Items & Lists */
.min-w-0 {
    min-width: 0 !important;
}

.nexus-item-row {
    background: var(--nexus-accent-blue-subtle);
    border: 1px solid var(--nexus-accent-blue-border);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--nexus-text-main);
    text-decoration: none;
    min-width: 0;
    overflow: hidden;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.nexus-item-row:hover {
    background: var(--nexus-card-border);
    color: var(--nexus-text-main);
    transform: translateY(-1px);
}

/* ── Belső rácsok a dashboard kártyákhoz ──────────────────────────────── */
.nexus-user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 0.65rem;
    width: 100%;
}

@media (max-width: 575.98px) {
    .nexus-user-grid {
        grid-template-columns: 1fr !important;
    }
}

.nexus-ticket-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    width: 100%;
}

@media (max-width: 767.98px) {
    .nexus-ticket-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Nexus Mini Ticket Cards */
.nexus-ticket-card {
    background: var(--nexus-accent-blue-subtle);
    border: 1px solid var(--nexus-accent-blue-border);
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: var(--nexus-text-main);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
    height: 100%;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.nexus-ticket-card:hover {
    border-color: var(--nexus-accent-blue);
    transform: translateY(-2px);
    color: var(--nexus-text-main);
}

/* Hibajegy Prioritás bal oldali szegélyek */
.nexus-ticket-card.priority-border-critical {
    border-left: 4.5px solid #ef4444 !important;
}
.nexus-ticket-card.priority-border-high {
    border-left: 4.5px solid #f59e0b !important;
}
.nexus-ticket-card.priority-border-normal {
    border-left: 4.5px solid var(--nexus-accent-blue) !important;
}
.nexus-ticket-card.priority-border-low {
    border-left: 4.5px solid #94a3b8 !important;
}

/* ── Nexus Munkaidő Widget Stílusok ─────────────────────────────────────────── */
.nexus-work-hero {
    background: var(--nexus-accent-blue-subtle, rgba(37, 99, 235, 0.06));
    border: 1px solid var(--nexus-accent-blue-border, rgba(37, 99, 235, 0.15));
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
}

.nexus-work-hero-timer {
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--nexus-accent-blue, #2563eb);
    line-height: 1.1;
}

.nexus-work-hero-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--nexus-text-muted, #64748b);
    margin-top: 0.25rem;
}

.nexus-work-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    width: 100%;
}

.nexus-work-btn {
    background: var(--nexus-card-bg);
    border: 1px solid var(--nexus-card-border);
    border-radius: 0.85rem;
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--nexus-text-main);
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.nexus-work-btn i {
    font-size: 1.25rem;
    color: var(--nexus-text-muted);
    transition: color 0.15s ease;
}

.nexus-work-btn:hover:not(:disabled) {
    border-color: var(--nexus-accent-blue);
    background: var(--nexus-accent-blue-subtle);
    color: var(--nexus-accent-blue);
    transform: translateY(-2px);
}

.nexus-work-btn:hover:not(:disabled) i {
    color: var(--nexus-accent-blue);
}

.nexus-work-btn-active {
    background: var(--nexus-blue-solid) !important;
    border-color: var(--nexus-blue-solid) !important;
    color: var(--nexus-on-solid) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.nexus-work-btn-active i {
    color: var(--nexus-on-solid) !important;
}

.nexus-work-btn-danger:hover:not(:disabled) {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.nexus-work-btn-danger:hover:not(:disabled) i {
    color: #ef4444;
}

/* ── Szerverek Állapota Grid ─────────────────────────────────────────────── */
.nexus-server-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem 1.5rem;
    padding: 0.5rem 0;
    width: 100%;
}

.nexus-server-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 76px;
    flex: 0 0 auto;
    cursor: pointer;
    transition: transform 0.18s ease;
}

.nexus-server-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 0.85rem;
    background: var(--nexus-card-bg-elevated, #f8fafc);
    border: 1px solid var(--nexus-card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--nexus-accent-blue);
}

.nexus-server-badge-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.nexus-server-badge-dot.status-offline {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.nexus-server-badge-dot.status-warning {
    background: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.nexus-server-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--nexus-text-muted);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Nexus Shortcut Buttons */
.nexus-shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--nexus-text-main);
    transition: transform .15s ease;
}

.nexus-shortcut-item:hover {
    transform: translateY(-3px);
    color: var(--nexus-accent-blue);
}

.nexus-shortcut-icon {
    width: 68px;
    height: 68px;
    border-radius: 1.15rem;
    background: var(--nexus-accent-blue-subtle);
    border: 1px solid var(--nexus-accent-blue-border);
    color: var(--nexus-accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

@media (max-width: 575.98px) {
    .nexus-shortcut-icon {
        width: 54px;
        height: 54px;
        font-size: 1.45rem;
        border-radius: 0.95rem;
    }
}

.nexus-shortcut-item:hover .nexus-shortcut-icon {
    background: var(--nexus-blue-solid);
    color: var(--nexus-on-solid);
    box-shadow: 0 8px 20px -3px rgba(37, 99, 235, 0.35);
}

.nexus-shortcut-label {
    font-size: 0.825rem;
    font-weight: 600;
    text-align: center;
}

/* Drag & Drop, Pin and Controls */
.card-drag-handle {
    cursor: grab;
    padding: 0.2rem 0.35rem;
    border-radius: 0.35rem;
    color: var(--nexus-text-muted);
    opacity: 0.6;
    transition: opacity .15s, background .15s, color .15s;
    user-select: none;
}

.card-drag-handle:hover {
    opacity: 1;
    color: var(--nexus-accent-blue);
    background: var(--nexus-accent-blue-subtle);
}

.card-drag-handle:active {
    cursor: grabbing;
}

.dashboard-card.is-dragging {
    opacity: 0.35;
    transform: scale(0.98);
}

.dashboard-card.drag-over {
    outline: 2px dashed var(--nexus-accent-blue);
    outline-offset: -2px;
    border-radius: 1.25rem;
}

.dashboard-card.is-pinned .card-nexus,
.card-nexus.is-pinned {
    border-color: var(--nexus-accent-blue) !important;
    box-shadow: 0 0 0 1.5px var(--nexus-accent-blue), var(--nexus-card-shadow) !important;
}

.card-nexus.is-pinned .card-drag-handle,
.grid-stack-item[gs-locked="true"] .card-drag-handle,
.mini-card-item.is-pinned .mini-drag-handle {
    opacity: 0.15 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.widget-ctrl-btn {
    border: none;
    background: transparent;
    padding: 0.25rem 0.4rem;
    color: var(--nexus-text-muted);
    border-radius: 0.35rem;
    font-size: 0.9rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .15s, background .15s;
}

.widget-ctrl-btn:hover {
    color: var(--nexus-text-main);
    background: var(--nexus-accent-blue-subtle);
}

.widget-ctrl-btn.active-pin {
    color: var(--nexus-accent-blue) !important;
    background: var(--nexus-accent-blue-subtle);
}

/* Közös Markdown szerkesztő és előnézet – lásd: /app/js/markdown.js */
.kedd-markdown-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .5rem;
    border: 1px solid var(--bs-border-color);
    border-bottom: 0;
    border-radius: .375rem .375rem 0 0;
    background: var(--bs-tertiary-bg);
}

.kedd-markdown-toolbar button { min-width: 2.25rem; }

.kedd-markdown-editor {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.kedd-markdown-preview {
    min-height: 110px;
    padding: .75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .375rem;
    background: var(--bs-body-bg);
}

.kedd-markdown-preview:empty::before {
    content: 'Az élő előnézet itt jelenik meg.';
    color: var(--bs-secondary-color);
}

.kedd-markdown-preview p:last-child,
.kedd-markdown-preview ul:last-child,
.kedd-markdown-preview .kedd-markdown-callout:last-child { margin-bottom: 0; }

.kedd-markdown-callout {
    display: flex;
    gap: .65rem;
    margin: 1rem 0;
    padding: .85rem 1rem;
    color: var(--bs-emphasis-color);
    background: var(--bs-info-bg-subtle);
    border: 1px solid var(--bs-info-border-subtle);
    border-left: 4px solid var(--bs-info);
    border-radius: .375rem;
}

.kedd-markdown-callout > i {
    color: var(--bs-info-text-emphasis);
    font-size: 1.1rem;
    line-height: 1.5;
}

.kedd-markdown-callout > div { min-width: 0; }

.documentation-cover-manager { display: flex; gap: 1rem; align-items: start; }
.documentation-cover-preview-wrap { flex: 0 0 180px; height: 100px; border-radius: .375rem; overflow: hidden; background: var(--bs-tertiary-bg); }
.documentation-cover-preview { width: 100%; height: 100%; object-fit: cover; }
.documentation-cover-placeholder { height: 100%; display: grid; place-content: center; gap: .25rem; color: var(--bs-secondary-color); text-align: center; font-size: .8rem; }
.documentation-cover-placeholder i { font-size: 1.5rem; }
@media (max-width: 575.98px) { .documentation-cover-manager { display: block; } .documentation-cover-preview-wrap { margin-bottom: .75rem; width: 100%; height: 140px; } }

.kedd-markdown-details { margin-top: .5rem; }
.kedd-markdown-details summary {
    cursor: pointer;
    color: var(--bs-secondary-color);
}

/* Hibajegy Prioritás bal oldali szegélyek */
.nexus-ticket-card.priority-border-critical {
    border-left: 4.5px solid #ef4444 !important;
}
.nexus-ticket-card.priority-border-high {
    border-left: 4.5px solid #f59e0b !important;
}
.nexus-ticket-card.priority-border-normal {
    border-left: 4.5px solid var(--nexus-accent-blue) !important;
}
.nexus-ticket-card.priority-border-low {
    border-left: 4.5px solid #94a3b8 !important;
}

/* ── Nexus Munkaidő Widget Stílusok ─────────────────────────────────────────── */
.nexus-work-hero {
    background: var(--nexus-accent-blue-subtle, rgba(37, 99, 235, 0.06));
    border: 1px solid var(--nexus-accent-blue-border, rgba(37, 99, 235, 0.15));
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
}

.nexus-work-hero-timer {
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--nexus-accent-blue, #2563eb);
    line-height: 1.1;
}

.nexus-work-hero-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--nexus-text-muted, #64748b);
    margin-top: 0.25rem;
}

.nexus-work-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    width: 100%;
}

.nexus-work-btn {
    background: var(--nexus-card-bg);
    border: 1px solid var(--nexus-card-border);
    border-radius: 0.85rem;
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--nexus-text-main);
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.nexus-work-btn i {
    font-size: 1.25rem;
    color: var(--nexus-text-muted);
    transition: color 0.15s ease;
}

.nexus-work-btn:hover:not(:disabled) {
    border-color: var(--nexus-accent-blue);
    background: var(--nexus-accent-blue-subtle);
    color: var(--nexus-accent-blue);
    transform: translateY(-2px);
}

.nexus-work-btn:hover:not(:disabled) i {
    color: var(--nexus-accent-blue);
}

.nexus-work-btn-active {
    background: var(--nexus-blue-solid) !important;
    border-color: var(--nexus-blue-solid) !important;
    color: var(--nexus-on-solid) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.nexus-work-btn-active i {
    color: var(--nexus-on-solid) !important;
}

.nexus-work-btn-danger:hover:not(:disabled) {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.nexus-work-btn-danger:hover:not(:disabled) i {
    color: #ef4444;
}


/* Nexus Shortcut Buttons */
.nexus-shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--nexus-text-main);
    transition: transform .15s ease;
}

.nexus-shortcut-item:hover {
    transform: translateY(-3px);
    color: var(--nexus-accent-blue);
}

.nexus-shortcut-icon {
    width: 68px;
    height: 68px;
    border-radius: 1.15rem;
    background: var(--nexus-accent-blue-subtle);
    border: 1px solid var(--nexus-accent-blue-border);
    color: var(--nexus-accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

@media (max-width: 575.98px) {
    .nexus-shortcut-icon {
        width: 54px;
        height: 54px;
        font-size: 1.45rem;
        border-radius: 0.95rem;
    }
}

.nexus-shortcut-item:hover .nexus-shortcut-icon {
    background: var(--nexus-blue-solid);
    color: var(--nexus-on-solid);
    box-shadow: 0 8px 20px -3px rgba(37, 99, 235, 0.35);
}

.nexus-shortcut-label {
    font-size: 0.825rem;
    font-weight: 600;
    text-align: center;
}

/* Drag & Drop, Pin and Controls */
.card-drag-handle {
    cursor: grab;
    padding: 0.2rem 0.35rem;
    border-radius: 0.35rem;
    color: var(--nexus-text-muted);
    opacity: 0.6;
    transition: opacity .15s, background .15s, color .15s;
    user-select: none;
}

.card-drag-handle:hover {
    opacity: 1;
    color: var(--nexus-accent-blue);
    background: var(--nexus-accent-blue-subtle);
}

.card-drag-handle:active {
    cursor: grabbing;
}

.dashboard-card.is-dragging {
    opacity: 0.35;
    transform: scale(0.98);
}

.dashboard-card.drag-over {
    outline: 2px dashed var(--nexus-accent-blue);
    outline-offset: -2px;
    border-radius: 1.25rem;
}

.dashboard-card.is-pinned .card-nexus,
.card-nexus.is-pinned {
    border-color: var(--nexus-accent-blue) !important;
    box-shadow: 0 0 0 1.5px var(--nexus-accent-blue), var(--nexus-card-shadow) !important;
}

.card-nexus.is-pinned .card-drag-handle,
.grid-stack-item[gs-locked="true"] .card-drag-handle,
.mini-card-item.is-pinned .mini-drag-handle {
    opacity: 0.15 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.widget-ctrl-btn {
    border: none;
    background: transparent;
    padding: 0.25rem 0.4rem;
    color: var(--nexus-text-muted);
    border-radius: 0.35rem;
    font-size: 0.9rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .15s, background .15s;
}

.widget-ctrl-btn:hover {
    color: var(--nexus-text-main);
    background: var(--nexus-accent-blue-subtle);
}

.widget-ctrl-btn.active-pin {
    color: var(--nexus-accent-blue) !important;
    background: var(--nexus-accent-blue-subtle);
}

/* Közös Markdown szerkesztő és előnézet – lásd: /app/js/markdown.js */
.kedd-markdown-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .5rem;
    border: 1px solid var(--bs-border-color);
    border-bottom: 0;
    border-radius: .375rem .375rem 0 0;
    background: var(--bs-tertiary-bg);
}

.kedd-markdown-toolbar button { min-width: 2.25rem; }

.kedd-markdown-editor {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.kedd-markdown-preview {
    min-height: 110px;
    padding: .75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .375rem;
    background: var(--bs-body-bg);
}

.kedd-markdown-preview:empty::before {
    content: 'Az élő előnézet itt jelenik meg.';
    color: var(--bs-secondary-color);
}

.kedd-markdown-preview p:last-child,
.kedd-markdown-preview ul:last-child,
.kedd-markdown-preview .kedd-markdown-callout:last-child { margin-bottom: 0; }

.kedd-markdown-callout {
    display: flex;
    gap: .65rem;
    margin: 1rem 0;
    padding: .85rem 1rem;
    color: var(--bs-emphasis-color);
    background: var(--bs-info-bg-subtle);
    border: 1px solid var(--bs-info-border-subtle);
    border-left: 4px solid var(--bs-info);
    border-radius: .375rem;
}

.kedd-markdown-callout > i {
    color: var(--bs-info-text-emphasis);
    font-size: 1.1rem;
    line-height: 1.5;
}

.kedd-markdown-callout > div { min-width: 0; }

.documentation-cover-manager { display: flex; gap: 1rem; align-items: start; }
.documentation-cover-preview-wrap { flex: 0 0 180px; height: 100px; border-radius: .375rem; overflow: hidden; background: var(--bs-tertiary-bg); }
.documentation-cover-preview { width: 100%; height: 100%; object-fit: cover; }
.documentation-cover-placeholder { height: 100%; display: grid; place-content: center; gap: .25rem; color: var(--bs-secondary-color); text-align: center; font-size: .8rem; }
.documentation-cover-placeholder i { font-size: 1.5rem; }
@media (max-width: 575.98px) { .documentation-cover-manager { display: block; } .documentation-cover-preview-wrap { margin-bottom: .75rem; width: 100%; height: 140px; } }

.kedd-markdown-details { margin-top: .5rem; }
.kedd-markdown-details summary {
    cursor: pointer;
    color: var(--bs-secondary-color);
    font-size: .875rem;
    font-weight: 600;
}
.kedd-markdown-details[open] summary { margin-bottom: .5rem; }

/* ── Munkaidő kártya Új Hero & Action Grid Stílusok ── */
.nexus-work-hero {
    background: var(--nexus-accent-blue-subtle);
    border: 1px solid var(--nexus-accent-blue-border);
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    text-align: center;
}

.nexus-work-hero-timer {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--nexus-blue-text);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.nexus-work-hero-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--nexus-text-muted);
    margin-top: 0.35rem;
}

/* ── Munkaidő hero: haladásjelző a napi törzsidő szerint ─────────────────────────
   A háttérdoboz balról jobbra töltődik a mai törzsidő arányában (--work-progress: 0..1).
   Az élénkebb árnyalat halvány marad, hogy az időmérő és a felirat kontrasztja ne romoljon. */
.nexus-work-hero {
    --work-fill-a: rgba(37, 99, 235, 0.10);
    --work-fill-b: rgba(37, 99, 235, 0.19);
    --work-fill-edge: rgba(37, 99, 235, 0.32);
}

[data-bs-theme="dark"] .nexus-work-hero {
    --work-fill-a: rgba(96, 165, 250, 0.12);
    --work-fill-b: rgba(96, 165, 250, 0.24);
    --work-fill-edge: rgba(147, 197, 253, 0.42);
}

.nexus-work-hero-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(var(--work-progress, 0) * 100%);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(90deg, var(--work-fill-a), var(--work-fill-b));
    box-shadow: 1px 0 0 var(--work-fill-edge), 8px 0 18px -6px var(--work-fill-edge);
    transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
    overflow: hidden;
}

.nexus-work-hero.has-progress .nexus-work-hero-fill {
    opacity: 1;
}

/* Munka közben egy lassú, halvány fényáramlás fut végig a kitöltött sávon */
.nexus-work-hero.is-live .nexus-work-hero-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 60%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
    transform: translateX(-120%);
    animation: nexus-work-sheen 4.5s ease-in-out infinite;
}

[data-bs-theme="dark"] .nexus-work-hero.is-live .nexus-work-hero-fill::after {
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.14) 50%, transparent 100%);
}

/* A törzsidő teljesítésekor a sáv egyszer felragyog, és kicsit mélyebb árnyalatot kap */
.nexus-work-hero.is-complete {
    --work-fill-a: rgba(37, 99, 235, 0.14);
    --work-fill-b: rgba(37, 99, 235, 0.24);
}

.nexus-work-hero.is-complete .nexus-work-hero-fill {
    animation: nexus-work-complete 1.6s ease-out 1;
}

@keyframes nexus-work-sheen {
    0%, 35% { transform: translateX(-120%); }
    100% { transform: translateX(260%); }
}

@keyframes nexus-work-complete {
    0% { filter: brightness(1); }
    35% { filter: brightness(1.18) saturate(1.15); }
    100% { filter: brightness(1); }
}

@media (prefers-reduced-motion: reduce) {
    .nexus-work-hero-fill {
        transition: none;
    }

    .nexus-work-hero.is-live .nexus-work-hero-fill::after,
    .nexus-work-hero.is-complete .nexus-work-hero-fill {
        animation: none;
    }
}

.nexus-work-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
}

@media (max-width: 576px) {
    .nexus-work-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-stack-item[gs-w="1"] .nexus-work-actions-grid,
.grid-stack-item[gs-w="2"] .nexus-work-actions-grid,
.grid-stack-item[gs-w="3"] .nexus-work-actions-grid,
.grid-stack-item[gs-w="4"] .nexus-work-actions-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* Munkaidő kártya: mai eseménynapló */
.nexus-work-log {
    font-size: 0.85rem;
}

.nexus-work-log-title {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nexus-text-muted, #64748b);
    margin-bottom: 0.25rem;
}

.nexus-work-btn {
    background: var(--nexus-card-bg-elevated);
    border: 1.5px solid var(--nexus-card-border);
    border-radius: 0.85rem;
    padding: 0.85rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--nexus-text-main);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    width: 100%;
}

.nexus-work-btn:hover:not(:disabled) {
    background: var(--nexus-bg-tertiary);
    border-color: var(--nexus-input-border);
    color: var(--nexus-text-main);
    transform: translateY(-1px);
}

.nexus-work-btn i {
    font-size: 1.35rem;
    line-height: 1;
}

.nexus-work-btn-danger {
    background: var(--nexus-accent-red-subtle) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: var(--nexus-red-text) !important;
}

.nexus-work-btn-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.18) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    color: var(--nexus-red-text) !important;
}

.nexus-work-btn-active {
    background: rgba(99, 102, 241, 0.14) !important;
    border-color: rgba(99, 102, 241, 0.55) !important;
    color: var(--nexus-indigo-text) !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.nexus-work-btn-success {
    background: var(--nexus-accent-green-subtle) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: var(--nexus-green-text) !important;
}

.nexus-work-btn-success:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: rgba(16, 185, 129, 0.6) !important;
}

/* ── Szerverek állapota widget stílusok ── */
.nexus-server-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem 1.5rem;
    padding: 0.5rem 0;
    width: 100%;
}

.nexus-server-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 76px;
    flex: 0 0 auto;
    cursor: pointer;
    transition: transform 0.18s ease;
}

.nexus-server-item:hover {
    transform: translateY(-2px);
}

.nexus-server-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 1.15rem;
    background: var(--nexus-accent-blue-subtle);
    border: 1.5px solid var(--nexus-card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nexus-accent-blue);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    position: relative;
    transition: all 0.15s ease;
}

.nexus-server-icon-wrap.border-offline {
    border-color: rgba(239, 68, 68, 0.4) !important;
}

.nexus-server-icon-wrap.border-warning {
    border-color: rgba(245, 158, 11, 0.4) !important;
}

.nexus-server-icon-wrap.border-online {
    border-color: rgba(16, 185, 129, 0.35) !important;
}

@keyframes serverPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.nexus-server-badge-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--nexus-card-bg, #ffffff);
    background-color: #10b981;
    animation: serverPulse 2s infinite ease-in-out;
    display: inline-block;
}

.nexus-server-badge-dot.status-offline {
    background-color: #ef4444;
    animation: none;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

.nexus-server-badge-dot.status-warning {
    background-color: #f59e0b;
    animation: none;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}

.nexus-server-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--nexus-text-main);
    white-space: nowrap;
}

/* ── Globális Nexus Táblázat Stílusok ────────────────────────────────────────── */
.table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: var(--nexus-accent-blue-subtle, rgba(37, 99, 235, 0.05));
    --bs-table-hover-color: var(--nexus-text-main, #1e293b);
    --bs-table-border-color: var(--nexus-card-border, #e2e8f0);
    color: var(--nexus-text-main, #1e293b);
    border-color: var(--nexus-card-border, #e2e8f0);
    vertical-align: middle;
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    background-color: transparent;
    border-bottom-color: var(--nexus-card-border, #e2e8f0);
    padding: 0.85rem 1rem;
}

.table thead,
.table thead.table-light,
.table thead tr,
.table thead th {
    background-color: var(--nexus-card-bg-elevated, #f8fafc) !important;
    color: var(--nexus-text-muted, #64748b) !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid var(--nexus-card-border, #e2e8f0) !important;
    border-top: none !important;
    white-space: nowrap;
}

.table tbody tr {
    transition: background-color 0.15s ease;
}

.table-hover > tbody > tr:hover > * {
    background-color: var(--nexus-accent-blue-subtle, rgba(37, 99, 235, 0.06)) !important;
    color: var(--nexus-text-main, #1e293b) !important;
}

.table tbody tr:last-child td,
.table tbody tr:last-child th {
    border-bottom: none !important;
}

/* Kártyába ágyazott táblázatok szél-padding igazítása */
.card-nexus .table th:first-child,
.card-nexus .table td:first-child {
    padding-left: 1.25rem !important;
}

.card-nexus .table th:last-child,
.card-nexus .table td:last-child {
    padding-right: 1.25rem !important;
}

/* Jelenléti táblázat finomhangolás */
.attendance-table tbody tr.table-active,
.attendance-table tbody tr.is-weekend {
    background-color: var(--nexus-card-bg-elevated, rgba(0,0,0,0.02)) !important;
    opacity: 0.8;
}

.attendance-table tbody tr.is-today {
    background-color: var(--nexus-accent-blue-subtle, rgba(37, 99, 235, 0.08)) !important;
    font-weight: 600;
}

/* Jogosultsági mátrix táblázat */
.perm-table {
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--nexus-card-border, #e2e8f0) !important;
}

.perm-table th, .perm-table td {
    border-color: var(--nexus-card-border, #e2e8f0) !important;
    padding: 0.6rem 0.75rem !important;
}

/* ── Nexus Kártya Loading & Skeleton Shimmer Animáció ───────────────────────── */
@keyframes nexusShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes nexusCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nexus-skeleton {
    background: linear-gradient(
        90deg,
        rgba(226, 232, 240, 0.55) 25%,
        rgba(241, 245, 249, 0.95) 50%,
        rgba(226, 232, 240, 0.55) 75%
    );
    background-size: 200% 100%;
    animation: nexusShimmer 1.8s infinite ease-in-out;
    border-radius: 0.5rem;
}

[data-bs-theme="dark"] .nexus-skeleton {
    background: linear-gradient(
        90deg,
        rgba(51, 65, 85, 0.45) 25%,
        rgba(71, 85, 105, 0.75) 50%,
        rgba(51, 65, 85, 0.45) 75%
    );
    background-size: 200% 100%;
}

.nexus-card-skeleton {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.card-nexus {
    animation: nexusCardFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Nexus Custom Select & Lekerekített Menü ─────────────────────────────────── */
.nexus-custom-select .form-select {
    background-color: var(--nexus-card-bg, #ffffff);
    border-color: var(--nexus-card-border, #cbd5e1);
    cursor: pointer;
    box-shadow: var(--nexus-card-shadow, 0 1px 3px rgba(0,0,0,0.05));
    transition: all 0.15s ease;
}

.nexus-custom-select .form-select:hover {
    border-color: var(--nexus-accent-blue-border, #93c5fd);
}

.nexus-select-menu {
    box-shadow: var(--nexus-shadow-md) !important;
}

.nexus-select-menu .dropdown-item {
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
    cursor: pointer;
}

.nexus-select-menu .dropdown-item:hover {
    background-color: var(--nexus-accent-blue-subtle, rgba(37, 99, 235, 0.08));
    color: var(--nexus-accent-blue, #2563eb);
}

/* ── Globális Nyomtatási Stílusok ────────────────────────────────────────────── */
@media print {
    #app-nav-root,
    .app-nexus-sidebar,
    #appDesktopSidebar,
    .nexus-sidebar-overlay,
    #appMobileNavbar,
    .nexus-topbar-mobile,
    .app-navbar,
    .app-sidebar,
    .app-sidebar-overlay,
    .experimental-banner,
    #experimental-banner,
    nav,
    nexus-header .btn,
    .print-hidden,
    .d-print-none {
        display: none !important;
    }

    body:not(.login-page-body),
    body {
        padding-top: 0 !important;
    }
}
