/*Css for edit area*/
#wrap-page {
    display: flex;
}
.header-action {
    display: flex;
}
.header-action > div:not(.separator) {
    padding: 4px 7px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 5px;
}
.header-action > div.separator {
    border-right: 1px solid #ddd;
    margin-left: 3px;
    margin-right: 8px;
}
.tool__workarea__rendered::-webkit-scrollbar {
    z-index: 50;
    width: 4px;
    height: 4px;
    background-color: #e5322d;
}
.tool__workarea__rendered::-webkit-scrollbar-thumb {
    background-color: #ff6a58;
    border: 1px solid #ff6a58;
    border-radius: 8px;
}
.tool__workarea__rendered::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    background-color: #f6f6f8;
}
.tool__preview {
    display: flex;
    position: relative;
    z-index: 401;
    background: #f6f6f8;
    width: 202px;
}
.tool__preview .tool__preview__pages {
    background: rgba(0, 0, 0, 0);
    -ms-flex: 0 0 190px;
    flex: 0 0 190px;
    background: #f6f6f8;
    overflow-y: auto;
    padding-top: 24px;
    max-height: calc(100% - 50px);
}
.tool__preview .preview__file,
.tool__preview .preview__page {
    position: relative;
    width: 94px;
    text-align: center;
    margin: 12px auto;
    font-size: 12px;
}
.tool__preview .preview__file.active canvas,
.tool__preview .preview__file.active img,
.tool__preview .preview__page.active canvas,
.tool__preview .preview__page.active img {
    outline: 1px solid #007bff;
}
.tool__preview .preview__file img,
.tool__preview .preview__page img {
    cursor: pointer;
}
.tool__preview canvas,
.tool__preview img {
    max-width: 100%;
    -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .3);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .3);
    margin-bottom: 8px;
}
.tool__workarea__rendered {
    margin: 0 auto;
    /*height: calc(100vh - 110px);*/
    /*width: calc(100% - 440px - 202px);*/
}
.editor__content {
    -webkit-box-shadow: none;
    box-shadow: none;
    max-width: none;
    width: auto;
    margin: 40px 0 0 0;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-direction: row;
    flex-direction: row;
    justify-content: center;
}
.editor__page {
    display: block;
    padding: 24px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.editor__page.fit-all,
.editor__page.cover-page:first-child{
    flex-basis: 100%;
}
.editor__page.cover-page:first-child .page-canvas{
    margin: 0 0 0 auto;
}
.editor__page .page-canvas {
    z-index: 300;
    overflow: hidden;
    position: relative;
    -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .3);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .3);
    webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin: 0 auto;
}
.editor__page .pdf_img {
    pointer-events: none;
}
.tool__preview__toggle {
    background: #e1e1e1;
    -ms-flex: 0 0 12px;
    flex: 0 0 12px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    cursor: pointer;
}
.tool__preview .tool__preview__toggle {
    display: -ms-flexbox;
    display: flex;
    position: relative;
}
.tool__workarea {
    margin: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
    border-color: initial;
    text-align: center;
    box-sizing: border-box;
    flex: 1 1;
    overflow-y: auto;
    position: relative;
    /*background-color: rgb(28, 31, 32);*/
    padding: 0;
    overflow-x: auto;
    margin-top: 48px;
    height: auto;
    display: block;
}
.full-height .flex.editpdf--ready .tool__workarea {
    margin-top: 48px;
    height: auto;
}
.tool-editpdf .editor {
    padding: 0;
}
.tool-editpdf #editor {
    -ms-flex-pack: center;
    justify-content: center;
    margin: 0 auto;
}

/*Begin css menu*/
.editpdf-menu-wrapper {
    z-index: 410;
    top: 60px;
    width: calc(100% - 641px);
    position: fixed;
    right: 440px;
    left: 12px;
    /*transition: all 1s;*/
}
.editpdf-menu-wrapper:not(.none_preview) {
    left: 202px;
}
.editpdf-menu-wrapper.none_preview{
    width: calc(100% - 452px);
}

