﻿
body {
    /*background-color: #f5f6f8;*/
}

.vt-page-wrapper {
    padding: 1rem 1.5rem 2rem;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.vt-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: .75rem;
}

.vt-page-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.vt-page-title {
    margin: 0;
}

    .vt-page-title i {
        margin-right: .5rem;
    }

.vt-nav-tabs {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

    .vt-nav-tabs .nav-link {
        padding: .35rem .9rem;
        border-radius: 999px;
        font-size: .9rem;
        text-decoration: none;
        color: #555;
        background-color: transparent;
    }

        .vt-nav-tabs .nav-link:hover {
            background-color: #f0f0f0;
        }

        .vt-nav-tabs .nav-link.active {
            background-color: #343a40;
            color: #fff;
        }

/* Fő elrendezés: bal (lista) + jobb (részlet) */
.vt-main-layout {
    flex: 1;
    display: flex;
    gap: 1rem;
    min-height: 0;
}

.vt-left-pane {
    flex: 0 0 52%;
    max-width: 52%;
    min-width: 420px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.vt-right-pane {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

@media (max-width: 1200px) {
    .vt-left-pane {
        flex-basis: 50%;
        max-width: 50%;
        min-width: 0;
    }
}

@media (max-width: 992px) {
    .vt-main-layout {
        flex-direction: column;
    }

    .vt-left-pane, .vt-right-pane {
        max-width: 100%;
        min-width: 0;
    }
}

/* Szűrők a bal oldalon */
.vt-filter-card {
    background-color: #fff;
    border-radius: .5rem;
    padding: .75rem 1rem;
    margin-bottom: .5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .75rem 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

.vt-filter-group {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.vt-filter-label {
    font-size: .8rem;
    font-weight: 600;
    margin: 0;
}

.vt-filter-input-row {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.vt-filter-card .form-control, .vt-filter-card .form-select {
    height: calc(1.5em + .5rem + 2px);
    padding: .25rem .5rem;
    font-size: .875rem;
}

.vt-actions-group {
    min-width: 220px;
}

.vt-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.vt-action-btn {
    padding: .25rem .6rem;
    font-size: .85rem;
    line-height: 1.3;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

/* Feladat lista – bal oldali panel görgethető */
.vt-task-list-wrapper {
    flex: 1;
    min-height: 0;
    background-color: #fff;
    border-radius: .5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vt-task-table-header {
    background-color: #6c7a88;
    color: #fff;
    padding: .45rem .75rem;
    font-weight: 600;
    font-size: .9rem;
}

.vt-task-table-body {
    flex: 1;
    overflow-y: auto;
}

    .vt-task-table-body table {
        margin-bottom: 0;
    }

.vt-task-row {
    cursor: pointer;
}

    .vt-task-row:hover {
        background-color: #f8f9fa;
    }

.vt-badge-status {
    font-size: .75rem;
    padding: .15rem .55rem;
    border-radius: 999px;
    display: inline-block;
}

.vt-badge-esedekes {
    background-color: #ffeeba;
    color: #856404;
}

.vt-badge-lejart {
    background-color: #f8d7da;
    color: #721c24;
}

.vt-badge-kesz {
    background-color: #d4edda;
    color: #155724;
}

/* Jobb oldali kártyák */
.vt-feladat-card, .vt-esemeny-card {
    background-color: #fff;
    border-radius: .5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

.vt-feladat-card {
    margin-bottom: .75rem;
}

    .vt-feladat-card .card-header, .vt-esemeny-card .card-header {
        background-color: #f7f7f9;
    }

/* Feladat adatlap – 2×2 hasábos + teljes sorok */
.vt-feladat-table {
    font-size: .9rem;
}

    .vt-feladat-table th {
        width: 18%;
        font-weight: 600;
        border-top: none;
        vertical-align: top;
        white-space: nowrap;
    }

    .vt-feladat-table td {
        border-top: none;
    }

/* Timeline */
.vt-esemeny-card-body {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}

.vt-timeline {
    position: relative;
    margin: 0;
    padding-left: 0;
    list-style: none;
}

    .vt-timeline::before {
        content: "";
        position: absolute;
        left: 14px;
        top: 0;
        bottom: 0;
        width: 2px;
        background-color: #dee2e6;
    }

.vt-timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 1rem;
}

.vt-timeline-dot {
    position: absolute;
    left: 8px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #007bff;
}

.vt-timeline-time {
    font-size: .8rem;
    color: #6c757d;
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
}

.vt-timeline-time-user {
    font-size: .8rem;
    color: #6c757d;
}

.vt-timeline-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
}

.vt-timeline-body {
    font-size: .9rem;
    margin-top: .25rem;
}

.vt-timeline-footer {
    font-size: .8rem;
    color: #6c757d;
    margin-top: .25rem;
}

.vt-badge-esemeny-tipus {
    font-size: .7rem;
}

/* Műveleti ikonok konténer */
.vt-action-icons {
    display: flex;
    justify-content: center; /* vízszintes közép */
    align-items: center; /* függőleges közép */
    gap: 0.5rem; /* távolság az ikonok között */
    white-space: nowrap;
}

/* Törlés (piros X) */
.vt-btn-delete {
    color: #dc3545;
    font-size: 1.6rem; /* EZT növeljük */
    line-height: 1;
    padding: 0;
    border: none;
    background: transparent;
    text-decoration: none;
}

    .vt-btn-delete:hover {
        color: #bd2130;
        text-decoration: none;
    }

/* Előzmények ikon */
.vt-btn-history {
    color: #6c757d;
    font-size: 1.1rem;
    padding: 0;
    border: none;
    background: transparent;
    text-decoration: none;
}

    .vt-btn-history:hover {
        color: #343a40;
        text-decoration: none;
    }

/* Grid oszlop fix méret (opcionális, de ajánlott) */
.action-cell {
    width: 70px;
    text-align: center;
}

.vt-readonly .vt-field {
    border-left: 3px solid #e9ecef;
    padding-left: 10px;
}

.vt-readonly .vt-label {
    font-size: 0.8rem;
    /*text-transform: uppercase;*/
    letter-spacing: 0.03em;
    color: #6c757d;
    margin-bottom: 2px;
}

.vt-readonly .vt-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #212529;
    padding: 4px 6px;
    background-color: #f8f9fa;
    border-radius: 4px;
    min-height: 32px;
}

.vt-readonly .vt-multiline {
    white-space: pre-line;
}

.vt-timeline {
    margin-bottom: 0;
}

.vt-timeline, .vt-timeline-item {
    padding-left: 0;
}
