/* général*/

*{
  font-family: 'Poppins';
}

body {
    margin: 0;
    padding: 0;
    background-color: #F2F5FF;
}

.hidden {
  display: none;
}

h1, h2, h3{
  color: #0D275C;
  text-align: left;
}

h4 {
  color: #0D275C;
  text-align: center;
}

p, label, span {
  color: #051129;
}

a {
  font-style: normal;
  text-decoration: none;
  color: #051129;
}

select, input {
  background-color: #FFF;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

  
.container {
  max-width: 600px;
  margin: 120px auto;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
}


.nativeButton{
  background-color: #0D275C;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  color: #FFF;
  cursor: pointer;
}


.nativeButtonSecondary{
  background-color: transparent;
  border: 2px solid #0D275C;
  border-radius: 8px;
  padding: 12px 24px;
  color: #0D275C;
  cursor: pointer;
}

/* Login */

.logo {
  max-width: 65%;
  margin-bottom: 20px;
}

.login-element {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  gap: 1em;
}

.log-input {
  width: 100%;
  margin-bottom: 1em;
  flex: 1;
  padding-right: 40px;
}

.login-svg img{
  width: 24px;
}

.eye-icon {
  position: absolute;
  right: 15px;
  margin-bottom: 5px;
  cursor: pointer;
}

.eye-img {
  width: 24px;
}

/* Admin et user */

.container-form, .container-body {
  max-width: 90%;
  border-radius: 8px;
  text-align: center; 
}

.container-form {
  margin: 100px auto 0 auto;
}

.add-section {
  background-color: #FFF;
}

.container-body {
  margin: 0 auto;
}

.container-info{
  display: grid; 
  grid-auto-columns: 1fr; 
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  grid-template-areas: 
    ". . ."
    ". . ."; 
}

/* Admin*/

#addNewUser {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 2em;
  padding: 1em;
  background-color: #FFF;
  border: 1px solid #ddd;
  border-radius: 8px;

}

#addNewUser img{
  width: 32px;
}

.select2-selection {
  padding: 4px;
}

.info-item {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.info-item img {
  width: 24px;
}

.info-item span, .info-item h3, .info-item p {
  margin-right: 5px;
}

.info-item h3 {
  font-weight: 600;
  color: #0D275C;
}

.service-title {
  background-color: #2680ff;
  padding: 0 1em;
  margin: 1em 0;
  border-radius: 8px;
  width: 98%;
 
  h2, h3, span {
    color: #FFF;
  }
}


.addUser {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.button-container {
  margin-top: 1em;
  display: flex;
  align-items: center;
  gap: 1em;
}


.password-space, .password-contain {
  display: flex;
  align-items: center;
}

.password-space {
  margin-top: 1em;
}

.serviceContainer {
  text-align: left;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 1em;
}

.container-steps {
  display: flex;
  padding: 1em;
  width: 47%;
  flex-direction: column;
  border-radius: 5px;
  /* margin: 1em; */
  background-color: #FFF;
  border-radius: 8px;
  border: 2px solid #F2F5FF;
}

/* .step {
  margin: 0 auto;
} */
.container-steps img {
  width: 24px;
}

.steps {
  /* width: 50%; */
  margin: 0 auto;
}

.edit-btn img {
  width: 24px;
}

/* Tableaux */

table {
  border: none;
  width: 100%;
}
thead {
  background-color: #0D275C;
  color: #FFF;
}

th .cell {
    display: flex;
    gap: 0.5em;
    justify-content: center;
    padding: 5px;
    align-items: center;
    font-weight: 500;
}

th {
    padding: 8px;
    align-items: center;
    font-weight: 500;
    background-color: #0c285c;
}

tbody {
  background-color: #FFF;
}

tbody tr td {
  text-align: center;
  border: none;
  padding: 10px;
}

tbody tr td img{
 width: 24px;
}

tr:nth-child(odd) {
  background-color: #fff;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}



#intervenants-container {
  width: 100%;
  margin: 0 auto;
}

.service {
  display: flex;
  gap: 1em;
}

.mission-container, .service-background {
  background-color: #fbfcff;
  border-radius: 8px;
  padding: 5px;
}

.services, .admin-comment{
  margin-top: 3em;
}

.add-intervenant, .admin-comment-questions {
  display: flex;
  align-items: center;
  gap: 1em;
  margin: 1em 0;
}

.add-intervenant img, .admin-comment-questions img {
  width: 24px;
}

.table-container {
  margin: 1em 0 0;
  gap: 1em;
}

.notAvailable {
  display: flex;
  align-items: center;
  padding: 10px;
  border: 2px dotted #6e6e6e;
  border-radius: 8px;
  flex-direction: column;
  height: 130px;
  justify-content: space-between;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Dépot de fichier*/

.add_file {
  border: 2px dashed #0c285c;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
}

.add_file .add_file_img {
  width: 50px;
  height: 50px;
}

.file-input {
  margin-bottom: 15px;
  position: relative;
  width: 250px;
}

.file-input label:not(.notAvailable), .drop-zone {
  display: flex;
  align-items: center;
  padding: 10px;
  border: 2px dashed #0c285c;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  min-height: 130px;
  justify-content: space-evenly;
}

.file-input .add_file_img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

input[type="file"]{
  display: none;
}

.element_form {
  text-align: left;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.inputs-container {
  width: 100%;
  margin: 1em auto;
}

.inputs {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 15px;
}

.input {
  width: 48%;
  text-align: left;
}

.password {
  display: flex;
  flex-direction: column;
  margin-left: 5px;
  margin-right: 5px;
}

.container_mbu {
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.mbu-group {
    background-color: #FFF;
    border-radius: 8px;
    padding: 10px 20px;
    box-sizing: border-box;
}

.documents {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.document {
  display: flex;
    flex-direction: column;
    row-gap: 1em;
    box-shadow: inset 0 0 0.5px 1px hsla(0, 0%, 100%, 0.075), 0 0 0 1px hsla(0, 0%, 0%, 0.05), 0 0.3px 0.4px hsla(0, 0%, 0%, 0.02), 0 0.9px 1.5px hsla(0, 0%, 0%, 0.045), 0 3.5px 6px hsla(0, 0%, 0%, 0.09);
    margin-bottom: 20px;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 8px;
}

.footer {
  display: flex;
  justify-content: space-evenly;
  margin-top: 20px;
}

.addTypeDiv, .addTiersDiv {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin: 1em;
}

.addType, .addTiers {
  display: flex;
  gap: 1em;
  align-items: center;
}

#missingTemplateContainer, #deposedTemplateContainer, #receivedTemplateContainer, #emitedTemplateContainer, #pendingTemplateContainer, #addedTiersTemplateContainer{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1em;
  overflow: hidden;
}

.add_file_text {
  display: flex;
  align-items: center;
}


.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  color: white;
}

.overlay h1 {
  text-align: right;
  margin-right: 1em;
}

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  z-index: 1000;
}

.preview-content img,
.preview-content embed {
  /* max-width: 100%; */
  max-height: 80vh;
  display: block;
  margin: 0 auto;
}

iframe {
  width: 85vw;
    height: 80vh;
}

.infos-left {
  display: flex;
  text-align: left;
  flex-direction: column;
  align-items: flex-start;
}

.contact-us {
  display: flex;
  justify-content: space-evenly;    
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid #0e275c;
}

.contact-us-element {
  display: flex;
  align-items: center;
  gap: 1em;
}

.contact-us-element img{
  width: 24px;
}

.help-div {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: auto;
  background-color: white;
  z-index: 999;
}

.send-button {
  display: flex;
  gap: 1em;
  align-items: center;
}

.styled-input {
  width: 95%;
  border-radius: 8px;
  padding: 1em;
}

.contain {
  width: 100%;
}

.container_comment {
  text-align: left;
  padding: 5px 1em;
  background-color: #FFF;
  border-radius: 8px;
  margin-bottom: 1em;
  border: 1px solid #ddd;

}

#help-div button {
  width: 30%;
}

#video-options {
  justify-content: space-evenly;
  margin: 1em;
}

#container-files {
  margin-top: 1em;
}

