﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    --overlay-darken: rgba(0,0,0,0.3);
    --overlay-darken-slight: rgba(0,0,0,0.1);
    --vehicle-3d-view-height: 30vh;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #222;
    padding: 10px;
    margin: 1px;
    border-top: 1px #00F584 solid;
    border-left: 0px;
    border-right: 0px;
    border-bottom: 0px;
}

    .btn-primary:hover {
        background-color: #111;
    }

    .btn-primary:active {
        background-color: #111;
    }

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border: 1px solid white;
    padding: 10px;
    margin: 1px;
}

.btn-warning {
    color: black;
    background-color: #ffc107;
    border: none;
    padding: 10px;
    margin: 1px;
}

.btn-success {
    color: #fff;
    background-color: #28a745;
    border: none;
    padding: 10px;
    margin: 1px;
}

.btn-info {
    color: #fff;
    background-color: #17a2b8;
    border: none;
    padding: 10px;
    margin: 1px;
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border: none;
    padding: 10px;
    margin: 1px;
}

.btn-delete {
    color: red;
    border-color: red;
    padding: 10px;
    margin: 1px;
}

.btn-smaller {
    padding: 5px;
}

.hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #88989b;
    margin: 1em 0;
    padding: 0;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.network-indicator {
    height: 3px;
    font-size: 0;
    line-height: 0;
}

.network-indicator-circle {
    width: 15px;
    height: 15px;
    margin-right: 15px;
    border-radius: 50%;
    display: inline-block;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar {
    
}



    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 2.5rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

    .sidebar .nav-button {
        color: #d7d7d7;
        border-radius: 4px;
        border:none;
        background:none;
        height: 3rem;
        width: 100%;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

        .sidebar .nav-button:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }

        .sidebar .nav-button:active, .nav-button:focus {
            outline:none;
        }

.nav-menu {
    height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-menu::-webkit-scrollbar {
    width: 5px;
}

.nav-menu::-webkit-scrollbar-track {
    background: transparent;
}

    .nav-menu::-webkit-scrollbar-thumb {
        background-color: #00F584;
        border-radius: 10px;
    }

.dropdown-menu {
    position: relative;
    display: inline-block;
    border:none;
}

.dropdown-menu-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    padding: 12px 16px;
    z-index: 1;
}

.dropdown-menu-content .btn-primary {
    width:300px;
}

.dropdown-menu:hover .dropdown-menu-content {
    display: block;
}

.templateSelector {
    font-size: 1.5em;
    min-width: 300px;
    max-height: 80vh;
}

.content {
    padding-top: 1.1rem;
    font-size: 0.9rem;
    line-height: 1;
    margin-bottom:40px;
}

    .content p {
        margin-bottom: 0.3rem;
    }

.formlist-row:hover {
    cursor: pointer;
    background-color: #f7f7f7;
}

.singleFieldSectionToggle p:first-child {
    cursor: pointer;
    height: 45px;
    line-height: 42px;
    padding-left: 10px;
    color: white !important;
    background-color: #212121;
}

.singleFieldSectionToggle p:first-child span {
    font-weight: normal !important;
}

.subform-header {
    cursor: pointer;
    height: 45px;
    padding-left: 10px;
    color: white;
    background-color: #212121;
    font-weight: normal;
    border-top: 1px #00F584 solid;
}

    .subform-header table {
        table-layout: fixed;
    }

    .subform-header td {
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }

    .subform-header button {
        border-color: white;
        padding-right: 10px;
    }

.subform-header-swblue {
    color: white;
    background-color: #8586f8;
    border-top:none;
}

.subform-header-grey {
    color: white;
    background-color: #6c757d;
    border-top: none;
}

.subform-header-white {
    padding-left: 0px;
    color: black;
    background-color: white;
    font-weight: bold;
    border-top: none;
}

.subform-footer {
    cursor: pointer;
    height: 45px;
    line-height: 42px;
    padding-left: 10px;
    color: white;
    background-color: #6c757d;
}

    .subform-footer table {
        table-layout: fixed;
    }

    .subform-footer td {
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }

    .subform-footer button {
        border-color: white;
        padding-right: 10px;
    }

.section-body {
    padding: 0.01em 16px;
    border: 1px solid #ccc;
    margin-bottom: 25px;
}

.form-field {
    font-weight: bold;
}

.form-field-readonly {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
}

.form-field-vehicleparts {
    padding-top: 20px;
    padding-bottom: 15px;
    padding-left: 10px;
}

.form-table tr td {
    vertical-align: top;
}

.form-content-radio{
    width:initial !important;
    padding: 12px 20px;
    margin-bottom: 0.5rem;
}

.form-content-check {
    padding: unset !important;
    padding-left: 10px;
    margin-bottom: 0.5rem;
}

.chkboxLayout > p ~ p {
    display: grid;
    grid-template-columns: 50px auto;
    align-items: center;
}

input[type='checkbox'] {
    -webkit-appearance: none;
    background: white;
    border-radius: 5px;
    border: 2px solid #555;
}

    input[type='checkbox']:checked {
        background: #212121;
    }

    input[type='checkbox']:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

.form-content input {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 0.1rem;
}

.form-content textarea {
    height: 80px;
    width: 100%;
    padding: 5px 15px;
    margin-bottom: 0.1rem;
}

.form-content select {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 0.1rem;
}

.dialog-content input:not([type=checkbox]):not([type=radio]), select {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 0.1rem;
}

.instructionLabel {
    font-size: 0.8em;
    font-style: italic;
}

.vehicle-viewer {
    border: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--vehicle-3d-view-height);
    position: relative;
    flex-shrink: 0;
}

