*{
  margin:0;
  padding:0;
  font-family:"Arial";
  box-sizing: border-box;
}
.error{
	color:red;
}
.success{
	color: green;
}

.clear{
	clear:both;
}

input[type='submit']{
	cursor: pointer;
}

body{
  color:#666;
  overflow-x: hidden;
}
body a{
  color:#666;
  text-decoration: none;
  transition:color .3s
}
body a:hover{
  color:#35a8e0;
}
#login{
  background-image:url(../images/loginbg.png);
  width:100%;
  height:100%;
  position: absolute;
  background-size:cover;
  background-position: top center;
}
#login .contentwrap{
  margin-top:160px;
  padding-bottom:100px;
}
#login .contentwrap>img{
  display: block;
  margin:0 auto;
}
#login h2:before{
  display: none;
}
#login .contentwrap .content{
  width:300px;
  margin:0 auto;
  margin-top:35px;
  padding:30px 20px;
  background:#FFF;
  box-shadow: 0 0 5px #BBB;
}
#login form input[type="text"],
#login form input[type="password"]{
  width:100%;
  padding:10px 15px;
  font-size:1em;
  margin-top:15px;
  border:solid 1px #666;
  transition: all .3s;
  color:#666;
}
#login form input[type="text"]:focus,
#login form input[type="password"]:focus{
  border-color:#35a8e0;
}
#login form .forgotpass{
  display: block;
  text-align: center;
  font-style:italic;
  margin-top:10px;
  color:#35a8e0;
  font-size:0.9em;
}
#login form .forgotpass:hover{
  text-decoration: underline;
}
#login form .button{
  padding:10px 30px;
  margin:0 auto;
  display: block;
  margin-top:20px;
}
#head{
  background:#FFF;
  box-shadow: 0 0 5px #777;
  display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
  display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
  display: -ms-flexbox;      /* TWEENER - IE 10 */
  display: -webkit-flex;     /* NEW - Chrome */
  display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
  height: 90px;
  position: relative;
  z-index: 100;
	align-items: center;
}

#LeftHead{
	width: 30%
}

#logo{
	display: block;
	float: left;
}

#LangMenu{
	height: 90px;
	text-align: center;
	display: block;
	float: left;
}

#LangMenu a{
	display: inline-block;
	margin: 36px 3px;
	transition: color .5s;
	vertical-align: top;
}

#LangMenu a.active{
	color: #35a8e0;
}

#logo img{
  max-width: 100%;
  border:0;
}

