/* Ajoutez vos styles CSS selon vos besoins */

/* Style de base pour le menu */
.menuIndex2 {
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: white;
  overflow: hidden;
  border-bottom: 1px solid #504f4f; /* Ajoute une ligne de séparation */
}

/* Style pour chaque élément du menu */
.menuIndex2 li {
  float: left;

}

/* Style pour les liens dans le menu */
.menuIndex2 li a {
  /* display: block; */
  color: blue;
  text-align: left;
  /* padding: 14px 16px; */
  text-decoration: none;
}

.menuIndex2-trigger {
  border: 0;
  background: transparent;
  color: blue;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.menuIndex2-details > summary {
  list-style: none;
}

.menuIndex2-details > summary::-webkit-details-marker {
  display: none;
}

/* Changement de couleur au survol du lien */
.menuIndex2 li a:hover {
  background-color: null;
} 

/* Style du menu déroulant */
.menuIndex2-dropdown {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Style des éléments du menu déroulant */
.menuIndex2-dropdown li {
  list-style-type: '-';
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
/*   display: block;
 */  text-align: center;
}

/* Changement de couleur au survol du lien dans le menu déroulant */
.menuIndex2-dropdown li:hover {
  background-color: #ddd;
}

/* Affichage du menu déroulant au survol */
.menuIndex2-details:hover > .menuIndex2-dropdown,
.menuIndex2-details[open] > .menuIndex2-dropdown {
  display: block;
}

/* Par défaut, masquer le commentaire */
.comment {
  display: none;
}

/* Au survol de l'élément, afficher le commentaire */
.element:hover .comment {
  display: block;
}  

.red-asterisk {
  color: red;
}

tr:nth-child(even) {
  background-color: rgba(3, 3, 247, 0.100);
}

tr:nth-child(odd) {
  background-color: white; /* ou une autre couleur de ton choix */
}

table, th, td {
  border: 1px solid #d3d3d3; /* gris clair */
  border-collapse: collapse;
}

/* Supprimer les bordures pour les tableaux dans le header */
header table, header th, header td {
  border: none;
}

.atsr-header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.atsr-header-left {
  justify-self: start;
}

.atsr-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  min-width: 0;
  justify-self: center;
  width: 100%;
}

.atsr-header-topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  flex-wrap: wrap;
}

.atsr-header-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.atsr-header-page {
  font-size: 14px;
  white-space: nowrap;
}

.atsr-header-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
}

.atsr-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.atsr-header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 12px;
}

.atsr-header-right {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 16px;
  justify-self: end;
  text-align: right;
}

.atsr-header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
/* Supprimer les bordures pour les tableaux dans le fieldset */
fieldset table, fieldset th, fieldset td {
  border: none;
}

/* Changement de couleur au survol uniquement en dehors du header */
main table tr:hover,
section table tr:hover,
body > table tr:hover {
  background-color: #f5f5f5; /* gris très clair */
}

/* Règles CSS qui ne s'appliquent pas lorsque la classe "no-striped-table" est présente */
.no-striped-table .ligne-paire,
.no-striped-table .ligne-impaire {
    background-color: transparent !important; /* ou toute autre modification nécessaire */
}
/* Code HTML pour ne pas appliquer les règles */

/* <body class="no-striped-table">
    <!-- Contenu de ta page -->
</body> */


/* *************************** Régle pour surprimer le CSS sur une page  ******************************/
.special-css {
  /* Styles spéciaux que tu veux appliquer */
  color: red;
}

/* Règle CSS qui ne s'applique pas lorsque la classe "no-special-css" est présente */
body.no-special-css .special-css {
  display: none; /* Par exemple, pour cacher le style spécial */
}
/* -------------------------------------------------------------*/

/* ********************************* Style pour les cercles ************************** */
    .circle {
            width: 25px;
            height: 25px;
            background-color: #3498db; /* Couleur du cercle */
            color: white; /* Couleur du texte */
            border-radius: 50%; /* Pour rendre l'élément rond */
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 20px; /* Taille du chiffre */
            font-weight: bold;
            text-align: center;
        }

