@font-face {
  font-family: summernote;
  font-style: normal;
  font-weight: 400;
  font-display: auto;
  src: url(../plugins/summer-note/font/summernote.eot);
  src: url(../plugins/summer-note/font/summernote.eot?#iefix) format("embedded-opentype"), url(../plugins/summer-note/font/summernote.woff2) format("woff2"), url(../plugins/summer-note/font/summernote.woff) format("woff"), url(../plugins/summer-note/font/summernote.ttf) format("truetype");
}

[class*=" note-icon"]:before, [class^="note-icon"]:before {
  display: inline-block;
  font-family: summernote;
  font-style: normal;
  font-size: inherit;
  text-decoration: inherit;
  text-rendering: auto;
  text-transform: none;
  vertical-align: middle;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  speak: none;
}

.note-icon-fw {
  text-align: center;
  width: 1.25em;
}

.note-icon-border {
  border: 0.08em solid #eee;
  border-radius: 0.1em;
  padding: 0.2em 0.25em 0.15em;
}

.note-icon-pull-left {
  float: left;
}

.note-icon-pull-right {
  float: right;
}

.note-icon {
  &.note-icon-pull-left {
    margin-right: 0.3em;
  }

  &.note-icon-pull-right {
    margin-left: 0.3em;
  }
}

.note-icon-align:before {
  content: "\ea01";
}

.note-icon-align-center:before {
  content: "\ea02";
}

.note-icon-align-indent:before {
  content: "\ea03";
}

.note-icon-align-justify:before {
  content: "\ea04";
}

.note-icon-align-left:before {
  content: "\ea05";
}

.note-icon-align-outdent:before {
  content: "\ea06";
}

.note-icon-align-right:before {
  content: "\ea07";
}

.note-icon-arrow-circle-down:before {
  content: "\ea08";
}

.note-icon-arrow-circle-left:before {
  content: "\ea09";
}

.note-icon-arrow-circle-right:before {
  content: "\ea0a";
}

.note-icon-arrow-circle-up:before {
  content: "\ea0b";
}

.note-icon-arrows-alt:before {
  content: "\ea0c";
}

.note-icon-arrows-h:before {
  content: "\ea0d";
}

.note-icon-arrows-v:before {
  content: "\ea0e";
}

.note-icon-bold:before {
  content: "\ea0f";
}

.note-icon-caret:before {
  content: "\ea10";
}

.note-icon-chain-broken:before {
  content: "\ea11";
}

.note-icon-circle:before {
  content: "\ea12";
}

.note-icon-close:before {
  content: "\ea13";
}

.note-icon-code:before {
  content: "\ea14";
}

.note-icon-col-after:before {
  content: "\ea15";
}

.note-icon-col-before:before {
  content: "\ea16";
}

.note-icon-col-remove:before {
  content: "\ea17";
}

.note-icon-eraser:before {
  content: "\ea18";
}

.note-icon-float-left:before {
  content: "\ea19";
}

.note-icon-float-none:before {
  content: "\ea1a";
}

.note-icon-float-right:before {
  content: "\ea1b";
}

.note-icon-font:before {
  content: "\ea1c";
}

.note-icon-frame:before {
  content: "\ea1d";
}

.note-icon-italic:before {
  content: "\ea1e";
}

.note-icon-link:before {
  content: "\ea1f";
}

.note-icon-magic:before {
  content: "\ea20";
}

.note-icon-menu-check:before {
  content: "\ea21";
}

.note-icon-minus:before {
  content: "\ea22";
}

.note-icon-orderedlist:before {
  content: "\ea23";
}

.note-icon-pencil:before {
  content: "\ea24";
}

.note-icon-picture:before {
  content: "\ea25";
}

.note-icon-question:before {
  content: "\ea26";
}

.note-icon-redo:before {
  content: "\ea27";
}

.note-icon-rollback:before {
  content: "\ea28";
}

.note-icon-row-above:before {
  content: "\ea29";
}

.note-icon-row-below:before {
  content: "\ea2a";
}

.note-icon-row-remove:before {
  content: "\ea2b";
}

.note-icon-special-character:before {
  content: "\ea2c";
}

.note-icon-square:before {
  content: "\ea2d";
}

.note-icon-strikethrough:before {
  content: "\ea2e";
}

.note-icon-subscript:before {
  content: "\ea2f";
}

.note-icon-summernote:before {
  content: "\ea30";
}

.note-icon-superscript:before {
  content: "\ea31";
}

.note-icon-table:before {
  content: "\ea32";
}

.note-icon-text-height:before {
  content: "\ea33";
}

.note-icon-trash:before {
  content: "\ea34";
}

.note-icon-underline:before {
  content: "\ea35";
}

.note-icon-undo:before {
  content: "\ea36";
}

.note-icon-unorderedlist:before {
  content: "\ea37";
}

.note-icon-video:before {
  content: "\ea38";
}

.note-editor {
  position: relative;

  .note-dropzone {
    position: absolute;
    display: none;
    z-index: 100;
    color: #87cefa;
    background-color: $white;
    opacity: 0.95;

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

    &.hover {
      color: #098ddf;
    }
  }

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

  .note-editing-area {
    position: relative;

    .note-editable {
      outline: none;

      sup {
        vertical-align: super;
      }

      sub {
        vertical-align: sub;
      }

      img {
        &.note-float-left {
          margin-right: 10px;
        }

        &.note-float-right {
          margin-left: 10px;
        }
      }
    }
  }

  &.note-airframe, &.note-frame {
    border: 1px solid $border;
    border-radius: 3px;
    overflow: hidden;
  }

  &.note-airframe.codeview .note-editing-area .note-editable, &.note-frame.codeview .note-editing-area .note-editable {
    display: none;
  }

  &.note-airframe.codeview .note-editing-area .note-codable, &.note-frame.codeview .note-editing-area .note-codable {
    display: block;
  }

  &.note-airframe .note-editing-area, &.note-frame .note-editing-area {
    overflow: hidden;
  }

  &.note-airframe .note-editing-area .note-editable, &.note-frame .note-editing-area .note-editable {
    padding: 10px;
    overflow: auto;
    word-wrap: break-word;
    min-height: 300px;
  }

  &.note-airframe .note-editing-area .note-editable[contenteditable="false"], &.note-frame .note-editing-area .note-editable[contenteditable="false"] {
    background-color: rgba(128, 128, 128, 0.11);
  }

  &.note-airframe .note-editing-area .note-codable, &.note-frame .note-editing-area .note-codable {
    display: none;
    width: 100%;
    padding: 10px;
    border: none;
    box-shadow: none;
    font-family: "Roboto";
    font-size: 14px;
    color: #ccc;
    background-color: #222;
    resize: none;
    outline: none;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 0;
    margin-bottom: 0;
  }

  &.note-airframe.fullscreen, &.note-frame.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    z-index: 1050;
  }

  &.note-airframe.fullscreen .note-resizebar, &.note-frame.fullscreen .note-resizebar {
    display: none;
  }

  &.note-airframe .note-status-output, &.note-frame .note-status-output {
    display: block;
    width: 100%;
    font-size: 14px;
    line-height: 1.42857143;
    height: 20px;
    margin-bottom: 0;
    color: $black;
    border: 0;
    border-top: 1px solid #e2e2e2;
  }

  &.note-airframe .note-status-output:empty, &.note-frame .note-status-output:empty {
    height: 0;
    border-top: 0 solid transparent;
  }

  &.note-airframe .note-status-output .pull-right, &.note-frame .note-status-output .pull-right {
    float: right !important;
  }

  &.note-airframe .note-status-output .text-muted, &.note-frame .note-status-output .text-muted {
    color: #777;
  }

  &.note-airframe .note-status-output .text-primary, &.note-frame .note-status-output .text-primary {
    color: #286090;
  }

  &.note-airframe .note-status-output .text-success, &.note-frame .note-status-output .text-success {
    color: #3c763d;
  }

  &.note-airframe .note-status-output .text-info, &.note-frame .note-status-output .text-info {
    color: #31708f;
  }

  &.note-airframe .note-status-output .text-warning, &.note-frame .note-status-output .text-warning {
    color: #8a6d3b;
  }

  &.note-airframe .note-status-output .text-danger, &.note-frame .note-status-output .text-danger {
    color: #a94442;
  }

  &.note-airframe .note-status-output .alert, &.note-frame .note-status-output .alert {
    margin: -7px 0 0;
    padding: 7px 10px 2px;
    border-radius: 0;
    color: $black;
    background-color: #f5f5f5;
  }

  &.note-airframe .note-status-output .alert .note-icon, &.note-frame .note-status-output .alert .note-icon {
    margin-right: 5px;
  }

  &.note-airframe .note-status-output .alert-success, &.note-frame .note-status-output .alert-success {
    color: #3c763d !important;
    background-color: #dff0d8 !important;
  }

  &.note-airframe .note-status-output .alert-info, &.note-frame .note-status-output .alert-info {
    color: #31708f !important;
    background-color: #d9edf7 !important;
  }

  &.note-airframe .note-status-output .alert-warning, &.note-frame .note-status-output .alert-warning {
    color: #8a6d3b !important;
    background-color: #fcf8e3 !important;
  }

  &.note-airframe .note-status-output .alert-danger, &.note-frame .note-status-output .alert-danger {
    color: #a94442 !important;
    background-color: #f2dede !important;
  }

  &.note-airframe .note-statusbar, &.note-frame .note-statusbar {
    background-color: rgba(128, 128, 128, 0.11);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
  }

  &.note-airframe .note-statusbar .note-resizebar, &.note-frame .note-statusbar .note-resizebar {
    padding-top: 1px;
    height: 9px;
    width: 100%;
    cursor: ns-resize;
  }

  &.note-airframe .note-statusbar .note-resizebar .note-icon-bar, &.note-frame .note-statusbar .note-resizebar .note-icon-bar {
    width: 20px;
    margin: 1px auto;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
  }

  &.note-airframe .note-statusbar.locked .note-resizebar, &.note-frame .note-statusbar.locked .note-resizebar {
    cursor: default;
  }

  &.note-airframe .note-statusbar.locked .note-resizebar .note-icon-bar, &.note-frame .note-statusbar.locked .note-resizebar .note-icon-bar {
    display: none;
  }

  &.note-airframe .note-placeholder, &.note-frame .note-placeholder {
    padding: 10px;
  }

  &.note-airframe {
    border: 0;

    .note-editing-area .note-editable {
      padding: 0;
    }
  }
}