#nav{
  text-align: right;
	flex-grow: 2;
	width: 70%;
  /*! padding-right:12px; */
}
#nav .item{
  display: inline-block;
  height:100%;
  padding:20px 12px;
  margin:0px 20px;
  transition: color .5s;
  vertical-align: top;
}
#nav .item:hover,
#nav .item.active{
  color:#35a8e0;
}
#nav .item .img{
  display: block;
  width:30px;
  height: 30px;
  margin:0 auto;
  margin-bottom:8px;
  position: relative;
}
.img:before,
.img:after{
  content: '';
  position: absolute;
  top:0;
  left: 0;
  width:100%;
  height: 100%;
  background-image:url(../images/sprite.png);
  transition: .5s;
}
.img:after{
  opacity: 0;
}
.item:hover .img:before,
.item.active .img:before{
    opacity: 0;
}
.item:hover .img:after,
.item.active .img:after{
  opacity: 1;
}
.home .img:before{
  background-position: 0 0;
}
.home .img:after{
  background-position: 0 -30px;
}
.playlist .img:before{
  background-position: -35px 0;
}
.playlist .img:after{
  background-position: -35px -30px;
}
.devices .img:before{
  background-position: -71px 0;
}
.devices .img:after{
  background-position: -71px -30px;
}
.files .img:before{
  background-position: -101px 0;
}
.files .img:after{
  background-position: -101px -30px;
}
.settings .img:before{
  background-position: -130px 0;
}
.settings .img:after{
  background-position: -130px -30px;
}
.chain .img:before{
  background-position: -250px 0;
}
.chain .img:after{
  background-position: -250px -30px;
}
.displays .img:before{
  background-position: -411px 0;
}
.displays .img:after{
  background-position: -411px -30px;
}
.userlist .img:before{
  background-position: -441px 0;
}
.userlist .img:after{
  background-position: -441px -30px;
}
#loginwrap{
  width:90px;  
  border-left:solid 1px #EEE;
  display: inline-block;
}
#loginwrap a{
  display: block;
  width:50px;
  height: 90px;
  margin:0 auto;
  position: relative;
}
#loginwrap a:before,
#loginwrap a:after{
  content: '';
  display: block;
  position: absolute;
  width:100%;
  height: 100%;
  background:url(../images/sprite.png);
  background-clip:content-box;
  box-sizing: border-box;
  transition:opacity .5s;
}
#loginwrap a:after{
  opacity: 0;
  background-position: -150px 5px;
  padding:35px 10px 25px 10px;
}
#loginwrap a.logout:before{
  background-position: -150px 35px;
  padding:25px 10px;
}
#loginwrap a.logout:hover:before{
  opacity: 0;
}
#loginwrap a.logout:hover:after{
  opacity: 1;
}
#main{
  background:#bcbcbc; 
  display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
  display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
  display: -ms-flexbox;      /* TWEENER - IE 10 */
  display: -webkit-flex;     /* NEW - Chrome */
  display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
}
#sidemenu{
  background:#FFF;
  min-width: 235px;
  -webkit-box-flex: 1;      /* OLD - iOS 6-, Safari 3.1-6 */
  -moz-box-flex: 1;         /* OLD - Firefox 19- */
  width: 235px;   
  -webkit-flex: 1;          /* Chrome */
}
#sidemenu .section{
    padding:25px;
}
#sidemenu .open{
  text-decoration: underline;
}
#add.section{
  background:#35a8e0;
  border-bottom:solid 1px #445e79;
  padding: 22px 25px;
}
.delrow,
.userbutton,
.editrow{
  width:30px;
  height:30px;
  cursor: pointer;
  position: relative;
  display: inline-block;
  margin-left:3px;
}
.sechead,
.add{
  font-weight: 400;
  margin-bottom:15px;
  position: relative;
  padding-left:45px;  
  display: block;
}
.add:before,
.delrow:before,
.delrow:after,
.editrow:before,
.editrow:after,
.userbutton:before,
.userbutton:after,
#sidemenu .folder:before,
#sidemenu a.folder:after,
#sidemenu .playlist:before,
#sidemenu a.playlist:after,
#sidemenu a.chain:before,
#sidemenu a.chain:after,
.content h2:before{
  position: absolute;
  content: '';
  display: block;
  width:30px;
  height:30px;
  float:left;
  background-image:url(../images/sprite.png);
  margin-right:15px;
  transition:all .3s;
  top:-5px;
  left:0;
}
.add{
  color:#666;  
  display: inline-block;
  position: relative;
  padding-left:35px;
  vertical-align: middle;
}
.add:hover{
  color:#666;
  text-decoration: underline;
}