/* ********************************* Style pour badge ************************** */
    .badge-rouge {
    display: inline-block;
    background-color: #e74c3c; /* rouge vif */
    color: #fff; /* texte blanc */
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px; /* pastille parfaitement arrondie */
    line-height: 1;
    font-weight: 500;
    white-space: nowrap;
}

.rounded-button:hover {
    background-color: #c0392b; /* rouge plus foncé au survol */
}

.badge-orange{
    display: inline-block;
    background-color: orange; /* orange */
    color: #fff; /* texte blanc */
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px; /* pastille parfaitement arrondie */
    line-height: 1;
    font-weight: 500;
    white-space: nowrap;
}
.badge-vert {
    display: inline-block;
    background-color: green; /* vert */
    color: #fff; /* texte blanc */
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px; /* pastille parfaitement arrondie */
    line-height: 1;
    font-weight: 500;
    white-space: nowrap;
}

/* ******************************** Class mise en forme de texte ************************** */
.a_small {
  color: rgb(0, 0, 0); /* Couleur du texte du lien */
  font-size: 12px; /* Taille de la police du lien */
}

/* Couleur de survol pour les lignes */
.ancre:hover {
  background-color: #01d758; /* vert */
}


/* Fait que la page prend toute la largeur et la hauteur */
html, body {
  width: 100%;
  min-width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Le conteneur principal en flex vertical */
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.app-header {
  width: 100%;
  box-sizing: border-box;
  display: block;
  padding: 12px 2% 8px 2%;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(88px, 9%) minmax(0, 1fr);
  align-items: start;
  gap: 0;
  width: 100%;
  flex: 1;
  margin-top: 10px;
}

.app-shell .nav,
.app-shell .nav_dml {
  float: none;
  width: auto;
}

.app-shell .nav {
  align-self: start;
}

.app-shell-index2 .nav,
.app-shell-indexequi .nav,
.app-shell-indexdoc .nav {
  border: 1px solid #d6deea !important;
  border-radius: 14px !important;
  background: #fff !important;
  padding: 10px 14px !important;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
}

.app-shell .nav_dml {
  align-self: start;
}

.app-shell-index3 {
  grid-template-columns: minmax(136px, 14.5%) minmax(0, 1fr);
  padding-left: 2%;
  box-sizing: border-box;
}

.app-shell-indexdoc {
  grid-template-columns: minmax(92px, 13%) minmax(0, 1fr);
  padding-left: 2%;
  padding-right: 2%;
  box-sizing: border-box;
}

.app-shell-indexcyl {
  grid-template-columns: minmax(92px, 13%) minmax(0, 1fr);
  padding-left: 2%;
  padding-right: 2%;
  box-sizing: border-box;
}

.app-shell-index3 .dml-nav-header-wrap {
  grid-column: 1 / -1;
  width: 100%;
}

.app-shell-indexcyl .dml-nav-header-wrap {
  grid-column: 1 / -1;
  width: 100%;
}

.app-shell-index3 .nav_dml {
  grid-column: 1;
  padding-right: 8px;
}

.app-shell-indexdoc .nav {
  grid-column: 1;
  padding-right: 8px;
}

.app-shell-indexcyl .nav_dml {
  grid-column: 1;
  padding-right: 8px;
}

.app-shell-index3 .app-main {
  grid-column: 2;
}

.app-shell-indexdoc .app-main {
  grid-column: 2;
}

.app-shell-indexcyl .app-main {
  grid-column: 2;
}

.app-shell-index3 .nav_dml a {
  display: block;
  font-size: 15.5px;
  line-height: 1.36;
  margin-bottom: 13px;
}

.app-shell-indexcyl .nav_dml a {
  display: block;
  font-size: 14.5px;
  line-height: 1.34;
  margin-bottom: 12px;
}

.app-shell-index3 .nav_dml br {
  display: none;
}

.app-shell-indexcyl .nav_dml br {
  display: none;
}

.app-main {
  min-width: 0;
  padding: 0 2% 0 2%;
  box-sizing: border-box;
}

.app-main .middle,
.app-main .middleCyl {
  width: 100% !important;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: auto;
}

.dml-generic-doc-page {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.dml-generic-doc-page .table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
}

.app-shell-indexcyl .app-main .dml-generic-doc-page.middleCyl,
.app-shell-indexcyl .app-main .dml-generic-doc-page.middle {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Neutralise les largeurs HTML legacy dans le contenu applicatif. */
.app-main table[width],
.app-main .middle table[width],
.app-main .middleCyl table[width] {
  width: 100% !important;
  max-width: 100% !important;
}

.app-main table,
.app-main .middle table,
.app-main .middleCyl table {
  max-width: 100%;
  box-sizing: border-box;
}

.app-main td[width],
.app-main th[width],
.app-main .middle td[width],
.app-main .middle th[width],
.app-main .middleCyl td[width],
.app-main .middleCyl th[width] {
  width: auto !important;
  max-width: none !important;
}

.app-main img[width],
.app-main .middle img[width],
.app-main .middleCyl img[width] {
  max-width: 100% !important;
  height: auto !important;
}

.app-main input[style*="width"],
.app-main select[style*="width"],
.app-main textarea[style*="width"],
.app-main .middle input[style*="width"],
.app-main .middle select[style*="width"],
.app-main .middle textarea[style*="width"],
.app-main .middleCyl input[style*="width"],
.app-main .middleCyl select[style*="width"],
.app-main .middleCyl textarea[style*="width"] {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.app-main textarea,
.app-main input[type="text"],
.app-main input[type="date"],
.app-main input[type="time"],
.app-main input[type="search"],
.app-main input[type="email"],
.app-main input[type="tel"],
.app-main input[type="url"],
.app-main input[type="password"],
.app-main input[type="number"],
.app-main select {
  max-width: 100%;
  box-sizing: border-box;
}

.app-main form {
  max-width: 100%;
}

.app-main textarea {
  width: 100%;
}

/* Le main prend tout l'espace dispo */
main {
  flex: 1;
  padding: 0;
}

/* Le footer est toujours à la fin */
footer {
  background-color: #fff;
  color: rgb(0, 0, 0);
  padding: 10px;
  text-align: center;
}

@media (max-width: 1100px) {
  .app-header {
    padding: 10px 2% 8px 2%;
  }

  .atsr-header-bar {
    gap: 12px;
  }

  .atsr-header-topline {
    gap: 12px;
  }

  .atsr-header-info {
    gap: 10px;
  }

  .atsr-header-meta,
  .atsr-header-action {
    font-size: 11px;
  }

  .atsr-header-bar img {
    max-height: 34px;
    width: auto;
  }

  .app-shell .nav,
  .app-shell .nav_dml {
    width: auto;
  }

  .app-main {
    padding: 0 2% 0 2%;
  }

  .app-main .middle,
  .app-main .middleCyl {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .app-main table,
  .app-main .middle table,
  .app-main .middleCyl table {
    min-width: 100%;
  }

  .app-main img,
  .app-main .middle img,
  .app-main .middleCyl img {
    max-width: 100%;
    height: auto;
  }
}

@media (orientation: portrait) and (max-width: 1100px) {
  .app-header {
    padding: 10px 2% 8px 2%;
  }

  .app-header .atsr-header-left img {
    height: auto !important;
    max-height: 52px !important;
    width: auto !important;
  }

  .app-header .atsr-header-topline > a > img {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
  }

  .app-header .atsr-header-action img,
  .app-header .atsr-header-user img,
  .app-header .icon-container img {
    height: 72px !important;
    max-height: 72px !important;
    width: auto !important;
  }

  .atsr-header-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-items: normal;
  }

  .atsr-header-topline {
    flex-direction: row;
    align-items: center;
  }

  .atsr-header-info,
  .atsr-header-meta {
    flex-wrap: wrap;
  }

  .atsr-header-left,
  .atsr-header-center,
  .atsr-header-right {
    width: auto;
  }

  .atsr-header-left {
    text-align: left;
  }

  .atsr-header-right {
    justify-content: flex-end;
  }

  .atsr-header-meta,
  .atsr-header-actions {
    justify-content: center;
  }

  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }

  .app-shell-index2 .nav,
  .app-shell-indexequi .nav,
  .app-shell-indexdoc .nav,
  .app-shell-index3 .nav_dml,
  .app-shell-indexcyl .nav_dml {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    white-space: normal;
    padding: 0 2% 8px 2%;
    box-sizing: border-box;
  }

  .app-shell-index2 .nav,
  .app-shell-indexequi .nav,
  .app-shell-indexdoc .nav {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    align-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    white-space: normal;
    margin-left: auto;
    margin-right: auto;
  }

  .app-shell-index2 .nav .menuIndex2,
  .app-shell-indexequi .nav .menuIndex2,
  .app-shell-indexdoc .nav .menuIndex2 {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    vertical-align: top;
    margin-right: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    flex: 0 0 auto;
    width: auto !important;
    min-width: max-content;
    overflow: visible;
    position: relative;
  }

  .app-shell-index2 .nav .menuIndex2-trigger,
  .app-shell-indexequi .nav .menuIndex2-trigger,
  .app-shell-indexdoc .nav .menuIndex2-trigger {
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.15;
    gap: 4px;
    flex: 0 0 auto;
  }

  .app-shell-index2 .nav .menuIndex2-trigger img,
  .app-shell-indexequi .nav .menuIndex2-trigger img,
  .app-shell-indexdoc .nav .menuIndex2-trigger img {
    flex: 0 0 auto;
  }

  .app-shell-index2 .nav .menuIndex2-trigger span,
  .app-shell-indexequi .nav .menuIndex2-trigger span,
  .app-shell-indexdoc .nav .menuIndex2-trigger span {
    display: block;
    max-width: 82px;
  }

  .app-shell-index2 .nav br,
  .app-shell-indexequi .nav br,
  .app-shell-indexdoc .nav br {
    display: none;
  }

  .app-shell-index2 .nav .menuIndex2-dropdown,
  .app-shell-indexequi .nav .menuIndex2-dropdown,
  .app-shell-indexdoc .nav .menuIndex2-dropdown {
    display: block;
    white-space: normal;
    min-width: 220px;
    padding: 6px 0;
    position: static;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 20;
    margin-top: 8px;
  }

  .app-shell-index2 .nav .menuIndex2-details:not([open]) > .menuIndex2-dropdown,
  .app-shell-indexequi .nav .menuIndex2-details:not([open]) > .menuIndex2-dropdown,
  .app-shell-indexdoc .nav .menuIndex2-details:not([open]) > .menuIndex2-dropdown {
    display: none;
  }

  .app-shell-index2 .nav .menuIndex2-dropdown li,
  .app-shell-indexequi .nav .menuIndex2-dropdown li,
  .app-shell-indexdoc .nav .menuIndex2-dropdown li {
    display: block;
    text-align: left;
    padding: 0;
  }

  .app-shell-index2 .nav .menuIndex2-dropdown li a,
  .app-shell-indexequi .nav .menuIndex2-dropdown li a,
  .app-shell-indexdoc .nav .menuIndex2-dropdown li a {
    display: block;
    padding: 8px 12px;
    text-align: left;
    white-space: normal;
    line-height: 1.3;
  }

  .app-shell-index3 {
    grid-template-columns: minmax(102px, 13%) minmax(0, 1fr) !important;
  }

  .app-shell-indexdoc {
    grid-template-columns: 1fr !important;
    padding-left: 2%;
    padding-right: 2%;
  }

  .app-shell-indexcyl {
    grid-template-columns: 1fr !important;
    padding-left: 2%;
    padding-right: 2%;
  }

  .app-shell-index3 .nav_dml {
    display: block;
    width: auto;
    max-width: none;
    padding: 0 6px 8px 0 !important;
  }

  .app-shell-indexcyl .nav_dml {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0 10px;
    width: 100%;
    max-width: 100%;
    padding: 0 0 8px 0 !important;
    float: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .app-shell-index3 .nav_dml a {
    display: block;
    padding: 0 !important;
    white-space: normal;
    border: 0;
    border-radius: 0;
    text-decoration: none;
    background: transparent;
    font-size: 14px !important;
    line-height: 1.28 !important;
    margin-bottom: 11px !important;
  }

  .app-shell-indexcyl .nav_dml a {
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 6px 10px !important;
    white-space: nowrap;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    text-decoration: none;
    background: #fff;
    font-size: 14.5px !important;
    line-height: 1.2 !important;
    margin-bottom: 0 !important;
  }

  .app-shell-index3 .nav_dml br {
    display: none;
  }

  .app-shell-indexcyl .nav_dml br {
    display: none;
  }

  .app-shell-indexdoc .app-main {
    grid-column: 1 / -1 !important;
  }

  .app-shell-indexcyl .app-main {
    grid-column: 1 / -1 !important;
    padding: 0 !important;
  }

  .app-main {
    width: auto;
    padding: 0 2% 0 2%;
  }

  .app-main .middle,
  .app-main .middleCyl {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .app-header {
    padding: 10px 2% 8px 2%;
  }

  .atsr-header-bar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .atsr-header-topline {
    flex-direction: column;
    align-items: center;
  }

  .atsr-header-info,
  .atsr-header-meta {
    flex-wrap: wrap;
  }

  .atsr-header-left,
  .atsr-header-center,
  .atsr-header-right {
    width: 100%;
    justify-self: stretch;
  }

  .atsr-header-left {
    text-align: left;
  }

  .atsr-header-right {
    justify-content: space-between;
  }

  .atsr-header-meta,
  .atsr-header-actions {
    justify-content: center;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell .nav,
  .app-shell .nav_dml {
    width: 100%;
  }

  .app-shell-index3 {
    grid-template-columns: minmax(96px, 15.5%) minmax(0, 1fr) !important;
  }

  .app-shell-indexdoc {
    grid-template-columns: 1fr !important;
    padding-left: 2%;
    padding-right: 2%;
  }

  .app-shell-indexcyl {
    grid-template-columns: 1fr !important;
    padding-left: 2%;
    padding-right: 2%;
  }

  .app-shell-index3 .nav_dml {
    width: auto;
    padding-right: 4px !important;
  }

  .app-shell-indexcyl .nav_dml {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0 8px;
    width: 100%;
    padding: 0 0 8px 0 !important;
    float: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .app-shell-index3 .nav_dml a {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin-bottom: 11px !important;
  }

  .app-shell-indexcyl .nav_dml a {
    font-size: 14px !important;
    line-height: 1.2 !important;
    margin-bottom: 0 !important;
    display: inline-flex !important;
    flex: 0 0 auto;
  }

  .app-page-fiche_reception_moteur .app-shell-index3,
  .app-page-fiche_expedition_moteur .app-shell-index3 {
    grid-template-columns: minmax(114px, 22%) minmax(0, 1fr) !important;
  }

  .app-page-fiche_reception_moteur .app-shell-index3 .nav_dml a,
  .app-page-fiche_expedition_moteur .app-shell-index3 .nav_dml a {
    font-size: 15px !important;
    line-height: 1.36 !important;
    margin-bottom: 12px !important;
  }


  .app-shell-index3 .nav_dml br {
    display: none;
  }

  .app-shell-indexcyl .nav_dml br {
    display: none;
  }

  .app-shell-indexdoc .app-main {
    grid-column: 1 / -1 !important;
  }

  .app-shell-indexcyl .app-main {
    grid-column: 1 / -1 !important;
    padding: 0 !important;
  }

  .app-main {
    width: 100%;
    padding: 0 2% 0 2%;
  }

  .app-main .middle,
  .app-main .middleCyl {
    overflow-x: auto;
  }

  .app-main table,
  .app-main .middle table,
  .app-main .middleCyl table {
    min-width: 100%;
  }
}

/* Animation de chargement. */
.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 9999; /* au-dessus de tout */
    background-color: transparent;
}

/* Animation de rotation */
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

#loader {
    background-color: rgba(255, 255, 255, 0.8); /* optionnel */
}

/* Styles pour l'icônes de tache dans le Header.php*/
.icon-container {
  position: relative; /* Nécessaire pour le positionnement absolu du badge */
  display: inline-block;
}

.icon-container img {
  display: block;
}

.icon-container .circle {
  position: absolute;
  top: -8px;         /* Position verticale du badge */
  right: -8px;       /* Position horizontale du badge */
  background-color: #2196F3; /* Bleu */
  color: white;
  font-size: 15px;
  font-weight: bold;
  padding: 1px 1px;
  border-radius: 50%;/* arrondie */
  min-width: 10px;
  text-align: center;
  border: 2px solid white; /* Bordure pour bien détacher le badge */
  box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

/* Cache la case à cocher native */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 20px;
  background: #ccc;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background 0.3s;
  vertical-align: middle;
}

/* Le bouton circulaire du slider */
input[type="checkbox"]::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
}


/* Styles personnalisés pour la case à cocher */
/* Quand c’est activé */
input[type="checkbox"]:checked {
  background: #2196F3; /* Bleu */
}

input[type="checkbox"]:checked::before {
  transform: translateX(20px);
}

/* Masquer la case à cocher par défaut */
/* input[type=checkbox] {
  display: none;
} */


.checkbox-custom {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #eee;
  border-radius: 3px;
  border: 1px solid #ccc;
  cursor: pointer;
  position: relative;
}

/* Styles pour la coche 
.checkbox-custom::after {
  content: "";
  width: 10px;
  height: 5px;
  border: solid #555;
  border-width: 0 2px 2px 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  opacity: 0;
}

/* Montrer la coche lorsque la case est cochée 
input[type=checkbox]:checked + .checkbox-custom::after {
  opacity: 1;
}

/* Styles pour le label 
.label-custom {
  display: inline-block;
  margin-left: 5px;
  vertical-align: middle;
  cursor: pointer;
}
 */

.icon-container .circle-bottom {
  top: auto;
  bottom: -8px;
}

.icon-container .circle.circle-late,
.icon-container .circle-late {
  background-color: #e74c3c !important;
}

.atsr-context-task-widget {
  margin: 8px 0 14px 0;
}

.atsr-context-task-details {
  border: 1px solid #d3d3d3;
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
}

.atsr-context-task-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.atsr-context-task-details > summary::-webkit-details-marker {
  display: none;
}

.atsr-task-icon-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.atsr-task-badge {
  position: absolute;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 0 3px rgba(0,0,0,0.18);
}

.atsr-task-badge-top {
  top: -6px;
  right: -8px;
  background: #2196F3;
}

.atsr-task-badge-bottom {
  bottom: -6px;
  right: -8px;
  background: #e74c3c;
}

.atsr-context-task-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 12px;
}

.atsr-context-task-panel {
  margin-top: 10px;
  border-top: 1px solid #ececec;
  padding-top: 10px;
}

.atsr-context-task-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
  font-size: 12px;
}

.atsr-context-task-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.atsr-context-task-grid {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(120px, 180px);
    gap: 8px 10px;
}

.atsr-context-task-grid-full {
    grid-column: 1 / -1;
}

.atsr-context-task-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.atsr-context-task-form select,
.atsr-context-task-form input,
.atsr-context-task-form textarea,
.atsr-context-task-form button {
  width: 100%;
  box-sizing: border-box;
}

.atsr-context-task-form textarea {
  resize: vertical;
}

.atsr-context-task-form button {
  align-self: flex-start;
  width: auto;
  padding: 6px 12px;
}

.atsr-context-task-widget-compact {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.atsr-context-task-details-compact {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.atsr-context-task-widget-compact .atsr-context-task-summary {
  gap: 0;
  justify-content: center;
}

.atsr-context-task-widget-compact .atsr-context-task-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
  max-width: min(92vw, 360px);
  background: #fff;
  border: 1px solid #d3d3d3;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  z-index: 40;
}

.atsr-task-page {
    padding-bottom: 20px;
}

.atsr-task-fieldset {
    border: 1px solid #d8dce7;
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.atsr-task-fieldset-done {
    background: #eef9f0;
    border-color: #cfe6d3;
}

.atsr-task-create-fieldset {
    background: #f6f7fb;
}

.atsr-task-form-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px;
    gap: 10px;
    align-items: start;
}

.atsr-task-form-main {
    min-width: 0;
}

.atsr-task-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 8px 10px;
    margin-bottom: 10px;
}

.atsr-task-form-grid label,
.atsr-task-textarea-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.atsr-task-form-grid label > span,
.atsr-task-textarea-block > span,
.atsr-task-info-box > span {
    font-size: 11px;
    color: #5b677a;
}

.atsr-task-grid-span-2 {
    grid-column: span 2;
}

.atsr-task-row-1 {
    grid-row: 1;
}

.atsr-task-row-2 {
    grid-row: 2;
}

.atsr-task-info-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 39px;
    padding: 6px 8px;
    border: 1px solid #d6dde9;
    border-radius: 8px;
    background: #f8fbff;
}

