/* Custom Tabulator Fixes for Update3 */

/* Fix font rendering in Tabulator tables to match Bootstrap */
.tabulator {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.tabulator-cell {
    font-family: inherit;
    font-size: 14px;
}

/* Fix toolbar layout - make server dropdown and device buttons inline */
#toolbar .form-inline {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
}

#toolbar .form-group {
    margin-bottom: 0;
}

/* Remove the unnecessary checkbox from the header filter row */
.tabulator-header-filter .tabulator-row-selection {
    display: none !important;
}

/* Hide the checkbox icon in header filters */
.tabulator-col[tabulator-field=""] .tabulator-header-filter {
    display: none !important;
}

/* Ensure row selection checkboxes only appear in data rows, not headers */
.tabulator-header .tabulator-col-content .tabulator-row-selection-toggle {
    display: none !important;
}

/* Hide radio buttons in device type button group */
.btn-group-toggle .deviceButton input[type="radio"] {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

/* Ensure active button has proper styling */
.btn-group-toggle .deviceButton.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.btn-group-toggle .deviceButton:not(.active) {
    background-color: #fff;
    border-color: #0d6efd;
    color: #0d6efd;
}
