﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

/* Dropzon */
.dropzone, .dropzone * {
    box-sizing: border-box
}

.dropzone {
    min-height: 150px;
    border-radius: 5px;
    padding: 20px 20px
}

    .dropzone.dz-clickable {
        cursor: pointer
    }

        .dropzone.dz-clickable * {
            cursor: default
        }

        .dropzone.dz-clickable .dz-message, .dropzone.dz-clickable .dz-message * {
            cursor: pointer
        }

    .dropzone.dz-started .dz-message {
        display: none
    }

    .dropzone .dz-message span {
        font-family: 'Poppins', sans-serif;
        font-size: 16px;
        color: #818998;
    }

    .dropzone.dz-drag-hover {
        border-style: solid
    }

        .dropzone.dz-drag-hover .dz-message {
            opacity: .5
        }

    .dropzone .dz-message {
        text-align: center;
        margin: 2em 0
    }

        .dropzone .dz-message .dz-button {
            background: none;
            color: inherit;
            border: none;
            padding: 0;
            font: inherit;
            cursor: pointer;
            outline: inherit
        }

    .dropzone .dz-preview {
        position: relative;
        display: inline-block;
        vertical-align: top;
        margin: 16px;
        min-height: 100px
    }

        .dropzone .dz-preview:hover {
            z-index: 1000
        }

            .dropzone .dz-preview:hover .dz-details {
                opacity: 1
            }

        .dropzone .dz-preview.dz-file-preview .dz-image {
            border-radius: 20px;
            background: #999;
            background: linear-gradient(to bottom, #eee, #ddd)
        }

        .dropzone .dz-preview.dz-file-preview .dz-details {
            opacity: 1
        }

        .dropzone .dz-preview.dz-image-preview {
            background: #fff
        }

            .dropzone .dz-preview.dz-image-preview .dz-details {
                transition: opacity .2s linear
            }

        .dropzone .dz-preview .dz-remove {
            font-size: 14px;
            text-align: center;
            display: block;
            cursor: pointer;
            border: none
        }

            .dropzone .dz-preview .dz-remove:hover {
                text-decoration: underline
            }

        .dropzone .dz-preview:hover .dz-details {
            opacity: 1
        }

        .dropzone .dz-preview .dz-details {
            z-index: 20;
            position: absolute;
            top: 0;
            left: 0;
            opacity: 0;
            font-size: 13px;
            min-width: 100%;
            max-width: 100%;
            padding: 2em 1em;
            text-align: center;
            color: rgba(0,0,0,.9);
            line-height: 150%
        }

            .dropzone .dz-preview .dz-details .dz-size {
                margin-bottom: 1em;
                font-size: 16px
            }

            .dropzone .dz-preview .dz-details .dz-filename {
                white-space: nowrap
            }

                .dropzone .dz-preview .dz-details .dz-filename:hover span {
                    border: 1px solid rgba(200,200,200,.8);
                    background-color: rgba(255,255,255,.8)
                }

                .dropzone .dz-preview .dz-details .dz-filename:not(:hover) {
                    overflow: hidden;
                    text-overflow: ellipsis
                }

                    .dropzone .dz-preview .dz-details .dz-filename:not(:hover) span {
                        border: 1px solid transparent
                    }

                .dropzone .dz-preview .dz-details .dz-filename span, .dropzone .dz-preview .dz-details .dz-size span {
                    background-color: rgba(255,255,255,.4);
                    padding: 0 .4em;
                    border-radius: 3px;
                }


        .dropzone .dz-preview:hover .dz-image img {
            transform: scale(1.05, 1.05);
            filter: blur(8px)
        }

        .dropzone .dz-preview .dz-image {
            border-radius: 20px;
            overflow: hidden;
            width: 120px;
            height: 120px;
            position: relative;
            display: block;
            z-index: 10
        }

            .dropzone .dz-preview .dz-image img {
                display: block
            }

        .dropzone .dz-preview.dz-success .dz-success-mark {
            animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1)
        }

        .dropzone .dz-preview.dz-error .dz-error-mark {
            opacity: 1;
            animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1)
        }

        .dropzone .dz-preview .dz-success-mark, .dropzone .dz-preview .dz-error-mark {
            pointer-events: none;
            opacity: 0;
            z-index: 500;
            position: absolute;
            display: block;
            top: 50%;
            left: 50%;
            margin-left: -27px;
            margin-top: -27px;
            background: rgba(0,0,0,.8);
            border-radius: 50%
        }

            .dropzone .dz-preview .dz-success-mark svg, .dropzone .dz-preview .dz-error-mark svg {
                display: block;
                width: 54px;
                height: 54px;
                fill: #fff
            }

        .dropzone .dz-preview.dz-processing .dz-progress {
            opacity: 1;
            transition: all .2s linear
        }

        .dropzone .dz-preview.dz-complete .dz-progress {
            opacity: 0;
            transition: opacity .4s ease-in
        }

        .dropzone .dz-preview:not(.dz-processing) .dz-progress {
            animation: pulse 6s ease infinite
        }

        .dropzone .dz-preview .dz-progress {
            opacity: 1;
            z-index: 1000;
            pointer-events: none;
            position: absolute;
            height: 20px;
            top: 50%;
            margin-top: -10px;
            left: 15%;
            right: 15%;
            border: 3px solid rgba(0,0,0,.8);
            background: rgba(0,0,0,.8);
            border-radius: 10px;
            overflow: hidden
        }

            .dropzone .dz-preview .dz-progress .dz-upload {
                background: #fff;
                display: block;
                position: relative;
                height: 100%;
                width: 0;
                transition: width 300ms ease-in-out;
                border-radius: 17px
            }

        .dropzone .dz-preview.dz-error .dz-error-message {
            display: block
        }

        .dropzone .dz-preview.dz-error:hover .dz-error-message {
            opacity: 1;
            pointer-events: auto
        }

        .dropzone .dz-preview .dz-error-message {
            pointer-events: none;
            z-index: 1000;
            position: absolute;
            display: block;
            display: none;
            opacity: 0;
            transition: opacity .3s ease;
            border-radius: 8px;
            font-size: 13px;
            top: 130px;
            left: -10px;
            width: 140px;
            background: #b10606;
            padding: .5em 1em;
            color: #fff
        }

            .dropzone .dz-preview .dz-error-message:after {
                content: "";
                position: absolute;
                top: -6px;
                left: 64px;
                width: 0;
                height: 0;
                border-left: 6px solid transparent;
                border-right: 6px solid transparent;
                border-bottom: 6px solid #b10606
            }

    /* End - Dropzone*/

    /*Business Tools - Cards*/
    .card-container {
        perspective: 1000px;
        width: 85mm;
        height: 55mm;
        margin: 50px auto;
    }

