/**
 * Tabulator Custom Styling
 * Angepasst für 360Volt Dashboard mit Dark Mode Support
 */

/* Light Mode - Tabulator Basis */
.tabulator {
  font-family: 'Poppins', sans-serif;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  background-color: #ffffff !important;
}

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

.tabulator .tabulator-tableholder .tabulator-table {
  background-color: #ffffff;
}

.tabulator .tabulator-header {
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  border-bottom: 2px solid #e5e7eb;
  font-weight: 600;
  color: #374151;
}

.tabulator .tabulator-header .tabulator-col {
  background: transparent;
  border-right: 1px solid #e5e7eb;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
  padding: 14px 12px;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row {
  background-color: #ffffff !important;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.15s ease;
  min-height: 48px;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row:hover {
  background-color: #f9fafb;
  transform: translateX(2px);
  box-shadow: -2px 0 0 0 #3b82f6, 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-row-even {
  background-color: #ffffff !important;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-row-even:hover {
  background-color: #f9fafb;
  transform: translateX(2px);
  box-shadow: -2px 0 0 0 #3b82f6, 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tabulator .tabulator-cell {
  border-right: 1px solid #f3f4f6;
  padding: 12px 10px;
  font-size: 0.875rem;
}

.tabulator .tabulator-footer {
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  border-top: 2px solid #e5e7eb;
  padding: 10px 12px;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.02);
}

/* Dark Mode - Tabulator */
.dark .tabulator {
  background-color: #1f2937 !important;
  border-color: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark .tabulator .tabulator-tableholder {
  background-color: #1f2937 !important;
}

.dark .tabulator .tabulator-tableholder .tabulator-table {
  background-color: #1f2937;
}

.dark .tabulator .tabulator-header {
  background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
  border-bottom-color: #374151;
  color: #e5e7eb;
}

.dark .tabulator .tabulator-header .tabulator-col {
  background: transparent;
  border-right-color: #374151;
}

.dark .tabulator .tabulator-tableholder .tabulator-table .tabulator-row {
  background-color: #1f2937 !important;
  border-bottom-color: #374151;
  color: #e5e7eb;
  min-height: 48px;
}

.dark .tabulator .tabulator-tableholder .tabulator-table .tabulator-row:hover {
  background-color: #374151;
  box-shadow: -2px 0 0 0 #3b82f6, 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dark .tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-row-even {
  background-color: #1f2937 !important;
}

.dark .tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-row-even:hover {
  background-color: #374151;
  box-shadow: -2px 0 0 0 #3b82f6, 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dark .tabulator .tabulator-cell {
  border-right-color: #374151;
}

.dark .tabulator .tabulator-footer {
  background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
  border-top-color: #374151;
  color: #e5e7eb;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.3);
}

/* Pagination Styling */
.tabulator .tabulator-footer .tabulator-page {
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  margin: 0 2px;
  padding: 4px 8px;
  background-color: #ffffff;
  color: #374151;
}

.dark .tabulator .tabulator-footer .tabulator-page {
  border-color: #374151;
  background-color: #1f2937;
  color: #e5e7eb;
}

.tabulator .tabulator-footer .tabulator-page.active {
  background-color: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
}

.dark .tabulator .tabulator-footer .tabulator-page.active {
  background-color: #2563eb;
  border-color: #2563eb;
}

.tabulator .tabulator-footer .tabulator-page:hover:not(.active) {
  background-color: #f3f4f6;
}

.dark .tabulator .tabulator-footer .tabulator-page:hover:not(.active) {
  background-color: #374151;
}

/* Sorting Icons */
.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title {
  padding-right: 20px;
}

.tabulator .tabulator-header .tabulator-col[aria-sort="asc"] .tabulator-col-content .tabulator-arrow {
  border-bottom: 6px solid #3b82f6;
}

.tabulator .tabulator-header .tabulator-col[aria-sort="desc"] .tabulator-col-content .tabulator-arrow {
  border-top: 6px solid #3b82f6;
}

/* Filter Styling */
.tabulator .tabulator-header-filter input {
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  padding: 4px 8px;
  width: 100%;
  background-color: #ffffff;
  color: #374151;
}

.dark .tabulator .tabulator-header-filter input {
  border-color: #4b5563;
  background-color: #374151;
  color: #e5e7eb;
}

.tabulator .tabulator-header-filter input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Frozen Column Styling */
.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left {
  border-right: 2px solid #e5e7eb !important;
}

.tabulator .tabulator-row .tabulator-cell.tabulator-frozen {
  background-color: inherit !important;
}

.tabulator .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left {
  border-right: 2px solid #e5e7eb !important;
}

.dark .tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left {
  border-right: 2px solid #374151 !important;
}

.dark .tabulator .tabulator-row .tabulator-cell.tabulator-frozen {
  background-color: inherit !important;
}

.dark .tabulator .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left {
  border-right: 2px solid #374151 !important;
}

/* Custom Icons für Aktionen */
.tabulator-action-btn {
  padding: 4px 8px;
  border-radius: 0.25rem;
  transition: all 0.2s;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  background: transparent;
}

.tabulator-action-btn:hover {
  background-color: #f3f4f6;
}

.dark .tabulator-action-btn:hover {
  background-color: #374151;
}

/* Tooltip für Zellen */
.tabulator-tooltip {
  background-color: #1f2937;
  color: #ffffff;
  border: 1px solid #374151;
  border-radius: 0.375rem;
  padding: 6px 10px;
  font-size: 0.875rem;
  max-width: 300px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Status Badges in Tabulator - Enhanced Pill-shaped */
.tabulator-status-online {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.15) 100%);
  color: var(--status-optimal);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark .tabulator-status-online {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.3) 100%);
  color: #d1fae5;
  border-color: rgba(16, 185, 129, 0.4);
}

