* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Open Sans, sans-serif;
  font-size: 20px;
  background: rgb(2, 0, 36);
  background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(0, 205, 230, 1) 0%, rgba(181, 241, 248, 1) 0%, rgba(204, 245, 250, 1) 0%, rgba(255, 255, 255, 1) 100%, rgba(0, 212, 255, 1) 100%);
}


/* UTILITIES */


header {
  height: 100%;
  background-color: #007bff;
  color: #fff;
  padding: 20px 20px 4px 20px;
  border-bottom: solid 10px #fff;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  animation: fadein 2s;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar span {
  font-size: 28px;
  font-weight: bold;
}

img {
  height: 70px;
  width: auto;
}

.annulla {
  width: 100%;
  padding: 20px;
  border: none;
  border-radius: 4px;
  background-color: red;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.annulla {
  transform: scale(0.9);
}

/* .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 35px;
  padding: 8px;
} */

.actions {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 35px;
  padding: 8px;
  background: rgb(2, 0, 36);
  background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(0, 205, 230, 1) 0%, rgba(181, 241, 248, 1) 0%, rgba(204, 245, 250, 1) 0%, rgba(255, 255, 255, 1) 100%, rgba(0, 212, 255, 1) 100%);
}

.search {
  width: 100%;
  max-width: 600px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.icons-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.icons-btn button {
  font-size: 28px;
}

button {
  border: none;
  background-color: transparent;
}


#return-home-btn {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 16px;
  color: white;
  padding: 10px 0;
  cursor: pointer;
  background-color: #007bff;
  border-color: white;
  border-style: none;
  border-radius: 20px;
}

#return-home-btn:active {
  transform: scale(0.9);
}

.home-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  color: white;
  text-decoration: none;
  cursor: pointer;
  border-color: white;
  border-style: none;
  border-radius: 20px;
}

.home-btn:active {
  transform: scale(0.9);
}

/* Classe base per tutti i pulsanti */
.btn {
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Pulsante per azioni primarie (aggiungi, invia, ecc.) */
.btn-primary {
  color: #007bff;
}

.btn-primary:hover {
  color: #0056b3;
}

.btn-primary:active {
  transform: scale(0.9);
  color: #ffa700;
}

/* Pulsante per azioni pericolose (elimina, chiudi, ecc.) */
.btn-danger {
  color: red;
}

.btn-danger:hover {
  color: #b30000;
}

.btn-danger:active {
  transform: scale(0.9);
  color: #ffa700;
}


.blue {
  background-color: #007bff;
}


.sortable {
  cursor: pointer;
}

.sortable i {
  margin-left: 5px;
  margin-bottom: 5px;
}

.sortable:active {
  background-color: #13bbfd;
  transition: ease-in 0.2s;
}

.flex {
  display: flex;
  justify-content: center;
  align-items: center;
}


/* LOGIN */

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  height: auto;
  width: 100%;
}

.login {
  max-width: 90%;
  margin: 10px auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
}

.login form {
  font-size: 16px;
  font-weight: bold;
}

