﻿.login-form {
    border: 1px solid #000000;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    width: 30rem;
    height: 23rem;
    position: fixed;
    top: 5%;
    left: 5%;
    background-color: rgba( 80, 100, 133, 0.7);
}

#vehicleDetail label, #dealerDetail label, #userDetail label {
    display: inline-block;
    width: 130px;
    height: 18px;
    vertical-align: top;
}

#sidebar {
    background-color: #71b1d1;
    height: 100%;
}

.clickable {
    cursor: pointer;
}

#dealerDetail .panel .heading a {
    padding-right:10px;
}

#dealerDetail .content > table {
    width: 100%;
    table-layout: fixed;
}

#dealerDetail .content table tr:last-child {
    border-bottom: 0px;
}

#dealerDetail .content table td {
    padding: 3px 0 3px 0;
}

#dealerDetail .content table tr td:first-child {
    width: 165px;
}

/* adjustments for a chevron on right end of select field*/
.dropdown-toggle {
    padding: 0;
}

#userDetail .content span {
    display: inline-block;
    width: 200px;
}

/* styling for #logDialog on ScheduledTask page */

#logContent, #loadContent {
    height: 600px;
    width: 1200px;
}

#logContent {
    overflow-y: scroll;
}

#logContent p {
    font-family: monospace;
    font-size: 12px;
    margin: 0;
    padding: 0;
}

#loadContent {
    display: none;
    margin-top: -600px; 
    opacity: 0.75;
    position: relative;
    z-index: 1060;
}

#loadContent > .preloader-metro {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* scrollable table with fixed header */
.header-fixed {
    width: 100% 
}

.header-fixed > thead,
.header-fixed > tbody,
.header-fixed > thead > tr,
.header-fixed > tbody > tr,
.header-fixed > thead > tr > th,
.header-fixed > tbody > tr > td {
    display: block;
}

.header-fixed > tbody > tr:after,
.header-fixed > thead > tr:after {
    content: ' ';
    display: block;
    visibility: hidden;
    clear: both;
}

.header-fixed > tbody {
    overflow-y: scroll;
}

.header-fixed > thead {
    padding-right: 16px;
}

.header-fixed > tbody > tr > td,
.header-fixed > thead > tr > th {
    float: left;
}

/* scrollable table with sticky header */
.sticky-table {
    height: 80vh;
    overflow-x: hidden;
    overflow-y: scroll;
    width: calc(100% + 17px);
}

    .sticky-table table {
        margin: 0;
        table-layout: fixed;
        top: 0px;
        margin-right: 17px;

    }

    .sticky-table thead {
        position: sticky;
        top: 0;
    }

.panel + .panel {
    margin-top: 20px;
}

.panel > .content + .content {
    border-top: 1px solid #999;
}

/* NewsManagementContent */

.gridContainer {
    display: grid;
    grid-template-columns: 1fr 55%;
    gap: 0 4.00vw;
    align-content: flex-start;
    align-items: flex-start;
}
    .editor {
        margin-bottom: 2em;
    }
    .editor > h4 {
        margin: 1.25em 0 0.625rem 0;
    }
    .newsTable {
        overflow: hidden;
    }

    .newsTable div.sticky-table table {
        table-layout: initial;
    }

        .newsTable div.sticky-table table .heading {
            border-bottom: 1px solid #FF0022;
            padding: .625rem 0;
            height: 2.625rem;
            box-shadow: -1px 6px 6px -6px rgba(0,0,0,.35);
        }
            .newsTable div.sticky-table table .heading > span {
                margin-left: .625rem;
                cursor: default;
                font: 500 1.125rem/1.1 "Segoe UI","Open Sans",sans-serif,serif;
            }

    .pad {
        display: block;
        position: relative;
        width: 100%;
        min-height: 10px;
        margin-bottom: 3em;
        background-color: #282830;
    }
        .pad > .heading {
            border-bottom: 1px solid #FF0022;
            padding: .625rem 0;
            height: 2.625rem;
            box-shadow: -1px 6px 6px -6px rgba(0,0,0,.35);
        }

        .pad span, .pad td {
            color: white;
        }
            .pad > .heading > span {
                margin-left: .625rem;
                cursor: default;
                font: 500 1.125rem/1.1 "Segoe UI","Open Sans",sans-serif,serif;
            }

            .pad > .content {
                font-size: .875rem;
                padding: .625rem;
            }

            .pad > .content + .content {
                border-top: 1px solid #999;
            }

        .pad table {
            width: 100%;
        }

            .pad table td {
                padding: 3px 0 3px 0;
            }

.control {
    display: flex;
    gap: 1.00em;
    flex-flow: row wrap;
    justify-content: space-between;
    align-content: center;
    align-items: center;
}

.previewContainer {
    background-color: #E0E0E0;
    padding: 3em 0 3em 0;
}

.illustration > img {
    background-size: cover;
    height: 282px;
    width: 200px;
}

