﻿* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body {
}


/*                                                        page and table                                                            */

.dts-pagination {
}

    .dts-pagination .page-item {
        padding: 2px 4px;
        min-width: 28px;
    }

        .dts-pagination .page-item.active {
            background-color: cadetblue;
        }

.dts-table-root {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .dts-table-root .dts-table-content {
        /*min-width:460px;*/
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        background-color: #484646;
        padding: 0px 4px;
    }

.dts-table-content .dts-table-head {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: start;
    align-items: center;
    background: #e6e6e6;
    box-sizing: border-box;
    transform: translateY(3px);
}

    .dts-table-content .dts-table-head .dts-table-dth {
        border-bottom: 1px solid #000;
        border-left: 1px solid #000;
        border-top: 1px solid #000;
        padding: 4px 4px;
        vertical-align: middle;
        text-align: center;
        margin: 0px;
        font-weight: bold;
    }

        .dts-table-content .dts-table-head .dts-table-dth:first-child {
            border-top-left-radius: 4px;
        }

        .dts-table-content .dts-table-head .dts-table-dth:last-child {
            border-top-right-radius: 4px;
            border-right: 1px solid #000;
        }

.dts-pagination-table {
    display: flex;
    justify-content: end;
}

.dts-table {
    width: 100%;
    box-sizing: border-box;
    border-spacing: 0;
    background-color: #fff;
}

    .dts-table thead {
    }

        .dts-table thead tr th {
            background: #e6e6e6;
            height: 0px;
        }

    .dts-table th .dtstable-col-title {
        height: 0px;
    }

.dtstable-col-title {
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.dts-table-body {
    background-color: #fff;
}

    .dts-table-body.has-scroll-height {
        overflow-x: hidden;
        overflow-y: auto;
        width: 100%;
    }

.dts-table thead tr th {
    font-weight: bold;
}

.dts-table tbody tr td {
    border-bottom: 1px solid #000;
    border-right: 1px solid #000;
    border-top: 1px solid #000;
    padding: 4px 4px;
    vertical-align: middle;
    text-align: center;
}

    .dts-table tbody tr td input[type="checkbox"] {
        height: 18px;
        width: 18px;
    }

    .dts-table tbody tr td:first-child {
        border-left: 1px solid #000;
    }

.dts-table tbody tr td {
    cursor: pointer;
}

.dts-table tbody tr.has-focus-row.row-selected {
    background-color: #77acc3;
    color: #fff;
}

.dts-table thead tr th:last-child,
.dts-table tbody tr td:last-child {
    border-right: 1px solid #000;
}

.dts-table-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    flex-wrap: wrap;
}

    .dts-table-toolbar .dts-table-toolbar-content {
        display: flex;
        justify-content: start;
        flex-wrap: wrap;
        gap: 4px;
    }

.dts-table-search-form {
    min-width: 40%;
    display: flex;
    justify-content: end;
    gap: 4px;
}

    .dts-table-search-form input {
        padding: 4px 8px;
        border-radius: 4px;
    }


/*                                                        end page and table                                                            */


/*                                                             combobox                                                           */

.dts-root-control {
    width: 100%;
    min-height: 40px;
}

.dts-combobox {
    border: 1px solid #cccbcb;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    background-color: rgb(255 255 255);
    position: relative;
}

    .dts-combobox::before {
        content: '';
        display: block;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        height: 28px;
        width: 28px;
        background-image: url(./images/icon_down_up.png);
        background-repeat: no-repeat;
        background-size: 50%;
        z-index: 10;
        background-color: transparent;
        pointer-events: none;
        background-position-x: right;
        background-position-y: center;
    }

    .dts-combobox.view::before {
        content: '';
        display: none;
    }

    .dts-combobox::after {
        content: '';
        display: none;
    }

    .dts-combobox.view::after {
        content: '';
        display: block;
        position: absolute;
        right: 0px;
        top: 50%;
        transform: translateY(-50%) rotate(180deg);
        height: 28px;
        width: 28px;
        background-image: url(./images/icon_down_up.png);
        background-repeat: no-repeat;
        background-size: 50%;
        z-index: 10;
        background-color: transparent;
        pointer-events: none;
        background-position-x: right;
        background-position-y: center;
    }

.dts-combobox-container {
    box-sizing: border-box;
    display: inline-block;
    margin: 0;
    position: relative;
    vertical-align: middle;
}

.dts-combobox-container--default {
    width: 100% !important;
    transition: all 1s;
}

.dts-combobox-frame-view {
    display: block;
    background-color: white;
    border: 1px solid #aaa;
    border-radius: 4px;
    box-sizing: border-box;
    display: block;
    position: absolute;
    left: -100000px;
    width: 100%;
    z-index: 1051;
}

.dts-combobox-container--below {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.dts-combobox-dropdown {
    left: 0;
}

.dts-combobox-items {
    max-height: 200px;
    overflow-y: auto;
    padding: 4px 12px;
    scroll-behavior: auto;
}

    .dts-combobox-items .dts-combobox-item {
        padding: 4px 0px;
        border-bottom: 1px solid #c5c3c3;
        cursor: pointer;
    }

.dts-combobox-search {
    padding: 4px;
}

.dts-combobox-search--dropdown {
    display: block;
}

.dts-combobox-search--field {
    padding: 4px 12px;
    width: 100%;
    box-sizing: border-box;
}

.dts-combobox-items .dts-combobox-item-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    font-style: italic;
    pointer-events: none;
}

.dts-combobox-display {
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: calc(100% - 18px);
    pointer-events: none;
    position: relative;
}

.buttonFilterClean {
    cursor: pointer;
    margin-left: 4px;
}

.dts-combobox-item.item-selected {
    background-color: rgb(139, 207, 252);
    padding: 4px;
}


/*                                                            end combobox                                                           */


/********************                        file Upload                                                                                */

.dts-root-control .dts-uploadcontrol {
    min-height: 100px;
    width: 100%;
    background-color: #6a6a6ac9;
    border-radius: 4px;
    border: 1px solid #000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 4px;
    font-size: 1rem;
}

    .dts-root-control .dts-uploadcontrol .dts-uploadcontrol-inputform {
        display: flex;
        justify-content: flex-start;
        width: 100%;
        height: auto;
    }

.dts-uploadcontrol-button {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 5px;
    cursor: pointer;
    color: #fff;
    font-size: 1rem;
    align-items: center;
}

.dts-span-download {
    content: url(./images/file_download.png);
    height: 28px;
}

.dts-span-upload {
    content: url(./images/file_upload.png);
    height: 28px;
}

.dts-span-toolbar {
    content: url(./images/file_toolbar.png);
    height: 24px;
}

.dts-span-fileremove {
    content: url(./images/file_remove.png);
    height: 28px;
}

.dts-span-fileview {
    content: url(./images/file_view.png);
    height: 28px;
}

.dts-span-close {
    content: url(./images/close.png);
    height: 28px;
}

.dts-flex {
    display: flex;
    width: 100%;
}

.dts-flex-center {
    justify-content: center;
}

.dts-uploadcontrol-fileshow {
    width: 100%;
    min-height: 28px;
    background-color: #fff;
    padding: 6px 0px;
}

.dts-fileshow-items {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 2px;
}

.dts-fileshow-item {
    background-color: rgba(0, 0, 0, 0.535);
    width: 100%;
    min-height: 40px;
    border-radius: 4px;
    display: flex;
    justify-content: flex-start;
    gap: 4px;
}

    .dts-fileshow-item .itemshow-toolbar {
        position: relative;
        width: 52px;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        padding: 4px;
    }

        .dts-fileshow-item .itemshow-toolbar::after {
            content: '';
            display: block;
            height: 100%;
            background-color: #fff;
            width: 2px;
        }

.dts-dropdown-button {
    background-color: transparent;
    color: white;
    padding: 2px;
    border: none;
    cursor: pointer;
}

.dts-dropdown-content {
    display: none;
    position: absolute;
    left: 50%;
    top: 80%;
    background-color: #fff;
    min-width: 60px;
    width: auto;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 2);
    padding: 8px 8px;
    z-index: 1;
    border-radius: 4px;
}

    .dts-dropdown-button:hover ~ .dts-dropdown-content,
    .dts-dropdown-content:hover {
        display: block;
    }

    .dts-dropdown-content .dts-button {
        display: flex;
        justify-content: start;
        align-items: center;
        gap: 4px;
        padding: 0px 4px;
        margin-top: 4px;
        background-color: transparent;
        border: none;
        cursor: pointer;
    }

        .dts-dropdown-content .dts-button span.span-icon {
            height: 20px;
        }