#sidemenu .add{
  color:#FFF;
  padding-left:45px;
  margin-bottom:0;
}
.table .add{
  margin-bottom:0;
  top:0;
}
.content h2:before{
  left:0;
  margin-top:3px;
  position: relative;
}
.delrow:after,
.editrow:after,
.userbutton:after,
#sidemenu a.chain:after,
#sidemenu a.folder:after,
#sidemenu a.playlist:after{
  opacity: 0;
}
.add:before{
  background-position: -190px 4px;
  top:-8px;
}
#sidemenu .add:before{
  background-position: -190px -28px;
  top:-6px;
}
.table .add:before{
 top:-5px; 
}
.delrow:hover:after,
.editrow:hover:after,
.userbutton:hover:after,
#sidemenu a.folder:hover:after,
#sidemenu a.chain:hover:after,
#sidemenu a.playlist:hover:after{
 opacity: 1;
}
.delrow:hover:before,
.editrow:hover:before,
.userbutton:hover:before,
#sidemenu a.folder:hover:before,
#sidemenu a.chain:hover:before,
#sidemenu a.playlist:hover:before{
  opacity: 0;
}
#sidemenu .folder:before{
  background-position: -220px -0px;
  top:-7px;
}
#sidemenu a.folder:after{
  background-position: -220px -62px;
  top:-5px;
}

#sidemenu .chain:before{
  background-position: -250px 1px;
}
#sidemenu .chain:after{
  background-position: -250px -29px;
}
#sidemenu .playlist:before{
  background-position: -34px -89px;
  top:-7px;
}
#sidemenu a.playlist:after{
  background-position: -34px -89px;
  top:-7px;
}
.delrow:before{
  top:0;
  background:url(../images/sprite.png) -500px 1px; 
  margin-right:0;
}
.delrow:after{
  top:0;
  background:url(../images/sprite.png) -500px -29px; 
  margin-right:0;  
}
.editrow:before{
  top:0;
  background:url(../images/sprite.png) -470px 1px; 
  margin-right:0;
}
.editrow:after{
  top:0;
  background:url(../images/sprite.png) -470px -29px; 
}
.userbutton:before{
  top:0;
  background:url(../images/sprite.png) -527px 1px; 
}
.userbutton:after{
  top:0;
  background:url(../images/sprite.png) -527px -29px; 
}
#sidemenu .section ul{
  clear: both;
  list-style: none;
  padding-left:5px;
  font-size:0.95em;
}
#sidemenu .section ul li{
  margin-top:7px;
}
#sidemenu hr{
  width:85%;
  margin:0 auto;
  border: solid 1px #BBB;
  border-top:0;
}
#sidemenu #chain{
  padding:10px 25px;
}
#main .contentwrap{
  -webkit-box-flex: 20;      /* OLD - iOS 6-, Safari 3.1-6 */
  -moz-box-flex: 20;         /* OLD - Firefox 19- */
   width:100%;
  -webkit-flex: 20;          /* Chrome */
  -ms-flex: 20;              /* IE 10 */
  flex: 20;
  padding:1px; /*lai safari saprastu, ka .content jāliek margins*/
}
#main .content{ 
  margin:50px 0 50px 50%;  
  background:#FFF;
  -ms-transform: translateX(-50%);  /* IE 9 */
  -webkit-transform: translateX(-50%);  /* Chrome, Safari, Opera */
  transform: translateX(-50%);
  padding: 40px 0;
  max-width:1100px;
  width:90%;
}

#main .content.with_flash_message{
	padding-top: 20px;
}

#main .content.openhome,
#main .content.opensettings{
  width:auto;
}
#main .content.openfolder{
  width:60%;
}
#main .content.openusers.short{
  width:60%;
}
#main .content h2{
  font-size:1.4em;
  float:left;
}
#main .content div.head{
  padding-right: 70px;
}
#main .content .head a{
  font-size:0.95em;
  float:right;
	margin-left: 10px;
}
#main .content .bot{
  padding: 0px 65px 0px 65px;
  font-size: 0.9em;
}

#main .content.openfolder .bot{
  padding-right:10px;
}
.button{
  padding:10px 20px;
  display: inline-block;
  background:#35a8e0;
  color:#FFF;
  border-radius: 4px;
  font-size:0.9em;
  transition:background .3s;
  border:0;
}
.button:hover{
  background:#62c3ef;
  color:#FFF;
}
.cancel.button{
	/*background: grey;*/
	margin-left: 10px;
}  /*
.cancel.button:hover{
	background: lightgrey;
}  */
#main .content .images{
  margin-top:10px;
}