/*body.full-height .flex:not(.rtl) .editpdf-menu-wrapper, body.full-height .flex:not(.rtl) .editpdf-submenu-wrapper {*/
/*    right: 440px;*/
/*    width: calc(100% - 440px);*/
/*}*/
/*@media (max-width: 1440px) {*/
/*    body.full-height .flex:not(.rtl) .editpdf-menu-wrapper, body.full-height .flex:not(.rtl) .editpdf-submenu-wrapper {*/
/*        right: 300px;*/
/*        width: calc(100% - 300px);*/
/*    }*/
/*}*/
#editpdf-menu-toolbar {
    -webkit-box-shadow: 0 3px 6px 0 rgba(50, 50, 50, .3);
    box-shadow: 0 3px 6px 0 rgba(50, 50, 50, .3);
}
.editpdf__menu {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow-y: visible;
    display: -ms-flexbox;
    display: flex;
    background: #f6f6f8;
    -webkit-transition: all .2s;
    -o-transition: .2s all;
    transition: all .2s;
    -ms-flex-pack: start;
    justify-content: flex-start;
    width: 100%;
    height: 55px;
}
.editpdf__menu .editpdf__menu__block {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
}
.editpdf__menu .editpdf__menu__block .item, .editpdf__menu .editpdf__menu__block .wrapper {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
}
.editpdf-menu-wrapper #editpdf-menu-toolbar .editpdf__menu__block .wrapper {
    padding: 0 16px;
}
#textFillColor_ColorPalette,
#textBackgroundColor_ColorPalette,
#textAlignment_ContextualMenu,
[data-name="rotation"] > div,
[data-name="recycle_bin"],
[data-name="redo"],
.editpdf__menu__block select {
    cursor: pointer;
}
.editpdf-viewbar-mountpoint {
    position: fixed;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 5008;
    bottom: 24px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    -webkit-transition: left .3s ease-in-out;
    -o-transition: left .3s ease-in-out;
    transition: left .3s ease-in-out;
}
.viewbar {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    color: #fff;
    border-radius: 4px;
    padding: 4px 12px;
    background-color: #47474f;
    line-height: 20px;
    font-size: 16px;
    font-weight: 400;
}

.viewbar-item {
    width: 24px;
    height: 24px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    border-radius: 4px;
    color: #fff;
    background-color: rgba(0,0,0,0);
    border: 0;
    padding: 0;
}

.viewbar-input, .viewbar-input:focus, .viewbar-input:hover {
    height: unset;
    background-color: #707078;
    color: #fff;
}
.viewbar-input, .viewbar-input:focus, .viewbar-input:hover {
    height: unset;
    background-color: #707078;
    color: #fff;
}

.editpdf__menu__option.next, .editpdf__menu__option.prev {
    width: 24px;
    height: 24px;
    display: inline-block;
    -o-object-fit: contain;
    object-fit: contain;
    border-radius: 4px;
    background-color: rgba(0,0,0,0);
}
.editpdf__menu__option.next:hover, .editpdf__menu__option.prev:hover, .viewbar-item:hover {
    background-color: #5c5c64;
}
.editpdf__menu .editpdf__menu__option.next, .editpdf__menu .editpdf__menu__option.prev {
    cursor: pointer;
}
.editpdf__menu .editpdf__menu__option.next {
    margin-left: 3px;
    margin-right: 6px;
}
.editpdf__menu input, .editpdf__menu select {
    border: 1px solid #aeaeb2;
    font-size: 12px;
    height: 24px;
    border-radius: 4px;
    -webkit-box-shadow: none;
    box-shadow: none;
    background-color: #fff;
    padding: 2px 8px 4px;
}
.editpdf__menu select {
    padding: 3px 22px 4px 7px;
}
.editpdf-viewbar-mountpoint #editor_page {
    width: 48px;
    text-align: right;
    padding: 4px 12px 4px 12px;
}

#editor_percent {
    width: 85px;
    padding: 4px 12px 4px 12px;
}
/* Ẩn nút tăng giảm trong input[type="number"] */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Ẩn nút tăng giảm cho Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

