/* Formulaire */

.page .ctn {overflow: initial;}

.dropdown
{
    position: relative;
}

.dropdown form
{
    font-size: 0px;
    background: rgb(215,215,215);
    border-radius: 7px;
    box-shadow: 0 0 5px rgba(0,0,0,.3);
    border: 1px solid grey;
    padding: 10px 0px;
    width: 300px;
    display: none;
    margin-top: 10px;
    
    position: absolute;
    left: -240px;
    z-index: 2;
}

body.dark .dropdown form
{
    background: rgb(70,70,70);
}

body.white .dropdown form
{
	background: #fff;
    box-shadow: 0 0 2px #000;
    border: none;
}

body.black .dropdown form
{
	background: #000;
    box-shadow: 0 0 2px #fff;
    border: none;
}

.dropdown form p
{
    margin: 5px 20px;
}

input[type=checkbox]
{
	display: none;
}

label
{
	background: transparent;
	padding: 10px 20px;
	display: inline-block;
	cursor: pointer;
	width: calc(100% - (10px + 30px));
	
	-webkit-transition: all .25s ease;
       -moz-transition: all .25s ease;
        -ms-transition: all .25s ease;
         -o-transition: all .25s ease;
            transition: all .25s ease;
}

label::before
{
	content: '';
    display: inline-block;
    vertical-align: middle;
    width: 25px;
    height: 25px;
    border: 1px solid transparent;
    border-radius: 4px;
    margin-right: -23px;
	
	-webkit-transition: all .25s ease;
       -moz-transition: all .25s ease;
        -ms-transition: all .25s ease;
         -o-transition: all .25s ease;
            transition: all .25s ease;
}

label img,
label span
{
	display: inline-block;
    vertical-align: middle;
}

label img
{
	margin: 0px;
	margin-right: 10px;
	width: 20px;
	height: 20px;
}

label span
{
	font-size: 14px;
}

input[type=checkbox]:checked + label::before
{
	background: #fff;
    border-color: gray;
}

body.dark input[type=checkbox]:checked + label::before
{
	background: #666;
    border-color: #999;
}

body.white input[type=checkbox]:checked + label::before
{
	background: #eee;
    border-color: #ccc;
}

body.black input[type=checkbox]:checked + label::before
{
	background: #111;
    border-color: #333;
}

label:hover,
input[type=checkbox]:checked + label:hover
{
	background: rgba(0,0,0,.2);
}

/* Timeline */
.timeline
{
    border-left: 4px solid rgba(0,0,0,.3);
    list-style: none;
    padding: 0px;
    padding-left: 30px;
    padding-top: 10px;
}

.black .timeline
{
    border-left-color: rgba(255,255,255,.1);
}

.timeline li
{
    position: relative;
    top: -15px;
    margin-bottom: 50px;
}

.timeline li.clicable
{
    cursor: pointer;
}

.timeline li:last-child
{
    margin-bottom: 0px;
}

.timeline li::before
{
    content: '';
    position: absolute;
    border: 3px solid #fff;
    background: #000;
    padding: 5px;
    border-radius: 100%;
    font-size: 0px;
    left: -40px;
    top: 3px;
}

.dark .timeline li::before
{
    border-color: rgb(40,40,40);
    background: #fff;
}

.black .timeline li::before
{
    border-color: #000;
    background: #fff;
}

.timeline li .block
{
    background: rgb(25,25,25);
    color: #fff;
    font-size: 0px;
    border-radius: 5px;
    overflow: hidden;
}

.white .timeline li .block
{
	background: #fff;
    box-shadow: 0 0 2px #000;
    color: #000;
}

.black .timeline li .block
{
	background: #000;
    box-shadow: 0 0 2px #fff;
}

.timeline li.clicable:hover .block
{
    background: rgb(50,50,50);
}

.white .timeline li.clicable:hover .block
{
    background: rgba(0,0,0,.2);
}

.black .timeline li.clicable:hover .block
{
    background: rgba(255,255,255,.1);
}

.timeline li .block img,
.timeline li .block .txt,
.timeline li .block .txt .tags
{
    display: inline-block;
    vertical-align: top;
}

.timeline li .block img
{
    max-width: 400px;
}

.timeline li .block .txt
{
    width: calc(100% - 400px);
}

.timeline li .block .txt h3
{
    margin: 0px;
    padding: 20px 25px;
    font-size: 20px;
    font-weight: normal;
}

.timeline li .block .txt .tags
{
    background: rgba(255,255,255,.1);
    padding: 10px;
    display: inline-block;
    margin: 0px 20px;
    position: relative;
}

body.white .timeline li .block .txt .tags
{
    background: rgba(0,0,0,.2);
}
/*
.timeline li .block .txt .tags::before
{
    content: 'Tags';
    color: #fff;
    font-size: 10px;
    position: absolute;
    top: -15px;
}*/

.timeline li .block .txt .tags img
{
    width: 15px;
    margin-right: 5px;
    vertical-align: middle;
}

.timeline li .block .txt .tags span
{
    font-size: 12px;
    font-weight: normal;
    vertical-align: middle;
}

#itemViewer .item
{
    text-align: left;
    font-size: 14px;
    max-width: 800px;
    line-height: 1.5em;
}

.deco, .item {
	width: 50%;
	display: inline-block;
	vertical-align: top;
}
.deco {
	margin-right: 30px;
	width: calc(50% - 30px);
}

/* Formulaire d'ajout d'un item */
#addItem table
{
    margin: 0;
    width: 100%;
    border: none;
    box-shadow: none;
}

#addItem table tr:nth-child(odd) {background: transparent;}

#addItem table td, 
#addItem table th 
{
    border: none;
    padding: 5px;
    text-align: left;
    font-size: 14px;
    color: inherit;
    background: transparent;
}

#addItem select,
#addItem textarea,
#addItem input[type=text],
#addItem input[type=date]
{
	width: calc(100% - 30px);
}

#addItem table th span {color: orangered;}
#addItem table td span {color: orangered; margin-left: 10px;}

#addItem table #txt
{
    vertical-align: top;
}

#addItem table #txt label
{
    padding: 10px 0;
    display: block;
}