/* @media (max-width: 768px) {
  .table-responsive {
    border: 0;
  }
}

@media (max-width: 768px) {
  #dataTable thead {
    display: none;
  }
}

@media (max-width: 768px) {
  #dataTable tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
}

@media (max-width: 768px) {
  #dataTable tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border: none;
    border-bottom: 1px solid #f0f0f0;
  }
}

@media (max-width: 768px) {
  #dataTable tbody td:last-child {
    border-bottom: none;
    justify-content: center;
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  #dataTable tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    margin-right: 1rem;
    color: #6c757d;
    min-width: 100px;
  }
}

@media (max-width: 768px) {
  #dataTable tbody td:last-child::before {
    display: none;
  }
}

@media (max-width: 768px) {
  #dataTable tbody td button.btn-link {
    flex-shrink: 0;
  }
} */

/* Responsive table che diventa card su mobile - UNIVERSALE */

/* @media (max-width: 768px) {
  .table-responsive {
    border: 0;
  }
}

@media (max-width: 768px) {
  .table-responsive thead {
    display: none;
  }
}

@media (max-width: 768px) {
  .table-responsive tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
}

@media (max-width: 768px) {
  .table-responsive tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border: none;
    border-bottom: 1px solid #f0f0f0;
  }
}

@media (max-width: 768px) {
  .table-responsive tbody td:last-child {
    border-bottom: none;
    justify-content: center;
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .table-responsive tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    margin-right: 1rem;
    color: #6c757d;
    min-width: 100px;
  }
}

@media (max-width: 768px) {
  .table-responsive tbody td:last-child::before {
    display: none;
  }
} */

@media (max-width: 768px) {
  .table-responsive {
    border: 0;
  }
}

@media (max-width: 768px) {
  .table-responsive thead {
    display: none;
  }
}

@media (max-width: 768px) {
  .table-responsive tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    /*border-radius: 0.375rem;*/
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
  }
}

/* Header compatto sempre visibile */

@media (max-width: 768px) {
  .table-responsive tbody td.mobile-header {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem;
    border: none;
    border-bottom: 1px solid #dee2e6;
    /*background-color: #f8f9fa;*/
  }
}

@media (max-width: 768px) {
  .table-responsive tbody td.mobile-header::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .mobile-header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 768px) {
  .mobile-event-name {
    font-weight: 600;
    font-size: 0.95rem;
    /*color: #212529;*/
  }
}

@media (max-width: 768px) {
  .mobile-center-name {
    font-size: 0.85rem;
    color: #6c757d;
  }
}

@media (max-width: 768px) {
  .mobile-date {
    font-size: 0.85rem;
    /*color: #495057;*/
    text-align: right;
    white-space: nowrap;
    margin-left: 0.5rem;
  }
}

/* Toggle dettagli */

@media (max-width: 768px) {
  .mobile-details-toggle {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    border: none;
    /*background-color: #fff;*/
    cursor: pointer;
    color: #0d6efd;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s;
  }
}

@media (max-width: 768px) {
  .mobile-details-toggle:hover {
    /*background-color: #f8f9fa;*/
  }
}

@media (max-width: 768px) {
  .mobile-details-toggle::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .mobile-details-toggle i {
    margin-left: 0.5rem;
    transition: transform 0.2s;
  }
}

@media (max-width: 768px) {
  .mobile-details-toggle.expanded i {
    transform: rotate(180deg);
  }
}

/* Dettagli nascosti di default */

@media (max-width: 768px) {
  .table-responsive tbody td.mobile-detail {
    display: none !important;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border: none;
    border-bottom: 1px solid #f0f0f0;
  }
}

@media (max-width: 768px) {
  .table-responsive tbody tr.expanded td.mobile-detail {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .table-responsive tbody td.mobile-detail::before {
    content: attr(data-label);
    font-weight: 600;
    margin-right: 1rem;
    color: #6c757d;
    min-width: 100px;
  }
}

/* Azioni sempre visibili nei dettagli */

@media (max-width: 768px) {
  .table-responsive tbody td.mobile-actions {
    display: none !important;
    justify-content: center;
    padding: 1rem;
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .table-responsive tbody tr.expanded td.mobile-actions {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .table-responsive tbody td.mobile-actions::before {
    display: none;
  }
}

