/*---------------------------------------------------------------/* Stili personalizzati per le liste Fabrik - Classifiche */

/* Stile ottimizzato per la tabella */
table.fabrikList {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin-bottom: 15px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  border-radius: 4px;
  overflow: hidden;
}

/* Ottimizzazione delle intestazioni */
table.fabrikList thead th {
  background-color: #0288d1 !important;
  color: white !important;
  font-weight: 500 !important;
  text-align: left !important;
  padding: 12px 15px !important;
  font-size: 14px !important;
  border-bottom: 2px solid #0277bd !important;
}

/* Ottimizzazione delle celle */
table.fabrikList tbody td {
  padding: 10px 15px !important;
  border-bottom: 1px solid #e0e0e0 !important;
  font-size: 14px !important;
  vertical-align: middle !important;
  transition: background-color 0.15s ease;
}

/* Righe alternate per migliorare la leggibilità */
table.fabrikList tbody tr:nth-child(even) {
  background-color: #f5f9fc !important;
}

/* Effetto hover sulle righe */
table.fabrikList tbody tr:hover td {
  background-color: #e3f2fd !important;
}

/* Stile per le icone PDF */
table.fabrikList a[href$=".pdf"] img,
table.fabrikList img[src*="pdf"] {
  transition: transform 0.3s ease;
  max-width: 40px;
}

table.fabrikList a[href$=".pdf"]:hover img,
table.fabrikList a:hover img[src*="pdf"] {
  transform: scale(1.15);
}

/* Miglioramento paginazione */
.pagination {
  margin-top: 15px;
  display: inline-flex;
  border-radius: 4px;
  overflow: hidden;
}

.pagination li {
  display: inline-block;
  margin: 0;
}

.pagination a, 
.pagination span {
  padding: 6px 12px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.pagination a:hover {
  background-color: #e0e0e0;
}

.pagination li.active span {
  background-color: #0288d1;
  color: white;
  border-color: #0277bd;
}

/* Ottimizzazione dei filtri */
.fabrikFilterContainer {
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 6px;
  margin-bottom: 15px;
}

.fabrikFilterContainer input, 
.fabrikFilterContainer select {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Stile per bottoni di azione */
a.fabrikTip {
  display: inline-block;
  background-color: #f5f5f5;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

a.fabrikTip:hover {
  background-color: #e0e0e0;
}

/* Ottimizzazione per dispositivi mobili */
@media (max-width: 768px) {
  table.fabrikList {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  table.fabrikList thead th,
  table.fabrikList tbody td {
    padding: 8px 10px !important;
    font-size: 13px !important;
  }
}

/* Animazione di caricamento */
.fabrikDataContainer {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}