.tabulator-status-offline {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.15) 100%);
  color: var(--status-critical);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark .tabulator-status-offline {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.3) 100%);
  color: #fee2e2;
  border-color: rgba(239, 68, 68, 0.4);
}

.dark .tabulator-status-offline {
  background-color: #991b1b;
  color: #fca5a5;
}

/* Loading Spinner */
.tabulator .tabulator-loader {
  background: rgba(255, 255, 255, 0.9);
}

/* Column Toggle Buttons for Status Overview */
.column-toggle-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.column-toggle-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.column-toggle-btn.active:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.column-toggle-btn.inactive {
  background-color: #ffffff;
  border-color: #d1d5db;
  color: #6b7280;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.dark .column-toggle-btn.inactive {
  background-color: #374151;
  border-color: #4b5563;
  color: #9ca3af;
}

.column-toggle-btn.inactive:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark .column-toggle-btn.inactive:hover {
  background-color: #4b5563;
  border-color: #6b7280;
  color: #f3f4f6;
}

/* Deletable Column Indicator */
.column-toggle-btn.deletable {
  border-left: 4px solid #ef4444;
  padding-left: 12px;
}

.dark .column-toggle-btn.deletable {
  border-left: 4px solid #dc2626;
}

/* Primary Action Button in Tabulator */
.tabulator-action-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.tabulator-action-btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.tabulator-action-btn-primary:active {
  transform: translateY(0);
}

.dark .tabulator-action-btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* JAZ Highlight Styles für Tabulator */
.tabulator .tabulator-row.jaz-highlight-excellent {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%) !important;
  border-left: 4px solid #22c55e !important;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
  animation: highlightPulse 0.5s ease;
}

.tabulator .tabulator-row.jaz-highlight-good {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%) !important;
  border-left: 4px solid #10b981 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
  animation: highlightPulse 0.5s ease;
}

.tabulator .tabulator-row.jaz-highlight-acceptable {
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.15) 0%, rgba(234, 179, 8, 0.05) 100%) !important;
  border-left: 4px solid #eab308 !important;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.2);
  animation: highlightPulse 0.5s ease;
}

.tabulator .tabulator-row.jaz-highlight-improvement {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.15) 0%, rgba(249, 115, 22, 0.05) 100%) !important;
  border-left: 4px solid #f97316 !important;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
  animation: highlightPulse 0.5s ease;
}

.tabulator .tabulator-row.jaz-highlight-poor {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%) !important;
  border-left: 4px solid #ef4444 !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
  animation: highlightPulse 0.5s ease;
}

.tabulator .tabulator-row.jaz-highlight-all {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.15) 0%, rgba(124, 58, 237, 0.05) 100%) !important;
  border-left: 4px solid #7c3aed !important;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
  animation: highlightPulse 0.5s ease;
}

.dark .tabulator .tabulator-row.jaz-highlight-excellent {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.08) 100%) !important;
}

