@font-face {
    font-family: "DefaultAdminFont";
    /*src: url("/modules/propertieseditor/fonts/OpenSans-Regular.ttf");*/
    /*src: url("/modules/propertieseditor/fonts/Ubuntu-L.ttf");*/
    /*src: url("/modules/propertieseditor/fonts/Sathu.ttf");*/
    /*src: url("/modules/propertieseditor/fonts/OpenSans-Light.ttf");*/
    /*src: url("/modules/propertieseditor/fonts/MyriadPro-Regular.otf");*/
    src: url("/modules/propertieseditor/fonts/default-font.otf");
}

@font-face {
    font-family: "HeadingFont";
    src: url("/modules/propertieseditor/fonts/default-font.otf");
}

body.properties, .properties {
   font-family: "DefaultAdminFont"; /*, Helvetica, Arial Unicode, Courier*/;
   font-size: 100%;
   margin: 0;
   padding: 0;
   margin-bottom: 20px;
   padding-top: 10px;
}

body.properties {
    background-color: #f2f2f2;
}

input.change, input.cancel {
   float: left;
   margin-right: 5px;
}

.properties {
   padding: 0px 10px;
}

.properties hr {
   height: 1px;
   border-color: #ddd;
}

.properties a {
    text-decoration: none;
}

.properties a:hover {
    text-decoration: underline;
}

.properties label {
   clear: right;
   display: block;
   margin-top: 20px;
   /*color: #556783;*/
   /*color: #39445b;*/
   color: #333;
   font-weight: bold;
   font-size: 1rem;
   margin-bottom: 2px;
}

.properties fieldset .section-content > label:first-child,
.properties > label:first-child {
    margin-top: 0px;
}

.properties small {
   color: #888888;
}

.properties small.hint {
   display: none;
}

.properties .scriptolia-versions,
.properties .scriptolia-versions-edit-menu-handle {
    display: inline-block;
}

.properties .scriptolia-versions {
    padding-left: 10px;
}

.properties .scriptolia-versions-edit-menu-handle {
    padding: 1px 10px;
    min-width: auto;
    font-size: 0.8rem;
}

.properties div.field {
   padding: 5px 5px 5px 0px;
}

.properties div.field:hover {
   background-color: #FAFAFA;
}

.properties label.not-empty {
    /*color: #000;*/
}

/*
.properties .validate-not-empty,
input[validator=not_empty],
input[validator="email|not_empty"],
select[validator=not_empty],
textarea[validator=not_empty] {
   border-width: 1px;
   border-color: #44494F;
}
*/

textarea[scriptolia_control=richtext] {
    width: 100%;
    height: 400px;
    box-sizing: border-box;
    pointer-events: none;
}

textarea[scriptolia_control=richtext].hidden {
    visibility: hidden;
}

textarea[scriptolia_control=richtext].visible {
    visibility: visible;
    pointer-events: all;
}

/*
.properties .validation-failure,
.properties .validate-not-empty.validation-failure {
   border: 2px solid #ff0000;
}
*/

.properties input[type=submit], .scriptolia-button.submit, button[type=submit] {
   width: auto;
   min-width: 140px;
   height: 40px;
   margin-top: 10px;
   margin-bottom: 10px;
}

.properties .submit-wrapper {
   width: 100%;
   height: 60px;
   position: fixed;
   bottom: 0px;
   left: 0px;
   background-color: #f2f2f2;
   border-top: 1px solid #0003;
   box-shadow: 0px -1px 10px #0001;
   padding: 0px 10px;
   display: table;
   box-sizing: border-box;
   z-index: 999;
}

.properties .submit-wrapper .submit-wrapper-left,
.properties .submit-wrapper .submit-wrapper-right {
    display: table-cell;
    vertical-align: middle;
}

.properties .submit-wrapper .submit-wrapper-right {
    text-align: right;
    width: auto;
}

.properties .submit-wrapper .submit-wrapper-items {
    display: table;
    /*width: 100%;*/
    box-sizing: border-box;
}