.card-inner {
    position: relative;
    width: 85mm;
    height: 55mm;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card-container.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back-preview {
    position: absolute;
    width: 100%;
    height: 100%;
}

.card-front, .card-back {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-front {
    font-size: 24px;
    font-weight: bold;
    padding: 10mm;
}

.card-back-preview {
    transform: rotateY(180deg);
    border-radius: 8px;
}

.card-front-preview {
    border-radius: 8px;
}

.card-back {
    text-align: left;
    font-size: 12px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.qr-code {
    width: 90px;
    height: 90px;
}

.card-info {
    flex-grow: 1;
    padding-left: 10px;
}

@media print {
    @page {
        size: A4;
        margin: 0;
    }

    body * {
        visibility: hidden;
    }

    #card-pdf, #card-pdf * {
        visibility: visible !important;
    }

    #card-pdf {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        z-index: 9999;
    }

    .card-container {
        width: 85mm;
        height: 55mm;
        margin: 30mm auto;
        box-shadow: none !important;
        page-break-after: always;
    }

    .card-inner {
        transform: none !important;
    }

    .card-front,
    .card-back {
        position: relative !important;
        transform: none !important;
        display: flex !important;
    }

    .no-print {
        display: none !important;
    }
}

.card-pdf {
    margin: 10px auto;
}

.pdf-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.svg-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.svg-bg-preview svg {
    border-radius: 8px;
}

.front-side,
.back-side {
    display: grid;
    grid-template-columns: 2% 96% 2%;
    grid-template-rows: 4% 92% 4%;
    overflow: hidden;
    box-shadow: 2px 5px 15px 0px #17161694;
    background-color: #122529;
    padding: 0;
}

.pdf-preview.front-side, .pdf-preview.back-side {
    position: relative;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(3, 150px);
    grid-template-rows: repeat(8, 50px);
    grid-gap: 8px;
    width: 150px;
    height: 400px;
    transform: rotate(-45deg);
    margin-top: 345px;
    margin-left: -50px;
}

.black {
    background-color: var(--template2-first-color);
    grid-column: 2 / span 2;
    grid-row: 1 / span 3;
}

.red1 {
    background-color: var(--template2-second-color);
    grid-row: 2 / span 5;
}

.red2 {
    background-color: var(--template2-third-color);
    grid-column: 2 / span 2;
    grid-row: 4/7;
}

.green {
    background-color: var(--template2-fourth-color);
    grid-column: 2/4;
    grid-row: 7/9;
}

.general-info-grid {
    display: grid;
    grid-template-columns: 0px 1fr 10px 1fr 30px;
    grid-template-rows: 10px 1fr 25px 1fr 1fr;
    gap: 10px;
    width: 100%;
    height: 100%;
    align-items: start;
}

    .general-info-grid .name {
        grid-column: 2 / span 3;
        grid-row: 2;
        font-size: 1.2em;
        position: relative;
        z-index: 2;
    }

    .general-info-grid .general-qrcode-area {
        grid-column: 2;
        grid-row: 3;
        display: flex;
        justify-content: center;
        align-items: start;
        position: relative;
        z-index: 2;
    }

    .general-info-grid .general-details-area {
        grid-column: 3 / span 3;
        grid-row: 3;
        font-size: 0.85rem;
        line-height: 1.4;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        z-index: 2;
    }

        .general-info-grid .general-details-area p {
            font-size: 0.700rem;
            line-height: 0.8rem;
        }

.info-grid {
    grid-column: 2/3;
    grid-row: 2/3;
    z-index: 2;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.363);
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.432);
    border-radius: 6px;
    font-size: 0.7rem; /*12px;*/
    display: grid;
    grid-template-columns: 15px 1fr 1fr 1fr 1fr 15px;
    grid-template-rows: 1fr 15px 1fr 1fr;
    line-height: 1px;
    position: relative;
}
    .info-grid .name {
        grid-column: 2 / span 4;
        grid-row: 1 / span 1;
        font-size: 1.2em;
        letter-spacing: .1rem;
        margin-top: 8px;
    }

        .info-grid .name h5 {
            font-weight: unset;
        }

    .info-grid .qrcode-area {
        grid-column: 2 / span 1;
        grid-row: 3;
        padding: 0;
    }

    .info-grid .details-area {
        grid-column: 3 / span 3;
        grid-row: 3;
        text-align: end;
    }

        .info-grid .details-area p {
            font-size: 0.700rem;
            line-height: 0.8rem;
        }

