﻿.tab-wrap {
    padding-bottom: 22px;
    padding-top: 12px;
    display: block;
    overflow-y: hidden;
}


/* most of these styles are used for the image viewer
     it's a real hack-job of a modal turned into something like a light box but 
     with buttons, too.
 */
.nav-button {
    margin-top: 20px;
}

#vin_scan_btn .material-icons {
    vertical-align: text-bottom;
}

#vin_search_icon, .search-icon {
    position: absolute;
    right: 14px;
    top: 13px;
    cursor: pointer;
}

.error-label {
    margin-top: -5px;
}


.thumb-wrap {
    padding-bottom: 20px;
    max-height: 400px;
    margin-top: auto;
    height: 400px;
}

.select-wrapper input.select-dropdown {
    z-index: 0;
}

.photo-button.col {
    padding: 0 0.3rem;
}

.photo-button .col {
    padding: 0 0.3rem;
}

.photo-button img {
    object-fit: contain;
    object-position: center;
    max-width: 100%;
    max-height: 100%;
    margin-left: auto;
    margin-right: auto;
}

.fullsize {
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
    margin: auto;
}



.modal.picture-modal {
    margin-top: -4%;
    max-height: 98%;
    height: 95%;
    width: 95%;
}

.picture-wrap {
    height: inherit;
    width: inherit;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    padding-bottom: 110px;
}

.picture-comment {
    padding: 40px;
    width: 80%;
    margin: auto;
    position: absolute;
    bottom: 10px;
}

.photo-container {
    margin-top: 15px;
    margin-bottom: 15px;
    min-height: 200px;
}


#divFiles {
    padding-top: 10px;
    display: table;
}

.attachment {
    border: solid #333 1px;
    padding: 10px;
    margin: 10px;
    font-size: 14px;
}

    .attachment .col {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .attachment img {
        max-height: 70px;
        object-fit: cover;
    }

@media only screen and (max-width: 500px) {
    .attachment img {
        max-height: 30px;
    }
}

@media only screen and (max-width: 1000px) {
    .attachment img {
        max-height: 50px;
    }
}

.vin {
    letter-spacing: 2px;
    text-transform: uppercase;
}

#coverage_disclaimer_modal.modal {
    max-height: 90%;
}

.modal .material-icons {
    vertical-align: middle;
    font-size: 36px;
    margin: 0 10px;
}

.modal .modal-content {
    padding: 20px 20px 5px;
}

.valign-wrapper h5 {
    margin: 10px 5px;
}

p {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 14px;
}

#rwVehicleNumber {
    margin-top: auto;
    margin-bottom: auto;
}

#btnVehicleMinus, #btnVehiclePlus {
    width: 30px;
    height: 30px;
    font-size: 25px;
    line-height: 25px;
}

    #btnVehicleMinus span {
        margin-left: -4px;
        line-height: 25px;
    }

    #btnVehiclePlus span {
        margin-left: -6px;
        line-height: 28px;
    }

#other_vehicles_switch {
    width: 20px;
    text-align: right;
    margin: 0 9px;
}

textarea#comments {
    min-height: 250px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type=number] {
    -moz-appearance: textfield; /* Firefox */
}

@media only screen and (max-width:900px) {

    .modal.picture-modal {
        margin-top: -7%;
    }
}


@media only screen and (max-width: 600px) {

    .inner-body {
        width: 100%;
    }

    .tab-wrap {
        width: 85%;
        margin: auto;
    }

    .modal.picture-modal {
        /*overflow-y:hidden;*/
        margin-top: -15%;
        max-height: 97%;
    }

    .picture-wrap {
        margin-top: 10px;
        padding-bottom: 100px;
    }


    .thumb-wrap {
        height: 160px;
        width: 100%;
        padding-bottom: 10px;
    }

    .photo-button img {
        height: inherit;
        width: inherit;
        object-fit: cover;
        margin: auto;
    }

    .picture-comment {
        bottom: 0px;
        padding: 10px;
    }

        .picture-comment .row {
            margin-bottom: 10px;
            margin-top: -10px;
        }

        .picture-comment .input-field {
            margin-top: 10px;
            margin-bottom: 10px;
        }

    .fullsize {
        max-height: 100%;
    }

    .modal {
        width: 90%;
    }

        .modal .modal-content {
            padding: 16px;
        }
}

@media only screen and (max-width: 350px) {
    .modal {
        margin-top: -10%;
    }

        .modal .modal-content {
            padding: 16px 16px 4px;
        }

            .modal .modal-content p {
                font-size: 12px;
            }
}


@media only screen and (max-height: 400px) {


    .modal.picture-modal {
        /*overflow-y:hidden;*/
        margin-top: -4%;
    }


    .picture-wrap {
        margin-top: 5px;
        padding-bottom: 100px;
    }

    .fullsize {
        /*max-height:60%;*/
    }

    .picture-comment {
        bottom: 0px;
    }

        .picture-comment .row {
            margin-bottom: 10px;
            margin-top: -10px;
        }

        .picture-comment .input-field {
            margin-top: 10px;
            margin-bottom: 10px;
        }

    .modal {
        width: 95%;
        margin-top: -4%;
    }

        .modal .modal-content {
            padding: 16px;
        }

            .modal .modal-content p {
                font-size: 12px;
            }

        .modal .modal-content {
            padding: 16px 16px 4px;
        }
}
