 
/* Regroupement d'items de saisie dans les pages de type formulaire */
.ContainerBox {
    display:grid;
    grid-template-columns: 1fr 5fr;
    gap: 10px;
    padding-left: 2rem;
    margin-top: 10px;
}
.ContainerBox :nth-child(2n) {
    text-align: left;
}
/*.ContainerBox :nth-child(2n+1) {
    //text-align: right;
}*/
/* "Case" utilisée pour la saisie des paramètres */
.ParameterCell {
    display:grid;
    grid-template-columns: 3fr 5fr;
    gap: 10px;
    padding-left: 2rem;

}
.ParameterCell :nth-child(2n) {
    text-align: left;
}

/* Zone de saisie d'un texte sur plusieurs lignes */
.TextAreaForm {
    width: 50rem;
    font-family: inherit;
}

.BasicForm {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2px;
}

.MultiForm {
    display: inline-block;
}
.MultiForm>:first-child {
    background-color: white;
    border: 1px solid grey;
    justify-content: flex-start;
}
.MultiFormLine {
    display: flex;
    flex-direction: row;
    background-color: var(--tableline-bg-color);
    justify-content: space-between;
    padding: 4px;
    border-radius: 6px;
    border: 1px solid white;
    margin: 3px;
}
.MultiFormLine input[type=text]:disabled {
    border-color: transparent;
    background-color: inherit;
    color:inherit;
}
.MultiFormLine input[type=text]:read-only {
    border-color: transparent;
    background-color: inherit;
    color:inherit;
}
.DraggableElement {
    cursor: move;
    width: 4rem;
    text-align: center;

}

.ImportantMessage {
    background-color: white;
    color: black;
    border: 2px solid red;
    padding: 2rem;
    margin: 2rem;
    font-weight: bold;
}

.WaitingMessage {
    background-color: white;
    border: 2px solid rgb(0, 136, 255);
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 4rem;
    padding-right: 4rem;
    margin: 2rem;
    font-weight: bold;
    display: flex;
    justify-content: flex-start;
    gap: 4rem;
}
.WaitingMessage>div {
    display: table;
}
.WaitingMessage>div>div {
    display: table-cell;
    vertical-align: middle;
    font-size: 2rem;
}
.WaitingMessage img {
    float: right;
}

#toprightbutton {
    position: fixed;
    top: 0;
    right: 0;

}
.AlignRight {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}
.RowCells {
    display: flex;
    flex-direction: row;    
    column-gap: 1rem;
}
.ColumnRowCells {
    display: flex;
    flex-direction: row;    
    column-gap: 0.5rem;
}
.ColumnRowCells :first-child {
  flex: 0 0 auto;
}
.ColumnRowCells > * {
  flex: 1 0 auto;
}
.RowForm {
    display: flex;
    flex-direction: row;    
}


.NavigationBar {
    display: flex;
    flex-direction: row;
    padding-left: 3rem;
    padding-right: 3rem;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
    font-size: 1.2rem;
    align-self: stretch;
    position: fixed;
    width: 100%;
    height: 2rem;
    bottom: 1rem;
    left: 0;
    background: var(--navigationbar-bg-color);
    border-radius: 12px 12px 0 0;
    text-align: center;
    justify-content: center;
}
.NavigationPageNumber {
    background : white;
    border: 1px solid black;
    font-family: monospace;
}

.NavigationBar .DefaultButton {
    font-size: 1.2rem;
    display:table-cell;
    vertical-align: middle;
}

.NavigationBarButton {
    position:fixed;
    bottom: 2rem;
    z-index: 100;
}
#resetbutton {
    right: 2rem;
}
#deletebutton {
    right: 2rem;
}
#addonbutton {
    right: 5rem;
}
#addonbutton0 {
    right: 5rem;
}
#addonbutton1 {
    right: 8rem;
}
#addonbutton2 {
    right: 11rem;
}
#displaycolumns {
    right: 5rem;
}
#displaycolumnsmenu {
    z-index: 120;
}
#addnewitem {
    right: 8rem;
}
#linkitems {
    right: 11rem;
}
#infoitem {
    right: 14rem;
}

.NavigationBarButton img {
    height: 2rem;
    width: auto;
}

