.wysihtml5-toolbar [data-wysihtml5-dialog="pageLink"] label {
    font-size: 14px;
}
.wysihtml5-toolbar .commands {
    color: @gray-light;
}
.wysihtml5-toolbar .commands li:hover {
    color: black;
}

.wysihtml5-toolbar header {
  display: block;
  border-radius: 4px;
  background: #f6f6f6;
  position: relative;
  z-index: 1;
  text-align: center;
  border: 1px solid #ddd\9; /* IE 8 and below */
  background-image: linear-gradient(bottom, rgb(238,238,238) 0%, rgb(255,255,255) 100%);
  background-image: -o-linear-gradient(bottom, rgb(238,238,238) 0%, rgb(255,255,255) 100%);
  background-image: -moz-linear-gradient(bottom, rgb(238,238,238) 0%, rgb(255,255,255) 100%);
  background-image: -webkit-linear-gradient(bottom, rgb(238,238,238) 0%, rgb(255,255,255) 100%);
  background-image: -ms-linear-gradient(bottom, rgb(238,238,238) 0%, rgb(255,255,255) 100%);
  box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.3);
  text-align: center;
  height: auto;
}
[data-wysihtml5-command],
[data-wysihtml5-action],
.fore-color {
  position: relative;
  border-right: 1px solid #ddd;
  border-left: 1px solid #fff;
  list-style: none;
  font-size: 12px;
  display: inline-block;
  cursor: pointer;
  width: 32px;
  padding: 6px;
}

.fore-color ul {
  display: none;
  position: absolute;
  z-index: 2;
  top: 40px;
  right: -1px;
  left: -2px;
  border: 1px solid #ccc;
  border-top: 0;
  background: #fff;
  overflow: hidden;
}

.fore-color li {
  display: block;
  margin: 3px;
  width: auto;
  border: 0;
  height: 15px;
}

.fore-color li:after {
  display: none;
}

.fore-color:hover ul {
  display: block;
}

.fore-color [data-wysihtml5-command-value="silver"] {
  background: silver !important;
}


.fore-color [data-wysihtml5-command-value="gray"] {
  background: gray !important;
}

.fore-color [data-wysihtml5-command-value="maroon"] {
  background: maroon !important;
}

.fore-color [data-wysihtml5-command-value="red"] {
  background: red !important;
}

.fore-color [data-wysihtml5-command-value="purple"] {
  background: purple !important;
}

.fore-color [data-wysihtml5-command-value="green"] {
  background: green !important;
}

.fore-color [data-wysihtml5-command-value="olive"] {
  background: olive !important;
}

.fore-color [data-wysihtml5-command-value="navy"] {
  background: navy !important;
}

.fore-color [data-wysihtml5-command-value="blue"] {
  background: blue !important;
}

.fore-color .wysihtml5-command-active {
  outline: 1px solid #666;
  outline-offset: 1px;
}

.wysihtml5-commands-disabled .fore-color ul {
  display: none;
}

.wysihtml5-action-active,
.wysihtml5-command-active {
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.2);
  background: #eee !important;
}

.wysihtml5-commands-disabled [data-wysihtml5-command],
.wysihtml5-commands-disabled .fore-color {
  opacity: 0.4;
  cursor: default;
  background-image: none !important;
}

[data-wysihtml5-dialog] {
    padding: 0px 0px 0px 0px;
    // background: #FFFBE0;
    position: absolute;
    // text-align: center;
    left: 0px;
    right: 0;
    z-index: 10;
    top: 34px;
}

[data-wysihtml5-dialog="insertImage"] {
    top: 64px;
}
.uploadFrame > span {
    display: none !important;
}

[data-wysihtml5-dialog] input {
}

.wysihtml5-toolbar .justify {
    display: none;
}

[data-wysihtml5-dialog] input:focus {
  outline: 0;
  border: 1px solid #666;
}

[data-wysihtml5-dialog-action] {
}
[data-wysihtml5-dialog-action="save"] {
}

[data-wysihtml5-dialog-action="cancel"] {
}

.featurette {
    .featurette-heading {
        .muted {
            margin-left: 24px;
        }
    }
    .actions {
        text-align: right;
        display: inline;
        ul {
            margin: 0 0;
            padding: 0 0;
            list-style: none;
            float: right;
            li {
                float: left;
            }
        }
    }
}