#editpdf-menu-toolbar #editor_pages_wrapper {
    margin-top: -1px;
    font-size: 12px;
    margin-left: 3px;
    margin-right: 3px;
    font-weight: 400;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.5;
    color: #000;
}
.editpdf__menu .editpdf__menu__block .item {
    height: 48px;
    -webkit-transition: all .2s;
    -o-transition: .2s all;
    transition: all .2s;
}
.editpdf-menu-wrapper #editpdf-menu-toolbar .editpdf__menu__block .wrapper {
    padding: 0 16px;
    cursor: pointer;
}
.editpdf__menu .editpdf__menu__block .item,
.editpdf__menu .editpdf__menu__block .wrapper {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
}
.editpdf__menu .editpdf__menu__block .item:not(.disabled).hand__active,
.editpdf__menu .editpdf__menu__block .item:not(.disabled).item__selected {
    background: #f2f3f8;
}
.editpdf__menu .editpdf__menu__block .item.hand__active svg path,
.editpdf__menu .editpdf__menu__block .item.item__selected svg path {
    fill: #e5322d;
}
.editpdf__menu__block:not(:first-child):before {
    position: absolute;
    -webkit-transition: all .1s;
    -o-transition: .1s all;
    transition: all .1s;
    content: "";
    height: 100%;
    width: 1px;
    right: -1px;
    z-index: 3;
    top: 0;
    left: 0;
    border-right: 1px solid #e5e5e9;
}
.editpdf__menu .editpdf__menu__block.align-end {
    margin-left: auto;
}
.editpdf__menu .editpdf__menu__option.next .editpdf__menu__option__default, .editpdf__menu .editpdf__menu__option.prev .editpdf__menu__option__default {
    display: block;
}
.editpdf__menu .editpdf__menu__option.next .editpdf__menu__option__active, .editpdf__menu .editpdf__menu__option.next .editpdf__menu__option__hover, .editpdf__menu .editpdf__menu__option.next:active .editpdf__menu__option__default, .editpdf__menu .editpdf__menu__option.prev .editpdf__menu__option__active, .editpdf__menu .editpdf__menu__option.prev .editpdf__menu__option__hover, .editpdf__menu .editpdf__menu__option.prev:active .editpdf__menu__option__default {
    display: none;
}
.editpdf__menu .editpdf__menu__option.next .editpdf__menu__option__active, .editpdf__menu .editpdf__menu__option.next .editpdf__menu__option__default, .editpdf__menu .editpdf__menu__option.next .editpdf__menu__option__hover, .editpdf__menu .editpdf__menu__option.prev .editpdf__menu__option__active, .editpdf__menu .editpdf__menu__option.prev .editpdf__menu__option__default, .editpdf__menu .editpdf__menu__option.prev .editpdf__menu__option__hover {
    pointer-events: none;
}
.editpdf__menu .editpdf__menu__option.next:active .editpdf__menu__option__active, .editpdf__menu .editpdf__menu__option.prev:active .editpdf__menu__option__active {
    display: block;
}

/*End css menu*/

/*Begin css right area*/

/*Begin css page 3 edit*/
.editpdf-submenu-wrapper {
    background: #f6f6f8;
    z-index: 409;
    width: calc(100% - 642px);
    position: fixed;
    top: 60px;
    right: 440px;
    transition: all .3s;
}
.editpdf-submenu-wrapper.none_preview{
    width: calc(100% - 552px);
}
.editpdf-submenu-wrapper.show {
    top: 108px;
    display: block !important;
}
.editpdf-menu-wrapper .editpdf__menu {
    border: 0;
    background: #f6f6f8;
    box-shadow: 0 3px 6px 0 rgba(50, 50, 50, .3);
}
.editpdf__submenu {
    margin: auto;
    background: #f2f3f8;
    box-shadow: 5px 4px 3px -3px rgba(0, 0, 0, .15);
    align-items: center;
}
.editpdf-submenu-wrapper .editpdf__menu__block {
    padding: 0 16px;
}
.editpdf-submenu-wrapper .editpdf__menu.editpdf__submenu .editpdf__menu__block .wrapper:not(:first-child) {
    margin-left: 8px;
}
.wrapper {
    height: 32px;
    text-align: center;
}
.editpdf-submenu-wrapper .wrapper .switch-button {
    width: 26px;
    justify-content: center;
    align-items: center;
    padding: 0;
}
.editpdf-submenu-wrapper .color-palette-wrapper {
    width: 57px;
    justify-content: center;
    align-items: center;
    padding: 0;
}
.wrapper > .editpdf-icon {
    margin-right: 8px;
}
.reset-all-layers-btn{
    display: flex;
    justify-content: end;
}
.reset-all-layers-btn>div{
    font-weight: 500;
    text-decoration: underline;
    color: #e5322d;
    cursor: pointer;
    display: inline-block;
}
.reset-all-layers-btn>:hover{
    color: #161616;
}

