/* Follow me for more pens like this! */

/* Tweak to change the look and feel */
:root {
  --button-background: dodgerblue;
  --button-color: white;
  
  --dropdown-highlight: dodgerblue;
  --dropdown-width: 320px;
  --dropdown-background: white;
  --dropdown-color: var(--FormCouleurCarac);
}

/* Boring button styles */
a.button {
  /* Frame */
  display: inline-block;
  padding: 20px 28px;
  border-radius: 50px;
  box-sizing: border-box;
  
  /* Style */
  border: none;
  background: var(--button-background);
  color: var(--button-color);
  font-size: 24px;
  left:100px;
  cursor: pointer;
}

a.button:active {
  filter: brightness(75%);
}

/* Dropdown styles */
.dropdown {
  position: relative;
  padding: 0;
  margin-right: 1em;
  
  border: none;
}

.dropdown summary {
  list-style: none;
  list-style-type: none;
}

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

.dropdown summary:focus {
  outline: none;
}

.dropdown summary:focus a.button {
  border: 2px solid white;
}

.dropdown summary:focus {
  outline: none;
}

.dropdown ul {
  position: absolute;
  margin: 0px 0px 0 0;
  padding: 0px 0 0 0;
  min-width: var(--dropdown-width);
  width: auto;
  left: -575px;
  margin-left: calc((var(--dropdown-width) / 2)  * -1);
  box-sizing: border-box;
  z-index: 2;
  bottom: 50px;
  background: var(--dropdown-background);
  border-radius: 6px;
  list-style: none;
  overflow: auto;
  max-height: 140px;
  float: left;
}

.dropdown ul li {
  padding: 0;
  margin: 0;
}

.dropdown ul li a:link, .dropdown ul li a:visited {
  display: contents;
  width: 100%;
  box-sizing: border-box;
  background-color: dodgerblue;
}

.dropdown ul li a:hover {
    display: contents;
    background-color: dodgerblue;
    font-weight: bolder;
}

/* Dropdown triangle */
.dropdown ul::before {
  content: ' ';
  position: absolute;
  width: 0;
  height: 0;
  top: -10px;
  left: -50%;
  margin-left: -10px;
  border-width: 0 10px 10px 10px;
  border-color: transparent transparent var(--dropdown-background) transparent;
}


/* Close the dropdown with outside clicks */
.dropdown > summary::before {
  display: none;
}

.dropdown[open] > summary::before {
    content: ' ';
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 1;
}

.docs {
    transition: transform 0.4s;
    box-shadow: 0 0 30px #241d20;
    border-radius: 5px;
    width: max-content;
}

@media all and (orientation = portrait) {
    .docs {
        font-size: 26px !important;
         width: 850px !important;
    }
}
.sr-only {
  position: absolute;
  top: -30em;
}

@media all and (max-width: 1800px) and (max-height:900px) and (orientation: landscape) {
    #sortableTable,#sortableTableAction {
        z-index: 10000;
        margin-top: -25px;
        margin-left: 0px;
    }

    #sortableTable2,#sortableTable2cc{  
            table-layout: fixed;        
        }
}

.sortable2 { width: -webkit-fill-available;}

@supports (-webkit-hyphens:none){ 
    #sortableTable,#sortableTableActio {
        position: -webkit-sticky;
    margin-top: 0px !important;
 }

 #sortableTable2,#sortableTable2cc {  
            table-layout: fixed;      
            margin-top: -18px;
            position: -webkit-sticky;
    margin-top: 0px !important;
        }
}
@media all and (orientation : portrait) {
   #sortableTable,#sortableTableActio,#sortableTable2, #sortableTable2cc { width: 850px !important;}
}

@media all and (max-height: 750px) and (orientation : landscape) {
   #sortableTable,#sortableTableActio,#sortableTable2, #sortableTable2cc { width: 850px !important;}
}
@media all and (min-width: 1800px) and (min-height:900px) {
    #sortableTable,#sortableTableActio {
        z-index: 10000;
        margin-top: -25px;
        margin-left: 0px;
    }
    #sortableTable2,#sortableTable2cc {  
            table-layout: fixed;        
        }
}

@media all and (orientation = portrait) {
    #sortableTable,#sortableTableActio {
        z-index: 10000;
        margin-top: -40px;
    }

    #sortableTable2, #sortableTable2cc{  
            table-layout: fixed;
            position:fixed;
            right: 0;
            font-size: 22px !important;  
            z-index: 10000;
     
        }
}
.sortable th {
  font-weight: bold;
  border-bottom: thin solid #888;
  position: relative;
}