.editing {
    .form {
        border-bottom: 2px dashed lighten(@brand-primary, 20%);
        position: relative;
        input[name="name"] {
            font-size: 22px;
            line-height: 50px;
            margin-bottom: 32px;
            width: 50%;
        }
        
        input[name="title"] {
            font-size: 22px;
            line-height: 50px;
            width: 50%;
        }
        .wysihtml5-toolbar {
            position: absolute;
            top: 64px;
            right: 166px;
            left: 15px;
        }
        .controls {
            top: 56px;
            right: 15px;
            position: absolute;
            z-index: 2;
        }
        [data-wysihtml5-dialog="pageLink"] {
            display: none !important;
        }
        @media (max-width: @screen-xs-max) {
            input[name="name"] {
                margin-bottom: 100px;
            }
            .wysihtml5-toolbar {
                top: 87px;
                right: 15px;
                left: 15px;
            }
        }
    }
}

.editing textarea {
    position: relative;
    height: 100%;
    min-height: 600px;
    width: 100%;
    display: block;
    border: 0;
    resize: none;
    white-space: pre;
    padding: 10px;
    -ms-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  color: @text-color;
}

.editing textarea:focus {
  box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.4);
  outline: 0;
}
ul.commands {
    margin: 0 0;
    padding: 0 0;
}

.new-section {
    margin-top: 24px;
}


// WIDGETS

.houseCollection.widgets {
    .houseList.row > div {
        button {
            text-align: left;
            margin-bottom: 12px;
            text-indent: 6px;
        }
    }
}
.show-grid [class^=col-] {
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #eee;
    background-color: rgba(255, 255, 255, 0);
    border: 1px solid #ddd;
    border: 1px solid rgba(160, 160, 160, 0.19);
}

.panel {
    .panel-heading {
        input[name="panel.title"] {
            width: 100%;
            background: transparent;
            border: none;
        }
    }
    &.panel-default {
        .panel-heading {
            input[name="panel.title"] {
                color: @panel-default-text;
            }
        }
    }
    &.panel-success {
        .panel-heading {
            input[name="panel.title"] {
                color: @panel-success-text;
            }
        }
    }
    &.panel-info {
        .panel-heading {
            input[name="panel.title"] {
                color: @panel-info-text;
            }
        }
    }
    &.panel-warning {
        .panel-heading {
            input[name="panel.title"] {
                color: @panel-warning-text;
            }
        }
    }
    &.panel-danger {
        .panel-heading {
            input[name="panel.title"] {
                color: @panel-danger-text;
            }
        }
    }
}

.widgetAvatar {
    min-height: 50px;
    .editWidget {
        // display: none;
        // position: absolute;
        position: relative;
        width: 100%;
        // top:0;
        // bottom:0;
        // left:0;
        // right:0;
        // z-index: 9; // below navigation at 10
        &.pep-dpa {
            border: 2px solid gray;
            // display: block;
            background: gray;
        }
        .move-wrapper {
            // z-index: 1000;
        }
        .actions {
            display: inline-block;
        }
    }
    &:hover {
        > div > .editWidget {
            // display: block;
        }
    }
    .move {
        // position: absolute;
        // top: 0px;
        // right: 0px;
    }
    .move-wrapper {
        // position: absolute;
        // top: 0;
        // left: 0;
        display: inline-block;
        .drag-instruction {
            display: none;
        }
        .drop-instruction {
            display: none;
        }
        &.pep-active {
            z-index: 1001;
            & > {
                .drag-instruction {
                    display: none;
                }
                .drop-instruction {
                    display: inline;
                }
            }
            // background: grey;
            // border: 1px dashed black;
            // text-align: center;
            // width: 100px;
            // height: 100px;
        }
    }
    &.pep-dpa {
        // background: blue;
    }
    &.drop-target {
        background: rgba(255,255,255,0.5);
        border: 2px dashed gray;
        & > div {
            & > .editWidget {
                
                .move-wrapper {
                    &.pep-active {
                        & > {
                            .drag-instruction {
                                display: inline;
                            }
                            .drop-instruction {
                                display: none;
                            }
                        }
                    }
                }
            }
        }
    }
}

.html-form {
    form {
        .editing textarea {
            height: 500px;
        }
    }
}