.dark .tabulator .tabulator-row.jaz-highlight-good {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.08) 100%) !important;
}

.dark .tabulator .tabulator-row.jaz-highlight-acceptable {
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.2) 0%, rgba(234, 179, 8, 0.08) 100%) !important;
}

.dark .tabulator .tabulator-row.jaz-highlight-improvement {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0.08) 100%) !important;
}

.dark .tabulator .tabulator-row.jaz-highlight-poor {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.08) 100%) !important;
}

.dark .tabulator .tabulator-row.jaz-highlight-all {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.2) 0%, rgba(124, 58, 237, 0.08) 100%) !important;
}

.dark .tabulator .tabulator-loader {
  background: rgba(31, 41, 55, 0.9);
}

/* Export Button Styling */
.tabulator-export-btn {
  padding: 6px 12px;
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tabulator-export-btn:hover {
  background-color: #2563eb;
}

.dark .tabulator-export-btn {
  background-color: #2563eb;
}

.dark .tabulator-export-btn:hover {
  background-color: #1d4ed8;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .tabulator .tabulator-cell {
    padding: 8px 6px;
    font-size: 0.875rem;
  }
  
  .tabulator .tabulator-header .tabulator-col .tabulator-col-content {
    padding: 10px 6px;
    font-size: 0.875rem;
  }
}

/* Accordion Styling for Parameter Settings */
.accordion-header {
  cursor: pointer;
  user-select: none;
  text-align: left;
  border: none;
  outline: none;
}

.accordion-header:active {
  transform: scale(0.99);
}

.accordion-icon {
  transition: transform 0.3s ease;
  font-size: 0.875rem;
}

