﻿

html, body {
    scroll-behavior: smooth;
}
form {
    height: 100%;
}

#loader {
    position: fixed;
    display: grid;
    align-content: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: white;
    top: 0px;
    left: 0px;
    z-index: 999;
}


.sk-folding-cube {
    margin: 20px auto;
    width: 25px;
    height: 25px;
    position: relative;
    -webkit-transform: rotateZ(45deg);
    transform: rotateZ(45deg);
}

    .sk-folding-cube .sk-cube {
        float: left;
        width: 50%;
        height: 50%;
        position: relative;
        -webkit-transform: scale(1.1);
        -ms-transform: scale(1.1);
        transform: scale(1.1);
    }

        .sk-folding-cube .sk-cube:before{
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            -webkit-animation: sk-foldCubeAngle 2.4s infinite linear both;
            animation: sk-foldCubeAngle 2.4s infinite linear both;
            -webkit-transform-origin: 100% 100%;
            -ms-transform-origin: 100% 100%;
            transform-origin: 100% 100%;
        }

        .sk-folding-cube .sk-cube:nth-child(-n+2):before {
            background-color: #999999;
            
        }

        .sk-folding-cube .sk-cube:nth-child(n+3):before {
            background-color: #006599;
        }

    .sk-folding-cube .sk-cube2 {
        -webkit-transform: scale(1.1) rotateZ(90deg);
        transform: scale(1.1) rotateZ(90deg);
    }

    .sk-folding-cube .sk-cube3 {
        -webkit-transform: scale(1.1) rotateZ(180deg);
        transform: scale(1.1) rotateZ(180deg);
    }

    .sk-folding-cube .sk-cube4 {
        -webkit-transform: scale(1.1) rotateZ(270deg);
        transform: scale(1.1) rotateZ(270deg);
    }

    .sk-folding-cube .sk-cube2:before {
        -webkit-animation-delay: 0.3s;
        animation-delay: 0.3s;
    }

    .sk-folding-cube .sk-cube3:before {
        -webkit-animation-delay: 0.6s;
        animation-delay: 0.6s;
    }

    .sk-folding-cube .sk-cube4:before {
        -webkit-animation-delay: 0.9s;
        animation-delay: 0.9s;
    }

@-webkit-keyframes sk-foldCubeAngle {
    0%, 10% {
        -webkit-transform: perspective(140px) rotateX(-180deg);
        transform: perspective(140px) rotateX(-180deg);
        opacity: 0;
    }

    25%, 75% {
        -webkit-transform: perspective(140px) rotateX(0deg);
        transform: perspective(140px) rotateX(0deg);
        opacity: 1;
    }

    90%, 100% {
        -webkit-transform: perspective(140px) rotateY(180deg);
        transform: perspective(140px) rotateY(180deg);
        opacity: 0;
    }
}

@keyframes sk-foldCubeAngle {
    0%, 10% {
        -webkit-transform: perspective(140px) rotateX(-180deg);
        transform: perspective(140px) rotateX(-180deg);
        opacity: 0;
    }

    25%, 75% {
        -webkit-transform: perspective(140px) rotateX(0deg);
        transform: perspective(140px) rotateX(0deg);
        opacity: 1;
    }

    90%, 100% {
        -webkit-transform: perspective(140px) rotateY(180deg);
        transform: perspective(140px) rotateY(180deg);
        opacity: 0;
    }
}

.text-ellipsis {
    overflow-x: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


.form-control input[type=radio] + label {
    margin-left: 1rem;
}


.phone {
    height: 50px;
    width: 100px;
    border: 3px solid white;
    border-radius: 10px;
    animation: rotate 1.5s ease-in-out infinite alternate;
}

.signature-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    touch-action: none;
}

.message {
    color: white;
    font-size: 1em;
    margin-top: 40px;
}

.portrait-container {
    display: flex;
    width: 100%;
    height: 100%;
    background-color: black;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg)
    }

    50% {
        transform: rotate(-90deg)
    }

    100% {
        transform: rotate(-90deg)
    }
}

