﻿@font-face {
    font-family: 'Lalezar';
    src: url('https://khorshidneshan.ir/CDN/Fonts/Lalezar.eot');
    src: local('☺'), url('https://khorshidneshan.ir/CDN/Fonts/Lalezar.woff') format('woff'), url('https://khorshidneshan.ir/CDN/Fonts/Lalezar.ttf') format('truetype');
}

/*start modal style*/
.modalDialog {
    position: fixed;
    top: 60%;
    left: 0;
    transform: translateY(-50%);
    z-index: 4;
    opacity: 0;
    -webkit-transition: opacity 400ms ease-in;
    -moz-transition: opacity 400ms ease-in;
    transition: opacity 400ms ease-in;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

    .modalDialog:target {
        opacity: 1;
        pointer-events: auto;
    }

    .modalDialog > div {
        width: 60%;
        position: relative;
        margin: 0 30% 0 0;
        padding: 5px 20px 13px 20px;
        border-radius: 10px;
        background: #ffffff;
        box-shadow: 0 0 14px #4646468a;
        color: #000;
        box-sizing: border-box;
        max-height: 82%;
        overflow: hidden;
        border-top: none !important;
    }

    .modalDialog p {
        display: inline-block;
        width: 90%;
        vertical-align: middle;
    }

    /*.modalDialog img, .modalDialog input[type=image] {
        width: 30px;
        cursor: pointer;
    }

    .modalDialog img {
        position: absolute;
        right: 3px;
        top: 6px;
    }*/

    .modalDialog .modalClose {
        position: absolute;
        right: 3px;
        top: 6px;
        width: 30px;
        cursor: pointer;
    }

    .modalDialog h3 {
        margin: 30px 5px 0;
    }

    .modalDialog table {
        border: 1px solid;
    }

        .modalDialog table tbody {
            display: flex;
            flex-wrap: wrap;
        }

            .modalDialog table tbody tr:not(.modalDialog tr:first-child) {
                width: 25%;
                text-align: center;
                border-left: 1px solid #787878;
                border-bottom: 1px solid #787878;
                box-sizing: border-box;
            }

            .modalDialog table tbody tr td {
                border: none;
                padding: 6px;
                display: block;
            }

        .modalDialog table tr:first-child {
            width: 100%;
        }

    .modalDialog th {
        display: block;
    }

.modalDialog {
    right: 0;
    width: auto;
}

    .modalDialog table tbody tr {
        width: 33.3%;
    }

    .modalDialog fieldset {
        border: 1px solid #c9c9c9;
        border-radius: 5px;
        margin: 10px 0;
        /*max-height: 70vh;
        overflow: auto;*/
    }

    .modalDialog legend {
        padding-bottom: 5px;
    }

    .modalDialog fieldset .popupEnterExitImages {
        max-height: 70vh;
        overflow: auto;
    }

    .modalDialog .fullName {
        padding-left: 5px;
        font-weight: bold;
    }

    .modalDialog .mobile {
        padding-right: 5px;
    }

    .modalDialog .popupEnterExitImages div {
        display: inline-block;
        vertical-align: top;
    }

/*.modalDialog .popupEnterExitImages .repImg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }*/
/*end modal style*/

fieldset {
    border: 1px solid #000;
    border-radius: 5px;
}

.repImages .repImg {
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 23%;
    padding: 2px;
    box-sizing: border-box
}

    .repImages .repImg img {
        display: block;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }

.repImages input {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    padding: 2px;
    background-color: #fff;
    border-top-right-radius: 5px;
}

.loader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #686868;
    width: 15px;
    height: 15px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

span.spanFooter {
    color: #f00;
}

/*all car orders*/
.search-panel {
    width: 20%;
    margin-bottom: 10px;
}

.orderList {
    display: flex;
    flex-wrap: wrap;
}

.carOrder-box {
    width: calc(25% - 10px);
    position: relative;
    z-index: 0;
    margin: 5px;
    overflow: hidden;
    min-height: 250px;
    border-radius: 10px;
}

    .carOrder-box > div {
        box-shadow: 0 0 10px #39393921;
        transition: .5s;
        padding: 10px;
        box-sizing: border-box;
        margin: 4px;
        border-radius: 10px;
        min-height: 250px;
        height: calc(100% - 8px);
    }

    .carOrder-box .backImage {
        height: 30vh;
    }

        .carOrder-box .backImage img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 10px;
            border-bottom: 1px solid #ddd;
            box-sizing: border-box;
        }

    .carOrder-box > div div {
        padding: 2px;
        color: #000;
        box-sizing: border-box;
    }

    .carOrder-box .text > div {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        overflow: hidden;
    }

    .carOrder-box .product, .carOrder-box .product span {
        font-size: 18px;
        font-family: Lalezar;
        color: #ffb118;
        transition: .8s;
    }

    .carOrder-box .selled {
        width: 70%;
        font-size: 30px;
        top: 50%;
        text-align: center;
        margin: 0 auto;
        display: inline-block;
        color: red;
        font-weight: bolder;
        position: absolute;
        left: 0;
        right: 0
    }

        .carOrder-box .selled img {
            width: 100%;
            height: 100%;
            display: block;
        }

    .carOrder-box:hover .product, .carOrder-box:hover .product span {
        color: #3e1f05;
    }

    .carOrder-box input {
        float: left;
    }

    .carOrder-box .more {
        text-align: left;
    }

        .carOrder-box .more a {
            display: inline-block;
            color: #fff;
            background-color: #180000;
            padding: 8px 12px;
            border-radius: 5px;
            margin: 5px 0;
            font-weight: bold;
            transition: .5s;
            box-sizing: border-box;
            text-align: center;
        }

        .carOrder-box .more:hover a {
            background: #773e0f;
        }

