.tabulator {
    font-size: 12px;
    border: 1px solid #fff;
    background-color: #fff;
}

.tabulator .tabulator-header {
    font-size: 10px;
    font-weight: bold;
    border-bottom: 3px solid #33BBEE;
    margin-bottom: 4px;
    background-color: #fff;
    background: #fff;
    color: #000000;
}

.tabulator .tabulator-tableholder .tabulator-table {
    color: black;
}

.tabulator .tabulator-col {
    background-color: #fff;
}

.tabulator .tabulator-header .tabulator-col {
    background-color: #fff;
}

.tabulator .tabulator-col-content {
    background-color: #fff;
}

.tabulator-row.tabulator-selected .tabulator-cell {
    background-color: #33BBEE;
}

.tabulator-row.tabulator-selected:hover .tabulator-cell {
    background-color: #33AADD;
}

/* Support row color classes — use classes instead of inline styles
   so that Tabulator's hover/selected rules can still apply. */
.tabulator-row.support-color-green {
    background-color: #00FF0040;
}

/* Renewal row color classes — use classes instead of inline styles
   so that Tabulator's hover/selected rules can still apply. */
.tabulator-row.renewal-color-red {
    background-color: salmon;
}
.tabulator-row.renewal-color-green {
    background-color: lightgreen;
}
.tabulator-row.renewal-color-yellow {
    background-color: yellow;
}

/* Telemetry row color classes */
.tabulator-row.telemetry-row-red {
    background-color: #FF634740;
}
.tabulator-row.telemetry-row-orange {
    background-color: #FFA50040;
}
.tabulator-row.telemetry-row-green {
    background-color: #00FF0020;
}
.tabulator-row.telemetry-event-bold .tabulator-cell {
    font-weight: bold;
}

.tabulator-row.telemetry-row-yellow {
    background-color: #FFD70030;
}
.telemetry-failure-icon {
    color: #E67E22;
    font-size: 14px;
}

/* Telemetry lifecycle icons */
.telemetry-lifecycle-install {
    color: #FFD700;
}
.telemetry-lifecycle-upgrade {
    color: #1E90FF;
}
.telemetry-lifecycle-os {
    color: #32CD32;
}

/* Permission status indicators */
.perm-ok {
    color: #2E7D32;
    font-weight: 600;
}
.perm-deny {
    color: #C62828;
    font-weight: 600;
}

/* Allow scrolling inside tall tooltips (overrides Tabulator's pointer-events:none) */
.tabulator-popup-container.tabulator-tooltip {
    pointer-events: auto;
    width: fit-content;
    height: fit-content;
    max-width: 420px;
}
/* Telemetry Health Overview */
.telemetry-overview {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 8px 12px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f6f7f9;
}
.telemetry-overview-period {
    font-size: 12px;
    color: #555;
}
.telemetry-overview-error {
    padding: 6px 10px;
    background: #fdecea;
    border: 1px solid #f5c2c0;
    color: #8a1f1b;
    font-size: 12px;
}
.telemetry-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}
.telemetry-tile {
    background: #fff;
    border: 1px solid #dde1e6;
    border-left: 4px solid #c3c9d1;
    border-radius: 4px;
    padding: 6px 10px;
}
.telemetry-tile-good {
    border-left-color: #2e9e4f;
}
.telemetry-tile-bad {
    border-left-color: #d9342b;
    background: #fff6f5;
}
.telemetry-tile-label {
    font-size: 11px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.telemetry-tile-value {
    font-size: 20px;
    font-weight: 600;
    color: #1f2933;
}
.telemetry-tile-change {
    font-size: 11px;
    color: #6b7280;
    min-height: 14px;
}
.telemetry-tile-bad .telemetry-tile-change {
    color: #b3261e;
}
.telemetry-tile-good .telemetry-tile-change {
    color: #217a3c;
}
.telemetry-panel {
    background: #fff;
    border: 1px solid #dde1e6;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.telemetry-panel-title {
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
}
.telemetry-panel-hint {
    font-size: 11px;
    font-weight: normal;
    color: #6b7280;
    margin-left: 8px;
}
.telemetry-panel-lidar .telemetry-tiles {
    padding: 8px 10px;
}
.telemetry-panel-row {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 10px;
}
@media (max-width: 1100px) {
    .telemetry-panel-row {
        grid-template-columns: 1fr;
    }
}
.telemetry-loading {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    padding-top: 50px;
    background-color: white;
    z-index: 1;
}
.telemetry-trend-new {
    background: #d9342b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
}
.telemetry-trend-up {
    color: #b3261e;
    font-weight: 600;
}
.telemetry-trend-down {
    color: #217a3c;
}
.telemetry-trend-flat {
    color: #9ca3af;
}
.telemetry-rate-bad {
    color: #b3261e;
    font-weight: 600;
}