.rz-scheduler-nav-title {
    display: none !important;
}

.rz-slot-hour-header {
    display: none !important;
}

.rz-slot-hours {
    display: none !important;
}

.rz-scheduler-nav-views .rz-state-active {
    background-color: #1b6ec2 !important;
}

.rz-scheduler-nav-prev-next .rz-button, .rz-scheduler-nav-prev-next .rz-paginator-element {
    background-color: #1b6ec2 !important;
}

.rz-accordion-header span {
    color: #1b6ec2 !important;
}

.autocomplete-suggestions {
    width: 100%;
    z-index: 1;
    overflow: auto;
    min-width: 276px;
    box-shadow: 0px 12.8px 28.8px rgba(0,0,0,0.13), 0px 0px 9.2px rgba(0,0,0,0.11);
    background: #FFFFFF;
    padding: 4px 0;
    margin-top: 4px;
    max-height: 328px;
    border-radius: 4px;
    display: none;
    transition: opacity 0.1s ease-out;
}

.autocomplete-suggestions.visible {
    display:block;
}

.autocomplete-suggestions div[role=option] {
    display: grid;
    padding: 0 14px;
    align-items: center;
    height: 40px;
    margin: 0 4px;
    color: #2B2B2B;
    line-height: 20px;
    border-radius: 2px;
    border: 2px solid transparent;
    position: relative;
}

.autocomplete-suggestions div[role=option]:hover {
    cursor: pointer;
    background: #F2F2F2;
}

.autocomplete-suggestions div[role=option]:active {
    background: #EDEDED;
}

.sketchpad {
    float:left;
    height:300px;
    width:400px;
    border:2px solid #888;
    border-radius:4px;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

#ServerUnreachable {
    display:none;
}

.sort-th {
    cursor: pointer;
}

.fa {
    float: right;
}

.selectArrow {
    display: inline-block;
}

    .selectArrow.hidden {
        display: none;
    }

.timeCalendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid #dfe7eb;
    grid-gap: 1px;
    background-color: #dfe7eb;
}

.timeCalendarHeader {
    padding: 5px;
}

.timeDay {
    padding: 5px;
    min-height: 60px;
    background-color: white;
}

    .timeDay .timeDayNum {
        text-align: left;
    }

    .timeDay .timeCombined {
        text-align: center;
        color: white;
        background-color: #4E77A1;
    }

    .timeDay .timeCase {
        text-align: center;
        color: white;
        background-color: #1b6ec2;
    }

    .timeDay .timeNonCase {
        text-align: center;
        color: white;
        background-color: grey;
    }