.accordion-content {
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.accordion-content[style*="display: block"] {
  animation: accordion-open 0.3s ease-in-out;
}

.accordion-content[style*="display: none"] {
  animation: accordion-close 0.3s ease-in-out;
}

/* Gateway Accordion Styling */
.gateway-accordion-header {
  cursor: pointer;
  user-select: none;
  text-align: left;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.gateway-accordion-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #3b82f6, #6366f1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gateway-accordion-header:hover::before,
.gateway-accordion-header.gateway-open::before {
  opacity: 1;
}

.gateway-accordion-header:active {
  transform: scale(0.995);
}

.gateway-accordion-icon {
  transition: transform 0.3s ease;
}

.gateway-accordion-content {
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  max-height: 0;
}

.gateway-accordion-content[style*="display: block"] {
  max-height: none;
  animation: gateway-accordion-open 0.4s ease-in-out;
}

.gateway-accordion-content[style*="display: none"] {
  animation: gateway-accordion-close 0.3s ease-in-out;
}

@keyframes accordion-open {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 5000px;
  }
}

@keyframes accordion-close {
  from {
    opacity: 1;
    max-height: 5000px;
  }
  to {
    opacity: 0;
    max-height: 0;
  }
}

@keyframes gateway-accordion-open {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gateway-accordion-close {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Kompakte Gateway Cards */
.gateway-card {
  transition: all 0.2s ease;
}

.gateway-card:hover {
  box-shadow: 0 4px 12px -1px rgba(59, 130, 246, 0.15);
}

.card-readable {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.card-readable:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Gateway Accordion Header - Verbessert */
.gateway-accordion-header {
  position: relative;
}

.gateway-accordion-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, #3b82f6, #6366f1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gateway-accordion-header:hover::after {
  opacity: 1;
}

/* Gradient für offene Gateway Cards */
.gateway-accordion-header.gateway-open {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
}

.gateway-accordion-header.gateway-open h3,
.gateway-accordion-header.gateway-open span:not(.px-2),
.gateway-accordion-header.gateway-open i,
.gateway-accordion-header.gateway-open div {
  color: white !important;
}

.gateway-accordion-header.gateway-open .px-2 {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gateway Content Styling */
.gateway-accordion-content {
  border-top: 2px solid #e5e7eb;
}

.dark .gateway-accordion-content {
  border-top-color: #374151;
}

/* Section Headers im Content */
.gateway-accordion-content h4 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Responsive Anpassungen für Gateway Accordion */
@media (max-width: 640px) {
  .gateway-accordion-header {
    padding: 1rem !important;
  }
  
  .gateway-accordion-header h3 {
    font-size: 1rem !important;
  }
  
  .gateway-accordion-header .grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
}

/* ================================
   TABULATOR DARK MODE - COMPLETE FIX 2026
   ================================ */

/* Force all Tabulator text to be visible in dark mode */
.dark .tabulator,
.dark .tabulator * {
  color: #e5e7eb;
}

.dark .tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title {
  color: #f1f5f9 !important;
  font-weight: 600;
}

.dark .tabulator .tabulator-cell {
  color: #e5e7eb !important;
  background-color: transparent;
}

.dark .tabulator .tabulator-row .tabulator-cell a {
  color: #60a5fa !important;
}

.dark .tabulator .tabulator-row .tabulator-cell a:hover {
  color: #93c5fd !important;
}

/* Tabulator selected row */
.dark .tabulator .tabulator-row.tabulator-selected {
  background-color: rgba(59, 130, 246, 0.3) !important;
}

.dark .tabulator .tabulator-row.tabulator-selected .tabulator-cell {
  color: #f8fafc !important;
}

/* Tabulator group headers */
.dark .tabulator .tabulator-row.tabulator-group {
  background-color: #1f2937 !important;
  border-color: #374151 !important;
}

.dark .tabulator .tabulator-row.tabulator-group span {
  color: #f1f5f9 !important;
}

/* Tabulator popup/menu */
.dark .tabulator .tabulator-popup {
  background-color: #1f2937 !important;
  border-color: #4b5563 !important;
}

.dark .tabulator .tabulator-popup-button {
  color: #e5e7eb !important;
}

.dark .tabulator .tabulator-popup-button:hover {
  background-color: #374151 !important;
}

/* Tabulator no-data message */
.dark .tabulator .tabulator-placeholder span {
  color: #9ca3af !important;
}

/* Tabulator loader */
.dark .tabulator .tabulator-loader {
  background-color: rgba(15, 23, 42, 0.9) !important;
}

.dark .tabulator .tabulator-loader-msg {
  background-color: #1f2937 !important;
  color: #e5e7eb !important;
  border-color: #4b5563 !important;
}

/* Tabulator column calcs */
.dark .tabulator .tabulator-calcs-holder {
  background-color: #111827 !important;
  border-color: #374151 !important;
}

.dark .tabulator .tabulator-calcs-holder .tabulator-row {
  background-color: #111827 !important;
}

.dark .tabulator .tabulator-calcs-holder .tabulator-cell {
  color: #f1f5f9 !important;
  font-weight: 600;
}

/* Improve contrast for specific column content */
.dark .tabulator .tabulator-cell[tabulator-field="status"],
.dark .tabulator .tabulator-cell[tabulator-field="state"] {
  font-weight: 500;
}

/* Fix for editable cells */
.dark .tabulator .tabulator-cell.tabulator-editing {
  background-color: #1e293b !important;
  border-color: #60a5fa !important;
}

.dark .tabulator .tabulator-cell.tabulator-editing input {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #60a5fa !important;
}

/* Alarm-Tabelle (Phase 1 Quick-Win) */

/* Header niemals truncaten — Spaltenbreiten in JS-Config sind verbindlich */
#alarms-tabulator-table .tabulator-col-title {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

/* Beschreibung: einzeilige Ellipsis mit Tooltip-Fallback (tooltip im Tabulator-Config) */
#alarms-tabulator-table .tabulator-cell[tabulator-field="description"] .leading-tight > div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Alarm-Tabelle: Status-Header-Filter (Dropdown) auffälliger machen */
#alarms-tabulator-table .tabulator-col[tabulator-field="rectified"] .tabulator-header-filter select,
#alarms-tabulator-table .tabulator-col[tabulator-field="rectified"] .tabulator-header-filter input {
  background-color: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.7rem;
  padding: 2px 6px;
  color: #b91c1c;
  cursor: pointer;
}
.dark #alarms-tabulator-table .tabulator-col[tabulator-field="rectified"] .tabulator-header-filter select,
.dark #alarms-tabulator-table .tabulator-col[tabulator-field="rectified"] .tabulator-header-filter input {
  background-color: rgba(127, 29, 29, 0.3);
  border-color: #991b1b;
  color: #fca5a5;
}
#alarms-tabulator-table .tabulator-row.border-l-red-500 {
  border-left-color: #ef4444 !important;
  border-left-width: 3px !important;
  border-left-style: solid !important;
}