.note-popover.popover {
  display: none;
  max-width: none;

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

  .arrow {
    left: 20px !important;
  }
}

.note-toolbar {
  position: relative;
}

.note-editor .note-toolbar, .note-popover .popover-content {
  margin: 0;
  padding: 0 0 5px 5px !important;
}

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

.note-editor .note-toolbar .note-btn-group .note-table, .note-popover .popover-content .note-btn-group .note-table {
  /* min-width: 0; */
  padding: 5px;
}

.note-editor .note-toolbar .note-btn-group .note-table .note-dimension-picker, .note-popover .popover-content .note-btn-group .note-table .note-dimension-picker {
  font-size: 18px;
}

.note-editor .note-toolbar .note-btn-group .note-table .note-dimension-picker .note-dimension-picker-mousecatcher, .note-popover .popover-content .note-btn-group .note-table .note-dimension-picker .note-dimension-picker-mousecatcher {
  position: absolute !important;
  z-index: 3;
  width: 10em;
  height: 10em;
  cursor: pointer;
}

.note-editor .note-toolbar .note-btn-group .note-table .note-dimension-picker .note-dimension-picker-unhighlighted, .note-popover .popover-content .note-btn-group .note-table .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-btn-group .note-table .note-dimension-picker .note-dimension-picker-highlighted, .note-popover .popover-content .note-btn-group .note-table .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 .dropdown-style {
  blockquote, pre {
    margin: 0;
    padding: 5px 10px;
  }
}