.timeTotalsTable > tr > td {
    padding: .25rem;
}

#sync-status {
    background: white;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    height: 40px;
    width: 100%;
}

.floating-update-button {
    position: fixed;
    background: #8586f8;
    color: white;
    right: 2rem;
    bottom: 2rem;
    padding: 1rem 1.5rem;
    animation: fadein 2s ease-out;
    z-index: 1000;
}

.phoneEvent label {
    padding: 5px;
}

.phoneEvent textarea, input[type=text], input[type=date], input[type=datetime-local], input[type=month], input[type=time] {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 0.1rem;
}

@keyframes fadein {
    from {
        right: -100%;
    }

    to {
        right: 2rem;
    }
}

@media (max-width: 767.98px) {

    .navSideCollapse {
        display: none;
    }

    .sidebar {
        background-image: url('/images/Sedgwick_Background.jpg');

    }

        .sidebar.grey {
            background-color: #343a40;
        }

    .sidebar-logo {
        display:none;
    }
    
    .main .top-row {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .navSideCollapse {
        display: block;
        padding-top: 10px;
        padding-bottom: 5px;
        margin-left: 30px;
    }

    .sidebar {
        background-image: url('/images/Sedgwick_Background.jpg');
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        transition: 0.3s;
        transition-delay: 0.2s;
    }

        .sidebar.grey {
            background-image: linear-gradient(180deg, #343a40 0%, #6c757d 70%);
        }

        .sidebar .miniLogo {
            display: none;
        }

        .sidebar:has(.slim) {
            width: 70px !important;
        }

            .sidebar:has(.slim) .menuText {
                transition: opacity 1s ease-out;
                opacity: 0;
                height: 0;
                overflow: hidden;
            }

            .sidebar:has(.slim) .miniLogo {
                transition: opacity 1s ease-out;
                transition-delay:0.5s;
                opacity: 1;
                height: auto;
                display:block;
            }

            .sidebar:has(.slim) .fullLogo {
                transition: opacity 1s ease-out;
                transition-delay: 0.5s;
                opacity: 0;
                height: 0;
                overflow: hidden;
            }


    @media(hover: hover) and (pointer: fine) {
        .sidebar:has(.slim):hover {
            width: 250px !important;
        }

            .sidebar:has(.slim):hover .menuText {
                opacity: 1;
                height: auto;
            }

            .sidebar:has(.slim):hover .fullLogo {
                opacity: 1;
                height: auto;
            }

            .sidebar:has(.slim):hover .miniLogo {
                opacity: 0;
                height: 0;
                overflow: hidden;
            }

            .sidebar:has(.slim):hover .sidebar-logo {
                width: 240px;
                height: 84x;
                margin-left: -120px;
            }
    }

        .sidebar-logo {
            bottom: 5px;
            left: 50%;
            margin-left: -120px;
            position: absolute;
            width: 240px;
            height: 84px;
        }

        .sidebar:has(.slim) .sidebar-logo {
            width: 50px;
            height: 50px;
            margin-left: -25px;
        }



        .sidebar .top-row {
            background-color: rgba(0,0,0,0.4);
        }

        .main .top-row {
            position: sticky;
            top: 0;
        }

        .main > div {
            padding-left: 2rem !important;
            padding-right: 1.5rem !important;
        }

        .navbar-toggler {
            display: none;
        }

        .sidebar .collapse {
            /* Never vertically collapse the sidebar for wide screens */
            display: block;
        }
    }

@media screen {
    .noPrint {
    }

    .noScreen {
        display: none;
    }
}

@media print {
    .noPrint {
        display: none;
    }

    .noScreen {
    }

    @page {
        size: auto; /* auto is the initial value */
        margin: 0; /* this affects the margin in the printer settings */
    }

    html {
        margin: 0px; /* this affects the margin on the html before sending to printer */
    }

    body {
        margin: 10mm 15mm 10mm 15mm; /* margin you want for the content */
    }

    .header {
        page-break-before: always;
    }
}