.imgwrap,
#main .content .imgwrap{
  float:left;
  margin-right:20px;
  position: relative;
  margin-bottom:20px;
	height: 100px;
}

#main .content #PlaylistImages{
	position: relative;
}

#main .content #PlaylistImages,
#main .content #PlaylistImages .imgwrap,
#main .content .ui-state-highlight{
	box-sizing: content-box;

}

#main .content #PlaylistImages .imgwrap{
	cursor: pointer;
	float: none;
	display: inline-block;
	vertical-align: top;
	height: auto;
}

#main .content .ui-state-highlight {
	margin-right:20px;
	position: relative;
  margin-bottom:20px;
	display: inline-block;
	width: 170px;
	height: 132px;
	border: 1px dashed #35a8e0;
	background: white;
}

.imgwrap:last-child,
#main .content .imgwrap:last-child{
  margin-right: 0;
}

.imgwrap img,
#main .content .imgwrap img{
	display:block;
	margin-bottom: 5px;
}
.close{
  display: block;
  width:23px;
  height:22px;
  position: absolute;
  top:6px;
  left:6px;
  background-color:#666;
  background-image:url(../images/sprite.png);
  background-position: -278px -3px;
  border-radius:3px;
  transition:background .3s;
  z-index: 100;
}
.close:hover{
    background-color:#35a8e0;
}
#main .content h2:before{
  background-color:#35a8e0;
  width:30px;
  height: 30px;
  background-position: -220px -30px;
  border:solid 5px #35a8e0;
  top:-10px;
  margin-right:30px;
  margin-bottom:20px;
}
#main .content.openhome h2:before{
  background-position: -297px -28px;  
}
#main .content.opensettings h2:before{
  background-position: -130px -59px;  
}
#main .content.openplaylist h2:before{
  background-position: -35px -57px;  
}
#main .content.opendevices h2:before{
  background-position: -71px -59px;
}
#main .content.opendisplays h2:before{
  background-position: -411px -58px;  
}
#main .content.openusers h2:before{
  background-position: -441px -58px;  
}
#main .content h3{
  margin-bottom:15px;
}
#main .content ul{
  list-style: none;
  margin-bottom:20px;
}
#main .content ul li.head{
  font-weight: 600;
  margin-bottom:3px;
}
#main .content ul li a{
  color:#35a8e0;  
}
#main .content ul li a:hover{
  text-decoration: underline;
}
#main .content ul li .date{
  display: block;
  font-size:0.9em;
  vertical-align: middle;
  margin-top:3px;
  margin-bottom:10px;
}
#main .content ul li .date:before{
  content: '';
  display: block;
  width:17px;
  height:17px;
  float:left;
  margin:-1px 5px 0 0;
  background:url(../images/sprite.png) 0 -60px;
}
#main .content .settings .imgwrap{
  float: none;
  text-align: center;
  width:100%;
}
#main .content .settings .imgwrap img{
  border:solid 2px #BBB;
	width: auto;
	margin: auto;
}

#main .content .settings .button{
  margin-left:50%;
  -ms-transform: translateX(-50%);  /* IE 9 */
  -webkit-transform: translateX(-50%);  /* Chrome, Safari, Opera */
  transform: translateX(-50%);
  margin-top:5px;
}
#main .content .imgwrap .time input{
  width: 50px;
  padding:5px;
  text-align: right;
  border:solid 1px #666;
  border-radius: 5px;
  color:#666;
  margin-right:7px;
}
#main .content .imgwrap .time .wrap{
  margin-top:9px;
  float:right;  
}
#main .content .imgwrap .time .wrap .arrow{
  display: block;
  width:15px;
  height:14px;
  float:left;
  background: url(../images/sprite.png) -327px -59px;
  margin-left:5px;
  cursor: pointer;
}
#main .content .imgwrap .time .wrap .arrow.right{
  background-position: -366px -59px;
}
#main .content .imgwrap .time .wrap .arrow.left:hover{
  background-position: -327px -77px;
}
#main .content .imgwrap .time .wrap .arrow.right:hover{
  background-position: -366px -77px;
}
#main .content .decoy{
  display: block;
  width:130px;
  height:75px;
  /*border:dashed 3px #35A8E0;
  border-radius: 5px;*/
  background: url(../images/upload.png);
  /*background-clip: content-box;*/
  padding:12px 40px;
  cursor: pointer;
  margin:10px 0 20px 0;
}