.front-side .name-tag {
    grid-column: 1 / span 4;
    grid-row: 2 / span 1;
    align-self: center;
    z-index: 2;
    width: 100%;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.363);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.288);
    font-size: 0.6rem; /*12px;*/
    letter-spacing: .1rem;
    text-align: center;
}

.name-tag h1, h3 {
    margin: 2px;
    font-weight: unset;
}
/*End - Business Tools - Cards*/

/*Contact - Messages*/
.email-wrapper .mail-list-container .mail-list {
    background: #e6e9ed;
}

    .email-wrapper .mail-list-container .mail-list.mail-focus {
        background: aliceblue;
    }

    .email-wrapper .mail-list-container .mail-list.new_mail {
        background: white;
        font-weight: bold;
    }

    .email-wrapper .mail-list-container .mail-list .content{
        width: 100%;
    }

.mail-list-container {
    border-right: 1px solid #c9ccd7;
    border-left: 0 !important;
}

.mail-list-container-without-messages {
    border-right: 0;
    border-left: 0 !important;
    padding-bottom: 1.5rem !important;
}

.email-wrapper .mail-list-container .mail-list:last-child {
    border-bottom: 1px solid #c9ccd7;
}

.email-wrapper {
    border: 1px solid #c9ccd7;
}
/*End - Contect - Messages*/

/*Autocomplete list*/
.ui-autocomplete {
    background-color: white;
    border: 1px solid #ced4da;
    max-height: 200px;
    overflow-y: auto;
    font-size: 14px;
    z-index: 1050;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border-radius: 4px;
    list-style: none !important;
    padding-left: 0;
    box-sizing: border-box;
}

.ui-menu-item-wrapper {
    padding: 8px 12px;
    cursor: pointer;
}

    .ui-menu-item-wrapper:hover {
        background-color: #f1f1f1;
    }
/*End - Autocomplete list*/

/*Loader*/
#global-loader .loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#global-loader .only-main-panel {
    z-index: 10;
}

#global-loader .loader-message-container {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 10px;
    color: #333;
    border-radius: 10px;
}
/*End - Loader*/

/*Help*/
.section-help-button {
    color: white;
}

    .section-help-button:hover {
        color: #6c7383;
    }

.section-help-gray-button {
    color: #a3a4a5;
}

    .section-help-gray-button:hover {
        color: #898b8c;
    }
/*End - Help*/