#esign-workspace {
    /* Chỉ hiển thị text */
    /* Hình ở trên chữ ở dưới */
    /* Chỉ hiển thị hình ảnh */
    /* Hình làm nền chữ ở trên */
    /* Hình bên trái chữ ký bên phải */
}

#esign-workspace .ct-title h4 {
    font-size: 18px;
    font-weight: 400;
}

#esign-workspace .ct-enable-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
}

#esign-workspace .ct-enable-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 1px rgba(255, 255, 255, 0.2);
}

#esign-workspace .ct {
    color: #222;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* background: #fff;
	 */
    background-color: #f1f3ff;
    border: 0;
    outline: none;
}

#esign-workspace .ct .ct-thumbnail {
    position: relative;
    display: flex;
    flex: 1 0 auto;
    margin-right: 25px;
    padding: 0;
    max-width: 200px;
    margin-left: -10px;
}

#esign-workspace .ct .ct-thumbnail-page-number {
    flex: 0 0 34px;
    width: 34px;
    margin: 4px 6px 0 0;
    color: #222;
    font-size: 11px;
    line-height: 16px;
    text-align: right;
    pointer-events: none;
}

#esign-workspace .ct .ct-thumbnail-nav {
    flex: 1 0 154px;
    padding: 0;
    overflow: hidden;
    border: 2px solid #f5f5f5;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

#esign-workspace .ct .ct-thumbnail-nav.active {
    border-color: #0062ff;
}

#esign-workspace .ct .ct-thumbnail-image {
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: contain;
    pointer-events: none;
}

#esign-workspace .ct .ct-thumbnail-image canvas {
    max-width: 100%;
}

#esign-workspace .ct .ct-thumbnail-is-selected {
    border-color: #0061d5;
}

#esign-workspace .ct .ct-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    outline: none;
    z-index: 10000;
}

#esign-workspace .ct .ct-content-scroll {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0px 10px;
    text-align: center;
    overflow: auto;
    letter-spacing: normal;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 769px) {
    #esign-workspace .ct .ct-content {
        left: 226px;
    }
}

#esign-workspace .ct .ct-doc-loaded {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0px 10px;
    text-align: center;
    overflow: auto;
    letter-spacing: normal;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

#esign-workspace .ct .ct-doc-loaded canvas {
    margin-top: 10px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

#esign-workspace .preview-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10390;
    overflow: hidden;
    background-color: #f2f2f2;
}

#esign-workspace .preview-overlay .preview-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#esign-workspace .preview-overlay .preview-header {
    height: 60px;
    width: 100%;
    background-color: #fff;
    border-bottom: 2px solid #0062ff;
}

#esign-workspace .preview-overlay .preview-header .ct-header-btn-back {
    height: 58px;
    width: 59px;
    border-right: 1px solid rgba(163, 163, 163, 0.32);
}

#esign-workspace .preview-overlay .preview-body {
    display: flex;
    flex: 1;
}

#esign-workspace .preview-overlay .preview-body .pv {
    display: flex;
    flex: 1;
    flex-direction: column;
}

#esign-workspace .preview-overlay .preview-body .pv .pv-body {
    display: flex;
    flex: 1;
}

#esign-workspace .preview-overlay .preview-body .pv .pv-body .ctpv-container {
    position: relative;
    display: flex;
    flex: 1;
    background-color: #f1f3ff;
}

#esign-workspace .preview-overlay .preview-body .pv .pv-body .ctpv-container .ctpv-content {
    flex: 1;
}

#esign-workspace .preview-overlay .preview-body .pv .pv-body .ctpv-container .ct-thumb-page {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: none;
    flex: 0 0 auto;
    width: 226px;
    border-right: 1px solid #ccc;
    background-color: #f1f3ff;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#esign-workspace .preview-overlay .preview-body .pv .pv-body .ctpv-container .ct-thumb-page .ct-vs {
    flex: 1 0 auto;
    overflow-y: auto;
}

#esign-workspace .preview-overlay .preview-body .pv .pv-body .ctpv-container .ct-thumb-page .ct-vs .ct-vs-list {
    padding-left: 0;
}

#esign-workspace .preview-overlay .preview-body .pv .pv-body .ctpv-container .ct-thumb-page .ct-vs .ct-vs-list .ct-vs-list-item {
    display: flex;
    box-sizing: border-box;
    margin-top: 1rem;
    max-height: 224px;
}

