/*
 * TODO
 * Use variables for colors and linked values
 */

html,
button,
input,
select,
textarea,
.pure-g [class *= "pure-u"] {
  font-family: "EY";
}

body {
  background-color: #2e2e2e;
}

body,
body a {
  color: #eee;
}

body input,
body select,
body textarea {
  color: #111;
}

body input::placeholder,
body textarea::placeholder {
  color: #ccc;
}

.pure-button-primary {
  background-color: #ffc400;
  color: #111;
  border-radius: 10px
}

/* Menus */

#navbar, #navbar .pure-menu-link,
#sidebar , #sidebar .pure-menu-link {
  background-color: #191818;
  color: #eee;
}

#navbar li.pure-menu-item a:hover,
#navbar li.pure-menu-item a:focus,
#navbar li.pure-menu-selected a,
#sidebar li.pure-menu-item a:hover,
#sidebar li.pure-menu-item a:focus,
#sidebar li.pure-menu-selected a {
  background-color: #191818;
  color: #ffc400;
}

#navbar {
  height: 50px; /* var = navbar-height */
  padding: 0.5em; /* TODO */
}

#navbar img {
  height: 30px;
  width: 30px;
  margin-left: 1em; /* var = sidebar-items-left-margin */
}

#navbar .pure-menu-list {
  float: right;
}

#sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 150px;
  margin-left: -150px;
  left: 150px;
  margin-top: 50px; /* var = navbar-height */
  -webkit-overflow-scrolling: touch;
}

/* Login */

#login svg {
  float: right;
  /* margin: 10rem 2rem 0 0; */
}

#login .pure-form input {
  width: 280px;
  margin: 0.5rem
}

#login .pure-form .pure-button {
  /* width: 200px; */
  /* margin-top: 2rem; */
  /* margin-left: 50px; */
  text-align: center;
}

/* Main */

main {
  padding-left: 150px;
  padding-top: 50px; /* var = navbar-height */
}


main-login {
  width:100%;
  height:100%;
  padding-left: 0px;
  padding-top: 0px;
}

#content {
  margin: 1em;
  padding: 0 1em;
  line-height: 1.6em;
}

/* Ls */

#ls-exp {
  margin-bottom: 2em;
}

#ls-exp input {
  width: 100%;
  font-size: 14px;
}

#ls-exp input.restricted {
  background-color: #E0A0A0;
  color: #111;
}

#ls-exp input.restricted::placeholder {
  color: #666;
}

#ls-exp .ls-exp-nav {
  text-align: center;
}

#ls .pure-table {
  width: 100%;
}

.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1em;
  position: relative;
}

/* Retirez les propriétés de défilement de la table elle-même */
.pure-table {
  width: 100%;
}

.table-responsive-wrapper:hover::after {
  opacity: 1;
}

.sticky-column {
  position: sticky;
  left: 0;
  z-index: 1;
  background-color: #2e2e2e;
}

thead .sticky-column {
  background-color: #191818;
  z-index: 2;
}

tbody .sticky-column {
  background-color: #191818;
}

#ls .pure-table tbody tr:hover .sticky-column {
  background-color: rgba(136, 136, 136, 1);
}

#ls .pure-table,
#ls .pure-table td,
#ls .pure-table th {
  border: none;
}

#ls .pure-table thead tr {
  background-color: #191818;
  color: #ffc400;
}

#ls .pure-table tbody tr:hover {
  background-color: rgba(136, 136, 136, 1);
}

#ls .pure-table .ls-tab-act a {
  color: #ffc400;
  text-decoration: none;
}

/* Form */

#form .pure-control-group input,
#form .pure-control-group textarea {
  width: 400px
}
 
#associated_units {
  height: 300px; 
  resize: vertical;
}

#form .pure-form-message-inline {
  color: red;
}

#form-head .form-head-item {
  display: inline-block;
  vertical-align: center;
}

.footer {
  width: 100%;
  background-color: #00000000;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 3;
  text-align: right;
  color: white ;/* #d9413c; */
  font-size: larger;
  /* padding-top: 0.5em;
  padding-right: 1.0em;
  padding-bottom: 0.5em;
  padding-left: 0.5em; */

}

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

.modal-content {
  position: absolute;
  top: 135px;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  overflow: auto;
  color:rgba(0, 0, 0, 1.0);
  border-radius: 5px;
}

.modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

#modalOuiButton #modalCancelButton {
    background-color: #f44336; /* Couleur de fond rouge */
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
  }
