/* Contenitore principale */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 20px auto;
  border-radius: 8px;
  background: #f9fbfd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 8px;
}

/* Tabella base */
.responsive-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #1a1a1a;
}

/* Intestazioni */
.responsive-table th {
  background-color: #003366;        /* Blu BMW */
  color: #ffffff;
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Celle normali */
.responsive-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #dce3ed;
  vertical-align: top;
}

/* Riga alternata */
.responsive-table tr:nth-child(even) {
  background-color: #f0f6fb;        /* Azzurrino chiaro */
}

/* Effetto hover */
.responsive-table tr:hover {
  background-color: #e5f0fa;
  transition: background-color 0.2s ease-in-out;
}

/* Ombra leggera sotto la tabella */
.responsive-table {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Stile mobile */
@media (max-width: 768px) {
  .responsive-table thead {
    display: none;
  }

  .responsive-table tr {
    display: block;
    margin-bottom: 10px;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  }

  .responsive-table td {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid #e0e6ef;
  }

  .responsive-table td:last-child {
    border-bottom: none;
  }

  .responsive-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #003366;
    text-transform: uppercase;
  }
}
