/* Tabulator Dark Theme Override */
/* A tabulator_modern.min.css után kell betölteni */

.tabulator {
    background-color: #0d1117 !important;
    border: 1px solid #30363d !important;
    color: #e6edf3 !important;
}

.tabulator .tabulator-header {
    background-color: #161b22 !important;
    border-bottom: 1px solid #00ff88 !important;
    color: #00ff88 !important;
}

.tabulator .tabulator-header .tabulator-col {
    background: #161b22 !important;
    border-right: 1px solid #30363d !important;
}

.tabulator .tabulator-header .tabulator-col.tabulator-moving {
    background: #1c2333 !important;
    border: 1px solid #00ff88 !important;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter .tabulator-arrow {
    border-bottom-color: #8b949e !important;
}

.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=asc] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow,
.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=desc] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow {
    border-bottom-color: #00ff88 !important;
    border-top-color: #00ff88 !important;
}

.tabulator .tabulator-tableholder {
    background-color: #0d1117 !important;
}

/* Táblázat alap háttér és szöveg */
.tabulator .tabulator-tableholder .tabulator-table {
    background-color: #0d1117 !important;
    color: #e6edf3 !important;
}

/* Sorok - önálló selectorok felülírása */
.tabulator-row {
    background-color: #111822 !important;
    color: #e6edf3 !important;
    border-bottom: 1px solid #21262d;
}

.tabulator-row.tabulator-row-even {
    background-color: #0d1117 !important;
}

@media (hover:hover) and (pointer:fine) {
    .tabulator-row.tabulator-selectable:hover {
        background-color: #161b22 !important;
        cursor: pointer;
    }
}

.tabulator-row.tabulator-selected {
    background-color: #1c3a5e !important;
}

@media (hover:hover) and (pointer:fine) {
    .tabulator-row.tabulator-selected:hover {
        background-color: #1e4470 !important;
        cursor: pointer;
    }
}

.tabulator-row.tabulator-row-moving {
    background: #161b22 !important;
    border: 1px solid #30363d;
}

/* Cellák */
.tabulator-row .tabulator-cell {
    border-right: 1px solid #21262d !important;
    color: #e6edf3 !important;
}

.tabulator-row .tabulator-cell.tabulator-row-header {
    background-color: #161b22 !important;
    border-right: 1px solid #30363d !important;
}

/* Placeholder */
.tabulator .tabulator-tableholder .tabulator-placeholder .tabulator-placeholder-contents {
    color: #8b949e !important;
}

/* Footer / Pagination */
.tabulator .tabulator-footer {
    background-color: #161b22 !important;
    border-top: 1px solid #30363d !important;
    color: #e6edf3 !important;
}

.tabulator .tabulator-footer .tabulator-page-counter {
    color: #8b949e !important;
}

.tabulator .tabulator-footer .tabulator-paginator .tabulator-page {
    background-color: #21262d !important;
    border: 1px solid #30363d !important;
    color: #e6edf3 !important;
}

.tabulator .tabulator-footer .tabulator-paginator .tabulator-page:hover {
    background-color: #30363d !important;
    color: #00ff88 !important;
}

.tabulator .tabulator-footer .tabulator-paginator .tabulator-page.active {
    background-color: #00ff88 !important;
    color: #0d1117 !important;
    font-weight: 700;
}

.tabulator .tabulator-footer .tabulator-paginator .tabulator-page[disabled] {
    background-color: #161b22 !important;
    color: #484f58 !important;
    opacity: 0.5;
}

.tabulator .tabulator-footer .tabulator-page-size {
    background-color: #21262d !important;
    border: 1px solid #30363d !important;
    color: #e6edf3 !important;
}

/* Calcs sorok */
.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs {
    background: #161b22 !important;
}

.tabulator .tabulator-header .tabulator-calcs-holder {
    background: #161b22 !important;
    border-bottom: 1px solid #30363d !important;
}

.tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row {
    background: #161b22 !important;
}

/* Column resize handle */
.tabulator .tabulator-header .tabulator-col .tabulator-col-resize-handle {
    border-right-color: #30363d;
}

/* Frozen columns */
.tabulator .tabulator-header .tabulator-frozen,
.tabulator-row .tabulator-frozen {
    background-color: inherit !important;
}

/* Editing cell */
.tabulator-row .tabulator-cell.tabulator-editing {
    background-color: #0d1117 !important;
    border: 1px solid #00ff88 !important;
}

.tabulator-row .tabulator-cell.tabulator-editing input {
    background-color: #0d1117 !important;
    color: #e6edf3 !important;
    border: none;
}

/* Scrollbar styling */
.tabulator .tabulator-tableholder::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.tabulator .tabulator-tableholder::-webkit-scrollbar-track {
    background: #0d1117;
}

.tabulator .tabulator-tableholder::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

.tabulator .tabulator-tableholder::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}