.itemshow-fileinfo {
    color: #fff;
    padding: 4px 8px;
    width: calc(100% - 120px);
}

    .itemshow-fileinfo .file-info-name label {
        width: 100%;
        font-weight: bold;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        position: relative;
        display: inline-block;
    }

.file-info-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

    .file-info-toolbar p {
        font-size: 0.8rem;
        font-style: italic;
    }

.dts-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1052;
    width: 100vw;
    height: 100vh;
    background-color: #00000099;
}

    .dts-modal-backdrop.show {
        display: block;
    }

.dts-modal {
    display: block;
    position: fixed;
    z-index: 1055;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0, 4);
}

.dts-modal-content {
    background-color: #fefefe;
    margin: 2.85em auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 8px;
}


.dts-modal-body .row {
    display: flex;
}

.dts-modal-body .scroll-height {
    overflow: hidden;
    overflow-y: auto;
    min-height: 200px;
    height: 80%;
}

.dts-modal-content.position-modal-top {
    margin: 0px auto 2.85em auto;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-top-color: #ffffff;
}

.dts-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.dts-button-modal {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.dts-modal-body {
    min-height: 120px;
}

.dts-modal-footer {
    min-height: 40px;
}


/********************                       end  file Upload                                                                                */

.input-search {
    height: 36px;
    width: 100%;
    border-color: #d3d3d300;
    outline: none;
    border-radius: 4px;
    padding: 4px 12px;
}

    .input-search:focus {
        outline: none;
        border-color: #d3d3d300;
    }

.chatbutton {
    background-color: transparent;
}

    .chatbutton:active,
    .chatbutton:visited,
    .chatbutton::selection,
    .chatbutton:focus {
        border-color: transparent;
        outline: none;
    }

    .chatbutton.button-chat-home {
        background-image: url("./images/chatButtonHome.png");
        background-repeat: no-repeat;
        background-size: 40px;
        background-position: center;
        height: 40px;
        width: 40px;
        border-color: transparent;
        outline: none;
    }

    .chatbutton.button-add-message {
        background-image: url("./images/chatButtonAddMessage.png");
        background-repeat: no-repeat;
        background-size: 28px;
        background-position: center;
        height: 28px;
        width: 28px;
        border-color: transparent;
        outline: none;
    }

    .chatbutton.button-add-group {
        background-image: url("./images/chatButtonAddGroup.png");
        background-repeat: no-repeat;
        background-size: 28px;
        background-position: center;
        height: 28px;
        width: 28px;
        border-color: transparent;
        outline: none;
    }

    .chatbutton.button-toggle-danhba {
        background-image: url("./images/chatButtonDanhBa.png");
        background-repeat: no-repeat;
        background-size: 28px;
        background-position: center;
        height: 28px;
        width: 28px;
        border-color: transparent;
        outline: none;
    }

.dts-chat-frame-manager-modal {
    display: block;
    position: fixed;
    z-index: 1055;
    left: 0;
    top: 0;
    width: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0, 4);
    height: 100%;
    overflow-y: hidden;
}