.atsr-task-info-box strong {
    font-size: 12px;
    font-weight: 600;
}

.atsr-task-table {
    width: 100%;
    border-collapse: collapse;
}

.atsr-task-table th,
.atsr-task-table td {
    padding: 6px 8px;
    vertical-align: top;
}

.atsr-task-table th {
    font-size: 11px;
    text-align: left;
    color: #4f5d75;
}

.atsr-task-table td {
    font-size: 12px;
}

.atsr-task-summary-table th,
.atsr-task-summary-table td {
    border-bottom: 1px solid #edf0f5;
}

.atsr-task-summary-table tr:last-child td {
    border-bottom: 0;
}

.atsr-task-detail-table,
.atsr-task-create-table {
    table-layout: auto;
}

.atsr-task-detail-table textarea,
.atsr-task-create-table textarea,
.atsr-task-detail-table select,
.atsr-task-create-table select,
.atsr-task-detail-table input[type="date"],
.atsr-task-create-table input[type="date"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccd3df;
    border-radius: 8px;
    padding: 7px 9px;
    background: #fff;
}

.atsr-task-form-grid select,
.atsr-task-form-grid input[type="date"],
.atsr-task-textarea-block textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccd3df;
    border-radius: 8px;
    padding: 7px 9px;
    background: #fff;
}

