@import url('https://fonts.googleapis.com/css?family=Open+Sans');

.editor,
.structure_editor {
    font-family: 'Open Sans', sans-serif;
    font-size:11pt;
    color:rgb(40,40,40);
}

.structure {
  margin-bottom:29px;
}

.structure_editor h1,
.editor h1,
.structure_editor h2,
.editor h2,
.structure_editor h3,
.editor h3 {
  font-family: 'Open Sans', sans-serif;
}

.structure_editor__toolbar {
  position:fixed;
  top:15px;
  left:15px;
  z-index: 10000;
}

.structure_editor__toolbar__menu,
.structure_editor__toolbar__element,
.structure_editor__toolbar__submenu {
  padding:0px;
  margin:0px;
}

.structure_editor__toolbar__element {
  list-style-type: none;
}

.structure_editor__toolbar__element--sub,
.structure_editor__toolbar__submenu {
  display: none;
}

.structure_editor__sidebar {
  position:fixed;
  top:0px;
  left:0px;
  bottom:0px;
  left:-271px;
  overflow: auto;
  width:270px;
  background-color:rgb(230,230,230);
  border-right:1px solid rgb(210,210,210);
  z-index: 12000;
}

.structure_editor__layer {
  position:fixed;
  top:0px;
  left:0px;
  right:0px;
  bottom:0px;
  z-index:15000;
  background-color: white;
  display: none;
}

.structure_editor__layer .structure_editor__layer__toolbar {
    position:fixed;
    top:0px;
    right:90px;
    padding:9px 0px;
}

.structure_editor__layer .structure_editor__layer__toolbar button[value=annuler] {
    display:none;
}

.structure_editor__layer__header {
  box-sizing: border-box;
  padding:0px;
  border-bottom:1px solid rgb(235,235,235);
}

.structure_editor__layer__title {
  float:left;
  color:rgb(150,150,150);
  margin:0px;
  padding:20px 10px;
}

.structure_editor__layer__close {
  float:right;
  padding:21px;
  border-left:1px solid rgb(235,235,235);
}

.structure_editor__layer__close:hover {
  background-color:rgb(245,245,245);
}

.structure_editor__layer__close img {
  width:35px;
  opacity: 0.3;
}

.structure_editor__layer__close:hover img {
  opacity:0.5;
}

.structure_editor__layer__content {
  padding:20px;
  padding-bottom:0px;
  overflow: auto;
  box-sizing: border-box;
}

.structure_editor__layer__content > *:last-child {
  padding-bottom:39px;
}

@media (max-width:1000px) {
    .structure_editor__layer__title {
        /*padding:10px;*/
        font-size:18pt;
    }

    .structure_editor__layer__close {
        padding:22px;
    }

    .structure_editor__layer__close img {
        width:25px;
    }

    .structure_editor__layer .structure_editor__layer__toolbar {
        right:85px;
    }
}

@media(max-width:680px) {
    .structure_editor__layer__title {
        padding:14px 10px;
        font-size:14pt;
    }

    .structure_editor__layer__close {
        padding:15px;
    }

    .structure_editor__layer__close img {
        width:20px;
    }

    .structure_editor__layer .structure_editor__layer__toolbar {
        right:65px;
        padding: 1px 0px;
    }
}

.structure_editor__loader {
  position: fixed;
  top:0px;
  left:0px;
  right:0px;
  bottom:0px;
  background-color: rgba(255,255,255,0.8);
  color:rgb(90,90,90);
  font-size:14pt;
  z-index:14999;
  display: none;
}

.structure_editor__loader__content {
  text-align: center;
  margin-top:40%;
}

.structure_editor__output {
  position: fixed;
  bottom:0px;
  left:0px;
  right:0px;
  z-index: 16000;
  font-size:13px;
  font-family: monospace;
  padding:5px;
  background-color:#263238;
  color:rgba(233, 237, 237, 1);
  border-top:1px solid #0c0f11;
  white-space: nowrap;
  overflow: hidden;
}

.structure_editor__output__element {
  display: inline-block;
}