#main .content .decoy.filemanager{
	background: url(../images/files.png) center center;
}

.file-select-box{
	float: left;
	margin-right: 100px;
}

#main .dualcontent{
  margin:50px 0 50px 50%;
  -ms-transform: translateX(-50%);  /* IE 9 */
  -webkit-transform: translateX(-50%);  /* Chrome, Safari, Opera */
  transform: translateX(-50%);
  width:90%;
  display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
  display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
  display: -ms-flexbox;      /* TWEENER - IE 10 */
  display: -webkit-flex;     /* NEW - Chrome */
  display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */

}
#main .dual.content{
  max-width: 1100px;
  width: 90%;               /* For old syntax, otherwise collapses. */
  padding:40px 0;
}

#main .dual.content.with_flash_message{
	padding-top: 20px;
}

.flex-content{
 -webkit-box-flex: 1;      /* OLD - iOS 6-, Safari 3.1-6 */
  -moz-box-flex: 1;         /* OLD - Firefox 19- */
  -webkit-flex: 1;          /* Chrome */
  -ms-flex: 1;              /* IE 10 */
  flex: 1;                 /* NEW, Spec - Opera 12.1, Firefox 20+ */
  display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
  display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
  display: -ms-flexbox;      /* TWEENER - IE 10 */
  display: -webkit-flex;     /* NEW - Chrome */
  display: flex;            /* NEW, Spec - Opera 12.1, Firefox 20+ */
}

