.fieldset {
  margin: 0 30px 30px 0;
  position: relative;
  font-family: 'Ubuntu', sans-serif;
}

.fieldset > .heading {
  height: 28px;
  border: 1px solid #cccccc;
  border-radius: 2px;
  background: #f7f7f7;
  background: -moz-linear-gradient(top,  #f7f7f7 0%, #e2e2e2 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f7f7f7), color-stop(100%,#e2e2e2));
  background: linear-gradient(to bottom,  #f7f7f7 0%,#e2e2e2 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f7f7f7', endColorstr='#e2e2e2',GradientType=0 );
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.fieldset > .heading h2 {
  font-size: 1em;
  margin: 0;
  padding: 0 16px;
  line-height: 30px;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
}
.fieldset > .heading .toggle {
  width: 27px;
  height: 27px;
  position: absolute;
  top: 0px;
  right: 0px;
  background: url('../img/spritesheet.png') no-repeat -1px -116px;
  cursor: pointer;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;

}
.fieldset > .heading .toggle.on {
  background-position: -1px -93px;
}

.fieldset > .body {
  position: relative;
  top: -2px;
  border: 1px solid #cccccc;
  border-radius: 2px;
  border-top: none;
  background: #fafafa;
  padding-top: 30px;
  padding-bottom: 15px;
}

.fieldset > .body > .row {
  min-height: 40px;
  margin-bottom: 10px;
  position: relative;
}

.fieldset > .body > .row .smallRow  {
  min-height: 40px;
}

.fieldset label {
  font-size: 0.875em;
  padding-left: 16px;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  line-height: 28px;
  color: #555555;
}

.fieldset label .description {
  color:#929292;
  font-size: 11px;
  position: absolute;
  left: 16px;
  top: 20px;
  line-height: 10px;
  text-transform: none;
}

.fieldset input[type=text],.fieldset input[type=password], .fieldset .smallButton, textarea, .textAreaEditable, .selectbox .value, input[type=text] {
  border: 1px solid #a5a5a5;
  border-radius: 2px;
  height: 26px;
  line-height: 26px;
  color: #000000;
  font-size: 12px;
  font-family: 'Ubuntu', sans-serif;
  display: inline-block;
  padding: 0 8px;
  resize:none;

  outline: 0;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
  -moz-transition: border linear 0.2s, box-shadow linear 0.2s;
  -o-transition: border linear 0.2s, box-shadow linear 0.2s;
  transition: border linear 0.2s, box-shadow linear 0.2s;
}
textarea, .textAreaEditable {
  line-height: 20px;
  margin-bottom: 6px;
}
.fieldset input[type=text], .fieldset input[type=password], input[type=text] {
  background: #ffffff;
  background: -moz-linear-gradient(top,  #ffffff 0%, #fefefe 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#fefefe));
  background: linear-gradient(to bottom,  #ffffff 0%,#fefefe 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#fefefe',GradientType=0 );
}

.fieldset input[type=text].error, .fieldset input[type=text].error:focus {
  border-color: #dd312e;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(221, 49, 46, 0.60);
  -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(221, 49, 46, 0.60);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(221, 49, 46, 0.60);
}

.fieldset input.disabled[type=text] {
  background: #fcfcfc;
  color: #a5a5a5;
}

.fieldset .small {
  font-size: 80%;
}

.fieldset .smallButton {
  user-select: none;
  cursor: pointer;
  text-align: center;
  background: #ebebeb;
  background: -moz-linear-gradient(top,  #ebebeb 0%, #c9c9c9 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ebebeb), color-stop(100%,#c9c9c9));
  background: linear-gradient(to bottom,  #ebebeb 0%,#c9c9c9 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ebebeb', endColorstr='#c9c9c9',GradientType=0 );
}

.fieldset .smallButton:hover {
  text-decoration: none;
  background: #ebebeb;
  border: 1px solid #c5c5c5;
}
.fieldset input[type=text]:focus, .fieldset input[type=password]:focus, .selectbox:hover .value, .fieldset textarea:focus, .vTable input:focus, .vTable textarea:focus{
  border-color: rgba(82, 168, 236, 0.8);
  outline: 0;
  outline: thin dotted 9;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
}

.input-prefix {
  position:absolute;
  color:#999;
  top:0;
  left:0;
  zIndex:9;
  cursor:default;
  font-size: 12px;
  font-family: 'Ubuntu', sans-serif;
  padding: 0 0 0 8px;
}

.fieldset input {
}


.input2 {
  width: 52px;
}
.input3 {
  width: 82px;
}
.input4 {
  width: 122px;
}
.input5 {
  width: 202px;
}
.input6 {
  width: 252px;
}
.input7 {
  width: 302px;
}
.input8 {
  width: 352px;
}
.input10 {
  width: 452px;
}
.input12 {
  width: 784px;
}
.textarea-s {
  height: 70px;
}
.textarea-m {
  height: 100px;
}
.textarea-l {
  height: 184px;
}
.textarea-xl {
  height: 400px;
}

.controls {
  padding-bottom: 12px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.controls .row {
  margin-bottom: 20px;
}
.controls .main {
  padding-right: 32px;
  line-height: 36px;
  font-size: 12px;
}
.controls .button {
  display: inline-block;
  background: #29c1f2;
  background: -moz-linear-gradient(top,  #29c1f2 0%, #0087bf 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#29c1f2), color-stop(100%,#0087bf));
  background: linear-gradient(to bottom,  #29c1f2 0%,#0087bf 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#29c1f2', endColorstr='#0087bf',GradientType=0 );
  padding: 0 20px;
  border-radius: 10px;
  color: #fff;
  font-weight: bold;
  margin: 0 4px;
}
.controls .button:hover {
  text-decoration: none;
}
.controls .button.disabled:hover {
  cursor: default;
}
.controls .button:hover:not(.disabled) {
  background: #1db4e9;
}

.miniControls.pull-right {
  margin-right: 30px;
}

.miniControls.pull-right .vButton {
  margin-left: 20px;
}

/* temporary calendar, will be replaced with icon */

.vDateBtn.vIco {
  cursor: pointer;
  margin: 4px 14px 4px 4px;
}

/* visto selectbox plugin
============= */
.selectbox {
  position: relative;
  font-family: 'Ubuntu', sans-serif;
}
.selectbox .value {
  cursor: pointer;
  background: #fff url('../img/selectbox.png') top right no-repeat;
}
.selectbox .value .small, .selectbox .value .muted {
  display: block;
}
.selectbox ul {
  display: none;
  position: absolute;
  top: 26px;
  background: #fff;
  border: 1px solid #a5a5a5;
  border-radius: 2px;
  width: 100%;
  list-style: none;
  left: 0px;
  margin: 0;
  padding: 0;
  font-size: 12px;
  -webkit-box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
  -moz-box-shadow:    0px 2px 5px rgba(0, 0, 0, 0.2);
  box-shadow:         0px 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 9;
}
.selectbox ul li {
  display: block;
  height: 26px;
  line-height: 26px;
  padding: 0 6px;
  cursor: pointer;
  border-radius: 2px;
}
.selectbox ul li.long {
  height: auto;
}
.selectbox ul li .small {
  line-height: normal;
  padding-bottom: 10px;
}
.selectbox ul li:hover {
  background: #e6eaee;
}
.selectbox ul li.selected {
  color: #0087bf;
}


/* Invalid elements */
.fieldset .row.invalid input[type=text], .fieldset .row.invalid input[type=password]{
  background: #fee;
  border-color: #d88;
}


/* Visto checkbox */
.vistoCheckbox {
  width: 24px;
  height: 24px;
  overflow: hidden;
  background: url('../img/spritesheet.png') -0px -386px;
  cursor: pointer;
}
.vistoCheckbox.checked {
  background-position: -24px -386px;
}
.vistoCheckbox:hover {
  background-position: -48px -386px;
}
.vistoCheckbox.checked:hover {
  background-position: -72px -386px;
}

/* Visto publish box */
.vistoCheckbox.publishBox {
  width: 41px;
  height: 28px;
  background: url('../img/spritesheet.png') -161px -385px;
}
.vistoCheckbox.checked.publishBox {
  background-position: -210px -385px;
}
.vistoCheckbox:hover.publishBox {
  background-position: -161px -385px;
}
.vistoCheckbox.checked:hover.publishBox {
  background-position: -210px -385px;
}


/* visto Button */

.vButton {
  display: inline-block;
  min-height: 30px;
  color: #000000;
  font-size: 14px;
  font-family: 'Ubuntu', sans-serif;
  text-transform: uppercase;
  line-height: 30px;
  position: relative;
  cursor: pointer;
}
.vButton .text,.vButton .vIco, .dropdown .vIco, .dropdown .text {
  filter: alpha(opacity=50);
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
  opacity: 0.5;
  -moz-opacity: 0.5;
}
.vButton:hover {
  color: #000000;
}
.vButton.disabled:hover {
  text-decoration: none;
}

.vButton.disabled {
  cursor: default;
}
.vButton.disabled > span {
  filter: alpha(opacity=15);
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=15)";
  opacity: 0.15;
  -moz-opacity: 0.15;
}


.vButton .text {
  padding: 0 6px;
  text-transform: uppercase;
  font-family: 'Terminal Dosis', sans-serif;
}
.vButton .vIco {
  position: relative;
  top: 3px;
}
.vButton.dropdown {
  z-index: 9;
}
.vButton > .vDropdownMain {
  display: block;
  padding-right: 20px;
  padding-left: 8px;
  position: relative;
  border: 1px solid #fff;
  background: url(../img/spritesheet.png) no-repeat right -257px;
}

.vButton.hovered > .vDropdownMain {
  background-color: #ffffff;
  border: 1px solid #b2b2b2;
  border-radius: 1px;
  border-bottom: none;
  z-index: 2;
}
.vButton.hovered.dropdown ul {
  display: block;
}

.dropdown ul {
  display: none;
  position: absolute;
  list-style: none;
  margin: 0;
  padding: 14px 14px 4px 14px;
  background: #ffffff;
  border: 1px solid #b2b2b2;
  border-radius: 1px;
  top: 30px;
  right: 0;
  min-width: 110px;
  -webkit-box-shadow: 1px 1px 6px 0px rgba(0, 0, 0, 0.2);
  box-shadow: 1px 1px 6px 0px rgba(0, 0, 0, 0.2);
}

.dropdown ul li {
  display: block;
  border-top: 1px solid #b2b2b2;
}
.dropdown ul li:first-child {
  border:none;
}
.dropdown ul li a {
  display: block;
  height: 33px;
  line-height: 33px;
  color: #000;
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
}
.dropdown ul li a .vIco {
  margin: 0 2px;
}

/* image buttons */
.selectImageBtn {
  width: 171px;
  height: 108px;
  background: url('../img/spritesheet.png') -91px -106px;
}

/* character counter */
.fieldset .charcounter {
  font-size: 11px;
  color: #555555;
  position: relative;
  top: 82px;
}

/* Form */
#contentForm {
  margin-bottom: 18px;
}


/* template Selector */
.templateSelect {
  display: block;
  list-style: none;
  margin: 0;
}

.templateSelect li:hover {
  opacity: 0.7;
}

.templateSelect li.active {
  opacity: 1;
}

.templateSelect li {
  display: block;
  float: left;
  width: 100px;
  height: 84px;
  opacity: 0.6;
  background: url(../img/pages_types.png) no-repeat;
  margin-right: 10px;
  cursor: pointer;
}

.templateSelect li.tsList1 { background-position: -0px -0px }
.templateSelect li.tsList2 { background-position: -100px -0px }
.templateSelect li.tsList3 { background-position: -200px -0px }
.templateSelect li.tsList4 { background-position: -300px -0px }
.templateSelect li.tsList5 { background-position: -400px -0px }
.templateSelect li.tsList6 { background-position: -500px -0px }
.templateSelect li.tsList7 { background-position: -600px -0px }


/* template Selector small*/
.templateSelectSmall {
  display: block;
  list-style: none;
  margin: 0;
}

.templateSelectSmall li:hover {
  opacity: 0.7;
}

.templateSelectSmall li.active {
  opacity: 1;
}

.templateSelectSmall li {
  display: block;
  float: left;
  width: 57px;
  height: 84px;
  opacity: 0.6;
  background: url(../img/news_types.png) no-repeat;
  margin-right: 10px;
  cursor: pointer;
}

.templateSelectSmall li.tsList1 { background-position: -0px -0px }
.templateSelectSmall li.tsList2 { background-position: -60px -0px }




.theme-preview-image {
  width: 94px;
  height: 94px;
  padding: 2px;
  background: white;
  border: 1px solid #a5a5a5;
  border-radius: 3px;
  position: relative;
  cursor: pointer;

}
.theme-preview-image.opened .theme-preview-image-select {
  display: block;
}

.theme-preview-image-select {
  position: absolute;
  display: none;
  left: 100px;
  top: -1px;
  z-index: 999;
  padding-left: 16px;
}
.theme-preview-image-select .window {
  overflow-y: scroll;
  width: 430px;
  height: 185px;
  padding: 2px;
  background: white;
  border: 1px solid #a5a5a5;
  border-radius: 3px;
  z-index: 99999;

}

.theme-preview-image-select .window ul {
  margin: 0;
  padding:0;
  list-style: none;
}
.theme-preview-image-select .window li{
  display: block;
  float: left;
  width: 71px;
  height: 71px;
  margin: 4px;
  border: 1px solid #a5a5a5;
  border-radius: 3px;
  text-align: center;
  text-transform: uppercase;
  transition: all 0.3s;
}
.theme-preview-image-select .window li:hover {
  border-color: rgba(82, 168, 236, 0.8);
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
}
.theme-preview-image-select .window li .item{
  font-size: 36px;
  padding: 0;
  margin: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  line-height: 71px;
}


.theme-preview-image .img {
  width: 100%;
  height: 100%;
}

.theme-preview-image-select .window:after {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 10px 5px 0;
  border-color: transparent #ffffff transparent transparent;

  position: absolute;
  content: '';
  top: 15px;
  left: 7px;
}

.theme-preview-image-select .window:before {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 11px 6px 0;
  border-color: transparent #a5a5a5 transparent transparent;

  position: absolute;
  content: '';
  top: 14px;
  left: 6px;
}