.dts-chat-frame-manager {
    background-color: #fefefe;
    margin: 2.85em auto;
    padding: 0px;
    border: 1px solid #888;
    width: 90%;
    height: 90%;
    border-radius: 4px;
    min-height: 40vh;
}

.dts-chat-frame-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .dts-chat-frame-content .frame-chat-header {
        height: 40px;
        background-color: #046d5d;
        border-radius: 4px 4px 0px 0px;
        display: flex;
        justify-content: end;
        gap: 4px;
        padding: 4px 12px;
        position: relative;
    }

        .dts-chat-frame-content .frame-chat-header .button-close {
            height: 32px;
            width: 32px;
            position: absolute;
            right: 4px;
            top: 50%;
            transform: translateY(-50%);
            background-image: url(./images/close.png);
            background-repeat: no-repeat;
            background-position: center;
            background-size: cover;
            background-color: transparent;
            outline: none;
            border-color: transparent;
        }

    .dts-chat-frame-content .frame-chat-body {
        display: flex;
        justify-content: start;
        flex-wrap: nowrap;
        height: calc(100% - 40px - 40px);
        min-height: 300px;
        flex: 2 0 auto;
        position: relative;
    }

.frame-chat-body .chat-process-loading {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #b1a89e96;
    cursor: progress;
}

