@import "geist/font/geist-sans.css";
@import "geist/font/geist-mono.css";

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 0;

  font-family: "Geist Sans", sans-serif;
}

#form-title {
  display: inline-block;

  padding: 10px 20px;
  box-sizing: border-box;

  background-color: aliceblue;
  border: 1px solid lightblue;
  border-radius: 10px;
}

#ae-client-form-no-vat-container {
  display: block; /* Fixed: Changed from 'none' to show the page */
  width: 90%;
  box-sizing: border-box;
  padding: 20px;
}

#ae-client-form-no-vat {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

/* Sections du formulaire */
#ae-client-form-no-vat-part-1,
#ae-client-form-no-vat-part-2,
#ae-client-form-no-vat-part-3,
#ae-client-form-no-vat-part-4,
.ae-client-form-no-vat-part-5 {
  width: 450px;
  box-sizing: border-box;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 1px solid lightblue;

  background: white;
}

#ae-logo-size {
  font-size: 12px;
  font-style: italic;
}

/* Bouton Ajouter un produit */
#ae-add-element-button {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 20px;
  box-sizing: border-box;
  padding: 10px;

  border: 2px solid #33b5e5;
  border-radius: 5px;

  background: #33b5e5;
}

#ae-add-element-button:hover {
  cursor: pointer;
  background-color: #e0ffff;
}

#ae-client-form-no-vat-right-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#ae-client-form-no-vat input {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 350px;
  margin-bottom: 10px;

  border-radius: 5px;
  border: 1px solid black;
}

#ae-client-form-no-vat select {
  width: 355px;
  border: 1px solid black;
  border-radius: 5px;
}

#ae-client-form-no-vat textarea {
  display: block;
  resize: none;

  width: 350px;
  height: 100px;
  margin-bottom: 10px;

  border-radius: 5px;
  border: 1px solid black;
}

#list-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  margin: 10px 0;
}

#item-type-1 {
  width: 355px;
  border: 2px solid black;
  border-radius: 5px;
}

/* Bouton de validation */
#ae-client-form-no-vat-submit-button {
  box-sizing: border-box;
  padding: 10px;

  border: 2px solid #33b5e5;
  border-radius: 5px;

  background-color: #33b5e5;
}

#ae-client-form-no-vat-submit-button:hover {
  cursor: pointer;
  background-color: #e0ffff;
}

#ae-client-form-no-vat-part-7 {
  position: -webkit-sticky;
  position: sticky;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: flex-start;

  width: 450px;
  box-sizing: border-box;

  top: 20px;
  gap: 20px;
}

#ae-service-total,
#ae-product-total,
#ae-global-total {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  width: 450px;
  border: 1px solid lightblue;
  border-radius: 10px;

  padding: 5px;
  box-sizing: border-box;

  background: white;
}

#ae-global-total {
  background-color: aliceblue;
}

#ae-product-total-ht,
#ae-product-total-tva,
#ae-product-total-ttc,
#ae-service-total-ht,
#ae-service-total-tva,
#ae-service-total-ttc,
#ae-global-total-ht,
#ae-global-total-tva,
#ae-global-total-ttc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 435px;
}

/* SPINNER */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 10px;

  /* The "Track" - very light grey */
  border: 2px solid rgba(0, 0, 0, 0.1);

  /* The "Gradient" part - Solid Black on top */
  border-top: 2px solid #000000;

  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

/* MOBILE */
@media screen and (max-width: 500px) {
  #ae-client-form-no-vat-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
  }

  #ae-client-form-no-vat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0;

    gap: 10px;
  }

  #ae-client-form-no-vat-part-1,
  #ae-client-form-no-vat-part-2,
  #ae-client-form-no-vat-part-3,
  #ae-client-form-no-vat-part-4,
  .ae-client-form-no-vat-part-5 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    width: 100%;
    min-width: 350px;
    align-self: center;
    padding: 10px;
    margin-bottom: 10px;

    font-size: 12px;

    border-radius: 5px;
    border: 1px solid lightblue;
    box-sizing: border-box;
  }

  #ae-client-form-no-vat-part-4 {
    margin-bottom: 0;
  }

  #ae-logo-size {
    font-size: 10px;
    font-style: italic;
  }

  #ae-add-element-button {
    color: black !important;
    font-size: 10px;
    -webkit-appearance: none;
    appearance: none;
    -webkit-border-radius: 5px;
  }

  .delete-element-button {
    font-size: 12px;
  }

  #ae-client-form-no-vat input,
  #ae-client-form-no-vat select,
  #ae-client-form-no-vat textarea {
    width: 250px;
    border: 1px solid black;
  }

  #ae-client-form-no-vat-part-7 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
    margin: 0 auto;
    top: 20px;
    gap: 10px;
  }

  #ae-client-form-no-vat-submit-button {
    font-size: 10px;
    -webkit-appearance: none;
    appearance: none;
    -webkit-border-radius: 5px;
  }

  #ae-service-total,
  #ae-product-total,
  #ae-global-total {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 350px;
    border: 1px solid lightblue;
    border-radius: 5px;
    font-size: 12px;
    padding: 5px;
    box-sizing: border-box;
  }

  #ae-product-total-ht,
  #ae-product-total-tva,
  #ae-product-total-ttc,
  #ae-service-total-ht,
  #ae-service-total-tva,
  #ae-service-total-ttc,
  #ae-global-total-ht,
  #ae-global-total-tva,
  #ae-global-total-ttc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 12px;
  }
}