.sortable th.no-sort {
  padding-top: 0.35em;
}

.sortable th:nth-child(5) {
  width: 10em;
}

body::-webkit-scrollbar {
  width: 12px;               /* width of the entire scrollbar */
}

body::-webkit-scrollbar-track {
  background: var(--FormCouleurCarac);       /* color of the tracking area */
}

body::-webkit-scrollbar-thumb {
  background-color: var(--FormCouleurFond);    /* color of the scroll thumb */
  border-radius: 20px;       /* roundness of the scroll thumb */
  border: 3px solid var(--FormCouleurCarac);  /* creates padding around scroll thumb */
}

.sortable2 tr td ,.sortable3 tr td,.sortable2cc tr td {
        background-color: white;
       
        color:var(--FormCouleurCarac);
        text-align: center;
        scrollbar-width: 2px;

}

.sortable th button {
  margin: -2px;
  font-size: 100%;
  font-weight: bold;
  background: var(--FormCouleurFond);
  border: none;
  display: inline;
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  outline: none;
  cursor: pointer;
  height: auto;
  color:var(--FormCouleurCarac);
}

.sortable2 td button,.sortable3 td button,.sortable2cc td button{
    min-width: 140px;
}

.sortable th button span {
  position: absolute;
  right: 0px;
}

.sortable th[aria-sort="descending"] span::after {
    content: "Ã¢â€“Â¼";
  color: var(--FormCouleurCarac);
  font-size: 100%;
  top: -2px;
  right: 5px;
}

.sortable th[aria-sort="ascending"] span::after {
    content: "Ã¢â€“Â¼";
  color: var(--FormCouleurCarac);
  font-size: 100%;
  top: -2px;
  right: 5px;
}

.show-unsorted-icon th:not([aria-sort]) button span::after {
    content: "Ã¢â„¢Â¢";
  color: var(--FormCouleurCarac);
  font-size: 100%;
  position: relative;
  top: -2px;
  left: -4px;
}

.sortable td.num {
  text-align: right;
}

.sortable2 tr:hover td ,.sortable3 tr:hover td ,.sortable2cc tr:hover td {
    background-color: var(--FormCouleurCarac);
    color: white;
 }

.sortable2 tr:hover td a,.sortable3 tr:hover td a ,.sortable2cc tr:hover td a {
    background-color: var(--FormCouleurCarac);
    color: white;
 }

.sortable tbody tr:nth-child(odd) {
  background-color: #ddd;
}

/* Focus and hover styling */

.sortable th button:focus,
.sortable th button:hover {
  padding: 0px;
  border: 0px solid currentcolor;
}

.sortable th button:focus span,
.sortable th button:hover span {
    right: 5px;
}

.sortable th:not([aria-sort]) button:focus span::after,
.sortable th:not([aria-sort]) button:hover span::after {
    content: "Ã¢â€“Â¼";
  color: var(--FormCouleurCarac);
  font-size: 100%;
  top: 0;
  right: 5px;
}

.sortable tbody.scroll{
  overflow-y: auto;
  height:20vh;        
  position: relative;
  display: block;
}

.sortable th {
	text-align: left;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    width:20vh;
}


#ulDoc2 {
            position: fixed !important;
            /* margin-left: -600px; */
            /* margin-top: 50px; */
            transform: scale(1.0);
            z-index: 10000;
            display: block;
            top: 150px;
            right: 300px;
}

#ulDoc3 {
            position: fixed !important;
            /* margin-left: -600px; */
            /* margin-top: 50px; */
            transform: scale(1.0);
            z-index: 10000;
            display: block;
            top: 42%;
            right: 100px;
}

#bDoc, #bDoc3,#bDoc:hover, #bDoc3:hover {
    background: unset;
    padding: unset;
    margin: unset;
    height: unset;
    width: unset;
}

#ulDoccc,#sortableTable2cc,#sortableTablecc{

}

