body{
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
	transition:opacity 0.4s ease;
}
body.busy{
	pointer-events:none;
  	opacity:0.6;
}

#container {
    max-width: 800px;
    margin: auto;
}

#list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom:40px;
}

#list li {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

#list li .checkbox {
    position: relative;
    cursor:pointer;
    display: block;
    min-width: 40px;
    min-height: 40px;
    margin-right: 10px;
    border:2px solid #777;
    border-radius:3px;
    background-color: #fff;
    font-style: normal;
}
#list li .checkbox::after {
  position: absolute;
  content:attr(data-icon);
  font-size: 2em;
  font-weight: bold;
  top:50%;
  left:50%;
  line-height: 40px;
  transform: translate(-50%,-50%);
  width: 40px;
  height: 40px;
  text-align: center;
}

#list li .checkbox[data-status="checked"] {
    background-color: cornflowerblue;
    color:#fff;
}
#list li .checkbox[data-status="relocate"] {
    background-color: goldenrod;
    color:#fff;
}
#list li .checkbox[data-status="missing"] {
    background-color: tomato;
    color:#fff;
}

#list li span:first-of-type {
    position: relative;
    font-family: monospace;
    /* max-width: 100px; */
    /* flex: 1 1 200px; */
    /* overflow: hidden; */
    justify-self: start;
    font-size: 18px;
}

._name {
    flex: 100%;
    padding-right: 40px;
    /* display: none; */
    font-size: 14px;
    color: inherit;
    text-decoration: none;
}
._name:hover{
    text-decoration: underline;
}

#list li strong {
    flex: 1 1 auto;
    text-align: right;
    font-size: 18px;
}

#list li:nth-child(2n) {
    background-color: rgb(246,246,246);
}

#list li div {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
}

h1 {
    text-align: center;
    margin-top: 0;
}

#places {
    font-size: 16px;
    width: 100%;
    height: 30px;
    margin-bottom: 16px;
}

#searchbox > div {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    position: relative;
}

#searchbox input {
    flex: 1;
    font-size: 20px;
    padding: 6px;
    margin-right: 4px;
}

#searchbox {
    margin-bottom: 10px;
}

#search {
    font-size: 20px;
    padding: 6px;
}

#search:hover {
    background-color: orange;
}

#list>em {
    display: block;
    margin-bottom: 20px;
}

.id{
 -ms-user-select: none;
 -moz-user-select: none;
 -webkit-user-select: none;
 user-select: none;
}
/*.id::after{*/
/* content:attr(data-code);*/
/*}*/

._code{
 cursor:pointer;
}
._code:hover{
 text-decoration:underline;
}

#list li span:first-of-type::after {
    content: " " attr(data-newcode);
    color: steelblue;
    /* display: block; */
    font-size: 18px;
    line-height: 2em;
    font-weight: bold;
}

#list li .relocated:first-of-type::before {
    content: attr(data-oldcode);
    font-size: 16px;
    color: #777;
    line-height: 1.2em;
    text-decoration: line-through;
}

#list li .relocated:first-of-type {
    font-size: 0px;
    line-height: 0px;
}


.out {
    background-color: hsl(351deg 100% 92%) !important;
    color: #777;
}

.out ._name::after {
    content: " EMPRUNT\00C9";
    color: saddlebrown;
    font-weight: bold;
}

.misplaced {
    background-color: hsl(210deg 100% 94%) !important;
    color: #777;
}
.misplaced ._name::after {
    content: " DÃ‰PLAC\00C9";
    color: darkblue;
    font-weight: bold;
}

#export {
    cursor: pointer;
    width: 100%;
    height: 40px;
    border: none;
    background-color: yellowgreen;
    color: #fff;
    font-size: 18px;
    border-radius: 10px;
}

#export:hover {
    background-color: limegreen;
}

#export:active {
    background-color: #444;
}

#list .selected {
    background-color: palegreen !important;
}


#selectAll {
    float: right;
    margin-top: 10px;
    background: no-repeat;
    border: none;
    font-weight: bold;
    color: mediumseagreen;
}

.empty #selectAll {
    display: none;
}


#searchbox > div::before {
    position: absolute;
    color: #555;
    font-size: 13px;
    background-color: #fff;
    top: -7px;
    line-height: 13px;
}

#by-name::before {
    content: "nom";
}

#by-index::before {
    content: "index";
}

#by-location::before {
    content: "code de localisation";
}


#selbox {
    position: fixed;
    bottom: 0;
    background-color: #fff;
    left: 0;
    padding: 2px 6px;
    box-shadow: 0 0 3px #000;
    border: 2px solid #eee;
}

#selbox[data-number="0"] {
    display: none;
}

#deselect {
    cursor: pointer;
    background-color: #ccc;
    color: #fff;
    height: 20px;
    width: 20px;
    display: inline-block;
    position: relative;
    border-radius: 50%;
    box-sizing: border-box;
    vertical-align: middle;
}

#selected {
    margin-right: 10px;
    cursor: pointer;
}

#deselect::after {
    content: "X";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: monospace;
    font-size: 14px;
}

#deselect:hover {
    background-color: #aaa;
}

#selected:hover {
    text-decoration: underline;
}

#searchbox > div > span {
    cursor: pointer;
}

#myturn {
    text-align: right;
}

#myturn a {
    text-decoration: none;
    color: orange;
}


#update span {
    padding: 2px 10px;
    border-radius: 6px;
    color: #888;
    cursor: pointer;
}

#update span:hover {
    background-color: #eee;
}

#update span:active {
    background-color: #aaa;
    color:#fff
}


#docs {
    text-align: right;
}

#docs a {
    text-decoration: none;
    color: cornflowerblue;
}


.modal.open {
    display: block;
    pointer-events:all;
}

.modal {
    background: rgba(0,0,0,0.3);
    position: fixed;
    inset: 0;
    padding: 200px;
    display: none;
    pointer-events:none;
}

.modal .wrap {
    margin: auto;
    max-width: 1000px;
    min-height: 200px;
    background: #fff;
    padding: 30px;
}

.disable {
    pointer-events: none;
    opacity: 0.5;
}

._move {
    cursor: pointer;
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 30px;
    line-height: 30px;
    padding: 0 10px;
}

._move:hover {
    background: #999;
    color: #fff;
}

.moved ._move {
    background: tomato;
    font-weight: bold;
    color: #fff;
}

.modal select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}

.modal [data-text]::before {
    content: attr(data-text);
    position: absolute;
    top: -17px;
    background: #fff;
}
.modal [data-original]::after {
    content: "original: " attr(data-original);
    display:block;
    text-align:right;
    font-size:11px;
}

.modal input {
    margin-bottom: 20px;
}

.modal div {
    position: relative;
    margin-bottom: 20px;
}

.modal h2 {
    margin-bottom: 60px;
}

.modal .cancel {
    background: no-repeat;
    border: none;
    color: tomato;
    cursor: pointer;
}

.modal .apply {
    float: right;
}

.modal button {
    margin-top: 30px;
    font-size: 14px;
    cursor: pointer;
}

.modal .cancel:hover {
    text-decoration: underline;
}

@media screen and (max-width:800px){
    .modal {
        padding: 10px;
    }
}