/* Zone principale d'affichage en mode formulaire */
.DisplayFormPage {
    padding-left: 3rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: 1rem;
}
.DisplayFormPage textarea {
    font-family: inherit;
}
.BottomPanel {
    z-index: 5;
    background-color: darkgrey;
    background: rgba(0,0,0,0.5);
    border-radius: 12px 12px 0 0;
    color: lightgrey;
    border-top: 1px solid white;
    position: fixed;
    width: 100%;
    height: 1rem;
    bottom: 0;
    left: 0;
    text-align: center;
    transition: height 0.5s linear;
    transition-delay: 0.5s;
    &:hover {
        /*transform: scale(1.2);*/
        color: white;
        height: 20%;
        background: rgba(0,0,0,1);
    }
}
.BottomBar {
    display: flex;
    flex-direction: row;
    margin-left: 4rem;
    margin-right: 4rem;
    justify-content: space-between;
}
.BottomButton img {
    height: 100px;
}

.MenuBurger {
    position:fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 120;
    display: none;
}

.MenuBurger:active~.LeftMenuPanel,
.MenuBurger:active~.LeftMenuPanel:before {
    display: inline;
}

/* Panneau de menu à gauche */
.LeftMenuPanel{
    background: var(--left-menu-bg-color);
    border-radius: 0 12px 12px 0;
    color: lightgrey;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
    z-index: 110;
    
    transition: width 0.5s linear;
    transition-delay: 0.5s;
    &:hover {
        color: white;
        width: 400px;
        background: var(--left-menu-bghover-color);
    }
}
.LeftMenuContainer {
    display:flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0rem 0 0rem;
    margin-left: 1rem;
    margin-right: 1rem;
}
.LeftMenuContainer>* {
    align-self: stretch;
}
/* Découpage du menu en 3 parties */
.LeftMenuContainer>*:first-child() {
    height: 10vh;
}
.LeftMenuContainer>*:nth-child(0n+2) {
    height: 60vh;
}
.LeftMenuContainer>*:last-child() {
    height: 30vh;
}
.LeftMenuTopText {
    overflow:hidden;
    text-overflow: clip;
    white-space: nowrap;
    text-align: center;
    padding: 20px 0 0 0;
}
.LeftMenuText {
    white-space: nowrap;
    padding: 2rem 0 0 0;
}
.LeftMenuBottomText {
    overflow:hidden;
    text-overflow: clip;
    white-space: nowrap;
    text-align: center;
}
/* Menu en colonne */
.LeftMenu {
    display:flex;
    height: 100%;
    flex-direction: column;
    align-items: stretch;
}
.LeftMenu>* {
    color: #dcdcdc;
    font-size: 24px;
    text-align: center;
    transition-property: transform;
    transition-duration: 500ms;
    &:hover {
        color: white;
        transform: scale(1.15);
    }
}
/* Pas de grossissement sur la ligne de séparation en base de menu (3ème last child) */
.LeftMenu>*:nth-last-child(3) {
    transition-property: none;
    &:hover {
        transform: scale(1);
    }
}
/* Pas de grossissement sur l'image (2ème last child) + prise de l'espace restant */
.LeftMenu>*:last-child {
    height: 70%;
    transition-property: none;
    display:table;
    vertical-align: middle;
    &:hover {
        transform: scale(1);
    }
}
.LeftMenu>*:last-child div {
    height: 90%;
    display: table-cell;
    vertical-align: middle;
}
.LeftMenu a {
    color: #dcdcdc;
    text-decoration: none;
}
.LeftMenu>div {
    overflow: hidden;
    height: 52px;
}
.LeftMenu .TitleMenu {
    overflow: hidden;
}
.LogoImg {
    max-width: 30%;
    height: auto;
}

.TitleMenu {
    display:flex;
    flex-direction: column;
    overflow: visible;
}
.TitleMenu :last-child {
    margin-bottom: 10px;
}
.TitleMenu:hover +.TitleSubMenu {
    display: inline-block;
    overflow: visible;
}
.TitleSubMenu>* {
    &:hover {
        color: white;
        transform: scale(1.15);
    }
}