@media (min-width: 769px) {
    #esign-workspace .preview-overlay .preview-body .pv .pv-body .ctpv-container .ct-thumb-page-close, #esign-workspace .preview-overlay .preview-body .pv .pv-body .ctpv-container .ct-thumb-page {
        transform: translateX(-226px);
    }
    #esign-workspace .preview-overlay .preview-body .pv .pv-body .ctpv-container .ct-thumb-page {
        display: flex;
        transform: translateX(0);
    }
}

#esign-workspace .preview-overlay .ct-container {
    position: relative;
    width: 100%;
    min-width: 300px;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-size: 13px;
    border: 0;
    touch-action: manipulation;
}

#esign-workspace .preview-overlay .ct-container .ct-thumb-page {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: none;
    flex: 0 0 auto;
    width: 226px;
    border-right: 1px solid #ccc;
}

#esign-workspace .ctpv-tool-bar {
    display: flex;
    width: auto;
    min-width: 60px;
    max-width: 400px;
    background-color: #fff;
}

#esign-workspace .pv.ct.pv-body-is-small .pv-body {
    position: relative;
}

#esign-workspace .pv.ct.pv-body-is-small .ctpv-tool-bar.ctpv-tool-bar-open{
    position: absolute;
    right: 0;
    z-index: 10000;
}

#esign-workspace  .ctpv-tool-bar.ctpv-tool-bar-open .ctpv-tool-content {
    display: block;
}

@media (min-width: 1200px) {
    #esign-workspace .ctpv-tool-bar {
        max-width: 600px;
    }
}

#esign-workspace .ctpv-tool-bar .ctpv-tool-sidebar {
    justify-content: space-between;
    border-left: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
}

#esign-workspace .ctpv-tool-bar .ctpv-tool-sidebar .ctpv-tabbar {
    display: flex;
    flex: 1 1 100%;
    flex-direction: column;
}

#esign-workspace .ctpv-tool-bar .ctpv-tool-sidebar .ctpv-tabbar .ctpv-main {
    flex: 0 1 auto;
}

#esign-workspace .ctpv-btn {
    cursor: pointer;
}

#esign-workspace .ctpv-tool-bar .ctpv-tool-sidebar .ctpv-tabbar .ctpv-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 59px;
    height: 60px;
    color: #dadada;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #e8e8e8;
    cursor: pointer;
}

#esign-workspace .ctpv-tool-bar .ctpv-tool-sidebar .ctpv-tabbar .ctpv-btn span.material-icons, #esign-workspace .ctpv-tool-bar .ctpv-tool-sidebar .ctpv-tabbar .ctpv-btn span.material-icons-outlined {
    font-size: 20px;
}

#esign-workspace .ctpv-tool-bar .ctpv-tool-sidebar .ctpv-tabbar .ctpv-btn:hover {
    background-color: #f7f7f7;
    color: #333;
}

#esign-workspace .ctpv-tool-bar .ctpv-tool-sidebar .ctpv-tabbar .ctpv-btn.active {
    color: #567df4;
}

#esign-workspace .ctpv-tool-bar .ctpv-tool-sidebar .ctpv-footer {
    display: flex;
    flex: 0 0 60px;
    align-items: center;
    justify-content: center;
}

#esign-workspace .ctpv-tool-bar .ctpv-tool-sidebar .ctpv-footer .ctpv-button-toggle-expand {
    /* height: 24px;
    margin: 0 3px;
    padding: 4px; */
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

#esign-workspace .ctpv-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 59px;
    height: 60px;
    color: #636363;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #e8e8e8;
}

#esign-workspace .ctpv-btn:hover {
    background-color: #f7f7f7;
    color: #333;
}

#esign-workspace .ctpv-tool-bar .ctpv-tool-content {
    position: relative;
    width: 339px;
    margin-left: -1px;
    border-left: 1px solid #e8e8e8;
    display: none;
}

#esign-workspace .hide-sidebar {
    width: 0px;
}

@media (min-width: 1200px) {
    #esign-workspace .ctpv-tool-bar .ctpv-tool-content {
        width: 482px;
    }
}

#esign-workspace .ctpv-tool-bar .ctpv-tool-content .ctpv-content-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: auto;
}