.login input {
  font-size: 14px;
  width: 100%;
  padding: 4px;
  margin: 8px 0;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.login .submit {
  padding: 10px;
  border: none;
  border-radius: 4px;
  background-color: #007bff;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.login .submit:active {
  transform: scale(0.9);
}

@media screen and (min-width:600px) {

  .login {
    margin: 10px auto;
  }

  .login input {
    margin: 10px 0;
  }

  .logo img {
    width: 40%;
  }

}

/* INDEX.HTML */

.option-text {
  margin-top: 20px;
}

.nav {
  padding: 10px;
  animation: 0.2s ease-out 0s 1 slideInFromLeft;
}

.nav ul {
  list-style-type: none;
}

.nav ul li {
  padding: 10px;
  font-weight: bold;
  border-bottom: 1px solid #5b5b5b;
}

.nav ul li:last-child {
  border-bottom: none;
}

.nav ul li a {
  display: flex;
  justify-content: space-between;
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav ul li a:hover {
  color: #13bbfd;
}

/* TABLE */

table {
  max-height: 400px;
  width: 100%;
  margin: 0 auto;
  font-size: 12px;
  text-align: start;
  animation: 0.2s ease-out 0s 1 slideInFromLeft;
}

table thead {
  position: sticky;
  font-size: 10px;
  text-transform: uppercase;
  text-align: center;
  color: #374151;
  background-color: #cdcdcd;
  z-index: 1;
}

table thead th {
  padding: 10px 8px;
}

table th,
td {
  text-align: center;
  text-transform: uppercase;
  padding: 10px 10px;
  border-bottom: 2px groove;
}

.tabella tbody tr:active {
  background-color: #13bbfd;
  transition: ease-in 0.1s;
}

.t-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-size: 18px;
}

table .btn {
  display: flex;
  align-items: center;
  max-width: max-content;
  gap: 4px;
  color: white;
  text-decoration: none;
  padding: 4px;
  border-radius: 10px;
  border-style: none;
  cursor: pointer;
}

table .btn:active {
  transform: scale(0.9);
}

#inputText {
  width: 80%;
  font-size: 16px;
  padding: 12px 20px 12px 40px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.expandable-row {
  display: grid;
  grid-template-columns: 10% minmax(80px, 1fr) minmax(80px, 1fr) minmax(80px, 1fr);
  cursor: pointer;
}

.expanded-row-content {
  /* display: grid;   */
  grid-column: 1/-1;
  justify-content: center;
  text-align: start;
  animation: 0.2s ease-in-out 0s 1 slideInFromTop;
  animation-direction: alternate;
}

.hide-row {
  display: none;
}

.row-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 0 20px;
}

.row-content-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.pagination a {
  color: #007bff;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
}

@media screen and (min-width:600px) {

  .row-content {
    flex-direction: row;
  }

  #return-home-btn {
    max-width: max-content;
  }


}

/* Aggiunta per centrare il testo delle celle specifiche */
/* .center-text { */
/* text-align: center; */
/* } */


/* FORM */

.form {
  max-width: 90%;
  margin: 20px auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  animation: 0.2s ease-out 0s 1 slideInFromLeft;
}

.form form {
  font-weight: bold;
  margin-top: 20px;
}

.form input {
  font-size: 16px;
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.form select {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}


.form .submit, .filter .submit {
  padding: 20px;
  border: none;
  border-radius: 4px;
  background-color: #007bff;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.form .submit:hover, .filter .submit:hover {
  background-color: #007bff;
}

.form .submit:active .filter .submit:active {
  transform: scale(0.9);
}

.form p {
  font-style: bold;
  font-size: 28px;
}

/* RICERCA E AGGIUNGI UTENTI */

.skip-verification {
  display: flex;
  align-items: center;
}

.skip-verification label {
  cursor: pointer;
}

.skip-verification input {
  height: 25px;
  width: 25px;
  cursor: pointer;
}

/* ACTIVE SESSION */

.disconnect-btn {
  color: white;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  border-style: none;
  background-color: red;
}

.disconnect-btn:active {
  transform: scale(0.9)
}


/* STORICO VAUCHER */

.container {
  text-align: center;
  margin-top: 50px;
  padding: 0 20px;
  animation: 0.2s ease-out 0s 1 slideInFromLeft;
}

.buttons {
  margin-bottom: 20px;
}

.buttons button {
  margin: 5px;
  padding: 10px 20px;
  font-size: 18px;
  border: none;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}

.buttons button:active {
  transform: scale(0.9);
}

.content {
  padding: 18px;
  margin-top: 18px;
}

.content div {
  max-width: 90%;
  margin: 20px auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  animation: 0.2s ease-out 0s 1 slideInFromLeft;
}

.popup-buttons {
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

.popup-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.popup-buttons input {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.popup-buttons input:active {
  transform: scale(0.9);
}

.cancel-button {
  background: #d9534f;
  color: white;
  ;
}

.continue-button {
  background: #007bff;
  color: white;
}

.cancel-button:active,
.continue-button:active {
  transform: scale(0.9);
}


@media screen and (max-width:600px) {
  .responsive td {
    display: block;
    text-align: start;
  }

  .responsive {
    position: absolute;
    width: 100%;
  }
}

.icon {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}


@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes slideInFromTop {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes fadein {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}


@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}