@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html,
body {
    font-family: "Century Gothic";
    --body-bg: color-mix(in srgb, var(--bs-body-bg) 80%, var(--bs-body-color));
}

span.rz-cell-data, span.rz-column-title-content {
    font-size: 1.0em !important;
}

.rz-dialog-side-content {
    height:100% !important;
}

body.no-padding {
    padding: 0;
    background: url(/Assets/breakdown.jpg) no-repeat 0 0;
    background-size: cover;
    min-height: 100vh;
}

body {
    padding-top: 7rem;
}

.alert > td {
    background: transparent !important;
}

a,
.btn-link {
    color: rgb(226, 14, 20);
}

.text-dark {
    /* text-shadow:0 0 1px rgba(0, 0, 0, 0.8); */
    font-weight: 600;
}

.selectable {
    padding: 0.5em;
    cursor: pointer;
    margin-top: 0.25em;
    border: 1px solid transparent;
    border-radius: 0.5em;
    transition: all 0.3s ease-in-out;
}

.selected {
    background: var(--bs-highlight-bg);
    border: 1px solid var(--bs-body-color);
    box-shadow: 0 0 2px #d90812;
}

.yellow {
    background: #ffff70 !important;
}

.rz-dialog, .rz-dialog-wrapper, .rz-popup {
    z-index:10001 !important;
}

.selectable:hover {
    border-left: 1px solid #eee;
    border-top: 1px solid #eee;
    background: white;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.LicensePlate {
    display: inline-block;
    padding: 3px;
    border: 0px solid #705400;
    border-radius: 0.2em;
    text-align: center;
    background-color: #f4c63d !important;
    color:black !important;
    box-shadow:0 0 1px 1px rgba(0, 0, 0, 1),
    0 0 0 3px  rgba(255,255,255,0.5);
}

.bg-license {
    background-color: #f4c63d;
}

.surveyheader {
    width: 100%;
    text-align: center;
    height: 10rem;
    background: white;
    -moz-box-shadow: 0 0 10px 10px rgba(0, 0, 0, 0.4);
    -webkit-box-shadow: 0 0 10px 10px rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px 10px rgba(0, 0, 0, 0.4);
}

.surveyheader img {
    height: 100%;
    border: 0;
    padding: 0;
    margin: 0;
}

.form-actions {
    padding: 2rem 1rem 1rem 0;
    text-align: right;
}

.survey-panel {
    margin: 0 15% 2rem 15%;
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.8);
}

.survey-panel input[type=radio],
.survey-panel input[type=checkbox] {
    width: 100%;
    height: 1.5rem;
}

.survey-header {
    min-height: 15vh;
    text-align: left;
    color: white;
    padding: 2rem 15% 2rem 15%;
    background-size: cover;
}

.dropregion {
    background: var(--bs-body-bg);
    border: 3px solid transparent;
    border-radius: 5px;
    font-size: 0.9em;
}

    .dropregion.active {
        border: 3px solid var(--bs-highlight-color);
        background: var(--bs-highlight-bg);
        transition: ease-in-out all 0.5s;
    }

.dropregion:hover {
    border-radius: 5px;
}

.dropzone {
    height: 3em;
}

.dropzone input[type=file] {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
}

.navbar-toggler {
    border-width: 1px;
    color: rgb(226, 14, 20);
    border-radius: 4px;
}