.chat-process-loading .process-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 12px 16px;
    border-radius: 20%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

    .chat-process-loading .process-text p {
        text-align: center;
    }

.dts-chat-frame-content .frame-chat-body .panel-chat-list {
    flex: 1 1 33%;
    background-color: ghostwhite;
    padding: 20px 0px 4px 0px;
    border-right: 2px solid #00000045;
    display: flex;
    justify-content: start;
    gap: 8px;
    flex-direction: column;
}

.search-chat-list {
}

    .search-chat-list input.input-chat-search {
        height: 36px;
        border-radius: 4px;
        border-color: transparent;
        width: 100%;
        padding: 4px 12px;
    }

        .search-chat-list input.input-chat-search:focus {
            border-color: transparent;
        }

.panel-chat-list .chat-list-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .panel-chat-list .chat-list-content::-webkit-scrollbar {
        display: none;
    }

    .panel-chat-list .chat-list-content .chat-list-item {
        border-bottom: 1px solid lightgray;
        cursor: pointer;
        padding: 12px 8px;
    }

        .panel-chat-list .chat-list-content .chat-list-item.active {
            background-color: cadetblue;
            color: #fff;
        }

        .panel-chat-list .chat-list-content .chat-list-item .chat-list-item-content {
            display: flex;
            justify-content: start;
            gap: 8px;
            align-items: center;
        }

            .panel-chat-list .chat-list-content .chat-list-item .chat-list-item-content .content-message-image {
                height: 52px;
                width: 52px;
                border-radius: 50%;
                background-color: burlywood;
                display: flex;
                justify-content: center;
                align-items: center;
            }

                .panel-chat-list .chat-list-content .chat-list-item .chat-list-item-content .content-message-image img {
                    height: 48px;
                }

            .panel-chat-list .chat-list-content .chat-list-item .chat-list-item-content .content-message-sub {
                display: flex;
                justify-content: space-between;
                gap: 4px;
                flex: 2 1 auto;
            }

                .panel-chat-list .chat-list-content .chat-list-item .chat-list-item-content .content-message-sub .m-last {
                    max-width: 112px;
                    text-overflow: ellipsis;
                    overflow: hidden;
                    white-space: nowrap;
                }

                .panel-chat-list .chat-list-content .chat-list-item .chat-list-item-content .content-message-sub .info-it-mess {
                    display: flex;
                    flex-direction: column;
                    align-items: end;
                }