#main .dual.content .main{
  width:65%;
}
#main .dual.content .main .bot{
  padding-right:10px;
}
#main .dual.content .extra{
  width:35%;
  position: relative;
  border-left:solid 1px #DDD;
  padding:0 30px 0 15px;
}
#main .dual.content .extra .list{
  /*	position: absolute;
  left:0;
  top:0;
  bottom:0;
  right:0;
  height:100%;*/
	font-size: 12px;
}
#main .content .table{
  position: relative;
}
#main .content .table .head{
  padding-right:0;
  z-index: 100;
  position: relative;
  background:#FFF;
}
#main .dual.content .extra .list .table{
  /*position: absolute;
  left:15px;
  right:30px;
  top:40px;
  bottom:0px;*/
}
#main .dual.content .extra .list .table .body{
  /*position: absolute;
  bottom:0px;
  top:35px;
  left:0px;
  right:-20px;
  overflow: hidden;
  max-height: initial;*/
}
#main .content .table .row{
  border-bottom:solid 1px #DDD; 
  width:100%;
  display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
  display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
  display: -ms-flexbox;      /* TWEENER - IE 10 */
  display: -webkit-flex;     /* NEW - Chrome */
  display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
  line-height: 25px;
}
#main .content .table .head .row{
  color:#35A8E0;
}
#main .content .table .head .row .col{
  padding:5px 0;
}
#main .content .table .head a{
  color:#35A8E0;
  float:none;
}
#main .content .table .head a:before{
  content: '';
  display: block;
  width:18px;
  height:15px;
  background:url(../images/sprite.png) -280px -67px;
  float:left;
  margin-top:5px;
  margin-right:3px;
}
#main .content .table .head a.asc:before{
  margin-top: 7px;
  -ms-transform: rotate(180deg); /* IE 9 */
  -webkit-transform: rotate(180deg); /* Chrome, Safari, Opera */
  transform: rotate(180deg);
}
#main .content .table .body .row:last-child{
  border-bottom:0;
}
#main .content .table .row .col{
  padding:15px 0;
  display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
  display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
  display: -ms-flexbox;      /* TWEENER - IE 10 */
  display: -webkit-flex;     /* NEW - Chrome */
  display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
  justify-content: center;
  -webkit-justify-content: center; /* Safari 6.1+ */
  flex-direction: column;
  border-left:solid 1px #DDD;
  padding-left:10px;
 -webkit-box-flex: 1;      /* OLD - iOS 6-, Safari 3.1-6 */
  -moz-box-flex: 1;         /* OLD - Firefox 19- */
  width: 20%;               /* For old syntax, otherwise collapses. */
  -webkit-flex: 1;          /* Chrome */
  -ms-flex: 1;              /* IE 10 */
  flex: 1;                   /* NEW, Spec - Opera 12.1, Firefox 20+ */
}
#main .content .extra .table .row .col{
  border-left: 0;  
}
#main .content .table .body .row .col{
  padding-left: 5px;
  transition:color .3s;
}
#main .content .table .body .row:hover .col{
  color:#35A8E0;
}
#main .content .extra .table .row .col:first-child{
  max-width:40px;
}
#main .content .table{
  position: relative;
}
#main .content .table .head,
#main .content .table .tablefilters{
  margin-top:0;
  margin-right:20px;
}
#main .content .extra .table .head{
 margin-right:0; 
}
#main .content .table .tablefilters .row{
  border-bottom:0;
}
#main .content .table .tablefilters .row input{
  padding:12px 8px;
  width: 75%;
  border:solid 1px #666;
  font-style: italic;
  color:#666;
  flex-grow: 1;
	font-size: 11px;
}
#main .content .table .tablefilters .row .col{
  padding:0px;
}

#main .content #PlaylistDisplayRelations.table .tablefilters .row .formreset{
	width: 25%;
	margin-right: 0px;
}

#main .content .table .tablefilters .row .formreset{
  display: block;
  float:right;
  width:20px;
  height: 20px;
  background:url(../images/sprite.png) -385px -8px;
  margin-top:11px;
  margin-right:10px;

  cursor: pointer;
}
#main .content .table .tablefilters .row .formreset:hover{
  background-position:-385px -38px;
}

#main .content .table .head .row .col{
  font-size:1.2em;
  padding:10px;
}
#main .content .extra .table .head .row .col{
  font-size:1em; 
  padding:5px;
}
#main .content .table .row .col:first-child{
  border-left:none;
}
#main .content.opendevices .table .body .row .col:nth-child(5){
  text-align: center;
}
#main .content .table .body{
  max-height: 400px;
}
.col.center{
  text-align: center;
}
#main .content .table .row .col.nopad{
  padding:0;
  padding-right:5px;
}
#main .content .table .row .col.nopad .row{
  padding-left:10px;
  width:110%;
}
#main .content .table .row .col.noflex{
 flex-direction: row; 
}
#main .content.opendisplays .table{
  margin-bottom:40px;
}
#main .content .table.inactivedisplays{
  width:83.5%;
}
#main .content .table.inactivedisplays.other{
  width:88.5%;
}
#main .content .table.newdisplays{
  width:50%;
}

#main .content .table.newdisplays .row .col{
	display: -webkit-box;
}

#main .content .table.newdisplays .row .delrow,
#main .content .table.newdisplays .row .add{
	float: left;
}

#main .content .table.newdisplays .row .add{
	width: 100px;
}

#main .content .table.newdisplays .body .col,
#main .content.openusers .table .body .row:last-child .col{
  border-bottom:solid 1px #ddd;
}
#main .content .table.newdisplays .col:first-of-type{
  border-left:solid 1px #ddd!important;
}
#main .content .table.newdisplays .col:last-of-type{
  border-right: solid 1px #ddd;
}

