.editor__tools {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px;
	border: 1px solid #ddd;
    border-bottom: 0;
    background-color: #fff;
}
.editor__open-file {
	width: 158px;
    display: flex;
    align-items: center;
    gap: 5px;
	padding: 4px 0;
    background-color: #fff;
    border: 1px solid #dae1e8;
    border-radius: 4px;
    cursor: pointer;
}
.editor__open-file:hover {
	background-color: #f4f9fd;
}
.editor__open-file.disable {
	pointer-events: none;
	cursor: default;
    background-color: rgb(223, 223, 223);
    box-shadow: none;
}

.editor__open-file-input {
    position: absolute;
    width: 0;
    height: 0;
    display: none;
    outline: 0;
    opacity: 0;
    pointer-events: none;
    user-select: none;
}

.editor__open-file-icon {
    width: 32px;
    height: 32px;
    background: url('../images/icons/file-icon.svg') no-repeat center center;
    background-size: 32px 32px;
}
.editor__open-file-icon.loading {
    background: url('../images/openFileLoader.svg') no-repeat center center;
}
.editor__open-file-text {
    display: flex;
    justify-content: start;
    align-items: start;
    flex-direction: column;
}
.editor__open-file-text-open {
    line-height: normal;
    font-weight: 600;
    font-size: 14px;
    color: #126f9b;
}
.editor__open-file-text-extensions {
    line-height: normal;
    font-size: 14px;
    color: #6e6e6e;
}

.editor-save-as {
    display: none;
    position: relative;
}
.editor-save-as__btn {
    min-width: 170px;
    max-width: 216px;
    height: 42px;
    background: #fff;
    background: url('../images/icons/icon-down.png') no-repeat 92% center;
    background-size: 24px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    text-align: left;
    border: 1px solid rgba(0,0,0,.05);
    border-radius: 3px;
    padding: 0 30px 0 15px;
    cursor: pointer;
    transition: color 150ms ease-out;
}
.editor-save-as__btn:hover {
    color: #006494;
    background-image: url('../images/icons/icon-down_active.png');
}
.editor-save-as__btn--active {
    background-image: url('../images/icons/icon-up.png');
}
.editor-save-as__btn--active:hover {
    background-image: url('../images/icons/icon-up_active.png');
}
.editor-save-as__list {
    display: none;
    position: absolute;
    z-index: 1111;
    right: 0;
    width: 280px;
    list-style: none;
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0px 4px 20px rgb(0 0 0 / 10%);
    padding: 10px 0;
}

.editor-save-as__link {
    position: relative;
    display: inline-block;
    width: 100%;
    text-decoration: none;
    padding: 8px 30px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.editor-save-as__link--txt::before, .editor-save-as__link--docx::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    position: absolute;
    left: 5px;
    top: calc(50% - 10px);
    
    
}
.editor-save-as__link--txt::before {
    background: url('../images/icons/icon-txtfile.svg') no-repeat center center;
    background-size: 20px 20px;
}
.editor-save-as__link--docx::before {
    background: url('../images/icons/icon-msword.svg') no-repeat center center;
    background-size: 20px 20px;
}
.editor-save-as__link--preloader::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    position: absolute;
    right: 3px;
    top: calc(50% - 12px);
    background: url('../images/file_save_preloader.gif') no-repeat center center;
    background-size: 24px 24px;
}
.editor-save-as__link--disable {
    pointer-events: none;
	cursor: default;
    background-color: #f1f1f1;
    color: #9f9f9f;
}
.editor-save-as__link:hover {
    background-color: rgba(255,200,87,.3);
}

.editor {
	width: 100%;
	margin: auto;
	min-height: 80vh;
	line-height: 1.5;
    font-size: 14pt;
	text-align: justify;
	padding: 15px;
	background-color: #fff;
	border: 1px solid #ddd;
}
.editor:focus {
	outline: none;
}
.editor p {
	margin: 0;
}
/* .editor:empty::before {
    content: "Введите текст для проверки правописания...";
    color: #aaa;
} */
.spell-error {
	text-decoration: underline; 
	text-decoration-style: wavy; 
	text-decoration-color: red;
	text-decoration-skip-ink: none
}
#context-menu {
	display: none;
	position: absolute;
	z-index: 1000;
	background: white;
	border: 1px solid #ccc;
}
#context-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
#context-menu ul li {
	padding: 5px 10px;
	cursor: pointer;
}
#context-menu ul li:hover {
	background-color: #eee;
}
#context-menu.loading {
	display: block;
	width: 50px;
	height: 25px;
	background-image: url('../images/loader.gif');
	background-position: center;
	background-repeat: no-repeat;
}
.no-options {
	display: inline-block;
	padding: 5px 15px;
	font-size: 12px;
	color: #ccc;
	cursor: pointer;
}

@media (max-width: 480px) {
	.editor-save-as__btn {
		min-width: 140px;
        background-size: 20px 20px;
        padding: 0 8px 0 8px;
        background-position-x: 98%;
        font-size: 13px;
	}
}