/* Analytics table responsive styling - přidat na konec superchargers.css */

/* Základní styling pro analytics tabulku */
.analytics-table {
  min-width: 800px; /* Širší kvůli více sloupcům */
  margin-bottom: 0;
}

/* Mobilní optimalizace pro analytics */
@media (max-width: 768px) {
  .analytics-table {
    font-size: 0.875rem;
    min-width: 700px;
  }
  
  .analytics-table th,
  .analytics-table td {
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
  }
}

/* Velmi malé obrazovky */
@media (max-width: 480px) {
  .analytics-table {
    font-size: 0.8rem;
    min-width: 650px;
  }
  
  .analytics-table th,
  .analytics-table td {
    padding: 0.4rem 0.6rem;
  }
}

/* Sticky první sloupec pro analytics */
.analytics-table th:first-child,
.analytics-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 2px 0 4px rgba(0,0,0,0.1);
}

/* Pozadí pro analytics sticky sloupec */
.analytics-table th:first-child {
  background: #f8f9fa;
  z-index: 3;
}

.analytics-table td:first-child {
  background: white;
}

.analytics-table tr:hover td:first-child {
  background: #f8f9fa;
}

/* Gradient na kraji analytics sticky sloupce */
.analytics-table th:first-child::after,
.analytics-table td:first-child::after {
  content: '';
  position: absolute;
  top: 0;
  right: -8px;
  bottom: 0;
  width: 8px;
  background: linear-gradient(to right, rgba(0,0,0,0.1), transparent);
  pointer-events: none;
}

/* Word wrapping pro analytics sticky sloupec */
@media (max-width: 768px) {
  .analytics-table th:first-child,
  .analytics-table td:first-child {
    min-width: 120px;
    max-width: 150px;
    width: 140px;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
    padding: 0.4rem 0.6rem;
  }
  
  /* Ostatní sloupce analytics tabulky */
  .analytics-table th:not(:first-child),
  .analytics-table td:not(:first-child) {
    white-space: nowrap;
  }
}

/* Velmi malé obrazovky pro analytics */
@media (max-width: 480px) {
  .analytics-table th:first-child,
  .analytics-table td:first-child {
    min-width: 100px;
    max-width: 120px;
    width: 110px;
    font-size: 0.8rem;
    line-height: 1.2;
  }
}