@media only screen and (max-width: 824px) and (orientation: landscape) {
    .portrait-container {
        display: none;
    }

    .landscape-container {
        display: block;
        background-color: white;
        top: 0;
        left: 0;
        position: relative;
        width: 100%;
        height: 100%;
    }
}

@media only screen and (max-width: 824px) and (orientation: portrait) {
    .portrait-container {
        display: flex;
    }

    .landscape-container {
        display: none;
    }
}

.landscape-left {
    float: left;
    width: 90%;
    height: 100%;
}

    .landscape-left
    canvas {
        left: 5%;
        top: 5%;
        position: relative;
        width: 90%;
        height: 90%;
        border: 1px solid #212529;
    }

.landscape-right {
    padding: 4px;
    float: left;
    width: 10%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

    .landscape-right button {
        width: 100%;
        height: 47%;
    }

.sign-help-overlay {
    left: 5%;
    top: 5%;
    position: fixed;
    width: 80%;
    height: 90%;
}

    .sign-help-overlay .help-text {
        position: absolute;
        left: 10%;
        width: 80%;
        bottom: 20%;
        border-top: 1px solid #000;
    }



.digit-group input {
    width: 30px !important;
    height: 50px !important;
    background-color: #18182a !important;
    border: none !important;
    line-height: 50px !important;
    text-align: center !important;
    font-size: 24px !important;
    font-family: 'Raleway', sans-serif;
    font-weight: 200 !important;
    color: white !important;
    margin: 0 2px !important;
    padding: 0 !important;
}

.digit-group .splitter {
    padding: 0 5px;
    color: #18182a !important;
    font-size: 30px;
}

#overlay-container {
    touch-action: none;
}


/*extra breakpoints for better mobile support*/
@media(max-width:411px) {
    html,body {
        font-size:11px !important;
    }
}

@media(max-width:320px) {
    html, body {
        font-size: 9px !important;
    }
}

.user-initials {
    font-size: 3.5rem !important;
    font-weight: 900 !important;
}

.image-input.image-input-outline .image-input-wrapper {
    background-size: contain;
    background-position: center;
}

.content {
    background:#f8f8ff;
}


.img-loader .spinner:before {
    left: -0.75rem;
}

.note-editable {
    background-color: white;
}

.dataTables_info {
    overflow-x:hidden;
    white-space:normal !important;
}

.select2-hidden {
    display: none !important;
}

.color-info {
    color: #03a9f4;
}

.color-danger {
    color: #F64E60;
}

.color-warning {
    color: #FFA800;
}

.input-action-icon {
    position: absolute;
    bottom: 0px;
    right: 5px;
    padding: 1rem 0.4rem;
    cursor: pointer;
}

i.copy-input-text:hover {
    color: #3b5998;
}

.template-section {
    
}

.general-datakey {
    padding-right: 2rem;
}



.template-section {
    border: dashed 1px #9e9e9e;
}

.template-section .section-title {
    color: #fff;
}

#section-container .step-card {
    width: 20rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
}

.template-actions button {
    padding: 0;
    background-color: transparent;
    border: 0;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1;
    text-shadow: 0 1px 0 #ffffff;
}

.section-title {
    text-align: left;
}
.section-title-type {
    color: #ffffffa3;
}

.template-actions i {
    color: white;
}

.step-files [data-action="robot"] {
    position: absolute;
    right: -10px;
    top: -10px;
}


/* inner modal support | dominic alvarez */
.inner-modal {
    z-index: 1052 !important;
}

    /*.inner-modal .select2-container {
        z-index: 1053 !important;
    }*/

/*.modal-backdrop:nth-child(even) {
    z-index: 1051 !important;
}*/


/* Request Template Styles*/

.script-context-menu {
    display: none;
    z-index: 9999;
    position: absolute;
    overflow: hidden;
    border: 1px solid #ccc;
    white-space: nowrap;
    font-family: sans-serif;
    background: #fff;
    color: #333;
    border-radius: 5px;
    padding: 0;
}

    .script-context-menu li {
        padding: 8px 12px;
        cursor: pointer;
        list-style-type: none;
        transition: all .3s ease;
    }

        .script-context-menu li:hover {
            background-color: #DEF;
        }

