html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(12px, 1.2vw, 15px);
}

a, .btn-link {
    color: #006bb7;
}

.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 #258cfb;
}

.content {
    padding-top: 1.1rem;
}

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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.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;
}
.column-header {
    font-weight: 600 !important;
}

.mud-table-cell {
    font-size: 0.75rem !important;
}

.map {
    height: 70vh;
    min-height: 320px;
    border: 1px solid #d7dce5;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

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

.report-chart-wrap {
    width: 100%;
    max-width: 100vw;
    overflow-x: auto;
}

.report-row-selected {
    background-color: rgba(46, 125, 50, 0.14);
}

.reports-submenu {
    position: sticky;
    top: 76px;
}

.reports-submenu .mud-button-root {
    justify-content: flex-start;
}

/* .report-entity-select {
    width: clamp(340px, 42vw, 620px) !important;
    min-width: 340px;
    max-width: 620px;
    flex: 2 1 460px !important;
    display: block !important;
    flex-shrink: 0 !important;
} */
/* 
.mud-stack-row > .report-entity-select {
    flex: 2 1 460px !important;
    min-width: 340px !important;
}

.report-entity-select .mud-input-control,
.report-entity-select .mud-input,
.report-entity-select .mud-select,
.report-entity-select .mud-select-input {
    width: 100% !important;
} */

.group-report-vehicle-select {
    min-width: 360px;
    max-width: 560px;
    flex: 1 1 420px;
}

.group-report-summary-row {
    cursor: pointer;
}

.group-report-summary-row:hover {
    background-color: rgba(25, 118, 210, 0.08);
}

.group-report-detail-row {
    background-color: rgba(148, 163, 184, 0.08);
}

.group-report-detail-label {
    padding-left: 34px;
    display: inline-block;
}

.group-flow-report-tab {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.group-flow-controls {
    width: 100%;
    margin-right: 0;
}

.group-flow-controls > * {
    max-width: 100%;
}

.group-flow-kpi {
    min-height: 60px;
}

.group-flow-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.group-flow-table {
    width: 100%;
}

.group-flow-table .mud-table-container {
    width: 100%;
}

.reports-second-level-tabs .mud-tabs-tabbar {
    min-width: 56px;
}

.reports-second-level-tabs .mud-tab {
    min-width: 44px !important;
    justify-content: center;
    padding: 8px 4px;
}

.reports-second-level-tabs .mud-tab .mud-tab-content {
    margin: 0;
}

.reports-second-level-panel {
    width: 100%;
}

.dashboard-filter,
.dashboard-block {
    max-width: 100%;
    overflow-x: hidden;
}

.dashboard-grid {
    width: 100%;
    margin: 0;
}

.dashboard-card {
    min-height: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    align-items: center;
}

.dashboard-card .mud-typography-body2 {
    font-size: 0.95rem;
    line-height: 1.25;
}

.dashboard-card .mud-typography-h5 {
    font-size: 1.45rem;
    line-height: 1.15;
}

.dashboard-progress-wrap {
    width: 100%;
}

.dashboard-progress {
    width: 100%;
    min-height: 28px;
}

.heatmap-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.heatmap-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    padding: 4px 10px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
}

.heatmap-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

@media (max-width: 960px) {
    .reports-submenu {
        position: static;
    }

    .report-entity-select,
    .group-report-vehicle-select {
        width: 100% !important;
        min-width: 100%;
        max-width: 100%;
        flex: 1 1 100% !important;
    }

    /* .group-flow-controls .mud-picker,
    .group-flow-controls .mud-input-control,
    .group-flow-controls .mud-select,
    .group-flow-controls .mud-button-root {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    } */

    .reports-second-level-tabs .mud-tabs-tabbar {
        min-width: 44px;
    }
}

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

.max-width-140px {
    max-width: 140px !important;
}

.min-width-110px {
    min-width: 110px !important;
}

.calendar-visibility-selector {
    min-width: 100px !important;
}

.vehicle-picker {
    min-width: 350px !important;
}

@media (max-width: 960px) {
    .vehicle-picker {
    min-width: 300px !important;
}
}

.mud-picker-timepicker-toolbar {
    max-width: 100% !important;
}

@media (max-width: 600px) {
    .group-flow-report-tab .mud-paper {
        padding-left: 8px;
        padding-right: 8px;
    }

    .group-flow-controls {
        gap: 8px;
    }

    .group-flow-kpi {
        min-height: 45px;
    }

    .group-flow-table .mud-table-cell {
        font-size: 0.72rem !important;
        padding: 6px 8px;
    }

    .dashboard-card {
        min-height: 60px;
        padding: 0 6px 0 6px !important;
    }

    .dashboard-card .mud-typography-h5 {
        font-size: 1.2rem;
        line-height: 1.15;
        word-break: break-word;
    }

    .dashboard-card .mud-typography-body2 {
        font-size: 0.88rem;
    }

    .dashboard-progress {
        min-height: 26px;
    }

    .max-width-140px {
        max-width: 100% !important;
    }

    .vehicle-picker {
        min-width: none !important;
    }
}

.mud-select-extended{
    flex-basis: auto !important;
}

.mud-alert-position {
    align-items: center !important;
}

.apexcharts-heatmap-rect[fill="rgba(153,153,153,1)"] {
    fill: var(--mud-palette-background) !important;
}

.apexcharts-heatmap-rect[stroke="#ffffff"] {
    stroke: var(--mud-palette-background) !important;
}
.apexcharts-gridlines-vertical line,
.apexcharts-gridlines-horizontal line {
    stroke: var(--mud-palette-background) !important;
}

.apexcharts-gridline[stroke="#e0e0e0"] {
    stroke: var(--mud-palette-background) !important;
}

.calendar-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;
}

