﻿
@import url('summernote.css');

.note-editor.note-airframe .note-editing-area, .note-editor.note-frame .note-editing-area {
    overflow: hidden;
    height: 100%;
    /*height: calc(100vh - 13rem);*/
}

.note-dropdown-menu .dropdown-item > *{
    margin:0;
}

.note-editor.note-airframe, .note-editor.note-frame {
    border-color: var(--color-border-input);
    overflow: hidden;
    min-height:100%;
}

.note-editor.note-airframe .note-editing-area .note-editable, 
.note-editor.note-frame .note-editing-area .note-editable{
    height:100%;
}

.note-editor .note-toolbar > .note-btn-group, .note-popover .popover-content > .note-btn-group {
    margin-top: 0;
    align-items: center;
}
.note-toolbar .btn-color {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    overflow: hidden;
}
.note-textColor{
    margin-left: 1rem !important;
}

.note-bgColor {
    margin-right: 1rem !important;
}

.note-toolbar .btn-color input{
    margin:0;
    padding:0;
    border:0 !important;
    position:absolute;
    height:inherit;
    width:inherit;
    top:-1px;
    left:-1px;
    right:0;
    bottom:0;
}

.note-btn-group .note-btn {
    border-color: var(--color-border-input);
    font-size: 14px;
    padding: .2rem .45rem;
    min-width: auto;
    line-height: 1.75rem;
    background:var(--color-surface);
    color:var(--color-gray-300);
}
.note-btn-group .note-btn.active,
.note-btn-group .note-btn:active,
.note-btn-group .note-btn.show,
.note-btn-group .note-btn:hover {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color:#fff;
}

.note-btn-group .note-btn svg{
    height:20px;
    width:20px;
}


/* repeatable outline */
.repeatable-block {
    position: relative;
}

.repeatable-badge {
    background: #3b82f6;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
    display: inline-block;
    position:absolute;
    top:0;
    left:0;
}

.note-editable{
    font-family: Inter, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.note-current-fontsize {
    font-size: 14px;
}

.note-editable .table > :not(caption) > * > * {
    padding: 0;
}


.layout-block {
    position: relative;
    /*border: 1px dashed #b5b5b5;*/
    margin: 0;
    transition: .3s all ease-in-out;
}

/* Delete button */
.btn-layout-delete {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 24px;
    height: 24px;
    border: none;
    background: #2fa9fa;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    display: inline-block;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    cursor:pointer;
    pointer-events: auto;
    user-select: none;
}

/* Prevent caret issues */
.btn-layout-delete:focus {
    outline: none;
}

.layout-block:hover {
    border-color: #2fa9fa
}

    .layout-block:hover > .btn-layout-delete {
        opacity: 1;
    }

/*.layout-block td:not(:last-child) {*/
.layout-block td {
    border: 1px dashed #ccc; /* only for user reference */
}

.layout-block td {
    padding: 10px;
}

/* Placeholders in editor */
.placeholder-editor {
    background: #ffeb3b;
    color: #5e5714;
    padding: 2px 4px !important;
    border-radius: 3px;
    font-family: monospace;
    white-space: nowrap;
}

.placeholder-editor-each {
    background: #3bdbff;
    color: #0d424e;
}

.placeholder-delete-btn {
    display: inline-block;
    margin-left: .25rem;
    position: relative;
    bottom: 1px;
    cursor: pointer;
    background: transparent !important;
}

.note-editable p,
.note-editable h1,
.note-editable h2,
.note-editable h3,
.note-editable h4,
.note-editable h5,
.note-editable h6 {
    margin-bottom: 0;
}


.summernote-active-element {
    position: relative;
    transition: all 0.2s ease-in-out;
}

.summernote-active-element:after {
    content: "";
    border: 1px solid #0d6efd !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    pointer-events: none;
    z-index: 10;
}

.summernote-active-element:before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    display: block;
    z-index: 11;
    pointer-events: none;
    /* Create 4 small blue squares using gradients */
    background-image: linear-gradient(#0d6efd, #0d6efd), linear-gradient(#0d6efd, #0d6efd), linear-gradient(#0d6efd, #0d6efd), linear-gradient(#0d6efd, #0d6efd);
    background-repeat: no-repeat;
    background-size: 6px 6px;
    background-position: top left, top right, bottom left, bottom right;
}

.note-align,
.note-list {
    margin: 0 .5rem;
}
.note-list{
    margin-top:.5rem;
}

.note-popover .arrow,
.note-popover .popover-arrow {
    display: none !important;
}

.note-popover.bs-popover-top,
.note-popover.bs-popover-bottom,
.note-popover.bs-popover-start,
.note-popover.bs-popover-end {
    margin: 0 !important;
}

.note-popover.popover {
    display: none;
    max-width: none !important;
    position: absolute !important;
    z-index: 1050;
}

.note-popover .popover-arrow {
    position: absolute !important;
}

.note-editor {
    position: relative !important;
}

.text-muted {
    color: var(--color-gray-200) !important;
}

.note-modal .form-group{
    margin-bottom:1rem;
}
.note-modal .form-check-input {
    width: 1.2rem !important;
    margin-right: .5rem;
}
.note-modal label {
    font-size: .95rem;
    color: var(--color-gray-300);
    font-weight: 600;
    padding-left:.5rem;
}