.icons-menu-container img {
    margin-top: 10px;
}

    @media only screen and (min-width: 360px) and (max-width: 800px) and (orientation: portrait) {

        .sortorange th button {
            margin: -2px;
            font-size: 120%;
            font-weight: bold;
            background: orange !important;
            border: none;
            display: inline;
            right: 0;
            left: 0;
            top: 0;
            bottom: 0;
            width: 100%;
            outline: none;
            cursor: pointer;
            height: auto;
            zoom: 1.4;
        }

        #ulDoc2 {
            position: fixed !important;
            /* margin-left: -600px; */
            /* margin-top: 50px; */
            z-index: 10000;
            display: block;
            top: 150px;
            right: 40px;
        }

        #ulDoc3 {
            position: fixed !important;
            /* margin-left: -600px; */
            /* margin-top: 50px; */
            z-index: 10000;
            display: block;
            top: 150px;
            right: 40px;
        }

        #ulDoccc {
            position: fixed !important;
            /* margin-left: -600px; */
            /* margin-top: 50px; */
            z-index: 10000;
            display: block;
            top: 150px;
            right: 40px;
            width:850px !important;
        }

            .docs {
            zoom: 0.5;
            font-size: 100% !important;

            margin-left: -50px !important;
        } 

        .sortable th button {
            min-height: 40px;
            table-layout: fixed; 
        }

        .sortable2 td ,.sortable3 td ,.sortable2cc td  {
            margin-top:5px;
        }

        .obsStyle {
        height: 485px;
    }
    }


    .col1 { width: 20%;}

    .col2 { width: 37%;}

    .col3 { width: 27%;}

    .col4 { width: 20%;}


    .col11 { width: 15%;  color: var(--FormCouleurCarac);}

    .col11 a,.col21 a,.col31 a,.col41 a,.col51 a,.col11 a,.col61 a { color: var(--FormCouleurCarac);}

.col21 { width: 25%;  color: var(--FormCouleurCarac);}

.col31 { width: 25%;  color: var(--FormCouleurCarac);}

.col41 { width: 20%;  color: var(--FormCouleurCarac);}

.col51 { width: 15%;  color: var(--FormCouleurCarac);}

    .sortorange { position: relative !important;}

    .sortorange th button {
    margin: -2px;
    font-size: 20px;
    font-weight: bold;
    background: orange !important;
    border: none;
    display: inline;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    outline: none;
    cursor: pointer;
    height: auto;
    color: var(--FormCouleurCarac);
}

.sortable th {
    background-color: var(--FormCouleurFond) !important;
}

/* containers + scroll */
.table-wrap {
  max-height: 200px;
}

.table-wrap2 {
  max-height: 200px;
  overflow-y: auto; /* active le scroll vertical */
  overflow-x: hidden; /* masque le scroll horizontal */
}

/* tableau principal */
#sortableTable {
  width: 100%;
  border-collapse: collapse;
}

#sortableTable th, #sortableTable td {
  padding: 0.5rem;
  border: 1px solid #ddd;
  text-align: left;
}

/* en-tÃƒÂªte sticky */
#sortableTable thead th {
  position: sticky;
  top: 0;
  background: #f9f9f9;
}


/* petits ÃƒÂ©crans : colonnes adaptatives */
@media (max-width: 600px) {
  #sortableTable th.col1, #sortableTable td.col1,
  #sortableTable th.col4, #sortableTable td.col4 {
    display: none;  /* masque date + organisme pour mobile */
  }
}


 table.scroll {

  }
  table.scroll thead,
  table.scroll tbody {
    display: block;
  }
  table.scroll thead {
    /* ajuste la largeur des colonnes si tu veux */
  }
  table.scroll tbody {
    max-height: 300px;      /* hauteur du scroll */
    overflow-y: auto;       /* active le scroll vertical */
  }
  table.scroll th,
  table.scroll td {           /* rÃƒÂ©partit 3 colonnes ÃƒÂ  33% */
  }

    table.scrolling tbody {
    max-height: 300px;      /* hauteur du scroll */
    overflow-y: auto;       /* active le scroll vertical */
  }

   .autocomplete-wrapper{position:relative;max-width:400px;}
    .my-input{width:100%;padding:0.5rem;font-size:1rem;}
    .autocomplete-items{position:absolute;top:100%;left:0;right:0;max-height:300px;overflow-y:auto;border:1px solid #ccc;background:#fff;z-index:1000;display:none;}
    .autocomplete-item{padding:0.4rem 0.6rem;cursor:pointer;line-height:1.2;border-bottom:1px solid #eee;}
    .autocomplete-item:last-child{border-bottom:none;}
    .autocomplete-item:hover,.autocomplete-item.is-active{background:#f0f0f0;}
    .autocomplete-empty{padding:0.4rem 0.6rem;color:#888;}
    #result-panel{margin-top:1rem;}
    .coords{font-size:0.85rem;color:#555;}
