.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  background-color: #fafafa;
  padding: 0.5em;
}

/* Tabelle */
.table-container table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
}

.table-container th {
  padding: 10px 8px;
  text-align: left;
  white-space: nowrap;
  background-color: #f3f4f6;
  color: #374151;
  font-weight: 600;
  border-bottom: 2px solid #d1d5db;
}

.table-container td {
  border: 1px solid #e5e7eb !important;
  padding: 8px 10px;
  white-space: nowrap;
  color: #333;
  transition: background-color 0.15s ease;
}

.rightalignedtd {
  text-align: right !important;
}

.table-container tr:hover td {
  background-color: #f9fafb;
}

.table-container .last-td {
  border: none !important;
}

.table-footer {
  font-size: 0.8em;
  font-style: italic;
  margin-top: 1em !important;
}

/* Pulsanti */
.table-container table button {
  font-size: 15px;
  background-color: rgb(255, 196, 0);
  color: black;
  font-weight: 600;
  padding: 6px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.table-container table button:hover {
  background-color: rgb(255, 210, 60);
  transform: translateY(-1px);
}

.table-container table button:active {
  transform: translateY(0);
}

/* Filtri */
#filters {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 0.5em 0;
}

#filters label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.9em;
  color: #374151;
  font-weight: 500;
}

#filters select,
#filters input[type="text"],
#filters input[type="number"] {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 14px;
  background-color: #fff;
  color: #111;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#filters select:focus,
#filters input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

@media (max-width: 600px) {
  #filters {
    flex-direction: column;
  }

  #filters > div {
    width: 100%;
  }

  .table-container th,
  .table-container td {
    font-size: 13px;
  }

  .table-container table button {
    font-size: 14px;
    padding: 5px 12px;
  }
}


tr {
  cursor: pointer;
}

details {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0.6em 0.8em;
  background: linear-gradient(180deg, #fafafa, #f3f4f6);
  transition: all 0.25s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

details:hover {
  border-color: #9ca3af;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #fefefe, #f0f1f3);
}

summary {
  cursor: pointer;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  list-style: none;
  display: flex;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "▶";
  display: inline-block;
  margin-right: 8px;
  color: #6b7280;
  font-size: 13px;
  transition: transform 0.25s ease, color 0.25s ease;
}

details[open] summary::before {
  transform: rotate(90deg);
  color: #2563eb;
}

details p {
  margin: 10px 0 0;
  color: #4b5563;
  line-height: 1.5;
  font-size: 14px;
  padding-left: 1.5em;
}