.image > tbody {
    height: 40vh;
}

    .image > tbody > tr > td {
        padding: 0;
        text-align: center;
        vertical-align: middle;
    }

.image .tile {
    flex: 1 1 100px;
    justify-content: space-around;
    max-width: 200px;
    min-height: 100px;
}

    .image .tile input:checked ~ div {
        box-shadow: 0 0 0.6rem 0 red;
    }

    .image .tile img {
        max-height: 10vh;
        max-width: 100%;
    }


table.scrollable.image > tbody > tr > td > label.switch input:focus ~ * {
    color: red;
}

#ImagePlaceholderDialog {
    top: 10%;
    width: 480px;
    left: 50%;
}

    #ImagePlaceholderDialog .box {
        box-shadow: inset 0 0 0 1px #d5d6d8;
        position: relative;
        padding: 1.2em;
        border-radius: 0.3em;
        flex-flow: column wrap;
        min-height: 100px;
        justify-content: space-between;
        align-content: stretch;
        align-items: stretch;
        display: flex;
        background-color: #eff0f0;
        width:460px;
    }

    #ImagePlaceholderDialog .scalecontainer {
        align-content: center;
        align-items: center;
        display: flex;
        justify-content: center;
        margin-left: 0;
        margin-right: 0;
        padding: 1rem;
        background-color: white;
        min-height: 250px;
        width: 100%;
        height: 100%;
        cursor: default;
    }
        #ImagePlaceholderDialog .scalecontainer:hover{
            outline:none;
        }

        #ImagePlaceholderDialog img {
            cursor: default;
        }

    #ImagePlaceholderDialog .slidecontainer > input {
        width: 100%;
        box-shadow: inset 0 0 0 1px rgba(73, 73, 80, 0.2);
        box-sizing: border-box;
        font-size: 1em;
        height: 3em;
        margin: 0;
        padding: 0 1em;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
    }
        #ImagePlaceholderDialog .slidecontainer > p {
            text-align: center;
        }

    #ImagePlaceholderDialog .selection > p {
        text-align: center;
    }
    #ImagePlaceholderDialog .selection > div {
        align-content: center;
        align-items: center;
        display: flex;
        justify-content: center;
    }
    #ImagePlaceholderDialog .switch input[type="radio"] ~ .checkmark {
        border-radius: 100%;
        background-color: #ffffff;
        display: inline-block;
        width: 1.9rem;
        height: 1.9rem;
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3);
        vertical-align: middle;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 80% auto;
    }
    #ImagePlaceholderDialog .switch input:checked ~ .checkmark {
        border-color: #000000;
        box-shadow: inset 0 0 0 2px #282830;
    }
.btn {
    background-color: black;
    color: white;
    border-radius: 0.125em;
    display: inline-block;
    line-height: 1;
    padding: 0.75em 2.00em 1.00em;
    position: relative;
    width: auto;
    margin-right: 1em;
    font-weight: 600;
}
.btn:hover {
    opacity: 50%;
}
.filters > .filterrow {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1em;
}
.filters > .filterrow > label {
    margin-right: 1em;
}
.filters > .filterrow > label > input {
    margin-left: 0.5em;
}
.customer-tables-wrapper {
    display: flex;
    gap: 2.5em;
    align-items: flex-start;
    margin-top: 1em;
}

.customer-table-box {
    flex: 1;
    min-width: 300px;
}

.customer-table-box table {
    border-collapse: collapse;
    overflow-x: auto;
}

.customer-table-box th,
.customer-table-box td {
    padding: 0.5em 1em;
    border: 1px solid #ccc;

}

.customer-table-box .btn {
    margin-top: 0.5em;
    display: inline-block;
}

.customer-table-header {
    display: flex;
    gap: 1em;
    align-items: center;
    margin-bottom: 0.5em;
}

#customerTable tbody td:hover,
.vehicle-row {
    cursor: pointer;
}

.container {
    width: 100%;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}


.section {
    margin-bottom: 40px;
}

    .section h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        color: #444;
        border-left: 4px solid #FF0022;
        padding-left: 10px;
    }


.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.95rem;
}

    .data-table th,
    .data-table td {
        border: 1px solid #ddd;
        padding: 10px 12px;
        text-align: left;
        white-space: nowrap;
    }

    .data-table th {
        background: #FF0022;
        color: #fff;
        font-weight: 600;
    }

    .data-table tr:nth-child(even) {
        background: #f9f9f9;
    }

    .data-table tr:hover {
        background: #eef6ff;
    }


button,
.btn-danger {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-danger {
    background: #e63946;
    color: #fff;
    transition: background 0.2s;
}

.btn-danger:hover {
   background: #c71c2c;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.popup-content {
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    color: #666;
}

.popup-close:hover {
    color: #000;
}

.popup-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}
.btn-secondary {
    background: #ddd;
    color: #333;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

    .btn-secondary:hover {
        background: #bbb;
    }