.atsr-task-form-grid input[type="date"] {
    width: min(100%, 150px);
}

.atsr-task-textarea-block textarea {
    min-height: 110px;
    resize: vertical;
}

.atsr-task-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 8px;
}

.atsr-task-filter-form button,
.atsr-task-detail-table input[type="submit"],
.atsr-task-create-table input[type="submit"] {
    border: 1px solid #c7d0dd;
    border-radius: 999px;
    background: #f7f9fc;
    padding: 6px 12px;
    cursor: pointer;
}

.atsr-task-requester-cell {
    background: #e8f1fb;
    border-radius: 8px;
    font-weight: 600;
    min-width: 140px;
}

.atsr-task-status-cell {
    width: 48px;
    text-align: center;
    vertical-align: middle;
}

.atsr-task-form-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
}

.atsr-task-id-wrap {
    display: flex;
    justify-content: center;
}

.atsr-task-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.atsr-task-updated-at {
    font-size: 11px;
    color: #607086;
}

.atsr-task-summary-table .circle,
.atsr-task-detail-table .circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #3498db;
    color: #fff;
    font-weight: 700;
}

.atsr-task-jump {
    display: inline-flex;
    text-decoration: none;
}

.atsr-task-fieldset:target {
    outline: 2px solid #8fb8ff;
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .atsr-task-table th,
    .atsr-task-table td {
        padding: 5px 6px;
        font-size: 11px;
    }

    .atsr-task-form-card {
        grid-template-columns: 1fr;
    }

    .atsr-task-form-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .atsr-task-grid-span-2 {
        grid-column: auto;
    }

    .atsr-task-textarea-block textarea {
        min-height: 96px;
    }

    .atsr-task-form-side {
        flex-direction: row;
        justify-content: space-between;
        padding-top: 0;
    }
}

