.pd-rich-text-editor {
    max-width: 100%;
}

.pd-rich-text-editor textarea[data-pd-rich-text-source] {
    width: 100%;
    min-height: 220px;
    resize: vertical;
}

.pd-rich-text-editor textarea[data-pd-rich-text-source][aria-hidden="true"] {
    display: none !important;
}

.pd-rich-text-editor .mce-tinymce {
    display: block;
    border: 1px solid rgba(91, 118, 106, 0.18);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    background: #ffffff;
    visibility: visible !important;
    opacity: 1 !important;
}

.pd-rich-text-editor .mce-top-part::before,
.pd-rich-text-editor .mce-top-part:before {
    box-shadow: none;
}

.pd-rich-text-editor .mce-toolbar-grp {
    border-bottom: 1px solid rgba(91, 118, 106, 0.14);
    background: linear-gradient(180deg, rgba(249, 252, 251, 0.98), rgba(243, 248, 245, 0.98));
    padding: 8px 10px;
}

.pd-rich-text-editor .mce-panel,
.pd-rich-text-editor .mce-container,
.pd-rich-text-editor .mce-container *,
.pd-rich-text-editor .mce-widget,
.pd-rich-text-editor .mce-widget * {
    box-sizing: border-box;
}

.pd-rich-text-editor .mce-container-body {
    background: #ffffff;
}

.pd-rich-text-editor .mce-edit-area {
    display: block;
    min-height: 260px;
    background: #ffffff;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    visibility: visible !important;
    opacity: 1 !important;
}

.pd-rich-text-editor .mce-edit-area iframe {
    display: block;
    width: 100%;
    min-height: 260px !important;
    background: #ffffff;
    pointer-events: auto;
    visibility: visible !important;
    opacity: 1 !important;
}

.pd-rich-text-editor .mce-btn button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 32px !important;
    padding: 4px 10px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #1d3128 !important;
    box-shadow: none !important;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    transform: none !important;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.pd-rich-text-editor .mce-btn:hover button,
.pd-rich-text-editor .mce-btn:focus button,
.pd-rich-text-editor .mce-btn:focus-visible button {
    background: rgba(15, 118, 110, 0.08) !important;
    color: #102c22 !important;
    box-shadow: none !important;
    transform: none !important;
}

.pd-rich-text-editor .mce-btn.mce-active button,
.pd-rich-text-editor .mce-btn.mce-active:hover button {
    background: rgba(15, 118, 110, 0.12) !important;
    color: #102c22 !important;
    box-shadow: none !important;
}

.pd-rich-text-editor .mce-btn button .mce-ico,
.pd-rich-text-editor .mce-btn button .mce-txt,
.pd-rich-text-editor .mce-ico {
    color: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.pd-rich-text-editor .mce-btn button .mce-txt {
    display: inline-block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    color: inherit !important;
}

.pd-rich-text-editor .mce-toolbar .mce-btn,
.pd-rich-text-editor .mce-toolbar-grp .mce-btn {
    margin: 0 2px 2px 0;
}

.pd-rich-text-editor .mce-btn,
.pd-rich-text-editor .mce-btn:hover,
.pd-rich-text-editor .mce-btn:focus,
.pd-rich-text-editor .mce-btn:focus-visible,
.pd-rich-text-editor .mce-btn:active {
    background: transparent !important;
    box-shadow: none !important;
}

.pd-rich-text-editor .mce-toolbar .mce-btn-group {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.pd-rich-text-editor .mce-toolbar .mce-btn-group:not(:last-child) {
    margin-right: 6px;
}

.pd-rich-text-editor .mce-toolbar .mce-btn-group .mce-btn.mce-last {
    margin-right: 0;
}

.pd-rich-text-editor .mce-statusbar {
    display: none;
}

.mce-tooltip {
    display: none !important;
}

body.pd-prontuario .pd-rich-text-editor .mce-tinymce {
    border-color: rgba(91, 118, 106, 0.18);
}

body.pd-prontuario .pd-rich-text-editor .mce-toolbar-grp {
    background: linear-gradient(180deg, rgba(251, 253, 252, 1), rgba(244, 248, 246, 1));
}

body.pd-prontuario .pd-rich-text-editor .mce-panel {
    background: transparent;
}

.pd-checklist {
    list-style: none;
    margin: 12px 0;
    padding: 0;
}

.pd-checklist li {
    list-style: none;
    position: relative;
    min-height: 28px;
    margin: 10px 0;
    padding: 0 0 0 34px;
}

.pd-checklist li::marker {
    content: "";
}

.pd-checklist li .pd-checklist-box {
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border: 2px solid #567565;
    border-radius: 6px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: none;
    user-select: none;
}

.pd-checklist li .pd-checklist-box::before {
    content: "";
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.pd-checklist li[data-checked="1"] .pd-checklist-box {
    background: #0f766e;
    border-color: #0f766e;
}

.pd-checklist li[data-checked="1"] .pd-checklist-box::before {
    content: "✓";
}

.pd-checklist li[data-checked="0"] .pd-checklist-box {
    background: #fff;
    border-color: #567565;
}