/*Begin css page 3 right edit*/
.option__panel .info {
    background-color: #def2ff;
}
#sidebar .page-section {
    position: relative;
    margin-bottom: 20px;
}
#sidebar .page-section .marker {
    font-weight: 600;
    margin-bottom: 26px;
    user-select: none;
    text-align: start;
}
#sidebar .page-section .marker:after {
    content: "";
    position: absolute;
    top: 33px;
    left: 0;
    width: 100%;
    height: 1px;
    border-top: 1px solid #b4b4b4;
}
#sidebar .page-section .layer.active {
    background: #f5f5f5;
}
#sidebar .page-section .layer{
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 0;
    height: 40px;
}
#sidebar .page-section .layer:not(:first-child){
    margin-top: 5px;
}
#sidebar .layers-header{
    color: #47474f;
    text-align: start;
}
.tool-editpdf #sidebar .option__panel__title {
    margin-bottom: 24px;
    padding: 12px;
}
#sidebar .page-section .layer .layer__icon--drag {
    cursor: move;
    margin-left: 6px;
    margin-right: 13px;
    padding: 6px;
}
.layer__content {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: 100%;
    -ms-flex-align: center;
    align-items: center;
}
.layer__icon {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
    height: 28px;
    width: 28px;
}
.layer__content .form__group {
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-positive: 1;
    flex-grow: 1;
    margin: 0 17px;
}
.layer__content .form__group.form__group--input {
    margin-right: 0;
}
.layer__content .form__group .input[disabled=disabled] {
    background: rgba(0, 0, 0, 0);
    border: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    pointer-events: none;
}
.layer__content .form__group .input {
    margin: 0;
    height: 33px;
    width: 100%;
    opacity: .9;
    padding: 4px 12px;
    font-size: 16px;
    text-overflow: ellipsis;
}
#sidebar .page-section .layer .layer__content .layer__edit,
#sidebar .page-section .layer .layer__content .layer__trash{
    padding: 6px;
}
.disable-input {
    display: none;
}
.input {
    display: block;
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    vertical-align: middle;
}
#sidebar .page-section .layer .layer__content .layer__edit {
    padding: 6px;
}
#sidebar .page-section .layer .layer__content .layer__edit.layer__edit--enabled {
    margin-right: 3px;
    margin-left: 3px;
}
#sidebar .page-section .layer .layer__content .layer__edit .disable-input {
    padding: 2px;
}
#sidebar .page-section .layer .layer__content .layer__edit .disable-input,
#sidebar .page-section .layer .layer__content .layer__edit .enable-input {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
}
#sidebar .page-section .layer .layer__content .layer__edit--enabled~.layer__trash {
    display: none;
}
.tool__sidebar__edit.pdf-sidebar-wrapper {
    padding: 0 15px;
}
.btn-icon--white {
    background: #fff;
    color: #161616;
}
.btn-icon--sm {
    width: 20px;
    height: 20px;
}
#sidebar .page-section .layer .layer__content .layer__edit .disable-input .btn-icon {
    -webkit-box-shadow: 0 3px 6px 0 rgba(0,0,0,.14);
    box-shadow: 0 3px 6px 0 rgba(0,0,0,.14);
    border-radius: 100%;
}
.tool__workarea.pan_mode {
    -webkit-cursor: -webkit-grab;
    cursor: grab;
}
.tool__workarea.on_draw {
    -webkit-cursor: -webkit-crosshair;
    cursor: crosshair;
}
.tool__workarea.pan_mode.click_down_pan_mode {
    cursor: grabbing;
}
.option__panel {
    padding-bottom: unset;
}
.layers{
    padding-bottom: 140px;
}
.show-more {
    z-index: 1000;
}
/*--------[END-EDIT]-------------*/
@media (max-width: 1440px) {
    #area-sidebar {
        width: 300px;
        position: absolute;
        right: 0;
        z-index: 415;
        height: 100%;
        overflow: visible !important;
    }
    #area-sidebar::after {
        width: 294px;
        right: 6px;
    }
    #processTask {
        width: 260px;
        right: 20px;
        font-weight: 500;
    }
    .editpdf-menu-wrapper {
        width: calc(100% - 502px);
        left: 202px;
    }
    .tool__workarea.show_tool_preview .editpdf-submenu-wrapper {
        left: 202px;
    }
    .tool__workarea:not(.show_tool_preview) .editpdf-submenu-wrapper {
        left: 100px;
    }
    .editpdf-submenu-wrapper {
        width: fit-content;
    }
    .editpdf-menu-wrapper.none_preview, .editpdf-submenu-wrapper.none_preview {
        width: 100%;
        left: 13px;
    }
    .btnProcess {
        width: 252px;
    }
}

