section.container {
  position: relative;
  display: flex;
  flex-direction: column;
}
#module-abl_carton-init #main {
  position: relative;
  min-height: 50vh;
}

#module-abl_carton-init #cart_loader.active {
  width: 100% !important;
}

#module-abl_carton-init h2 {
  text-align: center;
}
#module-abl_carton-init form {
  display: flex;
  justify-content: center;
  gap: 10px;
}

#section_recherche {
  position: relative;
}

#section_recherche input {
  padding-right: 60px;
}

#section_recherche button {
  position: absolute;
  top: 0;
  height: 100%;
  right: 0;
  border: none;
}

.carton_pagination ul {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carton_pagination li:hover {
  cursor: pointer;
  font-weight: 800;
}
.carton_link_active {
  color: var(--header-color);
  font-weight: 800;
}

#carton_details {
  width: min-content;
  position: fixed;
  top: 20px;
  padding: 20px;
  background-color: var(--header-color);
  color: whitesmoke;
  z-index: 9;
}

#carton_details button {
  position: relative;
  left: 95%;
  background: transparent;
  border: none;
  color: white;
  font-weight: 900;
}

#carton_details p {
  color: whitesmoke;
  border-bottom: 1px solid whitesmoke;
}

#carton_details th,
#carton_details td {
  padding: 10px;
  text-align: center;
  vertical-align: middle;
}

#carton_details tr {
  border: 1px solid rgb(255, 255, 255);
}

.tableau_carton_commande {
  margin-top: 30px;
  overflow-x: scroll;
}

.tableau_carton_commande thead {
  background-color: #820d9a;
  color: whitesmoke;
}

.tableau_carton_commande thead th {
  text-align: center;
  padding: 5px;
}

.tableau_carton_commande p {
  margin: 0;
}

.tableau_carton_commande .carton_designation p:first-of-type {
  background-color: #0a0a0a;
  color: whitesmoke;
}

.tableau_carton_commande .carton_designation p:last-of-type {
  display: flex;
  justify-content: space-between;
}

.tableau_carton_commande .carton_designation button,
.tableau_carton_commande .carton_designation button:focus {
  background-color: transparent !important;
  border: none;
  outline: none;
  text-decoration: underline;
}

.tableau_carton_commande .carton_designation button:hover {
  color: #820d9a;
}

.tableau_carton_commande tr td:last-of-type {
  display: flex;
  justify-content: center;
}

.bootstrap-touchspin {
  display: flex;
}

@media screen and (max-width: 700px) {
  #form_search {
    flex-direction: column;
    padding: 0 20px;
  }

  .tableau_carton_commande tr th:nth-child(6),
  .tableau_carton_commande tr td:nth-child(6),
  .tableau_carton_commande tr th:nth-child(5),
  .tableau_carton_commande tr td:nth-child(5) {
    display: none;
  }

  .tableau_carton_commande form {
    flex-direction: column;
  }

  .tableau_carton_commande form input {
    width: 6em;
  }

  .link_modal {
    display: none;
  }
}