/* .card.step-card {
            cursor: url(https://shopify.github.io/draggable/assets/img/cursor-drag.png),auto;
        }

        .step-card.draggable-source--is-dragging {
            cursor: url(https://shopify.github.io/draggable/assets/img/cursor-drag-clicked.png),auto;
        }
*/
#condition-container {
    padding: 1rem;
    /*border: 1px solid #dcc896;
    background: rgba(250,240,210,.5);*/
}

.condition-group-header {
    margin-bottom: 10px;
}

    .condition-group-header .group-conditions input[name$='_cond'] {
        border: 0;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
        white-space: nowrap;
    }

.condition-group-container {
    position: relative;
    margin: 0.4rem 0;
    border-radius: 5px;
    padding: 1rem;
    color: white;
    border: 1px solid #ccc;
    background-color: #1da1f2;
}

.condition-list {
    list-style: none;
    padding: 0 15px 0 15px;
    margin: 0;
}

    .condition-list > :first-child::before {
        top: -12px;
        height: calc(50% + 14px);
    }

    .condition-list > :last-child::before {
        border-radius: 0 0 0 4px;
    }

    .condition-list > :last-child::after {
        display: none
    }

    .condition-list > ::before {
        top: -4px;
        border-width: 0 0 2px 2px;
    }

    .condition-list > ::before {
        top: -4px;
        border-width: 0 0 2px 2px;
    }

    .condition-list > ::after, .condition-list > ::before {
        content: '';
        position: absolute;
        left: -10px;
        width: 10px;
        height: calc(50% + 4px);
        border-color: #ccc;
        border-style: solid;
    }

    .condition-list > ::after {
        top: 50%;
        border-width: 0 0 0 2px;
    }

.condition-container {
    position: relative;
    margin: 4px 0;
    border-radius: 5px;
    padding: 5px;
    border: 1px solid #3b5998b3;
    background-color: #3b5998;
}

.condition-group-container .btn-group .btn {
    padding: 0.4rem 0.4rem !important;
}

.condition-group-footer {
    display:flex;
    margin: 0.5rem 0;
}

/*fix modal overlay*/
.select2-container + .modal-backdrop.fade.show {
    z-index: 1053;
}

.modal-backdrop.fade.show + .select2-container {
    z-index: 1053;
}

.select2-container {
    z-index: 96;
}

.file-list {
    display: flex;
}
    /*files input list*/
    .file-list .file-list-item {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        padding: 0.5rem 1rem;
        background-color: #F3F6F9;
        margin-top: 0.75rem;
        border-radius: 0.85rem;
        max-width: 100%;
    }

        .file-list .file-list-item a {
            text-overflow: ellipsis;
            max-width: 100%;
            overflow-x: hidden;
        }


        .file-list .file-list-item .file-list-label {
            font-weight: 500;
            color: #7E8299;
            white-space: nowrap;
        }

        .file-list .file-list-item .file-list-remove {
            cursor: pointer;
            margin-left: 1rem;
        }

            .file-list .file-list-item .file-list-remove i {
                -webkit-transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
                transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
                transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
                transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, -webkit-box-shadow 0.15s ease;
                color: #f44336;
                font-size: 1rem;
            }

            .file-list .file-list-item .file-list-remove:hover i {
                -webkit-transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
                transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
                transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
                transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, -webkit-box-shadow 0.15s ease;
                color: #F64E60;
            }

.ui-menu-item-wrapper {
    display: flex;
}

    .ui-menu-item-wrapper.ui-state-active span .user-fullname {
        color: #FFFFFF !important;
    }

    .ui-menu-item-wrapper.ui-state-active span .user-email {
        color: #ffffff91 !important;
    }

.ui-menu-item:not(:last-child) {
    border-bottom: solid 1px #dedede !important;
}

.ui-menu-item-wrapper.ui-state-active {
    background: #3b5998;
    border-color: #3b5998;
}