.calendar-report-shell {
    width: 100%;
    /* min-width: 1880px; */
    position: relative;
    margin-bottom: 2px;
}

.calendar-report-calendar {
    width: 100%;    
    margin: 6px;
}

.calendar-report-lines,
.mud-cal-month-cell-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

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

.vehicle-calendar-report .mud-cal-month-row-holder,
.busstop-calendar-report .mud-cal-month-row-holder {
    min-height: 114px !important;
}

.calendar-report-calendar .mud-cal-month-row-holder > *,
.calendar-report-calendar .mud-cal-total-cell {
    --calendar-report-cell-bg: var(--mud-palette-background);
}

.calendar-report-calendar .mud-cal-total-cell {
    background-color: rgba(102, 187, 106, 0.24);
    --calendar-report-cell-bg: rgba(102, 187, 106, 0.24);
}

.mud-theme-dark .calendar-report-calendar .mud-cal-total-cell {
    background-color: rgba(46, 125, 50, 0.36);
    --calendar-report-cell-bg: rgba(46, 125, 50, 0.36);
}

.calendar-report-calendar .mud-cal-total-cell .mud-cal-month-cell-title,
.calendar-report-calendar .mud-cal-total-cell .mud-cal-month-cell-header {
    color: var(--mud-palette-text-primary);
    font-weight: 700;
}

.calendar-report-calendar .mud-cal-month-grid-header > .mud-cal-month-header:last-child {
    background-color: transparent;
    color: var(--mud-palette-text-primary);
    font-weight: 700;
}

.calendar-report-calendar .mud-cal-month-total-placeholder {
    background-color: var(--mud-palette-background) !important;
    --calendar-report-cell-bg: var(--mud-palette-background);
}

.calendar-report-calendar .mud-cal-month-row-holder > :nth-child(6):not(.mud-cal-total-cell):not(.mud-cal-month-total-placeholder),
.calendar-report-calendar .mud-cal-month-row-holder > :nth-child(7):not(.mud-cal-total-cell):not(.mud-cal-month-total-placeholder) {
    background-color: color-mix(in srgb, var(--mud-palette-surface) 94%, black);
    --calendar-report-cell-bg: color-mix(in srgb, var(--mud-palette-surface) 94%, black);
}

.mud-theme-dark .calendar-report-calendar .mud-cal-month-row-holder > :nth-child(6):not(.mud-cal-total-cell):not(.mud-cal-month-total-placeholder),
.mud-theme-dark .calendar-report-calendar .mud-cal-month-row-holder > :nth-child(7):not(.mud-cal-total-cell):not(.mud-cal-month-total-placeholder) {
    background-color: color-mix(in srgb, var(--mud-palette-surface) 86%, black);
    --calendar-report-cell-bg: color-mix(in srgb, var(--mud-palette-surface) 86%, black);
}

.calendar-report-calendar .mud-cal-month-row-holder > :nth-child(6):not(.mud-cal-total-cell):not(.mud-cal-month-total-placeholder) .mud-cal-month-cell-title,
.calendar-report-calendar .mud-cal-month-row-holder > :nth-child(7):not(.mud-cal-total-cell):not(.mud-cal-month-total-placeholder) .mud-cal-month-cell-title {
    color: var(--mud-palette-error);
    font-weight: 700;
}

.calendar-report-calendar .mud-cal-month-grid-header > :nth-child(6),
.calendar-report-calendar .mud-cal-month-grid-header > :nth-child(7) {
    color: var(--mud-palette-error);
    font-weight: 700;
}

.mud-cal-month-cell-title.mud-cal-month-cell-header {
    padding: 4px;
}

.calendar-report-line {
    display: flex;
    align-items: center;
    gap: 6px;
    /* border-radius: 0 14px 14px 0; */
    padding: 0 6px;
    min-height: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background-color: transparent !important;
    color: var(--mud-palette-text-primary);
}

.calendar-report-line-empty {
    min-height: 20px;
}

.calendar-report-line-total-empty {
    min-height: 20px;
    /* background-color: var(--mud-palette-background); */
}

.calendar-report-line-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-width: 0;
    width: 100%;
}

.calendar-report-calendar .mud-cal-toolbar {
    /* gap: 12px; */
    padding: 6px !important;
    flex-wrap: wrap;
}

.calendar-report-calendar .mud-cal-toolbar-nav {
    flex-flow: row-reverse;
    width: 100%;
} 

.mud-calendar .mud-picker {
    display: inline-flex !important;
    justify-content: end;
}

@media (max-width: 1900px) {
    .calendar-report-line {
        justify-content: space-between !important;
    }

    .calendar-report-line-text {
        justify-content: flex-end !important;
    }
}

@media (max-width: 960px) {
    .calendar-report-line-text {
        display: none !important;
    }
}

@media (max-width: 400px) {
    .mud-popover-top-left {
        left: 24px !important;
    }
}

.interval-table {
    outline: 2px solid var(--mud-palette-primary) !important;
}