.note-popover .popover-content .note-style .dropdown-style {
  blockquote, pre {
    margin: 0;
    padding: 5px 10px;
  }
}

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

.note-popover .popover-content .note-style .dropdown-style {
  h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    padding: 0;
  }
}

.note-editor .note-toolbar .note-color-all .note-dropdown-menu, .note-popover .popover-content .note-color-all .note-dropdown-menu {
  min-width: 337px !important;
}

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

.note-editor .note-toolbar .note-color .note-dropdown-menu .note-palette, .note-popover .popover-content .note-color .note-dropdown-menu .note-palette {
  display: inline-block;
  margin: 0;
  width: 160px;
}

.note-editor .note-toolbar .note-color .note-dropdown-menu .note-palette:first-child, .note-popover .popover-content .note-color .note-dropdown-menu .note-palette:first-child {
  margin: 0 5px;
}

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

.note-editor .note-toolbar .note-color .note-dropdown-menu .note-palette {
  .note-color-reset, .note-color-select {
    font-size: 11px;
    margin: 3px;
    padding: 0 3px;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
  }
}

.note-popover .popover-content .note-color .note-dropdown-menu .note-palette {
  .note-color-reset, .note-color-select {
    font-size: 11px;
    margin: 3px;
    padding: 0 3px;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
  }
}

.note-editor .note-toolbar .note-color .note-dropdown-menu .note-palette {
  .note-color-reset:hover, .note-color-select:hover {
    background: #eee;
  }
}

.note-popover .popover-content .note-color .note-dropdown-menu .note-palette {
  .note-color-reset:hover, .note-color-select:hover {
    background: #eee;
  }
}

.note-editor .note-toolbar .note-color .note-dropdown-menu .note-palette .note-color-row, .note-popover .popover-content .note-color .note-dropdown-menu .note-palette .note-color-row {
  height: 20px;
}

.note-editor .note-toolbar .note-color .note-dropdown-menu .note-palette .note-color-select-btn, .note-popover .popover-content .note-color .note-dropdown-menu .note-palette .note-color-select-btn {
  display: block;
}