#main .content .table.inactivedisplays.other .row .col:last-child{
  max-width:50px;
  border-right:solid 1px #ddd;
}
#main .content.openusers .table .row .col:last-child{
  max-width:140px;
  border-right:solid 1px #ddd;
}
#main .content .table.newdisplays .head .col:last-of-type,
#main .content.openusers .table .head .col:last-of-type,
#main .content.openusers .table .tablefilters .col:last-of-type{
  border-right-color: #FFF;
}
#main .content .table.inactivedisplays .head .row .col:last-child,
#main .content .table.inactivedisplays .tablefilters .row .col:last-child{
  border:0;
} 
#main .content.opendisplays .table .body{
  max-height: 240px;
}
#main .content.opendisplays .table .body .row:last-child .col,
#main .content.opendevices .table .body .row:last-child .col{
  border-bottom:solid 1px #ddd;
}

.hidden{
  display: none;
}
#footer{
  height: 30px;
  background:#35a8e0;
  text-align: center;
  line-height: 30px;
  color:#FFF;
  clear: both;
  font-size:.9em;
}
input[type="checkbox"].style{
  display: none;
}
label > input[type="checkbox"].style,
input[type="checkbox"].style+label{
  display: block;
  width:25px;
  height:25px;
  background-color:#666;  
  border-radius: 5px;
  cursor: pointer;
}

label > input[type="checkbox"].style:checked,
input[type="checkbox"].style:checked+label{
  background:#35A8E0 url(../images/sprite.png) -278px -34px;
}
#main:after,
#main .content:after,
#main .content .head:after,
#main .content .bot:after,
#main .images:after{
  content: '';
  display: block;
  clear:both;
}
::-webkit-input-placeholder {
  opacity: 1;
  color: #666;
}
:-moz-placeholder { /* Firefox 18- */
  opacity: 1;
  color: #666;
}
::-moz-placeholder {  /* Firefox 19+ */
  opacity: 1;
  color: #666;
}
:-ms-input-placeholder {  
  opacity: 1;
  color: #666;
}

@media all and (max-width:1100px){
  #main .images .imgwrap{
    margin:5px;
  }
  #main .content{
    width:95%!important;
  }
  #main .content .bot{
    padding:0 10px;
  }
}

form.styled select{
	cursor: pointer;
}

select.styled{
	cursor: pointer;
}

select.styled,
form.styled select,
form.styled input[type='text'],
form.styled input[type='password']{
	padding: 12px 18px;
  border: solid 1px #666;
  font-style: italic;
  color: #666;
  flex-grow: 1;
}

form.styled label.styled{
	padding: 0px;
}

form.styled label{
	padding: 15px 0;
}

form.styled input[type='submit']{
	padding: 10px 20px;
	display: inline-block;
	background: #35a8e0;
	color: #FFF;
	border-radius: 4px;
	font-size: 0.9em;
	transition: background .3s;
	border: 0;
}

form.styled input[type='submit']:hover{
	background: #62c3ef;
	color: #FFF;
}

form.styled td{
	padding: 0px 5px;
}

input[type='file']{
	display:none;
}

.flash-message {
    border-radius: 3px 3px 3px 3px;
    overflow: hidden;
    padding: 10px 15px 10px 40px;
		width: 95%;
		margin: 0px auto 20px auto;
}
.flash-message p {
    float: left;
    padding: 0px;
    margin: 0px;
    width: 93%;
}
.flash-message.errormsg {
    background: url("/images/error.gif") no-repeat scroll 12px 12px #FFECCE;
    border: 1px solid #E9C59B;
    color: #E3302C;
}
.flash-message.success {
    background: url("/images/success.gif") no-repeat scroll 12px 12px #EDFBD8;
    border: 1px solid #BFDE84;
    color: #508600;
}
.flash-message.info {
    background: url("/images/info.gif") no-repeat scroll 12px 12px #ECF9FF;
    border: 1px solid #BBDBE0;
    color: #0888C3;
}

