/* ===== TABELLA MOBILE OTTIMIZZATA ===== */
@media (max-width: 767.98px) {
  /* Struttura base tabella mobile */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    width: calc(100% + 1.5rem);
  }


  .table {
    width: auto;
    min-width: 100%;
  }

  .table thead {
    display: none;
  }

  .table tbody tr {
    display: block;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
  }

  .table tbody tr:last-child {
    border-bottom: 0;
  }

  .table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border: none;
    text-align: right;
  }

  /* Etichette colonne (tranne azioni) */
  .table td:not([data-label="Azioni"]):before {
    content: attr(data-label);
    font-weight: 600;
    padding-right: 1rem;
    text-align: left;
    flex: 1;
    color: #6c757d;
    font-size: 0.85rem;
  }

  /* COLONNA AZIONI SPECIFICA */
  td.text-end.pe-4[data-label="Azioni"]:before {
    display: none !important; /* Rimuove l'etichetta */
  }

  td.text-end.pe-4[data-label="Azioni"] {
    justify-content: center !important;
    padding-top: 0.75rem !important;
    border-top: 1px dashed #e9ecef !important;
    margin-top: 0.5rem !important;
  }

  td.text-end.pe-4[data-label="Azioni"] .d-flex {
    gap: 1.5rem !important; /* Mantiene il gap-4 (1.5rem ≈ 24px) */
    justify-content: center !important;
    width: 100% !important;
  }

  /* Pulsanti azione */
  .action-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  .action-btn i {
    font-size: 15px;
  }

  /* Ottimizzazione icone veicolo */
  .vehicle-icon {
    width: 32px !important;
    height: 32px !important;
  }


}

/* ===== STILE BASE PULSANTI (per tutti i dispositivi) ===== */
.action-btn {
  transition: all 0.2s ease;
}

.action-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Effetto al tocco per mobile */
@media (hover: none) {
  .action-btn:active {
    transform: scale(0.95);
  }
}



    .pagination .page-item.active .page-link {
        background-color: var(--rk-primary);
        border-color: var(--rk-primary);
    }
    
    .pagination .page-link {
        color: var(--rk-primary);
        min-width: 38px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .pagination .page-link:hover {
        color: #0a58ca;
        background-color: #e9ecef;
    }
    
    .pagination .page-item.disabled .page-link {
        color: #6c757d;
    }
    
    .pagination .page-item:not(.active):not(.disabled) .page-link {
        background-color: white;
    }