.structure_editor__output__element:before {
  content : '<';
  margin:0px 5px;
}

.structure_editor__output__element--error {
  color:red;
}

/* FORMS */

.editor .block-row,
.structure_editor .block-row {
  display:block;
  margin:15px 0px;
}

.editor .block-row > *,
.structure_editor .block-row > * {
  display:block;
  margin:8px 0px;
}

.editor_form__element {
  padding:8px;
  width:100%;
  box-sizing: border-box;
  font-size: 11pt;
  font-family: 'Open Sans', sans-serif;
  background-color: white;
}

.editor_form__element[type=text],
.editor_form__element[type=date],
.editor_form__element[type=datetime],
.editor_form__element[type=datetime-local],
.editor_form__element[type=number],
textarea.editor_form__element,
select.editor_form__element {
    border:1px solid rgb(215,215,215);
}

textarea.editor_form__element {
  height:200px;
}

.editor_form__element[type=text]:focus,
.editor_form__element[type=date]:focus,
.editor_form__element[type=datetime]:focus,
.editor_form__element[type=datetime-local]:focus,
.editor_form__element[type=number]:focus,
textarea.editor_form__element:focus,
select.editor_form__element:focus {
    border:1px solid rgb(1,113,208);
}

.editor_form__element[type=text],
.editor_form__element[type=date],
.editor_form__element[type=datetime],
.editor_form__element[type=datetime-local] {
  max-width:350px;
}

.editor_form__element[type=number],
.editor_form__element--slim {
    max-width:150px;
}

.editor_form__element--skinny {
    max-width: 80px;
}

.editor_form__element--code {
  font-family: monospace;
  background-color:#263238;
  color:rgba(233, 237, 237, 1);
}

select.editor_form__element {
  width:auto;
  max-width: 100%;
}

.editor_form__element--full,
.editor_form__element--full[type=text] {
  max-width: 100%;
  width:100%;
}

.editor_form__element--large {
  font-size:15pt;
  padding:12px;
}

.editor_form__element--checkbox,
.editor_form__element--radio {
  cursor: pointer;
  padding: 6px;
  border-radius: 3px;
  position: relative;
}

.editor_form__element--checkbox:hover,
.editor_form__element--radio:hover {
  background-color: rgb(245,245,245);
}

.editor_form__element--checkbox input,
.editor_form__element--radio input {
  display:none;
}

.editor_form__element--card {
    display:inline-block;
    width:auto;
    vertical-align: top;
}

.editor_form__element--card.editor_form__element--radio,
.editor_form__element--card.editor_form__element--checkbox {
    width:100%;
    max-width:200px;
}

.editor_form__element--card.editor_form__element--large.editor_form__element--radio,
.editor_form__element--card.editor_form__element--large.editor_form__element--checkbox {
    width:100%;
    max-width:330px;
}

.editor_form__element--card > * {
    display:block;
    text-align: center;
}

.editor_form__element__controler {
  width:22px;
  height:22px;
  background-color:rgb(215,215,215);
  display:block;
  position:absolute;
  top:5px;
  left:5px;
  border-radius: 2px;
}

.editor_form__element--card .editor_form__element__controler {
    left:50%;
    margin-left: -11px;
}

.editor_form__element__label {
  margin-left:30px;
  color:rgb(120,120,120);
}

.editor_form__element--card .editor_form__element__label {
    margin-left:0px;
    margin-top:30px;
}

.editor_form__element input ~ .editor_form__element__label img {
    opacity: 0.5;
}

.editor_form__element input:checked ~ .editor_form__element__controler {
  background-color:rgb(1,113,208);
}

.editor_form__element input:checked ~ .editor_form__element__label {
  color:rgb(40,40,40);
}

.editor_form__element input:checked ~ .editor_form__element__label img {
    opacity: 1;
}

.editor_form__element input:disabled ~ .editor_form__element__controler,
.editor_form__element input:disabled ~ .editor_form__element__label {
	opacity: 0.4;
}

.editor_form__element__controler--checkbox:after,
.editor_form__element__controler--radio:after {
	position: absolute;
	display: none;
	content: '';
}