.flash-message.info a{
  color: #0888C3;
}


.flash-message.warning {
    background: url("/images/warning.gif") no-repeat scroll 12px 12px #FEFDE2;
    border: 1px solid #E5E181;
    color: #666666;
}
.flash-message .close {
	background: transparent url("/images/close.png") no-repeat scroll 0 0;
	cursor: pointer;
	display: block;
	float: right;
	height: 16px;
	left: auto;
	margin-top: 2px;
	opacity: 0.5;
	position: relative;
	top: auto;
	width: 16px;
}
.flash-message .close:hover {
    opacity: 1;
}

#PlaylistFileManager{
	width: 1000px;
	min-height: 200px;
	max-width: 95%;
	position: relative;
}

#PlaylistFileManager h1{
	position: relative;
	font-size: 24px;
	padding-left: 25px;
	height: 40px;
  line-height: 40px;
	margin-bottom: 20px;
}

#PlaylistFileManager_files h1{
	font-weight: normal;
	font-size: 25px;
}


#PlaylistFileManager h1 .icon{
	background-color: #35a8e0;
	width: 40px;
	height: 40px;
	background-position: -220px -30px;
	border: solid 5px #35a8e0;
	top: -10px;
	margin-right: 30px;
	position: absolute;
	display: block;
	float: left;
	background-image: url(../images/sprite.png);
	margin-right: 15px;
	transition: all .3s;
	top: -5px;
	left: -25px;
}

#main .content.openplaylist h2:before {
    background-position: -35px -57px;
}

#PlaylistFileManager_folders,
#PlaylistFileManager_files{
	float: left;
	max-height: 400px;
	overflow: hidden;
}

#PlaylistFileManager_folders{
	border-right: solid 1px #DDD;
	width: 20%;
}

#PlaylistFileManager_files{
	width: 80%;
}

#PlaylistFileManager_files .folder_inner_wrap{
	padding-left: 10px;
}

#PlaylistFileManager_folders a{
	display: block;
	padding: 14px 5px;
	border-bottom: 1px solid #DDD;
}

#folders a.chain{
	display:block;
	min-height: 24px;
	line-height: 24px;
}

#folders a.chain,
#PlaylistFileManager_folders a.chain{
	background: url("../images/chain_folder.png") no-repeat left center;
	padding-left: 30px;
}

#PlaylistFileManager_files .image-toggle{
	display: block;
	width: 24px;
	height: 24px;
	position: absolute;
	top: 6px;
	left: 6px;
	border-radius: 3px;
	transition: background .3s;
	z-index: 100;
}

#PlaylistFileManager_files input[type='checkbox']{
	position: absolute;
	top: 6px;
	left: 6px;
	z-index: 100;
	cursor:pointer;
	width: 18px;
	height: 18px;
}

input[name='SavePlaylistImages']{
	float: right;
	margin-bottom: 10px;
}

#PlaylistFileManager_files .added{
	background-image: url(../images/added.png);
}

#PlaylistFileManager_files .notadded{
	background-image: url(../images/notadded.png);
}

.table.activedisplays,
.table.inactivedisplays{
	margin-bottom: 20px;
}

#chainfolders{
	margin-top: 40px;
}

.activedisplays select{
	max-width: 125px;
}

#SavedText{
	text-align: right;
}

.video-image-wrapper {
  position: relative;
}

.video-image-wrapper img {
  display: block;
  max-width: 150px;
  height: auto;
}

.video-image-wrapper .video-label {
  background-color: #35a8e0;
  color: #FFF;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 12px;
  text-transform: uppercase;
  position: absolute;
  right: 0px;
  bottom: 0px;
}