@media (max-width: 940px) {
    .tool__sidebar {
        position: absolute;
        right: 0;
        top: 0;
        z-index: 4015;
        transition: all .4s ease-in;
    }
    .tool__workarea {
        width: 100%;
    }
    .btnProcess {
        width: 270px;
        right: 10px;
        bottom: 30px;
    }
}

@media (max-width: 460px) {
    #wrap-page .show-more.show {
        z-index: 411;
    }
    #editor .page-canvas {
        pointer-events: none;
    }
    /*#editor .page-canvas {*/
    /*    width: 134.575px !important;*/
    /*}*/
}


/*--------[DRAW-MORE-BEGIN]-------------*/
.strokeColor, .fillColor {
    display: flex;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    padding: 0 12px;
    height: 32px;
    border-radius: 5px;
}
.color-sample {
    border-radius: 2px;
    width: 16px;
    height: 16px;
    margin-right: 8px;
}
.downMoreIcon {
    transform: scale(1.5);
}
.addition-arrow {
    position: absolute;
    right: 33px;
    transform: rotate(180deg) scale(1.25);
    top: 10px;
    cursor: pointer;
}
.subtraction-arrow {
    position: absolute;
    right: 33px;
    transform: scale(1.25);
    top: 19px;
    cursor: pointer;
}
#strokeWidthInputNumber {
    width: 80px;
    text-align: center;
}
.rotate {
    height: 17px;
    padding-right: 5px;
    padding-left: 5px;
}
.action-button {
    cursor: pointer;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 12px;
    height: 32px;
    border-radius: 5px;
    -webkit-transition: all .2s;
    -o-transition: .2s all;
    transition: all .2s;
}