.editor_form__element input:checked + .editor_form__element__controler--checkbox:after {
	top: 3px;
	left: 8px;
	width: 4px;
	height: 10px;
	transform: rotate(45deg);
	border: solid #fff;
	border-width: 0 3px 3px 0;
	display:block;
}

.editor_form__element__controler--radio {
	border-radius: 50%;
}

.editor_form__element input:checked + .editor_form__element__controler--radio:after {
	background-color:white;
	display:block;
	top:6px;
	left:6px;
	width:10px;
	height:10px;
	border-radius:50%;
}

.editor_form__help {
  font-size:9pt;
  color:rgb(180,180,180);
}

/*
 *  BUTTONS
 */

.editor_button,
.editor_button--main,
.editor_button--full,
.editor_button--element {
    padding:9px;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color .3s;
    text-transform: uppercase;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
    font-size: 11pt;
}

.editor_button,
.editor_button--main {
    display:inline-block;
    vertical-align: top;
}

.editor_button,
.editor_button--main,
.editor_button--full {
    color:inherit;
    border-radius: 4px;
    margin:5px 0px;
}

.editor_button--large {
  font-size:15pt;
  padding:12px;
}

@media(max-width:1000px) {
    .editor_button--large {
        font-size:12pt;
    }
}

@media(max-width:680px) {
    .editor_button--large {
        font-size:10pt;
    }
}

.editor_button--slim {
    font-size:10pt;
    padding:5px;
}

.structure_editor__toolbar .editor_button {
  border-radius: 22px;
  box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.1);
}

.editor_button--full,
.editor_button--element {
    display:block;
    width:100%;
    text-align: center;
}

.editor_button {
    background-color:rgb(250,250,250);
    border:1px solid rgb(220,220,220);
}

.editor_button:hover {
    background-color:rgb(240,240,240);
}

.editor_button:active {
    background-color: rgb(220,220,220);
}

.editor_button--main,
.editor_button--active {
    background-color:rgb(1,113,208);
    border:1px solid rgb(0,87,160);
    color:white;
}

.editor_button--main:hover,
.editor_button--active:hover {
    background-color:rgb(0,94,174);
}

.editor_button--main:active,
.editor_button--active:active {
    background-color: rgb(0,87,160);
}

.editor_button img {
  max-height:24px;
}

.editor_button--main .dark-img,
.editor_button--active .dark-img {
  filter: invert(100%);
}

.editor_button--slim img {
    max-height: 18px;
}

.editor_button--icon {
  height:44px;
}

.editor_button--slim.editor_button--icon {
    height:35px;
    padding:8px;
}

.editor_button--element {
  border-radius: 0px;
  border-style: dashed;
  margin:0px;
  padding:0px;
}

.editor_button--element img {
    opacity: 0.8;
    max-height: 100%;
}

.editor_button__image--element {
    max-height: 100%;
    max-width: 1024px;
    width:100%;
}

.editor_button--element:hover img {
    opacity: 1;
}

/*
 * MENU AND LIST
 */

.editor_menu,
.editor_menu__element {
    display:block;
    padding:0;
}

.editor_menu {
    margin:15px 0px;
}

.editor_menu__element {
    list-style-type: none;
    margin:0;
}

.editor_menu__item {
    padding:10px;
    border-width:1px;
    border-left-width: 3px;
    border-bottom-width:0px;
    border-style: solid;
    border-color:rgb(235,235,235);
    display:block;
    text-decoration:none;
    transition: background-color .2s;
}

.editor_menu__item--large {
    font-size:13pt;
    padding:15px 10px;
}

.editor_menu__item:hover {
    background-color:rgb(248,248,248);
    color:rgb(1,113,208);
}

.editor_menu .editor_menu__element:last-child .editor_menu__item {
    border-bottom-width: 1px;
}

.editor_menu__item__help {
  font-size:9pt;
  color:rgb(180,180,180);
}

.editor_menu__item--large .editor_menu__item__help {
    font-size:10pt;
}

.editor_container,
.container__element {
    position: relative;
    transition: opacity .2s, background-color .2s;
}