.properties .submit-wrapper .submit-wrapper-item {
    display: table-cell;
    vertical-align: middle;
}
.properties .submit-wrapper .submit-wrapper-right .submit-wrapper-item {
    text-align: right;
}

.properties .submit-wrapper .submit-wrapper-item.edit-menu {
    text-align: center;
}

.properties .submit-wrapper .submit-wrapper-item.edit-menu > div {
    cursor: pointer;
    width: 40px;
    height: 100%;
    box-sizing: border-box;
}

.properties .submit-wrapper .submit-wrapper-item.toggle-advanced {
    width: 99%;
}

.properties .submit-wrapper .submit-wrapper-item.toggle-advanced > label {
    display: none;
    margin: 0;
    padding: 0;
    width: auto;
    vertical-align: bottom;
}

.properties.has-advanced-properties .submit-wrapper .submit-wrapper-item.toggle-advanced > label {
    display: inline-block;
}

.properties .submit-wrapper .delayed-submit-wrapper {
    display: none;
}

.properties .submit-wrapper .delayed-submit-wrapper.visible {
    display: inline-block;
    margin-left: 5px;
}

.properties input[type=button] {
   margin: 3px;
}

.properties br.break {
    line-height: 1rem;
    font-size: 1rem;
    clear: both;
    display: inline-block;
    height: auto;
}

.properties fieldset {
   margin: 0px;
   margin-top: 20px;
   border: 0px;
   padding: 0px;
   /*box-shadow: 0px 5px 20px #0003;*/
   background-color: #fff;
   border-radius: 10px;
   /*overflow: hidden;*/
}

.properties fieldset.non-expandable {
    overflow: visible;
}

.properties fieldset.loading div.section-content {
    text-align: center;
}

.properties fieldset:first-child {
    margin-top: 0px;
}

.properties fieldset.advanced {
    display: none;
}

.properties fieldset fieldset {
    margin-top: 30px;
}

.properties fieldset fieldset:first-child {
    margin-top: 0px;
}

.properties.mode-advanced fieldset.advanced {
    display: block;
}

.properties fieldset.no-legend {
    box-shadow: none;
    margin-top: 0px;
}

.properties fieldset legend {
   background-color: #fefefe;
   width: 100%;
   box-sizing: border-box;
   margin: 0px;
   padding: 0px;
   cursor: pointer;
   border-radius: 10px;
   height: auto;
   top: 0;
   position: relative;
   color: #999;
   border: 1px solid #eee;
   border-bottom-color: #ccc;
   text-align: center;
}

.properties fieldset fieldset legend {
    background-color: #f2f2f2;
}

.properties fieldset fieldset fieldset legend {
    /*background-color: #636363;*/
}

.properties fieldset legend.opened {
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    border-style: solid;
    border-width: 1px;
    border-color: #eee;
    border-bottom-color: transparent;
}

.properties fieldset legend.neutral {
    background-color: inherit;
    color: inherit;
}

.properties fieldset legend h2 {
   margin: 0px;
   padding: 10px;
   font-size: 1.2rem;
   line-height: normal;
   display: inline-block;
   font-weight: normal;
   position: relative;
}

.properties fieldset legend h2 small {
    font-size: 0.8rem;
}

.properties fieldset legend:hover {
    /*transition: background-color 0.4s linear;*/
    /*background-color: #333;*/
}

.properties fieldset legend .legend-open-symbol,
.properties fieldset legend .legend-close-symbol {
   font-size: 18px;
   line-height: 25px;
   color: #aaa;
   padding: 5px 10px 5px 5px;
   position: absolute;
   right: 0px;
   top: 3px;
}

.properties fieldset legend .legend-open-symbol {
   display: none;
}

.properties fieldset legend .legend-close-symbol {
   display: block;
}

.properties fieldset legend.closed .legend-open-symbol {
   display: inline;
}

.properties fieldset legend.closed .legend-close-symbol {
   display: none;
}

.properties fieldset > .section-content {
    /*
    transition: max-height 0.5s linear, opacity 0.5s linear;
    */
    border: none;
}