.chat-list-item-content .content-message-sub .info-it-mess .badge-count-message {
    background-color: #046d5d;
    padding: 2px 8px;
    border-color: #04352d;
    border-radius: 8px;
    color: #ffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

.dts-chat-frame-content .frame-chat-body .panel-chat-content {
    flex: 2 1 66%;
    background-color: lightgray;
    padding: 16px 12px 64px 12px;
    position: relative;
}

.frame-chat-body .panel-chat-content .box-chat-send-toolbar {
    background-color: #fff;
    min-height: 48px;
    position: absolute;
    bottom: 18px;
    left: 50%;
    width: 80%;
    transform: translateX(-50%);
    border-radius: 4px;
    filter: drop-shadow(0.35rem 0.35rem 0.4rem rgba(0, 0, 0, 0.5));
    padding: 8px;
    display: flex;
    justify-content: start;
    align-items: center;
    transition: display linear 2s;
}

.box-chat-send-toolbar .input-message-send {
    flex: 2 1 auto;
}

    .box-chat-send-toolbar .input-message-send textarea {
        width: 100%;
        height: 36px;
        padding: 4px 12px;
        outline: none;
        border-radius: 10px;
        border-color: transparent;
    }

.box-chat-send-toolbar .button-ghim-image {
    background-image: url(./images/iconbuttonimageadd.png);
    background-size: contain;
    height: 28px;
    width: 47px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border-radius: 4px;
    border-color: #19b79f;
    outline: none;
    cursor: pointer;
}

.box-chat-send-toolbar .button-send-message {
    background-image: url(./images/iconbuttonsend.png);
    background-size: contain;
    height: 28px;
    width: 47px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border-radius: 4px;
    border-color: #19b79f;
    outline: none;
    cursor: pointer;
}

.panel-chat-content .chat-message-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: start;
    justify-content: start;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 20px;
    height: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .panel-chat-content .chat-message-items::-webkit-scrollbar {
        display: none;
    }

    .panel-chat-content .chat-message-items .chat-message-item {
        display: flex;
        gap: 4px;
        align-items: start;
        width: 100%;
    }

        .panel-chat-content .chat-message-items .chat-message-item .chat-message-user img {
            height: 40px;
            width: 40px;
        }

        .panel-chat-content .chat-message-items .chat-message-item.message-receive {
            justify-content: start;
        }

        .panel-chat-content .chat-message-items .chat-message-item.message-send {
            justify-content: end;
        }

        .panel-chat-content .chat-message-items .chat-message-item .chat-message-content {
        }

            .panel-chat-content .chat-message-items .chat-message-item .chat-message-content .message-chat-ct-view {
                border: 1px solid #ffffff;
                padding: 4px 12px;
                border-radius: 8px;
                background-color: #fff;
            }

                .panel-chat-content .chat-message-items .chat-message-item .chat-message-content .message-chat-ct-view.type-text {
                }

                .panel-chat-content .chat-message-items .chat-message-item .chat-message-content .message-chat-ct-view.type-image img {
                    max-height: 360px;
                    max-width: 360px;
                }

.fr-user-ol {
    margin: 0px 12px;
    display: flex;
    justify-content: start;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.user-chat-items {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: start;
    justify-content: space-evenly;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 20px;
    height: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
}

    .user-chat-items::-webkit-scrollbar {
        display: none;
    }

    .user-chat-items .user-chat-item {
        border: 1px solid #0000006e;
        max-width: 190px;
        background-color: #fff;
        border-radius: 4px;
        padding: 4px 8px;
        flex: 1 1 auto;
        min-height: 180px;
        display: flex;
        flex-direction: column;
    }

        .user-chat-items .user-chat-item .user-chat-item-content {
            display: flex;
            gap: 4px;
            flex: 1 1 auto;
        }

            .user-chat-items .user-chat-item .user-chat-item-content .user-chat-info {
            }

                .user-chat-items .user-chat-item .user-chat-item-content .user-chat-info div strong {
                    font-size: 1.1rem;
                }

        .user-chat-items .user-chat-item .user-chat-item-toolbar {
            display: flex;
            justify-items: center;
            justify-content: center;
            gap: 4px;
        }

.btn-toggle-danhba {
    position: absolute;
    height: 48px;
    width: 48px;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    background-color: #000200e3;
    padding: 8px 8px;
    display: flex;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    z-index: 1;
    display: none;
}

#dts-chat-dom-root {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    background-image: url(./images/chatButtonModal.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;



}

@media (max-width: 768px) {
    .dts-chat-frame-manager {
        position: relative;
    }

    .btn-toggle-danhba {
        display: flex;
    }

    .dts-chat-frame-content .frame-chat-body {
        flex-direction: column;
        transition: all 1s;
    }

    .fr-user-ol {
        position: sticky;
        top: 0px;
        width: 100%;
        left: 0px;
        background-color: #fff;
        color: #000;
        margin: 0px;
    }

    .frame-chat-body {
        overflow: auto;
        overflow-x: hidden;
        scrollbar-width: none;
    }

        .frame-chat-body::-webkit-scrollbar {
            display: none;
        }

    .dts-chat-frame-content .frame-chat-body .panel-chat-list {
        width: 100%;
        display: none;
    }

    .dts-chat-frame-content .frame-chat-body .panel-chat-content {
        width: 100%;
    }
}


/*controll + layout*/

.dts-formlayout {
    border: 1px solid #000;
    min-height: 80px;
    border-radius: 4px;
    padding: 12px 8px;
    overflow-y: auto;
    overflow-x: hidden;
}

    .dts-formlayout .row .frm-checkbox {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        flex-wrap: nowrap;
        align-items: center;
    }

.has-childcontent {
    position: relative !important;
}

    .has-childcontent .row {
        margin-left: 16px;
    }

        .has-childcontent .row .col-md-12 {
            display: inline-block;
        }

    .has-childcontent::before {
        content: '';
        display: block;
        width: 2px;
        height: 100%;
        background-color: rgba(163, 163, 163, 0.384);
        position: absolute;
        top: 50%;
        left: 20px;
        transform: translateY(-50%);
    }

.dts-control-base {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
}

    .dts-control-base .dts-control-caption {
    }

        .dts-control-base .dts-control-caption label,
        .label-for-parent {
            font-size: 1.25rem;
            font-weight: bold;
        }

.label-for-parent {
    margin: 4px 0px;
    text-transform: capitalize;
}

.dts-group-editor {
    margin-top: 4px;
    position: relative;
    min-height: 24px;
}

    .dts-group-editor::after {
        content: '';
        display: inline-block;
        top: 55%;
        left: 0px;
        width: 100%;
        height: 1px;
        z-index: 14;
        position: absolute;
        background-color: #7d7c7c;
        transform: translateY(-60%);
    }

    .dts-group-editor label {
        position: absolute;
        top: 48%;
        left: 12px;
        background-color: #fff;
        z-index: 20;
        transform: translateY(-50%);
        text-transform: uppercase;
    }

.dts-control-base .dts-control-caption.isrequied label {
    color: rgb(187, 22, 0);
}

.dts-control-base .dts-control-content {
    width: 100%;
}

.dts-control-checkbox {
    height: 20px;
    width: 20px;
}

.dts-control-base.form-checkbox {
    margin-top: 6px;
    margin-bottom: 6px;
    flex-direction: row-reverse;
    justify-content: start;
    align-items: center;
    gap: 4px;
}

    .dts-control-base.form-checkbox .dts-control-content {
        width: auto;
    }

.dts-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}