.editor_container_new {
  display: none;
}

.editor_container--active,
.editor_container_new__button,
.structure .editor_container_new__button,
.structure_editor__container_mask {
    background-color:rgba(1,113,208,0.5);
    border:1px dashed rgb(1,113,208);
}

.editor_container_new__button,
.structure .editor_container_new__button {
  text-align: center;
  padding:10px;
  text-decoration: none;
  color:white;
  transition: background-color .2s;
  display:block;
}

.editor_container_new__button:hover,
.structure .editor_container_new__button:hover {
  background-color:rgba(1,113,208,0.8);
}

.container__element--active {
    border:1px dashed rgb(185, 99, 232);
}

.editor_container__toolbar,
.editor_element {
    position:absolute;
    z-index:900;
    display:none;
}

.container__element--active .editor_element {
    display: block;
}

/*.editor_container__toolbar {
    display:none;
}*/

.editor_container:hover .editor_container__toolbar,
.container__element:hover .editor_element,
.editor_container.editor_container--active .editor_container__toolbar {
    display:block;
}

.editor_container__toolbar {
    top:0px;
    right:20px;
    margin:0px;
    padding:0px;
}

.editor_element {
    top:0px;
    left:0px;
    margin:0px;
    padding:0px;
}

.editor_element .editor_button,
.editor_container__toolbar .editor_button {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 1px;
    border-radius: 14px;
}

.editor_element__button,
.editor_element__menu,
.editor_container__button,
.editor_container__menu {
    display:inline-block;
    vertical-align: middle;
    margin:0px;
}

.editor_element__menu,
.editor_container__menu {
    padding:0px;
    display: none;
}

.editor_container__menu__element,
.editor_element__menu__element {
    margin:0px;
    padding:0px;
    display:inline-block;
    list-style-type: none;
}

.editor_container__toolbar .editor_button {
    background-color:rgb(1,113,208);
    border-color:rgb(1,92,169);
    color:white;
    transition: background-color .1s;
}
.editor_element .editor_button {
    background-color: rgb(185, 99, 232);
    border-color:rgb(144,65,189);
    color:white;
    transition: background-color .1s;
}

.editor_element__button,
.editor_container__button {
    opacity:0.7;
    transition: opacity .1s;
}

.editor_element__button:hover,
.editor_container__button:hover {
    opacity: 1;
}

.editor_element .editor_button--icon img,
.editor_container__toolbar .editor_button--icon img {
    filter:invert(100%);
    -webkit-filter:invert(100%);
}

.editor_element .editor_button:hover {
    background-color:rgb(144,65,189);
}

.editor_container__toolbar .editor_button:hover {
    background-color:rgb(1,92,169);
}

.structure_editor__container_mask {
  position: absolute;
  /*display: none;*/
}

.editor_alert {
  position:absolute;
  top:0px;
  right:0px;
  opacity: 0.8;
  transition: opacity .1s;
  text-align: right;
}

.editor_alert:hover {
  opacity: 1;
}

.editor_alert__label {
  display:none;
  position: absolute;
  top:25px;
  right:0px;
  width:300px;
  padding:5px;
  font-size:13px;
  color:white;
  background-color: rgba(0,0,0,0.8);
  border-radius: 3px;
  text-align: left;
}

.editor_alert:hover .editor_alert__label {
  display:block;
}

.editor_alert__icon {
  display:inline-block;
  width:20px;
  height:20px;
}

.editor_alert__icon--danger {
  background-color: #d63931;
  -webkit-mask-image: url('/mkg/modules/page/public/images/danger.svg');
  mask-image: url('/mkg/modules/page/public/images/danger.svg');
}

.editor_alert__icon--content {
  background-color: #30c0d6;
  -webkit-mask-image: url('/mkg/modules/page/public/images/content.svg');
  mask-image: url('/mkg/modules/page/public/images/content.svg');
}

.editor_alert__icon--code {
  background-color: #7a5024;
  -webkit-mask-image: url('/mkg/modules/page/public/images/code.svg');
  mask-image: url('/mkg/modules/page/public/images/code.svg');
}