.atsr-task-icon-link {
    display: inline-block;
}

.icon-container .circle.circle-late,
.icon-container .circle-late {
    text-decoration: none;
}

.atsr-task-report-page .atsr-task-report-table th,
.atsr-task-report-page .atsr-task-report-table td {
    padding: 7px 8px;
    border-bottom: 1px solid #edf0f5;
}

.atsr-task-jump-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 5px 10px;
    border: 1px solid #ccd3df;
    border-radius: 999px;
    text-decoration: none;
    color: inherit;
    background: #f7f9fc;
}

.atsr-journal-widget {
    margin-top: 8px;
}

.atsr-journal-details {
    border: 1px solid #d8dce7;
    border-radius: 10px;
    background: #fff;
    padding: 6px 8px;
}

.atsr-journal-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.atsr-journal-details > summary::-webkit-details-marker {
    display: none;
}

.atsr-journal-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.atsr-journal-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e8f1fb;
    color: #1f4e8c;
    font-size: 11px;
    font-weight: 700;
}

.atsr-journal-label {
    font-size: 11px;
    color: #5b677a;
}

.atsr-journal-panel {
    margin-top: 8px;
    border-top: 1px solid #edf0f5;
    padding-top: 8px;
    text-align: left;
}

.atsr-journal-open-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    padding: 6px 10px;
    border: 1px solid #ccd3df;
    border-radius: 999px;
    text-decoration: none;
    color: inherit;
    background: #f7f9fc;
}

.atsr-journal-details-compact {
    position: relative;
    border: 0;
    background: transparent;
    padding: 0;
}

.atsr-journal-details-compact .atsr-journal-summary {
    justify-content: center;
    gap: 0;
}

.atsr-journal-compact-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.atsr-journal-compact-label {
    font-size: 10px;
    line-height: 1.05;
    color: #4f5d75;
    font-weight: 700;
}

.atsr-journal-details-compact .atsr-journal-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    z-index: 20;
    border: 1px solid #d8dce7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 10px;
}

@media (orientation: portrait) and (max-width: 1100px) {
  .atsr-context-task-widget-compact .atsr-context-task-panel,
  .atsr-journal-details-compact .atsr-journal-panel {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: min(92vw, 360px);
    min-width: min(92vw, 280px);
    max-width: min(92vw, 360px);
  }
}

.atsr-journal-recent {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.atsr-journal-entry {
    border: 1px solid #edf0f5;
    border-radius: 8px;
    padding: 6px 8px;
    background: #fafbfd;
}

.atsr-journal-entry-meta,
.atsr-journal-empty {
    font-size: 11px;
    color: #607086;
}

.atsr-journal-entry-text {
    margin-top: 2px;
    font-size: 12px;
}