/*[-----display-------]*/
/* .hidden-right>.tool__workarea>.tool__workarea__rendered {*/
/*     width: calc(100% - 186px);*/
/* }*/
/* .hidden-right>.tool__workarea>.tool__workarea__rendered {*/
/*     width: 100%;*/
/* }*/
/* .hidden-left>.tool__workarea>.tool__workarea__rendered {*/
/*     width: calc(100% - 440px);*/
/* }*/
/* .hidden-both>.tool__workarea>.tool__workarea__rendered {*/
/*     width: 100%;*/
/* }*/
/* .hidden-both>.tool__workarea>.tool__workarea__rendered {*/
/*     width: 100%;*/
/* }*/
.input_add_image {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
}
.tool-editpdf .canvas-object {
    position: absolute;
    display: -ms-flexbox;
    display: flex;
}
.tool-editpdf .canvas-object[data-type=text],
.tool-editpdf .canvas-object[data-type=draw] {
    display: block;
}
.canvas-object[data-type=text].text-editing,
.canvas-object[data-type=text].text-editing .text-content {
    z-index: 2000;
}
.canvas-object[data-type=text] .text-content {
    text-align: left;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
}
.canvas-object[data-type=text] .text-content .contenteditable-wrapper {
    display: inline-block;
    /*display: block;*/
}
.canvas-object[data-type=text] .text-content .contenteditable-wrapper [contenteditable] {
    display: block;
    pointer-events: auto;
    letter-spacing: normal;
    word-break: break-word;
    text-align: left;
    line-height: normal;
    overflow: visible;
    white-space: pre-wrap;
}
/*.canvas-object[data-type=text].align-justify .contenteditable-wrapper {*/
/*    width: 100%;*/
/*}*/
/*.canvas-object[data-type=text].align-justify [contenteditable]::after {*/
/*    content: "";*/
/*    display: inline-block;*/
/*    width: 100%;*/
/*    height: 1px;*/
/*    position: relative;*/
/*    top: -25px;*/
/*}*/
.text-content .contenteditable-wrapper [contenteditable] div {
    font-family: inherit;
    font-weight: inherit;
    font-style: inherit;
    text-decoration: inherit;
    text-align: inherit;
    color: inherit;
}
[contenteditable="true"] i,
[contenteditable="true"] span,
[contenteditable="true"] b {
    font-family: inherit;
}
.tool-editpdf .canvas-object .controls {
    z-index: 1;
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    -ms-touch-action: none;
    touch-action: none;
    pointer-events: none;
    opacity: 0;
}
.tool-editpdf .canvas-object .controls.visible {
    opacity: 1;
}
.tool-editpdf .canvas-object .controls.enabled {
    pointer-events: all;
}
.tool-editpdf .canvas-object .controls.draggable {
    cursor: grab;
}
.tool-editpdf .canvas-object .controls .surface-rect {
    fill: rgba(0, 0, 0, 0);
    stroke: #63b5f6;
    shape-rendering: geometricPrecision;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
}
.tool-editpdf .canvas-object .controls .surface-rect.enabled {
    pointer-events: all;
}
.tool-editpdf .canvas-object .controls .surface-rect.visible {
    opacity: 1;
}
.tool-editpdf .canvas-object .controls .anchor {
    fill: #2196f3;
    stroke: #fff;
    opacity: 0;
    pointer-events: none;
}
.tool-editpdf .canvas-object .controls .anchor.enabled {
    pointer-events: all;
}
.tool-editpdf .canvas-object.canvas-object--active-element[data-type=line] .controls .surface-rect,
.tool-editpdf .canvas-object:not(.canvas-object--active-element) .anchor {
    display: none;
}
.canvas-object[data-type=draw] .anchor_top,
.canvas-object[data-type=draw] .anchor_right,
.canvas-object[data-type=draw] .anchor_bottom,
.canvas-object[data-type=draw] .anchor_left {
    display: none;
}
.tool-editpdf .canvas-object .controls .anchor.visible {
    opacity: 1;
}
.tool-editpdf .canvas-object .controls .anchor.cursor-nwse-resize {
    cursor: nwse-resize;
}
.tool-editpdf .canvas-object .controls .anchor.cursor-nesw-resize {
    cursor: nesw-resize;
}
.tool-editpdf .canvas-object .controls .anchor.cursor-ew-resize {
    cursor: ew-resize;
}
.tool-editpdf .canvas-object .controls .anchor.cursor-ns-resize {
    cursor: ns-resize;
}
.editpdf-submenu-wrapper .editpdf__menu.editpdf__submenu .switch-button {
    cursor: pointer;
}
.editpdf-submenu-wrapper .editpdf__menu.editpdf__submenu .switch-button.switch-on {
    -webkit-transition: all .2s;
    -o-transition: .2s all;
    transition: all .2s;
    background: #e5e5e9;
}
.edit-popup {
    position: relative;
    display: flex;
}
.edit-popup .popup-menu {
    position: absolute;
    top: 100%;
    padding: 4px 12px;
    background: #fff;
    border-radius: 5px;
    display: none;
    box-shadow: 2px 4px 9px -4px rgba(0, 0, 0, 0.75);
}
.edit-popup.active .popup-menu {
    display: block;
    z-index: 5;
}
.edit-popup .image-transparent {
    margin-right: 8px;
}

[data-name="fillAndStrokeColor"] .popup-menu {
    left: 0;
}
.edit-popup .popup-menu .color-row {
    display: flex;
    margin: 8px 0 8px 8px;
    align-items: baseline;
}
.edit-popup .popup-menu .edit-align-row {
    display: flex;
    align-items: baseline;
}
.edit-align {
    padding: 4px 8px;
    border-radius: 5px;
}
.edit-align:hover {
    background: #1b1e2117;
}
.color-row .color-sample[data-value="#FFFFFF"] {
    border: 1px solid #e5e5e9;
}
.edit-popup {
    justify-content: space-around;
}
#area-sidebar {
    position: relative;
}