.TitleSubMenu {
    position: fixed;
    left:350px; /* Tenir compte du margin et padding */
    top: 5px;
    width: 300px;
    display: none;
    background-color: var(--titlesubmenu-bg-color);
    font-size: 16px;
    border: 1px solid white;
    border-radius: 12px
}
.TitleSubMenu:hover {
    display: inline-block;
}
.TitleMenuInactive {
    display:flex;
    flex-direction: column;
    overflow: visible;
    color: grey;
    &:hover {
        color: grey;
        transform: scale(1);
    }
}
.ErrorText {
    font-style: italic;
    font-weight: bold;
    color: red;
}
/*.FormButtonLine {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    column-gap: 1rem;
}*/
.FormButtonLine {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    column-gap: 1rem;
    width: 100%;
    position: fixed;
    right: 0px;
    bottom: 0px;
    padding: 10px;
    background: var(--bottom-bg-color);
    opacity: var(--bottom-bg-opacity);
    border-top: 1px solid black;
    border-radius: 12px 12px 0px 0px;
    z-index: 80;
}


/* Boutons */
/* Bouton par défaut */
.DefaultButton {
  border: 0;
  line-height: 1.5;
  padding: 0 10px;
  font-size: 1rem;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 1px #000;
  border-radius: 6px;
  background-color: var(--defaultbutton-bg-color);
  background-image: var(--button-bg-image);
  box-shadow: var(--button-shadow);
}

.DefaultButton:hover {
    background-color: var(--defaultbutton-bghover-color);
}

.DefaultButton:active {
  box-shadow: var(--button-shadow-active);
}

.DefaultButton img {
    width: 12px;
    height: 12px;
    padding-top: 0px;
    padding-bottom: 0px; 
}

.HiddenButton {
    display: none;
    border: 0;
    line-height: 1.5;
    padding: 0 10px;
    font-size: 1rem;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    border-radius: 6px;
    background-color: var(--defaultbutton-bg-color);
    background-image: var(--button-bg-image);
    box-shadow: var(--button-shadow);
  }
  
/* Bouton pour annuler */
.CancelButton {
  border: 0;
  line-height: 1.5;
  padding: 0 10px;
  font-size: 1rem;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 1px #000;
  border-radius: 6px;
  background-color: var(--cancelbutton-bg-color);
  background-image: var(--button-bg-image);
  box-shadow: var(--button-shadow);
}

.CancelButton:hover {
  background-color: var(--cancelbutton-bghover-color);
}

.CancelButton:active {
  box-shadow: var(--button-shadow-active);
}

/* Menus Pop-up */
.PopUpMenu {
    display: none;
    position: fixed;
    margin: 2px;
    padding: 5px;
    border: 1px solid white;
    background-color: var(--popupmenu-bg-color);
    max-height: 90%;
    z-index: 200;
}

.PopUpMenu :first-child {
    flex: 0 1 auto;
}

.InputMenu {
    padding: 15px;
    border: 1px solid black;
    border-radius: 12px;
    margin: 10px
}

.InputMenu .DefaultButton {
    float: right;
}

.InputMenu input {
    width: 100%;
    box-sizing: border-box;
}

.ConfirmationMenuContainer {
    display: none;
    align-items: center;
    height: 100vh;
    padding: 0 1rem; /* laisser l'accès au LeftMenuPanel */
    justify-content: center;
    position: fixed; 
    z-index: 100;
}

.ConfirmationMenu {
    top: 45%; 
    left: 100px; 
    right: 100px;
    margin: 2px;
    border: 1px solid white;
    background-color: #bddebe;
    height: auto;
    padding-bottom: 4px;
}

.ConfirmationMenu .RowCells {
    margin-top: 1rem;
    padding-left: 4px;
    padding-right: 4px;
}

.ConfirmationMenuTitle {
    background-color: chocolate;
    border-bottom: 1px solid white;
    color: white;
    text-align: center;
    height: auto;
    padding: 3px;
}

.ConfirmationMenuText {
    padding: 1rem 0.5rem 0rem 0.5rem;
    font-weight: bold;
    text-align: center;
    min-height: 2.5rem;
    white-space: pre-line;
}

.LeftAlign {
    text-align: left;
    white-space: pre-wrap;
}

.NotifyMenuContainer {
    display: none;
    position: fixed; 
    top: 0; 
    bottom: 0; 
    left: 1rem; /* laisser l'accès au LeftMenuPanel */
    right: 0;
    z-index: 150;
}

.NotifyMenu {
    position: absolute;
    top: 15%; 
    left: 100px; 
    right: 100px;
    margin: 2px;
    border: 1px solid white;
    background-color: #bddebe;
    height: auto;
    padding-bottom: 4px;
}

.NotifyMenu .RowCells {
    margin-top: 1rem;
    padding-left: 4px;
    padding-right: 4px;
}

