/* The document editor (owner, 6 September 2026): what is typed looks the way staff
   read it. These mirror the document styles in DocBody.razor.css. */
.doc-editor .e-richtexteditor {
    border-radius: 10px;
    border-color: #cbd5e1;
}

.doc-editor .e-richtexteditor .e-rte-toolbar,
.doc-editor .e-richtexteditor .e-toolbar {
    border-radius: 10px 10px 0 0;
}

.doc-editor .e-richtexteditor .e-rte-content,
.doc-editor .e-richtexteditor .e-rte-content .e-content {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.65;
    color: #1e293b;
}

.doc-editor .e-rte-content .e-content {
    padding: 14px 16px;
}

.doc-editor .e-rte-content .e-content p {
    margin: 0 0 12px;
}

.doc-editor .e-rte-content .e-content h1,
.doc-editor .e-rte-content .e-content h2,
.doc-editor .e-rte-content .e-content h3,
.doc-editor .e-rte-content .e-content h4,
.doc-editor .e-rte-content .e-content h5,
.doc-editor .e-rte-content .e-content h6 {
    margin: 26px 0 10px;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #0f172a;
}

.doc-editor .e-rte-content .e-content h1::after,
.doc-editor .e-rte-content .e-content h2::after,
.doc-editor .e-rte-content .e-content h3::after,
.doc-editor .e-rte-content .e-content h4::after,
.doc-editor .e-rte-content .e-content h5::after,
.doc-editor .e-rte-content .e-content h6::after {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    margin-top: 6px;
    border-radius: 2px;
    background: #0d6efd;
}

.doc-editor .e-rte-content .e-content h2:first-child {
    margin-top: 0;
}

.doc-editor .e-rte-content .e-content ul,
.doc-editor .e-rte-content .e-content ol {
    margin: 0 0 12px;
    padding-left: 22px;
}

.doc-editor .e-rte-content .e-content li {
    margin: 0 0 5px;
}

.doc-editor .e-rte-content .e-content ul li::marker {
    color: #0d6efd;
}

.doc-editor .e-rte-content .e-content ol li::marker {
    color: #0d6efd;
    font-weight: 800;
}

.doc-editor .e-rte-content .e-content blockquote {
    margin: 0 0 16px;
    padding: 14px 18px;
    border-left: 4px solid #0d6efd;
    border-radius: 0 12px 12px 0;
    background: #f8fafc;
    font-size: 15px;
    font-style: italic;
    color: #334155;
}

.doc-editor .e-rte-content .e-content blockquote p:last-child {
    margin-bottom: 0;
}

.doc-editor .e-rte-content .e-content .doc-stage {
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0d6efd;
    border-radius: 12px;
    background: #f8fafc;
    padding: 14px 16px;
    margin: 0 0 14px;
}

.doc-editor .e-rte-content .e-content .doc-stage > :last-child {
    margin-bottom: 0;
}

.doc-editor .e-rte-content .e-content strong {
    color: #0f172a;
}

.doc-editor .e-rte-content .e-content a {
    color: #0d6efd;
}

/* The highlighted section button sits with the built-in tools. */
.doc-editor .doc-editor-highlight {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 8px;
    font-size: 13px;
    border: none;
    background: transparent;
    color: #334155;
    cursor: pointer;
}

.doc-editor .doc-editor-highlight:hover {
    background: #eef2ff;
    border-radius: 6px;
}

.doc-editor .doc-editor-highlight-icon {
    width: 14px;
    height: 12px;
    border-left: 3px solid #0d6efd;
    border-radius: 2px;
    background: #dbeafe;
}

/* The message editor (owner, 13 September 2026): the same box as the document editor,
   with the message styles as they are drawn on the opened message. */
.msg-editor .e-richtexteditor {
    border-radius: 10px;
    border-color: #d0d7e2;
}

.msg-editor .e-richtexteditor .e-rte-toolbar,
.msg-editor .e-richtexteditor .e-toolbar {
    border-radius: 10px 10px 0 0;
}

.msg-editor .e-richtexteditor .e-rte-content,
.msg-editor .e-richtexteditor .e-rte-content .e-content {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.55;
    color: #1e293b;
}

.msg-editor .e-rte-content .e-content {
    padding: 12px 14px;
}

.msg-editor .e-rte-content .e-content p {
    margin: 0 0 10px;
}

.msg-editor .e-rte-content .e-content h2 {
    margin: 4px 0 10px;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.msg-editor .e-rte-content .e-content h3 {
    margin: 12px 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.msg-editor .e-rte-content .e-content ul,
.msg-editor .e-rte-content .e-content ol {
    margin: 0 0 10px;
    padding-left: 22px;
}

.msg-editor .e-rte-content .e-content li {
    margin: 0 0 4px;
}

.msg-editor .e-rte-content .e-content blockquote {
    margin: 8px 0 10px;
    padding: 8px 14px;
    border-left: 3px solid #cbd5e1;
    color: #475569;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
}

.msg-editor .e-rte-content .e-content blockquote p:last-child {
    margin-bottom: 0;
}

.msg-editor .e-rte-content .e-content a {
    color: #0d6efd;
}