/*------[color-select]------*/
.color-col.selected:after {
    content: url("/images/svg/tick.svg");
    position: absolute;
    top: -5px;
    left: -3px;
    display: flex;
    padding: 0 5px 0 6px;
    background: transparent;
}
.color-col {
    position: relative;
}
.color-col [data-value] {
    cursor: pointer;
}
#test_element_container {
    position: fixed;
    bottom: 0;
    width: 10000px;
    pointer-events: none !important;
    user-select: none;
}
#test_element {
    opacity: 0 !important;
    pointer-events: none !important;
    display: inline-block;
    /* position: fixed;
    bottom: 0; */
    line-height: normal !important;
    letter-spacing: normal;
    word-break: break-word;
    user-select: none;
}
#test_element div {
    font-family: inherit;
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
    text-decoration: inherit;
    line-height: inherit;
}
#test_element.show {
    opacity: 1 !important;
    z-index: 10000;
    left: 20px;
}
.drawing {
    /*border: 1px solid #ccc;*/
    width: 100%;
    height: 100%;
}
#area-shape-child {
    z-index: 9999;
    visibility: visible;
    position: absolute;
    inset: 0 auto auto 0;
    margin: 0;
    transform: translate(106px, 45px);
}
#area-shape-child .tippy-box {
    position: relative;
    border-radius: 4px;
    line-height: 1.4;
    white-space: normal;
    outline: 0;
    transition-property: transform, visibility, opacity;

    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 600;

    color: #26323d;
    box-shadow: 0 0 20px 4px rgba(154, 161, 177, .15), 0 4px 80px -8px rgba(36, 40, 47, .25), 0 4px 4px -2px rgba(91, 94, 105, .15);
    background-color: #fff;

    max-width: 350px;
    transition-duration: 300ms;
}
#area-shape-child .tippy-content {
    position: relative;
    z-index: 1;

    text-align: center;

    padding: 5px 12px 7px;

    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;

    transition-duration: 300ms;
}
#area-shape-child .symbol-row {
    display: flex;
}
.symbol-row [data-value] {
    border-radius: 5px;
    cursor: pointer;
    padding: 5px;
    -webkit-transition: background .25s;
    -o-transition: background .25s;
    transition: background .25s;
}
.for-border {
    border: 1px solid #fff;
    -webkit-box-shadow: 0 0 2px 0 #adadb6;
    box-shadow: 0 0 2px 0 #adadb6;
}
.editpdf-submenu-wrapper .editpdf__menu.editpdf__submenu .color-palette-wrapper > :not(.editpdf-icon):hover {
    background: #fff;
}
.menu_disabled {
    opacity: .4;
    pointer-events: none;
}
.layer__edit,
.layer__trash {
    cursor: pointer;
}
.layer__edit svg,
.layer__trash  path{
    fill: #707078;
}
.editpdf-selectable-text input[readonly] {
    background: rgba(0, 0, 0, 0);
    border: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}
.pdf-loading {
    width: 100px;
    margin: 100px auto 0 auto;
}
.tool__preview.closed {
    width: 12px;
}
.tool__preview.closed .tool__preview__pages {
    flex: 0 0 0;
}
.tool__preview.closed .tool__preview__toggle svg {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}
.tool__preview__toggle:hover path {
    fill: #e65757;
}
#tippy-gear-menu{
    display: flex;
    justify-content: space-between;
    max-width: 350px;
    right: -120px;
    border-radius: 5px;
    position: absolute;
    top: 0;
    -webkit-transform: translate3d(-50%,-100%,0);
    transform: translate3d(-50%,-100%,0);
    display: -ms-flexbox;
    display: flex;
    padding: 10px;
    background-color: #47474f;
}
#tippy-gear-menu>div, .tool-editpdf #tippy-shape-selector-menu>div {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
    cursor: pointer;
    border-radius: 4px;
    -webkit-transition: all .2s;
    -o-transition: .2s all;
    transition: all .2s;
}
.viewbar-btn--js-active, .viewbar-btn:active,
#tippy-gear-menu>div:hover{
    background-color: #707078;
}
#swap-editor{
    display: none;
}
.toggleContainer {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    width: auto!important;
    border: 2px solid #47474f;
    border-radius: 20px;
    background: #47474f;
    font-weight: 600;
    color: #47474f;
    cursor: pointer;
    font-size: 13px;
    line-height: 16px;
    margin-bottom: unset;
}
.toggleContainer:before {
    content: "";
    position: absolute;
    width: 50%;
    height: 100%;
    left: 0;
    border-radius: 20px;
    background: #fff;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}
.toggleCheckbox:checked+.toggleContainer:before {
    left: 50%;
}
.toggleCheckbox+.toggleContainer .toggleItem:first-child svg.icon path,
.toggleCheckbox:checked+.toggleContainer .toggleItem:last-child svg.icon path{
    fill: #47474f;
}
.toggleCheckbox+.toggleContainer .toggleItem:last-child svg.icon path,
.toggleCheckbox:checked+.toggleContainer .toggleItem:first-child svg.icon path {
    fill: #fff;
}
.toggleCheckbox+.toggleContainer .toggleItem:first-child,
.toggleCheckbox:checked+.toggleContainer .toggleItem:last-child {
    color: #47474f;
    -webkit-transition: color .3s;
    -o-transition: color .3s;
    transition: color .3s;
}
.toggleCheckbox:checked+.toggleContainer .toggleItem:first-child {
    color: #fff;
    -webkit-transition: color .3s;
    -o-transition: color .3s;
    transition: color .3s;
}
.toggleContainer .toggleItem {
    padding: 2px 6px;
    text-align: center;
    z-index: 1;
    -ms-flex-positive: 0;
    flex-grow: 0;
    -ms-flex-negative: 1;
    flex-shrink: 1;
    -ms-flex-preferred-size: auto;
    flex-basis: auto;
    width: 50%;
}
.toggleItem, .toggleItem__content {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}
.toggleItem__content {
    -ms-flex-pack: center;
    justify-content: center;
}
.toggleCheckbox+.toggleContainer .toggleItem:first-child{
    padding-right: 32px;
}
.toggleCheckbox+.toggleContainer .toggleItem:last-child {
    color: #fff;
    -webkit-transition: color .3s;
    -o-transition: color .3s;
    transition: color .3s;

}
.toggleItem svg {
    margin-left: 6px;
    margin-right: 6px;
    flex-grow: 1;
    -ms-flex: none;
    flex: none;
}
.tool__workarea.show_popup_change_mode{
    overflow: hidden;
}
.tool__workarea.changing_edit_mode:after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(255 255 255);
    z-index: 999;
    background-image: url('/images/loading_2.gif');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100px 100px;
}
.editpdf__menu__block.editpdf__menu__block--text:before {
    border-right: 4px solid #ebebf4;
}