@media (prefers-reduced-motion: reduce) {
    .dts-control {
        transition: none;
    }
}

.dts-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.dts-control::-webkit-date-and-time-value {
    height: 1.5em;
}

.dts-control::-moz-placeholder {
    color: #6c757d;
    opacity: 1;
}

.dts-control::placeholder {
    color: #6c757d;
    opacity: 1;
}

.dts-control:disabled,
.dts-control[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}

.dts-control::-webkit-file-upload-button {
    padding: 0.375rem 0.75rem;
    margin: -0.375rem -0.75rem;
    -webkit-margin-end: 0.75rem;
    margin-inline-end: 0.75rem;
    color: #212529;
    background-color: #e9ecef;
    pointer-events: none;
    border-color: inherit;
    border-style: solid;
    border-width: 0;
    border-inline-end-width: 1px;
    border-radius: 0;
    -webkit-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.dts-control::file-selector-button {
    padding: 0.375rem 0.75rem;
    margin: -0.375rem -0.75rem;
    -webkit-margin-end: 0.75rem;
    margin-inline-end: 0.75rem;
    color: #212529;
    background-color: #e9ecef;
    pointer-events: none;
    border-color: inherit;
    border-style: solid;
    border-width: 0;
    border-inline-end-width: 1px;
    border-radius: 0;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .dts-control::-webkit-file-upload-button {
        -webkit-transition: none;
        transition: none;
    }

    .dts-control::file-selector-button {
        transition: none;
    }
}

.dts-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button {
    background-color: #dde0e3;
}

.dts-control:hover:not(:disabled):not([readonly])::file-selector-button {
    background-color: #dde0e3;
}

.dts-control::-webkit-file-upload-button {
    padding: 0.375rem 0.75rem;
    margin: -0.375rem -0.75rem;
    -webkit-margin-end: 0.75rem;
    margin-inline-end: 0.75rem;
    color: #212529;
    background-color: #e9ecef;
    pointer-events: none;
    border-color: inherit;
    border-style: solid;
    border-width: 0;
    border-inline-end-width: 1px;
    border-radius: 0;
    -webkit-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .dts-control::-webkit-file-upload-button {
        -webkit-transition: none;
        transition: none;
    }
}

.dts-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button {
    background-color: #dde0e3;
}

textarea.dts-control {
    min-height: calc(1.5em + 0.75rem + 2px);
}

.dts-control-select {
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    -moz-padding-start: calc(0.75rem - 3px);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

@media (prefers-reduced-motion: reduce) {
    .dts-control-select {
        transition: none;
    }
}

.dts-control-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.dts-control-select[multiple],
.dts-control-select[size]:not([size="1"]) {
    padding-right: 0.75rem;
    background-image: none;
}

.dts-control-select:disabled {
    background-color: #e9ecef;
}

.dts-control-select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #212529;
}


.dts-viewport-layout {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1052;
    width: 100vw;
    height: 100vh;
    background-color: #00000099;
}

    .dts-viewport-layout.show {
        display: block;
    }

.dts-viewport-dialog {
    position: relative;
    width: auto;
    margin: 12px;
    padding: 0;
    pointer-events: none;
}

.dts-viewport-layout.fade .dts-viewport-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.dts-viewport-layout.show .dts-viewport-dialog {
    transform: none;
}

.dts-viewport-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
}

