/*#region wysiwyg*/
.wysiwyg-editor {
    max-height: 250px;
    height: 250px;
    background-color: white;
    border-collapse: separate;
    border: 1px solid rgb(204, 204, 204);
    padding: 4px;
    .box-sizing(content-box);
    .box-shadow(rgba(0, 0, 0, 0.0745098) 0 1px 1px 0 inset);
    overflow: scroll;
    outline: none;
}

.wysiwyg-toolbar {
    margin-bottom: 10px;

    .btn-active {
        color: @carbon !important;
        background-color: @platinum;
    }

    .dropdown-menu {
        padding: 5px;
    }

    .btn-group {
        margin-bottom: 5px;
    }
}

.wysiwyg-voiceBtn {
    width: 20px;
    color: transparent !important;
    background-color: transparent !important;
    .transform(scale(2.0, 2.0));
    border: transparent !important;
    cursor: pointer;
    .box-shadow(none);
}

div[data-role="editor-toolbar"] {
    .user-select(none);
}
/*#endregion wysiwyg*/
/*#region Summernote*/
.note-editor {
    border: 1px solid #d5d5d5;
}

    .note-editor .note-dropzone {
        position: absolute;
        z-index: 1;
        display: none;
        color: #87cefa;
        background-color: white;
        border: 2px dashed #87cefa;
        opacity: .95;
        pointer-event: none;
    }

        .note-editor .note-dropzone .note-dropzone-message {
            display: table-cell;
            font-size: 28px;
            font-weight: bold;
            text-align: center;
            vertical-align: middle;
        }

        .note-editor .note-dropzone.hover {
            color: @themeprimary;
            border: 2px dashed @themeprimary;
        }

    .note-editor.dragover .note-dropzone {
        display: table;
    }

    .note-editor.fullscreen {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1050;
        width: 100%;
    }

        .note-editor.fullscreen .note-editable {
            background-color: white;
        }

        .note-editor.fullscreen .note-resizebar {
            display: none;
        }

    .note-editor.codeview .note-editable {
        display: none;
    }

    .note-editor.codeview .note-codable {
        display: block;
    }

    .note-editor .note-toolbar {
        padding-bottom: 5px;
        padding-left: 5px;
        margin: 0;
        background-color: @snow;
        border-bottom: 1px solid #d5d5d5;
    }

        .note-editor .note-toolbar > .btn-group {
            margin-top: 5px;
            margin-right: 5px;
            margin-left: 0;
        }

        .note-editor .note-toolbar > .input-group {
            float: none;
        }

        .note-editor .note-toolbar .note-table .dropdown-menu {
            min-width: 0;
            padding: 5px;
        }

            .note-editor .note-toolbar .note-table .dropdown-menu .note-dimension-picker {
                font-size: 18px;
            }

                .note-editor .note-toolbar .note-table .dropdown-menu .note-dimension-picker .note-dimension-picker-mousecatcher {
                    position: absolute !important;
                    z-index: 3;
                    width: 10em;
                    height: 10em;
                    cursor: pointer;
                }

                .note-editor .note-toolbar .note-table .dropdown-menu .note-dimension-picker .note-dimension-picker-unhighlighted {
                    position: relative !important;
                    z-index: 1;
                    width: 5em;
                    height: 5em;
                    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASAgMAAAAroGbEAAAACVBMVEUAAIj4+Pjp6ekKlAqjAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfYAR0BKhmnaJzPAAAAG0lEQVQI12NgAAOtVatWMTCohoaGUY+EmIkEAEruEzK2J7tvAAAAAElFTkSuQmCC') repeat;
                }

                .note-editor .note-toolbar .note-table .dropdown-menu .note-dimension-picker .note-dimension-picker-highlighted {
                    position: absolute !important;
                    z-index: 2;
                    width: 1em;
                    height: 1em;
                    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASAgMAAAAroGbEAAAACVBMVEUAAIjd6vvD2f9LKLW+AAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfYAR0BKwNDEVT0AAAAG0lEQVQI12NgAAOtVatWMTCohoaGUY+EmIkEAEruEzK2J7tvAAAAAElFTkSuQmCC') repeat;
                }

        .note-editor .note-toolbar .note-style h1, .note-editor .note-toolbar .note-style h2, .note-editor .note-toolbar .note-style h3, .note-editor .note-toolbar .note-style h4, .note-editor .note-toolbar .note-style h5, .note-editor .note-toolbar .note-style h6, .note-editor .note-toolbar .note-style blockquote {
            margin: 0;
        }

        .note-editor .note-toolbar .note-color .dropdown-toggle {
            width: 20px;
            padding-left: 5px;
        }

        .note-editor .note-toolbar .note-color .dropdown-menu {
            min-width: 290px;
        }

            .note-editor .note-toolbar .note-color .dropdown-menu .btn-group {
                margin: 0;
            }

                .note-editor .note-toolbar .note-color .dropdown-menu .btn-group:first-child {
                    margin: 0 5px;
                }

                .note-editor .note-toolbar .note-color .dropdown-menu .btn-group .note-palette-title {
                    margin: 2px 7px;
                    font-size: 12px;
                    text-align: center;
                    border-bottom: 1px solid #eee;
                }

                .note-editor .note-toolbar .note-color .dropdown-menu .btn-group .note-color-reset {
                    padding: 0 3px;
                    margin: 5px;
                    font-size: 12px;
                    cursor: pointer;
                    -webkit-border-radius: 5px;
                    -moz-border-radius: 5px;
                    border-radius: 5px;
                }

                    .note-editor .note-toolbar .note-color .dropdown-menu .btn-group .note-color-reset:hover {
                        background: #eee;
                    }

        .note-editor .note-toolbar .note-para .dropdown-menu {
            min-width: 216px;
            padding: 5px;
        }

            .note-editor .note-toolbar .note-para .dropdown-menu > div:first-child {
                margin-right: 5px;
            }

    .note-editor .note-statusbar {
        background-color: #f5f5f5;
    }

        .note-editor .note-statusbar .note-resizebar {
            width: 100%;
            height: 8px;
            cursor: s-resize;
            border-top: 1px solid #d5d5d5;
        }

            .note-editor .note-statusbar .note-resizebar .note-icon-bar {
                width: 20px;
                margin: 1px auto;
                border-top: 1px solid #d5d5d5;
            }

    .note-editor .note-popover .popover {
        max-width: none;
    }

        .note-editor .note-popover .popover .popover-content {
            padding: 5px;
        }

            .note-editor .note-popover .popover .popover-content a {
                display: inline-block;
                max-width: 200px;
                overflow: hidden;
                -ms-text-overflow: ellipsis;
                -o-text-overflow: ellipsis;
                text-overflow: ellipsis;
                white-space: nowrap;
                vertical-align: middle;
            }

            .note-editor .note-popover .popover .popover-content .btn-group + .btn-group {
                margin-left: 5px;
            }

        .note-editor .note-popover .popover .arrow {
            left: 20px;
        }

    .note-editor .note-handle .note-control-selection {
        position: absolute;
        display: none;
        border: 1px solid black;
    }

        .note-editor .note-handle .note-control-selection > div {
            position: absolute;
        }

        .note-editor .note-handle .note-control-selection .note-control-selection-bg {
            width: 100%;
            height: 100%;
            background-color: black;
            -webkit-opacity: .3;
            -khtml-opacity: .3;
            -moz-opacity: .3;
            opacity: .3;
            -ms-filter: alpha(opacity=30);
            filter: alpha(opacity=30);
        }

        .note-editor .note-handle .note-control-selection .note-control-handle {
            width: 7px;
            height: 7px;
            border: 1px solid black;
        }

        .note-editor .note-handle .note-control-selection .note-control-holder {
            width: 7px;
            height: 7px;
            border: 1px solid black;
        }

        .note-editor .note-handle .note-control-selection .note-control-sizing {
            width: 7px;
            height: 7px;
            background-color: white;
            border: 1px solid black;
        }

        .note-editor .note-handle .note-control-selection .note-control-nw {
            top: -5px;
            left: -5px;
            border-right: 0;
            border-bottom: 0;
        }

        .note-editor .note-handle .note-control-selection .note-control-ne {
            top: -5px;
            right: -5px;
            border-bottom: 0;
            border-left: none;
        }

        .note-editor .note-handle .note-control-selection .note-control-sw {
            bottom: -5px;
            left: -5px;
            border-top: 0;
            border-right: 0;
        }

        .note-editor .note-handle .note-control-selection .note-control-se {
            right: -5px;
            bottom: -5px;
            cursor: se-resize;
        }

        .note-editor .note-handle .note-control-selection .note-control-selection-info {
            right: 0;
            bottom: 0;
            padding: 5px;
            margin: 5px;
            font-size: 12px;
            color: white;
            background-color: black;
            -webkit-border-radius: 5px;
            -moz-border-radius: 5px;
            border-radius: 5px;
            -webkit-opacity: .7;
            -khtml-opacity: .7;
            -moz-opacity: .7;
            opacity: .7;
            -ms-filter: alpha(opacity=70);
            filter: alpha(opacity=70);
        }

    .note-editor .note-dialog > div {
        display: none;
    }

    .note-editor .note-dialog .note-image-dialog .note-dropzone {
        min-height: 100px;
        margin-bottom: 10px;
        font-size: 30px;
        line-height: 4;
        color: lightgray;
        text-align: center;
        border: 4px dashed lightgray;
    }

    .note-editor .note-dialog .note-help-dialog {
        font-size: 12px;
        color: #ccc;
        background: transparent;
        background-color: #222 !important;
        border: 0;
        -webkit-opacity: .9;
        -khtml-opacity: .9;
        -moz-opacity: .9;
        opacity: .9;
        -ms-filter: alpha(opacity=90);
        filter: alpha(opacity=90);
    }

        .note-editor .note-dialog .note-help-dialog .modal-content {
            background: transparent;
            border: 1px solid white;
            -webkit-border-radius: 5px;
            -moz-border-radius: 5px;
            border-radius: 5px;
            -webkit-box-shadow: none;
            -moz-box-shadow: none;
            box-shadow: none;
        }

        .note-editor .note-dialog .note-help-dialog a {
            font-size: 12px;
            color: white;
        }

        .note-editor .note-dialog .note-help-dialog .title {
            padding-bottom: 5px;
            font-size: 14px;
            font-weight: bold;
            color: white;
            border-bottom: white 1px solid;
        }

        .note-editor .note-dialog .note-help-dialog .modal-close {
            font-size: 14px;
            color: #dd0;
            cursor: pointer;
        }

        .note-editor .note-dialog .note-help-dialog .note-shortcut-layout {
            width: 100%;
        }

            .note-editor .note-dialog .note-help-dialog .note-shortcut-layout td {
                vertical-align: top;
            }

        .note-editor .note-dialog .note-help-dialog .note-shortcut {
            margin-top: 8px;
        }

            .note-editor .note-dialog .note-help-dialog .note-shortcut th {
                font-size: 13px;
                color: #dd0;
                text-align: left;
            }

            .note-editor .note-dialog .note-help-dialog .note-shortcut td:first-child {
                min-width: 110px;
                padding-right: 10px;
                font-family: "Courier New";
                color: #dd0;
                text-align: right;
            }

    .note-editor .note-editable {
        padding: 10px;
        overflow: auto;
        outline: 0;
        background-color: @white;
    }

        .note-editor .note-editable[contenteditable="false"] {
            background-color: #e5e5e5;
        }

    .note-editor .note-codable {
        display: none;
        width: 100%;
        padding: 10px;
        margin-bottom: 0;
        font-family: Menlo,Monaco,monospace,sans-serif;
        font-size: 14px;
        color: #ccc;
        background-color: #222;
        border: 0;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
        box-shadow: none;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        -ms-box-sizing: border-box;
        box-sizing: border-box;
        resize: none;
    }

    .note-editor .dropdown-menu {
        min-width: 90px;
    }

        .note-editor .dropdown-menu.right {
            right: 0;
            left: auto;
        }

            .note-editor .dropdown-menu.right::before {
                right: 9px;
                left: auto !important;
            }

            .note-editor .dropdown-menu.right::after {
                right: 10px;
                left: auto !important;
            }

        .note-editor .dropdown-menu li a i {
            color: @themeprimary;
            visibility: hidden;
        }

        .note-editor .dropdown-menu li a.checked i {
            visibility: visible;
        }

    .note-editor .note-fontsize-10 {
        font-size: 10px;
    }

    .note-editor .note-color-palette {
        line-height: 1;
    }

        .note-editor .note-color-palette div .note-color-btn {
            width: 17px;
            height: 17px;
            padding: 0;
            margin: 0;
            border: 1px solid #fff;
        }

            .note-editor .note-color-palette div .note-color-btn:hover {
                border: 1px solid #000;
            }
/*#endregion Summernote*/