.viewbar-divisor {
    display: -ms-flexbox;
    display: flex;
    position: relative;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: center;
    justify-content: center;
    width: 1px;
    height: 100%;
}

.viewbar-divisor:after {
    content: "";
    border: 1px solid #707078;
    position: absolute;
    height: 22px;
    width: 0;
    left: 50%;
}
#editor_pages {
    padding-left: 2px;
}
@media (min-width: 891px) and (max-width: 1200px) {
    .tool__workarea:not(.show_tool_preview) .editpdf-submenu-wrapper {
        left: 0;
    }
}
@media (max-width: 890px) {
    #editor_pages_wrapper {
        display: flex;
    }
    #area-sidebar, #area-sidebar:after, .sidebar-inactive {
        margin-right: -300px;
    }
    .editpdf-viewbar-mountpoint {
        bottom: 5px;
    }
    #processTask {
        width: 190px;
        height: 50px;;
        bottom: 50px;
    }
    #editor_percent {
        width: 50px;
        padding: 2px 2px 2px 2px;
        text-align: center;
        font-size: 13px;
    }
    .editpdf-viewbar-mountpoint #editor_page {
        width: 35px;
        text-align: right;
        padding: 2px 4px 2px 2px;
        font-size: 13px;
    }
    .viewbar {
        gap: 4px;
        font-size: 90%;
    }
    #tippy-gear-menu {
        right: -107px;
        top: -2px;
        padding: 3px;
    }
    .tool__preview .tool__preview__pages {
        max-height: calc(100% - 50px);
    }
    .tool__preview {
        width: 122px;
    }
    .tool__preview .tool__preview__pages {
        flex: 0 0 112px;
        -ms-flex: 0 0 112px;
    }
    .editpdf-submenu-wrapper, .editpdf-menu-wrapper {
        left: 13px;
        width: calc(100% - 13px);
    }
    .tool__workarea.show_tool_preview .editpdf-menu-wrapper {
        width: calc(100% - 123px);
        left: 123px;
    }
}


@media (max-width: 460px) {
    .editpdf-menu-wrapper #editpdf-menu-toolbar .editpdf__menu__block .wrapper {
        padding: 0 10px;
    }
}

.canvas-object[data-type="text"] {
    font-kerning: none;
}
.option_readonly {
    opacity: .2;
    pointer-events: none;
}
.modal-backdrop {
    z-index: 5100;
}
.modal {
    z-index: 5101;
}
.c-resize {
    cursor: grab;
}
#editpdf-menu-toolbar {
    transition: none !important;
    -webkit-transition: none !important;
}
