

/* color picker */
div.color-picker { border-left: 1px solid #000; border-top: 1px solid #000; position: absolute; left: 0px; top: 0px; padding: 0px; }
div.color-picker ul { list-style: none; padding: 0px; margin: 0px; float: left; }
div.color-picker ul li { display: block; width: 15px; height: 15px; border-right: 1px solid #000; border-bottom: 1px solid #000; margin: 0px; float: left; cursor: pointer; }


/* project */

.part {
	margin-bottom:20px;
	float: left;
}

.part.w33 {
	display:inline-block;
	width:calc(100% / 3);
}

.part.w50 {
	display:inline-block;
	width:calc(50%);
}

.part.w66 {
	display:inline-block;
	width:calc((100% / 3) * 2);
}

.part.w100 {
	display:block;
	width:100%;
}

.part.edit {
	border:solid 2px #FFF;

}

.part.edit:hover, .part.edit.selected {
	border:solid 2px #DDD;
	min-height:55px;
}

#content .page .part.edit:hover .editorPart, .part.edit.selected .editorPart {
	display:block;
}

.part .header {
	padding:10px;
	border-bottom:solid 1px #CCC;
	background:rgba(0,0,0,0.03);
}

.part .title {
	font-size:1.3em;
	color:#333;
}

.part .content {
	padding:10px;
	border-bottom:solid 1px #EEE;
	margin-left: 0px;
}

.part .content h1 {
	font-size:2em;
}

.part .content .img {
	text-align:center;
}

.part .content .img img{
	width:auto;
	max-width:100%;
}

.part .content .img .legend {
	padding-top:5px;
}

.part .content .dataList .date {
	display:block;
	font-size:0.8em;
	color:#BBB;
}

.part .chart {
	width:100%;
}

.part .chart.height1 {
	height:300px;
}

.part .chart.height2 {
	height:500px;
}

.part .chart.height3 {
	height:800px;
}

.part .chart.height4 {
	height:1200px;
}

.part .chart .loader {
	width:100%;
	height:100%;
	text-align:center;
	position: relative;
}

.part .chart .loader img {
	position: relative;
	width:35px;
	height:35px;
	top: 50%;
  	transform: translateY(-50%);
	opacity:0.15;
}

#projectList {
	width:100%;
	padding:5px 7px;
}



/* Editor */


#editor {
	position:fixed;
	width:450px;
	right: -450px;
    top: 54px;
    bottom: 0;
    padding-top: 54px;
    background: #F9F9F9;
	border-left:solid 1px #EEE;
    z-index: 1015;
	padding:10px 5px 10px 5px ;
	white-space: nowrap;
}

#editor .content .loader {
	width:100%;
	height:100%;
	text-align:center;
	position: relative;
}

#editor .content .loader img {
	position: relative;
	width:40px;
	height:40px;
	top: 50%;
  	transform: translateY(-50%);
	opacity:0.15;
}

#editor form {
	padding-left:5px;
	padding-right:13px;
}

#editor .content {
	margin:0;
	padding:0;
}

#editor .content .title {
	font-size:1.2em;
	font-weight:bold;
	margin-bottom:10px;
}

#editor .content img {
	width:100%;
	max-width:100%;
}

#editor .form-group.w50 {
	display:inline-block;
	width:50%;
}

#editor .form-group.w33 {
	display:inline-block;
	width:calc(100%/3);
}

#editor .form-group {
	white-space: normal;
}

#editor .switch {
	position: relative;
	display: block;
    vertical-align: middle;
    padding-top: 0px;
	outline: 0;
	user-select: none;
    font-weight: 700;
	margin-bottom: 15px;
}

#editor .switch input {
	opacity: 0;
    position: absolute;
}

#editor .switch input:checked ~ label {
    background: #6C3;
}

#editor .switch input:checked + label:after {
    left: 16px;
}

#editor .switch input:checked ~ .info .on {
    display: inline-block;
}

#editor .switch input:checked ~ .info .off {
    display: none;
}



#editor .switch label {
	display: inline-block;
	font-size: 0.8em;
    color: #AAA;
	background: #EEE;
    position: relative;
    height: 10px;
    width: 30px;
    top: 6px;
    border-radius: 25px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3) inset;
	transition: all .25s ease-out;
}

#editor .switch label:after {
	border-radius: 100px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    width: 16px;
    height: 16px;
    top: -3px;
    left: -2px;
    background: #fefefe;
    content: '';
    display: block;
    position: absolute;
    transition: all .25s ease-out;
    transform: translateZ(0);
}