input::-ms-clear {
    display: none;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.w-20 {
    width: 2rem;
    white-space: nowrap;
}

.showNav {
    animation: Popup 1s forwards;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.show-border td {
    border-bottom: thin solid;
}

.show-border td > td {
    border-bottom:hidden;
}

.collapsible {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    margin-top: 3px;
}

.collapsed {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: inherit;
}

.collapsible-title {
    padding: 0.5rem;
}

.collapsed .collapsible-title {
    background: inherit;
}

.clause-sub {
    border: 1px dashed rgb(226, 14, 20);
    border-left: 4px solid rgb(226, 14, 20);
    padding: 0.2rem;
}

.navbar-collapse {
    transition: all 0.5s ease;
    height: auto;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.9);
    height: 100vh;
    width: 100vw;
    padding: 1rem;
    overflow: scroll;
    z-index: 100000;
}

.navbar-collapse.collapse {
    transition: all linear 1s;
    animation: Popout 0.5s forwards;
    height: 0;
}

.main {
    flex: 1;
}

.main .top-row {
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
}

.main .top-row>a {
    margin-left: 1.5rem;
}

.sidebar,
.bg-fleetservred {
    background-image: linear-gradient(180deg, rgb(226, 14, 20) 0%, rgb(130, 0, 0) 70%);
}

.selectableDiv {
    padding: 0.25rem;
    border: 1px solid transparent;
    cursor: pointer;
    border-radius: 3px;
}

.selectableDiv:hover {
    border: 1px solid rgb(226, 14, 20);
    background: rgba(0, 0, 0, 0.01);
}

.blazorSignature {
    background: white;
    color: rgb(5, 5, 75);
    border: 1px solid #aaa;
    border-radius: 10px;
    padding: 2rem;
}

.navbar-nav .oi {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
}

.navbar-nav .far,
.navbar-nav .fas {
    width: 1.5rem;
    vertical-align: middle;
}

.userfavourites .far,
.userfavourites .fas {
    width: 1.5rem;
    vertical-align: middle;
}

.navbar-nav .nav-item {
    padding: 4px;
}

.sidebar .far,
.sidebar .fas {
    width: 1.5rem;
    vertical-align: middle;
}

.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: 3rem;
    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;
}

.navbar-nav .nav-item a,
.userfavourites .nav-item a {
    color: rgb(226, 14, 20) !important;
    border-radius: 4px;
    height: 3rem;
    padding: 0.25rem;
    display: flex;
    align-content: center;
    align-items: center;
}

.navbar-nav .nav-item a.active,
.userfavourites .nav-item a.active {
    background: linear-gradient(180deg, rgb(226, 14, 20) 0%, rgb(130, 0, 0) 70%) !important;
    color: white !important;
}

.navbar-nav .nav-item a:hover,
.userfavourites .nav-item a:hover {
    background: linear-gradient(180deg, rgb(226, 14, 20) 20%, rgb(130, 0, 0) 90%) !important;
    color: white !important;
}

.content {
    padding-top: 1.1rem;
}