#esign-workspace .ctpv-tool-bar .ctpv-tool-content .ctpv-scroll-content {
    position: relative;
    width: 100%;
    padding: 14px;
}

#esign-workspace .signbox-content {
    width: 100%;
    height: 100%;
    /* padding: 10px;
	 */
    background-color: rgba(0, 0, 255, 0.07);
    color: #333;
}

#esign-workspace .signbox {
    position: relative;
    width: 100%;
    height: 100%;
    display: table;
	/* display: block; */
}

#esign-workspace .signaturebox-text-only {
    display: table-cell;
    height: 100%;
    vertical-align: middle;
    text-align: center;
    /* background-color: rgba(0,0,255,0.07);
	 */
}

#esign-workspace .signaturebox-comment-text-only {
    display: table-cell;
    height: 100%;
    /*    vertical-align: middle;*/
    text-align: left;
    padding-top: 4.5px;
    /* background-color: rgba(0,0,255,0.07);
	 */
}


#esign-workspace .signbox-img-top, #esign-workspace .signbox-img-bg {
    width: 100%;
    height: 100%;
    display: table;
}

#esign-workspace .signbox-img-top div {
    vertical-align: bottom;
    height: 50%;
    text-align: center;
}

#esign-workspace .signbox-image {
    display: table-cell;	
    /* width: 100%;
    height: 100%; */
}

#esign-workspace .signbox-image::before {
    content: " ";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 60%;
    background-size: contain;
    background-repeat: no-repeat;
}

#esign-workspace .signbox-text {
    display: table-cell;
}

#esign-workspace .signaturebox-image-only::before {
    background-size: contain;
    background-repeat: no-repeat;
    background-position-x: center;
    /* content: " ";
	 */
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9990;
    /* opacity: 0.6;
	 */
}

#esign-workspace .signbox-img-bg div {
    height: 100%;
    text-align: center;
    vertical-align: middle;
}

#esign-workspace .signbox-img-bg .signbox-image::before {
    height: 100%;
    opacity: 0.5;
}

#esign-workspace .signaturebox-image-left {
    width: 49%;
    height: 100%;
    float: right;
    display: table;
    vertical-align: middle;
    padding-right: 6px;
}

#esign-workspace .signaturebox-image-left div {
    /* position: relative;
	 */
    display: table-cell;
    height: 100%;
    vertical-align: top;
    /* background-color: rgba(0,0,255,0.07);
	 */
    z-index: 99990;
    text-align: left;
}

#esign-workspace .signaturebox-image-left-img::before {
    background-size: contain;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
    background-position: right !important;
    /*margin-left: -10px;*/
    content: " ";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 48%;
    height: 100%;
    /* z-index: 0;
	 */
    /* opacity: 0.6;
	 */
}

#esign-workspace .select-customer .select-name-cutomner {
    color: #ced4da;
}

#esign-workspace li.select2-results__option:hover .select-customer .select-name-cutomner {
    color: #fff;
}

#esign-workspace .select2-results__option[aria-selected=true] .select-customer .select-name-cutomner {
    color: #333;
}

#esign-workspace .select2-results__option--highlighted[aria-selected=true] .select-customer .select-name-cutomner, #esign-workspace .select2-results__option--highlighted[aria-selected=true]:hover .select-customer .select-name-cutomner {
    color: #fff;
}

#esign-workspace .th_sig_rectangle, #esign-workspace .sig_rectangle {
    display: none;
}

#esign-workspace .ck.ck-sticky-panel .ck-sticky-panel__content_sticky {
    top: 62px !important;
}

#esign-workspace .ct-toolbar-btn {
    display: flex !important;
    align-items: center !important;
}

#esign-workspace .delete-signbox-icon {
    cursor: pointer;
}

#esign-workspace .signbox-img-scr {
    width: 100%;
    height: 100%;
}
#esign-workspace .dragSignature {
    display: table;
    cursor: move;
    min-width: 100px;
}
#esign-workspace .dragSignatureComment {
    display: table;
    cursor: move;
    min-width: 100px;
}
#esign-workspace .checkbox-inside {
    display: flex;
    align-items: center;
}
#esign-workspace .checkbox-inside input {
    margin: 0px;
}
#esign-workspace .checkbox-inside label {
    margin-left: 8px;
    margin-bottom: 0px;
}