#editor .switch .info {
	display: inline-block;
    margin-left: 10px;
    vertical-align: top;
    width: 80%;
    font-weight: normal;
	padding-top:4px;
	white-space: normal;
}

#editor .switch .info .on {
    display: none;
}

#editor .colorPicker {
	position:relative;
}

#editor .colorPicker input {
	padding-left:35px;
}

#editor .colorPicker .color {
	position:absolute;
	top:7px;
	left:7px;
	height:20px;
	border-radius:3px;
	width:20px;
	background:#EEE;
	border:solid 1px #EEE;
}

#editor .switch .info .on div, #editor .switch .info .off div {
    color:#BBB;
}

#editor .thresholdList .line {
	position:relative;
}

#editor .thresholdList .line a.remove {
	position:absolute;
	right:5px;
	top:25px;
}

#sidebar .addPage {
	text-align:center;
	padding-top:15px;
}

#sidebar .addPage a {
	color:#999;
}

#sidebar .addPage a:hover {
	color:#FFF;
}

.trumbowyg-editor {
	font-size:0.9em;
	padding:10px;
}

.trumbowyg-box, .trumbowyg-editor {
	margin-top:0px;
}

.trumbowyg-button-pane {
	background:none;
	color:#AAA;
	min-height:30px;
	padding:0;
}

.trumbowyg-button-pane button{
	width:30px;
	height:30px;
}

.trumbowyg-box svg {
	fill:#AAA;
}

.trumbowyg-button-pane .trumbowyg-button-group::after {
	height: 30px;
}

.trumbowyg-button-pane .trumbowyg-button-group + .trumbowyg-button-group::before {
	background: #EEE;
	height: 15px;
	margin:7px 3px 0px;
}

.trumbowyg-button-pane.trumbowyg-disable .trumbowyg-button-group::before,
 	.trumbowyg-disabled .trumbowyg-button-pane .trumbowyg-button-group::before {
   	background: #EEE;
}

.trumbowyg-button-pane button:not(.trumbowyg-disable):hover,
.trumbowyg-button-pane button:not(.trumbowyg-disable):focus,
.trumbowyg-button-pane button.trumbowyg-active {
	background: #DDD;
   	outline: none;
}

.trumbowyg-button-pane::after {
	top:30px;
}

#editor .trumbowyg-editor, #editor .trumbowyg-box {
	min-height:100px;
	background:#FFF;
}


/* Content */



#content .page {
	white-space: nowrap;
}

#content .page .header {
	position:relative;
}

#content .page .header {
	z-index:1;
}

#content .page .header .editorPart {
	position:absolute;
	right:10px;
	top:10px;
	z-index:2;
}

#content .page .part {
	position:relative;
	white-space: normal;
}

#content .page .part .editorPart {
	display:none;
	position:absolute;
	right:10px;
	top:10px;
	z-index:2;
}

label {
    margin-bottom: 2px;
}

#content .header .logo {
	float:left;
}

#content .header .right {
	/*float:right;*/
	text-align:right;
}

#content .header .title {
	font-size:1.7em;
}



.user-menu, .sensor-menu, .project-menu {
	margin-bottom:20px;
}

.user-menu ul, .sensor-menu ul, .project-menu ul  {
	padding:0;
}

.user-menu ul li, .sensor-menu ul li, .project-menu ul li {
	display:inline-block;
}

.user-menu ul li a, .sensor-menu ul li a, .project-menu ul li a {
	display:inline-block;
	padding:4px 12px;
	color:#999;
	border-radius:3px;
}

.user-menu ul li.selected a, .sensor-menu ul li.selected a, .project-menu ul li.selected a {
	background:#666;
	color:#FFF;
}

.sidebar .nav > li.nav-header {
	font-size:1.2em;
	color:#FFF;
}

.sliderPart {

}

.sliderPart .slider {
	margin-bottom:15px;
}

.sliderPart .slider .navPrevNext {
	display:inline-block;
}

.sliderPart .slider .navPrevNext a {
	display:inline-block;
	padding:3px 8px;
	border:solid 1px #CCC;
	border-radius: 3px;
	margin-right:10px;
	margin-bottom:15px;
	cursor:pointer;
	user-select: none;
}

.sliderPart .slider .date {
	font-weight:bold;
	display:inline-block;
	padding-bottom:5px;
	margin-bottom:15px;
}

.sliderPart .slider .date span {
	font-weight:normal;
}

.sliderPart .hist {
	padding-bottom:15px;
}

.sliderPart .hist select {
	padding:3px 8px;
	border:solid 1px #CCC;
	border-radius: 3px;
}

.sliderPart .hist span {
	font-weight:bold;
	display:inline-block;
	padding-right:10px;
}