.fleetservred {
    color: rgb(226, 14, 20);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.form-control.is-valid {
    background-image: none;
    padding-right: 0.5em;
}

@media (max-width: 767.98px) {
    .main .top-row {}

    .userfavourites {
        display: none;
    }

    .form-control.is-valid,
    .form-control.is-invalid {
        background-image: none;
        padding-right: inherit;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main>div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .navbar .navbar-toggler {
        display: block;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

.bm-container {
    display: none;
    align-items: start;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 7000;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Internet Explorer */
@-ms-keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.pulse-red {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 10px 0 #c01224;
    }

    50% {
        box-shadow: 0 0 0 0 #c01224;
    }

    100% {
        box-shadow: 0 0 10px 0 #c01224;
    }
}

.pulse-blue {
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 10px 0 #4287f5;
    }

    50% {
        box-shadow: 0 0 0 0 #4287f5;
    }

    100% {
        box-shadow: 0 0 10px 0 #4287f5;
    }
}

@keyframes fadeout {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Firefox < 16 */
@-moz-keyframes fadeout {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadeout {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Internet Explorer */
@-ms-keyframes fadeout {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Opera < 12.1 */
@-o-keyframes fadeout {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}


.bm-overlay {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 7300;
    background-image: linear-gradient(180deg, rgba(130, 80, 80, 0.8) 0%, rgba(0, 0, 0, 0.8) 70%);
}

.card-body h1,
.card-body h2,
.card-body h3,
.card-body h4,
.card-body h5,
.card-body h6,
.card-body h7 {
    margin: 0.5em 0 0.5em 0;
}

.bm-active {
    display: flex;
    -webkit-animation: fadein 0.5s;
    /* Safari, Chrome and Opera > 12.1 */
    -moz-animation: fadein 0.5s;
    /* Firefox < 16 */
    -ms-animation: fadein 0.5s;
    /* Internet Explorer */
    -o-animation: fadein 0.5s;
    /* Opera < 12.1 */
    animation: fadein 0.5s;
    animation-fill-mode: forwards;
}

.showing-fast {
    -webkit-animation: fadein 0.5s;
    /* Safari, Chrome and Opera > 12.1 */
    -moz-animation: fadein 0.5s;
    /* Firefox < 16 */
    -ms-animation: fadein 0.5s;
    /* Internet Explorer */
    -o-animation: fadein 0.5s;
    /* Opera < 12.1 */
    animation: fadein 0.5s;
    animation-fill-mode: forwards;
}

.hiding-slow {
    -webkit-animation: fadeout 5s;
    /* Safari, Chrome and Opera > 12.1 */
    -moz-animation: fadeout 5s;
    /* Firefox < 16 */
    -ms-animation: fadeout 5s;
    /* Internet Explorer */
    -o-animation: fadeout 5s;
    /* Opera < 12.1 */
    animation: fadeout 5s;
    animation-fill-mode: forwards;
}

.hiding-fast {
    -webkit-animation: fadeout 0.5s;
    /* Safari, Chrome and Opera > 12.1 */
    -moz-animation: fadeout 0.5s;
    /* Firefox < 16 */
    -ms-animation: fadeout 0.5s;
    /* Internet Explorer */
    -o-animation: fadeout 0.5s;
    /* Opera < 12.1 */
    animation: fadeout 0.5s;
    animation-fill-mode: forwards;
}



.blazor-modal {
    display: flex;
    align-items: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
    flex-direction: column;
    width: 90%;
    min-width: 30rem;
    max-height: calc(100% - 4rem);
    box-shadow: 0 0 105px 2px rgba(0, 0, 0, 0.9);
    border-radius: 1em;
    border: 1px solid var(--bs-border-color);
    z-index: 7400;
}

    .blazor-modal > .modal-title {
        width: 100%;
        background: linear-gradient(to bottom, var(--bs-body-bg), var(--bs-body-bg));
        color: var(--bs-body-color);
        font-weight: 500;
        padding: 1em;
        border-bottom: 1px solid var(--bs-border-color);
        border-radius: 1em 1em 0 0;
    }

    .blazor-modal > .modal-content {
        background: var(--body-bg);
    }

    .blazor-modal > .modal-footer,
    .blazor-modal > :last-child {
        border-top: 1px solid var(--bs-border-color);
        background: linear-gradient(to bottom, var(--bs-body-bg), var(--bs-body-bg));
        border-radius: 0 0 1em 1em !important;
    }

.bm-content {
    width: 100%;
    background: linear-gradient(to bottom, var(--bs-body-bg), var(--bs-body-bg));
    overflow: auto;
    padding: 1.5rem;
}

.bm-header {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: normal;
}

.bm-actions {
    display: flex;
    padding: 1rem;
    border-radius: 4px;
    width: 100%;
    align-items: flex-start;
}

.bm-title {
    margin-bottom: 0;
}

.bm-close {
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
    cursor: pointer;
}

.Good,
.WithinKPI,
.NearingKPI,
.ExceedingKPI,
.Critical {
    text-align: center;
    vertical-align: central;
    font-size: 1.2em;
    background: var(--bs-body-bg);
    color: white;
}

.Good {
    background: rgb(20, 200, 20);
}

.NearingKPI {
    background: #e47905;
}

.ExceedingKPI {
    background: rgb(200, 50, 20);
}

.WithinKPI {
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.DashText {
    font-size: 4rem;
}

.NewSite {
    border-left: 2px solid rgb(130, 0, 0);
}

.Overall {
    font-size: 1.7em;
}

.Overall td,
.Overall th {
    border-bottom: 2px solid rgb(130, 0, 0);
}


#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;
}


.toasts-container {
    position: fixed;
    left: 0;
    top: 0;
    min-width: 100px;
    padding: 0.5rem;
    z-index: 10000;
}

.jb-toast {
    opacity: 0.3;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border-radius: 0.5rem;
    text-align: center;
    position: relative;
    box-shadow: rgb(0, 0, 0) 0 0 0.2rem;
}

.jb-toast h5,
.jb-toast p {
    margin: 0;
    padding: 0.2rem;
}

.jb-toast h5 {
    font-size: 1.2rem;
    font-weight: bold;
}

.jb-toast p {
    font-size: 0.8rem;
    font-weight: normal;
}

.jb-toast-popup {
    transform: translateY(100vh);
    animation: Popup 1s forwards;
}

.jb-toast-hide {
    transform: translateY(0);
    animation: Popout 3s forwards !important;
}

@keyframes Popup {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }

    60% {
        transform: translateY(20px);
        opacity: 1;
    }

    70% {
        transform: translateY(-15px);
    }

    80% {
        transform: translateY(10px);
    }

    90% {
        transform: translateY(-5px);
    }

    95% {
        transform: translateY(5px);
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes Popout {
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }

    40% {
        transform: translateY(20px);
        opacity: 1;
    }

    30% {
        transform: translateY(-15px);
    }

    20% {
        transform: translateY(10px);
    }

    10% {
        transform: translateY(-5px);
    }

    5% {
        transform: translateY(5px);
    }

    0% {
        transform: translateY(0);
        opacity: 1;
    }
}

.my-reconnect-modal>div {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    overflow: hidden;
    background-color: #fff;
    opacity: 0.8;
    z-index: 1000000;
    text-align: center;
    margin: 40% 20% 20% 20%;
    font-weight: bold;
}

.components-reconnect-hide>div {
    display: none;
}

.components-reconnect-show>div {
    display: none;
}

.components-reconnect-show>.show {
    display: block;
}

.components-reconnect-failed>div {
    display: none;
}

.components-reconnect-failed>.failed {
    display: block;
}

.components-reconnect-refused>div {
    display: none;
}

.components-reconnect-refused>.refused {
    display: block;
}

.ct-pie .ct-label {
    fill: white;
    color: white;
}

.ct-legend {
    position: relative;
    z-index: 10;
    list-style: none;
    text-align: center;
}

.ct-legend li {
    position: relative;
    padding-left: 23px;
    margin-right: 10px;
    margin-bottom: 3px;
    cursor: pointer;
    display: inline-block;
}

.ct-legend li:before {
    width: 12px;
    height: 12px;
    position: absolute;
    left: 0;
    content: '';
    border: 3px solid transparent;
    border-radius: 2px;
}

.ct-legend li.inactive:before {
    background: transparent;
}

.ct-legend.ct-legend-inside {
    position: absolute;
    top: 0;
    right: 0;
}

.ct-legend.ct-legend-inside li {
    display: block;
    margin: 0;
}

.ct-legend .ct-series-0:before {
    background-color: #d70206;
    border-color: #d70206;
}

.ct-legend .ct-series-1:before {
    background-color: #f05b4f;
    border-color: #f05b4f;
}

.ct-legend .ct-series-2:before {
    background-color: #f4c63d;
    border-color: #f4c63d;
}

.ct-legend .ct-series-3:before {
    background-color: #d17905;
    border-color: #d17905;
}

.ct-legend .ct-series-4:before {
    background-color: #453d3f;
    border-color: #453d3f;
}

.ct-chart-line-multipleseries .ct-legend .ct-series-0:before {
    background-color: #d70206;
    border-color: #d70206;
}

.ct-chart-line-multipleseries .ct-legend .ct-series-1:before {
    background-color: #f4c63d;
    border-color: #f4c63d;
}

.ct-chart-line-multipleseries .ct-legend li.inactive:before {
    background: transparent;
}

.crazyPink li.ct-series-0:before {
    background-color: #C2185B;
    border-color: #C2185B;
}

.crazyPink li.ct-series-1:before {
    background-color: #E91E63;
    border-color: #E91E63;
}

.crazyPink li.ct-series-2:before {
    background-color: #F06292;
    border-color: #F06292;
}

.crazyPink li.inactive:before {
    background-color: transparent;
}

.crazyPink~svg .ct-series-a .ct-line,
.crazyPink~svg .ct-series-a .ct-point {
    stroke: #C2185B;
}

.crazyPink~svg .ct-series-b .ct-line,
.crazyPink~svg .ct-series-b .ct-point {
    stroke: #E91E63;
}

.crazyPink~svg .ct-series-c .ct-line,
.crazyPink~svg .ct-series-c .ct-point {
    stroke: #F06292;
}

.list-edit-add-view {
    padding: 0.2rem;
    border-radius: 0.5rem;
}


.dropzone {
    display: block;
    padding: 0.5em;
    border-radius: 1em;
    height: 100%;
}

.no-drop {
    border: 2px solid red;
    cursor: no-drop;
}

.can-drop {
    border: 2px solid green;
}

.dropzone>.draggable {
    margin: 0.5em;
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 1em;
}

.dropzone>.draggable>p {
    font-size: 8pt;
}

.dropzone>.draggable>* {
    pointer-events: none;
}

/*
    .dropzone-container
        .drop-region
            .drop-title
            .drop-zone
                 .dropzone.candrop / .dropzone.nodrop
    */
.dropzone-container {
    display: flex;
    flex-flow: column nowrap;
    align-content: stretch;
    justify-content: start;
    flex: auto;
    flex-grow: 1;
    flex-shrink: 0;
}

.dropzone-container>.drop-region {
    display: flex;
    flex-flow: row nowrap;
    flex: 1 1 auto;
    justify-content: space-evenly;
    align-items: stretch;
    align-content: center;
    flex-basis: 100%;
    border-radius: 1em;
    border: 1px solid transparent;
}

.dropzone-container>.drop-region:hover {
    background: var(--bs-highlight-bg);
    border: 1px solid #ccc;
}

.dropzone-container>.drop-region>.drop-title {
    flex-basis: 100%;
    align-self: center;
    font-size: 18pt;
}

.dropzone-container>.drop-region>.drop-zone,
.dropzone-container>.drop-region>.text-center {
    flex-basis: 100%;
    text-align: center;
    display: block;
}

.dropzone-container>.drop-region>.drop-zone>.dropzone {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    align-items: stretch;
    flex: 1 1 auto;
}

.dropzone-container>.drop-region>.drop-zone>.dropzone>.draggable {
    flex-basis: 25%;
    flex-grow: 1;
}

.expandable {
    border-radius: 1rem;
    padding: 0.3em;
    cursor: pointer;
    transition: all ease-in-out 0.5s;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.expandable.expanded {
    cursor: unset;
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

.scorecard {
    transition: all 0.5s ease-in-out;
}

.cal-date {
    cursor: pointer;
    text-align: center;
    padding: 1em;
    border: 1px solid transparent;
}

.cal-date.date-selected {
    background: rgb(200, 50, 20);
    color: white;
    font-weight: bold;
    border: 1px solid rgb(130, 0, 0);
    border-radius: 50%;
}
.totals {
    font-weight: bold;
    color: black;
}
.group-totals {
    display: flex;
    justify-content: flex-end;
}
.cal-date.date-viewed {}