.note-editor .note-toolbar .note-color .note-dropdown-menu .note-palette .note-holder-custom .note-color-btn, .note-popover .popover-content .note-color .note-dropdown-menu .note-palette .note-holder-custom .note-color-btn {
  border: 1px solid #eee;
}

.note-editor .note-toolbar .note-para .note-dropdown-menu, .note-popover .popover-content .note-para .note-dropdown-menu {
  min-width: 245px !important;
  padding: 5px;
}

.note-editor .note-toolbar .note-para .note-dropdown-menu > div + div, .note-popover .popover-content .note-para .note-dropdown-menu > div + div {
  margin-left: 5px;
}

.note-editor .note-toolbar .note-dropdown-menu, .note-popover .popover-content .note-dropdown-menu {
  min-width: 160px;
}

.note-editor .note-toolbar .note-dropdown-menu.right, .note-popover .popover-content .note-dropdown-menu.right {
  right: 0;
  left: auto;
}

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

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

.note-editor .note-toolbar .note-dropdown-menu.note-check a i, .note-popover .popover-content .note-dropdown-menu.note-check a i {
  color: #00bfff;
  visibility: hidden;
}

.note-editor .note-toolbar .note-dropdown-menu.note-check a.checked i, .note-popover .popover-content .note-dropdown-menu.note-check a.checked i {
  visibility: visible;
}

.note-editor .note-toolbar .note-fontsize-10, .note-popover .popover-content .note-fontsize-10 {
  font-size: 10px;
}

.note-editor .note-toolbar .note-color-palette, .note-popover .popover-content .note-color-palette {
  line-height: 1;
}

.note-editor .note-toolbar .note-color-palette div .note-color-btn, .note-popover .popover-content .note-color-palette div .note-color-btn {
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.note-editor .note-toolbar .note-color-palette div .note-color-btn:hover, .note-popover .popover-content .note-color-palette div .note-color-btn:hover {
  transform: scale(1.2);
  transition: all 0.2s;
}

.note-modal {
  .modal-dialog {
    outline: 0;
    border-radius: 5px;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  }

  .form-group {
    margin-left: 0;
    margin-right: 0;
  }

  .note-modal-form {
    margin: 0;
  }

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

@-moz-document url-prefix() {
  .note-modal .note-image-input {
    height: auto;
  }
}

.note-placeholder {
  position: absolute;
  display: none;
  color: grey;
}

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

  > div {
    position: absolute;
  }

  .note-control-selection-bg {
    width: 100%;
    height: 100%;
    background-color: $black;
    -webkit-opacity: 0.3;
    -khtml-opacity: 0.3;
    -moz-opacity: 0.3;
    opacity: 0.3;
    -ms-filter: progid:DXImageTransform.Microsoft.Alpha(opacity=30);
    filter: alpha(opacity = 30);
  }

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

  .note-control-sizing {
    width: 7px;
    height: 7px;
    border: 1px solid $black;
    background-color: $black;
  }

  .note-control-nw {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
  }

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

  .note-control-sw {
    bottom: -5px;
    left: -5px;
    border-top: none;
    border-right: none;
  }

  .note-control-se {
    right: -5px;
    bottom: -5px;
    cursor: se-resize;

    &.note-control-holder {
      cursor: default;
      border-top: none;
      border-left: none;
    }
  }

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

.note-hint-popover {
  min-width: 100px;
  padding: 2px;

  .popover-content {
    padding: 3px;
    max-height: 150px;
    overflow: auto;

    .note-hint-group .note-hint-item {
      display: block !important;
      padding: 3px;

      &.active, &:hover {
        display: block;
        clear: both;
        font-weight: 400;
        line-height: 1.4;
        color: $white;
        white-space: nowrap;
        text-decoration: none;
        background-color: #428bca;
        outline: 0;
        cursor: pointer;
      }
    }
  }
}

.note-btn {
  border-radius: 0px;

  &.dropdown-toggle::after {
    display: none;
  }
}

.note-editor.note-frame.panel.panel-default .panel-heading {
  background-color: $white;
  border-bottom: 1px solid #ebebeb;
}

.note-btn.btn-default {
  background-color: $white;
  border-color: #ebebeb;
}

.note-editor {
  .btn-default:not(:disabled):not(.disabled):active {
    background-color: #f1f3f5;
  }

  .btn-group .btn + .btn-group {
    border-left: 0px solid rgba(0, 0, 0, 0.08) !important;
  }
}

.panel-default.fullscreen .note-editable {
  background-color: $white;
}

.note-btn {
  &.btn.btn-default.btn-sm {
    line-height: 1.84615385;
  }

  &.btn-default:not(:disabled):not(.disabled).active {
    color: #495057;
    background-color: #f1f3f5;
    border-color: #d3d9df;
  }
}

.form-control-file {
  border: 1px solid $border;
  padding: 0.37rem 0.75rem;
  border-radius: 3px;
}