.dts-viewport-header {
    min-height: 40px;
    width: 100%;
    background-color: rgb(36, 82, 104);
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}

    .dts-viewport-header .div-viewport-toolbar {
        padding: 0;
        display: flex;
        justify-content: flex-end;
        gap: 4px;
    }

.dts-viewport-layout .btn-image {
    padding: 0.5rem 0.5rem;
    margin: 0px;
    background-repeat: no-repeat;
    background-size: 24px;
    background-position: center;
    height: 28px;
    width: 28px;
    border-color: transparent;
    outline: none;
    border-radius: 0.3rem;
    cursor: pointer;
}

.btn-image:active {
    background-size: 20px;
}

.div-button-close {
    margin: -0.5rem -0.5rem -0.5rem 0px;
}

.btn-image.btn-close {
    background-image: url("./images/close.png");
}

.btn-image.btn-signature {
    background-image: url("./images/viewportButtonSignature.png");
}

.btn-image.btn-download-signature {
    background-image: url("./images/file_download.png");
}

.btn-image.btn-settings-signature {
    background-image: url("./images/buttonCogs.png");
}

.btn-image.btn-download-pdf {
    background-image: url("./images/buttonDownloadPDF.png");
}

.btn-image.button-download {
    background-image: url("./images/file_download.png");
}

.btn-image.button-save {
    background-image: url("./images/buttonSave.png");
}

.btn-image.button-reload {
    background-image: url("./images/buttonReload.png");
}

.viewport-toolbar {
    min-width: 100px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

    .viewport-toolbar .info-viewport {
        min-width: 100px;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 4px;
    }

        .viewport-toolbar .info-viewport button {
            padding: 0.2rem 0.5rem;
        }

    .viewport-toolbar label {
        border: 1px solid #fff;
        padding: 0.2rem 0.5rem;
        border-radius: 0.3rem;
        color: #fff;
    }

.dts-viewport-body {
    overflow-y: auto;
    overflow-x: auto;
    scrollbar-width: none;
    display: flex;
    justify-content: center;
    align-items: start;
    position: relative;
}

    .dts-viewport-body::-webkit-scrollbar {
        display: none;
    }

    .dts-viewport-body canvas {
        border: 1px solid #9e9c9c;
        border-bottom: none;
        border-top: none;
    }

.box-settings-signature {
    min-height: 80px;
    background-color: #9e9c9c;
    z-index: 20;
    position: fixed;
    box-shadow: 4px 3px 20px 5px #c9c6c6;
    border-bottom-right-radius: 0.2rem;
    border-bottom-left-radius: 0.2rem;
    transition: all 4s ease-out;
    left: 50%;
    padding: 4px 12px 20px 12px;
    transform: translateX(-50%);
}

@media screen and (max-width:790px) {
    .div-note-toolbar {
        display: none;
    }
}

@media screen and (max-width:460px) {
    .dts-viewport-header {
        flex-wrap: wrap;
    }

    .viewport-toolbar {
        flex-wrap: wrap;
        height: auto;
    }
}
