﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 10pt;
    color: #555;
}

.logo {
    background: #fff url(img/logomap.png) no-repeat center;
    width: 130px;
    height: 60px;
    position: absolute;
    top: 15px;
    left: 75px;
    border-radius: 5px;
    z-index: 1000;
}

a, a:visited, .btn-link {
/*    color: #555;*/
}
    a.grey {
        color: #555 !important;
    }

.bold, bold {
    font-weight: bold;
}


.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--mud-palette-primary) !important;
}

.hide-scroll,
.hide-scroll > div {
    overflow: auto;
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE 10+ */
}

.hide-scroll::-webkit-scrollbar,
.hide-scroll > div::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.content {
}

h1:focus {
    outline: none;
}

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

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxN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LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}


.danger-color {
    color: darkred;
}

.object-box {
    cursor: pointer;
}

.bg-gradient-1 {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#f3f3f3+0,f0f0f0+50,ececec+51,ffffff+100 */
    background: linear-gradient(to bottom, #f3f3f3 0%,#f0f0f0 50%,#ececec 51%,#ffffff 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

.bg-gradient-active {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#cbd7d8+0,dddddd+50,e0d7c7+51,ffffff+100 */
    background: linear-gradient(to bottom, #cbd7d8 0%,#dddddd 50%,#e0d7c7 51%,#ffffff 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

.radius {
    border-radius: 5px;
}

.items-box, .object-box {
    border: 1px solid #eee;
    border-radius: 5px;
    font-size: 100%;
}

/* tracking-object в листе каждый элемент машины
*/ .tracking-object {
    text-align: center;
}

    .tracking-object div:nth-of-type(1) div span, .tracking-object div:nth-of-type(1) div:nth-of-type(4) {
        color: cadetblue;
    }

.shadow {
    -webkit-box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.1);
    -moz-box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.1);
    box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.1);
}

.scroll {
    overflow-y: scroll;
}


.left {
    text-align: left;
}

.right {
    text-align: right;
}






div::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

div::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

div::-webkit-scrollbar-thumb {
    background-color: darkgrey;
    outline: 1px solid slategrey;
}



.top-box {
    position: absolute;
    max-height: 80vh;
    width: 400px;
    top: 65px;
    left: 5px;
    background: #fff;
}




.parking {
    background: url(markers/parking.png) no-repeat center;
    width: 40px;
    height: 40px;
}



.list-history-item {
}

    .list-history-item .sens-data {
        color: #ccc;
    }

    .list-history-item img {
        width: 16px;
        height: 16px;
    }



.light-gray {
    color: #aaa !important;
}

.superlight-gray, .superlight-gray a{
    color: #ccc !important;
}


.mini-text {
    font-size: 90%;
}

.group-name {
    color: cadetblue;
}

input[type="checkbox"] {
    accent-color: cadetblue;
}






.styled-table {
    border-collapse: collapse;
    margin: 5px 0;
    font-size: 0.9em;
    font-family: sans-serif;

}

    .styled-table thead tr {
        background-color: rgba(49,166,174,0.7);
        color: #ffffff;
        text-align: left;
    }

    .styled-table th,
    .styled-table td {
        padding: 3px 20px;
    }

    .styled-table tbody tr {
        border-bottom: 1px solid #dddddd !important;
    }

        .styled-table tbody tr:nth-of-type(even) {
            background-color: #f3f3f3;
        }

        .styled-table tbody tr:last-of-type {
            border-bottom: 2px solid #009879;
        }
        .styled-table tbody tr.active-row {
            font-weight: bold;
            color: #009879;
        }

.active-nav-menu {
    border-bottom: 2px solid var(--mud-palette-primary) !important;
}

.mud-menu-item:hover svg {
    fill: var(--mud-palette-primary) !important;
}

.active-nav-button,
.mud-menu-item:hover,
a:hover {
    color: var(--mud-palette-primary) !important;
}

.mud-tabs-panels.mud-tabs-vertical {
    display: block !important;
    min-height: 100%;
}
.mud-tabs-tabbar.mud-tabs-vertical {
    align-items: start !important;
}

.mud-tabs-tabbar-wrapper {
    transform: unset !important;
}

.mud-tab {
    justify-content: start !important;
}

.mud-tabs-scroll-button {
    display: none !important;
}

.notification-badge {
    top: 4px !important;
}

.toolbar-class {
    min-height: 64px;
}

.mud-calendar .mud-calendar-container {
    overflow: visible;
    /*padding-bottom: 5px;*/
}

.mud-cal-month-cell-title{
    padding: 4px !important;
    align-content: center;
}

.mud-cal-total-cell {
    height: max-content !important;
    min-height: 114px !important;
}
/* 
 @media (max-width: 1920px) {
    .mud-cal-total-cell:last-child {
        border-bottom: 1px solid var(--mud-palette-table-lines);
    }
}  */

.cal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 4px;
}

.tacho-calendar .mud-cal-month-cell-header {
    display: flex;
    flex-wrap: wrap;
}