.properties fieldset > .section-content,
.properties fieldset > .section-content.expanded {
    padding: 10px; 
    opacity: 1;
    max-height: none;
    margin-top: 0;
    overflow-y: visible;
    border: 1px solid #eee;
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    transition: 0.1s ease-out;
}

.properties fieldset fieldset .section-content,
.properties fieldset fieldset .section-content.expanded {
    border-width: 10px;
    padding-bottom: 20px;
}

/*
.properties fieldset > .section-content.expanded {
    overflow-y: auto;
}
*/

.properties fieldset.expanded {
    margin-bottom: 40px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.properties fieldset.expanded:last-child {
    margin-bottom: 0;
}

.properties fieldset > .section-content.collapsed {
    padding: 0px;
    max-height: 0px;
    margin-top: -20%;
    opacity: 0;
    overflow-y: hidden;
    /*transition: max-height 0.1s linear, opacity 0.1s linear;*/
    border: none;
    transition: 0.1s ease-out;
}

.scriptolia-button.browse-button {
   margin-left: 3px;
   margin-top: 2px;
}

/*
 * Flexible properties
 */
.properties input.flexible[type=text],
.properties textarea.flexible,
.properties select.flexible,
.properties .scriptolia-dropdown-ui {
   width: 100%;
   max-width: 100%;
   box-sizing: border-box;
}

.properties a {
    color: #000;
}

.properties a:hover {
    text-decoration: none;
}

#no-edit-overlay {
  position: fixed;
  display: table;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  background-color: #fff9;
  z-index: 10000;
}

#no-edit-overlay .no-edit-overlay-wrapper {
    display: table-cell;
    width: 100%;
    height: 100%;
    vertical-align: middle;
    text-align: center;
}

#no-edit-overlay .no-edit-overlay-wrapper h1 {
    padding: 20px 30px;
    font-size: 0.85rem;
    color: #808080;
    text-shadow: 0px 2px 1px #eee;
    box-shadow: 0px 10px 15px #0003;
    padding: 20px 50px;
    background-color: #fffc;
    display: inline-block;
    font-weight: normal;
    margin-top: -100px;
    border: 1px solid #eee;
    border-radius: 10px;
}



/* Language support */
#language-ui {
    display: none;
}

#language-ui .language-ui-wrapper {
    display: table;
    width: 100%;
}

#language-ui .language-ui-wrapper label {
    display: table-cell;
    vertical-align: middle;
    padding-right: 15px;
    color: #fff;
    text-align: left;
}

#language-ui .language-ui-wrapper .property-value {
    display: table-cell;
    vertical-align: middle;
    font-weight: bold;
    text-align: right;
}

body.properties.has-language-support {
    padding-top: 40px;
}

body.properties.has-language-support #language-ui {
    display: block;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: auto;
    background-color: #555;
    color: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0px 1px 5px #0004;
    padding: 5px;
    box-sizing: border-box;
}

body.properties {
    padding-bottom: 60px;
}

body.properties.minimal form {
    padding-bottom: 0px;
}

.properties .evaluated-images {
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.properties .evaluated-images-wrapper {
    display: table;
    width: 100%;
}

.properties .evaluated-image {
    display: table-row;
}

.properties .evaluated-image-preview {
    display: table-cell;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    width: 60px;
    height: 60px;
    border-bottom: 1px solid #eee;
    padding: 2px;
}

.properties .evaluated-image-dimensions {
    display: table-cell;
    vertical-align: middle;
    text-align: right;
    border-bottom: 1px solid #eee;
    padding: 2px;
}

.properties .evaluated-image:first-child .evaluated-image-preview,
.properties .evaluated-image:first-child .evaluated-image-dimensions {
    border-top: 1px solid #eee;
}

.properties .scriptolia-slider-placeholder {
    margin-top: 20px;
}

.properties .inline {
    display: inline-block;
}

.properties .inline.margin {
    margin-right: 20px;
}

.properties .display-none {
    display: none;
}

.properties .display-block {
    display: block;
}