.big .productD {
    text-align: center;
    font-size: 18px;
    font-family: Lalezar;
    color: #ffb118;
}

    .big .productD span {
        font-size: 18px;
        font-family: Lalezar;
        color: #3e1f05 !important;
    }

.repImg.openFile {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #b7aaa2a1;
    z-index: 1;
    right: 0;
    top: 60px;
    width: 100%;
}

    .repImg.openFile .fileImage {
        position: fixed;
        top: 62px;
        bottom: 0;
        left: 100px;
        right: 100px;
        z-index: 2;
        overflow: auto;
    }

    .repImg.openFile img {
        margin: auto;
        animation: openImage .5s;
        object-fit: contain;
        max-width: 100%;
        width: auto;
    }

.repImages .icons {
    position: fixed;
    bottom: 58%;
    top: 15%;
    left: 10px;
    background-color: #fff;
    text-align: center;
    z-index: 2;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    padding: 5px;
    border-radius: 4px;
    display: none;
}

.repImages .repImg.openFile ~ .icons {
    display: flex;
}

.repImages .icons img {
    width: 25px;
    left: 10px;
    display: block;
    cursor: pointer;
}

@keyframes openImage {
    0% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}

header a.webSiteLink {
    float: left;
    margin: 20px;
    color: #3e1f04;
}

    header a.webSiteLink img {
        width: 8px;
        vertical-align: middle;
        filter: invert(1);
    }

.allCarOrder {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
}

.boldNumber {
    font-weight: bold;
    color: red !important;
}

.reportSum {
    margin: 20px 0;
    border-right: 6px solid #5099f9;
    border-radius: 0 5px 5px 0;
}

    .reportSum div {
        padding: 5px;
    }

.enamed {
    position: fixed;
    left: 25px;
    bottom: 10px;
    background-color: #fcdfba;
    border-radius: 5px;
    padding: 5px;
    box-sizing: border-box;
    z-index: 1;
}

    .enamed img {
        width: 64px;
        display: block;
    }

@media only screen and (max-width: 768px) and (min-width: 0) {
    .modalDialog > div {
        width: 100%;
        margin: auto;
        max-height: 80%;
    }

    .repImages .repImg {
        width: 100%;
    }

    .search-panel, .carOrder-box {
        width: 100%;
    }

    .repImg.openFile .fileImage {
        right: 0;
        left: 0;
    }

    .repImages .icons {
        bottom: 10px;
        left: 10%;
        right: 10%;
        flex-direction: row-reverse;
        top: unset;
    }

    header a.webSiteLink {
        margin: -15px 5px 5px;
    }

    .enamed {
        position: unset;
        width: fit-content;
        margin: 10px auto;
    }

    .carOrder-box .selled {
        top: 35%;
    }
}