/* .trip-calendar .mud-cal-month-cell-header {
    display: flex;
    flex-wrap: wrap;
} */

.tacho-calendar.mud-cal-month-cell-header {
    display: flex;
    flex-wrap: wrap;
}

.cal-items-container {
    display: flex;
    flex-wrap: wrap;
    margin: -24px 1px 0 0;
    padding-top: 25px;
}

.cal-trip-items-container {
    /* display: flex;
    flex-wrap: wrap; */
    margin: -24px 1px 0 0;
    padding-top: 25px;
}

.cal-tri-items-container:hover,
.cal-items-container:hover {
    background-color: var(--mud-palette-primary-hover);
}

.mud-cal-month-cell-link:hover {
    color: var(---mud-palette-primary-text) !important;
}
.mud-cal-month-link:hover {
    background-color: var(--mud-palette-primary-hover) !important;
}

.mud-cal-toolbar {
    padding: 4px 16px 12px 16px !important;
}

.mud-cal-toolbar-nav {
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.mud-cal-month-row-holder {
    min-height: 114px !important;
}

.cal-activ-item {
    min-width: 80px;
    min-height: 22px;
    display:flex;
    flex: 1;
    justify-content:space-between; 
    width:50%; 
    align-items: center; 
    padding:1px 4px;
}

.empty-cal-activ-item {
    padding: 1px 0px !important;
}

.cal-activ-sum-item {
    min-width: 80px;
    min-height: 22px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    padding: 1px 4px;
}

.cal-trip-item {
    /* min-width: 80px; */
    min-height: 22px;
    display: flex;
    flex: 1;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    padding: 1px 4px;
}

.cal-trip-sum-item {
    /* min-width: 80px; */
    min-height: 22px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    padding: 1px 4px;
}



@media (max-width: 1280px) {
    /*.mud-calendar .mud-calendar-container {*/
    /*    !*padding-bottom: 100px;*!*/
    /*}*/

    .tacho-calendar .cal-activ-item {
        width: 100%;
    }

    .tacho-calendar .mud-cal-month-cell {
        min-height: 202px;
    }

    .tacho-calendar .mud-cal-month-row-holder{
        min-height: 202px !important;
    }

    .tacho-calendar .mud-cal-total-cell {
        min-height: 202px !important;
    }
}

@media (max-width: 960px) {

    .mud-cal-grid {
        height: auto !important;
    }
    
    .tacho-calendar .cal-activ-sum-item {
        min-width: 40px;
    }

    .tacho-calendar .cal-activ-item {
        width: 50%;
        min-width: 40px;
    }

    .tacho-calendar .mud-cal-month-cell {
        min-height: 113px;
    }

    .tacho-calendar .mud-cal-total-cell {
        min-height: 113px !important;
    }

    .tacho-calendar .mud-cal-month-row-holder{
        min-height: 113px !important;
    }

    .trip-calendar .cal-activ-sum-item {
        min-width: 40px;
    }

    .trip-calendar .cal-activ-item {
        width: 50%;
        min-width: 40px;
    }

    .trip-calendar .mud-cal-month-cell {
        min-height: 114px;
    }

    .trip-calendar .mud-cal-total-cell {
        min-height: 114px !important;
    }

    .trip-calendar .mud-cal-month-row-holder{
        min-height: 114px !important;
    }

    .calendar-selector {
        top: -30px;
        width: 300px;
    }
}

@media (max-width: 660px) {
    .tacho-calendar .mud-cal-month-cell {
        min-height: 202px;
    }

    .tacho-calendar .mud-cal-month-row-holder {
        min-height: 202px !important;
    }

    .tacho-calendar .cal-activ-item {
        width: 100%;
    }

    .tacho-calendar .mud-cal-total-cell {
        min-height: 202px !important;
    }

    /* .trip-calendar .mud-cal-month-cell {
        min-height: 128px;
    }

    .trip-calendar .mud-cal-month-row-holder {
        min-height: 128px !important;
    }

    .trip-calendar .cal-activ-item {
        width: 100%;
    }

    .trip-calendar .mud-cal-total-cell {
        min-height: 128px !important;
    } */
}
@media (max-width: 600px) {
    .trip-calendar .cal-trip-item,
    .trip-calendar .cal-trip-sum-item {
        justify-content: center;
    }
}

@media (max-width: 550px) {
    .calendar-selector {
        width: 200px;
    }
}

@media (max-width: 450px) {
    .calendar-selector {
        width: 130px;
    }
}

/* Наследование шрифта от Default для всех input элементов */
.mud-input-base input,
.mud-input-base textarea,
.mud-input-slot,
.mud-field-label,
.mud-input-control, 
.mud-picker-month-container .mud-typography-subtitle1{
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.43 !important;
    letter-spacing: 0.01071em !important;
    text-transform: none !important;
    font-family: Roboto, Helvetica, Arial, sans-serif !important;
}

/* Для MudTextField и MudSelect */
.mud-text-field input,
.mud-select input {
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.43 !important;
}

.mud-tab:focus {
    outline: none !important;
}

.pointer {
    cursor: pointer;
}