.question-admin {
  display: flex;
  gap: 1em;
  align-items: center;
  width: 100%;
}
.question-admin img {
  width: 24px;
}
.container-inputs {
  display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.file-input {
  margin-bottom: 15px;
  position: relative;
  width: 250px;
}
.statement_input, .month-input {
  position: relative;
  margin: 0.5em;
}

.file-input label:not(.notAvailable), .drop-zone {
  display: flex;
  align-items: center;
  padding: 10px;
  border: 2px dashed #0c285c;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  min-height: 130px;
  justify-content: space-between;
}

.loupe {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  margin: 5px;
  width: 30px;
  cursor: pointer;
}

#missingTemplateContainer, #deposedTemplateContainer, #receivedTemplateContainer, #emitedTemplateContainer, #pendingTemplateContainer, #addedTiersTemplateContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  overflow: hidden;
}


@media screen and (max-width: 767px) {
  .popup_mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #FFF;
    padding: 2em;
    height: 8em;
    position: fixed;
    top: 45%;
    left: 42%;
    transform: translate(-50%, -50%);
    z-index: 999;
    box-shadow: inset 0 0 0.5px 1px hsla(0, 0%, 100%, 0.075),
    0 0 0 1px hsla(0, 0%, 0%, 0.05), 0 0.3px 0.4px hsla(0, 0%, 0%, 0.02),
    0 0.9px 1.5px hsla(0, 0%, 0%, 0.045), 0 3.5px 6px hsla(0, 0%, 0%, 0.09);
  }
}


.tabs {
  overflow: hidden;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-evenly;
  padding: 0;
}

/* Default tab button styling with border */
.tabs button {
  background-color: inherit;
  color: #333;
  padding: 14px 16px;
  border: 2px solid #cce0ff; /* Light border color */
  border-radius: 4px; /* Slight rounded corners */
  outline: none;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  font-size: 16px;
  flex: 1;
  text-align: center;
  font-weight: bold;
}

/* Hover effect */
.tabs button:hover {
  background-color: #e0e7ff;
  border-color: #a3c9ff; /* Slightly darker border on hover */
}

/* Active tab styling */
.tabs button.active {
  background-color: #fff;
  border-color: #2680ff; /* Bold border color for active state */
  color: #2680ff;
}

/* Style the tab content */
.tabcontent {
  display: none;
  animation: fadeEffect 0.5s; /* Add animation */
}

/* Add a fade-in effect to tab content */
@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

.tablinks {
  position: relative;
  padding-right: 20px; /* Added padding to make space for the notification badge */
}

/* Style for the notification red circle */
.notification {
  position: absolute;
  top: 5px;
  right: 5px;
  height: 12px;
  width: 12px;
  background-color: red;
  border-radius: 50%;
  display: inline-block;
}

.notification-legend{
  height: 12px;
  width: 12px;
  background-color: red;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
}

.pdf-embed {
  flex: 1 1 auto;
  z-index: 0;
}

@supports (-webkit-touch-callout: none) {
  .pdf-embed {
    object-fit: contain;
    transform: translateZ(0); /* Force rendering context */
  }
}
