/* Définir la police avec @font-face */
@font-face {
  font-family: 'Ubuntu';
  src: url('../fonts/ubuntu/Ubuntu-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary-color: #284183;
  --titre-color: #604A7B;
  --th-color: rgb(103, 196, 103);
  --font-family: 'Ubuntu', 'Segoe UI', Arial, sans-serif;
}

/* Application du Flexbox pour toute la page */
html,
body {
  height: 100%;
  /* Assure que le body occupe toute la hauteur */
  margin: 0;
  /* Supprime les marges par défaut */
  display: flex;
  flex-direction: column;
}

body {
  height: auto;
  margin: 0;
  font-family: 'Ubuntu', 'Segoe UI', Arial, sans-serif;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.btn-connexion {
  display: flex;
  text-align: center;
  border: 1px solid gray;
  border-radius: 5px;
  height: 30px;
  margin: auto;
  width: auto;
  padding: 5px 10px;
  background-color: var(--primary-color);
  color: white;
  transition: 1s;
}

.btn-connexion:hover {
  color: var(--primary-color);
  background-color: white;
}

.section-connexion {
  margin: 10px auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-main {
  margin: 70px auto 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}



.section-main .h2 {
  text-align: center;
  font-size: 30px;
  color: white;
  padding: 3px 10px;
  border-radius: 3px;
  margin: 15px;
  width: 50%;
}

.section-main-details {
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-connexion {
  width: 250px;
  margin: 0px auto 30px auto;
}

.login-container {
  margin: auto;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 350px;
  padding: 2.5rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1.2s cubic-bezier(.39, .575, .56, 1) both;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-container h1 {
  margin-bottom: 1.5rem;
  color: #0f4071;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 2rem;
  text-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

.login-container form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.input-group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.input-group input {
  width: 250px;
  padding: 5px 10px;
  border: 0.8px solid grey;
  border-radius: 5px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.7);
  transition: box-shadow 0.2s, background 0.2s;
  text-align: center;
  height: 30px;
  font-size: 14px;
}

.input-group input:focus {
  outline: none;
  background: #eaf6fb;
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.13);
}


.login-container .label-connexion {
  margin-bottom: 0.3rem;
  font-weight: 500;
  position: absolute;
  font-size: 13px;
  top: -10px;
  left: 44px;
  background: white;
  color: #0f4172;
}

.login-container button {
  padding: 0.9rem 0;
  background: linear-gradient(90deg, #0f4071, #2980b9, #6dd5fa);
  color: #fff;
  border: none;
  border-radius: 0.7rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.13);
  transition: background 0.2s, transform 0.2s;
  margin-top: 0.5rem;
  letter-spacing: 1px;
}

.login-container button:hover {
  background: linear-gradient(90deg, #6dd5fa, #2980b9);
  transform: translateY(-2px) scale(1.04);
}

.login-container p {
  color: #e74c3c;
  margin-bottom: 1rem;
  font-size: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0.5rem;
  padding: 0.5rem 0.7rem;
}

@media (max-width: 480px) {
  .login-container {
    width: 95vw;
    padding: 1.2rem 0.5rem 1.5rem 0.5rem;
  }

  .login-container h1 {
    font-size: 1.3rem;
  }
}

.loader {
  display: flex;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 214px;
  height: 214px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  background-color: #f7fafb;
  z-index: 3;
  border-radius: 10px;
}

.div-select {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 435px;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}

.div-select .label {
  text-align: center;
  margin: 0;
}

.div-select .select {
  text-align: center;
  border: 0.5px solid gray;
  border-radius: 5px;
  height: 30px;
  background-color: white;
  margin: 10px auto;
}

.img-excel {
  width: 30px;
  height: 30px;
  margin: 10px auto;
  display: block;
}

/**
 * Alerte notification styles
 */
.toast-container {
  position: fixed;
  top: 25px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  font-family: 'Ubuntu', 'Segoe UI', Arial, sans-serif;
}

.toast {
  position: relative;
  width: 320px;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  ;
  box-shadow: 0 6px 20px -5px rgba(0, 0, 0, 0.1);
  display: flex;
  overflow-x: hidden;
  align-items: center;
  transform: translateX(calc(100% + 30px));
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
  z-index: 3;
}

.toast.active {
  transform: translateX(0%);
}

.toast .toast-content {
  display: flex;
  align-items: center;
}

.toast-content .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  min-width: 35px;
  font-size: 35px;
  color: #fff;
}

.toast-content .message {
  display: flex;
  flex-direction: column;
  margin-left: 15px;
}

.message .text {
  font-size: 16px;
  font-weight: 400;
  color: #666666;
  font-family: "Ubuntu", serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.message .text.text-1 {
  font-weight: 900;
  color: #333;
  font-size: 19px;
}

.toast .close {
  position: absolute;
  top: 10px;
  right: 15px;
  padding: 5px;
  cursor: pointer;
  opacity: 0.7;
}

.toast .close:hover {
  opacity: 1;
}

.toast .progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
}

.toast .progress:before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background-color: #4070f4;
}

/* If you edit the timeout variable in the JS, be sure to edit this too */
.progress.active:before {
  animation: progress 2s linear forwards;
}

@keyframes progress {
  100% {
    right: 100%;
  }
}

/* Toast Type Colors */
.toast.success .fa-check-circle {
  color: rgb(25 135 84);
}

.toast.success .fa-check-circle {
  font-size: 25px;
}

.toast.error .icon {
  color: rgb(220 53 69);
}

.toast.warning .icon {
  color: rgb(255 193 7);
}

.toast.info .icon {
  color: rgb(13 202 240);
}

.toast.success .progress:before {
  background: rgb(25 135 84);
}

.toast.error .progress:before {
  background: rgb(220 53 69);
}

.toast.warning .progress:before {
  background: rgb(255 193 7);
}

.toast.info .progress:before {
  background: rgb(13 202 240);
}

.th-users,
.td-users {
  width: 150px;
  text-align: center !important;
}

.titre-labo {
  text-align: center;
  font-size: 30px;
  margin: 30px auto;
  color: var(--primary-color)
}

.select-recherche {
  display: none;
  list-style: none;
  padding: 0;
  margin: 4px 0;
  border: 1px solid #ccc;
  max-height: 150px;
  overflow-y: auto;
  background: white;
  position: absolute;
  width: 100%;
  z-index: 1000;
}

.fa-trash {
  margin-left: 10px;
  color: red;
  cursor: pointer;
}

.section-main-import {
  margin: 70px auto 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.section-main-import h1 {
  margin: 30px 0 0 0;
}

.section-main-import h2 {
  text-align: center;
  font-size: 18px;
  margin: 0 0 10px 0;
}

.section-main-import h3 {
  text-align: center;
  font-size: 12px;
  margin: 0 0 5px 0;
}

.section-main-import .div-form-import {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin: auto;
}

.section-main-import .div-form-import .div-gauche {
  display: flex;
  flex-direction: column;
  width: 50%;
  margin: auto;
}

.section-main-import .div-form-import .div-droite {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 50%;
  margin: auto;

}


.section-main-import form {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2rem;
  padding: 5px 10px;
  background-color: #f9f9f9;
  border: 2px dashed #ccc;
  border-radius: 10px;
  width: 60%;
  margin: 2rem auto;
  height: 50px;
}

.section-main-import .imported-yes {
  background-color: #c8f7c5;
}

.section-main-import table {
  border-collapse: collapse;
  width: auto;
  margin: 40px auto;
  table-layout: fixed;
}

.section-main-import table thead {
  display: contents;
}

.section-main-import table thead th {
  width: 100px;
  word-wrap: break-word;
  border: 1px solid black;
  padding: 6px 8px;

}

.section-main-import table td {
  border: 1px solid #ccc;
  padding: 6px 8px;
  text-align: left;
  font-size: 13px;
  text-align: center;
  width: 200px;
  word-wrap: break-word;

}

.file-label {
  display: flex;
  flex-direction: column;
  align-items: start;
  background-color: #ffffff;
  padding: 5px;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.3s ease;
  margin: 0;
}

.file-label:hover {
  border-color: #7cbf56;
}

.file-label input[type="file"] {
  display: none;
}

.file-label span {
  font-weight: 500;
  color: #333;
}

.btn-import {
  padding: 0.75rem 1.25rem;
  background-color: #4CAF50;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: var(--font-family);

}

.btn-import:hover {
  background-color: #45a049;
}

.div-erreur-import {
  margin: 150px auto 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.div-erreur-import .p-message1 {
  color: red;
  font-weight: 700;
}

.div-erreur-import li {
  font-weight: 700;
}

.select-view {
  border: 3px solid var(--primary-color);
  background-color: white;
  font-family: var(--font-family);
}

.listeRapportFastReport {
  position: absolute;
  flex-direction: column;
  width: 15%;
  background-color: #fefefe;
  border: 0.5px solid rgb(192, 191, 191);
  box-shadow: 2px 2px 2px rgb(192, 191, 191);
  border-radius: 2px;
  z-index: 3;
  font-size: 14px;
}

.listeRapportFastReport .li-report {
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 3px;
}

.listeRapportFastReport .li-report:hover {
  background-color: rgb(167, 236, 167);
}

.modal-mouse-type-source {
  position: absolute;
  flex-direction: column;
  width: 12%;
  background-color: #fefefe;
  border: 0.5px solid rgb(192, 191, 191);
  box-shadow: 2px 2px 2px rgb(192, 191, 191);
  border-radius: 2px;
  z-index: 3;
  font-size: 14px;
}

.modal-mouse-type-source li {
  padding: 3px 0px;
  cursor: pointer;
  border-radius: 3px;
}

.modal-mouse-type-source li:hover {
  background-color: rgb(167, 236, 167);
}

.modal-mouse-type-source .fa-window-close {
  position: relative;
  color: red;
  display: flex;
  justify-content: right;
  margin: 0;
}

.table-liste-code-lot {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  /* indispensable pour que les width soient respectées */
}

.table-liste-code-lot td,
.table-liste-code-lot th {
  border-right: 1px solid #eeeeee;
  overflow: hidden;
  /* cache le texte qui dépasse */
  text-overflow: ellipsis;
  /* met "..." si le texte est trop long */
  white-space: nowrap;
  /* empêche le retour à la ligne */
}

/* Largeurs spécifiques */
.table-liste-code-lot th:nth-child(1),
.table-liste-code-lot td:nth-child(1) {
  width: 40%;
}

.table-liste-code-lot th:nth-child(2),
.table-liste-code-lot td:nth-child(2) {
  width: 20%;
  font-size: 10px;
}

.table-liste-code-lot th:nth-child(3),
.table-liste-code-lot td:nth-child(3) {
  width: 10%;
  font-size: 10px;
}

.table-liste-code-lot th:nth-child(4),
.table-liste-code-lot td:nth-child(4) {
  width: 30%;
  font-size: 10px;
}

.fa-caret-right {
  margin-left: 5px
}