.NotifyMenuTitle {
    background-color: whitesmoke;
    border-bottom: 1px solid white;
    color: black;
    text-align: center;
    height: auto;
    padding: 3px;
}

.NotifyMenuText {
    padding-top: 1rem;
    font-weight: bold;
    text-align: center;
    height: 2.5rem;
}

.DetailItemMenuContainer {
    display: none;
    position: fixed; 
    top: 0.5rem; 
    bottom: 5rem; 
    left: 50%;
    right: 0rem;
    z-index: 100;
    box-sizing: border-box;
    border: 1px solid black;
    border-radius: 6px;
    background: white;
    overflow-y: auto;
}

.DetailItemMenuContainer .AlignRight {
    position: fixed;
    right: 0rem;
    left: 50%; /* idem  DetailItemMenuContainer */
    padding-right: 1rem;
    padding-bottom: 4px;
    padding-top: 4px;
    bottom: 5rem;
    background-color: rgb(255, 255, 255, 80%);
    border-bottom: 1px solid black;
    border-left: 1px solid black;
    border-radius: 0 0 0 6px; /* idem DetailItemMenu */
    margin-top: 0.5rem;
    margin-right: 17px;
    margin-top: auto;
    margin-bottom: 0rem;
}
.DetailItemMenuContainer .PopUpMenu {
    z-index: 120;
    border-radius: 6px;
    border: 1px solid black;
    background-color: var(--popupmenu-bg-color);
}
.DetailItemMenuContainer .MaskableArea {
    display: block;
    position: static;
    margin-top: 10px;
    margin-right: 1rem;
}
.PopUpMenu .AlignRight {
    margin-top: 10px;
    margin-bottom: 5px;
    margin-right: 1rem;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-top: 0px;
    position: relative;
    bottom: 0;
    left: auto;
    right: auto;
    border: 0px;
    background: inherit;
}
.DetailItemMenu {
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0;
    margin: 0;
    background-color: white;
    padding-bottom: 2.5rem;
    overflow-x: clip;
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.DetailItemMenu .RowCells {
    margin-top: 1rem;
    padding-left: 4px;
    padding-right: 4px;
    min-width: 0;
}
.DetailItemHeader {
    display: flex;
    flex-direction: row;
    justify-content: start;
    gap: 1rem;
}
.DetailItemMenu .CardPriority {
    position:relative;
    height: 28px;
    display:none;
    /*width: 99%;*/
}
.DetailItemMenu .CardPriority div {
    position: absolute;
    z-index: 1;
    left: 1rem;
}
.DetailItemMenu .CardPriority  img {
    width: 28px;
    height: 28px;
}

.DetailItemMenu .CardPriority .CardPriorityText {
    position: relative;
    top: 0px; 
    left: 2rem;
    width: 28px; 
    height: 28px; 
    z-index: 2;
    font-size: 2rem;
    color: white
}
.ButtonPriority {
    position:relative;
    height: 28px;
    display:none;
    width: 99%;
    display: flex;
}
.ButtonPriority div {
    position: absolute;
    z-index: 1;
    left: 1rem;
}
.ButtonPriority  img {
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.ButtonPriority .CardPriorityText {
    position: relative;
    top: 0px; 
    left: 2rem;
    width: 28px; 
    height: 28px; 
    z-index: 2;
    font-size: 2rem;
    color: white
}

.ButtonPriority .ListButtonMenu {
    margin-left: 2rem;
}
.DetailItemStatus {
    position: relative;
    right: 1rem;
    top: 0.5rem;
    margin-left: auto;
}
.DetailItemStatus .CardStatus {
    border-radius: 0.7rem;
    border: 2px solid;
    border-color: rgb(120,120,120);
    line-height: 1.5;
    padding: 0 10px;
    font-size: inherit;
    text-align: center;
    color: black;
    background-color: whitesmoke;
}

.DetailItemLine {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    gap: 0.5rem;
}

.DetailItemLine textarea {
    width: 99%;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: inherit;
    margin: 0px;
    border-radius: 6px;
    padding: 2px;
    margin-bottom: 0.5rem;
}

/* Propriétés du premier div (le label) de la ligne => lui permettre de rétrécir */
.DetailItemLine > div:first-of-type {
    flex: 1 1 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 100px;
}

.DetailItemMultiLine {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;
}
.DetailItemMultiLine textarea {
    width: 99%;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: inherit;
    margin: 0px;
    border-radius: 6px;
    padding: 2px;
    margin-bottom: 0.5rem;
    resize: vertical;
}

.DetailItemMenuTitle {
    background-color: whitesmoke;
    border-bottom: 1px solid white;
    color: black;
    text-align: center;
    height: auto;
    padding: 3px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.DetailItemLabel {
    text-align: left;
}
.DetailItemText {
    font-weight: bold;
    text-align: center;
    margin-left: auto;
}
.DetailItemText input {
    font-size: 1.5rem;
    font-weight: bold;
    max-width: calc(25vw); /* Alignement des input text */
    min-width: calc(25vw); /* Alignement des input text indifférement de la taille spécifiée */
    border: 1px solid grey;
}
.DetailItemText .DateForm {
    border: 1px solid transparent;
    background: inherit;
    font-family: inherit;
    font-size: inherit;
    padding: 0px;
    margin: 0px;
    text-align: right;
}
.DetailItemDependancies {
    border: 1px solid black;
    border-radius: 6px;
    width: 100%;
    margin-left: 1rem;
    font-family: monospace;
    resize: vertical;
}
.DetailItemList {
    display: flex;
    flex-direction: row;
}
.ButtonColumn {
    display: flex;
    flex-direction: column;
    max-width: 40px;
    margin-left: 3px;
}
.filteringCheckBoxList {
    background-color: white;
    overflow: auto;
    max-height: calc(90vh - 130px);
    border-radius: 6px;
    padding: 3px;
    margin-bottom: 5px;
}

.ImgButton {
    margin: 0px;
    padding: 0px;
    background: transparent;
    border-width: 0;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* Bouton composant un menu pop-up ou submenu */
.ButtonMenu {
  border: 0;
  line-height: 1.5;
  padding: 0 10px;
  font-size: 1rem;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 1px #000;
  border-radius: 6px;
  background-color: var(--menubutton-bg-color);
  background-image: var(--button-bg-image);
  width: 100%;
  box-shadow: var(--button-shadow);
}

.ButtonMenu:hover {
  background-color: var(--menubutton-bghover-color);
}

.ButtonMenu:active {
  box-shadow: var(--button-shadow-active);
}

/* Bouton annuler composant un menu pop-up ou submenu */
.CancelButtonMenu {
  border: 0;
  line-height: 1.5;
  padding: 0 10px;
  font-size: 1rem;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 1px #000;
  border-radius: 6px;
  background-color: var(--cancelmenubutton-bg-color);
  background-image: var(--button-bg-image);
  width: 100%;
  box-shadow: var(--button-shadow);
}

.CancelButtonMenu:hover {
  background-color: var(--cancelmenubutton-bghover-color);
}

.CancelButtonMenu:active {
  box-shadow: var(--button-shadow-active);
}

/* Bouton de selection dans une liste de correspondance d'id */
.ListButtonMenu {
  border: 0;
  line-height: 1.5;
  padding: 0 10px;
  font-size: 1rem;
  text-align: left;
  color: black;

  border-radius: 6px;
  background-color: var(--listbutton-bg-color);
  width: 100%;
}

.ListButtonMenu:hover {
  background-color: var(--listbutton-bghover-color);
}

/* Sélection dans les listes du menu details item */
.ButtonSelected {
    background-color: var(--selecteditem-bg-color);
}

/* Container pour regrouper les éléments pour un checkbox customisé */
.CheckboxContainer {
    width: 18px;
    height: 18px;
}
/* Customize the label (the container) */
.CheckboxContainer {
  display: block;
  position: relative;
  /*padding-left: 35px;*/
  /*margin-bottom: 12px;*/
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.CheckboxContainer input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* L'élément qui affiche la "coche" */
.CheckMark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  border-radius: 4px;
  background-color: white;
  border: 1px solid black;
}
.RadioMark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  border-radius: 4px;
  background-color: white;
  border: 1px solid black;
}

/* On mouse-over, add a grey background color */
.CheckboxContainer:hover  {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.CheckboxContainer input:checked ~ .CheckMark {
  background-color: white;
}
.CheckboxContainer input:checked ~ .RadioMark {
  background-color: white;
}
/* Create the CheckMark/indicator (hidden when not checked) */
.CheckMark:after {
  content: "";
  position: absolute;
  display: none;
}
/* Create the CheckMark/indicator (hidden when not checked) */
.RadioMark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the CheckMark when checked */
.CheckboxContainer input:checked ~ .CheckMark:after {
  display: block;
}
/* Show the CheckMark when checked */
.CheckboxContainer input:checked ~ .RadioMark:after {
  display: block;
}
.CheckboxContainer input:disabled ~ .CheckMark {
  background-color: lightgrey;
  cursor: initial;
}
.CheckboxContainer input:disabled ~ .RadioMark {
  background-color: lightgrey;
  cursor: initial;
}
/* Style the CheckMark/indicator */
.CheckboxContainer .CheckMark:after {
  left: 5px;
  top: 0px;
  width: 5px;
  height: 14px;
  border: solid blue;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
/* Style the CheckMark/indicator */
.CheckboxContainer .RadioMark:after {
  left: 4px;
  top: 4px;
  width: 2px;
  height: 2px;
  border: solid green;
  border-width: 4px;
  border-radius: 5px;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
.CheckMark.Unknown:after {
    content: "?";
    display: block;
    border-width: 0;
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
}

.CheckMark.Unknown {
    background: lightblue;
}

/* Label pour les checkbox customisés CheckboxContainer */
.LabelCheckbox {
    padding-left: 0rem;
}
.SmallLabelCheckbox {
    padding-left: 0rem;
    font-size: 0.7rem;
    text-align: left;
}

/* Zones masquables en fonction valeur checkbox */
.MaskableArea {
    position: absolute;
    top: 0;left: 100%;
    margin-left: 10px;
    border: 1px solid black;
    border-radius: 12px;
    background-color: var(--popupmenu-bg-color);
    display: none; /* affichée par callback sur la checkbox */
    padding: 0.5rem;
}
.MaskableArea.VisibleArea {
    left: 40%;
}
.MaskableAreaIncluded {
    border: 1px solid white;
    border-radius: 6px;
    background-color: var(--popupmenu-bg-color);
    display: none; /* affichée par callback sur la checkbox */
    padding: 0.5rem;
}
.MaskableArea div {
    white-space: nowrap;
    margin-bottom: 2px;
}
.MaskableArea .ContainerBox {
    padding-left: 0px;
}
/* Styles pour les objets de téléchagrement de fichiers */
.upload-wrapper {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    margin-bottom: 0px;
    gap: 10px;
    min-width: 0;
}

.upload-wrapper span {
    flex: 1 1 0;
    min-width: 0;
}
.input-file {
    display: none;
}

.custom-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #007bff;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    border: none;
    position: relative;
}
.custom-file-button.small {
    width: 20px;
    height: 20px;
}
.custom-file-button svg {
    width: 20px;
    height: 20px;
}
.custom-file-button.small svg {
    width: 10px;
    height: 10px;
}
.custom-file-button::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 1px;
    background: white;
    transform: rotate(45deg);
    opacity: 1;
    transition: opacity 0.3s ease;
}
.custom-file-button.small::after {
    width: 12px;
}
.custom-file-button.mask-when-set.has-file {
    display: none;
}
.custom-file-button.has-file::after {
    opacity: 0;
}
.upload-file-name {
    font-style: italic;
    font-size: 0.9rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.miniature {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    display: none;
    cursor: pointer;
}

.miniature.small {
    width: 20px;
    height: 20px;
}
.miniature.visible {
    display: block;
}

.reset-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1rem;
    cursor: pointer;
    display: none;
}
.reset-btn:hover {
  color: black;
  transform: scale(1.1);
}
.reset-btn.has-file {
    display: block;
}

/* Styles pour les viewers de fichiers */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal-content img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  transition: transform 0.2s;
}

.modal-controls {
  position: absolute;
  display: flex;
  flex-direction: row;
  top: 10px;
  right: 20px;
  z-index: 10000;
}

.viewer-btn {
  width: 40px;
  height: 40px;
  margin: 5px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.2s;
}

.viewer-btn:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}
.viewer-content-pdf {
  width: 90vw; 
  height: 90vh; 
  border: none;
}
.viewer-content-text {
  background: white;
  width: 90vw;
  height: 90vh;
  border: none;
  padding: 0.5rem;
}

@media only screen and (min-resolution: 200dpi) and (orientation: portrait) {
    /* Mobile */
/*    img {
        width: 100px;
        height: auto;
    }*/
    h1 {
        font-size: 4rem;
     }
    h2 {
        font-size: 4rem;
    }
    .TextAreaForm {
        width: 100%;
        height: 20rem;
        font-family: inherit;
    }

    .ContainerBox {
        display:grid;
        grid-template-columns: 1fr;
        gap: 10px;
        font-size: 42px;
        margin-top: 10px;
    }
    .ContainerBox input {
        font-size: 4rem;
    }
    .ContainerBox textarea {
        font-size: 4rem;
    }
    .ContainerBox select {
        font-size: 4rem;
    }
    .ParameterCell {
        display:flex;
        flex-direction: row;
        flex-wrap: wrap;
        padding-left: 1rem;
        padding-right: 1rem;
        /*font-size: 20px;*/
        /*border: 1px solid white;*/
    }
    .ParameterCell>:nth-child(2n+1) {
        min-width: 50%;
        max-width: 80%;
        padding-top: 1rem;
    } 
    .ParameterCell>:nth-child(2n) {
        min-width: 15%;
        margin-left: auto; /* Alignement du 2ème div à droite */
        text-align: right;
        padding-top: 1rem;
    } 
    .ParameterCell input[type=text] {
        font-size: 3rem;
        min-width: 99%;
    }
    .ParameterCell input[type=email] {
        font-size: 3rem;
        min-width: 99%;
    }
    .ParameterCell input[type=tel] {
        font-size: 3rem;
        min-width: 99%;
    }
    .ParameterCell select {
        font-size: 4rem;
        min-width: 20%;
    }
    .ParameterCell div {
        /*font-size: 20px;*/
        font-size: 3rem;
        /*border: 1px solid white;*/
        overflow: visible;
    }
   .LeftMenuPanel {
        display: none;
        background: rgba(0,0,0,0.8);
        width: 80%;
        transition: none;
        font-size: 3rem;
    }
    .LeftMenu>* {
        font-size: 4.5rem;
        gap: 5px;
    }
    .LeftMenuContainer>*:first-child() {
        height: 5vh;
    }
    .LeftMenuContainer>*:nth-child(0n+2) {
        height: 75vh;
    }
    .LeftMenuContainer>*:last-child() {
        height: 15vh;
    }
    .LeftMenu>*:last-child {
        height: 30%;
    }
    .LeftMenu>*:last-child div {
        height: 100%;
    }
    .LeftMenu>div {
        height: 5rem;
    }
    .TitleSubMenu {
        font-size: 4rem;
        width: 400px;
        left:250px; /* Tenir compte du margin et padding */
    }
    .MenuBurger {
        position: fixed;
        bottom: 2rem;
        left: 2rem;
        z-index: 120;
        display: inline;
    }
    .NavigationBar {
        font-size: 3rem;
        height: 4rem;
    }
    .NavigationPageNumber {
        background : white;
        border: 1px solid black;
        font-family: monospace;
    }
    
    .NavigationBar .DefaultButton {
        font-size: 3rem;
    }
    #additem {
        font-size: 42px;
    }
    .DefaultButton {
        font-size: 4rem;
        border: 0;
        line-height: 1.5;
        padding: 0 10px;
        
        text-align: center;
        color: #fff;
        text-shadow: 5px 5px 5px #000;
        border-radius: 16px;
        background-color: var(--defaultbutton-bg-color);
        background-image: var(--button-bg-image);
        box-shadow: var(--button-shadow);        
    }
    .CancelButton {
        font-size: 4rem;
        border-radius: 16px;
    }
    .CheckboxContainer {
      position: absolute;
      /*top: 0;
      left: 0;*/
      height: 60px;
      width: 60px;
      border-radius: 10px;
      background-color: white;
      border: 1px solid black;
    }
    .CheckMark {
      position: absolute;
      top: 0;
      left: 0;
      height: 60px;
      width: 60px;
      border-radius: 10px;
      background-color: white;
      border: 1px solid black;
    }
    .CheckboxContainer .CheckMark:after {
      left: 17px;
      top: 0px;
      width: 15px;
      height: 42px;
      border: solid blue;
      border-width: 0 12px 12px 0;
      -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
      transform: rotate(45deg);
    }
    .LabelCheckbox {
        padding-left: 4rem;
    }
}


@media only screen and (height < 700px) {
    .LeftMenuPanel{
        &:hover {
            width: 350px;
        }
    }
    .LeftMenu>* {
        font-size: 16px;
    }
    .TitleSubMenu {
        left: 300px; /* Tenir compte du margin et padding */
        width: 250px;
    }    
    .LogoImg {
        max-width: 20%;
        height: auto;
    }
}
    