.hd-richtext-editor {
    position: relative;
}
.hd-richtext-toggle {
    display: none;
}
.hd-richtext-editor .note-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
    height: auto;
    overflow-x: auto;
    padding: 4px 8px;
    background: var(--hd-ui-bg, #f7f8f7);
    border-bottom: 1px solid var(--hd-ui-border, #e2e6e2);
}
.hd-richtext-editor .note-toolbar .note-btn-group {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
    margin: 0 6px 0 0;
    padding-right: 6px;
    border-right: 1px solid #e2e6e2;
    float: none;
}
.hd-richtext-editor .note-toolbar .note-btn-group:last-child {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
}
.hd-richtext-editor .note-toolbar .note-btn.btn.btn-default,
.hd-richtext-editor .note-toolbar .note-btn {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #3d4a40 !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    padding: 0 !important;
    border-radius: 6px !important;
}
.hd-richtext-editor .note-toolbar .note-btn:hover {
    background: #e7eee8 !important;
}
.hd-richtext-editor .note-color .note-dropdown-menu,
.hd-richtext-editor .note-color-fore .note-dropdown-menu,
.hd-richtext-editor .note-color-back .note-dropdown-menu {
    min-width: 168px;
    max-width: 196px;
    padding: 8px;
}
.hd-richtext-editor .note-palette-title {
    font-size: 12px;
    margin-bottom: 4px;
}
.hd-richtext-editor .note-color-reset {
    width: 100%;
    margin: 0 0 6px;
    font-size: 12px;
}
.hd-richtext-editor .note-holder-custom {
    display: none;
}
.hd-richtext-editor .note-color-palette .note-color-btn {
    width: 16px;
    height: 16px;
}
.hd-richtext-view {
    line-height: 1.45;
}
.hd-richtext-view p {
    margin: 0 0 0.4em;
}
.hd-richtext-view p:last-child {
    margin-bottom: 0;
}
.hd-richtext-view mark {
    background: #fff59d;
    padding: 0 0.12em;
}
.hd-richtext-view img,
.hd-richtext-editor .note-editable img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 8px 0;
    border-radius: 4px;
}
